Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.7
 
1.8
 
MAIN:plunky:20140606131903
 
gcc_compat.c
_>513513 pragmas_gcc(char *t)
 514514 {
 515515         char u;
<>516 -        int warn, err, i;
 517 -        extern bittype warnary[], werrary[];
 518 -        extern char *flagstr[], *pragstore;
  516+        extern char *pragstore;
519517 
 520518         if (strcmp((t = pragtok(NULL)), "diagnostic") == 0) {
<>521 -                warn = err = 0;
  519+                int warn, err;
  520+
522521                 if (strcmp((t = pragtok(NULL)), "ignored") == 0)
<>523 -                        ;
  522+                        warn = 0, err = 0;
524523                 else if (strcmp(t, "warning") == 0)
<>525 -                        warn = 1;
  524+                        warn = 1, err = 0;
526525                 else if (strcmp(t, "error") == 0)
<>527 -                        err = 1;
  526+                        warn = 1, err = 1;
528527                 else
 529528                         return 1;
<> 529+
530530                 if (eat('\"') || eat('-'))
 531531                         return 1;
<> 532+
532533                 for (t = pragstore; *t && *t != '\"'; t++)
 533534                         ;
<> 535+
534536                 u = *t;
 535537                 *t = 0;
<>536 -                for (i = 0; i < NUMW; i++) {
 537 -                        if (strcmp(flagstr[i], pragstore+1) != 0)
 538 -                                continue;
 539 -                        if (err) {
 540 -                                BITSET(warnary, i);
 541 -                                BITSET(werrary, i);
 542 -                        } else if (warn) {
 543 -                                BITSET(warnary, i);
 544 -                                BITCLEAR(werrary, i);
 545 -                        } else {
 546 -                                BITCLEAR(warnary, i);
 547 -                                BITCLEAR(werrary, i);
 548 -                        }
 549 -                        return 0;
 550 -                }
  538+                Wset(pragstore + 1, warn, err);
<_551539                 *t = u;
 552540         } else if (strcmp(t, "poison") == 0) {
 553541                 /* currently ignore */;
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-10-31 19:39 +0100