/[make]/make/job.c
ViewVC logotype

Diff of /make/job.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.159 by psmith, Wed Oct 6 13:09:22 2004 UTC revision 1.160 by psmith, Fri Nov 12 21:30:20 2004 UTC
# Line 2088  child_execute_job (char *argv, struct ch Line 2088  child_execute_job (char *argv, struct ch
2088    char ifile[256], ofile[256], efile[256];    char ifile[256], ofile[256], efile[256];
2089    char *comname = 0;    char *comname = 0;
2090    char procname[100];    char procname[100];
2091      int in_string;
2092    
2093    /* Parse IO redirection.  */    /* Parse IO redirection.  */
2094    
# Line 2109  child_execute_job (char *argv, struct ch Line 2110  child_execute_job (char *argv, struct ch
2110    pnamedsc.dsc$b_dtype = DSC$K_DTYPE_T;    pnamedsc.dsc$b_dtype = DSC$K_DTYPE_T;
2111    pnamedsc.dsc$b_class = DSC$K_CLASS_S;    pnamedsc.dsc$b_class = DSC$K_CLASS_S;
2112    
2113      in_string = 0;
2114    /* Handle comments and redirection. */    /* Handle comments and redirection. */
2115    for (p = argv, q = cmd; *p; p++, q++)    for (p = argv, q = cmd; *p; p++, q++)
2116      {      {
2117          if (*p == '"')
2118            in_string = !in_string;
2119          if (in_string)
2120            {
2121              *q = *p;
2122              continue;
2123            }
2124        switch (*p)        switch (*p)
2125          {          {
2126            case '#':            case '#':
# Line 2167  child_execute_job (char *argv, struct ch Line 2176  child_execute_job (char *argv, struct ch
2176          }          }
2177      }      }
2178    *q = *p;    *q = *p;
2179      while (isspace ((unsigned char)*--q))
2180        *q = '\0';
2181    
2182    if (strncmp (cmd, "builtin_", 8) == 0)    if (strncmp (cmd, "builtin_", 8) == 0)
2183      {      {

Legend:
Removed from v.1.159  
changed lines
  Added in v.1.160

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26