1 
2 /*
3  * (c) Oleg Puchinin 2006
4  * graycardinalster@gmail.com
5  *
6  */
7 
8 #ifndef DEFINE_STRUCTS_H
9 #define DEFINE_STRUCTS_H
10 struct d_tag_t
11 {
12 	char d_name[256];
13 	char d_file[256];
14 	int d_op;
15 	int d_line;
16 	int d_type; // Minimal support.
17 };
18 
19 struct pair_t
20 {
21 	int pair_op;
22 	int pair_line;
23 	int offset;
24 };
25 
26 struct tt_state_t
27 {
28 	char *fileName;
29 	int fd;
30 	char * fileData;
31 	int fileDataSize;
32 	bool mmaped;
33 	char * result;
34 	int resultSize;
35 	pair_t * attachment;
36 };
37 
38 struct fdump_param_t
39 {
40 	int n_trip;
41 	int d_line;
42 	bool linear;
43 	bool b_force_block;
44 	char * d_file_name;
45 	char *d_file_output;
46 };
47 
48 struct c_word
49 {
50 	char * S;
51 	char ch;
52 };
53 
54 void free_cword (c_word *);
55 
56 enum {
57 	LALL = 1,
58 	LCXX,
59 	LPERL,
60 	LPYTHON,
61 	LRUBY,
62 	LPHP,
63 	LJAVA,
64 	LGO,
65 	LLUA
66 };
67 
68 #endif
69