summaryrefslogtreecommitdiffstats
path: root/mdoc_hash.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-31 07:13:53 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-31 07:13:53 +0000
commitd8f04423aa0185697ac4ab7b182532f8f02b5de7 (patch)
treec8c61056a4f445fdc9afc57f108313b3581e6dca /mdoc_hash.c
parentd6a01dde28af9c768a8898988b670a59be49563a (diff)
downloadmandoc-d8f04423aa0185697ac4ab7b182532f8f02b5de7.tar.gz
Macro types enum-ated (enum mdoct) (for easier debugging in gdb of "tok" values).
Initial check-in of Ingo Schwarze's patch for Xo/Xc handling (in blocks ifdef'd "UGLY"). Put Oc-close-Op parts into UGLY ifdef blocks.
Diffstat (limited to 'mdoc_hash.c')
-rw-r--r--mdoc_hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_hash.c b/mdoc_hash.c
index 871000fc..ce9e3ce3 100644
--- a/mdoc_hash.c
+++ b/mdoc_hash.c
@@ -61,7 +61,7 @@ mdoc_hash_init(void)
}
}
-int
+enum mdoct
mdoc_hash_find(const char *p)
{
int major, i, j;
@@ -85,7 +85,7 @@ mdoc_hash_find(const char *p)
if (UCHAR_MAX == (i = table[major + j]))
break;
if (0 == strcmp(p, mdoc_macronames[i]))
- return(i);
+ return((enum mdoct)i);
}
return(MDOC_MAX);