Remove redundant #include path component.
Using the parent '../' path component in #include statements makes the codebase more rigid and is redundant due to proper -I use. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
committed by
Bryce Harrington
parent
b7e07846bd
commit
4678bab13c
@@ -28,7 +28,7 @@
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../shared/os-compatibility.h"
|
||||
#include "shared/os-compatibility.h"
|
||||
#include "weston-test-client-helper.h"
|
||||
|
||||
/* tests, that attempt to crash the compositor on purpose */
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include <GLES2/gl2.h>
|
||||
|
||||
#include "weston-test-client-helper.h"
|
||||
#include "../shared/platform.h"
|
||||
#include "shared/platform.h"
|
||||
|
||||
#define fail(msg) { fprintf(stderr, "%s failed\n", msg); return -1; }
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "../src/compositor.h"
|
||||
#include "../ivi-shell/ivi-layout-export.h"
|
||||
#include "src/compositor.h"
|
||||
#include "ivi-shell/ivi-layout-export.h"
|
||||
|
||||
struct test_context {
|
||||
struct weston_compositor *compositor;
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../src/compositor.h"
|
||||
#include "src/compositor.h"
|
||||
#include "weston-test-server-protocol.h"
|
||||
#include "ivi-test.h"
|
||||
#include "../ivi-shell/ivi-layout-export.h"
|
||||
#include "ivi-shell/ivi-layout-export.h"
|
||||
|
||||
struct test_context;
|
||||
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
#include <signal.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "../shared/matrix.h"
|
||||
#include "shared/matrix.h"
|
||||
|
||||
struct inverse_matrix {
|
||||
double LU[16]; /* column-major */
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "../src/compositor.h"
|
||||
#include "src/compositor.h"
|
||||
|
||||
static void
|
||||
surface_to_from_global(void *data)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "../src/compositor.h"
|
||||
#include "src/compositor.h"
|
||||
|
||||
static void
|
||||
surface_transform(void *data)
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "weston-test-runner.h"
|
||||
|
||||
#include "../src/vertex-clipping.h"
|
||||
#include "src/vertex-clipping.h"
|
||||
|
||||
#define BOUNDING_BOX_TOP_Y 100.0f
|
||||
#define BOUNDING_BOX_LEFT_X 50.0f
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include <errno.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#include "../shared/os-compatibility.h"
|
||||
#include "shared/os-compatibility.h"
|
||||
#include "weston-test-client-helper.h"
|
||||
|
||||
#define max(a, b) (((a) > (b)) ? (a) : (b))
|
||||
|
||||
+2
-2
@@ -31,13 +31,13 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../src/compositor.h"
|
||||
#include "src/compositor.h"
|
||||
#include "weston-test-server-protocol.h"
|
||||
|
||||
#ifdef ENABLE_EGL
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
#include "../src/weston-egl-ext.h"
|
||||
#include "src/weston-egl-ext.h"
|
||||
#endif /* ENABLE_EGL */
|
||||
|
||||
struct weston_test {
|
||||
|
||||
Reference in New Issue
Block a user