]> git.sur5r.net Git - cc65/blobdiff - include/modload.h
Ignore a few more "harmless" functions when optimizing.
[cc65] / include / modload.h
index 492b5b4019cd0cc77e2f7ea0cf5f867326470773..04ad54d79cdcd10024703779054d446abcb329ad 100644 (file)
@@ -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.
  */