summaryrefslogtreecommitdiffstatshomepage
path: root/private.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-08 12:46:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-08 12:46:28 +0000
commite691ea8079e5036d8f6379df2ab72e5f64e05874 (patch)
tree7cd31d688f722e40ebd24d4714cf58d83ecaaeb3 /private.h
parent456172f11ec3868c84c8dc3c56f0b551e3959776 (diff)
downloadmandoc-e691ea8079e5036d8f6379df2ab72e5f64e05874.tar.gz
mandoc-e691ea8079e5036d8f6379df2ab72e5f64e05874.tar.zst
mandoc-e691ea8079e5036d8f6379df2ab72e5f64e05874.zip
Added warnings for using macros in the wrong sections.
Diffstat (limited to 'private.h')
-rw-r--r--private.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/private.h b/private.h
index 2de77450..79473747 100644
--- a/private.h
+++ b/private.h
@@ -1,4 +1,4 @@
-/* $Id: private.h,v 1.32 2008/12/07 22:40:18 kristaps Exp $ */
+/* $Id: private.h,v 1.33 2008/12/08 12:46:28 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -244,13 +244,33 @@ struct md_mbuf {
extern const char *const *toknames;
extern const char *const *tokargnames;
-enum roffmsg { ROFF_WARN, ROFF_ERROR };
+enum roffmsg {
+ ROFF_WARN,
+ ROFF_ERROR
+};
+
+enum roffmsec {
+ ROFF_MSEC_1,
+ ROFF_MSEC_2,
+ ROFF_MSEC_3,
+ ROFF_MSEC_3p,
+ ROFF_MSEC_4,
+ ROFF_MSEC_5,
+ ROFF_MSEC_6,
+ ROFF_MSEC_7,
+ ROFF_MSEC_8,
+ ROFF_MSEC_9,
+ ROFF_MSEC_UNASS,
+ ROFF_MSEC_DRAFT,
+ ROFF_MSEC_PAPER,
+ ROFF_MSEC_MAX
+};
struct roffcb {
void (*roffmsg)(void *, enum roffmsg,
const char *, const char *, const char *);
int (*roffhead)(void *, const struct tm *, const char *,
- const char *, const char *, const char *);
+ const char *, enum roffmsec, const char *);
int (*rofftail)(void *);
int (*roffdata)(void *, int, const char *, const char *);
int (*roffin)(void *, int, int *, const char **);