Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.4
 
1.5
 
MAIN:ragge:20030807154837
 
cc.c
_>4747 #include <sys/wait.h>
 4848 /* C command */
 4949 
<> 50+#ifdef FOR_X86
  51+char *cppadd[] = {
  52+        "-D__NetBSD__", "-D__PCC__=1", "-D__PCC_MINOR__=0",
  53+        "-D__ELF__", "-Asystem(unix)", "-Asystem(NetBSD)", "-Acpu(i386)",
  54+        "-Amachine(i386)", "-D__i386__", "-D__OPTIMIZE__", "-Di386",
  55+        "-lang-c", "-nostdinc", NULL,
  56+};
  57+#endif
  58+
5059 #define SBSIZE 10000
 5160 #define MAXINC 10
 5261 #define MAXFIL 100
     
 !
8291 int     cflag;
 8392 int     eflag;
 8493 int     gflag;
<> 94+int     vflag;
8595 int     exflag;
 8696 int     Oflag;
 8797 int     proflag;
 8898 int     noflflag;
 8999 int     exfail;
 90100 char    *pass0 = "/lib/ccom";
<>91 -char    *passp = "/usr/libexec/cpp";
  101+char    *passp = "/usr/libexec/cpp0";
92102 char    *pref = "/usr/lib/crt0.o";
 93103 
 94104 int
     
 !
162172                         dflag++;
 163173                         strncpy(alist, argv[i], 19);
 164174                         break;
<> 175+                case 'v':
  176+                        vflag++;
  177+                        break;
165178                 } else {
 166179                 passa:
 167180                         t = argv[i];
     
 !
223236                 if (pflag)
 224237                         tmp4 = setsuf(clist[i], 'i');
 225238                 savetsp = tsp;
<>226 -                av[0] = "cpp";
 227 -                av[1] = clist[i];
 228 -                av[2] = exflag ? "-" : tmp4;
 229 -                na = 3;
  239+                na = 0;
  240+                av[na++] = "cpp";
  241+                for (j = 0; cppadd[j]; j++)
  242+                        av[na++] = cppadd[j];
  243+                av[na++] = clist[i];
  244+                av[na++] = exflag ? "-" : tmp4;
230245                 for(pv=ptemp; pv <pvt; pv++)
 231246                         av[na++] = *pv;
 232247                 av[na++]=0;
 233248                 if (callsys(passp, av))
 234249                         {exfail++; eflag++;}
<> 250+                av[0]= "ccom";
235251                 av[1] =tmp4;
 236252                 tsp = savetsp;
<>237 -                av[0]= "ccom";
238253                 if (pflag || exfail)
 239254                         {
 240255                         cflag++;
     
 !
376391         int t, status;
 377392         char *s;
 378393 
<> 394+        if (vflag) {
  395+                for (t = 0; v[t]; t++)
  396+                        printf("%s ", v[t]);
  397+                printf("\n");
  398+        }
  399+
<_379400         if ((t=fork())==0) {
 380401                 execv(f, v);
 381402                 if ((s = strrchr(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-02 03:56 +0200