Commit ID:      10058D706207E0A1FF4
CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2017/03/26 00:10:27 UTC

Modified files:
        bin/mksh       : check.t eval.c expr.c lex.c misc.c sh.h var.c

Log message:
small character classes overhaul:
• make fast character classes even faster by removing the C_SUBOP2 hack
  in favour of a separate seldom-used ksh_issubop2 macro (which also
  makes ctype() side-effect-safe) which is a slower class (no change there)
• optimise cases of ksh_isalphx followed by a ksh_isalnux loop
  (used parsing variable names)
• remove a misleading comment in initctypes() about \0 from pdksh
• rename C_ALPHA to C_ALPHX to make it more clear the underscore is included
• sprinkle a few ord() in there
• add new ksh_isalpha() which tests for [A-Za-z] (slow character class)
• there is no '_:\' drive on OS/2 (which inspired the whole changeset)

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.765 -r1.766 src/bin/mksh/check.t
cvs -R rdiff -kk -upr1.198 -r1.199 src/bin/mksh/eval.c
cvs -R rdiff -kk -upr1.90 -r1.91 src/bin/mksh/expr.c
cvs -R rdiff -kk -upr1.231 -r1.232 src/bin/mksh/lex.c
cvs -R rdiff -kk -upr1.252 -r1.253 src/bin/mksh/misc.c
cvs -R rdiff -kk -upr1.797 -r1.798 src/bin/mksh/sh.h
cvs -R rdiff -kk -upr1.209 -r1.210 src/bin/mksh/var.c

Reply via email to