Size reductions by ccoffing · Pull Request #1783 · ghaerr/elks (original) (raw)
Also unnecessary to clear errno when it is guaranteed to be set
- More precisely trim out DEBUG code
- Combine similar strings
- Use libc string functions not custom. Some would be omitted ifdef SYS5, but we don't define that for other reasons; just rely on STDC.
- Reduce size of linenoise
Where possible, prefer setbuf over setvbuf (64 bytes smaller) or skip explicitly setting to fully buffered when it isn't necessary.
It's redundant to fflush stdout,stderr before exit because stdio already registers its own atexit to fflush stdout and stderr.
This file contains hidden or 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
[ Show hidden characters]({{ revealButtonHref }})