- Timestamp:
- Mar 23, 2009 2:28:35 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions/common/crOpenGL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/Linux_i386_exports.py
r18139 r18140 26 26 print "" 27 27 28 print""" 29 %ifdef RT_ARCH_AMD64 30 %define PTR_PRE qword 31 %define PTR_CB 8 32 %else 33 %define PTR_PRE dword 34 %define PTR_CB 4 35 %endif 36 """ 37 28 38 keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt") 29 39 … … 34 44 35 45 print "BEGINPROC_EXPORTED gl%s" % func_name 36 print "\tjmp \t[ RTHCPTR_PRE glim + RTHCPTR_CB*%d]" % index46 print "\tjmp \t[PTR_PRE glim + PTR_CB*%d]" % index 37 47 print "ENDPROC gl%s" % func_name 38 48 print "" … … 59 69 index = keys.index(alias) 60 70 print "BEGINPROC_EXPORTED gl%s" % func_name 61 print "\tjmp \t[ RTHCPTR_PRE glim + RTHCPTR_CB*%d]" % index71 print "\tjmp \t[PTR_PRE glim + PTR_CB*%d]" % index 62 72 print "ENDPROC gl%s" % func_name 63 73 print "" -
trunk/src/VBox/Additions/common/crOpenGL/windows_i386_exports.py
r18139 r18140 22 22 print "" 23 23 24 print""" 25 %ifdef RT_ARCH_AMD64 26 %define PTR_PRE qword 27 %define PTR_CB 8 28 %else 29 %define PTR_PRE dword 30 %define PTR_CB 4 31 %endif 32 """ 33 24 34 # Get sorted list of dispatched functions. 25 35 # The order is very important - it must match cr_opcodes.h … … 34 44 print "BEGINPROC_EXPORTED cr_gl%s" % func_name 35 45 print "%ifdef RT_ARCH_AMD64" 36 print "\tjmp \t[ RTHCPTR_PRE glim + RTHCPTR_CB*%d]" % index46 print "\tjmp \t[PTR_PRE glim + PTR_CB*%d]" % index 37 47 print "%else ; X86" 38 print "\tjmp \t[ RTHCPTR_PRE _glim + RTHCPTR_CB*%d]" % index48 print "\tjmp \t[PTR_PRE _glim + PTR_CB*%d]" % index 39 49 print "%endif" 40 50 print "ENDPROC cr_gl%s" % func_name … … 62 72 index = keys.index(alias) 63 73 print "BEGINPROC_EXPORTED cr_gl%s" % func_name 64 print "\tjmp \t[ RTHCPTR_PRE glim + RTHCPTR_CB*%d]" % index74 print "\tjmp \t[PTR_PRE glim + PTR_CB*%d]" % index 65 75 print "%else ; X86" 66 print "\tjmp \t[ RTHCPTR_PRE _glim + RTHCPTR_CB*%d]" % index76 print "\tjmp \t[PTR_PRE _glim + PTR_CB*%d]" % index 67 77 print "%endif" 68 78 print "ENDPROC cr_gl%s" % func_name
Note:
See TracChangeset
for help on using the changeset viewer.