diff src/cjr_print.sml @ 2209:0ca11d57c175

Cleans up interface (it's now a command line option) and renames project to "sqlcache" in the all-one-word style. Still has issues to do with concurrency, retrying transactions, and foreign function calls that either rely on state or have side effects.
author Ziv Scully <ziv@mit.edu>
date Sat, 31 May 2014 03:08:16 -0400
parents 01c8aceac480
children ef766ef6e242
line wrap: on
line diff
--- a/src/cjr_print.sml	Fri May 30 12:00:44 2014 -0400
+++ b/src/cjr_print.sml	Sat May 31 03:08:16 2014 -0400
@@ -3388,9 +3388,9 @@
                                   newline,
                                   string "static uw_Basis_bool uw_Cache_check",
                                   string i,
-                                  string "(uw_context ctx) { puts(\"Checked ",
+                                  string "(uw_context ctx) { puts(\"Checked cache ",
                                   string i,
-                                  string "\"); if (cache",
+                                  string ".\"); if (cache",
                                   string i,
                                   string " == NULL) { uw_recordingStart(ctx); return uw_Basis_False; } else { uw_write(ctx, cache",
                                   string i,
@@ -3400,9 +3400,9 @@
                                   string i,
                                   string "(uw_context ctx) { cache",
                                   string i,
-                                  string " = uw_recordingRead(ctx); puts(\"Stored ",
+                                  string " = uw_recordingRead(ctx); puts(\"Stored cache ",
                                   string i,
-                                  string "\"); return uw_unit_v; };",
+                                  string ".\"); return uw_unit_v; };",
                                   newline,
                                   string "static uw_unit uw_Cache_flush",
                                   string i,
@@ -3410,9 +3410,9 @@
                                   string i,
                                   string "); cache",
                                   string i,
-                                  string " = NULL; puts(\"Flushed ",
+                                  string " = NULL; puts(\"Flushed cache ",
                                   string i,
-                                  string "\"); return uw_unit_v; };",
+                                  string ".\"); return uw_unit_v; };",
                                   newline,
                                   string "static uw_unit uw_Cache_ready",
                                   string i,
@@ -3420,7 +3420,7 @@
                                   newline,
                                   newline]
                           end)
-                      (!SqlCache.ffiIndices)),
+                      (!Sqlcache.ffiIndices)),
              newline,
 
              p_list_sep newline (fn x => x) pds,