diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-31 07:13:53 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-31 07:13:53 +0000 |
commit | ea6ed8eb4a9349ba679125913c5a03c1027783b2 (patch) | |
tree | 5e2e9909a3d4510379a5f0deb3c96b83b16d58e0 /mdoc_hash.c | |
parent | d0506b714f392d1f74c683bae920e02c500e05d5 (diff) | |
download | mandoc-ea6ed8eb4a9349ba679125913c5a03c1027783b2.tar.gz mandoc-ea6ed8eb4a9349ba679125913c5a03c1027783b2.tar.zst mandoc-ea6ed8eb4a9349ba679125913c5a03c1027783b2.zip |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_hash.c b/mdoc_hash.c index 58959dfd..0b89cd8a 100644 --- a/mdoc_hash.c +++ b/mdoc_hash.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_hash.c,v 1.12 2010/01/01 17:14:29 kristaps Exp $ */ +/* $Id: mdoc_hash.c,v 1.13 2010/03/31 07:13:53 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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); |