mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 08:35:31 +00:00
C API cleanup. Mainly removal of ML-specific macros that are not used anymore and inline documentation fixes.
This commit is contained in:
parent
2c6645ef2d
commit
00271e5531
18 changed files with 1282 additions and 1823 deletions
|
@ -84,10 +84,13 @@ try:
|
|||
os.remove('website-adj.dox')
|
||||
shutil.copyfile('../src/api/python/z3.py', 'tmp/z3py.py')
|
||||
cleanup_API('../src/api/z3_api.h', 'tmp/z3_api.h')
|
||||
cleanup_API('../src/api/z3_ast_containers.h', 'tmp/z3_ast_containers.h')
|
||||
cleanup_API('../src/api/z3_algebraic.h', 'tmp/z3_algebraic.h')
|
||||
cleanup_API('../src/api/z3_polynomial.h', 'tmp/z3_polynomial.h')
|
||||
cleanup_API('../src/api/z3_rcf.h', 'tmp/z3_rcf.h')
|
||||
cleanup_API('../src/api/z3_interp.h', 'tmp/z3_interp.h')
|
||||
cleanup_API('../src/api/z3_fixedpoint.h', 'tmp/z3_fixedpoint.h')
|
||||
cleanup_API('../src/api/z3_optimization.h', 'tmp/z3_optimization.h')
|
||||
cleanup_API('../src/api/z3_interp.h', 'tmp/z3_interp.h')
|
||||
cleanup_API('../src/api/z3_fpa.h', 'tmp/z3_fpa.h')
|
||||
|
||||
print("Removed annotations from z3_api.h.")
|
||||
|
@ -100,15 +103,19 @@ try:
|
|||
exit(1)
|
||||
print("Generated C and .NET API documentation.")
|
||||
os.remove('tmp/z3_api.h')
|
||||
os.remove('tmp/z3_ast_containers.h')
|
||||
os.remove('tmp/z3_algebraic.h')
|
||||
os.remove('tmp/z3_polynomial.h')
|
||||
os.remove('tmp/z3_rcf.h')
|
||||
os.remove('tmp/z3_fixedpoint.h')
|
||||
os.remove('tmp/z3_optimization.h')
|
||||
os.remove('tmp/z3_interp.h')
|
||||
os.remove('tmp/z3_fpa.h')
|
||||
print("Removed temporary file z3_api.h.")
|
||||
os.remove('tmp/website.dox')
|
||||
print("Removed temporary file header files.")
|
||||
|
||||
os.remove('tmp/website.dox')
|
||||
print("Removed temporary file website.dox")
|
||||
os.remove('tmp/z3py.py')
|
||||
os.remove('tmp/z3py.py')
|
||||
print("Removed temporary file z3py.py")
|
||||
os.removedirs('tmp')
|
||||
print("Removed temporary directory tmp.")
|
||||
|
@ -126,5 +133,6 @@ try:
|
|||
|
||||
print("Documentation was successfully generated at subdirectory './api/html'.")
|
||||
except:
|
||||
print("ERROR: failed to generate documentation")
|
||||
exctype, value = sys.exc_info()[:2]
|
||||
print("ERROR: failed to generate documentation: %s" % value)
|
||||
exit(1)
|
||||
|
|
|
@ -214,11 +214,6 @@ ALIASES = "beginfaq=<ul>" \
|
|||
"emph{1}=<em>\1</em>" \
|
||||
"extdoc{2}=<a class=\"el\" href=\"\1\">\2</a>" \
|
||||
"nicebox{1}=<div class=\"fragment\"><pre class=\"fragment\">\1</pre></div>" \
|
||||
"mlonly=\if Ocaml" \
|
||||
"endmlonly=\endif" \
|
||||
"mlh=\if Ocaml" \
|
||||
"endmlh=\endif" \
|
||||
"conly=" \
|
||||
"ccode{1}=<tt>\1</tt>" \
|
||||
"zframe=<iframe allowtransparency=\"true\" frameborder=\"0\" style=\"width:600px;height:600px\" src=\"http://rise4fun.com/z3?frame=1&menu=0\"> </iframe>"
|
||||
|
||||
|
|
|
@ -64,11 +64,6 @@ ALIASES = "beginfaq=<ul>" \
|
|||
"emph{1}=<em>\1</em>" \
|
||||
"extdoc{2}=<a class=\"el\" href=\"\1\">\2</a>" \
|
||||
"nicebox{1}=<div class=\"fragment\"><pre class=\"fragment\">\1</pre></div>" \
|
||||
"mlonly=\if Ocaml" \
|
||||
"endmlonly=\endif" \
|
||||
"mlh=\if Ocaml" \
|
||||
"endmlh=\endif" \
|
||||
"conly=" \
|
||||
"ccode{1}=<tt>\1</tt>" \
|
||||
"zframe=<iframe allowtransparency=\"true\" frameborder=\"0\" style=\"width:600px;height:600px\" src=\"http://rise4fun.com/z3?frame=1&menu=0\"> </iframe>"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue