Mercurial > sdl-ios-xcode
diff src/SDL.c @ 1487:dc6b59e925a2
Cleaning up warnings on MacOS X
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 09 Mar 2006 06:33:21 +0000 |
parents | 8dfa9a6d69a5 |
children | 782fd950bd46 c121d94672cb e85e65aec22f |
line wrap: on
line diff
--- a/src/SDL.c Wed Mar 08 18:30:12 2006 +0000 +++ b/src/SDL.c Thu Mar 09 06:33:21 2006 +0000 @@ -253,14 +253,14 @@ } #if defined(__OS2__) -// Building for OS/2 +/* Building for OS/2 */ #ifdef __WATCOMC__ #define INCL_DOSERRORS #define INCL_DOSEXCEPTIONS #include <os2.h> -// Exception handler to prevent the Audio thread hanging, making a zombie process! +/* Exception handler to prevent the Audio thread hanging, making a zombie process! */ ULONG _System SDL_Main_ExceptionHandler(PEXCEPTIONREPORTRECORD pERepRec, PEXCEPTIONREGISTRATIONRECORD pERegRec, PCONTEXTRECORD pCtxRec, @@ -273,7 +273,7 @@ if (pERepRec->fHandlerFlags & EH_NESTED_CALL) return XCPT_CONTINUE_SEARCH; - // Do cleanup at every fatal exception! + /* Do cleanup at every fatal exception! */ if (((pERepRec->ExceptionNum & XCPT_SEVERITY_CODE) == XCPT_FATAL_EXCEPTION) && (pERepRec->ExceptionNum != XCPT_BREAKPOINT) && (pERepRec->ExceptionNum != XCPT_SINGLE_STEP) @@ -281,7 +281,7 @@ { if (SDL_initialized & SDL_INIT_AUDIO) { - // This removes the zombie audio thread in case of emergency. + /* This removes the zombie audio thread in case of emergency. */ #ifdef DEBUG_BUILD printf("[SDL_Main_ExceptionHandler] : Calling SDL_CloseAudio()!\n"); #endif @@ -294,28 +294,28 @@ EXCEPTIONREGISTRATIONRECORD SDL_Main_xcpthand = {0, SDL_Main_ExceptionHandler}; -// The main DLL entry for DLL Initialization and Uninitialization: +/* The main DLL entry for DLL Initialization and Uninitialization: */ unsigned _System LibMain(unsigned hmod, unsigned termination) { if (termination) { #ifdef DEBUG_BUILD -// printf("[SDL DLL Unintialization] : Removing exception handler\n"); +/* printf("[SDL DLL Unintialization] : Removing exception handler\n"); */ #endif DosUnsetExceptionHandler(&SDL_Main_xcpthand); return 1; } else { #ifdef DEBUG_BUILD - // Make stdout and stderr unbuffered! + /* Make stdout and stderr unbuffered! */ setbuf(stdout, NULL); setbuf(stderr, NULL); #endif - // Fire up exception handler + /* Fire up exception handler */ #ifdef DEBUG_BUILD -// printf("[SDL DLL Initialization] : Setting exception handler\n"); +/* printf("[SDL DLL Initialization] : Setting exception handler\n"); */ #endif - // Set exception handler + /* Set exception handler */ DosSetExceptionHandler(&SDL_Main_xcpthand); return 1;