Mercurial > hg-old > index.cgi
comparison src/lwlink.h @ 299:460d96987670
parse linking scripts
author | lost |
---|---|
date | Wed, 21 Jan 2009 04:54:32 +0000 |
parents | 96a35a4245f3 |
children | 48945dac8178 |
comparison
equal
deleted
inserted
replaced
298:96a35a4245f3 | 299:460d96987670 |
---|---|
78 extern int debug_level; | 78 extern int debug_level; |
79 extern int outformat; | 79 extern int outformat; |
80 extern char *outfile; | 80 extern char *outfile; |
81 extern int ninputfiles; | 81 extern int ninputfiles; |
82 extern fileinfo_t **inputfiles; | 82 extern fileinfo_t **inputfiles; |
83 extern char *scriptfile; | |
83 | 84 |
84 #define __lwlink_E__ extern | 85 #define __lwlink_E__ extern |
85 #else | 86 #else |
86 #define __lwlink_E__ | 87 #define __lwlink_E__ |
87 #endif // __lwlink_c_seen__ | 88 #endif // __lwlink_c_seen__ |
88 | 89 |
89 __lwlink_E__ void add_input_file(char *fn); | 90 __lwlink_E__ void add_input_file(char *fn); |
90 | 91 |
91 #undef __lwlink_E__ | 92 #undef __lwlink_E__ |
93 | |
94 struct scriptline_s | |
95 { | |
96 char *sectname; // name of section, NULL for wildcard | |
97 int loadat; // address to load at (or -1) | |
98 int noflags; // flags to NOT have | |
99 int yesflags; // flags to HAVE | |
100 }; | |
101 | |
102 typedef struct | |
103 { | |
104 int nlines; // number of lines in the script | |
105 struct scriptline_s *lines; // the parsed script lines (section) | |
106 int padsize; // the size to pad to, -1 for none | |
107 } linkscript_t; | |
108 | |
109 #ifndef __script_c_seen__ | |
110 extern linkscript_t linkscript; | |
111 #endif | |
112 | |
92 #endif //__lwlink_h_seen__ | 113 #endif //__lwlink_h_seen__ |