handy.h: Simplify isASCII definition
authorKarl Williamson <public@khwilliamson.com>
Sat, 24 Sep 2011 17:46:54 +0000 (11:46 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sat, 1 Oct 2011 15:58:08 +0000 (09:58 -0600)
commit41f43cc22340d382ce3bf1249a2521a4ec5285a8
tree68fa65c0680e3806dad51c802ca6d3fc98b58d34
parent7c06269796e51fcf84efa5f5dab9ed98447ef9c1
handy.h: Simplify isASCII definition

Thus retains essentially the same definition for EBCDIC platforms, but
substitutes a simpler one for ASCII platforms.  On my system, the new
definition compiles to about half the assembly instructions that the old
one did (non-optimized)

A bomb-proof definition of ASCII is to make sure that the value is
unsigned in the largest possible unsigned for the platform so there is
no possible loss of information, and then the ord  must be < 128.
handy.h