Mail Archives: djgpp-workers/1996/04/11/13:43:42
Eli Zaretskii wrote:
> The current code of `stat' incorrectly stops testing for extensions of
> executables when _STAT_EXEC_MAGIC is set, but _STAT_EXE_EXT is not. The
> following patch fixes that....
> ! if ( (_djstat_flags & _STAT_EXECBIT) == 0 )...
> --- 572,578 ----...
> ! if ((_djstat_flags & _STAT_EXECBIT) != _STAT_EXECBIT)...
If this is correct, _STAT_EXECBIT should be renamed -- a name like that
implies a single bit is set in the equate, in which case the two lines
of code do exactly the same thing. If it is a multibit equate, it should
be named something like _STAT_EXECSELECT so as to not imply a single bit
value (now I gotta go look at the definition, like I shouda done first... :-).
--Charles
- Raw text -