Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.141
 
1.142
 
MAIN:plunky:20110828131934
 
cpp.c
_>158158         (void)gettimeofday(&t1, NULL);
 159159 #endif
 160160 
<>161 -        while ((ch = getopt(argc, argv, "CD:I:MPS:U:d:i:tvV?")) != -1)
  161+        while ((ch = getopt(argc, argv, "CD:d:I:i:MPS:tU:Vv")) != -1) {
162162                 switch (ch) {
 163163                 case 'C': /* Do not discard comments */
 164164                         Cflag++;
 165165                         break;
 166166 
<> 167+                case 'D': /* define something */
167168                 case 'i': /* include */
 168169                 case 'U': /* undef */
<>169 -                case 'D': /* define something */
170170                         /* XXX should not need malloc() here */
 171171                         if ((it = malloc(sizeof(struct initar))) == NULL)
 172172                                 error("couldn't apply -%c %s", ch, optarg);
     
 !
176176                         initar = it;
 177177                         break;
 178178 
<> 179+                case 'd':
  180+                        if (optarg[0] == 'M') {
  181+                                dMflag = 1;
  182+                                Mflag = 1;
  183+                        }
  184+                        /* ignore others */
  185+                        break;
  186+
  187+                case 'I':
  188+                case 'S':
  189+                        addidir(optarg, &incdir[ch == 'I' ? INCINC : SYSINC]);
  190+                        break;
  191+
179192                 case 'M': /* Generate dependencies for make */
 180193                         Mflag++;
 181194                         break;
     
 !
184197                         Pflag++;
 185198                         break;
 186199 
<>187 -                case 'S':
 188 -                case 'I':
 189 -                        addidir(optarg, &incdir[ch == 'I' ? INCINC : SYSINC]);
  200+                case 't':
  201+                        tflag = 1;
190202                         break;
 191203 
 192204 #ifdef PCC_DEBUG
     
 !
197209                 case 'v':
 198210                         printf("cpp: %s\n", VERSSTR);
 199211                         break;
<>200 -                case 'd':
 201 -                        if (optarg[0] == 'M') {
 202 -                                dMflag = 1;
 203 -                                Mflag = 1;
 204 -                        }
 205 -                        /* ignore others */
 206 -                        break;
207212 
<>208 -                case 't':
 209 -                        tflag = 1;
 210 -                        break;
 211 -
212213                 case '?':
<>213 -                        usage();
214214                 default:
<>215 -                        error("bad arg %c\n", ch);
  215+                        usage();
216216                 }
<> 217+        }
  218+
<_217219         argc -= optind;
 218220         argv += optind;
 219221 
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-08-20 18:33 +0200