[pango/introspection-fixes: 1/7] Ignore unprefixed symbols



commit e2940325835c1a83945328b5a37f42c896fef550
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Aug 2 10:49:24 2019 +0100

    Ignore unprefixed symbols
    
    The unprefixed `script_*` symbols are marked as `skip`, but the
    introspection scanner will still warn about them because the annotations
    are resolved after parsing the C code.

 pango/pango-engine.h | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/pango/pango-engine.h b/pango/pango-engine.h
index f15747c6..25cfd6ba 100644
--- a/pango/pango-engine.h
+++ b/pango/pango-engine.h
@@ -287,6 +287,11 @@ struct _PangoEngineInfo
   gint n_scripts;
 };
 
+/* We should to ignore these unprefixed symbols when going through
+ * this header with the introspection scanner
+ */
+#ifndef __GI_SCANNER__
+
 /**
  * script_engine_list: (skip)
  * @engines: location to store a pointer to an array of engines.
@@ -446,6 +451,8 @@ prefix ## _register_type (GTypeModule *module)                                \
 
 #endif /* PANGO_DISABLE_DEPRECATED */
 
+#endif /* __GI_SCANNER__ */
+
 G_END_DECLS
 
 #endif /* __PANGO_ENGINE_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]