From: Siddhesh Poyarekar <siddhesh@gotplt.org>
To: bug-gnulib@gnu.org
Subject: [PATCH] vcs-to-changelog: Fix parsing of fndecl without args
Date: Thu, 16 Jan 2020 21:41:34 +0530 [thread overview]
Message-ID: <20200116161134.77193-1-siddhesh@gotplt.org> (raw)
* 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
next reply other threads:[~2020-01-16 16:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-16 16:11 Siddhesh Poyarekar [this message]
2020-01-16 20:35 ` [PATCH] vcs-to-changelog: Fix parsing of fndecl without args Bruno Haible
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200116161134.77193-1-siddhesh@gotplt.org \
--to=siddhesh@gotplt.org \
--cc=bug-gnulib@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).