VirtualBox

Ignore:
Timestamp:
Mar 23, 2009 2:28:35 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
44837
Message:

crOpenGL: use custom defines to destinguish 32/64 pointers

File:
1 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 ""
Note: See TracChangeset for help on using the changeset viewer.

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