OLD | NEW |
1 /* | 1 /* |
2 ** 2001 September 15 | 2 ** 2001 September 15 |
3 ** | 3 ** |
4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
6 ** | 6 ** |
7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
10 ** | 10 ** |
(...skipping 2504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2515 /* | 2515 /* |
2516 ** The ctype.h header is needed for non-ASCII systems. It is also | 2516 ** The ctype.h header is needed for non-ASCII systems. It is also |
2517 ** needed by FTS3 when FTS3 is included in the amalgamation. | 2517 ** needed by FTS3 when FTS3 is included in the amalgamation. |
2518 */ | 2518 */ |
2519 #if !defined(SQLITE_ASCII) || \ | 2519 #if !defined(SQLITE_ASCII) || \ |
2520 (defined(SQLITE_ENABLE_FTS3) && defined(SQLITE_AMALGAMATION)) | 2520 (defined(SQLITE_ENABLE_FTS3) && defined(SQLITE_AMALGAMATION)) |
2521 # include <ctype.h> | 2521 # include <ctype.h> |
2522 #endif | 2522 #endif |
2523 | 2523 |
2524 /* | 2524 /* |
2525 ** The CoreServices.h and CoreFoundation.h headers are needed for excluding a | |
2526 ** -journal file from Time Machine backups when its associated database has | |
2527 ** previously been excluded by the client code. | |
2528 */ | |
2529 #if defined(__APPLE__) | |
2530 #include <CoreServices/CoreServices.h> | |
2531 #include <CoreFoundation/CoreFoundation.h> | |
2532 #endif | |
2533 | |
2534 /* | |
2535 ** The following macros mimic the standard library functions toupper(), | 2525 ** The following macros mimic the standard library functions toupper(), |
2536 ** isspace(), isalnum(), isdigit() and isxdigit(), respectively. The | 2526 ** isspace(), isalnum(), isdigit() and isxdigit(), respectively. The |
2537 ** sqlite versions only work for ASCII characters, regardless of locale. | 2527 ** sqlite versions only work for ASCII characters, regardless of locale. |
2538 */ | 2528 */ |
2539 #ifdef SQLITE_ASCII | 2529 #ifdef SQLITE_ASCII |
2540 # define sqlite3Toupper(x) ((x)&~(sqlite3CtypeMap[(unsigned char)(x)]&0x20)) | 2530 # define sqlite3Toupper(x) ((x)&~(sqlite3CtypeMap[(unsigned char)(x)]&0x20)) |
2541 # define sqlite3Isspace(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x01) | 2531 # define sqlite3Isspace(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x01) |
2542 # define sqlite3Isalnum(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x06) | 2532 # define sqlite3Isalnum(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x06) |
2543 # define sqlite3Isalpha(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x02) | 2533 # define sqlite3Isalpha(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x02) |
2544 # define sqlite3Isdigit(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x04) | 2534 # define sqlite3Isdigit(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x04) |
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3227 # define sqlite3MemdebugHasType(X,Y) 1 | 3217 # define sqlite3MemdebugHasType(X,Y) 1 |
3228 # define sqlite3MemdebugNoType(X,Y) 1 | 3218 # define sqlite3MemdebugNoType(X,Y) 1 |
3229 #endif | 3219 #endif |
3230 #define MEMTYPE_HEAP 0x01 /* General heap allocations */ | 3220 #define MEMTYPE_HEAP 0x01 /* General heap allocations */ |
3231 #define MEMTYPE_LOOKASIDE 0x02 /* Might have been lookaside memory */ | 3221 #define MEMTYPE_LOOKASIDE 0x02 /* Might have been lookaside memory */ |
3232 #define MEMTYPE_SCRATCH 0x04 /* Scratch allocations */ | 3222 #define MEMTYPE_SCRATCH 0x04 /* Scratch allocations */ |
3233 #define MEMTYPE_PCACHE 0x08 /* Page cache allocations */ | 3223 #define MEMTYPE_PCACHE 0x08 /* Page cache allocations */ |
3234 #define MEMTYPE_DB 0x10 /* Uses sqlite3DbMalloc, not sqlite_malloc */ | 3224 #define MEMTYPE_DB 0x10 /* Uses sqlite3DbMalloc, not sqlite_malloc */ |
3235 | 3225 |
3236 #endif /* _SQLITEINT_H_ */ | 3226 #endif /* _SQLITEINT_H_ */ |
OLD | NEW |