summaryrefslogtreecommitdiff
path: root/build-aux/vcstocl
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@gotplt.org>2020-01-16 21:41:34 +0530
committerBruno Haible <bruno@clisp.org>2020-01-16 21:29:57 +0100
commit020f5190955808cafb670d2be6afb7d5faf69621 (patch)
tree558018cda46e8c0d8142bb1aeee4a42f7318ed5f /build-aux/vcstocl
parent171095d3ab8ebe652b3686ddb3989051899915f0 (diff)
downloadgnulib-020f5190955808cafb670d2be6afb7d5faf69621.tar.gz
vcs-to-changelog: Fix parsing of fndecl without args.
* build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression for empty arguments.
Diffstat (limited to 'build-aux/vcstocl')
-rw-r--r--build-aux/vcstocl/frontend_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/vcstocl/frontend_c.py b/build-aux/vcstocl/frontend_c.py
index 81f37ffa4d..e898926863 100644
--- a/build-aux/vcstocl/frontend_c.py
+++ b/build-aux/vcstocl/frontend_c.py
@@ -266,7 +266,7 @@ class DeclParser(ExprParser):
ExprParser.ATTRIBUTE + ';')
# Function Declarations.
- FNDECL_RE = re.compile(r'\s*(\w+)\s*\([^\(][^;]*\)\s*' +
+ FNDECL_RE = re.compile(r'\s*(\w+)\s*\(([^\(][^;]*)?\)\s*' +
ExprParser.ATTRIBUTE + ';')
def __init__(self, regex, blocktype, project_quirks, debug):