From 5ce049c970e8544ee7b2e4b02fa8a5e64ed4dd8a Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 11 Sep 2009 15:51:49 +0000 Subject: Core: fix extract_symbols regular expression * lasso/extract_symbols.py: the regular expression was not matching declaration over multiple lines, and would catch argument starting with lasso_. Fixed. --- lasso/extract_symbols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lasso/extract_symbols.py b/lasso/extract_symbols.py index f0e5fa9b..cda7cd0a 100644 --- a/lasso/extract_symbols.py +++ b/lasso/extract_symbols.py @@ -14,7 +14,7 @@ if len(sys.argv) == 2+enable_wsf: else: srcdir = '.' -regex = re.compile('LASSO_EXPORT.*(lasso_[a-zA-Z0-9_]+)[ \t]*[\(;]') +regex = re.compile('LASSO_EXPORT[^;(]*(lasso_[a-zA-Z0-9_]+)', re.MULTILINE) symbols = [] for header_file in glob.glob('%s/*/*.h' % srcdir) + glob.glob('%s/*.h' % srcdir) + \ -- cgit