Removed redundant include statements from test programs.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 18 Feb 2015 21:31:21 +0100
changeset 9356e87d6e1e812a
parent 9355 0d1e81f10b7e
child 9357 620c3c2fb9b9
Removed redundant include statements from test programs.

The needed header files are already included with SDL.h. Still including them in
the test programs is confusing because it somehow suggests they would be needed.
test/loopwave.c
test/testatomic.c
test/testerror.c
test/testfile.c
test/testhaptic.c
test/testhotplug.c
test/testlock.c
test/testmessage.c
test/testplatform.c
test/testrumble.c
test/testsem.c
test/testthread.c
test/torturethread.c
     1.1 --- a/test/loopwave.c	Tue Feb 17 23:00:46 2015 -0500
     1.2 +++ b/test/loopwave.c	Wed Feb 18 21:31:21 2015 +0100
     1.3 @@ -29,7 +29,6 @@
     1.4  #endif
     1.5  
     1.6  #include "SDL.h"
     1.7 -#include "SDL_audio.h"
     1.8  
     1.9  struct
    1.10  {
     2.1 --- a/test/testatomic.c	Tue Feb 17 23:00:46 2015 -0500
     2.2 +++ b/test/testatomic.c	Wed Feb 18 21:31:21 2015 +0100
     2.3 @@ -12,9 +12,6 @@
     2.4  #include <stdio.h>
     2.5  
     2.6  #include "SDL.h"
     2.7 -#include "SDL_atomic.h"
     2.8 -#include "SDL_assert.h"
     2.9 -#include "SDL_cpuinfo.h"
    2.10  
    2.11  /*
    2.12    Absolutely basic tests just to see if we get the expected value
     3.1 --- a/test/testerror.c	Tue Feb 17 23:00:46 2015 -0500
     3.2 +++ b/test/testerror.c	Wed Feb 18 21:31:21 2015 +0100
     3.3 @@ -17,7 +17,6 @@
     3.4  #include <signal.h>
     3.5  
     3.6  #include "SDL.h"
     3.7 -#include "SDL_thread.h"
     3.8  
     3.9  static int alive = 0;
    3.10  
     4.1 --- a/test/testfile.c	Tue Feb 17 23:00:46 2015 -0500
     4.2 +++ b/test/testfile.c	Wed Feb 18 21:31:21 2015 +0100
     4.3 @@ -22,7 +22,6 @@
     4.4  #endif
     4.5  
     4.6  #include "SDL.h"
     4.7 -#include "SDL_endian.h"
     4.8  
     4.9  
    4.10  #include <stdio.h>
     5.1 --- a/test/testhaptic.c	Tue Feb 17 23:00:46 2015 -0500
     5.2 +++ b/test/testhaptic.c	Wed Feb 18 21:31:21 2015 +0100
     5.3 @@ -22,8 +22,6 @@
     5.4  
     5.5  #ifndef SDL_HAPTIC_DISABLED
     5.6  
     5.7 -#include "SDL_haptic.h"
     5.8 -
     5.9  static SDL_Haptic *haptic;
    5.10  
    5.11  
     6.1 --- a/test/testhotplug.c	Tue Feb 17 23:00:46 2015 -0500
     6.2 +++ b/test/testhotplug.c	Wed Feb 18 21:31:21 2015 +0100
     6.3 @@ -17,7 +17,6 @@
     6.4  #include <string.h>
     6.5  
     6.6  #include "SDL.h"
     6.7 -#include "SDL_haptic.h"
     6.8  
     6.9  #if !defined SDL_JOYSTICK_DISABLED && !defined SDL_HAPTIC_DISABLED
    6.10  
     7.1 --- a/test/testlock.c	Tue Feb 17 23:00:46 2015 -0500
     7.2 +++ b/test/testlock.c	Wed Feb 18 21:31:21 2015 +0100
     7.3 @@ -19,8 +19,6 @@
     7.4  #include <stdlib.h> /* for atexit() */
     7.5  
     7.6  #include "SDL.h"
     7.7 -#include "SDL_mutex.h"
     7.8 -#include "SDL_thread.h"
     7.9  
    7.10  static SDL_mutex *mutex = NULL;
    7.11  static SDL_threadID mainthread;
     8.1 --- a/test/testmessage.c	Tue Feb 17 23:00:46 2015 -0500
     8.2 +++ b/test/testmessage.c	Wed Feb 18 21:31:21 2015 +0100
     8.3 @@ -17,7 +17,6 @@
     8.4  #include <signal.h>
     8.5  
     8.6  #include "SDL.h"
     8.7 -#include "SDL_thread.h"
     8.8  
     8.9  /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
    8.10  static void
     9.1 --- a/test/testplatform.c	Tue Feb 17 23:00:46 2015 -0500
     9.2 +++ b/test/testplatform.c	Wed Feb 18 21:31:21 2015 +0100
     9.3 @@ -13,9 +13,6 @@
     9.4  #include <stdio.h>
     9.5  
     9.6  #include "SDL.h"
     9.7 -#include "SDL_endian.h"
     9.8 -#include "SDL_cpuinfo.h"
     9.9 -#include "SDL_assert.h"
    9.10  
    9.11  /*
    9.12   * Watcom C flags these as Warning 201: "Unreachable code" if you just
    10.1 --- a/test/testrumble.c	Tue Feb 17 23:00:46 2015 -0500
    10.2 +++ b/test/testrumble.c	Wed Feb 18 21:31:21 2015 +0100
    10.3 @@ -33,8 +33,6 @@
    10.4  
    10.5  #ifndef SDL_HAPTIC_DISABLED
    10.6  
    10.7 -#include "SDL_haptic.h"
    10.8 -
    10.9  static SDL_Haptic *haptic;
   10.10  
   10.11  
    11.1 --- a/test/testsem.c	Tue Feb 17 23:00:46 2015 -0500
    11.2 +++ b/test/testsem.c	Wed Feb 18 21:31:21 2015 +0100
    11.3 @@ -17,7 +17,6 @@
    11.4  #include <signal.h>
    11.5  
    11.6  #include "SDL.h"
    11.7 -#include "SDL_thread.h"
    11.8  
    11.9  #define NUM_THREADS 10
   11.10  
    12.1 --- a/test/testthread.c	Tue Feb 17 23:00:46 2015 -0500
    12.2 +++ b/test/testthread.c	Wed Feb 18 21:31:21 2015 +0100
    12.3 @@ -17,7 +17,6 @@
    12.4  #include <signal.h>
    12.5  
    12.6  #include "SDL.h"
    12.7 -#include "SDL_thread.h"
    12.8  
    12.9  static SDL_TLSID tls;
   12.10  static int alive = 0;
    13.1 --- a/test/torturethread.c	Tue Feb 17 23:00:46 2015 -0500
    13.2 +++ b/test/torturethread.c	Wed Feb 18 21:31:21 2015 +0100
    13.3 @@ -18,7 +18,6 @@
    13.4  #include <string.h>
    13.5  
    13.6  #include "SDL.h"
    13.7 -#include "SDL_thread.h"
    13.8  
    13.9  #define NUMTHREADS 10
   13.10