SunOS_i386_exports.py revision e64031e20c39650a7bc902a3e1aba613b9415dee
#
# Copyright (C) 2009 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
import sys
import apiutil
def GenerateEntrypoints():
#apiutil.CopyrightC()
# Get sorted list of dispatched functions.
# The order is very important - it must match cr_opcodes.h
# and spu_dispatch_table.h
print '%include "iprt/asmdefs.mac"'
print ""
print "%ifdef RT_ARCH_AMD64"
print "extern glim"
print "%else ; X86"
print "extern glim"
print "%endif"
print ""
continue
print "BEGINPROC_EXPORTED gl%s" % func_name
print "%ifdef RT_ARCH_AMD64"
print "%else ; X86"
print "%endif"
print "ENDPROC gl%s" % func_name
print ""
print ';'
print '; Aliases'
print ';'
# Now loop over all the functions and take care of any aliases
continue
# we already processed this function earlier
continue
# alias is the function we're aliasing
if alias:
# this dict lookup should never fail (raise an exception)!
print "BEGINPROC_EXPORTED gl%s" % func_name
print "%ifdef RT_ARCH_AMD64"
print "%else ; X86"
print "%endif"
print "ENDPROC gl%s" % func_name
print ""
print ';'
print '; No-op stubs'
print ';'
# Now generate no-op stub functions
print "BEGINPROC_EXPORTED gl%s" % func_name
print "\tleave"
print "\tret"
print "ENDPROC gl%s" % func_name
print ""