1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 20:29:34 +00:00

Struct cleanup

git-svn-id: svn://svn.cc65.org/cc65/trunk@1259 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-04-24 18:46:49 +00:00
parent 2a921c4498
commit 5c4205b284
2 changed files with 3 additions and 13 deletions

View File

@ -47,13 +47,8 @@ MODCTRL_READ = 0
MODCTRL_CALLERDATA = 2
MODCTRL_MODULE = 4 ; Pointer to module data
MODCTRL_MODULE_SIZE = 6 ; Total size of loaded module
MODCTRL_CODE = 8 ; Pointer to code segment
MODCTRL_CODE_SIZE = 10 ; Size of code segment
MODCTRL_DATA = 12 ; Pointer to data segment
MODCTRL_DATA_SIZE = 14 ; Size of data segment
MODCTRL_BSS = 16 ; Pointer to bss segment
MODCTRL_BSS_SIZE = 18 ; Size of bss segment
MODCTRL_SIZE = 20 ; Total size of struct
MODCTRL_MODULE_ID = 8
MODCTRL_SIZE = 10 ; Total size of struct
; unsigned char mod_load (struct mod_ctrl* ctrl);

View File

@ -63,12 +63,7 @@ struct mod_ctrl {
/* Parameters set by the loader routine */
void* module; /* Pointer to module data */
unsigned module_size; /* Total size of loaded module */
void* code; /* Pointer to code segment */
unsigned code_size; /* Size of code segment */
void* data; /* Pointer to data segment */
unsigned data_size; /* Size of data segment */
void* bss; /* Pointer to bss segment */
unsigned bss_size; /* Size of bss segment */
unsigned module_id; /* Module id */
};