From 2b212851441d58d4dd5beb53c1572b652dc04929 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 22 Jul 2010 00:02:08 +0200 Subject: bugfix: c2nim: typedef unsigned char --- lib/system.nim | 6 ------ lib/system/mmdisp.nim | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'lib') 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: -- cgit 1.4.1-2-gfad0 l'>log blame commit diff stats
path: root/examples/keyval2.nim
blob: 5e7d0ea4a2d6383fd8765f7cdd3fff84bb93e766 (plain) (tree)
1
2
3
4
5
6
7