chiark
/
gitweb
/
~ian
/
userv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved xmalloc etc. into both.c
[userv.git]
/
lexer.c
diff --git
a/lexer.c
b/lexer.c
index 3cf44067d39bbb92e76a9e217a5966b35872fe04..77542e5b419b260b36e586ae5718c452dbc8af9a 100644
(file)
--- a/
lexer.c
+++ b/
lexer.c
@@
-801,6
+801,7
@@
char *yytext;
#include "common.h"
#include "daemon.h"
#include "lib.h"
#include "common.h"
#include "daemon.h"
#include "lib.h"
+#include "both.h"
#include "tokens.h"
#define HYPHEN '-'
#include "tokens.h"
#define HYPHEN '-'
@@
-1043,7
+1044,7
@@
YY_DECL
register char *yy_cp, *yy_bp;
register int yy_act;
register char *yy_cp, *yy_bp;
register int yy_act;
-#line 14
2
"lexer.l"
+#line 14
3
"lexer.l"
@@
-1130,472
+1131,472
@@
do_action: /* This label is used only to access EOF actions. */
case 1:
YY_RULE_SETUP
case 1:
YY_RULE_SETUP
-#line 14
4
"lexer.l"
+#line 14
5
"lexer.l"
{ lr_dir= df_reject; return tokv_word_reject; }
YY_BREAK
case 2:
YY_RULE_SETUP
{ lr_dir= df_reject; return tokv_word_reject; }
YY_BREAK
case 2:
YY_RULE_SETUP
-#line 14
5
"lexer.l"
+#line 14
6
"lexer.l"
{ lr_dir= df_executefromdirectory; return tokv_word_executefromdirectory; }
YY_BREAK
case 3:
YY_RULE_SETUP
{ lr_dir= df_executefromdirectory; return tokv_word_executefromdirectory; }
YY_BREAK
case 3:
YY_RULE_SETUP
-#line 14
6
"lexer.l"
+#line 14
7
"lexer.l"
{ lr_dir= df_executefrompath; return tokv_word_executefrompath; }
YY_BREAK
case 4:
YY_RULE_SETUP
{ lr_dir= df_executefrompath; return tokv_word_executefrompath; }
YY_BREAK
case 4:
YY_RULE_SETUP
-#line 14
7
"lexer.l"
+#line 14
8
"lexer.l"
{ lr_dir= df_executebuiltin; return tokv_word_executebuiltin; }
YY_BREAK
case 5:
YY_RULE_SETUP
{ lr_dir= df_executebuiltin; return tokv_word_executebuiltin; }
YY_BREAK
case 5:
YY_RULE_SETUP
-#line 14
8
"lexer.l"
+#line 14
9
"lexer.l"
{ lr_dir= df_errorstostderr; return tokv_word_errorstostderr; }
YY_BREAK
case 6:
YY_RULE_SETUP
{ lr_dir= df_errorstostderr; return tokv_word_errorstostderr; }
YY_BREAK
case 6:
YY_RULE_SETUP
-#line 1
49
"lexer.l"
+#line 1
50
"lexer.l"
{ lr_dir= df_errorstosyslog; return tokv_word_errorstosyslog; }
YY_BREAK
case 7:
YY_RULE_SETUP
{ lr_dir= df_errorstosyslog; return tokv_word_errorstosyslog; }
YY_BREAK
case 7:
YY_RULE_SETUP
-#line 15
0
"lexer.l"
+#line 15
1
"lexer.l"
{ lr_dir= df_errorstofile; return tokv_word_errorstofile; }
YY_BREAK
case 8:
YY_RULE_SETUP
{ lr_dir= df_errorstofile; return tokv_word_errorstofile; }
YY_BREAK
case 8:
YY_RULE_SETUP
-#line 15
1
"lexer.l"
+#line 15
2
"lexer.l"
{ lr_dir= dfg_fdwant; lr_fdwant_readwrite=1; return tokv_word_requirefd; }
YY_BREAK
case 9:
YY_RULE_SETUP
{ lr_dir= dfg_fdwant; lr_fdwant_readwrite=1; return tokv_word_requirefd; }
YY_BREAK
case 9:
YY_RULE_SETUP
-#line 15
2
"lexer.l"
+#line 15
3
"lexer.l"
{ lr_dir= dfg_fdwant; lr_fdwant_readwrite=0; return tokv_word_allowfd; }
YY_BREAK
case 10:
YY_RULE_SETUP
{ lr_dir= dfg_fdwant; lr_fdwant_readwrite=0; return tokv_word_allowfd; }
YY_BREAK
case 10:
YY_RULE_SETUP
-#line 15
3
"lexer.l"
+#line 15
4
"lexer.l"
{ lr_dir= dfg_fdwant; lr_fdwant_readwrite=0; return tokv_word_nullfd; }
YY_BREAK
case 11:
YY_RULE_SETUP
{ lr_dir= dfg_fdwant; lr_fdwant_readwrite=0; return tokv_word_nullfd; }
YY_BREAK
case 11:
YY_RULE_SETUP
-#line 15
4
"lexer.l"
+#line 15
5
"lexer.l"
{ lr_dir= dfg_fdwant; lr_fdwant_readwrite=-1; return tokv_word_rejectfd; }
YY_BREAK
case 12:
YY_RULE_SETUP
{ lr_dir= dfg_fdwant; lr_fdwant_readwrite=-1; return tokv_word_rejectfd; }
YY_BREAK
case 12:
YY_RULE_SETUP
-#line 15
5
"lexer.l"
+#line 15
6
"lexer.l"
{ lr_dir= dfg_fdwant; lr_fdwant_readwrite=-1; return tokv_word_ignorefd; }
YY_BREAK
case 13:
YY_RULE_SETUP
{ lr_dir= dfg_fdwant; lr_fdwant_readwrite=-1; return tokv_word_ignorefd; }
YY_BREAK
case 13:
YY_RULE_SETUP
-#line 15
6
"lexer.l"
+#line 15
7
"lexer.l"
{ lr_dir= dfg_setflag; lr_flag= &setenvironment; lr_flagval= 1; return tokv_word_setenvironment; }
YY_BREAK
case 14:
YY_RULE_SETUP
{ lr_dir= dfg_setflag; lr_flag= &setenvironment; lr_flagval= 1; return tokv_word_setenvironment; }
YY_BREAK
case 14:
YY_RULE_SETUP
-#line 15
7
"lexer.l"
+#line 15
8
"lexer.l"
{ lr_dir= dfg_setflag; lr_flag= &setenvironment; lr_flagval= 0; return tokv_word_nosetenvironment; }
YY_BREAK
case 15:
YY_RULE_SETUP
{ lr_dir= dfg_setflag; lr_flag= &setenvironment; lr_flagval= 0; return tokv_word_nosetenvironment; }
YY_BREAK
case 15:
YY_RULE_SETUP
-#line 15
8
"lexer.l"
+#line 15
9
"lexer.l"
{ lr_dir= dfg_setflag; lr_flag= &suppressargs; lr_flagval= 1; return tokv_word_suppressargs; }
YY_BREAK
case 16:
YY_RULE_SETUP
{ lr_dir= dfg_setflag; lr_flag= &suppressargs; lr_flagval= 1; return tokv_word_suppressargs; }
YY_BREAK
case 16:
YY_RULE_SETUP
-#line 1
59
"lexer.l"
+#line 1
60
"lexer.l"
{ lr_dir= dfg_setflag; lr_flag= &suppressargs; lr_flagval= 0; return tokv_word_nosuppressargs; }
YY_BREAK
case 17:
YY_RULE_SETUP
{ lr_dir= dfg_setflag; lr_flag= &suppressargs; lr_flagval= 0; return tokv_word_nosuppressargs; }
YY_BREAK
case 17:
YY_RULE_SETUP
-#line 16
0
"lexer.l"
+#line 16
1
"lexer.l"
{ lr_dir= dfg_setflag; lr_flag= &disconnecthup; lr_flagval= 1; return tokv_word_disconnecthup; }
YY_BREAK
case 18:
YY_RULE_SETUP
{ lr_dir= dfg_setflag; lr_flag= &disconnecthup; lr_flagval= 1; return tokv_word_disconnecthup; }
YY_BREAK
case 18:
YY_RULE_SETUP
-#line 16
1
"lexer.l"
+#line 16
2
"lexer.l"
{ lr_dir= dfg_setflag; lr_flag= &disconnecthup; lr_flagval= 0; return tokv_word_nodisconnecthup; }
YY_BREAK
case 19:
YY_RULE_SETUP
{ lr_dir= dfg_setflag; lr_flag= &disconnecthup; lr_flagval= 0; return tokv_word_nodisconnecthup; }
YY_BREAK
case 19:
YY_RULE_SETUP
-#line 16
2
"lexer.l"
+#line 16
3
"lexer.l"
{ lr_dir= df_cd; return tokv_word_cd; }
YY_BREAK
case 20:
YY_RULE_SETUP
{ lr_dir= df_cd; return tokv_word_cd; }
YY_BREAK
case 20:
YY_RULE_SETUP
-#line 16
3
"lexer.l"
+#line 16
4
"lexer.l"
{ lr_dir= df_userrcfile; return tokv_word_userrcfile; }
YY_BREAK
case 21:
YY_RULE_SETUP
{ lr_dir= df_userrcfile; return tokv_word_userrcfile; }
YY_BREAK
case 21:
YY_RULE_SETUP
-#line 16
4
"lexer.l"
+#line 16
5
"lexer.l"
{ lr_dir= df_include; return tokv_word_include; }
YY_BREAK
case 22:
YY_RULE_SETUP
{ lr_dir= df_include; return tokv_word_include; }
YY_BREAK
case 22:
YY_RULE_SETUP
-#line 16
5
"lexer.l"
+#line 16
6
"lexer.l"
{ lr_dir= df_include; return tokv_word_includeifexist; }
YY_BREAK
case 23:
YY_RULE_SETUP
{ lr_dir= df_include; return tokv_word_includeifexist; }
YY_BREAK
case 23:
YY_RULE_SETUP
-#line 16
6
"lexer.l"
+#line 16
7
"lexer.l"
{ lr_dir= df_includelookup; return tokv_word_includelookup; }
YY_BREAK
case 24:
YY_RULE_SETUP
{ lr_dir= df_includelookup; return tokv_word_includelookup; }
YY_BREAK
case 24:
YY_RULE_SETUP
-#line 16
7
"lexer.l"
+#line 16
8
"lexer.l"
{ lr_dir= df_includelookup; return tokv_word_includelookupall; }
YY_BREAK
case 25:
YY_RULE_SETUP
{ lr_dir= df_includelookup; return tokv_word_includelookupall; }
YY_BREAK
case 25:
YY_RULE_SETUP
-#line 16
8
"lexer.l"
+#line 16
9
"lexer.l"
{ lr_dir= df_includedirectory; return tokv_word_includedirectory; }
YY_BREAK
case 26:
YY_RULE_SETUP
{ lr_dir= df_includedirectory; return tokv_word_includedirectory; }
YY_BREAK
case 26:
YY_RULE_SETUP
-#line 1
69
"lexer.l"
+#line 1
70
"lexer.l"
{ lr_dir= df_message; return tokv_word_message; }
YY_BREAK
case 27:
YY_RULE_SETUP
{ lr_dir= df_message; return tokv_word_message; }
YY_BREAK
case 27:
YY_RULE_SETUP
-#line 17
0
"lexer.l"
+#line 17
1
"lexer.l"
{ lr_dir= df_include; return tokv_word_includesysconfig; }
YY_BREAK
case 28:
YY_RULE_SETUP
{ lr_dir= df_include; return tokv_word_includesysconfig; }
YY_BREAK
case 28:
YY_RULE_SETUP
-#line 17
1
"lexer.l"
+#line 17
2
"lexer.l"
{ lr_dir= dfi_includeuserrcfile; return tokv_word_includeuserrcfile; }
YY_BREAK
case 29:
YY_RULE_SETUP
{ lr_dir= dfi_includeuserrcfile; return tokv_word_includeuserrcfile; }
YY_BREAK
case 29:
YY_RULE_SETUP
-#line 17
2
"lexer.l"
+#line 17
3
"lexer.l"
{ lr_dir= dfi_includeclientconfig; return tokv_word_includeclientconfig; }
YY_BREAK
case 30:
YY_RULE_SETUP
{ lr_dir= dfi_includeclientconfig; return tokv_word_includeclientconfig; }
YY_BREAK
case 30:
YY_RULE_SETUP
-#line 17
3
"lexer.l"
+#line 17
4
"lexer.l"
{ lr_dir= df_quit; return tokv_word_quit; }
YY_BREAK
case 31:
YY_RULE_SETUP
{ lr_dir= df_quit; return tokv_word_quit; }
YY_BREAK
case 31:
YY_RULE_SETUP
-#line 17
4
"lexer.l"
+#line 17
5
"lexer.l"
{ lr_dir= df_eof; return tokv_word_eof; }
YY_BREAK
case 32:
YY_RULE_SETUP
{ lr_dir= df_eof; return tokv_word_eof; }
YY_BREAK
case 32:
YY_RULE_SETUP
-#line 17
5
"lexer.l"
+#line 17
6
"lexer.l"
{ lr_dir= df_if; return tokv_word_if; }
YY_BREAK
case 33:
YY_RULE_SETUP
{ lr_dir= df_if; return tokv_word_if; }
YY_BREAK
case 33:
YY_RULE_SETUP
-#line 17
6
"lexer.l"
+#line 17
7
"lexer.l"
{ lr_dir= df_catchquit; return tokv_word_catchquit; }
YY_BREAK
case 34:
YY_RULE_SETUP
{ lr_dir= df_catchquit; return tokv_word_catchquit; }
YY_BREAK
case 34:
YY_RULE_SETUP
-#line 17
7
"lexer.l"
+#line 17
8
"lexer.l"
{ lr_dir= df_errorspush; return tokv_word_errorspush; }
YY_BREAK
case 35:
YY_RULE_SETUP
{ lr_dir= df_errorspush; return tokv_word_errorspush; }
YY_BREAK
case 35:
YY_RULE_SETUP
-#line 17
8
"lexer.l"
+#line 17
9
"lexer.l"
{ lr_controlend= tokv_word_if; return tokv_word_elif; }
YY_BREAK
case 36:
YY_RULE_SETUP
{ lr_controlend= tokv_word_if; return tokv_word_elif; }
YY_BREAK
case 36:
YY_RULE_SETUP
-#line 1
79
"lexer.l"
+#line 1
80
"lexer.l"
{ lr_controlend= tokv_word_if; return tokv_word_else; }
YY_BREAK
case 37:
YY_RULE_SETUP
{ lr_controlend= tokv_word_if; return tokv_word_else; }
YY_BREAK
case 37:
YY_RULE_SETUP
-#line 18
0
"lexer.l"
+#line 18
1
"lexer.l"
{ lr_controlend= tokv_word_if; return tokv_word_fi; }
YY_BREAK
case 38:
YY_RULE_SETUP
{ lr_controlend= tokv_word_if; return tokv_word_fi; }
YY_BREAK
case 38:
YY_RULE_SETUP
-#line 18
1
"lexer.l"
+#line 18
2
"lexer.l"
{ lr_controlend= tokv_word_catchquit; return tokv_word_hctac; }
YY_BREAK
case 39:
YY_RULE_SETUP
{ lr_controlend= tokv_word_catchquit; return tokv_word_hctac; }
YY_BREAK
case 39:
YY_RULE_SETUP
-#line 18
2
"lexer.l"
+#line 18
3
"lexer.l"
{ lr_controlend= tokv_word_errorspush; return tokv_word_srorre; }
YY_BREAK
case 40:
YY_RULE_SETUP
{ lr_controlend= tokv_word_errorspush; return tokv_word_srorre; }
YY_BREAK
case 40:
YY_RULE_SETUP
-#line 18
3
"lexer.l"
+#line 18
4
"lexer.l"
{ lr_parmcond= pcf_glob; return tokv_word_glob; }
YY_BREAK
case 41:
YY_RULE_SETUP
{ lr_parmcond= pcf_glob; return tokv_word_glob; }
YY_BREAK
case 41:
YY_RULE_SETUP
-#line 18
4
"lexer.l"
+#line 18
5
"lexer.l"
{ lr_parmcond= pcf_range; return tokv_word_range; }
YY_BREAK
case 42:
YY_RULE_SETUP
{ lr_parmcond= pcf_range; return tokv_word_range; }
YY_BREAK
case 42:
YY_RULE_SETUP
-#line 18
5
"lexer.l"
+#line 18
6
"lexer.l"
{ lr_parmcond= pcf_grep; return tokv_word_grep; }
YY_BREAK
case 43:
YY_RULE_SETUP
{ lr_parmcond= pcf_grep; return tokv_word_grep; }
YY_BREAK
case 43:
YY_RULE_SETUP
-#line 18
6
"lexer.l"
+#line 18
7
"lexer.l"
{ lr_bispa= bispa_none; lr_bisexec= bisexec_environment; return tokv_word_environment; }
YY_BREAK
case 44:
YY_RULE_SETUP
{ lr_bispa= bispa_none; lr_bisexec= bisexec_environment; return tokv_word_environment; }
YY_BREAK
case 44:
YY_RULE_SETUP
-#line 18
7
"lexer.l"
+#line 18
8
"lexer.l"
{ lr_bispa= bispa_parameter; lr_bisexec= bisexec_parameter; return tokv_word_parameter; }
YY_BREAK
case 45:
YY_RULE_SETUP
{ lr_bispa= bispa_parameter; lr_bisexec= bisexec_parameter; return tokv_word_parameter; }
YY_BREAK
case 45:
YY_RULE_SETUP
-#line 18
8
"lexer.l"
+#line 18
9
"lexer.l"
{ lr_bispa= bispa_none; lr_bisexec= bisexec_version; return tokv_word_version; }
YY_BREAK
case 46:
YY_RULE_SETUP
{ lr_bispa= bispa_none; lr_bisexec= bisexec_version; return tokv_word_version; }
YY_BREAK
case 46:
YY_RULE_SETUP
-#line 1
89
"lexer.l"
+#line 1
90
"lexer.l"
{ lr_bispa= bispa_none; lr_bisexec= bisexec_toplevel; return tokv_word_toplevel; }
YY_BREAK
case 47:
YY_RULE_SETUP
{ lr_bispa= bispa_none; lr_bisexec= bisexec_toplevel; return tokv_word_toplevel; }
YY_BREAK
case 47:
YY_RULE_SETUP
-#line 19
0
"lexer.l"
+#line 19
1
"lexer.l"
{ lr_bispa= bispa_none; lr_bisexec= bisexec_override; return tokv_word_override; }
YY_BREAK
case 48:
YY_RULE_SETUP
{ lr_bispa= bispa_none; lr_bisexec= bisexec_override; return tokv_word_override; }
YY_BREAK
case 48:
YY_RULE_SETUP
-#line 19
1
"lexer.l"
+#line 19
2
"lexer.l"
{ lr_bispa= bispa_none; lr_bisexec= bisexec_shutdown; return tokv_word_shutdown; }
YY_BREAK
case 49:
YY_RULE_SETUP
{ lr_bispa= bispa_none; lr_bisexec= bisexec_shutdown; return tokv_word_shutdown; }
YY_BREAK
case 49:
YY_RULE_SETUP
-#line 19
2
"lexer.l"
+#line 19
3
"lexer.l"
{ lr_bispa= bispa_none; lr_bisexec= bisexec_reset; lr_dir= df_reset; return tokv_word_reset; }
YY_BREAK
case 50:
YY_RULE_SETUP
{ lr_bispa= bispa_none; lr_bisexec= bisexec_reset; lr_dir= df_reset; return tokv_word_reset; }
YY_BREAK
case 50:
YY_RULE_SETUP
-#line 19
3
"lexer.l"
+#line 19
4
"lexer.l"
{ lr_bispa= bispa_none; lr_bisexec= bisexec_execute; lr_dir= df_execute; return tokv_word_execute; }
YY_BREAK
case 51:
YY_RULE_SETUP
{ lr_bispa= bispa_none; lr_bisexec= bisexec_execute; lr_dir= df_execute; return tokv_word_execute; }
YY_BREAK
case 51:
YY_RULE_SETUP
-#line 19
4
"lexer.l"
+#line 19
5
"lexer.l"
{ lr_bispa= bispa_none; lr_bisexec= bisexec_help; return tokv_word_help; }
YY_BREAK
case 52:
YY_RULE_SETUP
{ lr_bispa= bispa_none; lr_bisexec= bisexec_help; return tokv_word_help; }
YY_BREAK
case 52:
YY_RULE_SETUP
-#line 19
5
"lexer.l"
+#line 19
6
"lexer.l"
{ lr_parameter= pf_service; return tokv_word_service; }
YY_BREAK
case 53:
YY_RULE_SETUP
{ lr_parameter= pf_service; return tokv_word_service; }
YY_BREAK
case 53:
YY_RULE_SETUP
-#line 19
6
"lexer.l"
+#line 19
7
"lexer.l"
{ lr_parameter= pf_callinguser; return tokv_word_callinguser; }
YY_BREAK
case 54:
YY_RULE_SETUP
{ lr_parameter= pf_callinguser; return tokv_word_callinguser; }
YY_BREAK
case 54:
YY_RULE_SETUP
-#line 19
7
"lexer.l"
+#line 19
8
"lexer.l"
{ lr_parameter= pf_callinggroup; return tokv_word_callinggroup; }
YY_BREAK
case 55:
YY_RULE_SETUP
{ lr_parameter= pf_callinggroup; return tokv_word_callinggroup; }
YY_BREAK
case 55:
YY_RULE_SETUP
-#line 19
8
"lexer.l"
+#line 19
9
"lexer.l"
{ lr_parameter= pf_callingusershell; return tokv_word_callingusershell; }
YY_BREAK
case 56:
YY_RULE_SETUP
{ lr_parameter= pf_callingusershell; return tokv_word_callingusershell; }
YY_BREAK
case 56:
YY_RULE_SETUP
-#line
199
"lexer.l"
+#line
200
"lexer.l"
{ lr_parameter= pf_serviceuser; return tokv_word_serviceuser; }
YY_BREAK
case 57:
YY_RULE_SETUP
{ lr_parameter= pf_serviceuser; return tokv_word_serviceuser; }
YY_BREAK
case 57:
YY_RULE_SETUP
-#line 20
0
"lexer.l"
+#line 20
1
"lexer.l"
{ lr_parameter= pf_servicegroup; return tokv_word_servicegroup; }
YY_BREAK
case 58:
YY_RULE_SETUP
{ lr_parameter= pf_servicegroup; return tokv_word_servicegroup; }
YY_BREAK
case 58:
YY_RULE_SETUP
-#line 20
1
"lexer.l"
+#line 20
2
"lexer.l"
{ lr_parameter= pf_serviceusershell; return tokv_word_serviceusershell; }
YY_BREAK
case 59:
YY_RULE_SETUP
{ lr_parameter= pf_serviceusershell; return tokv_word_serviceusershell; }
YY_BREAK
case 59:
YY_RULE_SETUP
-#line 20
2
"lexer.l"
+#line 20
3
"lexer.l"
{ lr_loglevel= LOG_DEBUG; return tokv_syslog_debug; }
YY_BREAK
case 60:
YY_RULE_SETUP
{ lr_loglevel= LOG_DEBUG; return tokv_syslog_debug; }
YY_BREAK
case 60:
YY_RULE_SETUP
-#line 20
3
"lexer.l"
+#line 20
4
"lexer.l"
{ lr_loglevel= LOG_INFO; return tokv_syslog_info; }
YY_BREAK
case 61:
YY_RULE_SETUP
{ lr_loglevel= LOG_INFO; return tokv_syslog_info; }
YY_BREAK
case 61:
YY_RULE_SETUP
-#line 20
4
"lexer.l"
+#line 20
5
"lexer.l"
{ lr_loglevel= LOG_NOTICE; return tokv_syslog_notice; }
YY_BREAK
case 62:
YY_RULE_SETUP
{ lr_loglevel= LOG_NOTICE; return tokv_syslog_notice; }
YY_BREAK
case 62:
YY_RULE_SETUP
-#line 20
5
"lexer.l"
+#line 20
6
"lexer.l"
{ lr_loglevel= LOG_WARNING; return tokv_syslog_warning; }
YY_BREAK
case 63:
YY_RULE_SETUP
{ lr_loglevel= LOG_WARNING; return tokv_syslog_warning; }
YY_BREAK
case 63:
YY_RULE_SETUP
-#line 20
6
"lexer.l"
+#line 20
7
"lexer.l"
{ lr_loglevel= LOG_ERR; return tokv_syslog_err; }
YY_BREAK
case 64:
YY_RULE_SETUP
{ lr_loglevel= LOG_ERR; return tokv_syslog_err; }
YY_BREAK
case 64:
YY_RULE_SETUP
-#line 20
7
"lexer.l"
+#line 20
8
"lexer.l"
{ lr_loglevel= LOG_CRIT; return tokv_syslog_crit; }
YY_BREAK
case 65:
YY_RULE_SETUP
{ lr_loglevel= LOG_CRIT; return tokv_syslog_crit; }
YY_BREAK
case 65:
YY_RULE_SETUP
-#line 20
8
"lexer.l"
+#line 20
9
"lexer.l"
{ lr_loglevel= LOG_ALERT; return tokv_syslog_alert; }
YY_BREAK
case 66:
YY_RULE_SETUP
{ lr_loglevel= LOG_ALERT; return tokv_syslog_alert; }
YY_BREAK
case 66:
YY_RULE_SETUP
-#line 2
09
"lexer.l"
+#line 2
10
"lexer.l"
{ lr_loglevel= LOG_EMERG; return tokv_syslog_emerg; }
YY_BREAK
case 67:
YY_RULE_SETUP
{ lr_loglevel= LOG_EMERG; return tokv_syslog_emerg; }
YY_BREAK
case 67:
YY_RULE_SETUP
-#line 21
0
"lexer.l"
+#line 21
1
"lexer.l"
{ lr_logfacility= LOG_AUTHPRIV; return tokv_syslog_authpriv; }
YY_BREAK
case 68:
YY_RULE_SETUP
{ lr_logfacility= LOG_AUTHPRIV; return tokv_syslog_authpriv; }
YY_BREAK
case 68:
YY_RULE_SETUP
-#line 21
1
"lexer.l"
+#line 21
2
"lexer.l"
{ lr_logfacility= LOG_CRON; return tokv_syslog_cron; }
YY_BREAK
case 69:
YY_RULE_SETUP
{ lr_logfacility= LOG_CRON; return tokv_syslog_cron; }
YY_BREAK
case 69:
YY_RULE_SETUP
-#line 21
2
"lexer.l"
+#line 21
3
"lexer.l"
{ lr_logfacility= LOG_DAEMON; return tokv_syslog_daemon; }
YY_BREAK
case 70:
YY_RULE_SETUP
{ lr_logfacility= LOG_DAEMON; return tokv_syslog_daemon; }
YY_BREAK
case 70:
YY_RULE_SETUP
-#line 21
3
"lexer.l"
+#line 21
4
"lexer.l"
{ lr_logfacility= LOG_KERN; return tokv_syslog_kern; }
YY_BREAK
case 71:
YY_RULE_SETUP
{ lr_logfacility= LOG_KERN; return tokv_syslog_kern; }
YY_BREAK
case 71:
YY_RULE_SETUP
-#line 21
4
"lexer.l"
+#line 21
5
"lexer.l"
{ lr_logfacility= LOG_LPR; return tokv_syslog_lpr; }
YY_BREAK
case 72:
YY_RULE_SETUP
{ lr_logfacility= LOG_LPR; return tokv_syslog_lpr; }
YY_BREAK
case 72:
YY_RULE_SETUP
-#line 21
5
"lexer.l"
+#line 21
6
"lexer.l"
{ lr_logfacility= LOG_MAIL; return tokv_syslog_mail; }
YY_BREAK
case 73:
YY_RULE_SETUP
{ lr_logfacility= LOG_MAIL; return tokv_syslog_mail; }
YY_BREAK
case 73:
YY_RULE_SETUP
-#line 21
6
"lexer.l"
+#line 21
7
"lexer.l"
{ lr_logfacility= LOG_NEWS; return tokv_syslog_news; }
YY_BREAK
case 74:
YY_RULE_SETUP
{ lr_logfacility= LOG_NEWS; return tokv_syslog_news; }
YY_BREAK
case 74:
YY_RULE_SETUP
-#line 21
7
"lexer.l"
+#line 21
8
"lexer.l"
{ lr_logfacility= LOG_SYSLOG; return tokv_syslog_syslog; }
YY_BREAK
case 75:
YY_RULE_SETUP
{ lr_logfacility= LOG_SYSLOG; return tokv_syslog_syslog; }
YY_BREAK
case 75:
YY_RULE_SETUP
-#line 21
8
"lexer.l"
+#line 21
9
"lexer.l"
{ lr_logfacility= LOG_USER; return tokv_syslog_user; }
YY_BREAK
case 76:
YY_RULE_SETUP
{ lr_logfacility= LOG_USER; return tokv_syslog_user; }
YY_BREAK
case 76:
YY_RULE_SETUP
-#line 2
19
"lexer.l"
+#line 2
20
"lexer.l"
{ lr_logfacility= LOG_UUCP; return tokv_syslog_uucp; }
YY_BREAK
case 77:
YY_RULE_SETUP
{ lr_logfacility= LOG_UUCP; return tokv_syslog_uucp; }
YY_BREAK
case 77:
YY_RULE_SETUP
-#line 22
0
"lexer.l"
+#line 22
1
"lexer.l"
{ lr_logfacility= LOG_LOCAL0; return tokv_syslog_local0; }
YY_BREAK
case 78:
YY_RULE_SETUP
{ lr_logfacility= LOG_LOCAL0; return tokv_syslog_local0; }
YY_BREAK
case 78:
YY_RULE_SETUP
-#line 22
1
"lexer.l"
+#line 22
2
"lexer.l"
{ lr_logfacility= LOG_LOCAL1; return tokv_syslog_local1; }
YY_BREAK
case 79:
YY_RULE_SETUP
{ lr_logfacility= LOG_LOCAL1; return tokv_syslog_local1; }
YY_BREAK
case 79:
YY_RULE_SETUP
-#line 22
2
"lexer.l"
+#line 22
3
"lexer.l"
{ lr_logfacility= LOG_LOCAL2; return tokv_syslog_local2; }
YY_BREAK
case 80:
YY_RULE_SETUP
{ lr_logfacility= LOG_LOCAL2; return tokv_syslog_local2; }
YY_BREAK
case 80:
YY_RULE_SETUP
-#line 22
3
"lexer.l"
+#line 22
4
"lexer.l"
{ lr_logfacility= LOG_LOCAL3; return tokv_syslog_local3; }
YY_BREAK
case 81:
YY_RULE_SETUP
{ lr_logfacility= LOG_LOCAL3; return tokv_syslog_local3; }
YY_BREAK
case 81:
YY_RULE_SETUP
-#line 22
4
"lexer.l"
+#line 22
5
"lexer.l"
{ lr_logfacility= LOG_LOCAL4; return tokv_syslog_local4; }
YY_BREAK
case 82:
YY_RULE_SETUP
{ lr_logfacility= LOG_LOCAL4; return tokv_syslog_local4; }
YY_BREAK
case 82:
YY_RULE_SETUP
-#line 22
5
"lexer.l"
+#line 22
6
"lexer.l"
{ lr_logfacility= LOG_LOCAL5; return tokv_syslog_local5; }
YY_BREAK
case 83:
YY_RULE_SETUP
{ lr_logfacility= LOG_LOCAL5; return tokv_syslog_local5; }
YY_BREAK
case 83:
YY_RULE_SETUP
-#line 22
6
"lexer.l"
+#line 22
7
"lexer.l"
{ lr_logfacility= LOG_LOCAL6; return tokv_syslog_local6; }
YY_BREAK
case 84:
YY_RULE_SETUP
{ lr_logfacility= LOG_LOCAL6; return tokv_syslog_local6; }
YY_BREAK
case 84:
YY_RULE_SETUP
-#line 22
7
"lexer.l"
+#line 22
8
"lexer.l"
{ lr_logfacility= LOG_LOCAL7; return tokv_syslog_local7; }
YY_BREAK
case 85:
YY_RULE_SETUP
{ lr_logfacility= LOG_LOCAL7; return tokv_syslog_local7; }
YY_BREAK
case 85:
YY_RULE_SETUP
-#line 22
8
"lexer.l"
+#line 22
9
"lexer.l"
{ return tokv_word_read; }
YY_BREAK
case 86:
YY_RULE_SETUP
{ return tokv_word_read; }
YY_BREAK
case 86:
YY_RULE_SETUP
-#line 2
29
"lexer.l"
+#line 2
30
"lexer.l"
{ return tokv_word_write; }
YY_BREAK
case 87:
YY_RULE_SETUP
{ return tokv_word_write; }
YY_BREAK
case 87:
YY_RULE_SETUP
-#line 23
0
"lexer.l"
+#line 23
1
"lexer.l"
{ return tokv_dollar; }
YY_BREAK
case 88:
YY_RULE_SETUP
{ return tokv_dollar; }
YY_BREAK
case 88:
YY_RULE_SETUP
-#line 23
1
"lexer.l"
+#line 23
2
"lexer.l"
{ return tokv_openparen; }
YY_BREAK
case 89:
YY_RULE_SETUP
{ return tokv_openparen; }
YY_BREAK
case 89:
YY_RULE_SETUP
-#line 23
2
"lexer.l"
+#line 23
3
"lexer.l"
{ return tokv_closeparen; }
YY_BREAK
case 90:
YY_RULE_SETUP
{ return tokv_closeparen; }
YY_BREAK
case 90:
YY_RULE_SETUP
-#line 23
3
"lexer.l"
+#line 23
4
"lexer.l"
{ return tokv_not; }
YY_BREAK
case 91:
YY_RULE_SETUP
{ return tokv_not; }
YY_BREAK
case 91:
YY_RULE_SETUP
-#line 23
4
"lexer.l"
+#line 23
5
"lexer.l"
{ return tokv_and; }
YY_BREAK
case 92:
YY_RULE_SETUP
{ return tokv_and; }
YY_BREAK
case 92:
YY_RULE_SETUP
-#line 23
5
"lexer.l"
+#line 23
6
"lexer.l"
{ return tokv_or; }
YY_BREAK
case 93:
YY_RULE_SETUP
{ return tokv_or; }
YY_BREAK
case 93:
YY_RULE_SETUP
-#line 23
6
"lexer.l"
+#line 23
7
"lexer.l"
{ lr_dir= df_error; lr_loglevel= LOG_ERR; return tokv_word_error; }
YY_BREAK
case 94:
YY_RULE_SETUP
{ lr_dir= df_error; lr_loglevel= LOG_ERR; return tokv_word_error; }
YY_BREAK
case 94:
YY_RULE_SETUP
-#line 24
0
"lexer.l"
+#line 24
1
"lexer.l"
{
char *ep;
lr_min=lr_max= (int)strtoul(yytext,&ep,10);
{
char *ep;
lr_min=lr_max= (int)strtoul(yytext,&ep,10);
@@
-1605,7
+1606,7
@@
YY_RULE_SETUP
YY_BREAK
case 95:
YY_RULE_SETUP
YY_BREAK
case 95:
YY_RULE_SETUP
-#line 24
6
"lexer.l"
+#line 24
7
"lexer.l"
{
char *ep;
lr_min= (int)strtoul(yytext,&ep,10);
{
char *ep;
lr_min= (int)strtoul(yytext,&ep,10);
@@
-1622,7
+1623,7
@@
YY_RULE_SETUP
YY_BREAK
case 96:
YY_RULE_SETUP
YY_BREAK
case 96:
YY_RULE_SETUP
-#line 2
59
"lexer.l"
+#line 2
60
"lexer.l"
{
char *ep;
lr_min= (int)strtoul(yytext,&ep,10);
{
char *ep;
lr_min= (int)strtoul(yytext,&ep,10);
@@
-1634,27
+1635,27
@@
YY_RULE_SETUP
YY_BREAK
case 97:
YY_RULE_SETUP
YY_BREAK
case 97:
YY_RULE_SETUP
-#line 26
7
"lexer.l"
+#line 26
8
"lexer.l"
return tokv_lwsp;
YY_BREAK
case 98:
YY_RULE_SETUP
return tokv_lwsp;
YY_BREAK
case 98:
YY_RULE_SETUP
-#line 26
8
"lexer.l"
+#line 26
9
"lexer.l"
return tokv_lwsp;
YY_BREAK
case 99:
YY_RULE_SETUP
return tokv_lwsp;
YY_BREAK
case 99:
YY_RULE_SETUP
-#line 2
69
"lexer.l"
+#line 2
70
"lexer.l"
cstate->lineno++; return tokv_newline;
YY_BREAK
case 100:
YY_RULE_SETUP
cstate->lineno++; return tokv_newline;
YY_BREAK
case 100:
YY_RULE_SETUP
-#line 27
0
"lexer.l"
+#line 27
1
"lexer.l"
cstate->lineno++; return tokv_newline;
YY_BREAK
case 101:
YY_RULE_SETUP
cstate->lineno++; return tokv_newline;
YY_BREAK
case 101:
YY_RULE_SETUP
-#line 27
1
"lexer.l"
+#line 27
2
"lexer.l"
{
parseerrprint("missing newline at eof after comment");
return tokv_error;
{
parseerrprint("missing newline at eof after comment");
return tokv_error;
@@
-1662,14
+1663,14
@@
YY_RULE_SETUP
YY_BREAK
case 102:
YY_RULE_SETUP
YY_BREAK
case 102:
YY_RULE_SETUP
-#line 27
5
"lexer.l"
+#line 27
6
"lexer.l"
{
return dequote(yytext);
}
YY_BREAK
case 103:
YY_RULE_SETUP
{
return dequote(yytext);
}
YY_BREAK
case 103:
YY_RULE_SETUP
-#line 27
8
"lexer.l"
+#line 27
9
"lexer.l"
{
parseerrprint("misquoted or unterminated string");
return tokv_error;
{
parseerrprint("misquoted or unterminated string");
return tokv_error;
@@
-1677,16
+1678,16
@@
YY_RULE_SETUP
YY_BREAK
case 104:
YY_RULE_SETUP
YY_BREAK
case 104:
YY_RULE_SETUP
-#line 28
2
"lexer.l"
+#line 28
3
"lexer.l"
return tokv_barestring;
YY_BREAK
case YY_STATE_EOF(INITIAL):
return tokv_barestring;
YY_BREAK
case YY_STATE_EOF(INITIAL):
-#line 28
3
"lexer.l"
+#line 28
4
"lexer.l"
return tokv_eof;
YY_BREAK
case 105:
YY_RULE_SETUP
return tokv_eof;
YY_BREAK
case 105:
YY_RULE_SETUP
-#line 28
6
"lexer.l"
+#line 28
7
"lexer.l"
ECHO;
YY_BREAK
ECHO;
YY_BREAK
@@
-2572,7
+2573,7
@@
int main()
return 0;
}
#endif
return 0;
}
#endif
-#line 28
6
"lexer.l"
+#line 28
7
"lexer.l"
const char *const builtinservicehelpstrings[]= {
const char *const builtinservicehelpstrings[]= {