3 * Copyright (c) 1999-2001, Darren Hiebert
5 * This source code is released for free distribution under the terms of the
6 * GNU General Public License.
8 * Defines external interface to command line argument reading.
16 #include "general.h" /* must always come first */
22 typedef struct sArgs
{
23 enum { ARG_NONE
, ARG_STRING
, ARG_ARGV
, ARG_FILE
} type
;
45 extern Arguments
* argNewFromString (const char* const string
);
46 extern Arguments
* argNewFromArgv (char* const* const argv
);
47 extern Arguments
* argNewFromFile (FILE* const fp
);
48 extern Arguments
* argNewFromLineFile (FILE* const fp
);
49 extern char *argItem (const Arguments
* const current
);
50 extern boolean
argOff (const Arguments
* const current
);
51 extern void argSetWordMode (Arguments
* const current
);
52 extern void argSetLineMode (Arguments
* const current
);
53 extern void argForth (Arguments
* const current
);
54 extern void argDelete (Arguments
* const current
);
58 /* vi:set tabstop=8 shiftwidth=4: */