Readability: remove const-qualifation from function declaration
authorSylvain Becker <sylvain.becker@gmail.com>
Wed, 30 Oct 2019 15:43:49 +0100
changeset 132021254722e1722
parent 13201 c88f111dc41f
child 13203 fac2d8c66fa6
Readability: remove const-qualifation from function declaration
const-qualification of parameters only has an effect in function definitions
src/SDL.c
src/SDL_assert.c
src/dynapi/SDL_dynapi.c
     1.1 --- a/src/SDL.c	Wed Oct 30 15:36:17 2019 +0100
     1.2 +++ b/src/SDL.c	Wed Oct 30 15:43:49 2019 +0100
     1.3 @@ -56,7 +56,7 @@
     1.4  /* This is not declared in any header, although it is shared between some
     1.5      parts of SDL, because we don't want anything calling it without an
     1.6      extremely good reason. */
     1.7 -extern SDL_NORETURN void SDL_ExitProcess(const int exitcode);
     1.8 +extern SDL_NORETURN void SDL_ExitProcess(int exitcode);
     1.9  SDL_NORETURN void SDL_ExitProcess(const int exitcode)
    1.10  {
    1.11  #ifdef __WIN32__
     2.1 --- a/src/SDL_assert.c	Wed Oct 30 15:36:17 2019 +0100
     2.2 +++ b/src/SDL_assert.c	Wed Oct 30 15:43:49 2019 +0100
     2.3 @@ -121,10 +121,10 @@
     2.4      parts of SDL, because we don't want anything calling it without an
     2.5      extremely good reason. */
     2.6  #if defined(__WATCOMC__)
     2.7 -extern void SDL_ExitProcess(const int exitcode);
     2.8 +extern void SDL_ExitProcess(int exitcode);
     2.9  #pragma aux SDL_ExitProcess aborts;
    2.10  #endif
    2.11 -extern SDL_NORETURN void SDL_ExitProcess(const int exitcode);
    2.12 +extern SDL_NORETURN void SDL_ExitProcess(int exitcode);
    2.13  
    2.14  
    2.15  #if defined(__WATCOMC__)
     3.1 --- a/src/dynapi/SDL_dynapi.c	Wed Oct 30 15:36:17 2019 +0100
     3.2 +++ b/src/dynapi/SDL_dynapi.c	Wed Oct 30 15:43:49 2019 +0100
     3.3 @@ -280,10 +280,10 @@
     3.4      parts of SDL, because we don't want anything calling it without an
     3.5      extremely good reason. */
     3.6  #if defined(__WATCOMC__)
     3.7 -void SDL_ExitProcess(const int exitcode);
     3.8 +void SDL_ExitProcess(int exitcode);
     3.9  #pragma aux SDL_ExitProcess aborts;
    3.10  #endif
    3.11 -SDL_NORETURN void SDL_ExitProcess(const int exitcode);
    3.12 +SDL_NORETURN void SDL_ExitProcess(int exitcode);
    3.13  
    3.14  
    3.15  static void