# HG changeset patch # User Sadrul Habib Chowdhury # Date 1210638456 0 # Node ID 2012a85f8507d157f87e4d7fa7015c7f9e6a6be0 # Parent d0ee799828d1a52ae46c50121901f450b88e9c87 Update the dbus-analyze script to deal with multiline function definitions of the following form: type * function(parameterlist); diff -r d0ee799828d1 -r 2012a85f8507 libpurple/dbus-analyze-functions.py --- a/libpurple/dbus-analyze-functions.py Mon May 12 23:09:30 2008 +0000 +++ b/libpurple/dbus-analyze-functions.py Tue May 13 00:27:36 2008 +0000 @@ -483,6 +483,7 @@ self.inputiter = iter(inputfile) self.functionregexp = \ re.compile("^%s(\w[^()]*)\(([^()]*)\)\s*;\s*$" % fprefix) + self.typeregexp = re.compile("^\w+\s*\*?\s*$") @@ -501,7 +502,7 @@ # accumulate lines until the parentheses are balance or an # empty line has been encountered myline = line.strip() - while myline.count("(") > myline.count(")"): + while (myline.count("(") > myline.count(")")) or self.typeregexp.match(myline): newline = self.inputiter.next().strip() if len(newline) == 0: break