Commit ID: 100554139453DB97755
CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2015/04/29 20:07:36 UTC
Modified files:
bin/mksh : check.t edit.c funcs.c lex.c main.c misc.c sh.h shf.c
syn.c var.c
Log message:
more low-hanging fruits for EBCDIC; notes:
• ord() new, From: Daniel Richard G. <[email protected]>
‣ used in some places
• (c - '0') → ksh_numdig(c) # may take *x++ argument
• (c - 'A') → ksh_numuc(c) # may NOT take *x+= argument
‣ idem for ksh_numlc(c) and 'a'
‣ these need changing for EBCDIC
‣ add testsuite for this
• use macros more, they exist already often
• use digits_lc[foo] instead of ('0' + foo), especially for letters
• caught another ksh_eq case…
• also caught a maybe-UB overflow check, but we don’t have TIME_T_MAX ☹
To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.690 -r1.691 src/bin/mksh/check.t
cvs -R rdiff -kk -upr1.284 -r1.285 src/bin/mksh/edit.c
cvs -R rdiff -kk -upr1.269 -r1.270 src/bin/mksh/funcs.c
cvs -R rdiff -kk -upr1.200 -r1.201 src/bin/mksh/lex.c
cvs -R rdiff -kk -upr1.292 -r1.293 src/bin/mksh/main.c
cvs -R rdiff -kk -upr1.228 -r1.229 src/bin/mksh/misc.c
cvs -R rdiff -kk -upr1.727 -r1.728 src/bin/mksh/sh.h
cvs -R rdiff -kk -upr1.64 -r1.65 src/bin/mksh/shf.c
cvs -R rdiff -kk -upr1.100 -r1.101 src/bin/mksh/syn.c
cvs -R rdiff -kk -upr1.191 -r1.192 src/bin/mksh/var.c