version 1.26, 2016/12/25 16:40:06 |
version 1.27, 2017/01/21 08:33:07 |
|
|
int flex_main PROTO((int argc, char *argv[])); |
int flex_main PROTO((int argc, char *argv[])); |
int main PROTO((int argc, char *argv[])); |
int main PROTO((int argc, char *argv[])); |
|
|
int |
int |
flex_main(argc, argv) |
flex_main(argc, argv) |
int argc; |
int argc; |
char *argv[]; |
char *argv[]; |
|
|
} |
} |
|
|
/* Wrapper around flex_main, so flex_main can be built as a library. */ |
/* Wrapper around flex_main, so flex_main can be built as a library. */ |
int |
int |
main(argc, argv) |
main(argc, argv) |
int argc; |
int argc; |
char *argv[]; |
char *argv[]; |
|
|
|
|
/* check_options - check user-specified options */ |
/* check_options - check user-specified options */ |
|
|
void |
void |
check_options() |
check_options() |
{ |
{ |
int i; |
int i; |
|
|
* This routine does not return. |
* This routine does not return. |
*/ |
*/ |
|
|
void |
void |
flexend(exit_status) |
flexend(exit_status) |
int exit_status; |
int exit_status; |
|
|
|
|
|
|
/* flexinit - initialize flex */ |
/* flexinit - initialize flex */ |
|
|
void |
void |
flexinit(argc, argv) |
flexinit(argc, argv) |
int argc; |
int argc; |
char **argv; |
char **argv; |
|
|
|
|
/* readin - read in the rules section of the input file(s) */ |
/* readin - read in the rules section of the input file(s) */ |
|
|
void |
void |
readin() |
readin() |
{ |
{ |
static char yy_stdinit[] = "FILE *yyin = stdin, *yyout = stdout;"; |
static char yy_stdinit[] = "FILE *yyin = stdin, *yyout = stdout;"; |
|
|
* However, if the POSIXLY_CORRECT variable is set, then we quietly |
* However, if the POSIXLY_CORRECT variable is set, then we quietly |
* make flex as posix-compatible as possible. This is the |
* make flex as posix-compatible as possible. This is the |
* recommended behavior according to the GNU Coding Standards. |
* recommended behavior according to the GNU Coding Standards. |
* |
* |
* Note: The posix option was added to flex to provide the posix |
* Note: The posix option was added to flex to provide the posix |
* behavior of the repeat operator in regular expressions, e.g., |
* behavior of the repeat operator in regular expressions, e.g., |
* `ab{3}' |
* `ab{3}' |
|
|
|
|
/* set_up_initial_allocations - allocate memory for internal tables */ |
/* set_up_initial_allocations - allocate memory for internal tables */ |
|
|
void |
void |
set_up_initial_allocations() |
set_up_initial_allocations() |
{ |
{ |
maximum_mns = (long_align ? MAXIMUM_MNS_LONG : MAXIMUM_MNS); |
maximum_mns = (long_align ? MAXIMUM_MNS_LONG : MAXIMUM_MNS); |
|
|
return b; |
return b; |
} |
} |
|
|
void |
void |
usage() |
usage() |
{ |
{ |
FILE *f = stdout; |
FILE *f = stdout; |