From: Kai Wasserbäch Date: Sat, 27 Aug 2011 15:51:48 +0000 (+0200) Subject: util: Fix include style X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=137ba91aadd7a3a24c1a7d76dd8bd5f7aa477fd2;p=mesa.git util: Fix include style As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] Signed-off-by: Kai Wasserbäch Signed-off-by: Brian Paul --- diff --git a/src/gallium/auxiliary/util/u_debug_describe.c b/src/gallium/auxiliary/util/u_debug_describe.c index 7ed8ee608a8..3574accc004 100644 --- a/src/gallium/auxiliary/util/u_debug_describe.c +++ b/src/gallium/auxiliary/util/u_debug_describe.c @@ -24,10 +24,10 @@ * **************************************************************************/ -#include -#include -#include -#include +#include "pipe/p_state.h" +#include "util/u_format.h" +#include "util/u_debug_describe.h" +#include "util/u_string.h" void debug_describe_reference(char* buf, const struct pipe_reference*ptr) diff --git a/src/gallium/auxiliary/util/u_debug_refcnt.c b/src/gallium/auxiliary/util/u_debug_refcnt.c index 6f706a35fda..b3e38940850 100644 --- a/src/gallium/auxiliary/util/u_debug_refcnt.c +++ b/src/gallium/auxiliary/util/u_debug_refcnt.c @@ -29,14 +29,14 @@ /* see http://www.mozilla.org/performance/refcnt-balancer.html for what do with the output * on Linux, use tools/addr2line.sh to postprocess it before anything else **/ -#include -#include -#include -#include -#include -#include -#include -#include +#include "util/u_debug.h" +#include "util/u_debug_refcnt.h" +#include "util/u_debug_stack.h" +#include "util/u_debug_symbol.h" +#include "util/u_string.h" +#include "util/u_hash_table.h" +#include "os/os_thread.h" +#include "os/os_stream.h" int debug_refcnt_state; diff --git a/src/gallium/auxiliary/util/u_debug_refcnt.h b/src/gallium/auxiliary/util/u_debug_refcnt.h index bea2d1c478a..c02fba27ddf 100644 --- a/src/gallium/auxiliary/util/u_debug_refcnt.h +++ b/src/gallium/auxiliary/util/u_debug_refcnt.h @@ -27,8 +27,8 @@ #ifndef U_DEBUG_REFCNT_H_ #define U_DEBUG_REFCNT_H_ -#include -#include +#include "pipe/p_config.h" +#include "pipe/p_state.h" #ifdef __cplusplus extern "C" { diff --git a/src/gallium/auxiliary/util/u_video.h b/src/gallium/auxiliary/util/u_video.h index 6b67881e648..be3fac2d010 100644 --- a/src/gallium/auxiliary/util/u_video.h +++ b/src/gallium/auxiliary/util/u_video.h @@ -32,12 +32,12 @@ extern "C" { #endif -#include -#include +#include "pipe/p_defines.h" +#include "pipe/p_video_enums.h" /* u_reduce_video_profile() needs these */ -#include -#include +#include "pipe/p_compiler.h" +#include "util/u_debug.h" static INLINE enum pipe_video_codec u_reduce_video_profile(enum pipe_video_profile profile)