| 21312 | } |
| 21313 | |
| 21314 | static int budget_doc_int(yyjson_doc *doc, const char *key, int missing) { |
| 21315 | yyjson_val *val = doc ? yyjson_obj_get(yyjson_doc_get_root(doc), key) : NULL; |
| 21316 | return val && yyjson_is_int(val) ? (int)yyjson_get_int(val) : missing; |
| 21317 | } |
| 21318 | |
| 21319 | /* Decision A (#1997 #832): an attempt that stays over the memory budget after |
| 21320 | * back-pressure fails WHOLE and the response says so — reason, numbers, hint, |