| libxexpr Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <libxexpr/xexpr.h>
void xexpr_constant_dump_string (XexprConstant *constant,
GString *str);
void xexpr_constants_dump_string (GSList *constants,
GString *str);
void xexpr_dump_string (Xexpr *xexpr,
GString *str);
void xexpr_constant_dump (XexprConstant *constant,
FILE *fp);
void xexpr_constants_dump (GSList *constants,
FILE *fp);
void xexpr_dump (Xexpr *xexpr,
FILE *fp);
void xexpr_stack_dump (Xexpr *xexpr,
FILE *fp);
void xexpr_constant_dump_string (XexprConstant *constant,
GString *str);
Dumps constant to the given str in XML format. For invocation, string
and numeric types, XEXPR itself is used as the dump format (with explicit
type tags). Function definitions cannot be expressed in XEXPR (which
requires that functions be given a name), so we get as close as we can
and use a <define> element without the required name attribute.
|
an XexprConstant to dump |
|
the string to dump to |
void xexpr_constants_dump_string (GSList *constants, GString *str);
Dumps constants to the given str in XML format one after the other,
thus forming an XML fragment.
See xexpr_constant_dump_string() for details of the XML format used.
|
transfer none) (element-type XexprConstant. transfer none. element-type XexprConstant. |
|
the string to dump to |
void xexpr_dump_string (Xexpr *xexpr,
GString *str);
Dumps xexpr to the given str in XML format. If xexpr contains multiple
constants, this will result in an XML fragment.
See xexpr_constant_dump_string() for details of the XML format used.
|
an Xexpr to dump |
|
the string to dump to |
void xexpr_constant_dump (XexprConstant *constant,
FILE *fp);
Dumps constant to the given fp in XML format.
See xexpr_constant_dump_string() for details of the XML format used.
|
an XexprConstant to dump |
|
the FILE to dump to |
void xexpr_constants_dump (GSList *constants, FILE *fp);
Dumps constants to the given fp in XML format one after the other,
thus forming an XML fragment.
See xexpr_constant_dump_string() for details of the XML format used.
|
transfer none) (element-type XexprConstant. transfer none. element-type XexprConstant. |
|
the FILE to dump to |
void xexpr_dump (Xexpr *xexpr,
FILE *fp);
Dumps xexpr to the given fp in XML format. If xexpr contains multiple
constants, this will result in an XML fragment.
See xexpr_constant_dump_string() for details of the XML format used.
|
an Xexpr to dump |
|
the FILE to dump to |
void xexpr_stack_dump (Xexpr *xexpr,
FILE *fp);
Dumps the current stack of xexpr to the given fp in human readable format.
The environments of the various invoked functions will be given in order
starting with the innermost (#0). For each environment, the variables
defined there will be given along with their current values. Global
variables are contained in the outermost environment.
|
an Xexpr whose stack you wish to dump |
|
the FILE to dump to |