Replace getype()/getail() stuff with a modified version of the original getype()...
authorNick Downing <downing.nick@gmail.com>
Sun, 19 Feb 2017 05:18:06 +0000 (16:18 +1100)
committerNick Downing <downing.nick@gmail.com>
Sun, 19 Feb 2017 05:18:06 +0000 (16:18 +1100)
commit1d8d8de4e8b7c7aaa11265a068f4061f2546b9ea
tree97bc2f820df9abd9dc2d43e8aa772f5eeec0de79
parentee5d8cc3cf606b35fc80484d4d7271192e72ad92
Replace getype()/getail() stuff with a modified version of the original getype() which constructs the type as a linked list, keeping track of the tail so that it can build onto the inner type as things are parsed, this fixes a bug where (*name)() was interpreted as FUNC,PTR rather than PTR,FUNC, and makes arrays easier
27 files changed:
c0.h
c03.c
test/arr0.i [moved from test/arr0.c with 100% similarity]
test/arr0.ir [moved from test/arr0.dump with 100% similarity]
test/arr1.i [moved from test/arr1.c with 100% similarity]
test/arr1.ir [moved from test/arr1.dump with 100% similarity]
test/arr2.i [moved from test/arr2.c with 100% similarity]
test/arr2.ir [moved from test/arr2.dump with 100% similarity]
test/enu0.i [moved from test/enu0.c with 100% similarity]
test/enu0.ir [moved from test/enu0.dump with 100% similarity]
test/enu1.i [moved from test/enu1.c with 100% similarity]
test/enu1.ir [moved from test/enu1.dump with 100% similarity]
test/fld0.i [moved from test/fld0.c with 100% similarity]
test/fld0.ir [moved from test/fld0.dump with 100% similarity]
test/fld1.i [moved from test/fld1.c with 100% similarity]
test/fld1.ir [moved from test/fld1.dump with 100% similarity]
test/fld2.i [moved from test/fld2.c with 100% similarity]
test/fld2.ir [moved from test/fld2.dump with 100% similarity]
test/fun0.i [new file with mode: 0644]
test/fun0.ir [new file with mode: 0644]
test/fun0.s [new file with mode: 0644]
test/hello.ir [moved from test/hello.dump with 100% similarity]
test/n.sh
test/str0.i [moved from test/str0.c with 100% similarity]
test/str0.ir [moved from test/str0.dump with 100% similarity]
test/str1.i [moved from test/str1.c with 100% similarity]
test/str1.ir [moved from test/str1.dump with 100% similarity]