Mail Archives: djgpp-workers/2000/08/18/01:29:49
On Thu, 17 Aug 2000, Laurynas Biveinis wrote:
> When I've moved most code from stat() to lstat(), FSEXT hook
> has been moved too. However, its name __FSEXT_stat is misleading
> now, because it actually should be __FSEXT_lstat. Simple switch
> is impossible due to backwards compatibility (sounds like a curse ;),
> so I have added simple #define __FSEXT_lstat __FSEXT_stat in header,
> and updated docs to refer to __FSEXT_lstat.
I don't see any problems with #define, but I also don't see any problems
with staying with the old name. It's not a problem if an FSEXT hook has
a name that isn't 100% identical to the exact function where it is called.
For example, __FSEXT_open is called from _open, not from open.
> BTW, I was surprised: fsext.txh did not contain documentation for
> __FSEXT_stat. I bet it didn't for 5 years ;).
Not 5 years: __FSEXT_stat was added only in v2.02.
> I've added that too.
Thanks.
- Raw text -