summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-laptop>2010-07-22 00:02:08 +0200
committerAndreas Rumpf <andreas@andreas-laptop>2010-07-22 00:02:08 +0200
commit2b212851441d58d4dd5beb53c1572b652dc04929 (patch)
tree649751a36d3096d894028d42b21b8464d967562c /lib
parent202d229fdf62600e1247b0ba07fa5f30aed06063 (diff)
downloadNim-2b212851441d58d4dd5beb53c1572b652dc04929.tar.gz
bugfix: c2nim: typedef unsigned char
Diffstat (limited to 'lib')
-rwxr-xr-xlib/system.nim6
-rwxr-xr-xlib/system/mmdisp.nim3
2 files changed, 3 insertions, 6 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 7d1d2a867..d3450902e 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1123,12 +1123,6 @@ proc isNil*(x: cstring): bool {.noSideEffect, magic: "IsNil".}
   ## Fast check whether `x` is nil. This is sometimes more efficient than
   ## ``== nil``.
 
-
-# Fixup some magic symbols here:
-#{.fixup_system.} 
-# This is an undocumented pragma that can only be used
-# once in the system module.
-
 proc `&` *[T](x, y: openArray[T]): seq[T] {.noSideEffect.} =
   newSeq(result, x.len + y.len)
   for i in 0..x.len-1:
diff --git a/lib/system/mmdisp.nim b/lib/system/mmdisp.nim
index f28b6b931..c89e7dffa 100755
--- a/lib/system/mmdisp.nim
+++ b/lib/system/mmdisp.nim
@@ -136,6 +136,9 @@ elif defined(nogc):
   # object, because C does not support this operation... Even though every
   # possible implementation has to have a way to determine the object's size.
   # C just sucks.
+  when appType == "lib": 
+    {.warning: "nogc in a library context may not work".}
+  
   include "system/alloc"
 
   when false: