Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: ppapi/generators/idl_c_proto.py

Issue 875543002: Grab a bunch of owners / todos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/generators/OWNERS ('k') | ppapi/generators/idl_parser.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # 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
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """ Generator for C style prototypes and definitions """ 6 """ Generator for C style prototypes and definitions """
7 7
8 import glob 8 import glob
9 import os 9 import os
10 import sys 10 import sys
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 newest_stable = None 613 newest_stable = None
614 newest_dev = None 614 newest_dev = None
615 for rel in build_list: 615 for rel in build_list:
616 channel = node.GetProperty('FILE').release_map.GetChannel(rel) 616 channel = node.GetProperty('FILE').release_map.GetChannel(rel)
617 if channel == 'stable': 617 if channel == 'stable':
618 newest_stable = rel 618 newest_stable = rel
619 if channel == 'dev': 619 if channel == 'dev':
620 newest_dev = rel 620 newest_dev = rel
621 last_rel = build_list[-1] 621 last_rel = build_list[-1]
622 622
623 # TODO(noelallen) : Bug 157017 finish multiversion support 623 # TODO(bradnelson) : Bug 157017 finish multiversion support
624 if node.IsA('Struct'): 624 if node.IsA('Struct'):
625 if len(build_list) != 1: 625 if len(build_list) != 1:
626 node.Error('Can not support multiple versions of node.') 626 node.Error('Can not support multiple versions of node.')
627 assert len(build_list) == 1 627 assert len(build_list) == 1
628 # Build the most recent one versioned, with comments 628 # Build the most recent one versioned, with comments
629 out = self.DefineStructInternals(node, last_rel, 629 out = self.DefineStructInternals(node, last_rel,
630 include_version=False, comment=True) 630 include_version=False, comment=True)
631 631
632 if node.IsA('Interface'): 632 if node.IsA('Interface'):
633 # Build the most recent one versioned, with comments 633 # Build the most recent one versioned, with comments
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 for f in ast.GetListOf('File'): 810 for f in ast.GetListOf('File'):
811 if f.GetProperty('ERRORS') > 0: 811 if f.GetProperty('ERRORS') > 0:
812 print 'Skipping %s' % f.GetName() 812 print 'Skipping %s' % f.GetName()
813 continue 813 continue
814 for node in f.GetChildren()[2:]: 814 for node in f.GetChildren()[2:]:
815 print cgen.Define(node, ast.releases, comment=True, prefix='tst_') 815 print cgen.Define(node, ast.releases, comment=True, prefix='tst_')
816 816
817 817
818 if __name__ == '__main__': 818 if __name__ == '__main__':
819 sys.exit(main(sys.argv[1:])) 819 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « ppapi/generators/OWNERS ('k') | ppapi/generators/idl_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698