changeset 14648:74b69a11830c

[gaim-migrate @ 17394] sf patch #1469293, from Ari Pollak Our python script that generates dbus bindings was assuming that va_list is a pointer, but it is not a pointer on all platforms (like alpha, for example). I couldn't find a way to pass a va_list as a python parameter, but I'm not very familiar with dbus. This patch avoids creating a python binding for any function that accepts a va_list. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 29 Sep 2006 06:04:13 +0000
parents 18b74ed00850
children 4ee6553079b5
files libgaim/dbus-analyze-functions.py
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/dbus-analyze-functions.py	Fri Sep 29 00:17:58 2006 +0000
+++ b/libgaim/dbus-analyze-functions.py	Fri Sep 29 06:04:13 2006 +0000
@@ -99,11 +99,6 @@
             if (type[0] in simpletypes) or (type[0].startswith("Gaim")):
                 return self.inputsimple(type, name)
 
-
-            # va_list, replace by NULL
-            if type[0] == "va_list":
-                return self.inputvalist(type, name)
-
         # pointers ... 
         if (len(type) == 2) and (type[1] == pointer):
             # strings
@@ -210,9 +205,6 @@
         self.paramshdr.append("%s %s" % (type[0], name))
         self.inputparams.append(("G_TYPE_INT", name))
 
-    def inputvalist(self, type, name):
-        self.paramshdr.append("va_list %s_NULL" % name)
-
     def inputstring(self, type, name):
         self.paramshdr.append("const char *%s" % name)
         self.inputparams.append(("G_TYPE_STRING", name))
@@ -330,10 +322,6 @@
         self.cparams.append(("INT32", name))
         self.addintype("i", name)
 
-    def inputvalist(self, type, name):
-        self.cdecls.append("\tvoid * %s;" % name);
-        self.ccode.append("\t%s = NULL;" % name);
-
     def inputstring(self, type, name):
         self.cdecls.append("\tconst char *%s;" % name)
         self.cparams.append(("STRING", name))