Hi <br>
<br>
I should have made it clearer that my code there was just an example of
the kind of thing SDL does. The actual one I was looking at was the
event mask one in your grep results.<br>
<br>
Sorry for the confusion.<br>
<br>
Justin<br><br><div><span class="gmail_quote">On 1/25/06, <b class="gmail_sendername">Hoehle, Joerg-Cyril</b> <<a href="mailto:Joerg-Cyril.Hoehle@t-systems.com">Joerg-Cyril.Hoehle@t-systems.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Justin Heyes-Jones writes:<br><br>>The problem I am looking at is that SDL uses un-named enums quite a lot.<br>>In addition it does arithmetic on them to create other enums...<br>>#define MAKE_MASK (n) (1<<n)
<br><br>I can't find this.<br><br>I grep'ed for "enum", "MAKE_MASK" (0 hits) and "<<" (5 hits) in /usr/include/SDL/*.h and found:<br><br>o plenty of typedef enum { ... } SDL_audiostatus;
<br>which does not sound anonymous at all, even though its not<br>enum <name> { ... };<br><br>o a single #define SDL_EVENTMASK(X) (1<<(X))<br>used by enum SDL_EventMasks, referring to enum SDL_Events<br><br>o and a single really anonymous one:
<br>enum { SDL_PRESSED = 0x01, SDL_RELEASED = 0x00 };<br>where SDL_PRESSED is reused via<br>#define SDL_BUTTON(X) (SDL_PRESSED<<(X-1))<br><br>I'd say SDL_PRESSED is worth a defconstant.<br><br>Did I look at the wrong place or not understand anything at all?
<br><br>[on a Ubuntu Breezy Debian i686 machine, with libsdl-1.2]<br>BTW, does anybody know which package holds the gl* Manpages?<br>I have the SDL_*.3.gz ones now, from package libsdl1.2-dev.<br>Sadly, <a href="http://packages.debian.org">
packages.debian.org</a> (really valuable site) is down.<br><br>Regards,<br> Jörg Höhle.<br></blockquote></div><br>