version 1.20, 2004/07/10 11:41:26 |
version 1.21, 2005/04/11 07:11:44 |
|
|
cmd->t = duptoeol(p, "w command", NULL); |
cmd->t = duptoeol(p, "w command", NULL); |
if (aflag) |
if (aflag) |
cmd->u.fd = -1; |
cmd->u.fd = -1; |
else if ((cmd->u.fd = open(p, |
else if ((cmd->u.fd = open(p, |
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, |
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, |
DEFFILEMODE)) == -1) |
DEFFILEMODE)) == -1) |
err(FATAL, "%s: %s", p, strerror(errno)); |
err(FATAL, "%s: %s", p, strerror(errno)); |
|
|
a->type = AT_LAST; |
a->type = AT_LAST; |
return (p + 1); |
return (p + 1); |
/* Line number */ |
/* Line number */ |
case '0': case '1': case '2': case '3': case '4': |
case '0': case '1': case '2': case '3': case '4': |
case '5': case '6': case '7': case '8': case '9': |
case '5': case '6': case '7': case '8': case '9': |
a->type = AT_LINE; |
a->type = AT_LINE; |
a->u.l = strtoul(p, &end, 10); |
a->u.l = strtoul(p, &end, 10); |
|
|
return (NULL); |
return (NULL); |
} |
} |
|
|
/* |
/* |
* Warn about any unused labels. As a side effect, release the label hash |
* Warn about any unused labels. As a side effect, release the label hash |
* table space. |
* table space. |
*/ |
*/ |