projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added few more stubs so that control reaches to DestroyDevice().
[mesa.git]
/
src
/
util
/
u_debug.h
diff --git
a/src/util/u_debug.h
b/src/util/u_debug.h
index b3505caebfdf3f01975d4296713e9aef4d92f028..a9e44bf24e2073a15fb282eaa27454ed19acfcae 100644
(file)
--- a/
src/util/u_debug.h
+++ b/
src/util/u_debug.h
@@
-38,17
+38,17
@@
#ifndef U_DEBUG_H_
#define U_DEBUG_H_
#ifndef U_DEBUG_H_
#define U_DEBUG_H_
-
+#include <stdarg.h>
+#include <string.h>
#include "util/os_misc.h"
#include "util/os_misc.h"
+#include "util/detect_os.h"
+#include "util/macros.h"
-#if
defined(PIPE_OS_HAIKU)
+#if
DETECT_OS_HAIKU
/* Haiku provides debug_printf in libroot with OS.h */
#include <OS.h>
#endif
/* Haiku provides debug_printf in libroot with OS.h */
#include <OS.h>
#endif
-#include "pipe/p_defines.h"
-
-
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif
@@
-82,7
+82,7
@@
_debug_printf(const char *format, ...)
* - avoid outputing large strings (512 bytes is the current maximum length
* that is guaranteed to be printed in all platforms)
*/
* - avoid outputing large strings (512 bytes is the current maximum length
* that is guaranteed to be printed in all platforms)
*/
-#if !
defined(PIPE_OS_HAIKU)
+#if !
DETECT_OS_HAIKU
static inline void
debug_printf(const char *format, ...) _util_printf_format(1,2);
static inline void
debug_printf(const char *format, ...) _util_printf_format(1,2);
@@
-109,9
+109,9
@@
debug_printf(const char *format, ...)
*/
#define debug_printf_once(args) \
do { \
*/
#define debug_printf_once(args) \
do { \
- static bool
ean once = TRUE
; \
+ static bool
once = true
; \
if (once) { \
if (once) { \
- once =
FALSE
; \
+ once =
false
; \
debug_printf args; \
} \
} while (0)
debug_printf args; \
} \
} while (0)
@@
-235,11
+235,11
@@
void _debug_assert_fail(const char *expr,
#ifdef DEBUG
#define debug_warn_once(__msg) \
do { \
#ifdef DEBUG
#define debug_warn_once(__msg) \
do { \
- static bool warned =
FALSE
; \
+ static bool warned =
false
; \
if (!warned) { \
_debug_printf("%s:%u:%s: one time warning: %s\n", \
__FILE__, __LINE__, __FUNCTION__, __msg); \
if (!warned) { \
_debug_printf("%s:%u:%s: one time warning: %s\n", \
__FILE__, __LINE__, __FUNCTION__, __msg); \
- warned =
TRUE
; \
+ warned =
true
; \
} \
} while (0)
#else
} \
} while (0)
#else
@@
-389,8
+389,8
@@
void debug_funclog_enter_exit(const char* f, const int line, const char* file);
const char *
debug_get_option(const char *name, const char *dfault);
const char *
debug_get_option(const char *name, const char *dfault);
-bool
ean
-debug_get_bool_option(const char *name, bool
ean
dfault);
+bool
+debug_get_bool_option(const char *name, bool dfault);
long
debug_get_num_option(const char *name, long dfault);
long
debug_get_num_option(const char *name, long dfault);
@@
-404,23
+404,23
@@
debug_get_flags_option(const char *name,
static const char * \
debug_get_option_ ## suffix (void) \
{ \
static const char * \
debug_get_option_ ## suffix (void) \
{ \
- static bool
ean first = TRUE
; \
+ static bool
first = true
; \
static const char * value; \
if (first) { \
static const char * value; \
if (first) { \
- first =
FALSE
; \
+ first =
false
; \
value = debug_get_option(name, dfault); \
} \
return value; \
}
#define DEBUG_GET_ONCE_BOOL_OPTION(sufix, name, dfault) \
value = debug_get_option(name, dfault); \
} \
return value; \
}
#define DEBUG_GET_ONCE_BOOL_OPTION(sufix, name, dfault) \
-static bool
ean
\
+static bool \
debug_get_option_ ## sufix (void) \
{ \
debug_get_option_ ## sufix (void) \
{ \
- static bool
ean first = TRUE
; \
- static bool
ean
value; \
+ static bool
first = true
; \
+ static bool value; \
if (first) { \
if (first) { \
- first =
FALSE
; \
+ first =
false
; \
value = debug_get_bool_option(name, dfault); \
} \
return value; \
value = debug_get_bool_option(name, dfault); \
} \
return value; \
@@
-430,10
+430,10
@@
debug_get_option_ ## sufix (void) \
static long \
debug_get_option_ ## sufix (void) \
{ \
static long \
debug_get_option_ ## sufix (void) \
{ \
- static bool
ean first = TRUE
; \
+ static bool
first = true
; \
static long value; \
if (first) { \
static long value; \
if (first) { \
- first =
FALSE
; \
+ first =
false
; \
value = debug_get_num_option(name, dfault); \
} \
return value; \
value = debug_get_num_option(name, dfault); \
} \
return value; \
@@
-443,10
+443,10
@@
debug_get_option_ ## sufix (void) \
static unsigned long \
debug_get_option_ ## sufix (void) \
{ \
static unsigned long \
debug_get_option_ ## sufix (void) \
{ \
- static bool
ean first = TRUE
; \
+ static bool
first = true
; \
static unsigned long value; \
if (first) { \
static unsigned long value; \
if (first) { \
- first =
FALSE
; \
+ first =
false
; \
value = debug_get_flags_option(name, flags, dfault); \
} \
return value; \
value = debug_get_flags_option(name, flags, dfault); \
} \
return value; \