Debian Codegraph @

src/section.h

raw symbols SCIP
1 // ACME - a crossassembler for producing 6502/65c02/65816/65ce02 code.
2 // Copyright (C) 1998-2024 Marco Baye
3 // Have a look at "acme.c" for further info
4 //
5 // section stuff
6 #ifndef section_H
7 #define section_H
8
9
10 #include "config.h"
11
12
13 // "section" structure type definition
14 struct section {
15 scope_t local_scope; // section's scope for local symbols
16 scope_t cheap_scope; // section's scope for cheap locals
17 const char *type; // "Zone", "Subzone" or "Macro"
18 char *title; // zone title, subzone title or macro title
19 boolean allocated; // whether title was malloc()'d
20 };
21
22
23 // current section structure
24 extern struct section *section_now;
25
26
27 // write given info into given structure and activate it
28 extern void section_new(struct section *section, const char *type, char *title, boolean allocated);
29
30 // change scope of cheap locals in given section
31 extern void section_new_cheap_scope(struct section *section);
32
33 // setup outermost section
34 extern void section_passinit(void);
35
36 // tidy up: if necessary, release section title.
37 extern void section_finalize(struct section *section);
38
39
40 #endif