From: Kim Nguyễn Date: Thu, 12 Apr 2012 16:08:18 +0000 (+0200) Subject: Encapsulate serialization results around with ... X-Git-Url: http://git.nguyen.vg/gitweb/?p=SXSI%2Fxpathcomp.git;a=commitdiff_plain;h=577e04ded43baa0582530316da40777884031dc8 Encapsulate serialization results around with ... --- diff --git a/src/nodeSet.ml b/src/nodeSet.ml index ad3768b..142476b 100644 --- a/src/nodeSet.ml +++ b/src/nodeSet.ml @@ -192,8 +192,10 @@ module Mat : S with type t = Tree.node mat = Unix.openfile name [ Unix.O_WRONLY; Unix.O_TRUNC; Unix.O_CREAT ] 0o666, Unix.close in + ignore (Unix.write fd "\n" 0 13); iter (fun node -> Tree.print_xml v node fd) l; Tree.flush v fd; + ignore (Unix.write fd "\n" 0 14); finish fd end