diff options
author | Brian Paul <[email protected]> | 2002-01-03 16:33:59 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-01-03 16:33:59 +0000 |
commit | efe2baadb8752c7bc9e9f34f750aa1c6ea607461 (patch) | |
tree | fc5236313958ae54c6dfadb164ca50f9e44e2ed8 | |
parent | a0f923d2863e54068b865880800d7ad3de58d858 (diff) |
don't use macros, just expand them in-line
-rw-r--r-- | src/mesa/glapi/glsparcasm.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mesa/glapi/glsparcasm.py b/src/mesa/glapi/glsparcasm.py index 39c85aaa0f9..7f624023c02 100644 --- a/src/mesa/glapi/glsparcasm.py +++ b/src/mesa/glapi/glsparcasm.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# $Id: glsparcasm.py,v 1.6 2001/11/19 00:40:33 brianp Exp $ +# $Id: glsparcasm.py,v 1.7 2002/01/03 16:33:59 brianp Exp $ # Mesa 3-D graphics library # Version: 4.1 @@ -41,9 +41,6 @@ def PrintHead(): print '/* DO NOT EDIT - This file generated automatically with glsparcasm.py script */' print '#include "glapioffsets.h"' print '' - print '#define GL_PREFIX(n) gl##n' - print '#define GLOBL_FN(x) .globl x' - print '' print '/* The _glapi_Dispatch symbol addresses get relocated into the' print ' * sethi/or instruction sequences below at library init time.' print ' */' @@ -111,9 +108,9 @@ def EmitFunction(name, returnType, argTypeList, argNameList, alias, offset): # print the assembly code print '' - print "GLOBL_FN(GL_PREFIX(%s))" % (name) - print '.type gl%s,#function' %(name) - print "GL_PREFIX(%s):" % (name) + print '.globl gl%s' % (name) + print '.type gl%s,#function' % (name) + print 'gl%s:' % (name) print '#ifdef __sparc_v9__' print '\tsethi\t%hi(0x00000000), %g2' print '\tsethi\t%hi(0x00000000), %g1' |