src/video/x11/SDL_x11dyn.c
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/src/video/x11/SDL_x11dyn.c	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/src/video/x11/SDL_x11dyn.c	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -61,12 +61,12 @@
     1.4  };
     1.5  
     1.6  static void
     1.7 -X11_GetSym (const char *fnname, int *rc, void **fn)
     1.8 +X11_GetSym(const char *fnname, int *rc, void **fn)
     1.9  {
    1.10      int i;
    1.11 -    for (i = 0; i < SDL_TABLESIZE (x11libs); i++) {
    1.12 +    for (i = 0; i < SDL_TABLESIZE(x11libs); i++) {
    1.13          if (x11libs[i].lib != NULL) {
    1.14 -            *fn = SDL_LoadFunction (x11libs[i].lib, fnname);
    1.15 +            *fn = SDL_LoadFunction(x11libs[i].lib, fnname);
    1.16              if (*fn != NULL)
    1.17                  break;
    1.18          }
    1.19 @@ -74,10 +74,10 @@
    1.20  
    1.21  #if DEBUG_DYNAMIC_X11
    1.22      if (*fn != NULL)
    1.23 -        printf ("X11: Found '%s' in %s (%p)\n", fnname, x11libs[i].libname,
    1.24 -                *fn);
    1.25 +        printf("X11: Found '%s' in %s (%p)\n", fnname, x11libs[i].libname,
    1.26 +               *fn);
    1.27      else
    1.28 -        printf ("X11: Symbol '%s' NOT FOUND!\n", fnname);
    1.29 +        printf("X11: Symbol '%s' NOT FOUND!\n", fnname);
    1.30  #endif
    1.31  
    1.32      if (*fn == NULL)
    1.33 @@ -97,7 +97,7 @@
    1.34  
    1.35  /* Annoying varargs entry point... */
    1.36  #ifdef X_HAVE_UTF8_STRING
    1.37 -XIC (*pXCreateIC) (XIM,...) = NULL;
    1.38 +XIC(*pXCreateIC) (XIM,...) = NULL;
    1.39  #endif
    1.40  
    1.41  /* These SDL_X11_HAVE_* flags are here whether you have dynamic X11 or not. */
    1.42 @@ -111,7 +111,7 @@
    1.43  static int x11_load_refcount = 0;
    1.44  
    1.45  void
    1.46 -SDL_X11_UnloadSymbols (void)
    1.47 +SDL_X11_UnloadSymbols(void)
    1.48  {
    1.49  #ifdef SDL_VIDEO_DRIVER_X11_DYNAMIC
    1.50      /* Don't actually unload if more than one module is using the libs... */
    1.51 @@ -130,9 +130,9 @@
    1.52              pXCreateIC = NULL;
    1.53  #endif
    1.54  
    1.55 -            for (i = 0; i < SDL_TABLESIZE (x11libs); i++) {
    1.56 +            for (i = 0; i < SDL_TABLESIZE(x11libs); i++) {
    1.57                  if (x11libs[i].lib != NULL) {
    1.58 -                    SDL_UnloadObject (x11libs[i].lib);
    1.59 +                    SDL_UnloadObject(x11libs[i].lib);
    1.60                      x11libs[i].lib = NULL;
    1.61                  }
    1.62              }
    1.63 @@ -143,7 +143,7 @@
    1.64  
    1.65  /* returns non-zero if all needed symbols were loaded. */
    1.66  int
    1.67 -SDL_X11_LoadSymbols (void)
    1.68 +SDL_X11_LoadSymbols(void)
    1.69  {
    1.70      int rc = 1;                 /* always succeed if not using Dynamic X11 stuff. */
    1.71  
    1.72 @@ -152,9 +152,9 @@
    1.73      if (x11_load_refcount++ == 0) {
    1.74          int i;
    1.75          int *thismod = NULL;
    1.76 -        for (i = 0; i < SDL_TABLESIZE (x11libs); i++) {
    1.77 +        for (i = 0; i < SDL_TABLESIZE(x11libs); i++) {
    1.78              if (x11libs[i].libname != NULL) {
    1.79 -                x11libs[i].lib = SDL_LoadObject (x11libs[i].libname);
    1.80 +                x11libs[i].lib = SDL_LoadObject(x11libs[i].libname);
    1.81              }
    1.82          }
    1.83  #define SDL_X11_MODULE(modname) thismod = &SDL_X11_HAVE_##modname;
    1.84 @@ -164,11 +164,11 @@
    1.85  #undef SDL_X11_SYM
    1.86  
    1.87  #ifdef X_HAVE_UTF8_STRING
    1.88 -        X11_GetSym ("XCreateIC", &SDL_X11_HAVE_UTF8, (void **) &pXCreateIC);
    1.89 +        X11_GetSym("XCreateIC", &SDL_X11_HAVE_UTF8, (void **) &pXCreateIC);
    1.90  #endif
    1.91  
    1.92          if (!SDL_X11_HAVE_BASEXLIB) {   /* some required symbol didn't load. */
    1.93 -            SDL_X11_UnloadSymbols ();   /* in case something got loaded... */
    1.94 +            SDL_X11_UnloadSymbols();    /* in case something got loaded... */
    1.95              rc = 0;
    1.96          }
    1.97      }