diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-19 15:36:17 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-19 15:36:17 +0300 |
commit | 4dcc853c04e05a88e2c07125bf3e7ab75cbcb6ca (patch) | |
tree | 51ef16870645c1cb443890042bacd07bddb97556 | |
parent | ba56be212f9dee0088322e1560f31b3f4693633d (diff) | |
download | egawk-4dcc853c04e05a88e2c07125bf3e7ab75cbcb6ca.tar.gz egawk-4dcc853c04e05a88e2c07125bf3e7ab75cbcb6ca.tar.bz2 egawk-4dcc853c04e05a88e2c07125bf3e7ab75cbcb6ca.zip |
More commentary on isalnum.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | awkgram.c | 10 | ||||
-rw-r--r-- | awkgram.y | 10 |
3 files changed, 25 insertions, 0 deletions
@@ -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. @@ -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) { @@ -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) { |