Top |
gboolean | xb_opcode_cmp_val () |
gboolean | xb_opcode_cmp_str () |
gchar * | xb_opcode_to_string () |
const gchar * | xb_opcode_kind_to_string () |
XbOpcodeKind | xb_opcode_kind_from_string () |
XbOpcodeKind | xb_opcode_get_kind () |
const gchar * | xb_opcode_get_str () |
guint32 | xb_opcode_get_val () |
void | xb_opcode_func_init () |
void | xb_opcode_integer_init () |
void | xb_opcode_text_init () |
void | xb_opcode_text_init_static () |
void | xb_opcode_text_init_steal () |
gboolean
xb_opcode_cmp_val (XbOpcode *self
);
Checks if the opcode can be compared using the integer value.
Since: 0.1.1
gboolean
xb_opcode_cmp_str (XbOpcode *self
);
Checks if the opcode can be compared using the string value.
Since: 0.1.1
gchar *
xb_opcode_to_string (XbOpcode *self
);
Returns a string representing the specific opcode.
Since: 0.1.4
const gchar *
xb_opcode_kind_to_string (XbOpcodeKind kind
);
Converts the opcode kind to a string.
Since: 0.1.1
XbOpcodeKind
xb_opcode_kind_from_string (const gchar *str
);
Converts a string to an opcode kind.
Since: 0.1.1
XbOpcodeKind
xb_opcode_get_kind (XbOpcode *self
);
Gets the opcode kind.
Since: 0.1.1
const gchar *
xb_opcode_get_str (XbOpcode *self
);
Gets the string value stored on the opcode.
Since: 0.1.1
guint32
xb_opcode_get_val (XbOpcode *self
);
Gets the integer value stored in the opcode. This may be a function ID, a index into the string table or a literal integer.
Since: 0.1.1
void xb_opcode_func_init (XbOpcode *self
,guint32 func
);
Initialises a stack allocated XbOpcode to contain a specific function.
Custom functions can be registered using xb_machine_add_func()
and retrieved
using xb_machine_opcode_func_new()
.
Since: 0.2.0
void xb_opcode_integer_init (XbOpcode *self
,guint32 val
);
Initialises a stack allocated XbOpcode to contain an integer literal.
Since: 0.2.0
void xb_opcode_text_init (XbOpcode *self
,const gchar *str
);
Initialises a stack allocated XbOpcode to contain a text literal.
The str
argument is copied internally and is not tied to the lifecycle of
the XbOpcode.
Since: 0.2.0
void xb_opcode_text_init_static (XbOpcode *self
,const gchar *str
);
Initialises a stack allocated XbOpcode to contain a text literal, where
str
is either static text or will outlive the XbOpcode lifecycle.
Since: 0.2.0