Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.38
 
1.39
 
MAIN:ragge:20100613191631
 
token.c
_>6565 static void cpperror(void);
 6666 static void pragmastmt(void);
 6767 static void undefstmt(void);
<>68 -static void cpperror(void);
  68+static void cppwarning(void);
6969 static void elifstmt(void);
 7070 static void badop(const char *);
 7171 static int chktg(void);
     
 !
10781078 }
 10791079 
 10801080 static void
<> 1081+cppwarning(void)
  1082+{
  1083+        usch *cp;
  1084+        int c;
  1085+
  1086+        if (flslvl)
  1087+                return;
  1088+        c = sloscan();
  1089+        if (c != WSPACE && c != '\n')
  1090+                error("bad warning");
  1091+
  1092+        /* svinp() add an unwanted \n */
  1093+        cp = stringbuf;
  1094+        while ((c = inch()) && c != '\n')
  1095+                savch(c);
  1096+        savch(0);
  1097+
  1098+        if (flslvl)
  1099+                stringbuf = cp;
  1100+        else
  1101+                warning("#warning %s", cp);
  1102+
  1103+        unch('\n');
  1104+}
  1105+
  1106+static void
10811107 undefstmt(void)
 10821108 {
 10831109         struct symtab *np;
     
 !
11611187         { "else", elsestmt },
 11621188         { "endif", endifstmt },
 11631189         { "error", cpperror },
<> 1190+        { "warning", cppwarning },
<_11641191         { "define", define },
 11651192         { "undef", undefstmt },
 11661193         { "line", line },
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-09-02 18:55 +0200