r855 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Mar 20 13:53:42 EDT 2007


Author: icculus
Date: 2007-03-20 13:53:42 -0400 (Tue, 20 Mar 2007)
New Revision: 855

Modified:
   trunk/physfs.h
Log:
Fixed a FIXME in the documentation comments.


Modified: trunk/physfs.h
===================================================================
--- trunk/physfs.h	2007-03-20 11:11:36 UTC (rev 854)
+++ trunk/physfs.h	2007-03-20 17:53:42 UTC (rev 855)
@@ -1948,19 +1948,19 @@
  * (This is for limited, hardcore use. If you don't immediately see a need
  *  for it, you can probably ignore this forever.)
  *
- *  !!! FIXME: don't promise C runtime malloc.
+ * By default, PhysicsFS will use whatever is reasonable for a platform
+ *  to manage dynamic memory (usually ANSI C malloc/realloc/calloc/free, but
+ *  some platforms might use something else), but in some uncommon cases, the
+ *  app might want more control over the library's memory management. This
+ *  lets you redirect PhysicsFS to use your own allocation routines instead.
+ *  You can only call this function before PHYSFS_init(); if the library is
+ *  initialized, it'll reject your efforts to change the allocator mid-stream.
+ *  You may call this function after PHYSFS_deinit() if you are willing to
+ *  shut down the library and restart it with a new allocator; this is a safe
+ *  and supported operation. The allocator remains intact between deinit/init
+ *  calls. If you want to return to the platform's default allocator, pass a
+ *  NULL in here.
  *
- * By default, PhysicsFS will use ANSI C malloc/realloc/calloc/free calls
- *  to manage dynamic memory, but in some uncommon cases, the app might want
- *  more control over the library's memory management. This lets you redirect
- *  physfs to use your own allocation routines instead. You can only call this
- *  function before PHYSFS_init(); if the library is initialized, it'll
- *  reject your efforts to change the allocator mid-stream. You may call this
- *  function after PHYSFS_deinit() if you are willing to shutdown the library
- *  and restart it with a new allocator; this is a safe and supported
- *  operation. The allocator remains intact between deinit/init calls.
- *  If you want to return to the default allocator, pass a NULL in here.
- *
  * If you aren't immediately sure what to do with this function, you can
  *  safely ignore it altogether.
  *




More information about the physfs-commits mailing list