1. Simulated Enums
I have a library that does the same thing! Of course, it calls them enums,
and its part of my library to simulate structs and unions and other things
needed to convert C headers into Eu code ...
jbrown
On Thu, Feb 13, 2003 at 11:01:23AM +1100, Derek Parnell wrote:
> Also, I have a library that helps a bit with this sort of 'constant'
> assignments. Using the example above I'd write...
>
> include series.e
> . . . constant sFont = next_number("structs"),
> F_Face= next_number(sFont), F_Size= next_number(sFont),
> F_Attr= next_number(sFont),
> F_Clr = next_number(sFont),
> F_Uniq= next_number(sFont),
> SizeofFont = current_number(sFont)
> . . .
> printf(1,"Face:%s Pitch:%d Attributes:%s Colour:%s\n",
> {font[F_Face],
> font[F_Size],
> get_attr_desc(font[F_Attr]),
> get_colour_desc(font[F_Clr])})
>
> --
>
> cheers,
> Derek Parnell
>
>
>
> TOPICA - Start your own email discussion group. FREE!
--
/"\ ASCII ribbon | http://www.geocities.com/jbrown1050/
\ / campain against | Linux User:190064
X HTML in e-mail and | Linux Machine:84163
/*\ news, and unneeded MIME |