Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.58
 
1.59
 
MAIN:ragge:20070923154911
 
cc.c
_>3838  *
 3939  * Brief description of its syntax:
 4040  * - Files that end with .c are passed via cpp->ccom->as->ld
<> 41+ * - Files that end with .i are passed via ccom->as->ld
4142  * - Files that end with .s are passed as->ld
 4243  * - Files that end with .o are passed directly to ld
 4344  * - Multiple files may be given on the command line.
     
 !
298299                         t = argv[i];
 299300                         if (*argv[i] == '-' && argv[i][1] == 'L')
 300301                                 ;
<>301 -                        else if((c=getsuf(t))=='c' || c=='S' ||
  302+                        else if((c=getsuf(t))=='c' || c=='S' || c=='i' ||
302303                             c=='s'|| Eflag) {
 303304                                 clist[nc++] = t;
 304305                                 if (nc>=MAXFIL)
     
 !
327328                 errorx(8, "-o given with -c || -S and more than one file");
 328329         if (outfile && clist[0] && strcmp(outfile, clist[0]) == 0)
 329330                 errorx(8, "output file will be clobbered");
<> 331+#if 0
  332+        for(i=0, j=0; i<nc; i++) {
  333+                if((c=getsuf(clist[i]))=='c' || c=='S') {
  334+                        j++;
  335+                        break;
  336+                }
  337+        }
  338+        if (j==0 && Eflag)
  339+                errorx(8, "no file to be preprocessed");
  340+#endif
330341 
 331342         if (gflag) Oflag = 0;
 332343 #if 0
     
 !
352363                         printf("%s:\n", clist[i]);
 353364                 onlyas = 0;
 354365                 assource = tmp3;
<>355 -                if (getsuf(clist[i])=='s') {
  366+                if (getsuf(clist[i])=='i') {
  367+                        if(Eflag)
  368+                                continue;
  369+                        goto com;
  370+                } else if (getsuf(clist[i])=='s') {
356371                         assource = clist[i];
 357372                         onlyas = 1;
 358373                         goto assemble;
     
 !
399414                 /*
 400415                  * C compiler
 401416                  */
<> 417+        com:
<_402418                 na = 0;
 403419                 av[na++]= "ccom";
 404420                 if (gflag)
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-28 05:30 +0100