emscripten: Changed internal functions to be static.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 12 May 2017 23:01:17 +0200
changeset 11002ba0ce5b958d2
parent 11001 a194d919972c
child 11003 ced20e690a19
emscripten: Changed internal functions to be static.
src/joystick/emscripten/SDL_sysjoystick.c
src/video/emscripten/SDL_emscriptenevents.c
     1.1 --- a/src/joystick/emscripten/SDL_sysjoystick.c	Fri May 12 23:01:04 2017 +0200
     1.2 +++ b/src/joystick/emscripten/SDL_sysjoystick.c	Fri May 12 23:01:17 2017 +0200
     1.3 @@ -42,7 +42,7 @@
     1.4  static int numjoysticks = 0;
     1.5  static int instance_counter = 0;
     1.6  
     1.7 -EM_BOOL
     1.8 +static EM_BOOL
     1.9  Emscripten_JoyStickConnected(int eventType, const EmscriptenGamepadEvent *gamepadEvent, void *userData)
    1.10  {
    1.11      int i;
    1.12 @@ -111,7 +111,7 @@
    1.13      return 1;
    1.14  }
    1.15  
    1.16 -EM_BOOL
    1.17 +static EM_BOOL
    1.18  Emscripten_JoyStickDisconnected(int eventType, const EmscriptenGamepadEvent *gamepadEvent, void *userData)
    1.19  {
    1.20      SDL_joylist_item *item = SDL_joylist;
     2.1 --- a/src/video/emscripten/SDL_emscriptenevents.c	Fri May 12 23:01:04 2017 +0200
     2.2 +++ b/src/video/emscripten/SDL_emscriptenevents.c	Fri May 12 23:01:17 2017 +0200
     2.3 @@ -270,7 +270,7 @@
     2.4  
     2.5  
     2.6  /* "borrowed" from SDL_windowsevents.c */
     2.7 -int
     2.8 +static int
     2.9  Emscripten_ConvertUTF32toUTF8(Uint32 codepoint, char * text)
    2.10  {
    2.11      if (codepoint <= 0x7F) {
    2.12 @@ -307,7 +307,7 @@
    2.13  }
    2.14  
    2.15  
    2.16 -EM_BOOL
    2.17 +static EM_BOOL
    2.18  Emscripten_HandleMouseMove(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
    2.19  {
    2.20      SDL_WindowData *window_data = userData;
    2.21 @@ -338,7 +338,7 @@
    2.22      return 0;
    2.23  }
    2.24  
    2.25 -EM_BOOL
    2.26 +static EM_BOOL
    2.27  Emscripten_HandleMouseButton(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
    2.28  {
    2.29      SDL_WindowData *window_data = userData;
    2.30 @@ -374,7 +374,7 @@
    2.31      return SDL_GetEventState(sdl_event_type) == SDL_ENABLE;
    2.32  }
    2.33  
    2.34 -EM_BOOL
    2.35 +static EM_BOOL
    2.36  Emscripten_HandleMouseFocus(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
    2.37  {
    2.38      SDL_WindowData *window_data = userData;
    2.39 @@ -396,7 +396,7 @@
    2.40      return SDL_GetEventState(SDL_WINDOWEVENT) == SDL_ENABLE;
    2.41  }
    2.42  
    2.43 -EM_BOOL
    2.44 +static EM_BOOL
    2.45  Emscripten_HandleWheel(int eventType, const EmscriptenWheelEvent *wheelEvent, void *userData)
    2.46  {
    2.47      SDL_WindowData *window_data = userData;
    2.48 @@ -404,7 +404,7 @@
    2.49      return SDL_GetEventState(SDL_MOUSEWHEEL) == SDL_ENABLE;
    2.50  }
    2.51  
    2.52 -EM_BOOL
    2.53 +static EM_BOOL
    2.54  Emscripten_HandleFocus(int eventType, const EmscriptenFocusEvent *wheelEvent, void *userData)
    2.55  {
    2.56      SDL_WindowData *window_data = userData;
    2.57 @@ -419,7 +419,7 @@
    2.58      return SDL_GetEventState(SDL_WINDOWEVENT) == SDL_ENABLE;
    2.59  }
    2.60  
    2.61 -EM_BOOL
    2.62 +static EM_BOOL
    2.63  Emscripten_HandleTouch(int eventType, const EmscriptenTouchEvent *touchEvent, void *userData)
    2.64  {
    2.65      SDL_WindowData *window_data = userData;
    2.66 @@ -482,7 +482,7 @@
    2.67      return preventDefault;
    2.68  }
    2.69  
    2.70 -EM_BOOL
    2.71 +static EM_BOOL
    2.72  Emscripten_HandleKey(int eventType, const EmscriptenKeyboardEvent *keyEvent, void *userData)
    2.73  {
    2.74      Uint32 scancode;
    2.75 @@ -524,7 +524,7 @@
    2.76      return prevent_default;
    2.77  }
    2.78  
    2.79 -EM_BOOL
    2.80 +static EM_BOOL
    2.81  Emscripten_HandleKeyPress(int eventType, const EmscriptenKeyboardEvent *keyEvent, void *userData)
    2.82  {
    2.83      char text[5];
    2.84 @@ -534,7 +534,7 @@
    2.85      return SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE;
    2.86  }
    2.87  
    2.88 -EM_BOOL
    2.89 +static EM_BOOL
    2.90  Emscripten_HandleFullscreenChange(int eventType, const EmscriptenFullscreenChangeEvent *fullscreenChangeEvent, void *userData)
    2.91  {
    2.92      SDL_WindowData *window_data = userData;
    2.93 @@ -555,7 +555,7 @@
    2.94      return 0;
    2.95  }
    2.96  
    2.97 -EM_BOOL
    2.98 +static EM_BOOL
    2.99  Emscripten_HandleResize(int eventType, const EmscriptenUiEvent *uiEvent, void *userData)
   2.100  {
   2.101      SDL_WindowData *window_data = userData;
   2.102 @@ -607,7 +607,7 @@
   2.103      return 0;
   2.104  }
   2.105  
   2.106 -EM_BOOL
   2.107 +static EM_BOOL
   2.108  Emscripten_HandleVisibilityChange(int eventType, const EmscriptenVisibilityChangeEvent *visEvent, void *userData)
   2.109  {
   2.110      SDL_WindowData *window_data = userData;