summaryrefslogtreecommitdiff
path: root/tests/scanner/regress.c
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2018-02-09 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2018-02-09 15:23:48 +0100
commitaebda1c0868dfadfa8ccb55f4edfb40b16e80635 (patch)
treeb59879024814b5f7a131ccb9c29aaed8964c0cb1 /tests/scanner/regress.c
parent4f7a66a42c3897d986aff5d6d081d1ecb6af0ade (diff)
downloadgobject-introspection-aebda1c0868dfadfa8ccb55f4edfb40b16e80635.tar.gz
Fix parsing when type_specifier comes before type_qualifier.
If type_specifier comes after type_qualifier, then GISourceType representing type_specifier will be merely updated with qualifier flags. On the other hand, when this order is reversed the type qualifier used to be attached as a separate node through base_type (with CTYPE_INVALID), and interpreted incorrectly in transformer code. This commit changes this behaviour so that information about type qualifiers is stored directly in GISourceType corresponding to type specifier. It also fixes analogous issue with storage_class_specifier and function_specifier. From higher level viewpoint, it for example represents `const char*` and `char const*` in equivalent manner after parsing, and addresses issue #79.
Diffstat (limited to 'tests/scanner/regress.c')
-rw-r--r--tests/scanner/regress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index 92bf6c4e..85e00d9b 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -4294,7 +4294,7 @@ regress_test_versioning (void)
void
regress_like_xkl_config_item_set_name (RegressLikeXklConfigItem *self,
- const char *name)
+ char const *name)
{
strncpy (self->name, name, sizeof (self->name) - 1);
self->name[sizeof(self->name)-1] = '\0';