version 1.40, 2015/10/26 22:24:44 |
version 1.41, 2017/01/20 10:26:16 |
|
|
} else if (*p == '\n') { |
} else if (*p == '\n') { |
error(COMPILE, |
error(COMPILE, |
"unescaped newline inside substitute pattern"); |
"unescaped newline inside substitute pattern"); |
/* NOTREACHED */ |
|
} |
} |
*sp++ = *p; |
*sp++ = *p; |
} |
} |
size += sp - op; |
size += sp - op; |
} while ((p = cu_fgets(&lbuf, &bufsize))); |
} while ((p = cu_fgets(&lbuf, &bufsize))); |
error(COMPILE, "unterminated substitute in regular expression"); |
error(COMPILE, "unterminated substitute in regular expression"); |
/* NOTREACHED */ |
|
} |
} |
|
|
/* |
/* |
|
|
p++; |
p++; |
#ifdef HISTORIC_PRACTICE |
#ifdef HISTORIC_PRACTICE |
if (*p != ' ') { |
if (*p != ' ') { |
error(WARNING, "space missing before w wfile"); |
warning("space missing before w wfile"); |
return (p); |
return (p); |
} |
} |
#endif |
#endif |
|
|
*s = '\0'; |
*s = '\0'; |
} |
} |
if (ws) |
if (ws) |
error(WARNING, "whitespace after %s", ctype); |
warning("whitespace after %s", ctype); |
len = s - start + 1; |
len = s - start + 1; |
if (semi) |
if (semi) |
*semi = s; |
*semi = s; |
|
|
for (lh = labels[i]; lh != NULL; lh = next) { |
for (lh = labels[i]; lh != NULL; lh = next) { |
next = lh->lh_next; |
next = lh->lh_next; |
if (!lh->lh_ref) |
if (!lh->lh_ref) |
error(WARNING, "unused label '%s'", |
warning("unused label '%s'", |
lh->lh_cmd->t); |
lh->lh_cmd->t); |
free(lh); |
free(lh); |
} |
} |