]> git.cameronkatri.com Git - bsdgames-darwin.git/commit
cgram: use ASCII-only implementation of <ctype.h> functions
authorrillig <rillig@NetBSD.org>
Sun, 25 Apr 2021 20:38:03 +0000 (20:38 +0000)
committerCameron Katri <me@cameronkatri.com>
Wed, 28 Apr 2021 20:38:48 +0000 (16:38 -0400)
commit2dbe3a72a9b248ec967612fe617888a1297ea202
treea098220bdf43a91c877982cac7eed8612206cbfd
parentfcf2c9d81824f115900bc2e3e5ed8be2afbb7d46
cgram: use ASCII-only implementation of <ctype.h> functions

The function 'encode' already assumes that all letter characters are
contiguous and that there are only 26 letters of each case.  At the
moment, cgram cannot handle UTF-8 anyway since it reads the input
byte-wise, assuming that each byte is exacty one character.
cgram/cgram.c