Module: Mesa Branch: thalloc Commit: c9f1201fa3aadcff0a37d16941d7808b94799efd URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9f1201fa3aadcff0a37d16941d7808b94799efd
Author: Jakob Bornecrantz <[email protected]> Date: Wed Jan 19 02:28:19 2011 +0100 thalloc: Add missing function needed for glsl2 program Signed-off-by: Jakob Bornecrantz <[email protected]> --- src/thalloc/talloc.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/thalloc/talloc.h b/src/thalloc/talloc.h index 8235813..b0b111e 100644 --- a/src/thalloc/talloc.h +++ b/src/thalloc/talloc.h @@ -73,6 +73,7 @@ talloc_size(const void *ctx, size_t size) { #define talloc(_ctx, _type) (_type *)talloc_size(_ctx, sizeof(_type)) #define talloc_array_size(_ctx, _size, _count) talloc_size(_ctx, _size * _count) #define talloc_array(_ctx, _type, _count) (_type *)talloc_size(_ctx, sizeof(_type) * _count) +#define talloc_realloc(_ctx, _ptr, _type, _count) (_type *)talloc_realloc_size(_ctx, _ptr, sizeof(_type) * _count) static inline void * talloc_steal(const void *new_ctx, const void *ptr) _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
