From 4cf99da5da3d1e2d54cf2ac81c0dfd5bf94ca98a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 8 Nov 1996 05:38:41 +0000 Subject: Implement batchlimit option. svn path=/trunk/; revision=503 --- rcfile_y.y | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'rcfile_y.y') diff --git a/rcfile_y.y b/rcfile_y.y index d41cecc3..5cbbc331 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -43,6 +43,7 @@ static void prc_reset(); %token DEFAULTS POLL PROTOCOL AUTHENTICATE TIMEOUT KPOP KERBEROS %token USERNAME PASSWORD FOLDER SMTPHOST MDA IS HERE THERE TO MAP LIMIT +%token SET BATCHLIMIT %token PROTO %token STRING %token NUMBER @@ -62,7 +63,9 @@ statement_list : statement | statement_list statement ; -statement : define_server serverspecs userspecs +/* future global options should also have the form SET */ +statement : define_server serverspecs userspecs + | SET BATCHLIMIT MAP NUMBER {batchlimit = $4;} ; define_server : POLL STRING {strcpy(current.servername, $2);} @@ -152,10 +155,10 @@ static struct query *hosttail; /* where to add new elements */ void yyerror (s) /* report a syntax error */ -const char *s; /* error string */ +char *s; /* error string */ { - fprintf(stderr,"%s line %d: %s at %s\n", rcfile, prc_lineno, s, yytext); - prc_errflag++; + fprintf(stderr,"%s line %d: %s at %s\n", rcfile, prc_lineno, s, yytext); + prc_errflag++; } int prc_filecheck(pathname) -- cgit v1.2.3