Source.of_list: no buffer limitation (now pointless due to tail-recursive Scan.repeat);
authorwenzelm
Mon, 10 May 2004 19:26:11 +0200
changeset 14727 ab06e87e5c83
parent 14726 9657c23cc3e7
child 14728 df34201f1a15
Source.of_list: no buffer limitation (now pointless due to tail-recursive Scan.repeat);
src/Pure/General/source.ML
--- a/src/Pure/General/source.ML	Mon May 10 19:25:59 2004 +0200
+++ b/src/Pure/General/source.ML	Mon May 10 19:26:11 2004 +0200
@@ -102,12 +102,7 @@
 
 (* list source *)
 
-(*limiting the input buffer considerably improves performance*)
-val limit = 4000;
-
-fun drain_list _ xs = (take (limit, xs), drop (limit, xs));
-
-fun of_list xs = make_source [] xs default_prompt drain_list;
+fun of_list xs = make_source [] xs default_prompt (fn _ => fn xs => (xs, []));
 val of_string = of_list o explode;
 
 fun exhausted src = of_list (exhaust src);