Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.16
 
1.17
 
MAIN:ragge:20041002080018
 
cpp.c
_>455455                 } else
 456456                         error("If-less elif");
 457457         } else
<> 458+#if 0
458459                 error("undefined control '%s'", yystr);
<> 460+#else
  461+                goto exit;
  462+#endif
459463 
 460464         return;
 461465 
     
 !
781785         register usch *vp, *cp;
 782786         int c, rv = 0;
 783787 
<>784 -if (dflag)printf("subst\n");
 785 -        if ((vp = sp->value) == 0) {
 786 -                /*
 787 -                 * If no value is assigned, it may be a special macro,
 788 -                 * otherwise a deleted macro.
 789 -                 */
 790 -                if (sp == filloc) {
 791 -                        savch('"');
 792 -                        savstr(curfile());
 793 -                        savch('"');
 794 -                } else if (sp == linloc) {
 795 -                        char buf[12];
 796 -                        sprintf(buf, "%d", curline());
 797 -                        savstr(buf);
 798 -                } else
 799 -                        return 0;
  788+if (dflag)printf("subst: %s\n", sp->namep);
  789+        /*
  790+         * First check for special macros.
  791+         */
  792+        if (sp == filloc) {
  793+                savch('"');
  794+                savstr(curfile());
  795+                savch('"');
800796                 return 1;
<> 797+        } else if (sp == linloc) {
  798+                char buf[12];
  799+                sprintf(buf, "%d", curline());
  800+                savstr(buf);
  801+                return 1;
801802         }
<> 803+        vp = sp->value;
<_802804 
 803805         rp2.next = rp;
 804806         rp2.sp = sp;
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-19 02:35 +0100