diff options
author | Colin Walters <walters@verbum.org> | 2010-10-29 18:37:43 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-12-02 09:14:06 -0500 |
commit | aa8b7d2d0f586976ea7399d95e1ccce3000b4734 (patch) | |
tree | c775426885ef784d29161c306096a30be21a3591 /tests | |
parent | 1113955bb6a5276c21771685dd30c51f9ef1661f (diff) | |
download | gobject-introspection-aa8b7d2d0f586976ea7399d95e1ccce3000b4734.tar.gz |
Support hexadecimal escapes in constants
g_strcompress() only does some of what we need; fork it
and add support for \x escapes too.
https://bugzilla.gnome.org/show_bug.cgi?id=595773
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/Regress-1.0-expected.gir | 3 | ||||
-rw-r--r-- | tests/scanner/regress.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index 15fba0d8..c0590d7e 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -943,6 +943,9 @@ TpAccount::status-changed</doc> <type name="GObject.ObjectClass" c:type="GObjectClass"/> </field> </record> + <constant name="UTF8_CONSTANT" value="const ♥ utf8"> + <type name="utf8" c:type="gchar*"/> + </constant> <record name="_TestStructC" c:type="_RegressTestStructC"> <field name="another_int" writable="1"> <type name="gint" c:type="gint"/> diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h index 9daf1798..a7342a9b 100644 --- a/tests/scanner/regress.h +++ b/tests/scanner/regress.h @@ -579,4 +579,6 @@ typedef enum { REGRESS_TEST_PUBLIC_ENUM_AFTER = 1 << 2, } RegressTestPrivateEnum; +#define REGRESS_UTF8_CONSTANT "const \xe2\x99\xa5 utf8" + #endif /* __GITESTTYPES_H__ */ |