File: 0002-print-stats.ml-replace-Bi_outbuf-by-Buffer.patch

package info (click to toggle)
botch 0.24-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,084,624 kB
  • sloc: xml: 11,924,892; ml: 4,489; python: 3,890; sh: 1,268; makefile: 334
file content (25 lines) | stat: -rw-r--r-- 704 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Johannes Schauer Marin Rodrigues <josch@debian.org>
Date: Thu, 13 Feb 2025 19:26:53 +0100
Subject: print-stats.ml: replace Bi_outbuf by Buffer

---
 print-stats.ml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/print-stats.ml b/print-stats.ml
index 650215c..4a9c634 100644
--- a/print-stats.ml
+++ b/print-stats.ml
@@ -199,9 +199,9 @@ let main () =
    *
    * https://github.com/mjambon/atdgen/issues/43
    * *)
-  let ob = Bi_outbuf.create_channel_writer stdout in
-  Datatypes_j.write_stats ob result;
-  Bi_outbuf.flush_channel_writer ob;
+  let buf = Buffer.create 1000 in
+  Datatypes_j.write_stats buf result;
+  Buffer.output_buffer stdout buf;
 ;;
 
 main ();;