GAA reference
GPL Argument Analyzer (c) Joran Maille 1998
GAA functions
These functions are declared in the header file generated by GAA
int gaa(int argc, char *argv[], gaainfo *gaaval);
gaa() analyses arguments from the command line
int gaa_file(char *name, gaainfo *gaaval);
gaa_file() analyses options from a configuration file
void gaa_help();
gaa_help() prints the help of the program
GAA file structure
A GAA file has two parts :
-
GAA declarations
-
(optionnal) C declarations that will be put at the begining of the output
C file
These two parts are separated by the symbol '##'
GAA declarations
Predefined ARG_TYPEs
ARG_TYPE
|
C-type
|
Recognized arguments
|
STR
|
char*
|
any argument
|
INT
|
int
|
integers
|
CHAR
|
char
|
single characters
|
FLOAT
|
float
|
float number
|
Important : if in a declaration, you declare *ARG_TYPE,
the user will have to give a list of ARG_TYPE and not a single ARG_TYPE.
In the attached action, you can get the number of found arguments with
the '@n' symbol.
Configuration files