summaryrefslogtreecommitdiff
path: root/src/shake.sml
diff options
context:
space:
mode:
Diffstat (limited to 'src/shake.sml')
-rw-r--r--src/shake.sml7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/shake.sml b/src/shake.sml
index dde131fc..787500ea 100644
--- a/src/shake.sml
+++ b/src/shake.sml
@@ -79,6 +79,7 @@ fun shake file =
in
(usedE, usedC)
end
+ | ((DInitializer e, _), st) => usedVars st e
| (_, acc) => acc) (IS.empty, IS.empty) file
val (cdef, edef) = foldl (fn ((DCon (_, n, _, c), _), (cdef, edef)) => (IM.insert (cdef, n, [c]), edef)
@@ -104,7 +105,8 @@ fun shake file =
| ((DCookie (_, n, c, _), _), (cdef, edef)) =>
(cdef, IM.insert (edef, n, ([], c, dummye)))
| ((DStyle (_, n, _), _), (cdef, edef)) =>
- (cdef, IM.insert (edef, n, ([], dummyt, dummye))))
+ (cdef, IM.insert (edef, n, ([], dummyt, dummye)))
+ | ((DInitializer _, _), acc) => acc)
(IM.empty, IM.empty) file
fun kind (_, s) = s
@@ -183,7 +185,8 @@ fun shake file =
| (DTable _, _) => true
| (DDatabase _, _) => true
| (DCookie _, _) => true
- | (DStyle _, _) => true) file
+ | (DStyle _, _) => true
+ | (DInitializer _, _) => true) file
end
end