X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fmodload.h;h=04ad54d79cdcd10024703779054d446abcb329ad;hb=9fbc99eb6d74a6cb4a6d50bbe987b83453fa597c;hp=492b5b4019cd0cc77e2f7ea0cf5f867326470773;hpb=9c7d2191aaa0ef15c8af50a9d47715d03894e1aa;p=cc65 diff --git a/include/modload.h b/include/modload.h index 492b5b401..04ad54d79 100644 --- a/include/modload.h +++ b/include/modload.h @@ -61,7 +61,7 @@ struct mod_ctrl { * NOTE: read() is designed so that the POSIX read() routine can be used * for this vector, if you're loading from disk. */ - int (*read) (int callerdata, void* buffer, unsigned count); + int __fastcall__ (*read) (int callerdata, void* buffer, unsigned count); int callerdata; /* Parameters set by the loader routine */ @@ -72,14 +72,14 @@ struct mod_ctrl { -unsigned char mod_load (struct mod_ctrl* ctrl); +unsigned char __fastcall__ mod_load (struct mod_ctrl* ctrl); /* Load a module into memory and relocate it. The function will return an * error code (see below). If MLOAD_OK is returned, the outgoing fields in * the passed mod_ctrl struct contain information about the module just * loaded. */ -void mod_free (void* module); +void __fastcall__ mod_free (void* module); /* Free a loaded module. Note: The given pointer is the pointer to the * module memory, not a pointer to a control structure. */