summaryrefslogtreecommitdiffstats
path: root/argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-24 11:43:13 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-24 11:43:13 +0000
commit9e0f9f2ee7f854665c6fbf442ea8339bbce17ecb (patch)
treec5b5201797d9e59ac3a378e66b6411e1b2610d7a /argv.c
parent6229c59e2536a1921c81abefed1a37bfd01790b0 (diff)
downloadmandoc-9e0f9f2ee7f854665c6fbf442ea8339bbce17ecb.tar.gz
Escape-sequence validation in place (for nodes).
Diffstat (limited to 'argv.c')
-rw-r--r--argv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/argv.c b/argv.c
index c7e8f46a..51ef35b2 100644
--- a/argv.c
+++ b/argv.c
@@ -35,7 +35,7 @@
#define ARGS_DELIM (1 << 1)
#define ARGS_TABSEP (1 << 2)
-static int lookup(int, const char *);
+static int argv_a2arg(int, const char *);
static int args(struct mdoc *, int, int *,
char *, int, char **);
static int argv(struct mdoc *, int,
@@ -466,7 +466,7 @@ args(struct mdoc *mdoc, int line,
static int
-lookup(int tok, const char *argv)
+argv_a2arg(int tok, const char *argv)
{
switch (tok) {
@@ -747,7 +747,7 @@ mdoc_argv(struct mdoc *mdoc, int line, int tok,
if (buf[*pos])
buf[(*pos)++] = 0;
- if (MDOC_ARG_MAX == (v->arg = lookup(tok, p))) {
+ if (MDOC_ARG_MAX == (v->arg = argv_a2arg(tok, p))) {
if ( ! pwarn(mdoc, line, i, WARGVPARM))
return(ARGV_ERROR);
return(ARGV_WORD);