summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-09-29 08:06:43 +0200
committerAraq <rumpf_a@web.de>2012-09-29 08:06:43 +0200
commit3bcf9f4e53c8672b3763951274543e7cff6c35e5 (patch)
treec153c731f1874beabd2e8518662e32704e4707a5 /compiler
parent95cf849954d44b1440d0bb0da0c3bed378e4f1ad (diff)
downloadNim-3bcf9f4e53c8672b3763951274543e7cff6c35e5.tar.gz
opengl wrapper compiles under windows
Diffstat (limited to 'compiler')
-rwxr-xr-xcompiler/cgen.nim7
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 7c9f2a0cd..1ba56863a 100755
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -558,16 +558,13 @@ proc SymInDynamicLib(m: BModule, sym: PSym) =
       initLocExpr(m.initProc, n[i], a)
       params.app(rdLoc(a))
       params.app(", ")
-    #app(m.s[cfsVars], p.s(cpsLocals))
-    #app(m.s[cfsDynLibInit], p.s(cpsInit))
-    #app(m.s[cfsDynLibInit], p.s(cpsStmts))
     appcg(m, m.initProc.s(cpsStmts),
-        "$1 = ($2) ($3$4));$n",
+        "\t$1 = ($2) ($3$4));$n",
         [tmp, getTypeDesc(m, sym.typ),
         params, cstringLit(m, m.s[cfsDynLibInit], ropeToStr(extname))])
   else:
     appcg(m, m.s[cfsDynLibInit], 
-        "$1 = ($2) #nimGetProcAddr($3, $4);$n", 
+        "\t$1 = ($2) #nimGetProcAddr($3, $4);$n", 
         [tmp, getTypeDesc(m, sym.typ), 
         lib.name, cstringLit(m, m.s[cfsDynLibInit], ropeToStr(extname))])
   appff(m.s[cfsVars], "$2 $1;$n",