Mercurial > pidgin.yaz
diff libpurple/dbus-analyze-functions.py @ 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 | 3b01cb4147d3 |
children | f187d935486b |
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 ";"