/ Hex Artifact Content
Login

Artifact 39350827d0bce0fe10cca8b13c5dfca3438b4f65:


0000: 2f 2a 0a 2a 2a 20 32 30 30 38 20 4a 75 6e 65 20  /*.** 2008 June 
0010: 31 33 0a 2a 2a 0a 2a 2a 20 54 68 65 20 61 75 74  13.**.** The aut
0020: 68 6f 72 20 64 69 73 63 6c 61 69 6d 73 20 63 6f  hor disclaims co
0030: 70 79 72 69 67 68 74 20 74 6f 20 74 68 69 73 20  pyright to this 
0040: 73 6f 75 72 63 65 20 63 6f 64 65 2e 20 20 49 6e  source code.  In
0050: 20 70 6c 61 63 65 20 6f 66 0a 2a 2a 20 61 20 6c   place of.** a l
0060: 65 67 61 6c 20 6e 6f 74 69 63 65 2c 20 68 65 72  egal notice, her
0070: 65 20 69 73 20 61 20 62 6c 65 73 73 69 6e 67 3a  e is a blessing:
0080: 0a 2a 2a 0a 2a 2a 20 20 20 20 4d 61 79 20 79 6f  .**.**    May yo
0090: 75 20 64 6f 20 67 6f 6f 64 20 61 6e 64 20 6e 6f  u do good and no
00a0: 74 20 65 76 69 6c 2e 0a 2a 2a 20 20 20 20 4d 61  t evil..**    Ma
00b0: 79 20 79 6f 75 20 66 69 6e 64 20 66 6f 72 67 69  y you find forgi
00c0: 76 65 6e 65 73 73 20 66 6f 72 20 79 6f 75 72 73  veness for yours
00d0: 65 6c 66 20 61 6e 64 20 66 6f 72 67 69 76 65 20  elf and forgive 
00e0: 6f 74 68 65 72 73 2e 0a 2a 2a 20 20 20 20 4d 61  others..**    Ma
00f0: 79 20 79 6f 75 20 73 68 61 72 65 20 66 72 65 65  y you share free
0100: 6c 79 2c 20 6e 65 76 65 72 20 74 61 6b 69 6e 67  ly, never taking
0110: 20 6d 6f 72 65 20 74 68 61 6e 20 79 6f 75 20 67   more than you g
0120: 69 76 65 2e 0a 2a 2a 0a 2a 2a 2a 2a 2a 2a 2a 2a  ive..**.********
0130: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0140: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0150: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0160: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0170: 2a 0a 2a 2a 0a 2a 2a 20 54 68 69 73 20 66 69 6c  *.**.** This fil
0180: 65 20 63 6f 6e 74 61 69 6e 73 20 64 65 66 69 6e  e contains defin
0190: 69 74 69 6f 6e 73 20 6f 66 20 67 6c 6f 62 61 6c  itions of global
01a0: 20 76 61 72 69 61 62 6c 65 73 20 61 6e 64 20 63   variables and c
01b0: 6f 6e 74 61 6e 74 73 2e 0a 2a 2a 0a 2a 2a 20 24  ontants..**.** $
01c0: 49 64 3a 20 67 6c 6f 62 61 6c 2e 63 2c 76 20 31  Id: global.c,v 1
01d0: 2e 35 20 32 30 30 38 2f 30 38 2f 32 31 20 31 38  .5 2008/08/21 18
01e0: 3a 34 39 3a 32 38 20 64 72 68 20 45 78 70 20 24  :49:28 drh Exp $
01f0: 0a 2a 2f 0a 23 69 6e 63 6c 75 64 65 20 22 73 71  .*/.#include "sq
0200: 6c 69 74 65 49 6e 74 2e 68 22 0a 0a 0a 2f 2a 20  liteInt.h".../* 
0210: 41 6e 20 61 72 72 61 79 20 74 6f 20 6d 61 70 20  An array to map 
0220: 61 6c 6c 20 75 70 70 65 72 2d 63 61 73 65 20 63  all upper-case c
0230: 68 61 72 61 63 74 65 72 73 20 69 6e 74 6f 20 74  haracters into t
0240: 68 65 69 72 20 63 6f 72 72 65 73 70 6f 6e 64 69  heir correspondi
0250: 6e 67 0a 2a 2a 20 6c 6f 77 65 72 2d 63 61 73 65  ng.** lower-case
0260: 20 63 68 61 72 61 63 74 65 72 2e 20 0a 2a 2a 0a   character. .**.
0270: 2a 2a 20 53 51 4c 69 74 65 20 6f 6e 6c 79 20 63  ** SQLite only c
0280: 6f 6e 73 69 64 65 72 73 20 55 53 2d 41 53 43 49  onsiders US-ASCI
0290: 49 20 28 6f 72 20 45 42 43 44 49 43 29 20 63 68  I (or EBCDIC) ch
02a0: 61 72 61 63 74 65 72 73 2e 20 20 57 65 20 64 6f  aracters.  We do
02b0: 20 6e 6f 74 0a 2a 2a 20 68 61 6e 64 6c 65 20 63   not.** handle c
02c0: 61 73 65 20 63 6f 6e 76 65 72 73 69 6f 6e 73 20  ase conversions 
02d0: 66 6f 72 20 74 68 65 20 55 54 46 20 63 68 61 72  for the UTF char
02e0: 61 63 74 65 72 20 73 65 74 20 73 69 6e 63 65 20  acter set since 
02f0: 74 68 65 20 74 61 62 6c 65 73 0a 2a 2a 20 69 6e  the tables.** in
0300: 76 6f 6c 76 65 64 20 61 72 65 20 6e 65 61 72 6c  volved are nearl
0310: 79 20 61 73 20 62 69 67 20 6f 72 20 62 69 67 67  y as big or bigg
0320: 65 72 20 74 68 61 6e 20 53 51 4c 69 74 65 20 69  er than SQLite i
0330: 74 73 65 6c 66 2e 0a 2a 2f 0a 63 6f 6e 73 74 20  tself..*/.const 
0340: 75 6e 73 69 67 6e 65 64 20 63 68 61 72 20 73 71  unsigned char sq
0350: 6c 69 74 65 33 55 70 70 65 72 54 6f 4c 6f 77 65  lite3UpperToLowe
0360: 72 5b 5d 20 3d 20 7b 0a 23 69 66 64 65 66 20 53  r[] = {.#ifdef S
0370: 51 4c 49 54 45 5f 41 53 43 49 49 0a 20 20 20 20  QLITE_ASCII.    
0380: 20 20 30 2c 20 20 31 2c 20 20 32 2c 20 20 33 2c    0,  1,  2,  3,
0390: 20 20 34 2c 20 20 35 2c 20 20 36 2c 20 20 37 2c    4,  5,  6,  7,
03a0: 20 20 38 2c 20 20 39 2c 20 31 30 2c 20 31 31 2c    8,  9, 10, 11,
03b0: 20 31 32 2c 20 31 33 2c 20 31 34 2c 20 31 35 2c   12, 13, 14, 15,
03c0: 20 31 36 2c 20 31 37 2c 0a 20 20 20 20 20 31 38   16, 17,.     18
03d0: 2c 20 31 39 2c 20 32 30 2c 20 32 31 2c 20 32 32  , 19, 20, 21, 22
03e0: 2c 20 32 33 2c 20 32 34 2c 20 32 35 2c 20 32 36  , 23, 24, 25, 26
03f0: 2c 20 32 37 2c 20 32 38 2c 20 32 39 2c 20 33 30  , 27, 28, 29, 30
0400: 2c 20 33 31 2c 20 33 32 2c 20 33 33 2c 20 33 34  , 31, 32, 33, 34
0410: 2c 20 33 35 2c 0a 20 20 20 20 20 33 36 2c 20 33  , 35,.     36, 3
0420: 37 2c 20 33 38 2c 20 33 39 2c 20 34 30 2c 20 34  7, 38, 39, 40, 4
0430: 31 2c 20 34 32 2c 20 34 33 2c 20 34 34 2c 20 34  1, 42, 43, 44, 4
0440: 35 2c 20 34 36 2c 20 34 37 2c 20 34 38 2c 20 34  5, 46, 47, 48, 4
0450: 39 2c 20 35 30 2c 20 35 31 2c 20 35 32 2c 20 35  9, 50, 51, 52, 5
0460: 33 2c 0a 20 20 20 20 20 35 34 2c 20 35 35 2c 20  3,.     54, 55, 
0470: 35 36 2c 20 35 37 2c 20 35 38 2c 20 35 39 2c 20  56, 57, 58, 59, 
0480: 36 30 2c 20 36 31 2c 20 36 32 2c 20 36 33 2c 20  60, 61, 62, 63, 
0490: 36 34 2c 20 39 37 2c 20 39 38 2c 20 39 39 2c 31  64, 97, 98, 99,1
04a0: 30 30 2c 31 30 31 2c 31 30 32 2c 31 30 33 2c 0a  00,101,102,103,.
04b0: 20 20 20 20 31 30 34 2c 31 30 35 2c 31 30 36 2c      104,105,106,
04c0: 31 30 37 2c 31 30 38 2c 31 30 39 2c 31 31 30 2c  107,108,109,110,
04d0: 31 31 31 2c 31 31 32 2c 31 31 33 2c 31 31 34 2c  111,112,113,114,
04e0: 31 31 35 2c 31 31 36 2c 31 31 37 2c 31 31 38 2c  115,116,117,118,
04f0: 31 31 39 2c 31 32 30 2c 31 32 31 2c 0a 20 20 20  119,120,121,.   
0500: 20 31 32 32 2c 20 39 31 2c 20 39 32 2c 20 39 33   122, 91, 92, 93
0510: 2c 20 39 34 2c 20 39 35 2c 20 39 36 2c 20 39 37  , 94, 95, 96, 97
0520: 2c 20 39 38 2c 20 39 39 2c 31 30 30 2c 31 30 31  , 98, 99,100,101
0530: 2c 31 30 32 2c 31 30 33 2c 31 30 34 2c 31 30 35  ,102,103,104,105
0540: 2c 31 30 36 2c 31 30 37 2c 0a 20 20 20 20 31 30  ,106,107,.    10
0550: 38 2c 31 30 39 2c 31 31 30 2c 31 31 31 2c 31 31  8,109,110,111,11
0560: 32 2c 31 31 33 2c 31 31 34 2c 31 31 35 2c 31 31  2,113,114,115,11
0570: 36 2c 31 31 37 2c 31 31 38 2c 31 31 39 2c 31 32  6,117,118,119,12
0580: 30 2c 31 32 31 2c 31 32 32 2c 31 32 33 2c 31 32  0,121,122,123,12
0590: 34 2c 31 32 35 2c 0a 20 20 20 20 31 32 36 2c 31  4,125,.    126,1
05a0: 32 37 2c 31 32 38 2c 31 32 39 2c 31 33 30 2c 31  27,128,129,130,1
05b0: 33 31 2c 31 33 32 2c 31 33 33 2c 31 33 34 2c 31  31,132,133,134,1
05c0: 33 35 2c 31 33 36 2c 31 33 37 2c 31 33 38 2c 31  35,136,137,138,1
05d0: 33 39 2c 31 34 30 2c 31 34 31 2c 31 34 32 2c 31  39,140,141,142,1
05e0: 34 33 2c 0a 20 20 20 20 31 34 34 2c 31 34 35 2c  43,.    144,145,
05f0: 31 34 36 2c 31 34 37 2c 31 34 38 2c 31 34 39 2c  146,147,148,149,
0600: 31 35 30 2c 31 35 31 2c 31 35 32 2c 31 35 33 2c  150,151,152,153,
0610: 31 35 34 2c 31 35 35 2c 31 35 36 2c 31 35 37 2c  154,155,156,157,
0620: 31 35 38 2c 31 35 39 2c 31 36 30 2c 31 36 31 2c  158,159,160,161,
0630: 0a 20 20 20 20 31 36 32 2c 31 36 33 2c 31 36 34  .    162,163,164
0640: 2c 31 36 35 2c 31 36 36 2c 31 36 37 2c 31 36 38  ,165,166,167,168
0650: 2c 31 36 39 2c 31 37 30 2c 31 37 31 2c 31 37 32  ,169,170,171,172
0660: 2c 31 37 33 2c 31 37 34 2c 31 37 35 2c 31 37 36  ,173,174,175,176
0670: 2c 31 37 37 2c 31 37 38 2c 31 37 39 2c 0a 20 20  ,177,178,179,.  
0680: 20 20 31 38 30 2c 31 38 31 2c 31 38 32 2c 31 38    180,181,182,18
0690: 33 2c 31 38 34 2c 31 38 35 2c 31 38 36 2c 31 38  3,184,185,186,18
06a0: 37 2c 31 38 38 2c 31 38 39 2c 31 39 30 2c 31 39  7,188,189,190,19
06b0: 31 2c 31 39 32 2c 31 39 33 2c 31 39 34 2c 31 39  1,192,193,194,19
06c0: 35 2c 31 39 36 2c 31 39 37 2c 0a 20 20 20 20 31  5,196,197,.    1
06d0: 39 38 2c 31 39 39 2c 32 30 30 2c 32 30 31 2c 32  98,199,200,201,2
06e0: 30 32 2c 32 30 33 2c 32 30 34 2c 32 30 35 2c 32  02,203,204,205,2
06f0: 30 36 2c 32 30 37 2c 32 30 38 2c 32 30 39 2c 32  06,207,208,209,2
0700: 31 30 2c 32 31 31 2c 32 31 32 2c 32 31 33 2c 32  10,211,212,213,2
0710: 31 34 2c 32 31 35 2c 0a 20 20 20 20 32 31 36 2c  14,215,.    216,
0720: 32 31 37 2c 32 31 38 2c 32 31 39 2c 32 32 30 2c  217,218,219,220,
0730: 32 32 31 2c 32 32 32 2c 32 32 33 2c 32 32 34 2c  221,222,223,224,
0740: 32 32 35 2c 32 32 36 2c 32 32 37 2c 32 32 38 2c  225,226,227,228,
0750: 32 32 39 2c 32 33 30 2c 32 33 31 2c 32 33 32 2c  229,230,231,232,
0760: 32 33 33 2c 0a 20 20 20 20 32 33 34 2c 32 33 35  233,.    234,235
0770: 2c 32 33 36 2c 32 33 37 2c 32 33 38 2c 32 33 39  ,236,237,238,239
0780: 2c 32 34 30 2c 32 34 31 2c 32 34 32 2c 32 34 33  ,240,241,242,243
0790: 2c 32 34 34 2c 32 34 35 2c 32 34 36 2c 32 34 37  ,244,245,246,247
07a0: 2c 32 34 38 2c 32 34 39 2c 32 35 30 2c 32 35 31  ,248,249,250,251
07b0: 2c 0a 20 20 20 20 32 35 32 2c 32 35 33 2c 32 35  ,.    252,253,25
07c0: 34 2c 32 35 35 0a 23 65 6e 64 69 66 0a 23 69 66  4,255.#endif.#if
07d0: 64 65 66 20 53 51 4c 49 54 45 5f 45 42 43 44 49  def SQLITE_EBCDI
07e0: 43 0a 20 20 20 20 20 20 30 2c 20 20 31 2c 20 20  C.      0,  1,  
07f0: 32 2c 20 20 33 2c 20 20 34 2c 20 20 35 2c 20 20  2,  3,  4,  5,  
0800: 36 2c 20 20 37 2c 20 20 38 2c 20 20 39 2c 20 31  6,  7,  8,  9, 1
0810: 30 2c 20 31 31 2c 20 31 32 2c 20 31 33 2c 20 31  0, 11, 12, 13, 1
0820: 34 2c 20 31 35 2c 20 2f 2a 20 30 78 20 2a 2f 0a  4, 15, /* 0x */.
0830: 20 20 20 20 20 31 36 2c 20 31 37 2c 20 31 38 2c       16, 17, 18,
0840: 20 31 39 2c 20 32 30 2c 20 32 31 2c 20 32 32 2c   19, 20, 21, 22,
0850: 20 32 33 2c 20 32 34 2c 20 32 35 2c 20 32 36 2c   23, 24, 25, 26,
0860: 20 32 37 2c 20 32 38 2c 20 32 39 2c 20 33 30 2c   27, 28, 29, 30,
0870: 20 33 31 2c 20 2f 2a 20 31 78 20 2a 2f 0a 20 20   31, /* 1x */.  
0880: 20 20 20 33 32 2c 20 33 33 2c 20 33 34 2c 20 33     32, 33, 34, 3
0890: 35 2c 20 33 36 2c 20 33 37 2c 20 33 38 2c 20 33  5, 36, 37, 38, 3
08a0: 39 2c 20 34 30 2c 20 34 31 2c 20 34 32 2c 20 34  9, 40, 41, 42, 4
08b0: 33 2c 20 34 34 2c 20 34 35 2c 20 34 36 2c 20 34  3, 44, 45, 46, 4
08c0: 37 2c 20 2f 2a 20 32 78 20 2a 2f 0a 20 20 20 20  7, /* 2x */.    
08d0: 20 34 38 2c 20 34 39 2c 20 35 30 2c 20 35 31 2c   48, 49, 50, 51,
08e0: 20 35 32 2c 20 35 33 2c 20 35 34 2c 20 35 35 2c   52, 53, 54, 55,
08f0: 20 35 36 2c 20 35 37 2c 20 35 38 2c 20 35 39 2c   56, 57, 58, 59,
0900: 20 36 30 2c 20 36 31 2c 20 36 32 2c 20 36 33 2c   60, 61, 62, 63,
0910: 20 2f 2a 20 33 78 20 2a 2f 0a 20 20 20 20 20 36   /* 3x */.     6
0920: 34 2c 20 36 35 2c 20 36 36 2c 20 36 37 2c 20 36  4, 65, 66, 67, 6
0930: 38 2c 20 36 39 2c 20 37 30 2c 20 37 31 2c 20 37  8, 69, 70, 71, 7
0940: 32 2c 20 37 33 2c 20 37 34 2c 20 37 35 2c 20 37  2, 73, 74, 75, 7
0950: 36 2c 20 37 37 2c 20 37 38 2c 20 37 39 2c 20 2f  6, 77, 78, 79, /
0960: 2a 20 34 78 20 2a 2f 0a 20 20 20 20 20 38 30 2c  * 4x */.     80,
0970: 20 38 31 2c 20 38 32 2c 20 38 33 2c 20 38 34 2c   81, 82, 83, 84,
0980: 20 38 35 2c 20 38 36 2c 20 38 37 2c 20 38 38 2c   85, 86, 87, 88,
0990: 20 38 39 2c 20 39 30 2c 20 39 31 2c 20 39 32 2c   89, 90, 91, 92,
09a0: 20 39 33 2c 20 39 34 2c 20 39 35 2c 20 2f 2a 20   93, 94, 95, /* 
09b0: 35 78 20 2a 2f 0a 20 20 20 20 20 39 36 2c 20 39  5x */.     96, 9
09c0: 37 2c 20 36 36 2c 20 36 37 2c 20 36 38 2c 20 36  7, 66, 67, 68, 6
09d0: 39 2c 20 37 30 2c 20 37 31 2c 20 37 32 2c 20 37  9, 70, 71, 72, 7
09e0: 33 2c 31 30 36 2c 31 30 37 2c 31 30 38 2c 31 30  3,106,107,108,10
09f0: 39 2c 31 31 30 2c 31 31 31 2c 20 2f 2a 20 36 78  9,110,111, /* 6x
0a00: 20 2a 2f 0a 20 20 20 20 31 31 32 2c 20 38 31 2c   */.    112, 81,
0a10: 20 38 32 2c 20 38 33 2c 20 38 34 2c 20 38 35 2c   82, 83, 84, 85,
0a20: 20 38 36 2c 20 38 37 2c 20 38 38 2c 20 38 39 2c   86, 87, 88, 89,
0a30: 31 32 32 2c 31 32 33 2c 31 32 34 2c 31 32 35 2c  122,123,124,125,
0a40: 31 32 36 2c 31 32 37 2c 20 2f 2a 20 37 78 20 2a  126,127, /* 7x *
0a50: 2f 0a 20 20 20 20 31 32 38 2c 31 32 39 2c 31 33  /.    128,129,13
0a60: 30 2c 31 33 31 2c 31 33 32 2c 31 33 33 2c 31 33  0,131,132,133,13
0a70: 34 2c 31 33 35 2c 31 33 36 2c 31 33 37 2c 31 33  4,135,136,137,13
0a80: 38 2c 31 33 39 2c 31 34 30 2c 31 34 31 2c 31 34  8,139,140,141,14
0a90: 32 2c 31 34 33 2c 20 2f 2a 20 38 78 20 2a 2f 0a  2,143, /* 8x */.
0aa0: 20 20 20 20 31 34 34 2c 31 34 35 2c 31 34 36 2c      144,145,146,
0ab0: 31 34 37 2c 31 34 38 2c 31 34 39 2c 31 35 30 2c  147,148,149,150,
0ac0: 31 35 31 2c 31 35 32 2c 31 35 33 2c 31 35 34 2c  151,152,153,154,
0ad0: 31 35 35 2c 31 35 36 2c 31 35 37 2c 31 35 36 2c  155,156,157,156,
0ae0: 31 35 39 2c 20 2f 2a 20 39 78 20 2a 2f 0a 20 20  159, /* 9x */.  
0af0: 20 20 31 36 30 2c 31 36 31 2c 31 36 32 2c 31 36    160,161,162,16
0b00: 33 2c 31 36 34 2c 31 36 35 2c 31 36 36 2c 31 36  3,164,165,166,16
0b10: 37 2c 31 36 38 2c 31 36 39 2c 31 37 30 2c 31 37  7,168,169,170,17
0b20: 31 2c 31 34 30 2c 31 34 31 2c 31 34 32 2c 31 37  1,140,141,142,17
0b30: 35 2c 20 2f 2a 20 41 78 20 2a 2f 0a 20 20 20 20  5, /* Ax */.    
0b40: 31 37 36 2c 31 37 37 2c 31 37 38 2c 31 37 39 2c  176,177,178,179,
0b50: 31 38 30 2c 31 38 31 2c 31 38 32 2c 31 38 33 2c  180,181,182,183,
0b60: 31 38 34 2c 31 38 35 2c 31 38 36 2c 31 38 37 2c  184,185,186,187,
0b70: 31 38 38 2c 31 38 39 2c 31 39 30 2c 31 39 31 2c  188,189,190,191,
0b80: 20 2f 2a 20 42 78 20 2a 2f 0a 20 20 20 20 31 39   /* Bx */.    19
0b90: 32 2c 31 32 39 2c 31 33 30 2c 31 33 31 2c 31 33  2,129,130,131,13
0ba0: 32 2c 31 33 33 2c 31 33 34 2c 31 33 35 2c 31 33  2,133,134,135,13
0bb0: 36 2c 31 33 37 2c 32 30 32 2c 32 30 33 2c 32 30  6,137,202,203,20
0bc0: 34 2c 32 30 35 2c 32 30 36 2c 32 30 37 2c 20 2f  4,205,206,207, /
0bd0: 2a 20 43 78 20 2a 2f 0a 20 20 20 20 32 30 38 2c  * Cx */.    208,
0be0: 31 34 35 2c 31 34 36 2c 31 34 37 2c 31 34 38 2c  145,146,147,148,
0bf0: 31 34 39 2c 31 35 30 2c 31 35 31 2c 31 35 32 2c  149,150,151,152,
0c00: 31 35 33 2c 32 31 38 2c 32 31 39 2c 32 32 30 2c  153,218,219,220,
0c10: 32 32 31 2c 32 32 32 2c 32 32 33 2c 20 2f 2a 20  221,222,223, /* 
0c20: 44 78 20 2a 2f 0a 20 20 20 20 32 32 34 2c 32 32  Dx */.    224,22
0c30: 35 2c 31 36 32 2c 31 36 33 2c 31 36 34 2c 31 36  5,162,163,164,16
0c40: 35 2c 31 36 36 2c 31 36 37 2c 31 36 38 2c 31 36  5,166,167,168,16
0c50: 39 2c 32 33 32 2c 32 30 33 2c 32 30 34 2c 32 30  9,232,203,204,20
0c60: 35 2c 32 30 36 2c 32 30 37 2c 20 2f 2a 20 45 78  5,206,207, /* Ex
0c70: 20 2a 2f 0a 20 20 20 20 32 33 39 2c 32 34 30 2c   */.    239,240,
0c80: 32 34 31 2c 32 34 32 2c 32 34 33 2c 32 34 34 2c  241,242,243,244,
0c90: 32 34 35 2c 32 34 36 2c 32 34 37 2c 32 34 38 2c  245,246,247,248,
0ca0: 32 34 39 2c 32 31 39 2c 32 32 30 2c 32 32 31 2c  249,219,220,221,
0cb0: 32 32 32 2c 32 35 35 2c 20 2f 2a 20 46 78 20 2a  222,255, /* Fx *
0cc0: 2f 0a 23 65 6e 64 69 66 0a 7d 3b 0a 0a 2f 2a 0a  /.#endif.};../*.
0cd0: 2a 2a 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67  ** The following
0ce0: 20 73 69 6e 67 6c 65 74 6f 6e 20 63 6f 6e 74 61   singleton conta
0cf0: 69 6e 73 20 74 68 65 20 67 6c 6f 62 61 6c 20 63  ins the global c
0d00: 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 66 6f 72  onfiguration for
0d10: 0a 2a 2a 20 74 68 65 20 53 51 4c 69 74 65 20 6c  .** the SQLite l
0d20: 69 62 72 61 72 79 2e 0a 2a 2f 0a 73 74 72 75 63  ibrary..*/.struc
0d30: 74 20 53 71 6c 69 74 65 33 43 6f 6e 66 69 67 20  t Sqlite3Config 
0d40: 73 71 6c 69 74 65 33 43 6f 6e 66 69 67 20 3d 20  sqlite3Config = 
0d50: 7b 0a 20 20 20 31 2c 20 20 20 20 20 20 20 20 20  {.   1,         
0d60: 20 20 20 20 20 20 20 2f 2a 20 62 4d 65 6d 73 74         /* bMemst
0d70: 61 74 20 2a 2f 0a 20 20 20 31 2c 20 20 20 20 20  at */.   1,     
0d80: 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 62 43             /* bC
0d90: 6f 72 65 4d 75 74 65 78 20 2a 2f 0a 20 20 20 31  oreMutex */.   1
0da0: 2c 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20  ,               
0db0: 20 2f 2a 20 62 46 75 6c 6c 4d 75 74 65 78 20 2a   /* bFullMutex *
0dc0: 2f 0a 20 20 20 30 78 37 66 66 66 66 66 66 65 2c  /.   0x7ffffffe,
0dd0: 20 20 20 20 20 20 20 2f 2a 20 6d 78 53 74 72 6c         /* mxStrl
0de0: 65 6e 20 2a 2f 0a 20 20 20 31 30 30 2c 20 20 20  en */.   100,   
0df0: 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 73 7a             /* sz
0e00: 4c 6f 6f 6b 61 73 69 64 65 20 2a 2f 0a 20 20 20  Lookaside */.   
0e10: 35 30 30 2c 20 20 20 20 20 20 20 20 20 20 20 20  500,            
0e20: 20 20 2f 2a 20 6e 4c 6f 6f 6b 61 73 69 64 65 20    /* nLookaside 
0e30: 2a 2f 0a 20 20 20 2f 2a 20 4f 74 68 65 72 20 66  */.   /* Other f
0e40: 69 65 6c 64 73 20 61 6c 6c 20 64 65 66 61 75 6c  ields all defaul
0e50: 74 20 74 6f 20 7a 65 72 6f 20 2a 2f 0a 7d 3b 0a  t to zero */.};.
0e60: 0a 0a 2f 2a 0a 2a 2a 20 48 61 73 68 20 74 61 62  ../*.** Hash tab
0e70: 6c 65 20 66 6f 72 20 67 6c 6f 62 61 6c 20 66 75  le for global fu
0e80: 6e 63 74 69 6f 6e 73 20 2d 20 66 75 6e 63 74 69  nctions - functi
0e90: 6f 6e 73 20 63 6f 6d 6d 6f 6e 20 74 6f 20 61 6c  ons common to al
0ea0: 6c 0a 2a 2a 20 64 61 74 61 62 61 73 65 20 63 6f  l.** database co
0eb0: 6e 6e 65 63 74 69 6f 6e 73 2e 20 20 41 66 74 65  nnections.  Afte
0ec0: 72 20 69 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e  r initialization
0ed0: 2c 20 74 68 69 73 20 74 61 62 6c 65 20 69 73 0a  , this table is.
0ee0: 2a 2a 20 72 65 61 64 2d 6f 6e 6c 79 2e 0a 2a 2f  ** read-only..*/
0ef0: 0a 46 75 6e 63 44 65 66 48 61 73 68 20 73 71 6c  .FuncDefHash sql
0f00: 69 74 65 33 46 75 6e 63 42 75 69 6c 74 69 6e 73  ite3FuncBuiltins
0f10: 3b 0a                                            ;.