-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename char *nvenv to void *nvmeta (re: 4d68815)
The previous commit removed the redundant use of the nvenv pointer of struct Namval to point directly to values in environ[]. That was its original purpose, but there are many remaining additional uses. So far, I've discovered: - help string for type commands (typeset -T -h) (typeset.c, nvtype.c) - pointer to dimension 2+ array (array.c and loads of other places) - compound variable (NV_COMVAR, NV_TABLE) (arith.c, nvdisc.c, name.c) - struct slnod: linked list of stacks (for functions; see also sh_funstaks()) (xec.c, name.c) name.c:2375 - flaggery for builtins (purpose to be worked out): (nvdisc.c, path.c) So, this follow-up commit has no actual code changes; it is for code legibility. It: - Removes the now-unused NV_IMPORT attribute. It shared a bit value with NV_MINIMAL, so the few remaining uses of it in the code has been changed to NV_MIMIMAL to avoid potential bugs. - Renames nvenv to nvmeta, in recognition of the fact that it is used for many kinds of purposes. - Makes nvmeta a void pointer instead of a char pointer. - Accordingly removes now-redundant explicit typecasts.
- Loading branch information
Showing
13 changed files
with
81 additions
and
81 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
Oops, something went wrong.