src/physfs_internal.h
changeset 1370 75ac8ab59394
parent 1356 8de68968fcd0
child 1371 da48b9ff4c9b
equal deleted inserted replaced
1369:07608593ec07 1370:75ac8ab59394
   245  * strnicmp() that guarantees to only work with low ASCII. The C runtime
   245  * strnicmp() that guarantees to only work with low ASCII. The C runtime
   246  *  strnicmp() might try to apply a locale/codepage/etc, which we don't want.
   246  *  strnicmp() might try to apply a locale/codepage/etc, which we don't want.
   247  */
   247  */
   248 int __PHYSFS_strnicmpASCII(const char *s1, const char *s2, PHYSFS_uint32 l);
   248 int __PHYSFS_strnicmpASCII(const char *s1, const char *s2, PHYSFS_uint32 l);
   249 
   249 
       
   250 /*
       
   251  * Like strdup(), but uses the current PhysicsFS allocator.
       
   252  */
       
   253 char *__PHYSFS_strdup(const char *str);
       
   254 
   250 
   255 
   251 /*
   256 /*
   252  * The current allocator. Not valid before PHYSFS_init is called!
   257  * The current allocator. Not valid before PHYSFS_init is called!
   253  */
   258  */
   254 extern PHYSFS_Allocator __PHYSFS_AllocatorHooks;
   259 extern PHYSFS_Allocator __PHYSFS_AllocatorHooks;
   629  *  PHYSFS_setAllocator(). If Init isn't NULL, it will be called shortly
   634  *  PHYSFS_setAllocator(). If Init isn't NULL, it will be called shortly
   630  *  after this function returns non-zero.
   635  *  after this function returns non-zero.
   631  */
   636  */
   632 int __PHYSFS_platformSetDefaultAllocator(PHYSFS_Allocator *a);
   637 int __PHYSFS_platformSetDefaultAllocator(PHYSFS_Allocator *a);
   633 
   638 
   634 /*
       
   635  * Like strdup(), but uses the current PhysicsFS allocator.
       
   636  */
       
   637 char *__PHYSFS_strdup(const char *str);
       
   638 
       
   639 #ifdef __cplusplus
   639 #ifdef __cplusplus
   640 }
   640 }
   641 #endif
   641 #endif
   642 
   642 
   643 #endif
   643 #endif