From e2b62db20c0f9cce5dd25c92cf12b7d37531f1a4 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 2 Jan 2009 14:06:16 +0000 Subject: *** empty log message *** --- argv.c | 55 ++++++++++++++++++++----------------------------------- 1 file changed, 20 insertions(+), 35 deletions(-) (limited to 'argv.c') diff --git a/argv.c b/argv.c index f00e5a03..dd9ea101 100644 --- a/argv.c +++ b/argv.c @@ -133,6 +133,22 @@ lookup(int tok, const char *argv) { switch (tok) { + case (MDOC_Bf): + if (xstrcmp(argv, "emphasis")) + return(MDOC_Emphasis); + else if (xstrcmp(argv, "literal")) + return(MDOC_Literal); + else if (xstrcmp(argv, "symbolic")) + return(MDOC_Symbolic); + break; + + case (MDOC_An): + if (xstrcmp(argv, "split")) + return(MDOC_Split); + else if (xstrcmp(argv, "nosplit")) + return(MDOC_Nosplit); + break; + case (MDOC_Bd): if (xstrcmp(argv, "ragged")) return(MDOC_Ragged); @@ -307,39 +323,6 @@ parse(struct mdoc *mdoc, int tok, ppos = *pos; switch (v->arg) { - case(MDOC_Compact): - /* FALLTHROUGH */ - case(MDOC_Ragged): - /* FALLTHROUGH */ - case(MDOC_Unfilled): - /* FALLTHROUGH */ - case(MDOC_Literal): - /* FALLTHROUGH */ - case(MDOC_File): - /* FALLTHROUGH */ - case(MDOC_Bullet): - /* FALLTHROUGH */ - case(MDOC_Dash): - /* FALLTHROUGH */ - case(MDOC_Hyphen): - /* FALLTHROUGH */ - case(MDOC_Item): - /* FALLTHROUGH */ - case(MDOC_Enum): - /* FALLTHROUGH */ - case(MDOC_Tag): - /* FALLTHROUGH */ - case(MDOC_Diag): - /* FALLTHROUGH */ - case(MDOC_Hang): - /* FALLTHROUGH */ - case(MDOC_Ohang): - /* FALLTHROUGH */ - case(MDOC_Inset): - v->sz = 0; - v->value = NULL; - break; - case(MDOC_Std): /* FALLTHROUGH */ case(MDOC_Width): @@ -384,9 +367,11 @@ parse(struct mdoc *mdoc, int tok, v->sz = i; break; + default: - abort(); - /* NOTREACHED */ + v->sz = 0; + v->value = NULL; + break; } return(1); -- cgit