Changeset 63939 in vbox for trunk/src/VBox/Additions/common/crOpenGL/windows_getprocaddress.py
- Timestamp:
- Sep 22, 2016 7:58:05 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/windows_getprocaddress.py
r51200 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 8 … … 10 11 apiutil.CopyrightC() 11 12 12 print 13 print(""" 13 14 /* DO NOT EDIT - THIS FILE GENERATED BY THE getprocaddress.py SCRIPT */ 14 15 #include "chromium.h" … … 24 25 #endif 25 26 26 """ 27 """) 27 28 28 print 29 print(""" 29 30 struct name_address { 30 31 const char *name; … … 35 36 36 37 static struct name_address functions[] = { 37 """ 38 """) 38 39 39 40 … … 60 61 address = "cr_gl" + proc_name 61 62 if wrap: 62 print '#ifdef CR_%s' % wrap63 print '\t{ "%s", (CR_PROC) %s },' % (name, address)63 print('#ifdef CR_%s' % wrap) 64 print('\t{ "%s", (CR_PROC) %s },' % (name, address)) 64 65 if wrap: 65 print '#endif'66 print('#endif') 66 67 67 68 68 print "\t/* Chromium binding/glue functions */"69 print("\t/* Chromium binding/glue functions */") 69 70 70 71 for func_name in keys: … … 75 76 continue 76 77 if apiutil.Category(func_name) == "Chromium": 77 print '\t{ "cr%s", (CR_PROC) cr%s },' % (func_name, func_name)78 print('\t{ "cr%s", (CR_PROC) cr%s },' % (func_name, func_name)) 78 79 79 print "\t/* Windows ICD functions */"80 print("\t/* Windows ICD functions */") 80 81 81 82 for func_name in ( "CopyContext", … … 95 96 "SetContext", 96 97 "ValidateVersion"): 97 print '\t{ "Drv%s", (CR_PROC) Drv%s },' % (func_name, func_name)98 print('\t{ "Drv%s", (CR_PROC) Drv%s },' % (func_name, func_name)) 98 99 99 print '\t{ "DrvGetProcAddress", (CR_PROC) wglGetProcAddress_prox },'100 print('\t{ "DrvGetProcAddress", (CR_PROC) wglGetProcAddress_prox },') 100 101 101 print 102 print(""" 102 103 { NULL, NULL } 103 104 }; … … 149 150 } 150 151 151 """ 152 """) 152 153 153 154
Note:
See TracChangeset
for help on using the changeset viewer.