12345678910111213141516171819202122232425262728293031323334353637383940414243(**************************************************************************)(* *)(* OCaml *)(* *)(* Xavier Leroy and Pierre Weis, projet Cristal, INRIA Rocquencourt *)(* *)(* Copyright 1996 Institut National de Recherche en Informatique et *)(* en Automatique. *)(* *)(* All rights reserved. This file is distributed under the terms of *)(* the GNU Lesser General Public License version 2.1, with the *)(* special exception on linking described in the file LICENSE. *)(* *)(**************************************************************************)openCamlinternalFormatBasicsopenCamlinternalFormatletkfprintfko(Format(fmt,_))=make_printf(funacc->output_accoacc;ko)End_of_accfmtletkbprintfkb(Format(fmt,_))=make_printf(funacc->bufput_accbacc;kb)End_of_accfmtletikfprintfkoc(Format(fmt,_))=make_iprintfkocfmtletikbprintf=ikfprintfletfprintfocfmt=kfprintfignoreocfmtletbprintfbfmt=kbprintfignorebfmtletifprintfocfmt=ikfprintfignoreocfmtletibprintfbfmt=ikbprintfignorebfmtletprintffmt=fprintfstdoutfmtleteprintffmt=fprintfstderrfmtletksprintfk(Format(fmt,_))=letk'acc=letbuf=Buffer.create64instrput_accbufacc;k(Buffer.contentsbuf)inmake_printfk'End_of_accfmtletsprintffmt=ksprintf(funs->s)fmtletkprintf=ksprintf