mem 39 libltdl/libltdl/lt__alloc.h #define REALLOC(tp, mem, n) (tp*) lt__realloc((mem), (n) * sizeof(tp)) mem 40 libltdl/libltdl/lt__alloc.h #define FREE(mem) LT_STMT_START { \ mem 41 libltdl/libltdl/lt__alloc.h if (mem) { free ((void *)mem); mem = NULL; } } LT_STMT_END mem 51 libltdl/libltdl/lt__alloc.h LT_SCOPE void *lt__realloc (void *mem, size_t n); mem 52 libltdl/libltdl/lt__alloc.h LT_SCOPE void *lt__memdup (void const *mem, size_t n); mem 101 libltdl/loaders/loadlibrary.c #define LOCALFREE(mem) LT_STMT_START { \ mem 102 libltdl/loaders/loadlibrary.c if (mem) { LocalFree ((void *)mem); mem = NULL; } } LT_STMT_END mem 52 libltdl/lt__alloc.c void *mem; mem 54 libltdl/lt__alloc.c if (! (mem = malloc (n))) mem 57 libltdl/lt__alloc.c return mem; mem 63 libltdl/lt__alloc.c void *mem; mem 65 libltdl/lt__alloc.c if ((mem = lt__malloc (n))) mem 66 libltdl/lt__alloc.c memset (mem, 0, n); mem 68 libltdl/lt__alloc.c return mem; mem 72 libltdl/lt__alloc.c lt__realloc (void *mem, size_t n) mem 74 libltdl/lt__alloc.c if (! (mem = realloc (mem, n))) mem 77 libltdl/lt__alloc.c return mem; mem 81 libltdl/lt__alloc.c lt__memdup (void const *mem, size_t n) mem 86 libltdl/lt__alloc.c return memcpy (newmem, mem, n);