mirror of
https://github.com/uffejakobsen/acme.git
synced 2024-11-22 18:32:09 +00:00
a4943e1f40
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@139 4df02467-bbd4-4a76-a152-e7ce94205b78
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
// ACME - a crossassembler for producing 6502/65c02/65816/65ce02 code.
|
|
// Copyright (C) 1998-2020 Marco Baye
|
|
// Have a look at "acme.c" for further info
|
|
//
|
|
// section stuff
|
|
#ifndef section_H
|
|
#define section_H
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
// "section" structure type definition
|
|
struct section {
|
|
scope_t local_scope; // section's scope for local symbols
|
|
scope_t cheap_scope; // section's scope for cheap locals
|
|
const char *type; // "Zone", "Subzone" or "Macro"
|
|
char *title; // zone title, subzone title or macro title
|
|
boolean allocated; // whether title was malloc()'d
|
|
};
|
|
|
|
|
|
// current section structure
|
|
extern struct section *section_now;
|
|
|
|
|
|
// write given info into given structure and activate it
|
|
extern void section_new(struct section *section, const char *type, char *title, boolean allocated);
|
|
// change scope of cheap locals in given section
|
|
extern void section_new_cheap_scope(struct section *section);
|
|
// setup outermost section
|
|
extern void section_passinit(void);
|
|
// tidy up: if necessary, release section title.
|
|
extern void section_finalize(struct section *section);
|
|
|
|
|
|
#endif
|