From e72db3dd30f49f9ba66d3343bd9b16314f1a8a71 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 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mandoc.h') diff --git a/mandoc.h b/mandoc.h index 1a53ea11..774f2481 100644 --- a/mandoc.h +++ b/mandoc.h @@ -1,6 +1,7 @@ /* $Id$ */ /* * 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