Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util: Define strchrnul on macOS. | Vinson Lee | 2019-08-31 | 1 | -1/+1 |
| | | | | | | | | | | | strchrnul is not available on macOS. pipe_loader.c:141:14: error: implicit declaration of function 'strchrnul' is invalid in C99 [-Werror,-Wimplicit-function-declaration] next = strchrnul(library_paths, ':'); ^ Signed-off-by: Vinson Lee <[email protected]> Acked-by: Eric Engestrom <[email protected]> | ||||
* | util: Prevent strcasecmp macro redefinion. | Jose Fonseca | 2019-08-28 | 1 | -0/+3 |
| | | | | | | | | MinGW headers already define it. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]> Acked-by: Eric Engestrom <[email protected]> | ||||
* | util: fix asprintf() fallback | Eric Engestrom | 2019-07-23 | 1 | -6/+5 |
| | | | | | | Fixes: 9607d499dcdd09160b13 ("util: add asprintf() wrapper for MSVC") Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> | ||||
* | util: add asprintf() wrapper for MSVC | Eric Engestrom | 2019-07-23 | 1 | -0/+12 |
| | | | | | | Fixes: 856e84083eee9b22408a ("mesa/st: add sampler uniforms") Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: drop strncat(), strcmp(), strncmp(), snprintf() & vsnprintf() MSVC ↵ | Eric Engestrom | 2019-07-19 | 1 | -81/+0 |
| | | | | | | | | | | | | | | | fallbacks It would seem MSVC>=2015 is now C99-compliant wrt these functions: strncat: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strncat-strncat-l-wcsncat-wcsncat-l-mbsncat-mbsncat-l?view=vs-2017 strcmp: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strcmp-wcscmp-mbscmp?view=vs-2017 strncmp: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strncmp-wcsncmp-mbsncmp-mbsncmp-l?view=vs-2017 snprintf: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/snprintf-snprintf-snprintf-l-snwprintf-snwprintf-l?view=vs-2017 vsnprintf: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/vsnprintf-vsnprintf-vsnprintf-l-vsnwprintf-vsnwprintf-l?view=vs-2017 Suggested-by: Emil Velikov <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: use standard name for vsnprintf() | Eric Engestrom | 2019-07-19 | 1 | -8/+5 |
| | | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: use standard name for snprintf() | Eric Engestrom | 2019-07-19 | 1 | -1/+1 |
| | | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: use standard name for vasprintf() | Eric Engestrom | 2019-07-19 | 1 | -1/+1 |
| | | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: use standard name for sprintf() | Eric Engestrom | 2019-07-19 | 1 | -1/+1 |
| | | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: use standard name for strcmp() | Eric Engestrom | 2019-07-19 | 1 | -1/+1 |
| | | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: use standard name for strcasecmp() | Eric Engestrom | 2019-07-19 | 1 | -2/+1 |
| | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: use standard name for strncmp() | Eric Engestrom | 2019-07-19 | 1 | -1/+1 |
| | | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: use standard name for strncat() | Eric Engestrom | 2019-07-19 | 1 | -1/+1 |
| | | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: use standard name for strdup() | Eric Engestrom | 2019-07-19 | 1 | -2/+1 |
| | | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: use standard name for strchrnul() | Eric Engestrom | 2019-07-19 | 1 | -5/+2 |
| | | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: drop unused vsprintf() wrapper | Eric Engestrom | 2019-07-19 | 1 | -7/+0 |
| | | | | | | Suggested-by: Emil Velikov <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: drop unused strchr() wrapper | Eric Engestrom | 2019-07-19 | 1 | -9/+0 |
| | | | | | | Suggested-by: Emil Velikov <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | util: drop unused strstr() wrapper | Eric Engestrom | 2019-07-19 | 1 | -14/+0 |
| | | | | | | Suggested-by: Emil Velikov <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> | ||||
* | mesa/util: add missing va_end() after va_copy() | Andrii Simiklit | 2018-09-06 | 1 | -0/+1 |
| | | | | | | | | | | | MSDN: "va_end must be called on each argument list that's initialized with va_start or va_copy before the function returns." Reviewed-by: Eric Engestrom <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107810 Fixes: c6267ebd6c8a "gallium/util: Stop bundling our snprintf implementation." Signed-off-by: Andrii Simiklit <[email protected]> | ||||
* | mesa/util: don't ignore NULL returned from 'malloc' | Andrii Simiklit | 2018-09-06 | 1 | -1/+1 |
| | | | | | | | | | | We should exit from the function 'util_vasprintf' with error code -1 for case where 'malloc' returns NULL Reviewed-by: Eric Engestrom <[email protected]> Fixes: 864148d69e1e "util: add util_vasprintf() for Windows (v2)" Signed-off-by: Andrii Simiklit <[email protected]> | ||||
* | mesa/util: don't use the same 'va_list' instance twice | Andrii Simiklit | 2018-09-06 | 1 | -1/+1 |
| | | | | | | | | The first usage of the 'va_list' instance could change it. Reviewed-by: Eric Engestrom <[email protected]> Fixes: 864148d69e1e "util: add util_vasprintf() for Windows (v2)" Signed-off-by: Andrii Simiklit <[email protected]> | ||||
* | util: add util_strdup() wrapper macro | Brian Paul | 2017-10-23 | 1 | -0/+2 |
| | | | | | | To work around MSVC warning that strdup() is a deprecated POSIX function. Reviewed-by: Nicolai Hähnle <[email protected]> | ||||
* | util: include string.h in u_string.h | Brian Paul | 2017-10-03 | 1 | -0/+1 |
| | | | | | | | To fix MinGW compiler warning about missing strlen() prototype. Not sure how I missed this when fixing the malloc() / stdlib.h issue. Reviewed-by: Charmaine Lee <[email protected]> | ||||
* | util: include stdlib.h in u_string.h to silence MinGW warning | Brian Paul | 2017-10-03 | 1 | -0/+1 |
| | | | | | | Otherwise we don't get a prototype for malloc(). Reviewed-by: Eric Engestrom <[email protected]> | ||||
* | util: add util_vasprintf() for Windows (v2) | Brian Paul | 2017-09-28 | 1 | -0/+22 |
| | | | | | | | | We don't have vasprintf() on Windows so we need to implement it ourselves. v2: compute actual length of output string, per Nicolai Hähnle. Reviewed-by: Nicolai Hähnle <[email protected]> | ||||
* | gallium/util: move u_string.h to src/util/u_string.h | Timothy Arceri | 2017-03-12 | 1 | -0/+204 |
This will help us move u_queue.c here eventually and also provide string function wrappers for anyone wishing to port disk_cache.c to windows. Reviewed-by: Marek Olšák <[email protected]> |