Top |
gchar *
xb_stack_to_string (XbStack *self
);
Returns a string representing a stack.
Since: 0.1.4
gboolean xb_stack_pop (XbStack *self
,XbOpcode *opcode_out
,GError **error
);
Pops an opcode off the stack.
self |
a XbStack |
|
opcode_out |
return location for the popped XbOpcode. |
[out caller-allocates][optional] |
error |
a GError, or |
Since: 0.2.0
gboolean xb_stack_push (XbStack *self
,XbOpcode **opcode_out
,GError **error
);
Pushes a new empty opcode onto the end of the stack. A pointer to the opcode
is returned in opcode_out
so that the caller can initialise it. This must be
done before the stack is next used as, for performance reasons, the newly
pushed opcode is not zero-initialised.
self |
a XbStack |
|
opcode_out |
return location for the new XbOpcode. |
[out][nullable] |
error |
a GError, or |
Since: 0.2.0