diff options
author | Araq <rumpf_a@web.de> | 2014-03-22 02:43:37 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-03-22 02:43:37 +0100 |
commit | 02e97422eda48e16d07adb7e84c8f7ea66ad2926 (patch) | |
tree | 09af63869e3ea2da5b0c0c074dcbce3a9f6becc1 /compiler | |
parent | 3e056afb1c481d35403c93bc17307b46be5e20f2 (diff) | |
download | Nim-02e97422eda48e16d07adb7e84c8f7ea66ad2926.tar.gz |
c2nim knows about arrray[N, T]
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/c2nim/cparse.nim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler/c2nim/cparse.nim b/compiler/c2nim/cparse.nim index 555e1af10..86533fe26 100644 --- a/compiler/c2nim/cparse.nim +++ b/compiler/c2nim/cparse.nim @@ -624,10 +624,11 @@ proc parseTypeSuffix(p: var TParser, typ: PNode): PNode = # array type: result = newNodeP(nkBracketExpr, p) addSon(result, newIdentNodeP("array", p)) - var r = newNodeP(nkRange, p) - addSon(r, newIntNodeP(nkIntLit, 0, p)) - addSon(r, newBinary("-", index, newIntNodeP(nkIntLit, 1, p), p)) - addSon(result, r) + #var r = newNodeP(nkRange, p) + #addSon(r, newIntNodeP(nkIntLit, 0, p)) + #addSon(r, newBinary("-", index, newIntNodeP(nkIntLit, 1, p), p)) + #addSon(result, r) + addSon(result, index) addSon(result, tmp) else: # pointer type: |