output.h (29d0dcddabe2e065416423a79fb2b29d6ceb6307) output.h (aeb5d065044ee6733a7fee14edb52959a28c1ab4)
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

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

49
50extern struct output output; /* to fd 1 */
51extern struct output errout; /* to fd 2 */
52extern struct output memout;
53extern struct output *out1; /* &memout if backquote, otherwise &output */
54extern struct output *out2; /* &memout if backquote with 2>&1, otherwise
55 &errout */
56
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

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

49
50extern struct output output; /* to fd 1 */
51extern struct output errout; /* to fd 2 */
52extern struct output memout;
53extern struct output *out1; /* &memout if backquote, otherwise &output */
54extern struct output *out2; /* &memout if backquote with 2>&1, otherwise
55 &errout */
56
57void outcslow(int, struct output *);
57void out1str(const char *);
58void out1qstr(const char *);
59void out2str(const char *);
60void out2qstr(const char *);
61void outstr(const char *, struct output *);
62void outqstr(const char *, struct output *);
63void outbin(const void *, size_t, struct output *);
64void emptyoutbuf(struct output *);

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

69void out1fmt(const char *, ...) __printflike(1, 2);
70void out2fmt_flush(const char *, ...) __printflike(1, 2);
71void fmtstr(char *, int, const char *, ...) __printflike(3, 4);
72void doformat(struct output *, const char *, va_list) __printflike(2, 0);
73int xwrite(int, const char *, int);
74
75#define outc(c, file) (--(file)->nleft < 0? (emptyoutbuf(file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c)))
76#define out1c(c) outc(c, out1);
58void out1str(const char *);
59void out1qstr(const char *);
60void out2str(const char *);
61void out2qstr(const char *);
62void outstr(const char *, struct output *);
63void outqstr(const char *, struct output *);
64void outbin(const void *, size_t, struct output *);
65void emptyoutbuf(struct output *);

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

70void out1fmt(const char *, ...) __printflike(1, 2);
71void out2fmt_flush(const char *, ...) __printflike(1, 2);
72void fmtstr(char *, int, const char *, ...) __printflike(3, 4);
73void doformat(struct output *, const char *, va_list) __printflike(2, 0);
74int xwrite(int, const char *, int);
75
76#define outc(c, file) (--(file)->nleft < 0? (emptyoutbuf(file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c)))
77#define out1c(c) outc(c, out1);
77#define out2c(c) outc(c, out2);
78#define out2c(c) outcslow(c, out2);
78
79#define OUTPUT_INCL
80#endif
79
80#define OUTPUT_INCL
81#endif