Fix for const void * proc
This commit is contained in:
parent
c3744c0034
commit
33a3f6fc8b
2 changed files with 4 additions and 1 deletions
|
|
@ -44,6 +44,8 @@ proc saveNodeData(node: TSNode): bool =
|
||||||
|
|
||||||
if gStateRT.data[^1].val != "object":
|
if gStateRT.data[^1].val != "object":
|
||||||
gStateRT.data[^1].val = "ptr " & gStateRT.data[^1].val.getIdentifier()
|
gStateRT.data[^1].val = "ptr " & gStateRT.data[^1].val.getIdentifier()
|
||||||
|
else:
|
||||||
|
gStateRT.data[^1].val = "pointer"
|
||||||
|
|
||||||
gStateRT.data.add((name, val))
|
gStateRT.data.add((name, val))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -261,7 +261,8 @@ proc initGrammar() =
|
||||||
# typ function(typ param1, ...)
|
# typ function(typ param1, ...)
|
||||||
gStateRT.grammar.add(("""
|
gStateRT.grammar.add(("""
|
||||||
(declaration
|
(declaration
|
||||||
(type_qualifier|storage_class_specifier?)
|
(storage_class_specifier?)
|
||||||
|
(type_qualifier?)
|
||||||
(primitive_type|type_identifier?)
|
(primitive_type|type_identifier?)
|
||||||
(sized_type_specifier?
|
(sized_type_specifier?
|
||||||
(primitive_type?)
|
(primitive_type?)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue