diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-25 20:30:28 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-25 20:30:28 +0000 |
commit | 7baa7d06cf60a96d45c4a33ac4b83042a409e6f0 (patch) | |
tree | 535f30ade3133c1d8d84a06136dd0f216024ffb3 /lib/libc/stdio | |
parent | 1626c644fa840e7d0e3178a0c02abb959cbb2d39 (diff) |
#if __STDC__ --> #ifdef __STDC__
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/fprintf.c | 8 | ||||
-rw-r--r-- | lib/libc/stdio/fscanf.c | 6 | ||||
-rw-r--r-- | lib/libc/stdio/funopen.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/fvwrite.h | 4 | ||||
-rw-r--r-- | lib/libc/stdio/printf.c | 8 | ||||
-rw-r--r-- | lib/libc/stdio/scanf.c | 8 | ||||
-rw-r--r-- | lib/libc/stdio/snprintf.c | 8 | ||||
-rw-r--r-- | lib/libc/stdio/sprintf.c | 8 | ||||
-rw-r--r-- | lib/libc/stdio/sscanf.c | 8 | ||||
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/vfscanf.c | 4 |
11 files changed, 35 insertions, 35 deletions
diff --git a/lib/libc/stdio/fprintf.c b/lib/libc/stdio/fprintf.c index 838b71fba1e..2d7a793c3c4 100644 --- a/lib/libc/stdio/fprintf.c +++ b/lib/libc/stdio/fprintf.c @@ -35,18 +35,18 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: fprintf.c,v 1.2 1996/08/19 08:32:41 tholo Exp $"; +static char rcsid[] = "$OpenBSD: fprintf.c,v 1.3 1997/07/25 20:30:09 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> #endif int -#if __STDC__ +#ifdef __STDC__ fprintf(FILE *fp, const char *fmt, ...) #else fprintf(fp, fmt, va_alist) @@ -58,7 +58,7 @@ fprintf(fp, fmt, va_alist) int ret; va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/lib/libc/stdio/fscanf.c b/lib/libc/stdio/fscanf.c index 3ea6b6ad79e..33b7e8a6a62 100644 --- a/lib/libc/stdio/fscanf.c +++ b/lib/libc/stdio/fscanf.c @@ -35,17 +35,17 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: fscanf.c,v 1.2 1996/08/19 08:32:45 tholo Exp $"; +static char rcsid[] = "$OpenBSD: fscanf.c,v 1.3 1997/07/25 20:30:09 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> #endif -#if __STDC__ +#ifdef __STDC__ fscanf(FILE *fp, char const *fmt, ...) { int ret; va_list ap; diff --git a/lib/libc/stdio/funopen.c b/lib/libc/stdio/funopen.c index 354409b6c61..6b9eb87d895 100644 --- a/lib/libc/stdio/funopen.c +++ b/lib/libc/stdio/funopen.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: funopen.c,v 1.2 1996/08/19 08:32:48 tholo Exp $"; +static char rcsid[] = "$OpenBSD: funopen.c,v 1.3 1997/07/25 20:30:09 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -46,7 +46,7 @@ FILE * funopen(cookie, readfn, writefn, seekfn, closefn) const void *cookie; int (*readfn)(), (*writefn)(); -#if __STDC__ +#ifdef __STDC__ fpos_t (*seekfn)(void *cookie, fpos_t off, int whence); #else fpos_t (*seekfn)(); diff --git a/lib/libc/stdio/fvwrite.h b/lib/libc/stdio/fvwrite.h index db9b6fcc283..bd7bcde8e9c 100644 --- a/lib/libc/stdio/fvwrite.h +++ b/lib/libc/stdio/fvwrite.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fvwrite.h,v 1.2 1996/08/19 08:32:49 tholo Exp $ */ +/* $OpenBSD: fvwrite.h,v 1.3 1997/07/25 20:30:10 mickey Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -49,7 +49,7 @@ struct __suio { int uio_resid; }; -#if __STDC__ || c_plusplus +#if defined(__STDC__) || defined(c_plusplus) extern int __sfvwrite(FILE *, struct __suio *); #else extern int __sfvwrite(); diff --git a/lib/libc/stdio/printf.c b/lib/libc/stdio/printf.c index 74a7d8e5a1d..bdae6aec7ce 100644 --- a/lib/libc/stdio/printf.c +++ b/lib/libc/stdio/printf.c @@ -35,18 +35,18 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: printf.c,v 1.2 1996/08/19 08:32:57 tholo Exp $"; +static char rcsid[] = "$OpenBSD: printf.c,v 1.3 1997/07/25 20:30:10 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> #endif int -#if __STDC__ +#ifdef __STDC__ printf(char const *fmt, ...) #else printf(fmt, va_alist) @@ -57,7 +57,7 @@ printf(fmt, va_alist) int ret; va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/lib/libc/stdio/scanf.c b/lib/libc/stdio/scanf.c index 9fffc26073c..dd73700832d 100644 --- a/lib/libc/stdio/scanf.c +++ b/lib/libc/stdio/scanf.c @@ -35,17 +35,17 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: scanf.c,v 1.2 1996/08/19 08:33:03 tholo Exp $"; +static char rcsid[] = "$OpenBSD: scanf.c,v 1.3 1997/07/25 20:30:10 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> #endif -#if __STDC__ +#ifdef __STDC__ scanf(char const *fmt, ...) #else scanf(fmt, va_alist) @@ -56,7 +56,7 @@ scanf(fmt, va_alist) int ret; va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/lib/libc/stdio/snprintf.c b/lib/libc/stdio/snprintf.c index 86a740dda03..cab4690cd3b 100644 --- a/lib/libc/stdio/snprintf.c +++ b/lib/libc/stdio/snprintf.c @@ -35,17 +35,17 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: snprintf.c,v 1.2 1996/08/19 08:33:06 tholo Exp $"; +static char rcsid[] = "$OpenBSD: snprintf.c,v 1.3 1997/07/25 20:30:11 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> #endif -#if __STDC__ +#ifdef __STDC__ snprintf(char *str, size_t n, char const *fmt, ...) #else snprintf(str, n, fmt, va_alist) @@ -61,7 +61,7 @@ snprintf(str, n, fmt, va_alist) if ((int)n < 1) return (EOF); -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c index 4b831ac3028..16b99a27f97 100644 --- a/lib/libc/stdio/sprintf.c +++ b/lib/libc/stdio/sprintf.c @@ -35,11 +35,11 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: sprintf.c,v 1.2 1996/08/19 08:33:06 tholo Exp $"; +static char rcsid[] = "$OpenBSD: sprintf.c,v 1.3 1997/07/25 20:30:11 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> @@ -48,7 +48,7 @@ static char rcsid[] = "$OpenBSD: sprintf.c,v 1.2 1996/08/19 08:33:06 tholo Exp $ #include "local.h" int -#if __STDC__ +#ifdef __STDC__ sprintf(char *str, char const *fmt, ...) #else sprintf(str, fmt, va_alist) @@ -64,7 +64,7 @@ sprintf(str, fmt, va_alist) f._flags = __SWR | __SSTR; f._bf._base = f._p = (unsigned char *)str; f._bf._size = f._w = INT_MAX; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/lib/libc/stdio/sscanf.c b/lib/libc/stdio/sscanf.c index bf314a65a50..eb249fbf65e 100644 --- a/lib/libc/stdio/sscanf.c +++ b/lib/libc/stdio/sscanf.c @@ -35,12 +35,12 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: sscanf.c,v 1.2 1996/08/19 08:33:07 tholo Exp $"; +static char rcsid[] = "$OpenBSD: sscanf.c,v 1.3 1997/07/25 20:30:12 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> #include <string.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> @@ -58,7 +58,7 @@ eofread(cookie, buf, len) return (0); } -#if __STDC__ +#ifdef __STDC__ sscanf(const char *str, char const *fmt, ...) #else sscanf(str, fmt, va_alist) @@ -77,7 +77,7 @@ sscanf(str, fmt, va_alist) f._read = eofread; f._ub._base = NULL; f._lb._base = NULL; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index ecd7bb3910f..274f7b9d82f 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: vfprintf.c,v 1.6 1996/12/14 06:49:43 tholo Exp $"; +static char *rcsid = "$OpenBSD: vfprintf.c,v 1.7 1997/07/25 20:30:12 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -51,7 +51,7 @@ static char *rcsid = "$OpenBSD: vfprintf.c,v 1.6 1996/12/14 06:49:43 tholo Exp $ #include <string.h> #include <errno.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c index 9531179e137..c0ad92062d4 100644 --- a/lib/libc/stdio/vfscanf.c +++ b/lib/libc/stdio/vfscanf.c @@ -35,13 +35,13 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: vfscanf.c,v 1.3 1996/09/15 09:31:46 tholo Exp $"; +static char rcsid[] = "$OpenBSD: vfscanf.c,v 1.4 1997/07/25 20:30:13 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> |