aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-30 02:36:38 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-30 02:36:38 +0000
commit09af02110fb2332decede6c59de9e177433c15d7 (patch)
tree5c9e42c7d9eb47c69177aeb4177861bba1945485 /read.c
parent929d6892d847e3b8dbd10eb1d45d0699169185ad (diff)
downloadmandoc-09af02110fb2332decede6c59de9e177433c15d7.tar.gz
mandoc-09af02110fb2332decede6c59de9e177433c15d7.tar.zst
mandoc-09af02110fb2332decede6c59de9e177433c15d7.zip
warn about attempts to call non-callable macros;
inspired by a similar warning in the groff_mdoc(7) macros
Diffstat (limited to 'read.c')
-rw-r--r--read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/read.c b/read.c
index 96444f59..ec2d6871 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.101 2014/11/28 18:09:01 schwarze Exp $ */
+/* $Id: read.c,v 1.102 2014/11/30 02:36:38 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -120,6 +120,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
/* related to macros and nesting */
"obsolete macro",
+ "macro neither callable nor escaped",
"skipping paragraph macro",
"moving paragraph macro out of list",
"skipping no-space macro",