Stylistic Cleanup Removing Magic Numbers for STDIN_FILENO

2021-04-25 Thread Smccalib
Greetings, While reading the source code for ed, I noticed a small stylistic inconsistency in main.c whereby "isatty(0)" is called followed by a series of calls to functions that take a fd being called with STDIN_FILENO. Although this has little impact on readability, and should make no difference

Re: Stylistic Cleanup Removing Magic Numbers for STDIN_FILENO

2021-04-25 Thread Bryan Steele
On Sun, Apr 25, 2021 at 08:58:35PM +, Smccalib wrote: > Greetings, > > While reading the source code for ed, I noticed a small stylistic > inconsistency in main.c whereby "isatty(0)" is called followed by a > series of calls to functions that take a fd being called with > STDIN_FILENO. Althoug