output.h (82725ba9bf1fd59746a4006a06f24d4d61d142f2) output.h (94b793c49790cdb4f945fe909c65d4c89fe71f16)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1991, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Kenneth Almquist.

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

34 * @(#)output.h 8.2 (Berkeley) 5/4/95
35 * $FreeBSD$
36 */
37
38#ifndef OUTPUT_INCL
39
40#include <stdarg.h>
41#include <stddef.h>
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1991, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Kenneth Almquist.

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

34 * @(#)output.h 8.2 (Berkeley) 5/4/95
35 * $FreeBSD$
36 */
37
38#ifndef OUTPUT_INCL
39
40#include <stdarg.h>
41#include <stddef.h>
42#include <stdio.h>
42
43struct output {
44 char *nextc;
45 char *bufend;
46 char *buf;
47 int bufsize;
48 short fd;
49 short flags;

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

70void freestdout(void);
71int outiserror(struct output *);
72void outclearerror(struct output *);
73void outfmt(struct output *, const char *, ...) __printflike(2, 3);
74void out1fmt(const char *, ...) __printflike(1, 2);
75void out2fmt_flush(const char *, ...) __printflike(1, 2);
76void fmtstr(char *, int, const char *, ...) __printflike(3, 4);
77void doformat(struct output *, const char *, va_list) __printflike(2, 0);
43
44struct output {
45 char *nextc;
46 char *bufend;
47 char *buf;
48 int bufsize;
49 short fd;
50 short flags;

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

71void freestdout(void);
72int outiserror(struct output *);
73void outclearerror(struct output *);
74void outfmt(struct output *, const char *, ...) __printflike(2, 3);
75void out1fmt(const char *, ...) __printflike(1, 2);
76void out2fmt_flush(const char *, ...) __printflike(1, 2);
77void fmtstr(char *, int, const char *, ...) __printflike(3, 4);
78void doformat(struct output *, const char *, va_list) __printflike(2, 0);
79FILE *out1fp(void);
78int xwrite(int, const char *, int);
79
80#define outc(c, file) ((file)->nextc == (file)->bufend ? (emptyoutbuf(file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c)))
81#define out1c(c) outc(c, out1);
82#define out2c(c) outcslow(c, out2);
83
84#define OUTPUT_INCL
85#endif
80int xwrite(int, const char *, int);
81
82#define outc(c, file) ((file)->nextc == (file)->bufend ? (emptyoutbuf(file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c)))
83#define out1c(c) outc(c, out1);
84#define out2c(c) outcslow(c, out2);
85
86#define OUTPUT_INCL
87#endif