summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-12-11 23:01:41 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-12-11 23:01:41 +0000
commit3d2d0dd6e38a4a646756782494ce94ec825fd594 (patch)
tree58f60e118beb047eaba25e424d4e5ea9ead1a606 /lib
parentfc4d67c279b2d8573673469d68082d1f7c280438 (diff)
Convert ctype.h macros into inline functions. This fixes the issues we
currently have with the macro versions and makes the ctype.h versions 100% identical to what is in libc. Discussed with pjanzen@ and OK'd by deraadt@.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/tolower_.c5
-rw-r--r--lib/libc/gen/toupper_.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/gen/tolower_.c b/lib/libc/gen/tolower_.c
index b145fc46e41..d0d78865fe5 100644
--- a/lib/libc/gen/tolower_.c
+++ b/lib/libc/gen/tolower_.c
@@ -4,11 +4,12 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: tolower_.c,v 1.3 2001/06/27 07:17:08 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: tolower_.c,v 1.4 2002/12/11 23:01:40 millert Exp $";
#endif /* LIBC_SCCS and not lint */
-#include <stdio.h>
+#define _ANSI_LIBRARY
#include <ctype.h>
+#include <stdio.h>
const short _C_tolower_[1 + 256] = {
EOF,
diff --git a/lib/libc/gen/toupper_.c b/lib/libc/gen/toupper_.c
index b4630483cd0..b6ab3090006 100644
--- a/lib/libc/gen/toupper_.c
+++ b/lib/libc/gen/toupper_.c
@@ -4,11 +4,12 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: toupper_.c,v 1.3 2001/06/27 07:17:09 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: toupper_.c,v 1.4 2002/12/11 23:01:40 millert Exp $";
#endif /* LIBC_SCCS and not lint */
-#include <stdio.h>
+#define _ANSI_LIBRARY
#include <ctype.h>
+#include <stdio.h>
const short _C_toupper_[1 + 256] = {
EOF,