Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.4
 
1.5
 
MAIN:plunky:20140818112734
 
scan.l
_>145145 0[xX]{H}+{IS}?          { yylval.nodep = cvtdig(16); return(C_ICON); }
 146146 0{D}+{IS}?              { yylval.nodep = cvtdig(8); return(C_ICON); }
 147147 {D}+{IS}?               { yylval.nodep = cvtdig(10); return(C_ICON); }
<>148 -L'(\\.|[^\\'])+'        { yylval.nodep = wcharcon(); return(C_ICON); }
 149 -'(\\.|[^\\'])+'         { yylval.nodep = charcon(); return(C_ICON); }
  148+L'(\\.|[^\\'])*'        { yylval.nodep = wcharcon(); return(C_ICON); }
  149+'(\\.|[^\\'])*'         { yylval.nodep = charcon(); return(C_ICON); }
150150 
 151151 {D}+{E}{FS}?            { yylval.nodep = floatcon(yytext); return(C_FCON); }
 152152 {D}*"."{D}+({E})?{FS}?  { yylval.nodep = floatcon(yytext); return(C_FCON); }
     
 !
573573         int val, i = 0;
 574574         char *pp = yytext;
 575575 
<>576 -        if (*pp == 'L')
 577 -                pp++;
 578 -        pp++;
  576+        pp++;   /* skip ' */
579577         while (*pp != '\'') {
 580578                 if (*pp++ == '\\') {
 581579                         val = esccon(&pp);
     
 !
587585 
 588586         if (i == 0)
 589587                 uerror("empty character constant");
<>590 -        if (i > (SZINT/SZCHAR) || (i>1))
  588+        else if (i > (SZINT/SZCHAR) || (i>1))
591589                 werror("too many characters in character constant");
 592590         return bcon(lastcon);
 593591 }
     
 !
599597         unsigned int val, i = 0;
 600598         char *pp = yytext;
 601599 
<>602 -        if (*pp == 'L')
 603 -                pp++;
 604 -        pp++;
  600+        pp++;   /* skip L */
  601+        pp++;   /* skip ' */
605602         while (*pp != '\'') {
 606603                 if (*pp++ == '\\') {
 607604                         val = esccon(&pp);
     
 !
617614 
 618615         if (i == 0)
 619616                 uerror("empty wide-character constant");
<>620 -        if (i > 1)
  617+        else if (i > 1)
<_621618                 werror("too many characters in wide-character constant");
 622619         return xbcon(lastcon, NULL, ctype(UNSIGNED));
 623620 }
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-22 22:22 +0100