From 513442f6c073b101a6ba2da924ba9562dfd50adf Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 21 Dec 2004 14:00:17 +0000 Subject: only exports symbols declared with LASSO_EXPORT (experimental) --- lasso/extract_symbols.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lasso/extract_symbols.py (limited to 'lasso/extract_symbols.py') diff --git a/lasso/extract_symbols.py b/lasso/extract_symbols.py new file mode 100644 index 00000000..da8192a0 --- /dev/null +++ b/lasso/extract_symbols.py @@ -0,0 +1,12 @@ +#! /usr/bin/env python + +import glob +import re + +symbols = [] +for header_file in glob.glob('*/*.h') + glob.glob('*.h'): + symbols.extend(re.findall('LASSO_EXPORT.*(lasso_[a-zA-Z_]+)', file(header_file).read())) + +for s in symbols: + print s + -- cgit