1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

TCO to the max!

Close #446.

    Currently tested by disassembling and tracing various recursive jq
    programs by hand under valgrind.  An improved test framework that
    can test for errors and specific bytecode patterns is in
    development.
This commit is contained in:
Nicolas Williams
2014-06-30 23:41:20 -05:00
parent e1c5a2f575
commit 436941d48b
4 changed files with 81 additions and 18 deletions

View File

@@ -83,6 +83,7 @@ struct bytecode {
void dump_disassembly(int, struct bytecode* code);
void dump_operation(struct bytecode* bc, uint16_t* op);
int bytecode_operation_length(uint16_t* codeptr);
void bytecode_free(struct bytecode* bc);
#endif