Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.78
 
1.79
 
MAIN:gmcgarry:20071130230515
 
cc.c
_>7171 /*
 7272  * Many specific definitions, should be declared elsewhere.
 7373  */
<>74 -#define STDINC    "/usr/include/"
7574 
<> 75+#ifndef STDINC
  76+#define STDINC          "/usr/include/"
  77+#endif
  78+
  79+#ifndef PREPROCESSOR
  80+#define PREPROCESSOR    "cpp"
  81+#endif
  82+
  83+#ifndef COMPILER
  84+#define COMPILER        "ccom";
  85+#endif
  86+
  87+#ifndef ASSEMBLER
  88+#define ASSEMBLER       "as"
  89+#endif
  90+
  91+#ifndef LINKER
  92+#define LINKER          "ld"
  93+#endif
  94+
7695 #define MAXFIL 10000
 7796 #define MAXLIB 10000
 7897 #define MAXAV  10000
     
 !
121140 int     onlyas;
 122141 int     pthreads;
 123142 
<>124 -char    *pass0 = LIBEXECDIR "/ccom";
 125 -char    *passp = LIBEXECDIR "/cpp";
  143+char    *passp = LIBEXECDIR "/" PREPROCESSOR;
  144+char    *pass0 = LIBEXECDIR "/" COMPILER;
  145+char    *as = ASSEMBLER;
  146+char    *ld = LINKER;
126147 char    *Bflag;
 127148 char *cppadd[] = CPPADD;
 128149 char *dynlinker[] = DYNLINKER;
     
 !
477498                  */
 478499         assemble:
 479500                 na = 0;
<>480 -                av[na++] = "as";
  501+                av[na++] = as;
481502                 if (vflag)
 482503                         av[na++] = "-v";
 483504                 if (kflag)
     
 !
491512                 if (dflag)
 492513                         av[na++] = alist;
 493514                 av[na++] = 0;
<>494 -                if (callsys("/bin/as", av)) {
  515+                if (callsys(as, av)) {
495516                         cflag++;
 496517                         eflag++;
 497518                         cunlink(tmp4);
     
 !
509530 nocom:
 510531         if (cflag==0 && nl!=0) {
 511532                 j = 0;
<>512 -                av[j++] = "ld";
  533+                av[j++] = ld;
513534                 if (vflag)
 514535                         av[j++] = "-v";
 515536                 av[j++] = "-X";
     
 !
552573                                 av[j++] = endfiles[i];
 553574                 }
 554575                 av[j++] = 0;
<>555 -                eflag |= callsys("/bin/ld", av);
  576+                eflag |= callsys(ld, av);
556577                 if (nc==1 && nxo==1 && eflag==0)
 557578                         cunlink(setsuf(clist[0], 'o'));
 558579                 else if (nc > 0 && eflag == 0) {
     
 !
676697                                 execv(a, v);
 677698                         }
 678699                 }
<>679 -                execv(f, v);
  700+                execvp(f, v);
<_680701                 if ((s = strrchr(f, '/')))
 681702                         execvp(s+1, v);
 682703                 fprintf(stderr, "Can't find %s\n", f);
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-09-17 05:33 +0200