summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2004-02-21 17:10:41 +0000
committerPaul Smith <psmith@gnu.org>2004-02-21 17:10:41 +0000
commitfafeb870272fd3b3623d8eb8241c915af39f5855 (patch)
treeb9e7e79ca7ba31bf0a6fce489e33444aeb67c7b2 /job.c
parent1f16ee5c2d482a75504fbbcf70e9e2a44acc1339 (diff)
downloadgunmake-fafeb870272fd3b3623d8eb8241c915af39f5855.tar.gz
VMS fix.
Diffstat (limited to 'job.c')
-rw-r--r--job.c30
1 files changed, 6 insertions, 24 deletions
diff --git a/job.c b/job.c
index d3a8e6b..1529d29 100644
--- a/job.c
+++ b/job.c
@@ -370,44 +370,26 @@ static char *
vms_handle_apos (char *p)
{
int alast;
- int inside;
#define SEPCHARS ",/()= "
- inside = 0;
+ alast = 0;
while (*p != 0)
{
if (*p == '"')
{
- if (inside)
- {
- while ((alast > 0)
- && (*p == '"'))
- {
- p++;
- alast--;
- }
- if (alast == 0)
- inside = 0;
- else
- {
- fprintf (stderr, _("Syntax error, still inside '\"'\n"));
- exit (3);
- }
+ if (alast)
+ {
+ alast = 0;
+ p++;
}
else
{
p++;
if (strchr (SEPCHARS, *p))
break;
- inside = 1;
alast = 1;
- while (*p == '"')
- {
- alast++;
- p++;
- }
}
}
else
@@ -2232,7 +2214,7 @@ child_execute_job (char *argv, struct child *child)
/* Nice places for line breaks are after strings, after
comma or space and before slash. */
case '"':
- q = vms_handle_apos (q + 1);
+ q = vms_handle_apos (q);
sep = q;
break;
case ',':