output.h (1a24391866da99f5bd929e0a904739918e3bdbb5) output.h (d982b3a5f69e6955ac2860c6fac1800229afa65a)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 44 unchanged lines hidden (view full) ---

53extern struct output output;
54extern struct output errout;
55extern struct output memout;
56extern struct output *out1;
57extern struct output *out2;
58
59void open_mem(char *, int, struct output *);
60void out1str(const char *);
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 44 unchanged lines hidden (view full) ---

53extern struct output output;
54extern struct output errout;
55extern struct output memout;
56extern struct output *out1;
57extern struct output *out2;
58
59void open_mem(char *, int, struct output *);
60void out1str(const char *);
61void out1qstr(const char *);
61void out2str(const char *);
62void out2str(const char *);
63void out2qstr(const char *);
62void outstr(const char *, struct output *);
64void outstr(const char *, struct output *);
65void outqstr(const char *, struct output *);
63void emptyoutbuf(struct output *);
64void flushall(void);
65void flushout(struct output *);
66void freestdout(void);
67void outfmt(struct output *, const char *, ...) __printflike(2, 3);
68void out1fmt(const char *, ...) __printflike(1, 2);
69void dprintf(const char *, ...) __printflike(1, 2);
70void fmtstr(char *, int, const char *, ...) __printflike(3, 4);
71void doformat(struct output *, const char *, va_list) __printflike(2, 0);
72int xwrite(int, char *, int);
73
74#define outc(c, file) (--(file)->nleft < 0? (emptyoutbuf(file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c)))
75#define out1c(c) outc(c, out1);
76#define out2c(c) outc(c, out2);
77
78#define OUTPUT_INCL
79#endif
66void emptyoutbuf(struct output *);
67void flushall(void);
68void flushout(struct output *);
69void freestdout(void);
70void outfmt(struct output *, const char *, ...) __printflike(2, 3);
71void out1fmt(const char *, ...) __printflike(1, 2);
72void dprintf(const char *, ...) __printflike(1, 2);
73void fmtstr(char *, int, const char *, ...) __printflike(3, 4);
74void doformat(struct output *, const char *, va_list) __printflike(2, 0);
75int xwrite(int, char *, int);
76
77#define outc(c, file) (--(file)->nleft < 0? (emptyoutbuf(file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c)))
78#define out1c(c) outc(c, out1);
79#define out2c(c) outc(c, out2);
80
81#define OUTPUT_INCL
82#endif