int yylex(void);
-int yydebug=0;
-void *tmp; /* Variable to temporarily hold nodes before insertion to list */
+static void *tmp; /* Variable to temporarily hold nodes before insertion to list */
%}
NUMBER YEARS timespec_ { $$ = $1 * 60 * 60 * 24 * 365 + $3; }
;
-sizespec_: { $$ = 0; } | sizespec;
-sizespec: NUMBER sizespec_ { $$ = $1 + $2; } |
- NUMBER BYTES sizespec_ { $$ = $1 + $3; } |
- NUMBER KBYTES sizespec_ { $$ = $1 * 1024 + $3; } |
- NUMBER MBYTES sizespec_ { $$ = $1 * 1024 * 1024 + $3; }
- ;
+sizespec_: { $$ = 0; } | sizespec;
+sizespec: NUMBER sizespec_ { $$ = $1 + $2; } |
+ NUMBER BYTES sizespec_ { $$ = $1 + $3; } |
+ NUMBER KBYTES sizespec_ { $$ = $1 * 1024 + $3; } |
+ NUMBER MBYTES sizespec_ { $$ = $1 * 1024 * 1024 + $3; }
+ ;
-/*************************** OPTIONS BLOCK ***********************/
+/*************************** OPTIONS BLOCK ***********************/
options_entry: OPTIONS '{' options_items '}' ';';
options_items: options_items options_item |
options_item;
-options_item: options_negcache |
+options_item: options_negcache |
options_negcache_rebuild |
- options_pidfile |
- options_dns_fdlimit |
- options_scanlog |
+ options_pidfile |
+ options_dns_fdlimit |
+ options_scanlog |
error;
options_negcache: NEGCACHE '=' timespec ';'
OptionsItem->scanlog = xstrdup($3);
};
-/*************************** IRC BLOCK ***************************/
+/*************************** IRC BLOCK ***************************/
irc_entry: IRC '{' irc_items '}' ';';
irc_items: irc_items irc_item |
/************************** CHANNEL BLOCK *************************/
-
channel_entry:
{
node_t *node;
item->invite = xstrdup($3);
};
-/*************************** USER BLOCK ***************************/
+/*************************** USER BLOCK ***************************/
user_entry:
{
node_t *node;
list_add(item->scanners, node);
};
-/*************************** SCANNER BLOCK ***************************/
+/*************************** SCANNER BLOCK ***************************/
scanner_entry:
{
node_t *node;
list_add(item2->protocols, node);
};
-/*************************** OPM BLOCK ***************************/
+/*************************** OPM BLOCK ***************************/
opm_entry: OPM '{' opm_items '}' ';' ;
opm_items: opm_items opm_item |
OpmItem->sendmail = xstrdup($3);
};
-/************************** BLACKLIST BLOCK *************************/
+/************************** BLACKLIST BLOCK *************************/
opm_blacklist_entry:
{
node_t *node;
blacklist_ban_unknown: BAN_UNKNOWN '=' NUMBER ';'
{
- struct BlacklistConf *item = tmp;
+ struct BlacklistConf *item = tmp;
- item->ban_unknown = $3;
+ item->ban_unknown = $3;
};
blacklist_reply: REPLY '{' blacklist_reply_items '}' ';';
list_add(blacklist->reply, node);
};
-/*************************** EXEMPT BLOCK ***************************/
-
+/*************************** EXEMPT BLOCK ***************************/
exempt_entry: EXEMPT '{' exempt_items '}' ';' ;
exempt_items: exempt_items exempt_item |
exempt_item;
-exempt_item: exempt_mask |
+exempt_item: exempt_mask |
error;
exempt_mask: MASK '=' STRING ';'