#include <stdint.h>
Go to the source code of this file.
§ OperandStack
§ OperandType
§ OperandType
Enumerator |
---|
OP_INTEGER | |
OP_FLOAT | |
OP_LONG | |
OP_DOUBLE | |
OP_NULL | |
OP_REFERENCE | |
OP_RETURNADDRESS | |
§ freeOperandStack()
Free all the elements of the OperandStack passed as parameter by reference.
- Parameters
-
§ popOperand()
Pop the operand out of the top of OperandStack passed as parameter by reference.
- Parameters
-
OperandStack** | os - pointer to the OperandStack. |
int32_t* | outPtr - value of the operand that will be popped. |
OperandType | outType - type of the operand that will be popped. |
- Returns
- 0 if the pop operation was not successful, 1 otherwise.
§ pushOperand()
Push the operand on the top of OperandStack passed as parameter by reference.
- Parameters
-
OperandStack** | os - pointer to the OperandStack where the operand will be pushed. |
int32_t | value - value of the operand. |
OperandType | type - type of the operand that will be pushed |
- Returns
- 0 if OperandStack* node is NULL, in other words, if the push was not successful, 1 otherwise