4 * Copyright (c) 1999-2002, Darren Hiebert
6 * This source code is released for free distribution under the terms of the
7 * GNU General Public License.
9 * Defines external interface to command line argument reading.
17 #include "general.h" /* must always come first */
25 typedef enum { ARG_NONE
, ARG_STRING
, ARG_ARGV
, ARG_FILE
} argType
;
27 typedef struct sArgs
{
50 extern Arguments
* argNewFromString (const char* const string
);
51 extern Arguments
* argNewFromArgv (char* const* const argv
);
52 extern Arguments
* argNewFromFile (FILE* const fp
);
53 extern Arguments
* argNewFromLineFile (FILE* const fp
);
54 extern char *argItem (const Arguments
* const current
);
55 extern boolean
argOff (const Arguments
* const current
);
56 extern void argSetWordMode (Arguments
* const current
);
57 extern void argSetLineMode (Arguments
* const current
);
58 extern void argForth (Arguments
* const current
);
59 extern void argDelete (Arguments
* const current
);
63 /* vi:set tabstop=4 shiftwidth=4: */