| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Copyright (c) 2011 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 Pnacl Shim functions that bridges the calling conventions | 6 """Generator for Pnacl Shim functions that bridges the calling conventions |
| 8 between GCC and PNaCl. """ | 7 between GCC and PNaCl. """ |
| 9 | 8 |
| 10 from datetime import datetime | 9 from datetime import datetime |
| 11 import difflib | 10 import difflib |
| 12 import glob | 11 import glob |
| 13 import os | 12 import os |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 return TestFiles(filenames, test_releases) | 226 return TestFiles(filenames, test_releases) |
| 228 | 227 |
| 229 # Otherwise, generate the output file (for potential use as golden file). | 228 # Otherwise, generate the output file (for potential use as golden file). |
| 230 ast = ParseFiles(filenames) | 229 ast = ParseFiles(filenames) |
| 231 return pnaclgen.GenerateRange(ast, test_releases, filenames) | 230 return pnaclgen.GenerateRange(ast, test_releases, filenames) |
| 232 | 231 |
| 233 | 232 |
| 234 if __name__ == '__main__': | 233 if __name__ == '__main__': |
| 235 retval = Main(sys.argv[1:]) | 234 retval = Main(sys.argv[1:]) |
| 236 sys.exit(retval) | 235 sys.exit(retval) |
| OLD | NEW |