From kde-commits Mon Jun 30 21:38:39 2008 From: Pino Toscano Date: Mon, 30 Jun 2008 21:38:39 +0000 To: kde-commits Subject: KDE/kdegames/kpat/patsolve Message-Id: <1214861919.517721.19941.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=121486192611257 SVN commit 826526 by pino: "allocate" is too generic to be used as macro name, especially that "allocate" is a member of the new_allocator class in GCC headers; thus, give it a less conflicting name, "mm_allocate" ("mm" as is "memory manager") M +2 -2 memory.cpp M +1 -1 memory.h M +1 -1 patsolve.cpp --- trunk/KDE/kdegames/kpat/patsolve/memory.cpp #826525:826526 @@ -93,7 +93,7 @@ /* If we didn't find it, make a new one and add it to the list. */ if (tl == NULL) { - tl = allocate(TREELIST); + tl = mm_allocate(TREELIST); if (tl == NULL) { return NULL; } @@ -116,7 +116,7 @@ { BLOCK *b; - b = allocate(BLOCK); + b = mm_allocate(BLOCK); if (b == NULL) { return NULL; } --- trunk/KDE/kdegames/kpat/patsolve/memory.h #826525:826526 @@ -70,6 +70,6 @@ }; #define new_array( type, size ) ( type* )MemoryManager::allocate_memory( ( size )*sizeof( type ) ); -#define allocate( type ) ( type* )MemoryManager::allocate_memory( sizeof( type ) ); +#define mm_allocate( type ) ( type* )MemoryManager::allocate_memory( sizeof( type ) ); #endif --- trunk/KDE/kdegames/kpat/patsolve/patsolve.cpp #826525:826526 @@ -541,7 +541,7 @@ Status = FAIL; return -1; } - l = allocate(BUCKETLIST); + l = mm_allocate(BUCKETLIST); if (l == NULL) { Status = FAIL; return -1;