typedef void (*attrfv_func)( const GLfloat * );
-struct dynfn {
- struct dynfn *next, *prev;
+struct _tnl_dynfn {
+ struct _tnl_dynfn *next, *prev;
int key;
char *code;
};
-struct dynfn_lists {
- struct dynfn Vertex[4];
- struct dynfn Attribute[4];
+struct _tnl_dynfn_lists {
+ struct _tnl_dynfn Vertex[4];
+ struct _tnl_dynfn Attribute[4];
};
-struct dynfn_generators {
- struct dynfn *(*Vertex[4])( GLcontext *ctx, int key );
- struct dynfn *(*Attribute[4])( GLcontext *ctx, int key );
+struct _tnl_dynfn_generators {
+ struct _tnl_dynfn *(*Vertex[4])( GLcontext *ctx, int key );
+ struct _tnl_dynfn *(*Attribute[4])( GLcontext *ctx, int key );
};
#define _TNL_MAX_ATTR_CODEGEN 16
attrfv_func tabfv[_TNL_MAX_ATTR_CODEGEN+1][4]; /* plus 1 for ERROR_ATTRIB */
- struct dynfn_lists cache;
- struct dynfn_generators gen;
+ struct _tnl_dynfn_lists cache;
+ struct _tnl_dynfn_generators gen;
struct tnl_eval eval;
GLboolean *edgeflag_tmp;
}
-static struct dynfn *lookup( struct dynfn *l, GLuint key )
+static struct _tnl_dynfn *lookup( struct _tnl_dynfn *l, GLuint key )
{
- struct dynfn *f;
+ struct _tnl_dynfn *f;
foreach( f, l ) {
if (f->key == key)
static attrfv_func do_codegen( GLcontext *ctx, GLuint attr, GLuint sz )
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
- struct dynfn *dfn = 0;
+ struct _tnl_dynfn *dfn = 0;
if (attr == 0) {
GLuint key = tnl->vtx.vertex_size;
tnl->vtx.current[_TNL_ATTRIB_INDEX] = &ctx->Current.Index;
}
-static struct dynfn *no_codegen( GLcontext *ctx, int key )
+static struct _tnl_dynfn *no_codegen( GLcontext *ctx, int key )
{
return 0;
}
tnl->vtx.have_materials = 0;
}
-static void free_funcs( struct dynfn *l )
+static void free_funcs( struct _tnl_dynfn *l )
{
- struct dynfn *f, *tmp;
+ struct _tnl_dynfn *f, *tmp;
foreach_s (f, tmp, l) {
remove_from_list( f );
ALIGN_FREE( f->code );
#define DFN( FUNC, CACHE, KEY ) \
- struct dynfn *dfn = MALLOC_STRUCT( dynfn ); \
+ struct _tnl_dynfn *dfn = MALLOC_STRUCT( _tnl_dynfn ); \
char *start = (char *)&FUNC; \
char *end = (char *)&FUNC##_end; \
int offset = 0; \
* the current state. Generic x86 versions.
*/
-static struct dynfn *makeX86Vertex1fv( GLcontext *ctx, int vertex_size )
+static struct _tnl_dynfn *makeX86Vertex1fv( GLcontext *ctx, int vertex_size )
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
DFN ( _x86_Vertex1fv, tnl->vtx.cache.Vertex[1-1], vertex_size );
return dfn;
}
-static struct dynfn *makeX86Vertex2fv( GLcontext *ctx, int vertex_size )
+static struct _tnl_dynfn *makeX86Vertex2fv( GLcontext *ctx, int vertex_size )
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
DFN ( _x86_Vertex2fv, tnl->vtx.cache.Vertex[2-1], vertex_size );
return dfn;
}
-static struct dynfn *makeX86Vertex3fv( GLcontext *ctx, int vertex_size )
+static struct _tnl_dynfn *makeX86Vertex3fv( GLcontext *ctx, int vertex_size )
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
DFN ( _x86_Vertex3fv, tnl->vtx.cache.Vertex[3-1], vertex_size );
return dfn;
}
-static struct dynfn *makeX86Vertex4fv( GLcontext *ctx, int vertex_size )
+static struct _tnl_dynfn *makeX86Vertex4fv( GLcontext *ctx, int vertex_size )
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
DFN ( _x86_Vertex4fv, tnl->vtx.cache.Vertex[4-1], vertex_size );
}
-static struct dynfn *makeX86Attribute1fv( GLcontext *ctx, int dest )
+static struct _tnl_dynfn *makeX86Attribute1fv( GLcontext *ctx, int dest )
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
DFN ( _x86_Attribute1fv, tnl->vtx.cache.Attribute[1-1], dest );
return dfn;
}
-static struct dynfn *makeX86Attribute2fv( GLcontext *ctx, int dest )
+static struct _tnl_dynfn *makeX86Attribute2fv( GLcontext *ctx, int dest )
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
DFN ( _x86_Attribute2fv, tnl->vtx.cache.Attribute[2-1], dest );
return dfn;
}
-static struct dynfn *makeX86Attribute3fv( GLcontext *ctx, int dest )
+static struct _tnl_dynfn *makeX86Attribute3fv( GLcontext *ctx, int dest )
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
DFN ( _x86_Attribute3fv, tnl->vtx.cache.Attribute[3-1], dest );
return dfn;
}
-static struct dynfn *makeX86Attribute4fv( GLcontext *ctx, int dest )
+static struct _tnl_dynfn *makeX86Attribute4fv( GLcontext *ctx, int dest )
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
DFN ( _x86_Attribute4fv, tnl->vtx.cache.Attribute[4-1], dest );
}
-void _tnl_InitX86Codegen( struct dynfn_generators *gen )
+void _tnl_InitX86Codegen( struct _tnl_dynfn_generators *gen )
{
gen->Vertex[0] = makeX86Vertex1fv;
gen->Vertex[1] = makeX86Vertex2fv;
#else
-void _tnl_InitX86Codegen( struct dynfn_generators *gen )
+void _tnl_InitX86Codegen( struct _tnl_dynfn_generators *gen )
{
(void) gen;
}