]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Move Mem_strdup into zone.c
authorres <res@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 17 Dec 2007 03:37:43 +0000 (03:37 +0000)
committerres <res@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 17 Dec 2007 03:37:43 +0000 (03:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7809 d7cf8633-e32d-0410-b094-e92efae38249

zone.c
zone.h

diff --git a/zone.c b/zone.c
index 32655d9ad143e38fa8e9d390d6f62dd2d4b8fcd4..a945a85084be6d9c85301e19111825b319a3bb0c 100644 (file)
--- a/zone.c
+++ b/zone.c
@@ -558,6 +558,15 @@ void MemStats_f(void)
 }
 
 
+char* Mem_strdup (mempool_t *pool, const char* s)
+{
+       char* p;
+       if (s == NULL) return NULL;
+       p = (char*)Mem_Alloc (pool, strlen (s) + 1);
+       strcpy (p, s);
+       return p;
+}
+
 /*
 ========================
 Memory_Init
diff --git a/zone.h b/zone.h
index a71916c01eb051eef386c07b26af1ed3b0573bbb..69d6f1b6d650297aed3a70e4d4445d18e56755d5 100644 (file)
--- a/zone.h
+++ b/zone.h
@@ -135,14 +135,7 @@ void _Mem_CheckSentinelsGlobal(const char *filename, int fileline);
 // if pool is NULL this searches ALL pools for the allocation
 qboolean Mem_IsAllocated(mempool_t *pool, void *data);
 
-static char* Mem_strdup (mempool_t *pool, const char* s)
-{
-       char* p;
-       if (s == NULL) return NULL;
-       p = (char*)Mem_Alloc (pool, strlen (s) + 1);
-       strcpy (p, s);
-       return p;
-}
+char* Mem_strdup (mempool_t *pool, const char* s);
 
 typedef struct memexpandablearray_array_s
 {