aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-11-19 22:30:58 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-11-19 22:30:58 +0000
commite0775496049b1f1c4aa21434142ccda12eb3146b (patch)
treeaf7d5ed84f6a906599d458f0b7d917f7daee5509 /mandoc.h
parentdc409878671ea1571807749a48b645dd88048385 (diff)
downloadmandoc-e0775496049b1f1c4aa21434142ccda12eb3146b.tar.gz
mandoc-e0775496049b1f1c4aa21434142ccda12eb3146b.tar.zst
mandoc-e0775496049b1f1c4aa21434142ccda12eb3146b.zip
Do not crash on stray .Ta macros found outside column lists.
Problem reported by jmc@, thanks.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mandoc.h b/mandoc.h
index 1f072963..f84b746c 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,6 +1,7 @@
-/* $Id: mandoc.h,v 1.105 2012/11/16 22:21:05 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.106 2012/11/19 22:30:58 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
+ * Copyright (c) 2012 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -135,6 +136,7 @@ enum mandocerr {
MANDOCERR_MACRO, /* skipping unknown macro */
MANDOCERR_REQUEST, /* NOT IMPLEMENTED: skipping request */
MANDOCERR_ARGCOUNT, /* argument count wrong */
+ MANDOCERR_STRAYTA, /* skipping column outside column list */
MANDOCERR_NOSCOPE, /* skipping end of block that is not open */
MANDOCERR_SCOPEBROKEN, /* missing end of block */
MANDOCERR_SCOPEEXIT, /* scope open on exit */