summaryrefslogtreecommitdiffstats
path: root/libmdoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-04-17 09:08:19 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-04-17 09:08:19 +0000
commit3a57b035c09a784e5ce7ada2b1a4ce22ed7320fe (patch)
tree515d02d4ccb4880b38f6df7c57a3f8e598c1736d /libmdoc.h
parent9ccae84ab6241d21623e7c1872a91f839f32e1c9 (diff)
downloadmandoc-3a57b035c09a784e5ce7ada2b1a4ce22ed7320fe.tar.gz
Get mdoc_argv.c ready to use [some of] mandoc_getarg() by giving said
function a parameter to suppress warnings.
Diffstat (limited to 'libmdoc.h')
-rw-r--r--libmdoc.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/libmdoc.h b/libmdoc.h
index 357d24a8..2b4b2b70 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -62,20 +62,20 @@ struct mdoc_macro {
enum margserr {
ARGS_ERROR,
- ARGS_EOLN,
- ARGS_WORD,
- ARGS_PUNCT,
- ARGS_QWORD,
- ARGS_PHRASE,
- ARGS_PPHRASE,
- ARGS_PEND
+ ARGS_EOLN, /* end-of-line */
+ ARGS_WORD, /* normal word */
+ ARGS_PUNCT, /* series of punctuation */
+ ARGS_QWORD, /* quoted word */
+ ARGS_PHRASE, /* Ta'd phrase (-column) */
+ ARGS_PPHRASE, /* tabbed phrase (-column) */
+ ARGS_PEND /* last phrase (-column) */
};
enum margverr {
ARGV_ERROR,
- ARGV_EOLN,
- ARGV_ARG,
- ARGV_WORD
+ ARGV_EOLN, /* end of line */
+ ARGV_ARG, /* valid argument */
+ ARGV_WORD /* normal word (or bad argument---same thing) */
};
/*