Part of a patch from o_sukhodolsky.

Wed, 30 May 2007 02:11:24 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Wed, 30 May 2007 02:11:24 +0000
changeset 17457
1e19ef46b296
parent 17455
18680c136815
child 17458
0a37d0d3e4d6
child 17459
5b47b4d4e819

Part of a patch from o_sukhodolsky.

Make dbus-analyze-functions.py output some_func(void) instead of some_func() so
GCC will recognize it as a prototype.

References #1344

libpurple/dbus-analyze-functions.py file | annotate | diff | comparison | revisions
--- a/libpurple/dbus-analyze-functions.py	Wed May 30 02:01:38 2007 +0000
+++ b/libpurple/dbus-analyze-functions.py	Wed May 30 02:11:24 2007 +0000
@@ -166,8 +166,11 @@
         self.returncode = []
 
     def flush(self):
+	paramslist = ", ".join(self.paramshdr)
+	if (paramslist == "") :
+	    paramslist = "void"
         print "%s %s(%s)" % (self.functiontype, self.function.name,
-                             ", ".join(self.paramshdr)),
+                             paramslist),
 
         if self.headersonly:
             print ";"

mercurial