Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.74
 
1.75
 
MAIN:ragge:20080107213236
 
cpp.c
_>804804 pragoper(void)
 805805 {
 806806         usch *opb;
<>807 -        int t;
  807+        int t, plev;
808808 
 809809         slow = 1;
 810810         putstr((usch *)"\n#pragma ");
     
 !
815815         if ((t = yylex()) == WSPACE)
 816816                 t = yylex();
 817817         opb = stringbuf;
<>818 -        while (t != ')') {
  818+        for (plev = 0; ; t = yylex()) {
  819+                if (t == '(')
  820+                        plev++;
  821+                if (t == ')')
  822+                        plev--;
  823+                if (plev < 0)
  824+                        break;
819825                 savstr((usch *)yytext);
<>820 -                t = yylex();
821826         }
<> 827+
822828         savch(0);
 823829         cunput(WARN);
 824830         unpstr(opb);
 825831         stringbuf = opb;
 826832         expmac(NULL);
<> 833+        cunput('\n');
827834         while (stringbuf > opb)
 828835                 cunput(*--stringbuf);
<>829 -        if ((t = yylex()) != STRING)
 830 -                goto bad;
 831 -        opb = (usch *)yytext;
 832 -        if (*opb++ == 'L')
 833 -                opb++;
 834 -        while ((t = *opb++) != '\"') {
 835 -                if (t == '\\' && (*opb == '\"' || *opb == '\\'))
 836 -                        t = *opb++;
 837 -                putch(t);
  836+        while ((t = yylex()) != '\n') {
  837+                if (t == WSPACE)
  838+                        continue;
  839+                if (t != STRING)
  840+                        goto bad;
  841+                opb = (usch *)yytext;
  842+                if (*opb++ == 'L')
  843+                        opb++;
  844+                while ((t = *opb++) != '\"') {
  845+                        if (t == '\\' && (*opb == '\"' || *opb == '\\'))
  846+                                t = *opb++;
  847+                        putch(t);
  848+                }
838849         }
<> 850+
<_839851         putch('\n');
 840852         prtline();
 841853         return;
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-11-01 01:32 +0100