repo.or.cz
/
opsoft.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixes
[opsoft.git]
/
silentbob
/
include
/
structs.h
blob
f77c7325f6ad543e67c7ae4b42a16a5ac3ea2db4
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
*
fileName
;
28
int
fd
;
29
char
*
fileData
;
30
int
fileDataSize
;
31
bool
mmaped
;
32
char
*
result
;
33
int
resultSize
;
34
pair_t
*
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
struct
__block_t
{
56
int
op_no
;
57
int
type
;
58
};
59
60
/*
61
* "struct {" -- BB_BEGIN
62
* ...
63
* } - BB_END
64
* <name>; - BB_TAIL
65
*/
66
67
enum
{
68
BB_BEGIN
=
1
,
69
BB_END
=
2
,
70
BB_TAIL
=
3
71
};
72
#endif