From: cuz Date: Wed, 24 Apr 2002 18:46:49 +0000 (+0000) Subject: Struct cleanup X-Git-Tag: V2.12.0~2362 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5c4205b2840f2bae0d07f22b15820bb10733a32a;p=cc65 Struct cleanup git-svn-id: svn://svn.cc65.org/cc65/trunk@1259 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/asminc/modload.inc b/asminc/modload.inc index a8be525aa..466f8e57e 100644 --- a/asminc/modload.inc +++ b/asminc/modload.inc @@ -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); diff --git a/include/modload.h b/include/modload.h index b04ae7054..2b2397dd4 100644 --- a/include/modload.h +++ b/include/modload.h @@ -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 */ };