Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.32
 
1.33
 
MAIN:ragge:20060730125240
 
cpp.c
_>9292 static usch     sbf[SBSIZE];
 9393 /* C command */
 9494 
<> 95+#define CHAR_BITS       8 /* XXX - should be checked in autoconf */
  96+#define CHAR_MAX        (1 << CHAR_BITS)
  97+
  98+#define TOKTYP  3       /* mask bits for token type */
  99+#define S_      1       /* string or char constant start */
  100+
  101+/*
  102+ * Index into this array to find out whether a char has a special
  103+ * meaning.  This is ASCII only, for EBCDIC write a new table.
  104+ */
  105+usch utype[CHAR_MAX] = {
  106+        0,      0,      0,      0,      0,      0,      0,      0, /* 0  - 7  */
  107+        0,      0,      0,      0,      0,      0,      0,      0, /* 8  - 15 */
  108+        0,      0,      0,      0,      0,      0,      0,      0, /* 16 - 23 */
  109+        0,      0,      0,      0,      0,      0,      0,      0, /* 24 - 31 */
  110+        0,      S_,     0,      0,      0,      0,      0,      S_,/* 32 - 39 */
  111+        0,      0,      0,      0,      0,      0,      0,      0, /* 40 - 47 */
  112+        0,      0,      0,      0,      0,      0,      0,      0, /* 48 - 55 */
  113+        0,      0,      0,      0,      0,      0,      0,      0, /* 56 - 63 */
  114+        0,      0,      0,      0,      0,      0,      0,      0, /* 64 - 71 */
  115+        0,      0,      0,      0,      0,      0,      0,      0, /* 72 - 79 */
  116+        0,      0,      0,      0,      0,      0,      0,      0, /* 80 - 87 */
  117+        0,      0,      0,      0,      0,      0,      0,      0, /* 88 - 95 */
  118+        0,      0,      0,      0,      0,      0,      0,      0, /* 96 - 103*/
  119+        0,      0,      0,      0,      0,      0,      0,      0, /* 104- 111*/
  120+        0,      0,      0,      0,      0,      0,      0,      0, /* 112- 119*/
  121+        0,      0,      0,      0,      0,      0,      0,      0, /* 120- 127*/
  122+};
  123+
95124 int tflag;      /* traditional cpp syntax */
 96125 #ifdef CPP_DEBUG
 97126 int dflag;      /* debug printouts */
     
 !
251280                 nl = lookup("__DATE__", ENTER);
 252281 #ifdef ragge
 253282                 nl->value = stringbuf;
<>254 -                savch(OBJCT); savch('"') savstr(&n[20]);
  283+                savch(OBJCT); savch('"'); savstr(&n[20]);
255284                 savstr(&n[4]); n[24] = n[11] = 0; savch('"'); savch(0);
 256285 #else
 257286                 savch(0); savch('"'); n[24] = n[11] = 0; savstr(&n[4]);
     
 !
330359                                 }
 331360                         }
 332361 
<> 362+#ifdef ragge
  363+found:                  if (nl == 0 || subst(nl, NULL) == 0) {
  364+#else
333365 found:                  if (nl == 0 || subst(yystr, nl, NULL) == 0) {
<> 366+#endif
334367                                 fputs(yystr, obuf);
 335368                         } else if (osp != stringbuf) {
 336369 if(dflag)printf("IDENT1: unput osp %p stringbuf %p\n", osp, stringbuf);
     
 !
583616                 usch *osp = stringbuf;
 584617                 if ((nl = lookup(yystr, FIND)) == NULL)
 585618                         goto bad;
<> 619+#ifdef ragge
  620+                if (subst(nl, NULL) == 0)
  621+#else
586622                 if (subst(yystr, nl, NULL) == 0)
<> 623+#endif
587624                         goto bad;
 588625                 while (stringbuf > osp)
 589626                         cunput(*--stringbuf);
     
 !
931968 {
 932969         for (; *s; s++) {
 933970                 switch (utype[*s] & TOKTYP) {
<>934 -                case CHSTR: /* char or string constant */
  971+                case S_: /* char or string constant */
<_935972                 do {
 936973                         savch(*s);
 937974                 }
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-18 15:44 +0200