From b035a84ceb50bec428d057790c5b12c180ada015 Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Mon, 11 Oct 1999 11:03:39 +0000 Subject: When finding a colon, the lex consumed all line separators, making it * libversit/vcc.y (yylex): When finding a colon, the lex consumed all line separators, making it impossible to have empty values (bug 1260). Arturo svn path=/trunk/; revision=1324 --- libversit/vcc.y | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libversit/vcc.y b/libversit/vcc.y index 7dde971f35..9b4acda386 100644 --- a/libversit/vcc.y +++ b/libversit/vcc.y @@ -117,7 +117,7 @@ DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable. /**** Types, Constants ****/ -#define YYDEBUG 0 /* 1 to compile in some debugging code */ +#define YYDEBUG 1 /* 1 to compile in some debugging code */ #define MAXTOKEN 256 /* maximum token (line) length */ #define YYSTACKSIZE 50 /* ~unref ? */ #define MAXLEVEL 10 /* max # of nested objects parseable */ @@ -296,8 +296,7 @@ values: value SEMICOLON { enterValues($1); } values ; value: STRING - | - { $$ = 0; } + | { $$ = 0; } ; vcal: @@ -1007,7 +1006,9 @@ static int yylex() { if (c == ';') { DBG_(("db: SEMICOLON\n")); lexPushLookaheadc(c); +#ifdef _SUPPORT_LINE_FOLDING handleMoreRFC822LineBreak(c); +#endif lexSkipLookahead(); return SEMICOLON; } @@ -1058,12 +1059,12 @@ static int yylex() { case ':': { /* consume all line separator(s) adjacent to each other */ /* ignoring linesep immediately after colon. */ - c = lexLookahead(); +/* c = lexLookahead(); while (strchr("\n",c)) { lexSkipLookahead(); c = lexLookahead(); ++mime_lineNum; - } + }*/ DBG_(("db: COLON\n")); return COLON; } -- cgit