summaryrefslogtreecommitdiff
path: root/web/c_cpp/cwebx/common.h
blob: 6981a0bbccb05208624b5c786a88892dfc6e39c1 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*14:*//*15:*/
#line 90 "common.w"
typedef char boolean;
typedef unsigned char eight_bits;
typedef unsigned short sixteen_bits;/*:15*//*51:*/
#line 778 "common.w"
typedef struct id_info
{char*byte_start;/*55:*/
#line 860 "common.w"
struct variant*equiv_or_xref;/*:55*//*57:*/
#line 871 "common.w"
struct id_info*hash_link;
int ilk;/*:57*/
#line 780 "common.w"

}id_info,*id_pointer;

typedef struct mod_info
{char*byte_start;/*56:*/
#line 863 "common.w"
struct variant*equiv_or_xref;/*:56*//*65:*/
#line 979 "common.w"
struct mod_info*llink,*rlink;

int key_length;/*:65*/
#line 785 "common.w"

}mod_info,*mod_pointer;/*:51*//*16:*/
#line 103 "common.w"
extern int program,phase;/*:16*//*18:*/
#line 112 "common.w"
void common_init(int argc,char* *argv);/*:18*//*20:*/
#line 133 "common.w"
extern char buffer[],*loc,*limit;/*:20*//*23:*/
#line 201 "common.w"
#define max_file_name_length 60
extern struct f
{FILE*file;char name[max_file_name_length];sixteen_bits line;}
file[],change;
extern int include_depth;
extern boolean input_has_ended,changing,web_file_open,print_where
,including_header_file;

boolean push_input_file(boolean,boolean);
boolean get_line(void);

#define cur_file file[include_depth].file 
#define cur_file_name file[include_depth].name 
#define cur_line file[include_depth].line

#define web_file file[0].file
#define change_file change.file
#define change_line change.line/*:23*//*40:*/
#line 579 "common.w"
void reset_input(void);/*:40*//*43:*/
#line 625 "common.w"
extern sixteen_bits section_count;
extern eight_bits changed_section[];
#define mark_section_as_changed(n) (changed_section[(n)>>3]|=1<<((n)&7))
#define section_changed(n) ((changed_section[(n)>>3]&(1<<((n)&7)))!=0)/*:43*//*49:*/
#line 745 "common.w"
extern void check_complete(void);/*:49*//*52:*/
#line 796 "common.w"
extern char byte_mem[],*byte_ptr;
extern id_info id_table[],*id_ptr;
extern mod_info mod_table[],*mod_ptr;/*:52*//*58:*/
#line 886 "common.w"
extern id_pointer hash[];
#define hash_end  (&hash[hash_size]) 
id_pointer id_lookup(char*,char*,int);/*:58*//*67:*/
#line 1005 "common.w"
extern mod_pointer root;/*:67*//*80:*/
#line 1266 "common.w"
extern char mod_text[],*id_first,*id_loc;
#define mod_text_end (&mod_text[longest_name+1]) 
mod_pointer get_module_name(void);
boolean get_control_text(void);
void get_string(void);/*:80*//*88:*/
#line 1433 "common.w"
extern history;
extern void err_print(char*),wrap_up(void),print_stats(void),
fatal(char*,...);/*:88*//*95:*/
#line 1531 "common.w"
extern boolean flags[];
extern char C_file_name[],idx_file_name[],scn_file_name[];/*:95*//*106:*/
#line 1697 "common.w"
extern FILE*C_file,*tex_file;
void open_output_file(void);/*:106*//*109:*/
#line 1723 "common.w"
void print(char*,...),print_progress(char*),print_section_progress(void);/*:109*//*:14*/