diff options
author | Siddhesh Poyarekar <siddhesh@gotplt.org> | 2020-01-16 21:41:34 +0530 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-01-16 21:29:57 +0100 |
commit | 020f5190955808cafb670d2be6afb7d5faf69621 (patch) | |
tree | 558018cda46e8c0d8142bb1aeee4a42f7318ed5f /build-aux/vcstocl | |
parent | 171095d3ab8ebe652b3686ddb3989051899915f0 (diff) | |
download | gnulib-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.py | 2 |
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): |