changeset 17458:98ef77c2455f

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
author Richard Laager <rlaager@wiktel.com>
date Wed, 30 May 2007 02:11:24 +0000
parents 3cdca2d42619
children dc20ffceab6b 09c1cfdbe444
files libpurple/dbus-analyze-functions.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 ";"