summaryrefslogtreecommitdiff
path: root/3rd-party/xfpt/src/globals.c
blob: 2ea12003c7eb60ff519c57bca7af694cf3ce534f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*************************************************
*     xfpt - Simple ASCII->Docbook processor     *
*************************************************/

/* Copyright (c) University of Cambridge, 2012 */
/* Written by Philip Hazel. */

/* Allocate storage and initialize global variables */

#include "xfpt.h"


uschar    *xfpt_share                = US DATADIR;
uschar    *xfpt_version              = US "0.09 16-May-2012";

tree_node *entities                  = NULL;

flagstr   *flaglist                  = NULL;
int        from_type[FROM_TYPE_STACKSIZE];
int        from_type_ptr             = 0;

uschar    *inbuffer                  = NULL;
istackstr *istack                    = NULL;
istackstr *istackbase                = NULL;

int        literal_state             = LITERAL_OFF;

int        nest_level                = 0;
int        nest_literal_stack[MAXNEST+1];
uschar    *next_line                 = NULL;

macroexe  *macrocurrent              = NULL;
macrodef  *macrolist                 = NULL;

argstr    *macro_argbase             = NULL;
argstr    *macro_starteach           = NULL;

FILE      *outfile                   = NULL;

int        para_inline_macro         = 0;
uschar    *parabuffer                = NULL;
int        popto                     = -1;
pushstr   *pushed                    = NULL;

int        return_code               = 0;
uschar    *revision                  = NULL;

BOOL       suppress_warnings         = FALSE;

/* End of globals.c */