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 () |
void | xb_opcode_unref () |
XbOpcode * | xb_opcode_ref () |
XbOpcodeKind | xb_opcode_get_kind () |
const gchar * | xb_opcode_get_str () |
guint32 | xb_opcode_get_val () |
XbOpcode * | xb_opcode_func_new () |
XbOpcode * | xb_opcode_integer_new () |
XbOpcode * | xb_opcode_text_new () |
XbOpcode * | xb_opcode_text_new_static () |
XbOpcode * | xb_opcode_text_new_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
void
xb_opcode_unref (XbOpcode *self
);
Decrements the reference count of the opcode, freeing the object when the refcount drops to zero.
Since: 0.1.1
XbOpcode *
xb_opcode_ref (XbOpcode *self
);
Increments the refcount of the opcode.
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
XbOpcode *
xb_opcode_func_new (guint32 func
);
Creates an opcode for a specific function. Custom functions can be registered
using xb_machine_add_func()
and retrieved using xb_machine_opcode_func_new()
.
Since: 0.1.1
XbOpcode *
xb_opcode_integer_new (guint32 val
);
Creates an opcode with an literal integer.
Since: 0.1.1
XbOpcode *
xb_opcode_text_new (const gchar *str
);
Creates a new text literal opcode. The str
argument is copied internally
and is not tied to the lifecycle of the XbOpcode.
Since: 0.1.1
XbOpcode *
xb_opcode_text_new_static (const gchar *str
);
Creates a new text literal opcode, where str
is either static text or will
outlive the XbOpcode lifecycle.
Since: 0.1.1