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

Side by Side Diff: src/trusted/validator/dgen/dgen_output.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
« no previous file with comments | « src/trusted/validator/dgen/dgen_opt.py ('k') | src/trusted/validator/dgen/dgen_test_output.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 7
8 """ 8 """
9 Some common boilerplates and helper functions for source code generation 9 Some common boilerplates and helper functions for source code generation
10 in files dgen_test_output.py and dgen_decode_output.py. 10 in files dgen_test_output.py and dgen_decode_output.py.
(...skipping 12 matching lines...) Expand all
23 NOT_TCB_BOILERPLATE=""" 23 NOT_TCB_BOILERPLATE="""
24 #ifndef NACL_TRUSTED_BUT_NOT_TCB 24 #ifndef NACL_TRUSTED_BUT_NOT_TCB
25 #error This file is not meant for use in the TCB 25 #error This file is not meant for use in the TCB
26 #endif 26 #endif
27 27
28 """ 28 """
29 29
30 def ifdef_name(filename): 30 def ifdef_name(filename):
31 """ Generates the ifdef name to use for the given filename""" 31 """ Generates the ifdef name to use for the given filename"""
32 return filename.replace("/", "_").replace(".", "_").upper() + "_" 32 return filename.replace("/", "_").replace(".", "_").upper() + "_"
OLDNEW
« no previous file with comments | « src/trusted/validator/dgen/dgen_opt.py ('k') | src/trusted/validator/dgen/dgen_test_output.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698