summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/realtimeGC/main.c6
-rwxr-xr-xtests/realtimeGC/make.bat2
-rw-r--r--tests/realtimeGC/shared.nim1
3 files changed, 5 insertions, 4 deletions
diff --git a/tests/realtimeGC/main.c b/tests/realtimeGC/main.c
index 8bf7aed19..a7ac19dda 100644
--- a/tests/realtimeGC/main.c
+++ b/tests/realtimeGC/main.c
@@ -25,9 +25,9 @@ int main(int argc, char* argv[])
 
 #ifdef WIN
     hndl = (void*) LoadLibrary((char const*)"./shared.dll");
-    status = (pFunc)GetProcessAddress((HMODULE) hndl, (char const*)"status");
-    count = (pFunc)GetProcessAddress((HMODULE) hndl, (char const*)"count");
-    occupiedMem = (pFunc)GetProcessAddress((HMODULE) hndl, (char const*)"occupiedMem");
+    status = (pFunc)GetProcAddress((HMODULE) hndl, (char const*)"status");
+    count = (pFunc)GetProcAddress((HMODULE) hndl, (char const*)"count");
+    occupiedMem = (pFunc)GetProcAddress((HMODULE) hndl, (char const*)"occupiedMem");
 #else /* OSX || NIX */
     hndl = (void*) dlopen((char const*)"./libshared.so", RTLD_LAZY);
     status = (pFunc) dlsym(hndl, (char const*)"status");
diff --git a/tests/realtimeGC/make.bat b/tests/realtimeGC/make.bat
index 182595270..cce8292bf 100755
--- a/tests/realtimeGC/make.bat
+++ b/tests/realtimeGC/make.bat
@@ -7,4 +7,4 @@ set INC=
 

 nim c shared.nim

 nim c -o:nmain main.nim

-%CXX% %INC) %DEFS% %CFLAGS% -o cmain main.c %LNFLAGS% %LIBS%

+%CXX% %INC% %DEFS% %CFLAGS% -o cmain main.c %LNFLAGS% %LIBS%

diff --git a/tests/realtimeGC/shared.nim b/tests/realtimeGC/shared.nim
index df11b4ef9..345051bb5 100644
--- a/tests/realtimeGC/shared.nim
+++ b/tests/realtimeGC/shared.nim
@@ -57,4 +57,5 @@ proc count() {.exportc: "count", dynlib.} =
 
 proc occupiedMem() {.exportc: "occupiedMem", dynlib.} =
   #echo("Occupied Memmory: ", getOccupiedMem())
+  discard
 
0:15:19 +0200 committer Andreas Rumpf <rumpf_a@web.de> 2016-06-06 13:13:04 +0200 updated todo.txt' href='/ahoang/Nim/commit/todo.txt?h=devel&id=157cd6d8d6f2fc06e03a9ca1108ea3d81146ca6b'>157cd6d8d ^
2ac265696 ^
f4a0400de ^
22a702868 ^
b7c806381 ^
a2bb7d4c7 ^



d4bca58b7 ^
2958adc47 ^

c55f5b34e ^
5f64d7a35 ^
d01ff8994 ^
d01ff8994 ^
22a702868 ^
22a702868 ^


d01ff8994 ^
d01ff8994 ^
22a702868 ^



22a702868 ^

22a702868 ^
258aabba6 ^



9952d1667 ^
258aabba6 ^



22a702868 ^


22a702868 ^







258aabba6 ^


8b5aa221a ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76