mem.h

Go to the documentation of this file.
00001 #ifndef MEM_H
00002 # define MEM_H
00003 
00004 /* Use MHD__asn1_afree() when calling alloca, or
00005  * memory leaks may occur in systems which do not
00006  * support alloca.
00007  */
00008 #ifdef HAVE_ALLOCA
00009 # ifdef HAVE_ALLOCA_H
00010 #  include <alloca.h>
00011 # endif
00012 # define MHD__asn1_alloca alloca
00013 # define MHD__asn1_afree(x)
00014 #else
00015 # define MHD__asn1_alloca MHD__asn1_malloc
00016 # define MHD__asn1_afree MHD__asn1_free
00017 #endif /* HAVE_ALLOCA */
00018 
00019 #define MHD__asn1_malloc malloc
00020 #define MHD__asn1_free free
00021 #define MHD__asn1_calloc calloc
00022 #define MHD__asn1_realloc realloc
00023 #define MHD__asn1_strdup strdup
00024 
00025 #endif /* MEM_H */

Generated on Fri Feb 27 18:32:18 2009 for GNU libmicrohttpd by  doxygen 1.5.7.1