[Scummvm-cvs-logs] SF.net SVN: scummvm:[38492] scummvm/trunk/tools/cfsml.pl
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Wed Feb 18 18:54:16 CET 2009
Revision: 38492
http://scummvm.svn.sourceforge.net/scummvm/?rev=38492&view=rev
Author: thebluegr
Date: 2009-02-18 17:54:16 +0000 (Wed, 18 Feb 2009)
Log Message:
-----------
Updated the cfsml tool to silence MSVC warnings and to remove memory testing
Modified Paths:
--------------
scummvm/trunk/tools/cfsml.pl
Modified: scummvm/trunk/tools/cfsml.pl
===================================================================
--- scummvm/trunk/tools/cfsml.pl 2009-02-18 17:53:00 UTC (rev 38491)
+++ scummvm/trunk/tools/cfsml.pl 2009-02-18 17:54:16 UTC (rev 38492)
@@ -144,28 +144,13 @@
{
if (!refs)
return;
- #ifdef CFSML_DEBUG_MALLOC
- SCI_MEMTEST;
- #endif
_cfsml_free_pointer_references_recursively(refs->next, free_pointers);
- #ifdef CFSML_DEBUG_MALLOC
- SCI_MEMTEST;
- fprintf(stderr,"Freeing ptrref %p [%p] %s\n", refs->ptr, refs, free_pointers?
- "ALL": "cleanup only");
- #endif
-
if (free_pointers)
free(refs->ptr);
- #ifdef CFSML_DEBUG_MALLOC
- SCI_MEMTEST;
- #endif
free(refs);
- #ifdef CFSML_DEBUG_MALLOC
- SCI_MEMTEST;
- #endif
}
static void
@@ -185,10 +170,6 @@
static void _cfsml_register_pointer(void *ptr)
{
struct _cfsml_pointer_refstruct *newref = (struct _cfsml_pointer_refstruct*)sci_malloc(sizeof (struct _cfsml_pointer_refstruct));
- #ifdef CFSML_DEBUG_MALLOC
- SCI_MEMTEST;
- fprintf(stderr,"Registering ptrref %p [%p]\n", ptr, newref);
- #endif
newref->next = *_cfsml_pointer_references_current;
newref->ptr = ptr;
*_cfsml_pointer_references_current = newref;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list