[gobject-introspection] scanner: Stop predeclaring the functions that are to be scanned



commit 88553b4cd6776b7eff9a3b1d63eb8e49be0bd8f2
Author: Benjamin Otte <otte redhat com>
Date:   Mon Jan 10 18:53:55 2011 +0100

    scanner: Stop predeclaring the functions that are to be scanned
    
    Instead, rely on the c_includes. See the previous commit for details.

 giscanner/dumper.py |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 538fe0e..36a8807 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -121,8 +121,6 @@ class DumpCompiler(object):
         # pulled in at the linking stage if the library is a static library
         # rather than a shared library.
         if len(self._get_type_functions) > 0:
-            for func in self._get_type_functions:
-                f.write("extern GType " + func + "(void);\n")
             f.write("GType (*GI_GET_TYPE_FUNCS_[])(void) = {\n")
             first = True
             for func in self._get_type_functions:



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