LEFT | RIGHT |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2013 The ANGLE Project Authors. All rights reserved. | 3 # Copyright (c) 2013 The ANGLE Project 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 import json | 7 import json |
8 | 8 |
9 # This file contains the definitions for all the builtin in JSON format. | 9 # This file contains the definitions for all the builtin in JSON format. |
10 json_data = open('builtin_symbols.json') | 10 json_data = open('builtin_symbols.json') |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 paramdef += ttypeMap[param['type']]· | 82 paramdef += ttypeMap[param['type']]· |
83 paramdef += ", \"" + param['name'] + "\"" | 83 paramdef += ", \"" + param['name'] + "\"" |
84 out += paramdef + ");\n" | 84 out += paramdef + ");\n" |
85 if 'condition' in func: | 85 if 'condition' in func: |
86 out += " }\n" | 86 out += " }\n" |
87 output.write(out) | 87 output.write(out) |
88 output.write("}\n") | 88 output.write("}\n") |
89 | 89 |
90 json_data.close() | 90 json_data.close() |
91 output.close() | 91 output.close() |
LEFT | RIGHT |