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 free (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 53 libltdl/lt__alloc.c void *mem; mem 55 libltdl/lt__alloc.c if (! (mem = malloc (n))) mem 58 libltdl/lt__alloc.c return mem; mem 64 libltdl/lt__alloc.c void *mem; mem 66 libltdl/lt__alloc.c if ((mem = lt__malloc (n))) mem 67 libltdl/lt__alloc.c memset (mem, 0, n); mem 69 libltdl/lt__alloc.c return mem; mem 73 libltdl/lt__alloc.c lt__realloc (void *mem, size_t n) mem 75 libltdl/lt__alloc.c if (! (mem = realloc (mem, n))) mem 78 libltdl/lt__alloc.c return mem; mem 82 libltdl/lt__alloc.c lt__memdup (void const *mem, size_t n) mem 87 libltdl/lt__alloc.c return memcpy (newmem, mem, n);