mirror of
https://github.com/Z3Prover/z3
synced 2025-05-02 21:37:02 +00:00
other components
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
e9eab22e5c
commit
68269c43a6
250 changed files with 70871 additions and 0 deletions
24
dll/mk_def.py
Normal file
24
dll/mk_def.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
import re
|
||||
|
||||
pat1 = re.compile(".*Z3_API.*")
|
||||
api = open('..\lib\z3_api.h', 'r')
|
||||
|
||||
z3def = open('z3.def', 'w')
|
||||
z3dbgdef = open('z3_dbg.def', 'w')
|
||||
|
||||
z3def.write('LIBRARY "Z3"\nEXPORTS\n')
|
||||
z3dbgdef.write('LIBRARY "Z3_DBG"\nEXPORTS\n')
|
||||
|
||||
num = 1
|
||||
for line in api:
|
||||
m = pat1.match(line)
|
||||
if m:
|
||||
words = re.split('\W+', line)
|
||||
i = 0
|
||||
for w in words:
|
||||
if w == 'Z3_API':
|
||||
f = words[i+1]
|
||||
z3def.write('\t%s @%s\n' % (f, num))
|
||||
z3dbgdef.write('\t%s @%s\n' % (f, num))
|
||||
i = i + 1
|
||||
num = num + 1
|
Loading…
Add table
Add a link
Reference in a new issue