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); mem 636 maint/gnulib/lib/glob.c char *mem = alloca (home_drive_len + home_path_len + 1); mem 638 maint/gnulib/lib/glob.c memcpy (mem, home_drive, home_drive_len); mem 639 maint/gnulib/lib/glob.c memcpy (mem + home_drive_len, home_path, home_path_len + 1); mem 640 maint/gnulib/lib/glob.c home_dir = mem; mem 55 maint/gnulib/lib/malloca.c char *mem = (char *) malloc (nplus); mem 57 maint/gnulib/lib/malloca.c if (mem != NULL) mem 59 maint/gnulib/lib/malloca.c uintptr_t umem = (uintptr_t)mem, umemplus; mem 66 maint/gnulib/lib/malloca.c void *vp = mem + offset; mem 102 maint/gnulib/lib/malloca.c void *mem = (char *) p - ((small_t *) p)[-1]; mem 103 maint/gnulib/lib/malloca.c free (mem); mem 126 maint/gnulib/lib/os2-spawn.c char *mem; mem 128 maint/gnulib/lib/os2-spawn.c mem = NULL; mem 131 maint/gnulib/lib/os2-spawn.c mem = (char *) malloc (needed_size); mem 132 maint/gnulib/lib/os2-spawn.c if (mem == NULL) mem 140 maint/gnulib/lib/os2-spawn.c *mem_to_free = mem; mem 146 maint/gnulib/lib/os2-spawn.c new_argv[1 + i] = mem; mem 149 maint/gnulib/lib/os2-spawn.c memcpy (mem, quoted_string, length + 1); mem 150 maint/gnulib/lib/os2-spawn.c mem += length + 1; mem 471 maint/gnulib/lib/stackvma.c char *mem; mem 495 maint/gnulib/lib/stackvma.c mem = (char *) auxmap; mem 496 maint/gnulib/lib/stackvma.c if (sysctl (info_path, 4, mem, &len, NULL, 0) < 0) mem 501 maint/gnulib/lib/stackvma.c p = mem; mem 502 maint/gnulib/lib/stackvma.c p_end = mem + len; mem 89 maint/gnulib/lib/strsignal.c static void free_key_mem (void *mem); mem 167 maint/gnulib/lib/strsignal.c free_key_mem (void *mem) mem 169 maint/gnulib/lib/strsignal.c free (mem); mem 609 maint/gnulib/lib/vma-iter.c char *mem; mem 633 maint/gnulib/lib/vma-iter.c mem = (char *) auxmap; mem 634 maint/gnulib/lib/vma-iter.c if (sysctl (info_path, 4, mem, &len, NULL, 0) < 0) mem 639 maint/gnulib/lib/vma-iter.c p = mem; mem 640 maint/gnulib/lib/vma-iter.c p_end = mem + len; mem 693 maint/gnulib/lib/vma-iter.c char *mem; mem 723 maint/gnulib/lib/vma-iter.c mem = (char *) auxmap; mem 724 maint/gnulib/lib/vma-iter.c if (sysctl (info_path, 5, mem, &len, NULL, 0) < 0 mem 731 maint/gnulib/lib/vma-iter.c p = mem; mem 732 maint/gnulib/lib/vma-iter.c p_end = mem + len; mem 780 maint/gnulib/lib/vma-iter.c char *mem; mem 810 maint/gnulib/lib/vma-iter.c mem = (char *) auxmap; mem 811 maint/gnulib/lib/vma-iter.c if (sysctl (info_path, 3, mem, &len, NULL, 0) < 0 mem 818 maint/gnulib/lib/vma-iter.c p = mem; mem 819 maint/gnulib/lib/vma-iter.c p_end = mem + len; mem 87 maint/gnulib/lib/windows-spawn.c quoted_arg_string (const char *string, char *mem) mem 94 maint/gnulib/lib/windows-spawn.c p = mem; mem 163 maint/gnulib/lib/windows-spawn.c char *mem; mem 165 maint/gnulib/lib/windows-spawn.c mem = NULL; mem 168 maint/gnulib/lib/windows-spawn.c mem = (char *) malloc (needed_size); mem 169 maint/gnulib/lib/windows-spawn.c if (mem == NULL) mem 177 maint/gnulib/lib/windows-spawn.c *mem_to_free = mem; mem 183 maint/gnulib/lib/windows-spawn.c new_argv[1 + i] = mem; mem 187 maint/gnulib/lib/windows-spawn.c memcpy (mem, "\"\"", length + 1); mem 188 maint/gnulib/lib/windows-spawn.c mem += length + 1; mem 192 maint/gnulib/lib/windows-spawn.c mem = quoted_arg_string (string, mem); mem 197 maint/gnulib/lib/windows-spawn.c memcpy (mem, string, length + 1); mem 198 maint/gnulib/lib/windows-spawn.c mem += length + 1; mem 110 maint/gnulib/tests/test-memchr.c char *mem = page_boundary - n; mem 111 maint/gnulib/tests/test-memchr.c memset (mem, 'X', n); mem 112 maint/gnulib/tests/test-memchr.c ASSERT (MEMCHR (mem, 'U', n) == NULL); mem 113 maint/gnulib/tests/test-memchr.c ASSERT (MEMCHR (mem, 0, n) == NULL); mem 121 maint/gnulib/tests/test-memchr.c mem[i] = 'U'; mem 123 maint/gnulib/tests/test-memchr.c ASSERT (MEMCHR (mem, 'U', k) == mem + i); mem 124 maint/gnulib/tests/test-memchr.c mem[i] = 0; mem 126 maint/gnulib/tests/test-memchr.c ASSERT (MEMCHR (mem, 0, k) == mem + i); mem 127 maint/gnulib/tests/test-memchr.c mem[i] = 'X'; mem 89 maint/gnulib/tests/test-ssfmalloc.c void *mem = VirtualAlloc (NULL, size, MEM_COMMIT, PAGE_READWRITE); mem 90 maint/gnulib/tests/test-ssfmalloc.c if (mem == NULL) mem 92 maint/gnulib/tests/test-ssfmalloc.c return (uintptr_t) mem; mem 95 maint/gnulib/tests/test-ssfmalloc.c void *mem = mmap (NULL, size, PROT_READ | PROT_WRITE, mem 97 maint/gnulib/tests/test-ssfmalloc.c if (mem == (void *)(-1)) mem 99 maint/gnulib/tests/test-ssfmalloc.c return (uintptr_t) mem; mem 118 maint/gnulib/tests/unistr/test-chr.h UNIT *mem = (UNIT *) (page_boundary - n * sizeof (UNIT)); mem 119 maint/gnulib/tests/unistr/test-chr.h U_SET (mem, 'X', n); mem 120 maint/gnulib/tests/unistr/test-chr.h ASSERT (U_CHR (mem, n, 'U') == NULL); mem 127 maint/gnulib/tests/unistr/test-chr.h mem[i] = 'U'; mem 128 maint/gnulib/tests/unistr/test-chr.h ASSERT (U_CHR (mem, 4000, 'U') == mem + i); mem 129 maint/gnulib/tests/unistr/test-chr.h mem[i] = 'X'; mem 113 maint/gnulib/tests/unistr/test-strchr.h UNIT *mem = (UNIT *) (page_boundary - n * sizeof (UNIT)); mem 114 maint/gnulib/tests/unistr/test-strchr.h U_SET (mem, 'X', n - 2); mem 115 maint/gnulib/tests/unistr/test-strchr.h mem[n - 2] = 0; mem 116 maint/gnulib/tests/unistr/test-strchr.h ASSERT (U_STRCHR (mem, 'U') == NULL); mem 117 maint/gnulib/tests/unistr/test-strchr.h mem[n - 2] = 'X'; mem 118 maint/gnulib/tests/unistr/test-strchr.h mem[n - 1] = 0; mem 119 maint/gnulib/tests/unistr/test-strchr.h ASSERT (U_STRCHR (mem, 'U') == NULL); mem 140 maint/gnulib/tests/unistr/test-strchr.h UNIT *mem = (UNIT *) (page_boundary - n * sizeof (UNIT)); mem 141 maint/gnulib/tests/unistr/test-strchr.h U_SET (mem, 'X', n - 1); mem 142 maint/gnulib/tests/unistr/test-strchr.h mem[n - 1] = 0; mem 143 maint/gnulib/tests/unistr/test-strchr.h ASSERT (U_STRCHR (mem, 'U') == NULL); mem 150 maint/gnulib/tests/unistr/test-strchr.h mem[i] = 'U'; mem 151 maint/gnulib/tests/unistr/test-strchr.h ASSERT (U_STRCHR (mem, 'U') == mem + i); mem 152 maint/gnulib/tests/unistr/test-strchr.h mem[i] = 'X'; mem 47 maint/gnulib/tests/unistr/test-u8-strchr.c UNIT *mem; mem 49 maint/gnulib/tests/unistr/test-u8-strchr.c mem = (UNIT *) (page_boundary - 1 * sizeof (UNIT)); mem 50 maint/gnulib/tests/unistr/test-u8-strchr.c mem[0] = 0; mem 51 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x55) == NULL); mem 52 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x123) == NULL); mem 53 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x3456) == NULL); mem 54 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x23456) == NULL); mem 56 maint/gnulib/tests/unistr/test-u8-strchr.c mem = (UNIT *) (page_boundary - 2 * sizeof (UNIT)); mem 57 maint/gnulib/tests/unistr/test-u8-strchr.c mem[0] = 0x50; mem 58 maint/gnulib/tests/unistr/test-u8-strchr.c mem[1] = 0; mem 59 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x55) == NULL); mem 60 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x123) == NULL); mem 61 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x3456) == NULL); mem 62 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x23456) == NULL); mem 64 maint/gnulib/tests/unistr/test-u8-strchr.c mem = (UNIT *) (page_boundary - 3 * sizeof (UNIT)); mem 65 maint/gnulib/tests/unistr/test-u8-strchr.c mem[0] = 0x50; mem 66 maint/gnulib/tests/unistr/test-u8-strchr.c mem[1] = 0x50; mem 67 maint/gnulib/tests/unistr/test-u8-strchr.c mem[2] = 0; mem 68 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x55) == NULL); mem 69 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x123) == NULL); mem 70 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x3456) == NULL); mem 71 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x23456) == NULL); mem 73 maint/gnulib/tests/unistr/test-u8-strchr.c mem = (UNIT *) (page_boundary - 3 * sizeof (UNIT)); mem 74 maint/gnulib/tests/unistr/test-u8-strchr.c mem[0] = 0xC4; mem[1] = 0xA0; /* U+0120 */ mem 75 maint/gnulib/tests/unistr/test-u8-strchr.c mem[2] = 0; mem 76 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x55) == NULL); mem 77 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x123) == NULL); mem 78 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x3456) == NULL); mem 79 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x23456) == NULL); mem 81 maint/gnulib/tests/unistr/test-u8-strchr.c mem = (UNIT *) (page_boundary - 3 * sizeof (UNIT)); mem 82 maint/gnulib/tests/unistr/test-u8-strchr.c mem[0] = 0xC5; mem[1] = 0xA3; /* U+0163 */ mem 83 maint/gnulib/tests/unistr/test-u8-strchr.c mem[2] = 0; mem 84 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x55) == NULL); mem 85 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x123) == NULL); mem 86 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x3456) == NULL); mem 87 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x23456) == NULL); mem 89 maint/gnulib/tests/unistr/test-u8-strchr.c mem = (UNIT *) (page_boundary - 4 * sizeof (UNIT)); mem 90 maint/gnulib/tests/unistr/test-u8-strchr.c mem[0] = 0x50; mem 91 maint/gnulib/tests/unistr/test-u8-strchr.c mem[1] = 0x50; mem 92 maint/gnulib/tests/unistr/test-u8-strchr.c mem[2] = 0x50; mem 93 maint/gnulib/tests/unistr/test-u8-strchr.c mem[3] = 0; mem 94 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x55) == NULL); mem 95 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x123) == NULL); mem 96 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x3456) == NULL); mem 97 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x23456) == NULL); mem 99 maint/gnulib/tests/unistr/test-u8-strchr.c mem = (UNIT *) (page_boundary - 4 * sizeof (UNIT)); mem 100 maint/gnulib/tests/unistr/test-u8-strchr.c mem[0] = 0x50; mem 101 maint/gnulib/tests/unistr/test-u8-strchr.c mem[1] = 0xC5; mem[2] = 0xA3; /* U+0163 */ mem 102 maint/gnulib/tests/unistr/test-u8-strchr.c mem[3] = 0; mem 103 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x55) == NULL); mem 104 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x123) == NULL); mem 105 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x3456) == NULL); mem 106 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x23456) == NULL); mem 107 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x163) == mem + 1); mem 109 maint/gnulib/tests/unistr/test-u8-strchr.c mem = (UNIT *) (page_boundary - 4 * sizeof (UNIT)); mem 110 maint/gnulib/tests/unistr/test-u8-strchr.c mem[0] = 0xE3; mem[1] = 0x91; mem[2] = 0x00; /* U+3450 */ mem 111 maint/gnulib/tests/unistr/test-u8-strchr.c mem[3] = 0; mem 112 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x55) == NULL); mem 113 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x123) == NULL); mem 114 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x3456) == NULL); mem 115 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x23456) == NULL); mem 117 maint/gnulib/tests/unistr/test-u8-strchr.c mem = (UNIT *) (page_boundary - 4 * sizeof (UNIT)); mem 118 maint/gnulib/tests/unistr/test-u8-strchr.c mem[0] = 0xE3; mem[1] = 0x92; mem[2] = 0x96; /* U+3496 */ mem 119 maint/gnulib/tests/unistr/test-u8-strchr.c mem[3] = 0; mem 120 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x55) == NULL); mem 121 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x123) == NULL); mem 122 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x3456) == NULL); mem 123 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x23456) == NULL); mem 125 maint/gnulib/tests/unistr/test-u8-strchr.c mem = (UNIT *) (page_boundary - 5 * sizeof (UNIT)); mem 126 maint/gnulib/tests/unistr/test-u8-strchr.c mem[0] = 0x50; mem 127 maint/gnulib/tests/unistr/test-u8-strchr.c mem[1] = 0x50; mem 128 maint/gnulib/tests/unistr/test-u8-strchr.c mem[2] = 0x50; mem 129 maint/gnulib/tests/unistr/test-u8-strchr.c mem[3] = 0x50; mem 130 maint/gnulib/tests/unistr/test-u8-strchr.c mem[4] = 0; mem 131 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x55) == NULL); mem 132 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x123) == NULL); mem 133 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x3456) == NULL); mem 134 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x23456) == NULL); mem 136 maint/gnulib/tests/unistr/test-u8-strchr.c mem = (UNIT *) (page_boundary - 5 * sizeof (UNIT)); mem 137 maint/gnulib/tests/unistr/test-u8-strchr.c mem[0] = 0x50; mem 138 maint/gnulib/tests/unistr/test-u8-strchr.c mem[1] = 0xE3; mem[2] = 0x92; mem[3] = 0x96; /* U+3496 */ mem 139 maint/gnulib/tests/unistr/test-u8-strchr.c mem[4] = 0; mem 140 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x55) == NULL); mem 141 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x123) == NULL); mem 142 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x3456) == NULL); mem 143 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x23456) == NULL); mem 144 maint/gnulib/tests/unistr/test-u8-strchr.c ASSERT (u8_strchr (mem, 0x3496) == mem + 1);