bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] vcs-to-changelog: Fix parsing of fndecl without args


From: Siddhesh Poyarekar
Subject: [PATCH] vcs-to-changelog: Fix parsing of fndecl without args
Date: Thu, 16 Jan 2020 21:41:34 +0530

        * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular
        expression for empty arguments.
---
 build-aux/vcstocl/frontend_c.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-aux/vcstocl/frontend_c.py b/build-aux/vcstocl/frontend_c.py
index 81f37ffa4..e89892686 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):
-- 
2.24.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]