VirtualBox

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

crOpenGL: use custom defines to destinguish 32/64 pointers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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