aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-19 15:36:46 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-19 15:36:46 +0300
commit8b4e8f702df30b2b2238158504de5d8eb436958d (patch)
tree24faa969bd9e9daacdfe994b2d05cbc2aab712b8
parent664c9b943aecbbf22c591608f26809b10cf4546e (diff)
parent4dcc853c04e05a88e2c07125bf3e7ab75cbcb6ca (diff)
downloadegawk-8b4e8f702df30b2b2238158504de5d8eb436958d.tar.gz
egawk-8b4e8f702df30b2b2238158504de5d8eb436958d.tar.bz2
egawk-8b4e8f702df30b2b2238158504de5d8eb436958d.zip
Merge branch 'gawk-4.1-stable'
-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 69d9a565..b1e2256a 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 4369666a..10e6a5bb 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -8094,6 +8094,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 1218f77b..00c97c9c 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -5755,6 +5755,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)
{