Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.75
 
1.76
 
MAIN:stefan:20071110220704
 
cc.c
_>8585 int main(int, char *[]);
 8686 void error(char *, ...);
 8787 void errorx(int, char *, ...);
<>88 -int nodup(char **, char *);
8988 int callsys(char [], char *[]);
 9089 int cunlink(char *);
 9190 void dexit(int);
     
 !
313312                                 }
 314313                                 t = setsuf(t, 'o');
 315314                         }
<>316 -                        if (nodup(llist, t)) {
  315+
  316+                        /* Check for duplicate .o files. */
  317+                        for (j = getsuf(t) == 'o' ? 0 : nl; j < nl; j++) {
  318+                                if (strcmp(llist[j], t) == 0)
  319+                                        break;
  320+                        }
  321+                        if (j == nl) {
317322                                 llist[nl++] = t;
 318323                                 if (nl >= MAXLIB) {
 319324                                         error("Too many object/library files");
     
 !
331336                 errorx(8, "-o given with -c || -E || -S and more than one file");
 332337         if (outfile && clist[0] && strcmp(outfile, clist[0]) == 0)
 333338                 errorx(8, "output file will be clobbered");
<>334 -#if 0
 335 -        for(i=0, j=0; i<nc; i++) {
 336 -                if((c=getsuf(clist[i]))=='c' || c=='S') {
 337 -                        j++;
 338 -                        break;
 339 -                }
 340 -        }
 341 -        if (j==0 && Eflag)
 342 -                errorx(8, "no file to be preprocessed");
 343 -#endif
 344 -
345339         if (gflag) Oflag = 0;
 346340 #if 0
 347341         if (proflag)
     
 !
706700 }
 707701 
 708702 int
<>709 -nodup(char **l, char *os)
 710 -{
 711 -        register char *t, *s;
 712 -        register int c;
 713 -
 714 -        s = os;
 715 -        if (getsuf(s) != 'o')
 716 -                return(1);
 717 -        while((t = *l++)) {
 718 -                while((c = *s++))
 719 -                        if (c != *t++)
 720 -                                break;
 721 -                if (*t=='\0' && c=='\0')
 722 -                        return(0);
 723 -                s = os;
 724 -        }
 725 -        return(1);
 726 -}
 727 -
 728 -int
<_729703 cunlink(char *f)
 730704 {
 731705         if (f==0 || Xflag)
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 23:35 +0200