From e0775496049b1f1c4aa21434142ccda12eb3146b Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 19 Nov 2012 22:30:58 +0000 Subject: Do not crash on stray .Ta macros found outside column lists. Problem reported by jmc@, thanks. --- mandoc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mandoc.h') 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 + * Copyright (c) 2012 Ingo Schwarze * * 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 */ -- cgit v1.2.3