~sbinet/star-tex-patches

[PATCH star-tex 2/3] internal/ctex: use fnames in lieu of iostream for ctex-api

Details
Message ID
<WTwfa075DJDDzqBaTbTAWzzfjXGGW7QBdvZOyCTm8@cp7-web-043.plabs.ch>
DKIM signature
missing
Download raw message
Patch: +1 -5
Signed-off-by: Sebastien Binet <s@sbinet.org>
---
 internal/ctex/ctex-api.cc | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/internal/ctex/ctex-api.cc b/internal/ctex/ctex-api.cc
index 5427e9a..c19bc60 100644
--- a/internal/ctex/ctex-api.cc
+++ b/internal/ctex/ctex-api.cc
@@ -31,11 +31,7 @@ ctex_context_typeset(context_t ctx,
		const char* err_oname) {
	auto ctex = to_tex(ctx);

	auto tex_file = std::ifstream(tex_fname);
	auto dvi_file = std::ofstream(dvi_oname);
	auto err_file = std::ofstream(err_oname);

	ctex->typeset(tex_file, dvi_file, search_dir, working_dir, err_file);
	ctex->typeset(tex_fname, dvi_oname, search_dir, working_dir, err_oname);

	return 0;
}
-- 
2.30.1
Reply to thread Export thread (mbox)