mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-26 11:25:27 +00:00
Fix ASTMatcher reference newlines and make the generator script windows-proof.
llvm-svn: 253653
This commit is contained in:
parent
e325e3806f
commit
611d33a5a2
File diff suppressed because it is too large
Load Diff
@ -364,6 +364,6 @@ reference = re.sub(r'<!-- START_NARROWING_MATCHERS.*END_NARROWING_MATCHERS -->',
|
||||
reference = re.sub(r'<!-- START_TRAVERSAL_MATCHERS.*END_TRAVERSAL_MATCHERS -->',
|
||||
'%s', reference, flags=re.S) % traversal_matcher_table
|
||||
|
||||
with open('../LibASTMatchersReference.html', 'w') as output:
|
||||
with open('../LibASTMatchersReference.html', 'wb') as output:
|
||||
output.write(reference)
|
||||
|
||||
|
@ -188,6 +188,6 @@ contents = open(DOC_FILE).read()
|
||||
|
||||
contents = substitute(contents, 'FORMAT_STYLE_OPTIONS', options_text)
|
||||
|
||||
with open(DOC_FILE, 'w') as output:
|
||||
with open(DOC_FILE, 'wb') as output:
|
||||
output.write(contents)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user