From 1f0965e379035be51ae96d5761358ec088fb3421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Sun, 6 Jan 2019 00:00:00 +0000 Subject: scanner: Remove incorrect c:type from fields with array type Neither `_create_source_type` nor `_create_complete_source_type` actually support fixed size arrays, so previously generated C types were incorrect. Remove C types from array fields instead of producing incorrect ones. Fixes issue #145. --- tests/scanner/Regress-1.0-expected.gir | 22 +++++++++------------- tests/scanner/Utility-1.0-expected.gir | 2 +- 2 files changed, 10 insertions(+), 14 deletions(-) (limited to 'tests/scanner') diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index 5f303a4e..0ee763f1 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -99,15 +99,13 @@ and/or use gtk-doc annotations. --> - + - + @@ -1209,9 +1207,7 @@ it says it's pointer but it's actually a string. line="236">This is a test of an array of object in an field of a struct. - + @@ -1235,7 +1231,7 @@ it says it's pointer but it's actually a string. - + @@ -2084,7 +2080,7 @@ uses a C sugar return type. - + @@ -2421,7 +2417,7 @@ exposed to language bindings. - + @@ -2510,7 +2506,7 @@ exposed to language bindings. - + @@ -2521,7 +2517,7 @@ exposed to language bindings. - + @@ -5090,7 +5086,7 @@ the introspection client langage. - + diff --git a/tests/scanner/Utility-1.0-expected.gir b/tests/scanner/Utility-1.0-expected.gir index 2521efbb..010bd45b 100644 --- a/tests/scanner/Utility-1.0-expected.gir +++ b/tests/scanner/Utility-1.0-expected.gir @@ -141,7 +141,7 @@ and/or use gtk-doc annotations. --> - + -- cgit v1.2.1