aboutsummaryrefslogtreecommitdiffstats
path: root/command.y
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-15 19:47:03 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-15 19:47:03 +0300
commit3fcce8a32e825dd10384d5276c420c2514442fe2 (patch)
tree81ace8db9cb41ef729ba024b8355ccdbf999dca6 /command.y
parent8a1df492afae19d544fa5e5b636ed427b2d1c3f5 (diff)
downloadegawk-3fcce8a32e825dd10384d5276c420c2514442fe2.tar.gz
egawk-3fcce8a32e825dd10384d5276c420c2514442fe2.tar.bz2
egawk-3fcce8a32e825dd10384d5276c420c2514442fe2.zip
Finish excising isalpha and isalnum. Document.
Diffstat (limited to 'command.y')
-rw-r--r--command.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/command.y b/command.y
index 576af159..c67753b7 100644
--- a/command.y
+++ b/command.y
@@ -1112,7 +1112,7 @@ again:
}
while (c != '\0' && c != ' ' && c != '\t') {
- if (! isalpha(c) && ! in_eval) {
+ if (! is_alpha(c) && ! in_eval) {
yyerror(_("invalid character in command"));
return '\n';
}
@@ -1280,12 +1280,12 @@ err:
|| c == ',' || c == '=')
return *lexptr++;
- if (c != '_' && ! isalpha(c)) {
+ if (c != '_' && ! is_alpha(c)) {
yyerror(_("invalid character"));
return '\n';
}
- while (isalnum(c) || c == '_')
+ while (is_identchar(c))
c = *++lexptr;
toklen = lexptr - tokstart;