-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove writable copy of lexical state table pointers (re: cffd06f)
ksh init used to convert the lexical state tables on the fly on systems using the EBCDIC character set. For this purpose, the readonly sh_lexrstates table was copied to the read-write sh_lexstates table, which was the only modified on EBCDIC systems. So, as of this commit, ksh uses the read-only table directly. src/cmd/ksh93/sh/defs.c, src/cmd/ksh93/sh/init.c: - Remove writable sh_lexstates[]. src/cmd/ksh93/include/lexstates.h, src/cmd/ksh93/data/lexstates.c: - Rename sh_lexrstates to the old read-write name, sh_lexstates. This minimises necessary code changes. src/cmd/ksh93/sh/macro.c: - Adapt to sh.lexstates now being const. - Split 'state' into 'macro_state' (now const) and 'ifs_state' (not const as it refers to the writable IFS state table, sh.ifstable). src/cmd/ksh93/edit/completion.c: - Change sh_lexstates[2] to sh_lexstates[ST_NORM] for clarity and future-proofing (in case the tables are ever reordered). This commit is backported from ksh2020: att@5f79c7e0
- Loading branch information
Showing
9 changed files
with
27 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters