3
* Copyright 2008-2010 LibRaw LLC (info@libraw.org)
4
* Created: Sat Mar 22, 2008
8
LibRaw is free software; you can redistribute it and/or modify
9
it under the terms of the one of three licenses as you choose:
11
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
12
(See file LICENSE.LGPL provided in LibRaw distribution archive for details).
14
2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
15
(See file LICENSE.CDDL provided in LibRaw distribution archive for details).
17
3. LibRaw Software License 27032010
18
(See file LICENSE.LibRaw.pdf provided in LibRaw distribution archive for details).
22
#ifndef __LIBRAW_ALLOC_H
23
#define __LIBRAW_ALLOC_H
32
class DllDef libraw_memmgr
37
memset(mems,0,sizeof(mems));
40
void *malloc(size_t sz)
42
void *ptr = ::malloc(sz);
46
void *calloc(size_t n, size_t sz)
48
void *ptr = ::calloc(n,sz);
52
void *realloc(void *ptr,size_t newsz)
54
void *ret = ::realloc(ptr,newsz);
66
for(int i = 0; i< MSIZE; i++)
77
void mem_ptr(void *ptr)
80
for(int i=0;i < MSIZE; i++)
87
void forget_ptr(void *ptr)
90
for(int i=0;i < MSIZE; i++)