From babdeae551d1f61cd4a3ed9d750401b8a4b99ae1 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 30 Nov 2014 02:31:33 +0000 Subject: warn about attempts to call non-callable macros; inspired by a similar warning in the groff_mdoc(7) macros --- usr.bin/mandoc/mandoc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/mandoc/mandoc.h') diff --git a/usr.bin/mandoc/mandoc.h b/usr.bin/mandoc/mandoc.h index 81e1b27bd97..483eda91ea8 100644 --- a/usr.bin/mandoc/mandoc.h +++ b/usr.bin/mandoc/mandoc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mandoc.h,v 1.115 2014/11/28 18:07:38 schwarze Exp $ */ +/* $OpenBSD: mandoc.h,v 1.116 2014/11/30 02:31:32 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -75,6 +75,7 @@ enum mandocerr { /* related to macros and nesting */ MANDOCERR_MACRO_OBS, /* obsolete macro: macro */ + MANDOCERR_MACRO_CALL, /* macro neither callable nor escaped: macro */ MANDOCERR_PAR_SKIP, /* skipping paragraph macro: macro ... */ MANDOCERR_PAR_MOVE, /* moving paragraph macro out of list: macro */ MANDOCERR_NS_SKIP, /* skipping no-space macro */ -- cgit v1.2.3