diff options
-rw-r--r-- | giscanner/maintransformer.py | 1 | ||||
-rw-r--r-- | tests/scanner/Regress-1.0-C-expected/Regress.annotation_set_source_file.page | 4 | ||||
-rw-r--r-- | tests/scanner/Regress-1.0-expected.gir | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index 23ed4102..275f1c08 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -330,6 +330,7 @@ class MainTransformer(object): # might lose the ctype from the original node. if type_node is not None: result.ctype = type_node.ctype + result.complete_ctype = type_node.complete_ctype return result def _get_position(self, func, param): diff --git a/tests/scanner/Regress-1.0-C-expected/Regress.annotation_set_source_file.page b/tests/scanner/Regress-1.0-C-expected/Regress.annotation_set_source_file.page index 2f7fb864..5d8197a2 100644 --- a/tests/scanner/Regress-1.0-C-expected/Regress.annotation_set_source_file.page +++ b/tests/scanner/Regress-1.0-C-expected/Regress.annotation_set_source_file.page @@ -13,14 +13,14 @@ </api:returns> <api:name>regress_annotation_set_source_file</api:name> <api:arg> - <api:type>char*</api:type> + <api:type>const char*</api:type> <api:name>fname</api:name> </api:arg> </api:function> </info> <title>regress_annotation_set_source_file</title> <synopsis><code mime="text/x-csrc"> -void regress_annotation_set_source_file (char* fname); +void regress_annotation_set_source_file (const char* fname); </code></synopsis> diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index 2e4830cf..980ad650 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -4502,7 +4502,7 @@ detection, and fixing it via annotations.</doc> <parameters> <parameter name="fname" transfer-ownership="none"> <doc xml:space="preserve">Source file</doc> - <type name="filename" c:type="char*"/> + <type name="filename" c:type="const char*"/> </parameter> </parameters> </function> |