OSDN Git Service

Merge branch 'swflib' of git@github.com:mzp/scheme-abc into swflib
authormzp <mzpppp@gmail.com>
Thu, 17 Sep 2009 23:25:29 +0000 (08:25 +0900)
committermzp <mzpppp@gmail.com>
Thu, 17 Sep 2009 23:25:29 +0000 (08:25 +0900)
Conflicts:
swflib/OMakefile
swflib/bytesIn.ml
swflib/bytesIn.mli

1  2 
swflib/OMakefile
swflib/bytesIn.ml

@@@ -6,8 -6,8 +6,9 @@@ OCAMLPACKS[] 
        str
  
  FILES[] =
+       bytesIn
        bytesOut
 +      bytesIn
        label
        abcType
        abcOut
@@@ -10,12 -10,12 +10,11 @@@ let rec repeat n f stream 
        | [<>] ->
          raise (Stream.Error "invalid format")
  
 -
  let of_channel ch =
-   Stream.from (fun _ ->
-                try
-                  Some (input_byte ch)
-                with End_of_file ->
-                  None)
+   Stream.from (fun _ -> try
+                Some (input_byte ch)
+              with End_of_file ->
+                None)
  
  let (++) x y =
    (x lsl 8) + y
@@@ -75,5 -75,4 +74,3 @@@ let d64 
        [<d = repeat 8 byte>] ->
          Int64.float_of_bits @@ List.fold_right shift_or d 0L
  
- let sample () =
-   Stream.of_list @@ range 0 10
 -