Lines Matching refs:size

62 **  The behaviour of malloc with size==0 is platform dependent (it
66 ** two choices: "size = 1" or "return NULL". We use the former in the
70 ** use size.
73 #define MALLOC_SIZE(size) ((size) == 0 ? 1 : (size))
79 ** size -- size of requested memory.
94 sm_malloc_x(size)
95 size_t size;
100 ptr = malloc(MALLOC_SIZE(size));
113 ** size -- size of requested memory.
120 sm_malloc(size)
121 size_t size;
126 ptr = malloc(MALLOC_SIZE(size));
136 ** size -- size of requested memory.
143 sm_realloc(ptr, size)
145 size_t size;
150 newptr = realloc(ptr, MALLOC_SIZE(size));
160 ** size -- size of requested memory.
170 sm_realloc_x(ptr, size)
172 size_t size;
177 newptr = realloc(ptr, MALLOC_SIZE(size));
349 ** size -- size of requested memory.
359 sm_malloc_tagged(size, tag, num, group)
360 size_t size;
370 ptr = malloc(MALLOC_SIZE(size));
378 && sm_debug_level(&SmHeapLimit) < SmHeapTotal + size)
381 ptr = malloc(MALLOC_SIZE(size));
383 if (ptr != NULL && !sm_heap_register(ptr, size, tag, num, group))
390 SmHeapTotal += size;
400 ** size -- size of requested memory.
413 sm_malloc_tagged_x(size, tag, num, group)
414 size_t size;
424 ptr = malloc(MALLOC_SIZE(size));
433 && sm_debug_level(&SmHeapLimit) < SmHeapTotal + size)
438 ptr = malloc(MALLOC_SIZE(size));
440 if (ptr != NULL && !sm_heap_register(ptr, size, tag, num, group))
449 SmHeapTotal += size;
460 ** size -- size of requested memory.
470 sm_heap_register(ptr, size, tag, num, group)
472 size_t size;
503 hi->hi_size = size;
516 ** size -- size of requested memory.
523 sm_realloc(ptr, size)
525 size_t size;
533 newptr = realloc(ptr, MALLOC_SIZE(size));
539 return sm_malloc_tagged(size, "realloc", 0, SmHeapGroup);
550 < SmHeapTotal - hi->hi_size + size)
555 newptr = realloc(ptr, MALLOC_SIZE(size));
559 SmHeapTotal = SmHeapTotal - hi->hi_size + size;
564 hi->hi_size = size;
581 ** size -- size of requested memory.
591 sm_realloc_x(ptr, size)
593 size_t size;
601 newptr = realloc(ptr, MALLOC_SIZE(size));
609 return sm_malloc_tagged_x(size, "realloc", 0, SmHeapGroup);
619 < SmHeapTotal - hi->hi_size + size)
624 newptr = realloc(ptr, MALLOC_SIZE(size));
628 SmHeapTotal = SmHeapTotal - hi->hi_size + size;
633 hi->hi_size = size;