From 65179f921d37756ed89e1ef7965e13bd5f319650 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 30 Jan 1997 17:29:36 +0000 Subject: Add stripcr option. svn path=/trunk/; revision=842 --- rcfile_y.y | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'rcfile_y.y') diff --git a/rcfile_y.y b/rcfile_y.y index dfc3dbdd..e9a381b0 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -49,7 +49,7 @@ static void prc_reset(); %token PROTO %token STRING %token NUMBER -%token KEEP FLUSH FETCHALL REWRITE DNS PORT +%token KEEP FLUSH FETCHALL REWRITE STRIPCR DNS PORT /* these are actually used by the lexer */ %token FLAG_TRUE 2 @@ -76,7 +76,10 @@ statement : SET LOGFILE MAP STRING {logfile = xstrdup($4);} */ | define_server serverspecs {prc_register(); prc_reset();} | define_server serverspecs userspecs - {memset(¤t,'\0',sizeof(current));} + { + memset(¤t,'\0',sizeof(current)); + current.stripcr = -1; + } ; define_server : POLL STRING {current.server.names = (struct idlist *)NULL; @@ -192,6 +195,7 @@ user_option : TO localnames HERE | FLUSH {current.flush = ($1==FLAG_TRUE);} | FETCHALL {current.fetchall = ($1==FLAG_TRUE);} | REWRITE {current.no_rewrite =($1==FLAG_FALSE);} + | STRIPCR {current.stripcr = ($1==FLAG_TRUE);} | LIMIT NUMBER {current.limit = $2;} | FETCHLIMIT NUMBER {current.fetchlimit = $2;} | BATCHLIMIT NUMBER {current.batchlimit = $2;} -- cgit v1.2.3