summary refs log tree commit diff stats
path: root/rod/c2nim/cparse.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-laptop>2010-07-21 22:09:50 +0200
committerAndreas Rumpf <andreas@andreas-laptop>2010-07-21 22:09:50 +0200
commit202d229fdf62600e1247b0ba07fa5f30aed06063 (patch)
tree9706e9952ae573052836a1b638b2bb03db5485dd /rod/c2nim/cparse.nim
parentcdf03b06b93d8bf5023d7c4b38a761675a20d514 (diff)
downloadNim-202d229fdf62600e1247b0ba07fa5f30aed06063.tar.gz
bugfix: c2nim: typedef a b;
Diffstat (limited to 'rod/c2nim/cparse.nim')
-rwxr-xr-xrod/c2nim/cparse.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/rod/c2nim/cparse.nim b/rod/c2nim/cparse.nim
index b637bfa61..f5e6c95f8 100755
--- a/rod/c2nim/cparse.nim
+++ b/rod/c2nim/cparse.nim
@@ -583,6 +583,7 @@ proc otherTypeDef(p: var TParser, section, typ: PNode) =
     name = skipIdent(p)
   else: 
     # typedef typ name;
+    t = typ
     name = skipIdent(p)
   t = parseTypeSuffix(p, t)
   addTypeDef(section, name, t)