Add '3rd-party/xfpt/' from commit '24eaa721effcf2f56d1da62344ee27ac9721d3ec'
[exim.git] / 3rd-party / xfpt / src / xfpt.h
1 /*************************************************
2 *     xfpt - Simple ASCII->Docbook processor     *
3 *************************************************/
4
5 /* Copyright (c) University of Cambridge, 2008 */
6
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. */
9
10
11 #ifndef INCLUDED_xfpt_H
12 #define INCLUDED_xfpt_H
13
14 /* General header file for all modules */
15
16 #include <ctype.h>
17 #include <limits.h>
18 #include <stdarg.h>
19 #include <stddef.h>
20 #include <stdio.h>
21 #include <stdlib.h>
22 #include <string.h>
23 #include <time.h>
24 #include <errno.h>
25
26
27 /* These are some parameters that specify sizes of things in the code. They
28 must appear before including the local headers. */
29
30
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. */
33
34 #define INBUFFSIZE          1024
35 #define PARABUFFSIZE       10000
36 #define FLAGSTACKSIZE         40
37 #define MAXNEST                3
38 #define FROM_TYPE_STACKSIZE   20
39
40
41 /* Type of current input */
42
43 enum { FROM_FILE, FROM_MACRO };
44
45
46 /* Nested block indicators for read_paragraph() */
47
48 enum { NEST_NO, NEST_BEGIN, NEST_END };
49
50
51 /* The literal states */
52
53 enum { LITERAL_OFF, LITERAL_LAYOUT, LITERAL_TEXT, LITERAL_XML };
54
55
56 /* More header files for xfpt */
57
58 #include "mytypes.h"
59 #include "structs.h"
60 #include "globals.h"
61 #include "functions.h"
62
63 #endif   /* INCLUDED_xfpt_H */
64
65 /* End of xfpt.h */