s/memcpy/_mesa_memcpy/, s/FREE/_mesa_free/
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 19 Oct 2005 01:26:48 +0000 (01:26 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 19 Oct 2005 01:26:48 +0000 (01:26 +0000)
src/mesa/drivers/dri/r200/r200_vtxfmt.c
src/mesa/drivers/dri/r200/r200_vtxfmt.h
src/mesa/drivers/dri/radeon/radeon_vtxfmt.c
src/mesa/drivers/dri/radeon/radeon_vtxfmt.h

index 61a757c870d78d538502654f21ff38c5d3f7f90e..f42a046c00db8e56423ad5175fbdbd762d2e70f2 100644 (file)
@@ -1173,7 +1173,7 @@ static void free_funcs( struct dynfn *l )
    foreach_s (f, tmp, l) {
       remove_from_list( f );
       _mesa_exec_free( f->code );
-      FREE( f );
+      _mesa_free( f );
    }
 }
 
index 32a21c48977f8117bb97eeb6a2f448699e2efb42..46999191e043739a23a73ffa43e9583a5ff69f7a 100644 (file)
@@ -57,10 +57,10 @@ do {                                                        \
    char *start = (char *)&FUNC;                                \
    char *end = (char *)&FUNC##_end;                    \
    insert_at_head( &CACHE, dfn );                      \
-   dfn->key[0] = key[0];                                       \
-   dfn->key[1] = key[1];                                       \
-   dfn->code = _mesa_exec_malloc( end - start );               \
-   memcpy (dfn->code, start, end - start);             \
+   dfn->key[0] = key[0];                               \
+   dfn->key[1] = key[1];                               \
+   dfn->code = _mesa_exec_malloc( end - start );       \
+   _mesa_memcpy(dfn->code, start, end - start);                \
 }                                                      \
 while ( 0 )
 
index 537a1c03520bdba4dae30fbde834a76977cc3995..3b3f459dffb392fea7b45c3070e84f9407a0ce63 100644 (file)
@@ -1039,7 +1039,7 @@ static void free_funcs( struct dynfn *l )
    foreach_s (f, tmp, l) {
       remove_from_list( f );
       _mesa_exec_free( f->code );
-      FREE( f );
+      _mesa_free( f );
    }
 }
 
index a7d5b8334df430eb8c749e3f5efe2a1e8a36d26d..a656e49e445898c19708ccc2b2950f3e34c98633 100644 (file)
@@ -56,8 +56,8 @@ do {                                                  \
    char *end = (char *)&FUNC##_end;                    \
    insert_at_head( &CACHE, dfn );                      \
    dfn->key = key;                                     \
-   dfn->code = _mesa_exec_malloc( end - start );               \
-   memcpy (dfn->code, start, end - start);             \
+   dfn->code = _mesa_exec_malloc( end - start );       \
+   _mesa_memcpy(dfn->code, start, end - start);                \
 }                                                      \
 while ( 0 )