Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/bin/sh
Module Name: src
Committed By: kre
Date: Wed May 7 14:01:01 UTC 2025
Modified Files:
src/bin/sh: expand.c memalloc.c memalloc.h
Log Message:
Obliterate the global var herefd
For the past several years (since Nov 2021) the global var "herefd"
has led a rather meaningless existence.
It gets statically init'd to -1 (at compile time), and several
times its value is carefully saved, set to -1, then restored later.
(Lots of copying around of -1 going on there!)
The only use of its value was removed in the immediately previous update
to memalloc.c, where it was tested, and if its value were >= 0 ...
(no point mentioning what would happen, since its value is always -1,
since Nov 2021).
Bye bye herefd, it was nice knowing you. May we never meet again.
To generate a diff of this commit:
cvs rdiff -u -r1.146 -r1.147 src/bin/sh/expand.c
cvs rdiff -u -r1.40 -r1.41 src/bin/sh/memalloc.c
cvs rdiff -u -r1.20 -r1.21 src/bin/sh/memalloc.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index