src/SDL.c
changeset 1487 dc6b59e925a2
parent 1465 8dfa9a6d69a5
child 1662 782fd950bd46
child 1895 c121d94672cb
child 3975 e85e65aec22f
     1.1 --- a/src/SDL.c	Wed Mar 08 18:30:12 2006 +0000
     1.2 +++ b/src/SDL.c	Thu Mar 09 06:33:21 2006 +0000
     1.3 @@ -253,14 +253,14 @@
     1.4  }
     1.5  
     1.6  #if defined(__OS2__)
     1.7 -// Building for OS/2
     1.8 +/* Building for OS/2 */
     1.9  #ifdef __WATCOMC__
    1.10  
    1.11  #define INCL_DOSERRORS
    1.12  #define INCL_DOSEXCEPTIONS
    1.13  #include <os2.h>
    1.14  
    1.15 -// Exception handler to prevent the Audio thread hanging, making a zombie process!
    1.16 +/* Exception handler to prevent the Audio thread hanging, making a zombie process! */
    1.17  ULONG _System SDL_Main_ExceptionHandler(PEXCEPTIONREPORTRECORD pERepRec,
    1.18                                          PEXCEPTIONREGISTRATIONRECORD pERegRec,
    1.19                                          PCONTEXTRECORD pCtxRec,
    1.20 @@ -273,7 +273,7 @@
    1.21    if (pERepRec->fHandlerFlags & EH_NESTED_CALL)
    1.22      return XCPT_CONTINUE_SEARCH;
    1.23  
    1.24 -  // Do cleanup at every fatal exception!
    1.25 +  /* Do cleanup at every fatal exception! */
    1.26    if (((pERepRec->ExceptionNum & XCPT_SEVERITY_CODE) == XCPT_FATAL_EXCEPTION) &&
    1.27        (pERepRec->ExceptionNum != XCPT_BREAKPOINT) &&
    1.28        (pERepRec->ExceptionNum != XCPT_SINGLE_STEP)
    1.29 @@ -281,7 +281,7 @@
    1.30    {
    1.31      if (SDL_initialized & SDL_INIT_AUDIO)
    1.32      {
    1.33 -      // This removes the zombie audio thread in case of emergency.
    1.34 +      /* This removes the zombie audio thread in case of emergency. */
    1.35  #ifdef DEBUG_BUILD
    1.36        printf("[SDL_Main_ExceptionHandler] : Calling SDL_CloseAudio()!\n");
    1.37  #endif
    1.38 @@ -294,28 +294,28 @@
    1.39  
    1.40  EXCEPTIONREGISTRATIONRECORD SDL_Main_xcpthand = {0, SDL_Main_ExceptionHandler};
    1.41  
    1.42 -// The main DLL entry for DLL Initialization and Uninitialization:
    1.43 +/* The main DLL entry for DLL Initialization and Uninitialization: */
    1.44  unsigned _System LibMain(unsigned hmod, unsigned termination)
    1.45  {
    1.46    if (termination)
    1.47    {
    1.48  #ifdef DEBUG_BUILD
    1.49 -//    printf("[SDL DLL Unintialization] : Removing exception handler\n");
    1.50 +/*    printf("[SDL DLL Unintialization] : Removing exception handler\n"); */
    1.51  #endif
    1.52      DosUnsetExceptionHandler(&SDL_Main_xcpthand);
    1.53      return 1;
    1.54    } else
    1.55    {
    1.56  #ifdef DEBUG_BUILD
    1.57 -    // Make stdout and stderr unbuffered!
    1.58 +    /* Make stdout and stderr unbuffered! */
    1.59      setbuf(stdout, NULL);
    1.60      setbuf(stderr, NULL);
    1.61  #endif
    1.62 -    // Fire up exception handler
    1.63 +    /* Fire up exception handler */
    1.64  #ifdef DEBUG_BUILD
    1.65 -//    printf("[SDL DLL Initialization] : Setting exception handler\n");
    1.66 +/*    printf("[SDL DLL Initialization] : Setting exception handler\n"); */
    1.67  #endif
    1.68 -    // Set exception handler
    1.69 +    /* Set exception handler */
    1.70      DosSetExceptionHandler(&SDL_Main_xcpthand);
    1.71  
    1.72      return 1;