]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Remove some undefined functions
authorMattia Basaglia <mattia.basaglia@gmail.com>
Wed, 29 Jul 2015 08:17:20 +0000 (10:17 +0200)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Wed, 29 Jul 2015 08:17:20 +0000 (10:17 +0200)
libs/splines/q_shared.cpp

index 033a6ee3120d4e725a727c498e5c08bc452b1cdd..fc21c27d748ad50e45aab506e7718dc2deea5817 100644 (file)
    ============================================================================
  */
 
    ============================================================================
  */
 
-// malloc / free all in one place for debugging
-extern "C" void *Com_Allocate( int bytes );
-extern "C" void Com_Dealloc( void *ptr );
-
 void Com_InitGrowList( growList_t *list, int maxElements ) {
        list->maxElements = maxElements;
        list->currentElements = 0;
 void Com_InitGrowList( growList_t *list, int maxElements ) {
        list->maxElements = maxElements;
        list->currentElements = 0;
-       list->elements = (void **)Com_Allocate( list->maxElements * sizeof( void * ) );
+       list->elements = (void **)malloc( list->maxElements * sizeof( void * ) );
 }
 
 int Com_AddToGrowList( growList_t *list, void *data ) {
 }
 
 int Com_AddToGrowList( growList_t *list, void *data ) {
@@ -65,7 +61,7 @@ int Com_AddToGrowList( growList_t *list, void *data ) {
 
        Com_DPrintf( "Resizing growlist to %i maxElements\n", list->maxElements );
 
 
        Com_DPrintf( "Resizing growlist to %i maxElements\n", list->maxElements );
 
-       list->elements = (void **)Com_Allocate( list->maxElements * sizeof( void * ) );
+       list->elements = (void **)malloc( list->maxElements * sizeof( void * ) );
 
        if ( !list->elements ) {
                Com_Error( ERR_DROP, "Growlist alloc failed" );
 
        if ( !list->elements ) {
                Com_Error( ERR_DROP, "Growlist alloc failed" );
@@ -73,7 +69,7 @@ int Com_AddToGrowList( growList_t *list, void *data ) {
 
        memcpy( list->elements, old, list->currentElements * sizeof( void * ) );
 
 
        memcpy( list->elements, old, list->currentElements * sizeof( void * ) );
 
-       Com_Dealloc( old );
+       free( old );
 
        return Com_AddToGrowList( list, data );
 }
 
        return Com_AddToGrowList( list, data );
 }