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

2nd order functions

This commit is contained in:
Stephen Dolan
2012-08-26 14:25:56 +01:00
parent befb103a12
commit a847d2250f
7 changed files with 82 additions and 15 deletions

View File

@@ -13,6 +13,9 @@ static int bytecode_operation_length(uint16_t* codeptr) {
}
void dump_disassembly(int indent, struct bytecode* bc) {
if (bc->nclosures > 0) {
printf("%*s[params: %d]\n", indent, "", bc->nclosures);
}
dump_code(indent, bc);
for (int i=0; i<bc->nsubfunctions; i++) {
printf("%*ssubfn[%d]:\n", indent, "", i);