summaryrefslogtreecommitdiffstats
path: root/argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-02 14:06:16 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-02 14:06:16 +0000
commite2b62db20c0f9cce5dd25c92cf12b7d37531f1a4 (patch)
tree518bb91fbdc26a23994f842a329484de6c36e571 /argv.c
parentbc8a9947a973470047f9e7e24928ad2a2ecabf6a (diff)
downloadmandoc-e2b62db20c0f9cce5dd25c92cf12b7d37531f1a4.tar.gz
*** empty log message ***
Diffstat (limited to 'argv.c')
-rw-r--r--argv.c55
1 files changed, 20 insertions, 35 deletions
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);