| 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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 if f.GetProperty('ERRORS') > 0: | 647 if f.GetProperty('ERRORS') > 0: |
| 649 print 'Skipping %s' % f.GetName() | 648 print 'Skipping %s' % f.GetName() |
| 650 continue | 649 continue |
| 651 print DefineDepends(node) | 650 print DefineDepends(node) |
| 652 for node in f.GetChildren()[2:]: | 651 for node in f.GetChildren()[2:]: |
| 653 print Define(node, comment=True, prefix='tst_') | 652 print Define(node, comment=True, prefix='tst_') |
| 654 | 653 |
| 655 | 654 |
| 656 if __name__ == '__main__': | 655 if __name__ == '__main__': |
| 657 sys.exit(Main(sys.argv[1:])) | 656 sys.exit(Main(sys.argv[1:])) |
| OLD | NEW |