summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2001-10-25 19:28:43 +0000
committerSimon Tatham <anakin@pobox.com>2001-10-25 19:28:43 +0000
commit3e043306f1594f7528788a1c593995b391fc7a5a (patch)
tree614dbae4b9d0b18ffaed645887e8243c21c809a7 /main.c
parentdd9eaf09d344a4b18b2750cef08795a097891c08 (diff)
downloadhalibut-3e043306f1594f7528788a1c593995b391fc7a5a.zip
halibut-3e043306f1594f7528788a1c593995b391fc7a5a.tar.gz
halibut-3e043306f1594f7528788a1c593995b391fc7a5a.tar.bz2
halibut-3e043306f1594f7528788a1c593995b391fc7a5a.tar.xz
Enforce proper ordering of heading levels: specifically, ensure the
user doesn't skip a heading level (\H before any \C or \A, or \S straight after \C with no intervening \H). The precise criterion is that when creating section a.b.c.d, sections a.b.c, a.b and a should already exist. This ensures the section tree really is a properly formed tree with no missing nodes. [originally from svn r1329]
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 079aba8..b7be46f 100644
--- a/main.c
+++ b/main.c
@@ -197,6 +197,8 @@ int main(int argc, char **argv) {
sfree(infiles);
keywords = get_keywords(sourceform);
+ if (!keywords)
+ exit(EXIT_FAILURE);
gen_citations(sourceform, keywords);
subst_keywords(sourceform, keywords);