aboutsummaryrefslogtreecommitdiffstats
path: root/libversit
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-10-11 19:03:39 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-10-11 19:03:39 +0800
commitb035a84ceb50bec428d057790c5b12c180ada015 (patch)
treeeea1ed3e2684b2b3a19d0e63a6257dc6854badc3 /libversit
parentfa7670918ad5d44570506681cc57bcb2172e2ddc (diff)
downloadgsoc2013-evolution-b035a84ceb50bec428d057790c5b12c180ada015.tar
gsoc2013-evolution-b035a84ceb50bec428d057790c5b12c180ada015.tar.gz
gsoc2013-evolution-b035a84ceb50bec428d057790c5b12c180ada015.tar.bz2
gsoc2013-evolution-b035a84ceb50bec428d057790c5b12c180ada015.tar.lz
gsoc2013-evolution-b035a84ceb50bec428d057790c5b12c180ada015.tar.xz
gsoc2013-evolution-b035a84ceb50bec428d057790c5b12c180ada015.tar.zst
gsoc2013-evolution-b035a84ceb50bec428d057790c5b12c180ada015.zip
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
Diffstat (limited to 'libversit')
-rw-r--r--libversit/vcc.y11
1 files 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;
}