Macaulay2 Engine
Loading...
Searching...
No Matches
text-io.hpp
Go to the documentation of this file.
1// (c) 1994 Michael E. Stillman
2#ifndef _text_io_hh_
3#define _text_io_hh_
4
35
36#include "buffer.hpp"
37#include "engine-includes.hpp"
38
39extern int i_text_io();
40
41#define wrapping_prefix " -- "
42
43void bignum_text_out(buffer &o, mpz_srcptr a);
44
45void clear_emit_size();
46void emit_wrapped(const char *s);
47inline void emit_wrapped(int prlevel, const char *s)
48{
49 if (M2_gbTrace >= prlevel) emit_wrapped(s);
50}
51
52void emit(const char *s); // print onto stderr, or cerr.
53void emit_line(const char *s); // print onto stderr, or cerr.
54#endif
55
56// Local Variables:
57// compile-command: "make -C $M2BUILDDIR/Macaulay2/e "
58// indent-tabs-mode: nil
59// End:
Append-only GC-backed byte buffer used throughout the engine for text output.
Engine-wide include prelude — a single point of truth for portability shims.
void size_t s
Definition m2-mem.cpp:271
int M2_gbTrace
Definition m2-types.cpp:52
void emit_wrapped(const char *s)
Definition text-io.cpp:27
int i_text_io()
void bignum_text_out(buffer &o, mpz_srcptr a)
Definition text-io.cpp:12
void emit_line(const char *s)
Definition text-io.cpp:47
void emit(const char *s)
Definition text-io.cpp:41
void clear_emit_size()
Definition text-io.cpp:26