00001 /* 00002 * $Id: gi_memory.h,v 1.1.2.2 2003/12/07 13:26:30 jasta Exp $ 00003 * 00004 * Copyright (C) 2001-2003 giFT project (gift.sourceforge.net) 00005 * 00006 * This program is free software; you can redistribute it and/or modify it 00007 * under the terms of the GNU General Public License as published by the 00008 * Free Software Foundation; either version 2, or (at your option) any 00009 * later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * General Public License for more details. 00015 */ 00016 00017 #ifndef __GI_MEMORY_H 00018 #define __GI_MEMORY_H 00019 00020 /*****************************************************************************/ 00021 00031 /*****************************************************************************/ 00032 00033 EXTERN_C_BEGIN 00034 00035 /*****************************************************************************/ 00036 00041 LIBGIFT_EXPORT 00042 void *gi_malloc (size_t size); 00043 00047 LIBGIFT_EXPORT 00048 void *gi_calloc (size_t nmemb, size_t size); 00049 00053 #define gi_free(ptr) free(ptr) 00054 00058 LIBGIFT_EXPORT 00059 void *gi_realloc (void *ptr, size_t size); 00060 00061 /*****************************************************************************/ 00062 00063 EXTERN_C_END 00064 00065 /*****************************************************************************/ 00066 00067 #endif /* __GI_MEMORY_H */
1.3.7