Module Name: src
Committed By: kre
Date: Sat Jun 15 05:02:24 UTC 2024
Modified Files:
src/bin/sh: syntax.h
Log Message:
This file uses CHAR_MIN so needs <limits.h> to be complete.
While here, fix a typo in the alternate (as in #if 0'd out) version
of the ISCTL() macro.
NFCI.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/bin/sh/syntax.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/syntax.h
diff -u src/bin/sh/syntax.h:1.12 src/bin/sh/syntax.h:1.13
--- src/bin/sh/syntax.h:1.12 Wed Feb 27 04:10:56 2019
+++ src/bin/sh/syntax.h Sat Jun 15 05:02:24 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: syntax.h,v 1.12 2019/02/27 04:10:56 kre Exp $ */
+/* $NetBSD: syntax.h,v 1.13 2024/06/15 05:02:24 kre Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -34,6 +34,7 @@
#include <sys/cdefs.h>
#include <ctype.h>
+#include <limits.h>
/* Syntax classes */
#define CWORD 0 /* character is nothing special */
@@ -93,7 +94,7 @@
#define ISCTL(c) ((c) >= CTL_FIRST && (c) <= CTL_LAST)
#if 0 /* alternative form (generally slower) */
-#define ICCTL(c) (BASESYNTAX[(int)(c)] == CCTL)
+#define ISCTL(c) (BASESYNTAX[(int)(c)] == CCTL)
#endif
extern const char basesyntax[];