diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-09-11 15:51:49 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-09-11 15:51:49 +0000 |
| commit | 5ce049c970e8544ee7b2e4b02fa8a5e64ed4dd8a (patch) | |
| tree | 0fd1727ca5ec01b425ccb20e1e79e0ac48706374 | |
| parent | 708cbd5142afebd2d54e6c99fb02e737fe0aff63 (diff) | |
| download | lasso-5ce049c970e8544ee7b2e4b02fa8a5e64ed4dd8a.tar.gz lasso-5ce049c970e8544ee7b2e4b02fa8a5e64ed4dd8a.tar.xz lasso-5ce049c970e8544ee7b2e4b02fa8a5e64ed4dd8a.zip | |
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.
| -rw-r--r-- | lasso/extract_symbols.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) + \ |
