3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-21 05:13:39 +00:00

modified scripts to be able to run them on Linux/OSX

This commit is contained in:
Leonardo de Moura 2012-10-02 14:37:50 -07:00
parent 7b1aa09ff3
commit 1a8aa48f34
4 changed files with 8 additions and 5 deletions

View file

@ -6,6 +6,7 @@
# Author: Leonardo de Moura (leonardo)
############################################
import re
import os
blank_pat = re.compile("^ *$")
comment_pat = re.compile("^ *//.*$")
@ -14,7 +15,7 @@ typedef2_pat = re.compile("typedef enum { *")
openbrace_pat = re.compile("{ *")
closebrace_pat = re.compile("}.*;")
api = open('..\\lib\\z3_api.h', 'r')
api = open('..%slib%sz3_api.h' % (os.sep, os.sep), 'r')
z3consts = open('z3consts.py', 'w')
z3consts.write('# Automatically generated file, generator: mk_z3consts.py\n\n')