From 4b952336325121be20557ecfb224a10dcaab49d0 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 29 Jan 2012 19:12:48 +0100 Subject: [PATCH] fixes #98 --- compiler/cgen.nim | 2 +- tests/run/tzeroarray.nim | 2 +- todo.txt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 5de2481ed4..eb3e58a985 100755 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -641,7 +641,7 @@ proc genProcPrototype(m: BModule, sym: PSym) = useHeader(m, sym) if lfNoDecl in sym.loc.Flags: return if lfDynamicLib in sym.loc.Flags: - if sym.owner.id != m.module.id and + if getModule(sym).id != m.module.id and not ContainsOrIncl(m.declaredThings, sym.id): appf(m.s[cfsVars], "extern $1 $2;$n", [getTypeDesc(m, sym.loc.t), mangleDynLibProc(sym)]) diff --git a/tests/run/tzeroarray.nim b/tests/run/tzeroarray.nim index 7f66007b5d..b784b601e7 100644 --- a/tests/run/tzeroarray.nim +++ b/tests/run/tzeroarray.nim @@ -1,5 +1,5 @@ discard """ - output: 'done' + output: done """ for i in 0 .. 1: diff --git a/todo.txt b/todo.txt index 22a4c6d97a..ecee106105 100755 --- a/todo.txt +++ b/todo.txt @@ -1,9 +1,10 @@ version 0.8.14 ============== +- fix powerpc64 crashes - bug: tsortdev does not run with native GC - object {.pure, final.} does not work again! - +- ``=`` should be overloadable; requires specialization for ``=``? version 0.9.0 ============= @@ -22,7 +23,6 @@ version 0.9.0 - implement ``partial`` pragma for partial evaluation - we need to support iteration of 2 different data structures in parallel - make exceptions compatible with C++ exceptions -- ``=`` should be overloadable; requires specialization for ``=`` - 'const' objects including case objects - os module should use Windows Unicode versions - 64bit build for Windows