Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: src/trusted/validator/dgen/generate_decoder.py

Issue 10191011: Moving dgen_ scripts out of validator_arm into a common directory. (Closed)
Patch Set: Updates per code review. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright 2012 The Native Client Authors. All rights reserved. 3 # Copyright 2012 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can 4 # Use of this source code is governed by a BSD-style license that can
5 # be found in the LICENSE file. 5 # be found in the LICENSE file.
6 # 6 #
7 7
8 """Decoder Generator script. 8 """Decoder Generator script.
9 9
10 Usage: generate-decoder.py <table-file> <output-cc-file> <decoder-name> 10 Usage: generate-decoder.py <table-file> <output-cc-file> <decoder-name>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 decoder, decoder_name, _localize_filename(output_filename), f) 70 decoder, decoder_name, _localize_filename(output_filename), f)
71 else: 71 else:
72 print 'Error: output filename not of form "*.{h,cc}"' 72 print 'Error: output filename not of form "*.{h,cc}"'
73 f.close() 73 f.close()
74 print "Completed." 74 print "Completed."
75 75
76 return 0 76 return 0
77 77
78 if __name__ == '__main__': 78 if __name__ == '__main__':
79 sys.exit(main(sys.argv)) 79 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « src/trusted/validator/dgen/dgen_test_output.py ('k') | src/trusted/validator/dgen/optimize-table.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698