mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Clean up comments and variable names prior to merge.
FossilOrigin-Name: 6445519e91c4f98b4a9a45d5091d733c31497ebf0eb23a76edce3091f626035d
This commit is contained in:
11
src/vdbe.c
11
src/vdbe.c
@@ -2197,7 +2197,7 @@ case OP_Or: { /* same as TK_OR, in1, in2, out3 */
|
||||
** This opcode implements the IS TRUE, IS FALSE, IS NOT TRUE, and
|
||||
** IS NOT FALSE operators.
|
||||
**
|
||||
** Interpret the value in register P1 as a boolean value. Store the that
|
||||
** Interpret the value in register P1 as a boolean value. Store that
|
||||
** boolean (a 0 or 1) in register P2. Or if the value in register P1 is
|
||||
** NULL, then the P3 is stored in register P2. Invert the answer if P4
|
||||
** is 1.
|
||||
@@ -2205,15 +2205,16 @@ case OP_Or: { /* same as TK_OR, in1, in2, out3 */
|
||||
** The logic is summarized like this:
|
||||
**
|
||||
** <ul>
|
||||
** <li> P3==0, P4==0 → r[P2] = r[P1] IS TRUE
|
||||
** <li> P3==1, P4==1 → r[P2] = r[P1] IS FALSE
|
||||
** <li> P3==0, P4==1 → r[P2] = r[P1] IS NOT TRUE
|
||||
** <li> P3==1, P4==0 → r[P2] = r[P1] IS NOT FALSE
|
||||
** <li> If P3==0 and P4==0 then r[P2] := r[P1] IS TRUE
|
||||
** <li> If P3==1 and P4==1 then r[P2] := r[P1] IS FALSE
|
||||
** <li> If P3==0 and P4==1 then r[P2] := r[P1] IS NOT TRUE
|
||||
** <li> If P3==1 and P4==0 then r[P2] := r[P1] IS NOT FALSE
|
||||
** </ul>
|
||||
*/
|
||||
case OP_IsTrue: { /* in1, out2 */
|
||||
assert( pOp->p4type==P4_INT32 );
|
||||
assert( pOp->p4.i==0 || pOp->p4.i==1 );
|
||||
assert( pOp->p3==0 || pOp->p3==1 );
|
||||
sqlite3VdbeMemSetInt64(&aMem[pOp->p2],
|
||||
sqlite3VdbeBooleanValue(&aMem[pOp->p1], pOp->p3) ^ pOp->p4.i);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user