"Dresner, Norman A." wrote:
> 
> In the file rtl_sched.h for version 9J, I found the line
> 
> enum { RT_TASK_READY,RT_TASK_DELAYED,  RT_TASK_DORMANT,  RT_TASK_ACTIVE,
> RT_TASK_ZOMBIE };

It will give you 5 symbolic names for constants. Most (dunno if that is 
writting down in some standard) will start with 0. So it
is basicly the same as
#define RT_TASK_READY 0
#define RT_TASK_DELAYED 1
#define RT_TASK_DORMANT 2
#define RT_TASK_ACTIVE 3
#define RT_TASK_ZOMBIE 4

of course you can't "undefine" them and you can not redefine them so it
is 
a bit more error proof than just defines.
(correct me if i am wrong)

- Erwin

> 
> I haven't used enum very much, but I can't see what can possibly be gained
> from an enum that doesn't have either a type-tag or a variable-list.
> 
> Would someone please enlighten me?
> 
>   Thanks
>       Norm
> 
> --- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ----
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/~rtlinux/
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to