VirtualBox

Changeset 18140 in vbox for trunk/src


Ignore:
Timestamp:
Mar 23, 2009 2:28:35 PM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: use custom defines to destinguish 32/64 pointers

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  
    2626    print ""
    2727
     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
    2838    keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
    2939
     
    3444
    3545        print "BEGINPROC_EXPORTED gl%s" % func_name
    36         print "\tjmp \t[RTHCPTR_PRE glim + RTHCPTR_CB*%d]" % index
     46        print "\tjmp \t[PTR_PRE glim + PTR_CB*%d]" % index
    3747        print "ENDPROC gl%s" % func_name
    3848        print ""
     
    5969            index = keys.index(alias)
    6070            print "BEGINPROC_EXPORTED gl%s" % func_name
    61             print "\tjmp \t[RTHCPTR_PRE glim + RTHCPTR_CB*%d]" % index
     71            print "\tjmp \t[PTR_PRE glim + PTR_CB*%d]" % index
    6272            print "ENDPROC gl%s" % func_name
    6373            print ""
  • trunk/src/VBox/Additions/common/crOpenGL/windows_i386_exports.py

    r18139 r18140  
    2222        print ""
    2323
     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
    2434        # Get sorted list of dispatched functions.
    2535        # The order is very important - it must match cr_opcodes.h
     
    3444                print "BEGINPROC_EXPORTED cr_gl%s" % func_name
    3545                print "%ifdef RT_ARCH_AMD64"
    36         print "\tjmp \t[RTHCPTR_PRE glim + RTHCPTR_CB*%d]" % index
     46        print "\tjmp \t[PTR_PRE glim + PTR_CB*%d]" % index
    3747                print "%else ; X86"
    38         print "\tjmp \t[RTHCPTR_PRE _glim + RTHCPTR_CB*%d]" % index
     48        print "\tjmp \t[PTR_PRE _glim + PTR_CB*%d]" % index
    3949                print "%endif"
    4050                print "ENDPROC cr_gl%s" % func_name
     
    6272                        index = keys.index(alias)
    6373                        print "BEGINPROC_EXPORTED cr_gl%s" % func_name
    64             print "\tjmp \t[RTHCPTR_PRE glim + RTHCPTR_CB*%d]" % index
     74            print "\tjmp \t[PTR_PRE glim + PTR_CB*%d]" % index
    6575                        print "%else ; X86"
    66             print "\tjmp \t[RTHCPTR_PRE _glim + RTHCPTR_CB*%d]" % index
     76            print "\tjmp \t[PTR_PRE _glim + PTR_CB*%d]" % index
    6777                        print "%endif"
    6878                        print "ENDPROC cr_gl%s" % func_name
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette