summaryrefslogtreecommitdiff
path: root/src/lru_cache.sml
diff options
context:
space:
mode:
authorGravatar Ziv Scully <ziv@mit.edu>2015-09-13 16:02:45 -0400
committerGravatar Ziv Scully <ziv@mit.edu>2015-09-13 16:02:45 -0400
commit46fe4e62ddefd8f79f4a29f7a273f585436d3c85 (patch)
treef6f9a9c57702517edc66c096a50efe0a6e7dca46 /src/lru_cache.sml
parent6aadea0202190d17a35f289f984eb19ec8116672 (diff)
Start work on pure expression caching.
Diffstat (limited to 'src/lru_cache.sml')
-rw-r--r--src/lru_cache.sml12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lru_cache.sml b/src/lru_cache.sml
index 26590312..0030777f 100644
--- a/src/lru_cache.sml
+++ b/src/lru_cache.sml
@@ -64,7 +64,7 @@ fun setupQuery {index, params} =
in
Print.box
- [string ("static uw_sqlcache_Cache cacheStruct" ^ i ^ " = {"),
+ [string ("static uw_Sqlcache_Cache cacheStruct" ^ i ^ " = {"),
newline,
string " .table = NULL,",
newline,
@@ -74,7 +74,7 @@ fun setupQuery {index, params} =
newline,
string (" .height = " ^ Int.toString (params - 1) ^ "};"),
newline,
- string ("static uw_sqlcache_Cache *cache" ^ i ^ " = &cacheStruct" ^ i ^ ";"),
+ string ("static uw_Sqlcache_Cache *cache" ^ i ^ " = &cacheStruct" ^ i ^ ";"),
newline,
newline,
@@ -83,7 +83,7 @@ fun setupQuery {index, params} =
newline,
string (" char *ks[] = {" ^ revArgs ^ "};"),
newline,
- string (" uw_sqlcache_CacheValue *v = uw_sqlcache_check(cache" ^ i ^ ", ks);"),
+ string (" uw_Sqlcache_CacheValue *v = uw_Sqlcache_check(cache" ^ i ^ ", ks);"),
newline,
string " if (v) {",
newline,
@@ -112,7 +112,7 @@ fun setupQuery {index, params} =
newline,
string (" char *ks[] = {" ^ revArgs ^ "};"),
newline,
- string (" uw_sqlcache_CacheValue *v = malloc(sizeof(uw_sqlcache_CacheValue));"),
+ string (" uw_Sqlcache_CacheValue *v = malloc(sizeof(uw_Sqlcache_CacheValue));"),
newline,
string " v->result = strdup(s);",
newline,
@@ -120,7 +120,7 @@ fun setupQuery {index, params} =
newline,
string (" puts(\"SQLCACHE: stored " ^ i ^ ".\");"),
newline,
- string (" uw_sqlcache_store(cache" ^ i ^ ", ks, v);"),
+ string (" uw_Sqlcache_store(cache" ^ i ^ ", ks, v);"),
newline,
string " return uw_unit_v;",
newline,
@@ -133,7 +133,7 @@ fun setupQuery {index, params} =
newline,
string (" char *ks[] = {" ^ revArgs ^ "};"),
newline,
- string (" uw_sqlcache_flush(cache" ^ i ^ ", ks);"),
+ string (" uw_Sqlcache_flush(cache" ^ i ^ ", ks);"),
newline,
string " return uw_unit_v;",
newline,