ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/popen.c
(Generate patch)

Comparing ray/src/common/popen.c (file contents):
Revision 2.1 by greg, Tue Sep 8 09:08:02 1992 UTC vs.
Revision 2.2 by greg, Mon Sep 21 12:02:16 1992 UTC

# Line 43 | Line 43 | char   *mode;
43                                  /* build our command */
44          for (cp = newcmd; ; cmd++) {
45                  switch (*cmd) {
46                case '"':
46                  case '\'':
47 +                case '"':
48                          if (!quote)
49                                  quote = *cmd;
50                          else if (quote == *cmd)
51                                  quote = '\0';
52 + #ifdef MSDOS
53 +                        else
54 +                                break;
55 +                        *cp++ = '"';            /* double quotes only */
56 +                        continue;
57 + #else
58                          break;
59 + #endif                
60                  case '(':
61                          if (!quote)
62                                  paren++;
# Line 65 | Line 72 | char   *mode;
72                                  continue;
73                          }
74                          *cp++ = *cmd++;
75 +                        break;
76 +                case ' ':
77 +                case '\t':
78 +                        if (!quote)
79 +                                while (isspace(cmd[1]))
80 +                                        cmd++;
81                          break;
82                  case '|':
83                  case ';':

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines