cximagemng_src.zip
CxImage
cximamng.htm
CxImgLib.dsw
demo
flake.mng
jpeg
change.log
filelist.txt
Jcapimin.c
JCAPISTD.C
JCCOEFCT.C
JCCOLOR.C
JCDCTMGR.C
JCHUFF.C
JCHUFF.H
JCINIT.C
JCMAINCT.C
JCMARKER.C
JCMASTER.C
JCOMAPI.C
Jconfig.h
JCPARAM.C
JCPHUFF.C
JCPREPCT.C
JCSAMPLE.C
JCTRANS.C
Jdapimin.c
JDAPISTD.C
JDATADST.C
JDATASRC.C
JDCOEFCT.C
JDCOLOR.C
JDCT.H
JDDCTMGR.C
JDHUFF.C
JDHUFF.H
JDINPUT.C
JDMAINCT.C
JDMARKER.C
JDMASTER.C
JDMERGE.C
JDPHUFF.C
JDPOSTCT.C
JDSAMPLE.C
JDTRANS.C
JERROR.C
JERROR.H
JFDCTFLT.C
JFDCTFST.C
JFDCTINT.C
JIDCTFLT.C
JIDCTFST.C
JIDCTINT.C
JIDCTRED.C
JINCLUDE.H
JMEMMGR.C
JMEMNOBS.C
JMEMSYS.H
Jmorecfg.h
Jpeg.dsp
Jpeg.dsw
JPEGINT.H
JPEGLIB.H
JQUANT1.C
JQUANT2.C
JUTILS.C
JVERSION.H
Readme.txt
mng
text1.mng
text2.mng
zlib
|
/* ************************************************************************** */
/* * For conditions of distribution and use, * */
/* * see copyright notice in libmng.h * */
/* ************************************************************************** */
/* * * */
/* * project : libmng * */
/* * file : libmng_memory.h copyright (c) 2000 G.Juyn * */
/* * version : 1.0.0 * */
/* * * */
/* * purpose : Memory management (definition) * */
/* * * */
/* * author : G.Juyn * */
/* * web : http://www.3-t.com * */
/* * email : mailto:info@3-t.com * */
/* * * */
/* * comment : Definition of memory management functions * */
/* * * */
/* * changes : 0.5.1 - 05/08/2000 - G.Juyn * */
/* * - changed strict-ANSI stuff * */
/* * * */
/* * 0.5.3 - 06/12/2000 - G.Juyn * */
/* * - swapped MNG_COPY parameter-names * */
/* * 0.5.3 - 06/27/2000 - G.Juyn * */
/* * - changed size parameter to mng_size_t * */
/* * * */
/* * 0.9.2 - 08/05/2000 - G.Juyn * */
/* * - changed file-prefixes * */
/* * * */
/* ************************************************************************** */
#if defined(__BORLANDC__) && defined(MNG_STRICT_ANSI)
#pragma option -A /* force ANSI-C */
#endif
#ifndef _libmng_memory_h_
#define _libmng_memory_h_
/* ************************************************************************** */
/* * * */
/* * Generic memory manager macros * */
/* * * */
/* ************************************************************************** */
#ifdef MNG_INTERNAL_MEMMNGMT
#define MNG_ALLOC(H,P,L) { P = calloc (1, (mng_size_t)(L)); \
if (P == 0) { MNG_ERROR (H, MNG_OUTOFMEMORY) } }
#define MNG_ALLOCX(H,P,L) { P = calloc (1, (mng_size_t)(L)); }
#define MNG_FREE(H,P,L) { if (P) { free (P); P = 0; } }
#define MNG_FREEX(H,P,L) { if (P) free (P); }
#else
#define MNG_ALLOC(H,P,L) { P = H->fMemalloc ((mng_size_t)(L)); \
if (P == 0) { MNG_ERROR (H, MNG_OUTOFMEMORY) } }
#define MNG_ALLOCX(H,P,L) { P = H->fMemalloc ((mng_size_t)(L)); }
#define MNG_FREE(H,P,L) { if (P) { H->fMemfree (P, (mng_size_t)(L)); P = 0; } }
#define MNG_FREEX(H,P,L) { if (P) { H->fMemfree (P, (mng_size_t)(L)); } }
#endif /* mng_internal_memmngmt */
#define MNG_COPY(D,S,L) { memcpy (D, S, (mng_size_t)(L)); }
/* ************************************************************************** */
#endif /* _libmng_memory_h_ */
/* ************************************************************************** */
/* * end of file * */
/* ************************************************************************** */
|
By viewing downloads associated with this article you agree to the Terms of Service 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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.