opcodes.h
上传用户:sunhongbo
上传日期:2022-01-25
资源大小:3010k
文件大小:9k
源码类别:

数据库系统

开发平台:

C/C++

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