| 1 | //cxx . . $ `<file>/src/asm/section.h`/ |
| 2 | // ACME - a crossassembler for producing 6502/65c02/65816 code. |
| 3 | // Copyright (C) 1998-2006 Marco Baye |
| 4 | // Have a look at "acme.c" for further info |
| 5 | // |
| 6 | // Section stuff |
| 7 | #ifndef section_H |
| 8 | #define section_Hcxx . . $ `src/asm/section.h:8:9`! |
| 9 | |
| 10 | #include "config.h"cxx . . $ `<file>/src/asm/config.h`/ |
| 11 | |
| 12 | |
| 13 | // "section" structure type definition |
| 14 | typedef structcxx . . $ $anonymous_type_4270326a5ce8d2d2_0# { |
| 15 | zone_tcxx . . $ zone_t# zonecxx . . $ $anonymous_type_4270326a5ce8d2d2_0#zone.; // current zone value |
| 16 | const char* typecxx . . $ $anonymous_type_4270326a5ce8d2d2_0#type.; // "Zone", "Subzone" or "Macro" |
| 17 | char* titlecxx . . $ $anonymous_type_4270326a5ce8d2d2_0#title.; // zone title, subzone title or macro title |
| 18 | int allocatedcxx . . $ $anonymous_type_4270326a5ce8d2d2_0#allocated.; // whether title was malloc()'d |
| 19 | } section_tcxx . . $ section_t#; |
| 20 | |
| 21 | |
| 22 | // Constants |
| 23 | #define ZONE_GLOBALcxx . . $ `src/asm/section.h:23:9`! 0 // Number of "global zone" |
| 24 | |
| 25 | |
| 26 | // Variables |
| 27 | |
| 28 | // current section structure |
| 29 | extern section_tcxx . . $ section_t# *Section_nowcxx . . $ Section_now.; |
| 30 | |
| 31 | |
| 32 | // Prototypes |
| 33 | |
| 34 | // Write given info into given zone structure and activate it |
| 35 | extern void Section_new_zonecxx . . $ Section_new_zone(ef0b653b3680aef).(section_tcxx . . $ section_t#*, const char* type, char* title, boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! allocated); |
| 36 | // register pseudo opcodes |
| 37 | extern void Section_initcxx . . $ Section_init(49f6e7a06ebc5aa8).(void); |
| 38 | // Setup outermost section |
| 39 | extern void Section_passinitcxx . . $ Section_passinit(49f6e7a06ebc5aa8).(void); |
| 40 | // Tidy up: If necessary, release section title. |
| 41 | extern void Section_finalizecxx . . $ Section_finalize(91b759fd9e8cb2c0).(section_tcxx . . $ section_t#* section); |
| 42 | |
| 43 | |
| 44 | #endif |