repo.or.cz
/
opsoft_archive.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Very old versions for history.
[opsoft_archive.git]
/
silentbob
/
silentbob-1.1
/
src
/
structs.h
blob
5c1f711bfe85f9891e923a77d3dc0cb654bc3a20
1
/*
2
* (c) Oleg Puchinin 2006
3
* graycardinalster@gmail.com
4
*
5
*/
6
7
#ifndef DEFINE_STRUCTS_H
8
#define DEFINE_STRUCTS_H
9
struct
d_tag_t
10
{
11
char
d_name
[
256
];
12
char
d_file
[
256
];
13
int
d_op
;
14
int
d_line
;
15
int
d_type
;
// Minimal support.
16
};
17
18
struct
pair_t
19
{
20
int
pair_op
;
21
int
pair_line
;
22
int
offset
;
23
};
24
25
struct
tt_state_t
26
{
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
;
35
};
36
37
struct
fdump_param_t
38
{
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
;
45
};
46
47
struct
c_word
48
{
49
char
*
S
;
50
char
ch
;
51
};
52
53
void
free_cword
(
c_word
*);
54
55
/*
56
* "struct {" -- BB_BEGIN
57
* ...
58
* } - BB_END
59
* <name>; - BB_TAIL
60
*/
61
62
enum
{
63
BB_BEGIN
=
1
,
64
BB_END
=
2
,
65
BB_TAIL
=
3
66
};
67
#endif