physfs.c
changeset 538 8752e3c0dbf9
parent 533 a01da4bcee68
child 540 a6b6f0a54cd2
equal deleted inserted replaced
537:938e33391878 538:8752e3c0dbf9
   120 static void *stateLock = NULL;     /* protects other PhysFS static state. */
   120 static void *stateLock = NULL;     /* protects other PhysFS static state. */
   121 
   121 
   122 
   122 
   123 /* functions ... */
   123 /* functions ... */
   124 
   124 
   125 void __PHYSFS_bubble_sort(void *a, PHYSFS_uint32 lo, PHYSFS_uint32 hi,
   125 static void __PHYSFS_bubble_sort(void *a, PHYSFS_uint32 lo, PHYSFS_uint32 hi,
   126                          int (*cmpfn)(void *, PHYSFS_uint32, PHYSFS_uint32),
   126                          int (*cmpfn)(void *, PHYSFS_uint32, PHYSFS_uint32),
   127                          void (*swapfn)(void *, PHYSFS_uint32, PHYSFS_uint32))
   127                          void (*swapfn)(void *, PHYSFS_uint32, PHYSFS_uint32))
   128 {
   128 {
   129     PHYSFS_uint32 i;
   129     PHYSFS_uint32 i;
   130     int sorted;
   130     int sorted;
   142         } /* for */
   142         } /* for */
   143     } while (!sorted);
   143     } while (!sorted);
   144 } /* __PHYSFS_bubble_sort */
   144 } /* __PHYSFS_bubble_sort */
   145 
   145 
   146 
   146 
   147 void __PHYSFS_quick_sort(void *a, PHYSFS_uint32 lo, PHYSFS_uint32 hi,
   147 static void __PHYSFS_quick_sort(void *a, PHYSFS_uint32 lo, PHYSFS_uint32 hi,
   148                          int (*cmpfn)(void *, PHYSFS_uint32, PHYSFS_uint32),
   148                          int (*cmpfn)(void *, PHYSFS_uint32, PHYSFS_uint32),
   149                          void (*swapfn)(void *, PHYSFS_uint32, PHYSFS_uint32))
   149                          void (*swapfn)(void *, PHYSFS_uint32, PHYSFS_uint32))
   150 {
   150 {
   151     PHYSFS_uint32 i;
   151     PHYSFS_uint32 i;
   152     PHYSFS_uint32 j;
   152     PHYSFS_uint32 j;