| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # | |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 6 | 5 |
| 7 """ Generator for C style prototypes and definitions """ | 6 """ Generator for C style prototypes and definitions """ |
| 8 | 7 |
| 9 import glob | 8 import glob |
| 10 import os | 9 import os |
| 11 import sys | 10 import sys |
| 12 | 11 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 ast = ParseFiles(filenames) | 222 ast = ParseFiles(filenames) |
| 224 if hgen.GenerateRange(ast, ['M13', 'M14', 'M15'], {}): | 223 if hgen.GenerateRange(ast, ['M13', 'M14', 'M15'], {}): |
| 225 print "Golden file for M13-M15 failed." | 224 print "Golden file for M13-M15 failed." |
| 226 failed =1 | 225 failed =1 |
| 227 else: | 226 else: |
| 228 print "Golden file for M13-M15 passed." | 227 print "Golden file for M13-M15 passed." |
| 229 | 228 |
| 230 return failed | 229 return failed |
| 231 | 230 |
| 232 if __name__ == '__main__': | 231 if __name__ == '__main__': |
| 233 retval = Main(sys.argv[1:]) | 232 sys.exit(Main(sys.argv[1:])) |
| 234 sys.exit(retval) | |
| OLD | NEW |