Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.103
 
1.104
 
MAIN:plunky:20140606131903
 
gcc_compat.c
_>611611 pragmas_gcc(char *t)
 612612 {
 613613         char u;
<>614 -        int warn, err, i;
 615 -        extern bittype warnary[], werrary[];
 616 -        extern char *flagstr[], *pragstore;
  614+        extern char *pragstore;
617615 
 618616         if (strcmp((t = pragtok(NULL)), "diagnostic") == 0) {
<>619 -                warn = err = 0;
  617+                int warn, err;
  618+
620619                 if (strcmp((t = pragtok(NULL)), "ignored") == 0)
<>621 -                        ;
  620+                        warn = 0, err = 0;
622621                 else if (strcmp(t, "warning") == 0)
<>623 -                        warn = 1;
  622+                        warn = 1, err = 0;
624623                 else if (strcmp(t, "error") == 0)
<>625 -                        err = 1;
  624+                        warn = 1, err = 1;
626625                 else
 627626                         return 1;
<> 627+
628628                 if (eat('\"') || eat('-'))
 629629                         return 1;
<> 630+
630631                 for (t = pragstore; *t && *t != '\"'; t++)
 631632                         ;
<> 633+
632634                 u = *t;
 633635                 *t = 0;
<>634 -                for (i = 0; i < NUMW; i++) {
 635 -                        if (strcmp(flagstr[i], pragstore+1) != 0)
 636 -                                continue;
 637 -                        if (err) {
 638 -                                BITSET(warnary, i);
 639 -                                BITSET(werrary, i);
 640 -                        } else if (warn) {
 641 -                                BITSET(warnary, i);
 642 -                                BITCLEAR(werrary, i);
 643 -                        } else {
 644 -                                BITCLEAR(warnary, i);
 645 -                                BITCLEAR(werrary, i);
 646 -                        }
 647 -                        return 0;
 648 -                }
  636+                Wset(pragstore + 1, warn, err);
<_649637                 *t = u;
 650638         } else if (strcmp(t, "poison") == 0) {
 651639                 /* currently ignore */;
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-28 18:58 +0100