Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.46
 
1.47
 
MAIN:ragge:20060713100947
 
cc.c
_>118118 
 119119 char    *pass0 = LIBEXECDIR "/ccom";
 120120 char    *passp = LIBEXECDIR "/cpp";
<> 121+char    *Bflag;
121122 char    *sysinc;
 122123 char *cppadd[] = CPPADD;
 123124 char *dynlinker[] = DYNLINKER;
     
 !
142143                 default:
 143144                         goto passa;
 144145 
<>145 -                case 'B': /* other search paths for binaries XXX support? */
  146+                case 'B': /* other search paths for binaries */
  147+                        Bflag = &argv[i][2];
146148                         break;
 147149 
 148150                 case 'X':
     
 !
565567         }
 566568 
 567569         if ((t=fork())==0) {
<> 570+                if (Bflag) {
  571+                        char *a = malloc(strlen(Bflag) + 8);
  572+                        if ((s = strrchr(f, '/'))) {
  573+                                strcpy(a, Bflag);
  574+                                strcat(a, s);
  575+                                execv(a, v);
  576+                        }
  577+                }
<_568578                 execv(f, v);
 569579                 if ((s = strrchr(f, '/')))
 570580                         execvp(s+1, v);
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-23 02:37 +0100