Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.256
 
1.257
 
MAIN:plunky:20120924113824
 
cc.c
_>249249 char *gettmp(void);
 250250 void aerror(char *);
 251251 void oerror(char *);
<>252 -void owarning(char *);
  252+int oerrors;
253253 char *argnxt(char *, char *);
 254254 char *nxtopt(char *o);
 255255 void setup_cpp_flags(void);
     
 !
493493 
 494494                 switch (argp[1]) {
 495495                 default:
<>496 -                        owarning(argp);
  496+                        oerror(argp);
497497                         break;
 498498 
 499499                 case '-': /* double -'s */
     
 !
506506                                 /* NOTHING YET */;
 507507                                 (void)nxtopt(0); /* ignore arg */
 508508                         } else
<>509 -                                owarning(argp);
  509+                                oerror(argp);
510510                         break;
 511511 
 512512                 case 'B': /* other search paths for binaries */
     
 !
528528                         break;
 529529 
 530530                 case 'd':
<>531 -                        owarning(argp);
  531+                        oerror(argp);
532532                         break;
 533533 
 534534                 case 'E':
     
 !
589589                         } else if (strcmp(argp, "-idirafter") == 0) {
 590590                                 strlist_append(&dirafterdirs, nxtopt(0));
 591591                         } else
<>592 -                                owarning(argp);
  592+                                oerror(argp);
593593                         break;
 594594 
 595595                 case 'k': /* generate PIC code */
     
 !
630630                         else if (strcmp(argp, "-nodefaultlibs") == 0)
 631631                                 nostdlib++;
 632632                         else
<>633 -                                owarning(argp);
  633+                                oerror(argp);
634634                         break;
 635635 
 636636                 case 'p':
     
 !
684684                                 if (strcmp(&argp[5], "gnu89") == 0)
 685685                                         xgnu89 = 1;
 686686                         } else
<>687 -                                owarning(argp);
  687+                                oerror(argp);
688688                         break;
 689689 
 690690                 case 'S':
     
 !
813813         }
 814814 
 815815         /* Sanity checking */
<> 816+        if (oerrors)
  817+                dexit(8);
816818         if (cppflag) {
 817819                 if (ninput == 0) {
 818820                         strlist_append(&inputs, "-");
     
 !
14291431 
 14301432 
 14311433 void
<>1432 -owarning(char *s)
 1433 -{
 1434 -        fprintf(stderr, "warning: unknown option '%s'\n", s);
 1435 -}
 1436 -
 1437 -void
14381434 oerror(char *s)
 14391435 {
 14401436         fprintf(stderr, "error: unknown option '%s'\n", s);
<>1441 -        exit(1);
  1437+        oerrors++;
<_14421438 }
 14431439 
 14441440 void
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-21 23:13 +0100