diff options
author | Warner Losh <imp@FreeBSD.org> | 2002-02-02 06:50:57 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2002-02-02 06:50:57 +0000 |
commit | 5134c3f7990c353d2442ddd8a9a1d30b80099e43 (patch) | |
tree | 01a827446e9ba4f34cf1e754fcac691f6c9eb1cf /bin/sh/output.h | |
parent | 46251dde8f47db03ad83997efd5e8f8bd8938855 (diff) | |
download | src-5134c3f7990c353d2442ddd8a9a1d30b80099e43.tar.gz src-5134c3f7990c353d2442ddd8a9a1d30b80099e43.zip |
o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.
o Change
int
foo() {
...
to
int
foo(void)
{
...
Notes
Notes:
svn path=/head/; revision=90111
Diffstat (limited to 'bin/sh/output.h')
-rw-r--r-- | bin/sh/output.h | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/bin/sh/output.h b/bin/sh/output.h index 425b49fd1583..5991115ee9c0 100644 --- a/bin/sh/output.h +++ b/bin/sh/output.h @@ -60,21 +60,20 @@ extern struct output memout; extern struct output *out1; extern struct output *out2; -void open_mem __P((char *, int, struct output *)); -void out1str __P((const char *)); -void out2str __P((const char *)); -void outstr __P((const char *, struct output *)); -void emptyoutbuf __P((struct output *)); -void flushall __P((void)); -void flushout __P((struct output *)); -void freestdout __P((void)); -void outfmt __P((struct output *, const char *, ...)) __printflike(2, 3); -void out1fmt __P((const char *, ...)) __printflike(1, 2); -void dprintf __P((const char *, ...)) __printflike(1, 2); -void fmtstr __P((char *, int, const char *, ...)) __printflike(3, 4); -void doformat __P((struct output *, const char *, va_list)) __printflike(2, 0); -int xwrite __P((int, char *, int)); -int xioctl __P((int, unsigned long, char *)); +void open_mem(char *, int, struct output *); +void out1str(const char *); +void out2str(const char *); +void outstr(const char *, struct output *); +void emptyoutbuf(struct output *); +void flushall(void); +void flushout(struct output *); +void freestdout(void); +void outfmt(struct output *, const char *, ...) __printflike(2, 3); +void out1fmt(const char *, ...) __printflike(1, 2); +void dprintf(const char *, ...) __printflike(1, 2); +void fmtstr(char *, int, const char *, ...) __printflike(3, 4); +void doformat(struct output *, const char *, va_list) __printflike(2, 0); +int xwrite(int, char *, int); #define outc(c, file) (--(file)->nleft < 0? (emptyoutbuf(file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c))) #define out1c(c) outc(c, out1); |