diff options
author | Colin Walters <walters@verbum.org> | 2010-09-14 12:23:59 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-09-14 12:24:43 -0400 |
commit | 53b4da85dcb49d1fd3dc5e4033e476119653b214 (patch) | |
tree | 1fc438f858c5893b3d96be96c0d49495f8e05190 /tests | |
parent | 303255d484165f7d2e3e3ad298168da43edcbd2e (diff) | |
download | gobject-introspection-53b4da85dcb49d1fd3dc5e4033e476119653b214.tar.gz |
scanner: Parse annotations for typedefs
* Explicitly check for ast.Alias in annotation pass
* Add "generic" attribs handling for aliases like docs, introspectable=0
etc.
https://bugzilla.gnome.org/show_bug.cgi?id=629668
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/Regress-1.0-expected.gir | 7 | ||||
-rw-r--r-- | tests/scanner/regress.h | 16 |
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index 192a7ae2..16b80155 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -15,12 +15,19 @@ and/or use gtk-doc annotations. --> shared-library="libregress.so" c:identifier-prefixes="Regress" c:symbol-prefixes="regress"> + <alias name="IntSet" c:type="RegressIntSet" introspectable="0"> + <doc xml:whitespace="preserve">Compatibility typedef, like telepathy-glib's TpIntSet</doc> + <type name="Intset" c:type="RegressIntset"/> + </alias> <constant name="DOUBLE_CONSTANT" value="44.220000"> <type name="gdouble" c:type="gdouble"/> </constant> <constant name="INT_CONSTANT" value="4422"> <type name="gint" c:type="gint"/> </constant> + <record name="Intset" c:type="RegressIntset" disguised="1"> + <doc xml:whitespace="preserve">Like telepathy-glib's TpIntset.</doc> + </record> <constant name="Mixed_Case_Constant" value="4423"> <type name="gint" c:type="gint"/> </constant> diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h index 5c392609..dde4e5b5 100644 --- a/tests/scanner/regress.h +++ b/tests/scanner/regress.h @@ -539,4 +539,20 @@ void regress_random_function_with_skipped_structure (int x, RegressSkippedStructure *foo, double v); +/** + * RegressIntset: + * + * Like telepathy-glib's TpIntset. + * + */ +typedef struct _RegressIntset RegressIntset; + +/** + * RegressIntSet: (skip) + * + * Compatibility typedef, like telepathy-glib's TpIntSet + * + */ +typedef RegressIntset RegressIntSet; + #endif /* __GITESTTYPES_H__ */ |