eftidy130componentonly.zip
EfTidy.dll
eftidy130src.zip
EfTidy.def
EfTidy.dsp
EfTidyAttr.rgs
EfTidyNode.rgs
EfTidyps.def
tidyCom.rgs
TidyMyLib.dsp
tidyOption.rgs
eftidy1312componentonly.zip
EfTidy.dll
EfTidy132_Src.zip
EfTidy
EfTidy.def
EfTidy.vcxproj.filters
EfTidy.vcxproj.user
EfTidyAttr.rgs
EfTidyNode.rgs
EfTidyps.def
tidyCom.rgs
tidyOption.rgs
TidyMyLib
TidyMyLib.vcxproj.filters
TidyMyLib.vcxproj.user
eftidycom.zip
EfTidyCom
EfTidy
EfTidy.def
EfTidy.dsp
EfTidyAttr.rgs
EfTidyNode.rgs
EfTidyps.def
tidyCom.rgs
tidyOption.rgs
EfTidyCom.dsw
TidyLib
Src
Release
TidyLib.dsp
EFTidyCom132_Component.zip
EFTidyCom132-Component
EfTidy.dll
eftidycomsampleproject.zip
Sample Project
EfTidy.dll
Using IEfTidyNode and iEfTidyAttr
VbTidynode.frm
vbtidynode.vbp
vbtidynode.vbw
Using ITidyCom & ItidyOption
FirstTidy.vbp
FirstTidy.vbw
Form1.frm
Form1.frx
eftidycomsampleproject11.zip
EfTidy.dll
eftidycomsampleproject12.zip
output
EfTidy.dll
eftidycomsrc11.zip
EfTidy.def
EfTidy.dsp
EfTidyAttr.rgs
EfTidyNode.rgs
EfTidyps.def
tidyCom.rgs
tidyOption.rgs
EfTidyCom.dsw
TidyMyLib.dsp
eftidycomsrc12.zip
~vssc
EfTidy.cpp.ver
EfTidy.h.ver
EfTidyAttr.cpp.ver
EfTidyAttr.h.ver
EfTidyNode.cpp.ver
EfTidyNode.h.ver
resource.h.ver
StdAfx.cpp.ver
StdAfx.h.ver
tidyCom.cpp.ver
tidyCom.h.ver
tidyOption.cpp.ver
tidyOption.h.ver
EfTidy.def
EfTidy.dsp
EfTidyAttr.rgs
EfTidyNode.rgs
EfTidyps.def
tidyCom.rgs
tidyOption.rgs
EfTidyCom.dsw
TidyMyLib.dsp
eftidycomsrc1312.zip
EfTidy.def
EfTidy.dsp
EfTidyAttr.rgs
EfTidyNode.rgs
EfTidyps.def
tidyCom.rgs
tidyOption.rgs
TidyMyLib.dsp
|
/* alloc.c -- Default memory allocation routines.
(c) 1998-2005 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
CVS Info :
$Author: arnaud02 $
$Date: 2005/04/08 09:11:13 $
$Revision: 1.5 $
*/
#include "tidy.h"
static TidyMalloc g_malloc = NULL;
static TidyRealloc g_realloc = NULL;
static TidyFree g_free = NULL;
static TidyPanic g_panic = NULL;
Bool TIDY_CALL tidySetMallocCall( TidyMalloc fmalloc )
{
g_malloc = fmalloc;
return yes;
}
Bool TIDY_CALL tidySetReallocCall( TidyRealloc frealloc )
{
g_realloc = frealloc;
return yes;
}
Bool TIDY_CALL tidySetFreeCall( TidyFree ffree )
{
g_free = ffree;
return yes;
}
Bool TIDY_CALL tidySetPanicCall( TidyPanic fpanic )
{
g_panic = fpanic;
return yes;
}
void FatalError( ctmbstr msg )
{
if ( g_panic )
g_panic( msg );
else
{
/* 2 signifies a serious error */
fprintf( stderr, "Fatal error: %s\n", msg );
exit(2);
}
}
void* MemAlloc( size_t size )
{
void *p = ( g_malloc ? g_malloc(size) : malloc(size) );
if ( !p )
FatalError("Out of memory!");
return p;
}
void* MemRealloc( void* mem, size_t newsize )
{
void *p;
if ( mem == NULL )
return MemAlloc( newsize );
p = ( g_realloc ? g_realloc(mem, newsize) : realloc(mem, newsize) );
if (!p)
FatalError("Out of memory!");
return p;
}
void MemFree( void* mem )
{
if ( mem )
{
if ( g_free )
g_free( mem );
else
free( mem );
}
}
void ClearMemory( void *mem, size_t size )
{
memset(mem, 0, size);
}
|
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
He used to have biography here

, but now he will hire someone (for free offcourse

), Who writes his biography on his behalf
He is Great Fan of Mr.
Johan Rosengren (his idol),
Lim Bio Liong (Great Programmer) ,
Nishant S(Is he need any introduction?) and
DavidCrow and Believes that, he will EXCEL in his life by following there steps!!!
In October 2005, He joined the League of Visual C++ MVP