Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.
|Comment:||Updates to the sqlite3_mem_methods documentation.|
|Downloads:||Tarball | ZIP archive | SQL archive|
|Timelines:||family | ancestors | descendants | both | trunk|
|Files:||files | file ages | folders|
|User & Date:||drh 2011-08-24 15:18:16|
|00:14||Add the SQLITE_EXTRA_INIT macro. check-in: a3220f36 user: drh tags: trunk|
|16:13||Experimental work to allow SQLite to use the native Win32 heap API. check-in: bf3d0ab5 user: mistachkin tags: winNativeHeap|
|15:18||Updates to the sqlite3_mem_methods documentation. check-in: 988998fe user: drh tags: trunk|
|15:12||Fix some harmless compiler warnings. check-in: 46f5a68b user: drh tags: trunk|
Changes to src/sqlite.h.in.
1201 1201 ** and that this object is only useful to a tiny minority of applications 1202 1202 ** with specialized memory allocation requirements. This object is 1203 1203 ** also used during testing of SQLite in order to specify an alternative 1204 1204 ** memory allocator that simulates memory out-of-memory conditions in 1205 1205 ** order to verify that SQLite recovers gracefully from such 1206 1206 ** conditions. 1207 1207 ** 1208 -** The xMalloc and xFree methods must work like the 1209 -** malloc() and free() functions from the standard C library. 1210 -** The xRealloc method must work like realloc() from the standard C library 1211 -** with the exception that if the second argument to xRealloc is zero, 1212 -** xRealloc must be a no-op - it must not perform any allocation or 1213 -** deallocation. ^SQLite guarantees that the second argument to 1208 +** The xMalloc, xRealloc, and xFree methods must work like the 1209 +** malloc(), realloc() and free() functions from the standard C library. 1210 +** ^SQLite guarantees that the second argument to 1214 1211 ** xRealloc is always a value returned by a prior call to xRoundup. 1215 -** And so in cases where xRoundup always returns a positive number, 1216 -** xRealloc can perform exactly as the standard library realloc() and 1217 -** still be in compliance with this specification. 1218 1212 ** 1219 1213 ** xSize should return the allocated size of a memory allocation 1220 1214 ** previously obtained from xMalloc or xRealloc. The allocated size 1221 1215 ** is always at least as big as the requested size but may be larger. 1222 1216 ** 1223 1217 ** The xRoundup method returns what would be the allocated size of 1224 1218 ** a memory allocation given a particular requested size. Most memory