Lines Matching refs:ctx
99 ralloc_context(const void *ctx)
101 return ralloc_size(ctx, 0);
105 ralloc_size(const void *ctx, size_t size)
133 parent = ctx != NULL ? get_header(ctx) : NULL;
145 rzalloc_size(const void *ctx, size_t size)
147 void *ptr = ralloc_size(ctx, size);
188 reralloc_size(const void *ctx, void *ptr, size_t size)
191 return ralloc_size(ctx, size);
193 assert(ralloc_parent(ptr) == ctx);
198 rerzalloc_size(const void *ctx, void *ptr, size_t old_size, size_t new_size)
201 return rzalloc_size(ctx, new_size);
203 assert(ralloc_parent(ptr) == ctx);
213 ralloc_array_size(const void *ctx, size_t size, unsigned count)
218 return ralloc_size(ctx, size * count);
222 rzalloc_array_size(const void *ctx, size_t size, unsigned count)
227 return rzalloc_size(ctx, size * count);
231 reralloc_array_size(const void *ctx, void *ptr, size_t size, unsigned count)
236 return reralloc_size(ctx, ptr, size * count);
240 rerzalloc_array_size(const void *ctx, void *ptr, size_t size,
246 return rerzalloc_size(ctx, ptr, size * old_count, size * new_count);
364 ralloc_strdup(const void *ctx, const char *str)
373 ptr = ralloc_array(ctx, char, n + 1);
380 ralloc_strndup(const void *ctx, const char *str, size_t max)
389 ptr = ralloc_array(ctx, char, n + 1);
448 ralloc_asprintf(const void *ctx, const char *fmt, ...)
453 ptr = ralloc_vasprintf(ctx, fmt, args);
459 ralloc_vasprintf(const void *ctx, const char *fmt, va_list args)
463 char *ptr = ralloc_size(ctx, size);