Browse Source

kamailio-kemi-framework: kemidocs.py - match functions with space after name

Daniel-Constantin Mierla 5 years ago
parent
commit
bcdf73256a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kamailio-kemi-framework/tools/kemidocs.py

+ 1 - 1
kamailio-kemi-framework/tools/kemidocs.py

@@ -339,7 +339,7 @@ class KemiFileExportParser(object):
             return_match = "sr_kemi_xval_t([ \t])*\*"
             return_match = "sr_kemi_xval_t([ \t])*\*"
 
 
         # Look for declarations in format:    static? return_type function_name(
         # Look for declarations in format:    static? return_type function_name(
-        r = re.compile("^(?:static )?" + return_match + "[ \t]*(" + function_name + ")\(")
+        r = re.compile("^(?:static )?" + return_match + "[ \t]*(" + function_name + ")[ \t]*\(")
         for line in lines:
         for line in lines:
             m = r.match(line)
             m = r.match(line)
             if m:
             if m: