Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.42
 
1.43
 
MAIN:ragge:20110109152539
 
token.c
     
 !
_> 84+extern int dflag;
     
 !
<>100 -#define C_SPEC  1
 101 -#define C_EP    2
 102 -#define C_ID    4
 103 -#define C_I     (C_SPEC|C_ID)
 104 -#define C_2     8               /* for yylex() tokenizing */
 105 -static char spechr[256] = {
  101+char spechr[256] = {
  102+        0,      0,      0,      0,      C_SPEC, C_SPEC, 0,      0,
  103+        0,      C_WSNL, C_SPEC|C_WSNL,  0,
  104+        0,      C_WSNL, 0,      0,
     
 !
<>107 -        0,      0,      C_SPEC0,      0,      0,      0,      0,
     
 !
<>109 -        0,      0,      0,      0,      0,      0,      0,      0,
     
 !
<>111 -        0,      C_2,    C_SPEC0,      0,      0,      C_2,    C_SPEC,
  108+        C_WSNLC_2,    C_SPEC0,      0,      0,      C_2,    C_SPEC,
     
 !
<> 125+/*
  126+ * No-replacement array.  If a macro is found and exists in this array
  127+ * then no replacement shall occur.  This is a stack.
  128+ */
  129+struct symtab *norep[RECMAX];   /* Symbol table index table */
  130+int norepptr = 1;                       /* Top of index table */
  131+unsigned char bptr[RECMAX];     /* currently active noexpand macro stack */
  132+int bidx;                       /* Top of bptr stack */
  133+
     
 !
<>152 -        int ch, i;
  158+        int ch, i, ccnt, onemore;
     
 !
<> 165+                if (dflag>1)
  166+                        printf("fastscan ch %d (%c)\n", ch, ch > 31 ? ch : '@');
     
 !
<> 172+                case EXP:
  173+                case NEX:
  174+                case WARN:
  175+                case CONC:
  176+                        error("bad char passed");
  177+                        break;
  178+
     
 !
<>242 -                                PUTCH(ch);
  257+                                if (ch == EXP)
  258+                                        doexp();
  259+                                else if (ch == NEX)
  260+                                        donex();
  261+                                else if (ch != CONC) /* XXX ??? */
  262+                                        PUTCH(ch);
     
 !
<>311 -                        i = 0;
  331+                        onemore = i = ccnt = 0;
     
 !
<> 348+
     
 !
<>330 -                        if ((nl = lookup((usch *)yytext, FIND)) != 0) {
 331 -                                usch *op = stringbuf;
 332 -                                putstr(gotident(nl));
 333 -                                stringbuf = op;
  351+
  352+                        if ((nl = lookup((usch *)yytext, FIND)) && kfind(nl)) {
  353+                                putstr(stringbuf);
     
 !
<> 356+
     
 !
<>608 -                        usch *c, *och = stringbuf;
  629+                        usch *och = stringbuf;
  630+                        int i;
     
 !
<>610 -                        c = gotident(nl);
 611 -                        unch(1);
 612 -                        unpstr(c);
  632+                        i = kfind(nl);
  633+                        unch(WARN);
  634+                        if (i)
  635+                                unpstr(stringbuf);
  636+                        else
  637+                                unpstr(nl->namep);
     
 !
<>621 -        case 1: /* WARN */
  646+        case WARN:
     
 !
<_806 -        extern int dflag;
 807 -        if (dflag)printf(": '%c'(%d)", c > 31 ? c : ' ', c);
  831+//      extern int dflag;
  832+//      if (dflag)printf(": '%c'(%d)\n", c > 31 ? c : ' ', c);
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 03:44 +0100