Changeset 63939 in vbox for trunk/src/VBox/GuestHost/OpenGL/util
- Timestamp:
- Sep 22, 2016 7:58:05 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 110825
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/debug_opcodes.py
r15532 r63939 4 4 # See the file LICENSE.txt for information on redistributing this software. 5 5 6 from __future__ import print_function 6 7 import sys; 7 import cPickle;8 8 import string; 9 9 import re; … … 13 13 apiutil.CopyrightC() 14 14 15 print 15 print(""" 16 16 #include "cr_debugopcodes.h" 17 17 #include <stdio.h> 18 """ 18 """) 19 19 20 print 20 print("""void crDebugOpcodes( FILE *fp, unsigned char *ptr, unsigned int num_opcodes ) 21 21 { 22 22 \tunsigned int i; … … 25 25 \t\tswitch(*(ptr--)) 26 26 \t\t{ 27 """ 27 """) 28 28 29 29 keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt") … … 32 32 for func_name in keys: 33 33 if "pack" in apiutil.ChromiumProps(func_name): 34 print '\t\tcase %s:' % apiutil.OpcodeName( func_name)35 print '\t\t\tfprintf( fp, "%s\\n" ); ' % apiutil.OpcodeName( func_name)36 print '\t\t\tbreak;'34 print('\t\tcase %s:' % apiutil.OpcodeName( func_name )) 35 print('\t\t\tfprintf( fp, "%s\\n" ); ' % apiutil.OpcodeName( func_name )) 36 print( '\t\t\tbreak;') 37 37 38 print 38 print(""" 39 39 \t\t} 40 40 \t} 41 41 } 42 """ 42 """)
Note:
See TracChangeset
for help on using the changeset viewer.