output.h (a35d3535ee28d2b9eda4e9b0eeedf8bf31f95ca3) | output.h (d6d66cfc004b0fbdfe2906faf08b530facb704a3) |
---|---|
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 --- 52 unchanged lines hidden (view full) --- 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 *); 66void flushall(void); 67void flushout(struct output *); 68void freestdout(void); | 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 --- 52 unchanged lines hidden (view full) --- 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 *); 66void flushall(void); 67void flushout(struct output *); 68void freestdout(void); |
69int outiserror(struct output *); 70void outclearerror(struct output *); |
|
69void outfmt(struct output *, const char *, ...) __printflike(2, 3); 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); 78#define out2c(c) outcslow(c, out2); 79 80#define OUTPUT_INCL 81#endif | 71void outfmt(struct output *, const char *, ...) __printflike(2, 3); 72void out1fmt(const char *, ...) __printflike(1, 2); 73void out2fmt_flush(const char *, ...) __printflike(1, 2); 74void fmtstr(char *, int, const char *, ...) __printflike(3, 4); 75void doformat(struct output *, const char *, va_list) __printflike(2, 0); 76int xwrite(int, const char *, int); 77 78#define outc(c, file) (--(file)->nleft < 0? (emptyoutbuf(file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c))) 79#define out1c(c) outc(c, out1); 80#define out2c(c) outcslow(c, out2); 81 82#define OUTPUT_INCL 83#endif |