Re: Use enum to declare errno values

From: Denis Vlasenko
Date: Wed Nov 23 2005 - 09:32:26 EST

On Wednesday 23 November 2005 15:24, moreau francis wrote:
> Hi,
> I'm just wondering why not declaring errno values using enumaration ? It is
> just more convenient when debuging the kernel.

enums are really nice substitute for integer constants instead of
#defines. They obey scope rules. #defines do not.

However enums are not widely used because of
1. tradition and style
2. awkward syntax required: enum { CONST = 1234 };
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at