Browse Source

* cheat and declare many of the empty routines as 'inline' to save some precious memory bytes :)

git-svn-id: branches/z80@45133 -
nickysn 5 years ago
parent
commit
cb169980b7
3 changed files with 17 additions and 16 deletions
  1. 4 4
      rtl/zxspectrum/sysdir.inc
  2. 10 10
      rtl/zxspectrum/sysfile.inc
  3. 3 2
      rtl/zxspectrum/sysheap.inc

+ 4 - 4
rtl/zxspectrum/sysdir.inc

@@ -18,18 +18,18 @@
                            Directory Handling
                            Directory Handling
 *****************************************************************************}
 *****************************************************************************}
 
 
-Procedure do_MkDir(const s: rawbytestring);
+Procedure do_MkDir(const s: rawbytestring);inline;
 begin
 begin
 end;
 end;
 
 
-Procedure do_RmDir(const s: rawbytestring);
+Procedure do_RmDir(const s: rawbytestring);inline;
 begin
 begin
 end;
 end;
 
 
-Procedure do_ChDir(const s: rawbytestring);
+Procedure do_ChDir(const s: rawbytestring);inline;
 begin
 begin
 end;
 end;
 
 
-procedure do_GetDir (DriveNr: byte; var Dir: RawByteString);
+procedure do_GetDir (DriveNr: byte; var Dir: RawByteString);inline;
 begin
 begin
 end;
 end;

+ 10 - 10
rtl/zxspectrum/sysfile.inc

@@ -18,17 +18,17 @@
                         Low level File Routines
                         Low level File Routines
  ****************************************************************************}
  ****************************************************************************}
 
 
-procedure do_close(handle : thandle);
+procedure do_close(handle : thandle);inline;
 begin
 begin
 end;
 end;
 
 
 
 
-procedure do_erase(p : pchar; pchangeable: boolean);
+procedure do_erase(p : pchar; pchangeable: boolean);inline;
 begin
 begin
 end;
 end;
 
 
 
 
-procedure do_rename(p1,p2 : pchar; p1changeable, p2changeable: boolean);
+procedure do_rename(p1,p2 : pchar; p1changeable, p2changeable: boolean);inline;
 begin
 begin
 end;
 end;
 
 
@@ -64,33 +64,33 @@ begin
 end;
 end;
 
 
 
 
-function do_filepos(handle : thandle) : longint;
+function do_filepos(handle : thandle) : longint;inline;
 begin
 begin
 end;
 end;
 
 
 
 
-procedure do_seek(handle:thandle;pos : longint);
+procedure do_seek(handle:thandle;pos : longint);inline;
 begin
 begin
 end;
 end;
 
 
 
 
 
 
-function do_seekend(handle:thandle):longint;
+function do_seekend(handle:thandle):longint;inline;
 begin
 begin
 end;
 end;
 
 
 
 
-function do_filesize(handle : thandle) : longint;
+function do_filesize(handle : thandle) : longint;inline;
 begin
 begin
 end;
 end;
 
 
 
 
 { truncate at a given position }
 { truncate at a given position }
-procedure do_truncate (handle:thandle;pos:longint);
+procedure do_truncate (handle:thandle;pos:longint);inline;
 begin
 begin
 end;
 end;
 
 
-procedure do_open(var f;p:pchar;flags:longint; pchangeable: boolean);
+procedure do_open(var f;p:pchar;flags:longint; pchangeable: boolean);inline;
 {
 {
   filerec and textrec have both handle and mode as the first items so
   filerec and textrec have both handle and mode as the first items so
   they could use the same routine for opening/creating.
   they could use the same routine for opening/creating.
@@ -102,7 +102,7 @@ begin
 end;
 end;
 
 
 
 
-function do_isdevice(handle:THandle):boolean;
+function do_isdevice(handle:THandle):boolean;inline;
 begin
 begin
   do_isdevice:=true;
   do_isdevice:=true;
 end;
 end;

+ 3 - 2
rtl/zxspectrum/sysheap.inc

@@ -17,10 +17,11 @@
                               Heap Management
                               Heap Management
 *****************************************************************************}
 *****************************************************************************}
 
 
-function SysOSAlloc (size: ptruint): pointer;
+function SysOSAlloc (size: ptruint): pointer;inline;
 begin
 begin
+  SysOSAlloc:=nil;
 end;
 end;
 
 
-procedure SysOSFree(p: pointer; size: ptruint);
+procedure SysOSFree(p: pointer; size: ptruint);inline;
 begin
 begin
 end;
 end;