| OLD | NEW |
| 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 Loading... |
| 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() + "_" |
| OLD | NEW |