summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-08-07 23:54:03 +0200
committerAraq <rumpf_a@web.de>2011-08-07 23:54:03 +0200
commitcb21fd4f8f0255099da15da53e304b1ea12f05f3 (patch)
tree4ddb5e0a9191e6b43a6696ebcdc906ca9911fdf0 /lib/system.nim
parent5131b3cea4ba50970ef5d3313cbd8a75acadc2d7 (diff)
downloadNim-cb21fd4f8f0255099da15da53e304b1ea12f05f3.tar.gz
json code generation works again
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-xlib/system.nim9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 33e350d7e..b32f17d6a 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1470,10 +1470,6 @@ type
     filename: CString
     len: int  # length of slots (when not debugging always zero)
 
-when defined(ecmaScript):
-  var
-    framePtr {.compilerproc.}: PFrame
-
 when not defined(ECMAScript):
   {.push stack_trace:off}
   proc add*(x: var string, y: cstring) =
@@ -1877,6 +1873,11 @@ elif defined(ecmaScript) or defined(NimrodVM):
   proc alloc0(size: int): pointer = nil
   proc realloc(p: Pointer, newsize: int): pointer = nil
 
+  proc allocShared(size: int): pointer = nil
+  proc allocShared0(size: int): pointer = nil
+  proc deallocShared(p: pointer) = nil
+  proc reallocShared(p: pointer, newsize: int): pointer = nil
+
   when defined(ecmaScript):
     include "system/ecmasys"
   elif defined(NimrodVM):