SQLite

Check-in [d96272f031]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Proposed template preprocessor magic for activating mmap only on platforms where we know it works.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | experimental-mmap
Files: files | file ages | folders
SHA1: d96272f031102514b02bd839aac9e37618872200
User & Date: drh 2013-04-02 10:29:13.935
Context
2013-04-02
12:04
Add test cases for errors in mmap() or mremap() is os_unix.c. (check-in: 3098a3c1e7 user: dan tags: experimental-mmap)
10:29
Proposed template preprocessor magic for activating mmap only on platforms where we know it works. (check-in: d96272f031 user: drh tags: experimental-mmap)
01:45
Reorder two conditions to make coverage testing easier. (check-in: 793ba4e996 user: drh tags: experimental-mmap)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/sqliteLimit.h.
206
207
208
209
210
211
212






213








214



215
#ifndef SQLITE_MAX_TRIGGER_DEPTH
# define SQLITE_MAX_TRIGGER_DEPTH 1000
#endif

/*
** Default maximum size of memory used by xFetch in the VFS.
*/






#ifndef SQLITE_DEFAULT_MMAP_LIMIT








# define SQLITE_DEFAULT_MMAP_LIMIT (256*1024*1024)



#endif







>
>
>
>
>
>

>
>
>
>
>
>
>
>
|
>
>
>

206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
#ifndef SQLITE_MAX_TRIGGER_DEPTH
# define SQLITE_MAX_TRIGGER_DEPTH 1000
#endif

/*
** Default maximum size of memory used by xFetch in the VFS.
*/
#ifdef __APPLE__
# include <TargetConditions.h>
# if defined(TARGET_OS_IPHONE)
#   define SQLITE_DEFAULT_MMAP_LIMIT 0
# endif
#endif
#ifndef SQLITE_DEFAULT_MMAP_LIMIT
# if defined(__linux__) \
  || defined(_WIN32) \
  || (defined(__APPLE__) && defined(__MACH__)  && !defined(TARGET_OS_IPHONE)) \
  || defined(__sun) \
  || defined(__DragonFly__) \
  || defined(__FreeBSD__) \
  || defined(__NetBSD__) \
  || defined(__OpenBSD__)
#   define SQLITE_DEFAULT_MMAP_LIMIT (256*1024*1024)
# else
#   define SQLITE_DEFAULT_MMAP_LIMIT 0
# endif
#endif