diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/imports.c | 24 | ||||
-rw-r--r-- | src/util/imports.h | 24 |
2 files changed, 1 insertions, 47 deletions
diff --git a/src/util/imports.c b/src/util/imports.c index 2744ee988d3..776e86efb7a 100644 --- a/src/util/imports.c +++ b/src/util/imports.c @@ -1,7 +1,7 @@ /** * \file imports.c * Standard C library function wrappers. - * + * * Imports are services which the device driver or window system or * operating system provides to the core renderer. The core renderer (Mesa) * will call these functions in order to do memory allocation, simple I/O, @@ -60,25 +60,3 @@ #elif defined(__IBMC__) || defined(__IBMCPP__) extern int vsnprintf(char *str, size_t count, const char *fmt, va_list arg); #endif - - -/** Needed due to #ifdef's, above. */ -int -_mesa_vsnprintf(char *str, size_t size, const char *fmt, va_list args) -{ - return vsnprintf( str, size, fmt, args); -} - -/** Wrapper around vsnprintf() */ -int -_mesa_snprintf( char *str, size_t size, const char *fmt, ... ) -{ - int r; - va_list args; - va_start( args, fmt ); - r = vsnprintf( str, size, fmt, args ); - va_end( args ); - return r; -} - - diff --git a/src/util/imports.h b/src/util/imports.h index 4d7405dbf55..345e9114aa3 100644 --- a/src/util/imports.h +++ b/src/util/imports.h @@ -47,15 +47,6 @@ extern "C" { #endif -/* - * For GL_ARB_vertex_buffer_object we need to treat vertex array pointers - * as offsets into buffer stores. Since the vertex array pointer and - * buffer store pointer are both pointers and we need to add them, we use - * this macro. - * Both pointers/offsets are expressed in bytes. - */ -#define ADD_POINTERS(A, B) ( (uint8_t *) (A) + (uintptr_t) (B) ) - /** * Sometimes we treat floats as ints. On x86 systems, moving a float @@ -68,21 +59,6 @@ extern "C" { typedef union { float f; int i; unsigned u; } fi_type; - -/*@}*/ - - -/********************************************************************** - * Functions - */ - -extern int -_mesa_snprintf( char *str, size_t size, const char *fmt, ... ) PRINTFLIKE(3, 4); - -extern int -_mesa_vsnprintf(char *str, size_t size, const char *fmt, va_list arg); - - #ifdef __cplusplus } #endif |