Mercurial > hg-old > index.cgi
comparison src/lwasm.h @ 143:0ee5f65bccf9
Added pragma to allow all undefined symbols to be considered external and also added a --pragma command line option
author | lost |
---|---|
date | Thu, 29 Jan 2009 01:32:11 +0000 |
parents | f59c0916753d |
children |
comparison
equal
deleted
inserted
replaced
142:36ca3fa755e0 | 143:0ee5f65bccf9 |
---|---|
176 // items used only for the "object" target | 176 // items used only for the "object" target |
177 sectiontab_t *sections; // pointer to section table | 177 sectiontab_t *sections; // pointer to section table |
178 sectiontab_t *csect; // current section - NULL if not in one | 178 sectiontab_t *csect; // current section - NULL if not in one |
179 } asmstate_t; | 179 } asmstate_t; |
180 | 180 |
181 // do not rewrite XXX,r to ,r if XXX evaluates to 0 | |
181 #define PRAGMA_NOINDEX0TONONE 1 | 182 #define PRAGMA_NOINDEX0TONONE 1 |
183 // any undefined symbols are considered external | |
184 #define PRAGMA_UNDEFEXTERN 2 | |
182 | 185 |
183 #ifndef __lwasm_c_seen__ | 186 #ifndef __lwasm_c_seen__ |
184 #define __lwasm_E__ extern | 187 #define __lwasm_E__ extern |
185 #else | 188 #else |
186 #define __lwasm_E__ | 189 #define __lwasm_E__ |