Size reductions by ccoffing · Pull Request #1783 · ghaerr/elks (original) (raw)

@ccoffing

ghaerr

ghaerr

ghaerr

ghaerr

@ccoffing

@ccoffing

Also unnecessary to clear errno when it is guaranteed to be set

@ccoffing

@ccoffing

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.

@ccoffing

@ccoffing

@ccoffing

@ccoffing

@ccoffing

@ccoffing

@ccoffing

@ccoffing

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 }})