comparison src/lru_cache.sml @ 2262:34ad83d9b729

Fix recording bugs to do with nesting and buffer reallocation. Stop MonoFooify printing spurious errors.
author Ziv Scully <ziv@mit.edu>
date Wed, 07 Oct 2015 08:58:08 -0400
parents b1ba35ce2613
children a647a1560628
comparison
equal deleted inserted replaced
2261:f81f1930c5d6 2262:34ad83d9b729
89 newline, 89 newline,
90 string (" char *ks[] = {" ^ revArgs ^ "};"), 90 string (" char *ks[] = {" ^ revArgs ^ "};"),
91 newline, 91 newline,
92 string (" uw_Sqlcache_CacheValue *v = uw_Sqlcache_check(cache" ^ i ^ ", ks);"), 92 string (" uw_Sqlcache_CacheValue *v = uw_Sqlcache_check(cache" ^ i ^ ", ks);"),
93 newline, 93 newline,
94 string " if (v) {", 94 (* If the output is null, it means we had too much recursion, so it's a miss. *)
95 string " if (v && v->output != NULL) {",
95 newline, 96 newline,
96 string (" puts(\"SQLCACHE: hit " ^ i ^ ".\");"), 97 string (" puts(\"SQLCACHE: hit " ^ i ^ ".\");"),
97 newline, 98 newline,
98 string " uw_write(ctx, v->output);", 99 string " uw_write(ctx, v->output);",
99 newline, 100 newline,