bugfix: c2nim: typedef unsigned char

This commit is contained in:
Andreas Rumpf 2010-07-22 00:02:08 +02:00
commit 2b21285144
4 changed files with 5 additions and 7 deletions

View file

@ -376,7 +376,7 @@ proc typeAtom(p: var TParser): PNode =
elif isIntType(p.tok.s):
var x = "c" & p.tok.s
getTok(p, nil)
while p.tok.xkind == pxSymbol and isIntType(p.tok.s):
while p.tok.xkind == pxSymbol and (isIntType(p.tok.s) or p.tok.s == "char"):
add(x, p.tok.s)
getTok(p, nil)
result = newIdentNodeP(x, p)