Sourcecode and documentation for libtasn1-2 version 0.2.10-3sarge1
show bar | Show file versions
Search packages:
| Sourcecode archive home

mem.h

00001 #ifndef MEM_H
00002 # define MEM_H
00003 
00004 /* Use _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 _asn1_alloca alloca
00013 # define _asn1_afree(x)
00014 #else
00015 # define _asn1_alloca _asn1_malloc
00016 # define _asn1_afree _asn1_free
00017 #endif /* HAVE_ALLOCA */
00018 
00019 #define _asn1_malloc malloc
00020 #define _asn1_free free
00021 #define _asn1_calloc calloc
00022 #define _asn1_realloc realloc
00023 #define _asn1_strdup strdup
00024 
00025 #endif /* MEM_H */
00026 
00027 

Generated by  Doxygen 1.5.1