Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.21
 
1.22
 
MAIN:ragge:20050218165239
 
cpp.c
_>9292 FILE *obuf;
 9393 static int exfail;
 9494 struct symtab symtab[SYMSIZ];
<> 95+int Cflag;
9596 
 9697 /* avoid recursion */
 9798 struct recur {
     
 !
159160         register int c, gotspc, ch;
 160161         usch *osp;
 161162 
<>162 -        while ((ch = getopt(argc, argv, "D:I:S:U:td")) != -1)
  163+        while ((ch = getopt(argc, argv, "CD:I:S:U:td")) != -1)
163164                 switch (ch) {
<> 165+                case 'C': /* Do not discard comments */
  166+                        Cflag++;
  167+                        break;
  168+
164169                 case 'D': /* Define something */
 165170                         osp = optarg;
 166171                         while (*osp && *osp != '=')
     
 !
272277                         if (flslvl)
 273278                                 break;
 274279                         osp = stringbuf;
<> 280+if(dflag)printf("IDENT0: %s\n", yystr);
275281                         nl = lookup(yystr, FIND);
<> 282+if(dflag)printf("IDENT: %s\n", yystr);
276283                         if (nl == 0 || thisnl == 0)
 277284                                 goto found;
 278285                         if (thisnl == nl) {
     
 !
301308 found:                  if (nl == 0 || subst(yystr, nl, NULL) == 0) {
 302309                                 fputs(yystr, obuf);
 303310                         } else if (osp != stringbuf) {
<> 311+if(dflag)printf("IDENT1: unput\n");
304312                                 cunput(EXPAND);
 305313                                 while (stringbuf > osp)
 306314                                         cunput(*--stringbuf);
     
 !
310318                         break;
 311319 
 312320                 case EXPAND:
<> 321+if(dflag)printf("EXPAND!\n");
313322                         thisnl = NULL;
 314323                         break;
 315324 
     
 !
883892         int c, noexp = 0, gotspc;
 884893         usch *och;
 885894 
<>886 -if (dflag)printf("expmac\n");
 887 -if (dflag && rp)printf("do not expand %s\n", rp->sp->namep);
  895+#ifdef CPP_DEBUG
  896+        if (dflag) {
  897+                struct recur *rp2 = rp;
  898+                printf("\nexpmac\n");
  899+                while (rp2) {
  900+                        printf("do not expand %s\n", rp->sp->namep);
  901+                        rp2 = rp2->next;
  902+                }
  903+        }
  904+#endif
<_888905         while ((c = yylex()) != WARN) {
 889906                 switch (c) {
 890907                 case NOEXP: noexp++; break;
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-20 18:17 +0100