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

Side by Side Diff: src/trusted/validator_arm/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_arm/dgen_opt.py ('k') | src/trusted/validator_arm/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
(Empty)
1 #!/usr/bin/python
2 #
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
5 # found in the LICENSE file.
6 #
7
8 """
9 Some common boilerplates and helper functions for source code generation
10 in files dgen_test_output.py and dgen_decode_output.py.
11 """
12
13 HEADER_BOILERPLATE ="""
14 /*
15 * Copyright 2012 The Native Client Authors. All rights reserved.
16 * Use of this source code is governed by a BSD-style license that can
17 * be found in the LICENSE file.
18 */
19
20 // DO NOT EDIT: GENERATED CODE
21 """
22
23 NOT_TCB_BOILERPLATE="""
24 #ifndef NACL_TRUSTED_BUT_NOT_TCB
25 #error This file is not meant for use in the TCB
26 #endif
27
28 """
29
30 def ifdef_name(filename):
31 """ Generates the ifdef name to use for the given filename"""
32 return filename.replace("/", "_").replace(".", "_").upper() + "_"
OLDNEW
« no previous file with comments | « src/trusted/validator_arm/dgen_opt.py ('k') | src/trusted/validator_arm/dgen_test_output.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698