changeset 17461:09c1cfdbe444

merge of '147124060f5119dfa16b7eef6a622a9075b85f77' and 'cf7b23ba7ed5e3eb8eaaeb8986a6ab6bf304bb78'
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 30 May 2007 02:15:12 +0000
parents f21b9614ec04 (current diff) 98ef77c2455f (diff)
children 6f556fe1f616
files
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/dbus-analyze-functions.py	Wed May 30 02:08:37 2007 +0000
+++ b/libpurple/dbus-analyze-functions.py	Wed May 30 02:15:12 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 ";"