Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ralloc: Use _vscprintf on MinGW. | José Fonseca | 2011-11-01 | 1 | -1/+7 |
| | | | | | | | | MinGW uses MSVC's runtime DLLs for most of C runtime's functions, and there has same semantics for vsnprintf. Not sure how this worked until now -- maybe one of the internal vsnprintf implementations was taking precedence. | ||||
* | ralloc: Move declaration before code. | Vinson Lee | 2011-10-25 | 1 | -1/+2 |
| | | | | Fixes build error with MSVC. | ||||
* | ralloc: Add new [v]asprintf_rewrite_tail functions. | Kenneth Graunke | 2011-10-25 | 1 | -4/+23 |
| | | | | | | | | | | | | | | | | | | This can be useful if you want to create a bunch of temporary strings with a common prefix. For example, when iterating over uniform structure fields, one might want to create temporary strings like "pallete.primary", "palette.outline", and "pallette.shadow". This could be done by overwriting the '.' with a null-byte and calling ralloc_asprintf_append, but that incurs the cost of strlen("pallete") every time...when this is already known. These new functions allow you rewrite the tail of the string, given a starting index. If the starting index is the length of the string, this is equivalent to appending. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]> | ||||
* | ralloc: include limits.h for SIZE_MAX on Android | Chia-I Wu | 2011-08-21 | 1 | -0/+5 |
| | | | | | | | Android does not define SIZE_MAX in stdint.h. We have to include limits.h for it. Reviewed-by: Chad Versace <[email protected]> | ||||
* | ralloc: Add missing va_end following va_copy. | Vinson Lee | 2011-02-03 | 1 | -0/+2 |
| | |||||
* | glsl: Fix printf_length() on MSVC. | José Fonseca | 2011-02-01 | 1 | -0/+8 |
| | |||||
* | glsl: Define va_copy on MSVC. | José Fonseca | 2011-01-31 | 1 | -0/+8 |
| | |||||
* | ralloc: a new MIT-licensed recursive memory allocator. | Kenneth Graunke | 2011-01-31 | 1 | -34/+272 |
| | |||||
* | ralloc: Add a fake implementation of ralloc based on talloc. | Kenneth Graunke | 2011-01-31 | 1 | -0/+202 |