1234567891011121314151617181920212223242526272829303132333435363738394041(**************************************************************************)(* *)(* 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_iprintfkocfmtletfprintfocfmt=kfprintfignoreocfmtletbprintfbfmt=kbprintfignorebfmtletifprintfocfmt=ikfprintfignoreocfmtletprintffmt=fprintfstdoutfmtleteprintffmt=fprintfstderrfmtletksprintfk(Format(fmt,_))=letk'acc=letbuf=Buffer.create64instrput_accbufacc;k(Buffer.contentsbuf)inmake_printfk'End_of_accfmtletsprintffmt=ksprintf(funs->s)fmtletkprintf=ksprintf