Re: [cc65] Common macros for dirent.d_type

From: Ullrich von Bassewitz <>
Date: 2012-06-26 08:30:46
On Mon, Jun 25, 2012 at 10:02:27PM +0200, Groepaz wrote:
> if the macro is defined is 0, why the hell would it matter if dirent even
> exist in this case? you could write
>  if (_DE_ISREG(whatever is here doesnt matter at all)) {
> and it WILL compile fine, really =)

Ok, you got me. You're right of course. But I'm not sure if this should be the
officially recommended programming style.

So while I see now that it works, I would still somehow prefer to have a
mandatory d_type field. I think I will sleep better at night :-)



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jun 26 08:31:02 2012

This archive was generated by hypermail 2.1.8 : 2012-06-26 08:31:05 CEST