home *** CD-ROM | disk | FTP | other *** search
- /* argbegin.h: @(#) Begin argument parsing sandwich, see argparse.h */
- /* by Alexander B. Abacus */
-
- #ifndef ArgCount
- #define ArgCount argc
- #endif
-
- #ifndef ArgVector
- #define ArgVector argv
- #endif
-
- { /* Begin block with local variables. Ends with argend.h */
- struct
- {
- char ** tutorial;
- char ** argVector;
- char * description[2];
- char * textPointer;
- char * keyPointer;
- char * (*ptrFunction) ();
- int * ptrArgCount;
- int argc;
- int minPositionals;
- int maxPositionals;
- int keysLeading;
- int argIndex;
- int charIndex;
- int nextPositional;
- int noOfPositionals;
- int keysTerminated; /* ON/OFF switch */
- char keyTrigger;
- } a0;
-
- a0.ptrArgCount = &(ArgCount);
- a0.argc = *a0.ptrArgCount;
- a0.argVector = (ArgVector);
- a0.minPositionals = -1;
- a0.maxPositionals = -1;
- a0.ptrFunction = argPos;
- a0.keysLeading = 0;
- a0.keyTrigger = '-';
- a0.tutorial = & a0.description[0];
- a0.description[0] = "Description of arguments is not provided.\n";
- a0.description[1] = (char *) 0;
-
- /* argbegin.h: End of file. */
-