diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2018-12-26 21:33:50 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-12-26 21:33:50 -0600 |
| commit | 33a3f6fc8b159340f2b29d0ba4aff3fe6c839f66 (patch) | |
| tree | 8d5d83135ce0011a42478968c107f51c2147277d | |
| parent | c3744c0034d6b13081be26b13ed46014a9b0a036 (diff) | |
| download | nimterop-33a3f6fc8b159340f2b29d0ba4aff3fe6c839f66.tar.gz nimterop-33a3f6fc8b159340f2b29d0ba4aff3fe6c839f66.zip | |
Fix for const void * proc
| -rw-r--r-- | nimterop/ast.nim | 2 | ||||
| -rw-r--r-- | nimterop/grammar.nim | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/nimterop/ast.nim b/nimterop/ast.nim index dd05227..4c8e253 100644 --- a/nimterop/ast.nim +++ b/nimterop/ast.nim @@ -44,6 +44,8 @@ proc saveNodeData(node: TSNode): bool = if gStateRT.data[^1].val != "object": gStateRT.data[^1].val = "ptr " & gStateRT.data[^1].val.getIdentifier() + else: + gStateRT.data[^1].val = "pointer" gStateRT.data.add((name, val)) diff --git a/nimterop/grammar.nim b/nimterop/grammar.nim index 3da4cc4..66f7ee1 100644 --- a/nimterop/grammar.nim +++ b/nimterop/grammar.nim @@ -261,7 +261,8 @@ proc initGrammar() = # typ function(typ param1, ...) gStateRT.grammar.add((""" (declaration - (type_qualifier|storage_class_specifier?) + (storage_class_specifier?) + (type_qualifier?) (primitive_type|type_identifier?) (sized_type_specifier? (primitive_type?) |
