summaryrefslogtreecommitdiff
path: root/command.c
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.c
parent8a1df492afae19d544fa5e5b636ed427b2d1c3f5 (diff)
downloadgawk-3fcce8a32e825dd10384d5276c420c2514442fe2.tar.gz
Finish excising isalpha and isalnum. Document.
Diffstat (limited to 'command.c')
-rw-r--r--command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/command.c b/command.c
index 2d4ccf8c..ad0dc372 100644
--- a/command.c
+++ b/command.c
@@ -2863,7 +2863,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';
}
@@ -3031,12 +3031,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;