Generic print mode.
authorwenzelm
Tue, 17 Jul 2007 13:19:39 +0200
changeset 23827 0f0d1cf4992d
parent 23826 463903573934
child 23828 a8a3962f8eeb
Generic print mode.
src/Pure/General/print_mode.ML
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Pure/General/print_mode.ML	Tue Jul 17 13:19:39 2007 +0200
@@ -0,0 +1,23 @@
+(*  Title:      Pure/General/print_mode.ML
+    ID:         $Id$
+    Author:     Makarius
+
+Generic print mode -- implicit configuration for various output
+mechanisms.
+*)
+
+signature PRINT_MODE =
+sig
+  val print_mode: string list ref
+  val print_mode_active: string -> bool
+end;
+
+structure PrintMode: PRINT_MODE =
+struct
+
+val print_mode = ref ([]: string list);
+fun print_mode_active s = member (op =) (! print_mode) s;
+
+end;
+
+open PrintMode;