comparison src/cgi.sml @ 1307:d2ad997ca157

Interface for setting memory limits
author Adam Chlipala <adam@chlipala.net>
date Thu, 14 Oct 2010 11:06:26 -0400
parents 8679ba87cf3c
children c414850f206f
comparison
equal deleted inserted replaced
1306:3a845f2ce9e9 1307:d2ad997ca157
34 compile = "", 34 compile = "",
35 linkStatic = Config.lib ^ "/../liburweb_cgi.a", 35 linkStatic = Config.lib ^ "/../liburweb_cgi.a",
36 linkDynamic = "-lurweb_cgi", 36 linkDynamic = "-lurweb_cgi",
37 persistent = false, 37 persistent = false,
38 code = fn () => box [string "void uw_global_custom() {", 38 code = fn () => box [string "void uw_global_custom() {",
39 newline,
40 case getSigFile () of 39 case getSigFile () of
41 NONE => box [] 40 NONE => box []
42 | SOME sf => box [string "extern char *uw_sig_file;", 41 | SOME sf => box [string "extern char *uw_sig_file;",
43 newline, 42 newline,
44 string "uw_sig_file = \"", 43 string "uw_sig_file = \"",
45 string sf, 44 string sf,
46 string "\";", 45 string "\";",
47 newline], 46 newline],
47 string "uw_setup_limits();",
48 newline,
48 string "}", 49 string "}",
49 newline]} 50 newline]}
50 51
51 end 52 end