diff options
author | José Alburquerque <jaalburqu@svn.gnome.org> | 2012-02-16 17:10:25 -0500 |
---|---|---|
committer | José Alburquerque <jaalburqu@svn.gnome.org> | 2012-02-16 17:10:25 -0500 |
commit | 109101611a989a32d0ddc769dbfe799f08d0696c (patch) | |
tree | 8fade0a87fbbf7384898df818749b2a1a2eb3ed9 /tools | |
parent | e87a8805147509a501b452cdb95b1eac08e8251e (diff) | |
download | glibmm-109101611a989a32d0ddc769dbfe799f08d0696c.tar.gz |
h2def.py: Handle deprecated functions.
* tools/defs_gen/h2def.py: The g_application_set_action_group() and
the g_volume_monitor_adopt_orphan_mount() functions are wrapped but
not generated because they have been deprecated in their header files
by using a GLIB_DEPRECATED macro before the function declaration.
Modify this tool to strip the macro so the functions are recognized.
* gio/src/gio_methods.defs: Regenerate so the missing method
definitions are included.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/defs_gen/h2def.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/defs_gen/h2def.py b/tools/defs_gen/h2def.py index f4983b83..9499c66b 100755 --- a/tools/defs_gen/h2def.py +++ b/tools/defs_gen/h2def.py @@ -303,6 +303,11 @@ def clean_func(buf): #strip G_GNUC_WARN_UNUSED_RESULT and G_INLINE_FUNC pat = re.compile(r"""G_GNUC_WARN_UNUSED_RESULT|G_INLINE_FUNC""", re.MULTILINE) buf = pat.sub('', buf) + + #strip GLIB_DEPRECATED + pat = re.compile(r"""GLIB_DEPRECATED""", re.MULTILINE) + buf = pat.sub('', buf) + #we are not stripping G_GNUC_INTERNAL #extern "C" |