-rw-r--r-- | library/backend/vcc.y | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/library/backend/vcc.y b/library/backend/vcc.y index 4c79368..bec2955 100644 --- a/library/backend/vcc.y +++ b/library/backend/vcc.y | |||
@@ -443,3 +443,3 @@ static void enterAttr(const char *s1, const char *s2) | |||
443 | { | 443 | { |
444 | const char *p1, *p2; | 444 | const char *p1, *p2=0; |
445 | p1 = lookupProp_(s1); | 445 | p1 = lookupProp_(s1); |
@@ -815,3 +815,3 @@ static void finiLex() { | |||
815 | */ | 815 | */ |
816 | static char * lexGetDataFromBase64() | 816 | static int lexGetDataFromBase64() |
817 | { | 817 | { |
@@ -828,2 +828,3 @@ static char * lexGetDataFromBase64() | |||
828 | c = lexGetc(); | 828 | c = lexGetc(); |
829 | lexSkipWhite(); | ||
829 | if (c == '\n') { | 830 | if (c == '\n') { |
@@ -850,4 +851,2 @@ static char * lexGetDataFromBase64() | |||
850 | pad++; | 851 | pad++; |
851 | } else if ((c == ' ') || (c == '\t')) { | ||
852 | continue; | ||
853 | } else { /* error condition */ | 852 | } else { /* error condition */ |
@@ -860,3 +859,5 @@ static char * lexGetDataFromBase64() | |||
860 | while (c != EOF) { | 859 | while (c != EOF) { |
861 | if (c == '\n' && lexLookahead() == '\n') { | 860 | if (c == '\n') { |
861 | lexSkipWhite(); | ||
862 | if(lexLookahead() == '\n') { | ||
862 | ++mime_lineNum; | 863 | ++mime_lineNum; |
@@ -864,2 +865,3 @@ static char * lexGetDataFromBase64() | |||
864 | } | 865 | } |
866 | } | ||
865 | c = lexGetc(); | 867 | c = lexGetc(); |
@@ -867,3 +869,3 @@ static char * lexGetDataFromBase64() | |||
867 | } | 869 | } |
868 | return NULL; | 870 | return c != EOF; |
869 | } | 871 | } |
@@ -913,3 +915,3 @@ static char * lexGetDataFromBase64() | |||
913 | } | 915 | } |
914 | return 0; | 916 | return bytesLen; |
915 | } | 917 | } |
@@ -944,3 +946,3 @@ static char* lexGetQuotedPrintable() | |||
944 | 946 | ||
945 | while (c != EOF && c != ';') { | 947 | while (c != EOF && (c != ';' || !fieldedProp)) { |
946 | if (c == '\n') { | 948 | if (c == '\n') { |
@@ -1034,7 +1036,4 @@ static int yylex() { | |||
1034 | /* get each char and convert to bin on the fly... */ | 1036 | /* get each char and convert to bin on the fly... */ |
1035 | p = lexGetDataFromBase64(); | 1037 | yylval.str = NULL; |
1036 | #if 0 | 1038 | return lexGetDataFromBase64() ? STRING : 0; |
1037 | yylval.str = p; | ||
1038 | return STRING; | ||
1039 | #endif | ||
1040 | } | 1039 | } |