aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-19 15:36:17 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-19 15:36:17 +0300
commit4dcc853c04e05a88e2c07125bf3e7ab75cbcb6ca (patch)
tree51ef16870645c1cb443890042bacd07bddb97556
parentba56be212f9dee0088322e1560f31b3f4693633d (diff)
downloadegawk-4dcc853c04e05a88e2c07125bf3e7ab75cbcb6ca.tar.gz
egawk-4dcc853c04e05a88e2c07125bf3e7ab75cbcb6ca.tar.bz2
egawk-4dcc853c04e05a88e2c07125bf3e7ab75cbcb6ca.zip
More commentary on isalnum.
-rw-r--r--ChangeLog5
-rw-r--r--awkgram.c10
-rw-r--r--awkgram.y10
3 files changed, 25 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4cfd6d37..5bf1ab1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-19 Arnold D. Robbins <arnold@skeeve.com>
+
+ * awkgram.y: Further commentary as to the treacherousness
+ of isalnum and isalpha.
+
2014-09-15 Arnold D. Robbins <arnold@skeeve.com>
Finish removing use of isalpha and isalnum.
diff --git a/awkgram.c b/awkgram.c
index 4b8e33af..b7354f67 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -8084,6 +8084,16 @@ install_builtins(void)
/* is_alpha --- return true if c is an English letter */
+/*
+ * The scene of the murder was grisly to look upon. When the inspector
+ * arrived, the sergeant turned to him and said, "Another programmer stabbed
+ * in the back. He never knew what happened."
+ *
+ * The inspector replied, "Looks like the MO of isalpha, and his even meaner
+ * big brother, isalnum. The Locale brothers." The sergeant merely
+ * shuddered in horror.
+ */
+
bool
is_alpha(int c)
{
diff --git a/awkgram.y b/awkgram.y
index 50e01f11..21c83925 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -5745,6 +5745,16 @@ install_builtins(void)
/* is_alpha --- return true if c is an English letter */
+/*
+ * The scene of the murder was grisly to look upon. When the inspector
+ * arrived, the sergeant turned to him and said, "Another programmer stabbed
+ * in the back. He never knew what happened."
+ *
+ * The inspector replied, "Looks like the MO of isalpha, and his even meaner
+ * big brother, isalnum. The Locale brothers." The sergeant merely
+ * shuddered in horror.
+ */
+
bool
is_alpha(int c)
{