1 /*************************************************
2 * xfpt - Simple ASCII->Docbook processor *
3 *************************************************/
5 /* Copyright (c) University of Cambridge, 2008 */
7 /* Written by Philip Hazel. I wrote this because I found AsciiDoc to be to slow
8 for large documents, and also to have too many quirks and gotchas. */
11 #ifndef INCLUDED_xfpt_H
12 #define INCLUDED_xfpt_H
14 /* General header file for all modules */
27 /* These are some parameters that specify sizes of things in the code. They
28 must appear before including the local headers. */
31 /* These values do not necessarily have to appear before including the local
32 headers, but they might as well be together with those above. */
34 #define INBUFFSIZE 1024
35 #define PARABUFFSIZE 10000
36 #define FLAGSTACKSIZE 40
38 #define FROM_TYPE_STACKSIZE 20
41 /* Type of current input */
43 enum { FROM_FILE, FROM_MACRO };
46 /* Nested block indicators for read_paragraph() */
48 enum { NEST_NO, NEST_BEGIN, NEST_END };
51 /* The literal states */
53 enum { LITERAL_OFF, LITERAL_LAYOUT, LITERAL_TEXT, LITERAL_XML };
56 /* More header files for xfpt */
61 #include "functions.h"
63 #endif /* INCLUDED_xfpt_H */