Browse Source

+ dummy WASI heap functions

git-svn-id: branches/wasm@48220 -
nickysn 4 years ago
parent
commit
2f233adda2
2 changed files with 30 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 29 0
      rtl/wasi/sysheap.inc

+ 1 - 0
.gitattributes

@@ -12193,6 +12193,7 @@ rtl/unix/x86.pp svneol=native#text/plain
 rtl/wasi/Makefile svneol=native#text/plain
 rtl/wasi/Makefile.fpc svneol=native#text/plain
 rtl/wasi/rtldefs.inc svneol=native#text/plain
+rtl/wasi/sysheap.inc svneol=native#text/plain
 rtl/wasi/sysos.inc svneol=native#text/plain
 rtl/wasi/sysosh.inc svneol=native#text/plain
 rtl/wasi/system.pp svneol=native#text/plain

+ 29 - 0
rtl/wasi/sysheap.inc

@@ -0,0 +1,29 @@
+{
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 2001 by Free Pascal development team
+
+    This file implements all the base types and limits required
+    for a minimal POSIX compliant subset required to port the compiler
+    to a new OS.
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
+
+{*****************************************************************************
+                              Heap Management
+*****************************************************************************}
+
+function SysOSAlloc(size: ptruint): pointer;
+begin
+end;
+
+procedure SysOSFree(p: pointer; size: ptruint);
+begin
+end;