os/persistentdata/persistentstorage/sqlite3api/SQLite/opcodes.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/* Automatically generated.  Do not edit */
sl@0
     2
/* See the mkopcodeh.awk script for details */
sl@0
     3
#define OP_VNext                                1
sl@0
     4
#define OP_Affinity                             2
sl@0
     5
#define OP_Column                               3
sl@0
     6
#define OP_SetCookie                            4
sl@0
     7
#define OP_Real                               125   /* same as TK_FLOAT    */
sl@0
     8
#define OP_Sequence                             5
sl@0
     9
#define OP_MoveGt                               6
sl@0
    10
#define OP_Ge                                  72   /* same as TK_GE       */
sl@0
    11
#define OP_RowKey                               7
sl@0
    12
#define OP_SCopy                                8
sl@0
    13
#define OP_Eq                                  68   /* same as TK_EQ       */
sl@0
    14
#define OP_OpenWrite                            9
sl@0
    15
#define OP_NotNull                             66   /* same as TK_NOTNULL  */
sl@0
    16
#define OP_If                                  10
sl@0
    17
#define OP_ToInt                              141   /* same as TK_TO_INT   */
sl@0
    18
#define OP_String8                             88   /* same as TK_STRING   */
sl@0
    19
#define OP_VRowid                              11
sl@0
    20
#define OP_CollSeq                             12
sl@0
    21
#define OP_OpenRead                            13
sl@0
    22
#define OP_Expire                              14
sl@0
    23
#define OP_AutoCommit                          15
sl@0
    24
#define OP_Gt                                  69   /* same as TK_GT       */
sl@0
    25
#define OP_Pagecount                           17
sl@0
    26
#define OP_IntegrityCk                         18
sl@0
    27
#define OP_Sort                                19
sl@0
    28
#define OP_Copy                                20
sl@0
    29
#define OP_Trace                               21
sl@0
    30
#define OP_Function                            22
sl@0
    31
#define OP_IfNeg                               23
sl@0
    32
#define OP_And                                 61   /* same as TK_AND      */
sl@0
    33
#define OP_Subtract                            79   /* same as TK_MINUS    */
sl@0
    34
#define OP_Noop                                24
sl@0
    35
#define OP_Return                              25
sl@0
    36
#define OP_Remainder                           82   /* same as TK_REM      */
sl@0
    37
#define OP_NewRowid                            26
sl@0
    38
#define OP_Multiply                            80   /* same as TK_STAR     */
sl@0
    39
#define OP_Variable                            27
sl@0
    40
#define OP_String                              28
sl@0
    41
#define OP_RealAffinity                        29
sl@0
    42
#define OP_VRename                             30
sl@0
    43
#define OP_ParseSchema                         31
sl@0
    44
#define OP_VOpen                               32
sl@0
    45
#define OP_Close                               33
sl@0
    46
#define OP_CreateIndex                         34
sl@0
    47
#define OP_IsUnique                            35
sl@0
    48
#define OP_NotFound                            36
sl@0
    49
#define OP_Int64                               37
sl@0
    50
#define OP_MustBeInt                           38
sl@0
    51
#define OP_Halt                                39
sl@0
    52
#define OP_Rowid                               40
sl@0
    53
#define OP_IdxLT                               41
sl@0
    54
#define OP_AddImm                              42
sl@0
    55
#define OP_Statement                           43
sl@0
    56
#define OP_RowData                             44
sl@0
    57
#define OP_MemMax                              45
sl@0
    58
#define OP_Or                                  60   /* same as TK_OR       */
sl@0
    59
#define OP_NotExists                           46
sl@0
    60
#define OP_Gosub                               47
sl@0
    61
#define OP_Divide                              81   /* same as TK_SLASH    */
sl@0
    62
#define OP_Integer                             48
sl@0
    63
#define OP_ToNumeric                          140   /* same as TK_TO_NUMERIC*/
sl@0
    64
#define OP_Prev                                49
sl@0
    65
#define OP_Concat                              83   /* same as TK_CONCAT   */
sl@0
    66
#define OP_BitAnd                              74   /* same as TK_BITAND   */
sl@0
    67
#define OP_VColumn                             50
sl@0
    68
#define OP_CreateTable                         51
sl@0
    69
#define OP_Last                                52
sl@0
    70
#define OP_IsNull                              65   /* same as TK_ISNULL   */
sl@0
    71
#define OP_IncrVacuum                          53
sl@0
    72
#define OP_IdxRowid                            54
sl@0
    73
#define OP_ShiftRight                          77   /* same as TK_RSHIFT   */
sl@0
    74
#define OP_ResetCount                          55
sl@0
    75
#define OP_FifoWrite                           56
sl@0
    76
#define OP_ContextPush                         57
sl@0
    77
#define OP_Yield                               58
sl@0
    78
#define OP_DropTrigger                         59
sl@0
    79
#define OP_DropIndex                           62
sl@0
    80
#define OP_IdxGE                               63
sl@0
    81
#define OP_IdxDelete                           64
sl@0
    82
#define OP_Vacuum                              73
sl@0
    83
#define OP_MoveLe                              84
sl@0
    84
#define OP_IfNot                               85
sl@0
    85
#define OP_DropTable                           86
sl@0
    86
#define OP_MakeRecord                          89
sl@0
    87
#define OP_ToBlob                             139   /* same as TK_TO_BLOB  */
sl@0
    88
#define OP_ResultRow                           90
sl@0
    89
#define OP_Delete                              91
sl@0
    90
#define OP_AggFinal                            92
sl@0
    91
#define OP_Compare                             93
sl@0
    92
#define OP_ShiftLeft                           76   /* same as TK_LSHIFT   */
sl@0
    93
#define OP_Goto                                94
sl@0
    94
#define OP_TableLock                           95
sl@0
    95
#define OP_FifoRead                            96
sl@0
    96
#define OP_Clear                               97
sl@0
    97
#define OP_MoveLt                              98
sl@0
    98
#define OP_Le                                  70   /* same as TK_LE       */
sl@0
    99
#define OP_VerifyCookie                        99
sl@0
   100
#define OP_AggStep                            100
sl@0
   101
#define OP_ToText                             138   /* same as TK_TO_TEXT  */
sl@0
   102
#define OP_Not                                 16   /* same as TK_NOT      */
sl@0
   103
#define OP_ToReal                             142   /* same as TK_TO_REAL  */
sl@0
   104
#define OP_SetNumColumns                      101
sl@0
   105
#define OP_Transaction                        102
sl@0
   106
#define OP_VFilter                            103
sl@0
   107
#define OP_Ne                                  67   /* same as TK_NE       */
sl@0
   108
#define OP_VDestroy                           104
sl@0
   109
#define OP_ContextPop                         105
sl@0
   110
#define OP_BitOr                               75   /* same as TK_BITOR    */
sl@0
   111
#define OP_Next                               106
sl@0
   112
#define OP_IdxInsert                          107
sl@0
   113
#define OP_Lt                                  71   /* same as TK_LT       */
sl@0
   114
#define OP_Insert                             108
sl@0
   115
#define OP_Destroy                            109
sl@0
   116
#define OP_ReadCookie                         110
sl@0
   117
#define OP_ForceInt                           111
sl@0
   118
#define OP_LoadAnalysis                       112
sl@0
   119
#define OP_Explain                            113
sl@0
   120
#define OP_OpenPseudo                         114
sl@0
   121
#define OP_OpenEphemeral                      115
sl@0
   122
#define OP_Null                               116
sl@0
   123
#define OP_Move                               117
sl@0
   124
#define OP_Blob                               118
sl@0
   125
#define OP_Add                                 78   /* same as TK_PLUS     */
sl@0
   126
#define OP_Rewind                             119
sl@0
   127
#define OP_MoveGe                             120
sl@0
   128
#define OP_VBegin                             121
sl@0
   129
#define OP_VUpdate                            122
sl@0
   130
#define OP_IfZero                             123
sl@0
   131
#define OP_BitNot                              87   /* same as TK_BITNOT   */
sl@0
   132
#define OP_VCreate                            124
sl@0
   133
#define OP_Found                              126
sl@0
   134
#define OP_IfPos                              127
sl@0
   135
#define OP_NullRow                            128
sl@0
   136
#define OP_Jump                               129
sl@0
   137
#define OP_Permutation                        130
sl@0
   138
sl@0
   139
/* The following opcode values are never used */
sl@0
   140
#define OP_NotUsed_131                        131
sl@0
   141
#define OP_NotUsed_132                        132
sl@0
   142
#define OP_NotUsed_133                        133
sl@0
   143
#define OP_NotUsed_134                        134
sl@0
   144
#define OP_NotUsed_135                        135
sl@0
   145
#define OP_NotUsed_136                        136
sl@0
   146
#define OP_NotUsed_137                        137
sl@0
   147
sl@0
   148
sl@0
   149
/* Properties such as "out2" or "jump" that are specified in
sl@0
   150
** comments following the "case" for each opcode in the vdbe.c
sl@0
   151
** are encoded into bitvectors as follows:
sl@0
   152
*/
sl@0
   153
#define OPFLG_JUMP            0x0001  /* jump:  P2 holds jmp target */
sl@0
   154
#define OPFLG_OUT2_PRERELEASE 0x0002  /* out2-prerelease: */
sl@0
   155
#define OPFLG_IN1             0x0004  /* in1:   P1 is an input */
sl@0
   156
#define OPFLG_IN2             0x0008  /* in2:   P2 is an input */
sl@0
   157
#define OPFLG_IN3             0x0010  /* in3:   P3 is an input */
sl@0
   158
#define OPFLG_OUT3            0x0020  /* out3:  P3 is an output */
sl@0
   159
#define OPFLG_INITIALIZER {\
sl@0
   160
/*   0 */ 0x00, 0x01, 0x00, 0x00, 0x10, 0x02, 0x11, 0x00,\
sl@0
   161
/*   8 */ 0x00, 0x00, 0x05, 0x02, 0x00, 0x00, 0x00, 0x00,\
sl@0
   162
/*  16 */ 0x04, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x05,\
sl@0
   163
/*  24 */ 0x00, 0x04, 0x02, 0x02, 0x02, 0x04, 0x00, 0x00,\
sl@0
   164
/*  32 */ 0x00, 0x00, 0x02, 0x11, 0x11, 0x02, 0x05, 0x00,\
sl@0
   165
/*  40 */ 0x02, 0x11, 0x04, 0x00, 0x00, 0x0c, 0x11, 0x01,\
sl@0
   166
/*  48 */ 0x02, 0x01, 0x00, 0x02, 0x01, 0x01, 0x02, 0x00,\
sl@0
   167
/*  56 */ 0x04, 0x00, 0x00, 0x00, 0x2c, 0x2c, 0x00, 0x11,\
sl@0
   168
/*  64 */ 0x00, 0x05, 0x05, 0x15, 0x15, 0x15, 0x15, 0x15,\
sl@0
   169
/*  72 */ 0x15, 0x00, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c,\
sl@0
   170
/*  80 */ 0x2c, 0x2c, 0x2c, 0x2c, 0x11, 0x05, 0x00, 0x04,\
sl@0
   171
/*  88 */ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,\
sl@0
   172
/*  96 */ 0x01, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x01,\
sl@0
   173
/* 104 */ 0x00, 0x00, 0x01, 0x08, 0x00, 0x02, 0x02, 0x05,\
sl@0
   174
/* 112 */ 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x01,\
sl@0
   175
/* 120 */ 0x11, 0x00, 0x00, 0x05, 0x00, 0x02, 0x11, 0x05,\
sl@0
   176
/* 128 */ 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
sl@0
   177
/* 136 */ 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x04,}