Home | History | Annotate | Download | only in glsl

Lines Matching refs:ctx

60  * \def ralloc(ctx, type)
65 * ((type *) ralloc_size(ctx, sizeof(type))
68 #define ralloc(ctx, type) ((type *) ralloc_size(ctx, sizeof(type)))
71 * \def rzalloc(ctx, type)
76 * ((type *) rzalloc_size(ctx, sizeof(type))
79 #define rzalloc(ctx, type) ((type *) rzalloc_size(ctx, sizeof(type)))
89 * ((type *) ralloc_size(ctx, 0)
92 void *ralloc_context(const void *ctx);
101 void *ralloc_size(const void *ctx, size_t size);
108 void *rzalloc_size(const void *ctx, size_t size);
115 * calling ralloc_size(ctx, 0). This is different from talloc.
117 * \param ctx The context to use for new allocation. If \p ptr != NULL,
122 void *reralloc_size(const void *ctx, void *ptr, size_t size);
127 * \def ralloc_array(ctx, type, count)
137 * ((type *) ralloc_array_size(ctx, sizeof(type), count)
140 #define ralloc_array(ctx, type, count) \
141 ((type *) ralloc_array_size(ctx, sizeof(type), count))
144 * \def rzalloc_array(ctx, type, count)
154 * ((type *) rzalloc_array_size(ctx, sizeof(type), count)
157 #define rzalloc_array(ctx, type, count) \
158 ((type *) rzalloc_array_size(ctx, sizeof(type), count))
161 * \def reralloc(ctx, ptr, type, count)
166 * calling ralloc_size(ctx, 0). This is different from talloc.
171 * \param ctx The context to use for new allocation. If \p ptr != NULL,
177 #define reralloc(ctx, ptr, type, count) \
178 ((type *) reralloc_array_size(ctx, ptr, sizeof(type), count))
188 void *ralloc_array_size(const void *ctx, size_t size, unsigned count);
198 void *rzalloc_array_size(const void *ctx, size_t size, unsigned count);
205 * calling ralloc_size(ctx, 0). This is different from talloc.
210 * \param ctx The context to use for new allocation. If \p ptr != NULL,
218 void *reralloc_array_size(const void *ctx, void *ptr, size_t size,
260 char *ralloc_strdup(const void *ctx, const char *str);
268 char *ralloc_strndup(const void *ctx, const char *str, size_t n);
300 * This is analogous to \c sprintf, but allocates enough space (using \p ctx
305 char *ralloc_asprintf (const void *ctx, const char *fmt, ...) PRINTFLIKE(2, 3);
310 * This is analogous to \c vsprintf, but allocates enough space (using \p ctx
315 char *ralloc_vasprintf(const void *ctx, const char *fmt, va_list args);