diff src/cjr_print.sml @ 376:6fd102fa28f9

Simple generation of persistent paths
author Adam Chlipala <adamc@hcoop.net>
date Sun, 19 Oct 2008 11:11:49 -0400
parents e976b187d73a
children 78358e5df273
line wrap: on
line diff
--- a/src/cjr_print.sml	Thu Oct 16 17:31:24 2008 -0400
+++ b/src/cjr_print.sml	Sun Oct 19 11:11:49 2008 -0400
@@ -1998,7 +1998,13 @@
              newline,
              newline,
              validate,
-             newline]
+             newline,
+             if List.exists (fn (DDatabase _, _) => true | _ => false) ds then
+                 box []
+             else
+                 box [newline,
+                      string "void uw_db_init(uw_context ctx) { };",
+                      newline]]
     end
 
 fun p_sql env (ds, _) =