Very old versions for history.
[opsoft_archive.git] / silentbob / silent_bob / structs.h
blob2d04c1f7612835aecf4a8377fb0437d729eb24cd
1 /*
2 * (c) Oleg Puchinin (aka GrayCardinal) 2006
3 * graycardinalster@gmail.com
4 *
5 */
7 #ifndef DEFINE_STRUCTS_H
8 #define DEFINE_STRUCTS_H
9 struct d_tag_t
11 char d_name[256];
12 char d_file[256];
13 int d_op;
14 int d_line;
15 int d_type; // Minimal support.
18 struct pair_t
20 int pair_op;
21 int pair_line;
22 int offset;
25 struct tt_state_t
27 char * d_file_name;
28 int d_fd;
29 char * d_file_in;
30 int d_filein_size;
31 bool b_mmap;
32 char * d_output;
33 int d_output_size;
34 pair_t * d_attachment;
37 struct fdump_param_t
39 int n_trip;
40 int d_line;
41 bool linear;
42 bool b_force_block;
43 char * d_file_name;
44 char *d_file_output;
47 struct c_word
49 char * S;
50 char ch;
53 void free_cword (c_word *);
55 /*
56 * "struct {" -- BB_BEGIN
57 * ...
58 * } - BB_END
59 * <name>; - BB_TAIL
62 enum {
63 BB_BEGIN = 1,
64 BB_END = 2,
65 BB_TAIL = 3
67 #endif