For your viewing pleasure :)
   
    ANOQ of the Sun
     
    anoq@hardcoreprocessing.com
       
    Fri, 05 Nov 1999 19:48:29 +0100
    
    
  
"Stephen Weeks" wrote:
> I'll be interested to see how you do callbacks.  But I can wait for
> the full version of the game.
I don't... and I don't need to, and never have needed :)
There are SDL_WaitEvent and SDL_PollEvent functions in SDL.
They just return a struct with some event codes / values.
I return an int (which is actually a typecasted SDL_Event *)
and I made 3 ML/C functions for extracting the necessary data :)
Of course I have encapsulated the int in ML into a structure
(SDLEvent) with opaque signature matching to encapsulate it
and make things typesafe...
> The only thing I can think of is that environ is a macro that is
> expanding into something containing a "(".  Try out gcc -E to see
> what's going on.
Thanks... will try this...
BTW: Regarding the WinMain function... I have posted to the
SDL list to ask how it should look. In MLKit they actually
had the main function in the C-runtime (which it links with of course),
so in MLKit I just included SDL_mangle.h which has an ugly (but cool! :)
main macro to take care of these things...
Cheers
-- 
http://www.HardcoreProcessing.com