From 3943988d5addbea4603f9b4ee5103c604d03e8f4 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Wed, 4 Jul 2012 22:52:02 +0200 Subject: giscanner: Write detailed information in "type" tag's "c:type" attribute. That is - write also type qualifiers (const and volatile here). Update existing tests and add a new struct to regress.h having members with type qualifiers. https://bugzilla.gnome.org/show_bug.cgi?id=656445 --- tests/scanner/Annotation-1.0-expected.gir | 10 ++-- tests/scanner/Foo-1.0-expected.gir | 18 +++---- tests/scanner/Regress-1.0-expected.gir | 90 +++++++++++++++++++------------ tests/scanner/Utility-1.0-expected.gir | 6 +-- tests/scanner/regress.h | 14 +++++ 5 files changed, 88 insertions(+), 50 deletions(-) (limited to 'tests/scanner') diff --git a/tests/scanner/Annotation-1.0-expected.gir b/tests/scanner/Annotation-1.0-expected.gir index ce43b36d..2ea6c544 100644 --- a/tests/scanner/Annotation-1.0-expected.gir +++ b/tests/scanner/Annotation-1.0-expected.gir @@ -39,12 +39,12 @@ and/or use gtk-doc annotations. --> This is a callback. array of ints - + array of ints - + @@ -57,7 +57,7 @@ and/or use gtk-doc annotations. --> - + @@ -110,7 +110,7 @@ and/or use gtk-doc annotations. --> - + @@ -659,7 +659,7 @@ it says it's pointer but it's actually a string. Some data. - + diff --git a/tests/scanner/Foo-1.0-expected.gir b/tests/scanner/Foo-1.0-expected.gir index b18375a1..b0c36340 100644 --- a/tests/scanner/Foo-1.0-expected.gir +++ b/tests/scanner/Foo-1.0-expected.gir @@ -446,7 +446,7 @@ uses a C sugar return type. - + @@ -478,7 +478,7 @@ uses a C sugar return type. - + @@ -661,7 +661,7 @@ uses a C sugar return type. source rectangle - + @@ -910,7 +910,7 @@ exposed to language bindings. - + @@ -936,7 +936,7 @@ exposed to language bindings. - + @@ -1143,14 +1143,14 @@ exposed to language bindings. - + - + - + - + diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index 3f2b6ddf..0b39bff8 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -275,7 +275,7 @@ use it should be. - + @@ -351,7 +351,7 @@ use it should be. glib:nick="value4"/> - + @@ -502,7 +502,7 @@ use it should be. + c:type="const RegressTestFundamentalObject*"/> @@ -534,7 +534,7 @@ use it should be. - + @@ -621,7 +621,7 @@ use it should be. - + @@ -686,7 +686,7 @@ case. Meaningless string - + @@ -700,7 +700,7 @@ case. Meaningless string - + @@ -983,7 +983,7 @@ raise an error. - + - + Meaningless string - + @@ -1357,7 +1357,8 @@ Use with regress_test_obj_emit_sig_with_obj - + @@ -1507,6 +1508,29 @@ Use with regress_test_obj_emit_sig_with_obj + + + + + + + + + + + + + + + + + + + + + + + @@ -2298,7 +2322,7 @@ call and can be released on return. c:identifier="regress_test_enum_param" moved-to="TestEnum.param"> - + @@ -2435,7 +2459,7 @@ element-type annotation. - + @@ -2459,7 +2483,7 @@ element-type annotation. - + @@ -2481,7 +2505,7 @@ element-type annotation. - + @@ -2499,7 +2523,7 @@ element-type annotation. caller-allocates="0" transfer-ownership="full" allow-none="1"> - + @@ -2509,7 +2533,7 @@ element-type annotation. - + @@ -2538,7 +2562,7 @@ element-type annotation. - + @@ -2560,7 +2584,7 @@ element-type annotation. - + @@ -2626,7 +2650,7 @@ element-type annotation. - + @@ -2648,7 +2672,7 @@ element-type annotation. - + @@ -2814,7 +2838,7 @@ element-type annotation. - + @@ -2825,7 +2849,7 @@ element-type annotation. - + @@ -2966,7 +2990,7 @@ What we're testing here is that the scanner ignores the @a nested inside XML. - + - + @@ -3090,7 +3114,7 @@ What we're testing here is that the scanner ignores the @a nested inside XML. - + - + - + - + @@ -3294,7 +3318,7 @@ What we're testing here is that the scanner ignores the @a nested inside XML. - + @@ -3302,7 +3326,7 @@ What we're testing here is that the scanner ignores the @a nested inside XML. UTF-8 string - + @@ -3411,7 +3435,7 @@ What we're testing here is that the scanner ignores the @a nested inside XML. - + @@ -3419,7 +3443,7 @@ What we're testing here is that the scanner ignores the @a nested inside XML. the int wrapped in a GValue. - + diff --git a/tests/scanner/Utility-1.0-expected.gir b/tests/scanner/Utility-1.0-expected.gir index dec79840..747f99c1 100644 --- a/tests/scanner/Utility-1.0-expected.gir +++ b/tests/scanner/Utility-1.0-expected.gir @@ -50,7 +50,7 @@ and/or use gtk-doc annotations. --> - + @@ -75,7 +75,7 @@ and/or use gtk-doc annotations. --> - + - +