Module Name: src
Committed By: riastradh
Date: Sat Mar 29 21:45:09 UTC 2025
Modified Files:
src/lib/libc/gen: isctype.c
Log Message:
libc/isctype.c: Omit needless #include <assert.h>.
Crept in during an earlier revision when I wrote this with
_DIAGASSERT. (I opted to unconditionally abort so that you get the
feedback about undefined behaviour even if you don't run with
LIBC_DIAGASSERT set in the environment. Since it's undefined
behaviour we are allowed to do this unconditionally, of course!)
PR lib/58208: ctype(3) provides poor runtime feedback of abuse
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/lib/libc/gen/isctype.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/isctype.c
diff -u src/lib/libc/gen/isctype.c:1.27 src/lib/libc/gen/isctype.c:1.28
--- src/lib/libc/gen/isctype.c:1.27 Sat Mar 29 01:06:36 2025
+++ src/lib/libc/gen/isctype.c Sat Mar 29 21:45:08 2025
@@ -1,4 +1,4 @@
-/* $NetBSD: isctype.c,v 1.27 2025/03/29 01:06:36 riastradh Exp $ */
+/* $NetBSD: isctype.c,v 1.28 2025/03/29 21:45:08 riastradh Exp $ */
/*-
* Copyright (c)2008 Citrus Project,
@@ -28,14 +28,13 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: isctype.c,v 1.27 2025/03/29 01:06:36 riastradh Exp $");
+__RCSID("$NetBSD: isctype.c,v 1.28 2025/03/29 21:45:08 riastradh Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <sys/types.h>
#include <sys/ctype_bits.h>
#define _CTYPE_NOINLINE
-#include <assert.h>
#include <ctype.h>
#include <langinfo.h>
#define __SETLOCALE_SOURCE__