summary refs log tree commit diff stats
path: root/tests/system/timmutableinc.nim
blob: e857800b3add984e85f4aa141e1ec19801261ea4 (plain) (blame)
1
2
3
4
5
6
7
8
discard """
  errormsg: "type mismatch: got <int>"
  file: "timmutableinc.nim"
  line: 8
"""
var x = 0

inc(x+1)
ht .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*                                                               FTP access module for libwww
                                   FTP ACCESS FUNCTIONS

   This isn't really  a valid protocol module -- it is lumped together with HTFile . That
   could be changed easily.

   Author: Tim Berners-Lee.  Public Domain.  Please mail changes to timbl@info.cern.ch

 */
#ifndef HTFTP_H
#define HTFTP_H

#include <HTAnchor.h>
#include <HTStream.h>
#include <HTParse.h>

#ifdef __cplusplus
extern "C" {
#endif
#define FILE_BY_NAME 0
#define FILE_BY_TYPE 1
#define FILE_BY_SIZE 2
#define FILE_BY_DATE 3
    extern int HTfileSortMethod;	/* specifies the method of sorting */

/* PUBLIC						 HTVMS_name()
 *		CONVERTS WWW name into a VMS name
 * ON ENTRY:
 *	nn		Node Name (optional)
 *	fn		WWW file name
 *
 * ON EXIT:
 *	returns		vms file specification
 *
 * Bug:	Returns pointer to static -- non-reentrant
 */
    extern char *HTVMS_name(const char *nn,
			    const char *fn);

/*

Retrieve File from Server

  ON EXIT,

  returns                 Socket number for file if good.<0 if bad.

 */
    extern int HTFTPLoad(const char *name,
			 HTParentAnchor *anchor,
			 HTFormat format_out,
			 HTStream *sink);

/*
 *  This function frees any user entered password, so that
 *  it must be entered again for a future request. - FM
 */
    extern void HTClearFTPPassword(void);

/*

Return Host Name

 */
    extern const char *HTHostName(void);

#ifdef __cplusplus
}
#endif
#endif