summary refs log tree commit diff stats
path: root/lib/system/cgprocs.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2010-08-01 14:49:54 +0200
committerAndreas Rumpf <rumpf_a@web.de>2010-08-01 14:49:54 +0200
commit03724c2952e4eea4d9e16f5b4eccec862a1ba21c (patch)
treee456ae6e514beae649defcc5596d40fd42f62f66 /lib/system/cgprocs.nim
parentff02ce2d50d8a4b445f9fba6076527c3db62425c (diff)
downloadNim-03724c2952e4eea4d9e16f5b4eccec862a1ba21c.tar.gz
before stack init change
Diffstat (limited to 'lib/system/cgprocs.nim')
-rw-r--r--lib/system/cgprocs.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/system/cgprocs.nim b/lib/system/cgprocs.nim
index 40aca033b..99f802910 100644
--- a/lib/system/cgprocs.nim
+++ b/lib/system/cgprocs.nim
@@ -11,4 +11,16 @@
 
 proc addChar(s: NimString, c: char): NimString {.compilerProc.}
 
+type
+  TLibHandle = pointer       # private type
+  TProcAddr = pointer        # libary loading and loading of procs:
+
+proc nimLoadLibrary(path: string): TLibHandle {.compilerproc.}
+proc nimUnloadLibrary(lib: TLibHandle) {.compilerproc.}
+proc nimGetProcAddr(lib: TLibHandle, name: cstring): TProcAddr {.compilerproc.}
+
+proc nimLoadLibraryError(path: string) {.compilerproc, noinline.}
+
+proc setStackBottom(theStackBottom: pointer) {.compilerRtl.}
+