![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
VM opcode snippet for parsing XML text into a document handle. More...
Go to the source code of this file.
Functions | |
| if (!xml_inited) | |
| free_value (vtext) | |
| free (text) | |
| if (doc) | |
| push_value (vm, make_int(h)) | |
Variables | |
| case | OP_XML_PARSE |
| Value | vtext = pop_value(vm) |
| char * | text = value_to_string_alloc(&vtext) |
| xmlDocPtr | doc = xmlReadMemory(text, (int)strlen(text), NULL, NULL, XML_PARSE_NONET) |
| int | h = 0 |
| break | |
VM opcode snippet for parsing XML text into a document handle.
This snippet is included by vm.c and implements OP_XML_PARSE.
Opcode: OP_XML_PARSE
Notes
Example
Definition in file parse.c.
| free | ( | text | ) |
| free_value | ( | vtext | ) |
| char* text = value_to_string_alloc(&vtext) |