More non C89 compliant comments
authorGabriel Jacobo <gabomdq@gmail.com>
Tue, 20 Aug 2013 20:34:40 -0300
changeset 766353fe1b64eb2d
parent 7662 d31efd717578
child 7664 6995a81e065a
More non C89 compliant comments
include/SDL_config_psp.h
include/SDL_test_harness.h
src/audio/directsound/SDL_directsound.c
src/audio/psp/SDL_pspaudio.c
src/core/android/SDL_android.c
src/events/scancodes_windows.h
src/joystick/windows/SDL_dxjoystick.c
src/main/android/SDL_android_main.c
src/render/direct3d/SDL_render_d3d.c
src/render/psp/SDL_render_psp.c
src/video/bwindow/SDL_BWin.h
src/video/bwindow/SDL_bopengl.h
src/video/windows/SDL_windowsevents.c
src/video/windows/SDL_windowswindow.c
test/testautomation_main.c
test/testautomation_platform.c
test/testautomation_rect.c
test/testautomation_rwops.c
test/testautomation_suites.h
test/testfile.c
test/testgesture.c
test/testime.c
test/testmessage.c
test/testrendercopyex.c
test/testresample.c
test/testshader.c
test/testshape.c
test/testwm2.c
     1.1 --- a/include/SDL_config_psp.h	Tue Aug 20 19:49:24 2013 -0300
     1.2 +++ b/include/SDL_config_psp.h	Tue Aug 20 20:34:40 2013 -0300
     1.3 @@ -99,8 +99,8 @@
     1.4  #define HAVE_SQRT   1
     1.5  #define HAVE_SETJMP 1
     1.6  #define HAVE_NANOSLEEP  1
     1.7 -//#define HAVE_SYSCONF  1
     1.8 -//#define HAVE_SIGACTION    1
     1.9 +/*#define HAVE_SYSCONF  1*/
    1.10 +/*#define HAVE_SIGACTION    1*/
    1.11  
    1.12  
    1.13  /* PSP isn't that sophisticated */
     2.1 --- a/include/SDL_test_harness.h	Tue Aug 20 19:49:24 2013 -0300
     2.2 +++ b/include/SDL_test_harness.h	Tue Aug 20 20:34:40 2013 -0300
     2.3 @@ -43,30 +43,30 @@
     2.4  #endif
     2.5  
     2.6  
     2.7 -//! Definitions for test case structures
     2.8 +/*! Definitions for test case structures*/
     2.9  #define TEST_ENABLED  1
    2.10  #define TEST_DISABLED 0
    2.11  
    2.12 -//! Definition of all the possible test return values of the test case method
    2.13 +/*! Definition of all the possible test return values of the test case method*/
    2.14  #define TEST_ABORTED        -1
    2.15  #define TEST_STARTED         0
    2.16  #define TEST_COMPLETED       1
    2.17  #define TEST_SKIPPED         2
    2.18  
    2.19 -//! Definition of all the possible test results for the harness
    2.20 +/*! Definition of all the possible test results for the harness*/
    2.21  #define TEST_RESULT_PASSED              0
    2.22  #define TEST_RESULT_FAILED              1
    2.23  #define TEST_RESULT_NO_ASSERT           2
    2.24  #define TEST_RESULT_SKIPPED             3
    2.25  #define TEST_RESULT_SETUP_FAILURE       4
    2.26  
    2.27 -//!< Function pointer to a test case setup function (run before every test)
    2.28 +/*!< Function pointer to a test case setup function (run before every test)*/
    2.29  typedef void (*SDLTest_TestCaseSetUpFp)(void *arg);
    2.30  
    2.31 -//!< Function pointer to a test case function
    2.32 +/*!< Function pointer to a test case function*/
    2.33  typedef int (*SDLTest_TestCaseFp)(void *arg);
    2.34  
    2.35 -//!< Function pointer to a test case teardown function (run after every test)
    2.36 +/*!< Function pointer to a test case teardown function (run after every test)*/
    2.37  typedef void  (*SDLTest_TestCaseTearDownFp)(void *arg);
    2.38  
    2.39  /**
     3.1 --- a/src/audio/directsound/SDL_directsound.c	Tue Aug 20 19:49:24 2013 -0300
     3.2 +++ b/src/audio/directsound/SDL_directsound.c	Tue Aug 20 20:34:40 2013 -0300
     3.3 @@ -510,7 +510,7 @@
     3.4      if (!valid_format) {
     3.5          DSOUND_CloseDevice(this);
     3.6          if (tried_format) {
     3.7 -            return -1;  // CreateSecondary() should have called SDL_SetError().
     3.8 +            return -1;  /* CreateSecondary() should have called SDL_SetError(). */
     3.9          }
    3.10          return SDL_SetError("DirectSound: Unsupported audio format");
    3.11      }
     4.1 --- a/src/audio/psp/SDL_pspaudio.c	Tue Aug 20 19:49:24 2013 -0300
     4.2 +++ b/src/audio/psp/SDL_pspaudio.c	Tue Aug 20 20:34:40 2013 -0300
     4.3 @@ -63,7 +63,7 @@
     4.4      this->spec.freq = 44100;
     4.5  
     4.6      /* Update the fragment size as size in bytes. */
     4.7 -//  SDL_CalculateAudioSpec(this->spec); MOD
     4.8 +/*  SDL_CalculateAudioSpec(this->spec); MOD*/
     4.9      switch (this->spec.format) {
    4.10      case AUDIO_U8:
    4.11          this->spec.silence = 0x80;
    4.12 @@ -76,7 +76,7 @@
    4.13      this->spec.size *= this->spec.channels;
    4.14      this->spec.size *= this->spec.samples;
    4.15  
    4.16 -//==========================================
    4.17 +/*==========================================*/
    4.18  
    4.19      /* Allocate the mixing buffer.  Its size and starting address must
    4.20         be a multiple of 64 bytes.  Our sample count is already a multiple of
    4.21 @@ -162,7 +162,7 @@
    4.22  PSPAUD_Init(SDL_AudioDriverImpl * impl)
    4.23  {
    4.24  
    4.25 -    // Set the function pointers
    4.26 +    /* Set the function pointers*/
    4.27      impl->OpenDevice = PSPAUD_OpenDevice;
    4.28      impl->PlayDevice = PSPAUD_PlayDevice;
    4.29      impl->WaitDevice = PSPAUD_WaitDevice;
    4.30 @@ -171,7 +171,7 @@
    4.31      impl->CloseDevice = PSPAUD_CloseDevice;
    4.32      impl->ThreadInit = PSPAUD_ThreadInit;
    4.33  
    4.34 -    //PSP audio device
    4.35 +    /*PSP audio device*/
    4.36      impl->OnlyHasDefaultOutputDevice = 1;
    4.37  /*
    4.38      impl->HasCaptureSupport = 1;
     5.1 --- a/src/core/android/SDL_android.c	Tue Aug 20 19:49:24 2013 -0300
     5.2 +++ b/src/core/android/SDL_android.c	Tue Aug 20 20:34:40 2013 -0300
     5.3 @@ -40,13 +40,13 @@
     5.4  #include <sys/types.h>
     5.5  #include <unistd.h>
     5.6  #define LOG_TAG "SDL_android"
     5.7 -//#define LOGI(...)  __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
     5.8 -//#define LOGE(...)  __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
     5.9 +/*#define LOGI(...)  __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)*/
    5.10 +/*#define LOGE(...)  __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)*/
    5.11  #define LOGI(...) do {} while (false)
    5.12  #define LOGE(...) do {} while (false)
    5.13  
    5.14  /* Uncomment this to log messages entering and exiting methods in this file */
    5.15 -//#define DEBUG_JNI
    5.16 +/*#define DEBUG_JNI */
    5.17  
    5.18  static void Android_JNI_ThreadDestroyed(void*);
    5.19  
    5.20 @@ -64,10 +64,10 @@
    5.21  static pthread_key_t mThreadKey;
    5.22  static JavaVM* mJavaVM;
    5.23  
    5.24 -// Main activity
    5.25 +/* Main activity */
    5.26  static jclass mActivityClass;
    5.27  
    5.28 -// method signatures
    5.29 +/* method signatures */
    5.30  static jmethodID midGetNativeSurface;
    5.31  static jmethodID midFlipBuffers;
    5.32  static jmethodID midAudioInit;
    5.33 @@ -75,7 +75,7 @@
    5.34  static jmethodID midAudioWriteByteBuffer;
    5.35  static jmethodID midAudioQuit;
    5.36  
    5.37 -// Accelerometer data storage
    5.38 +/* Accelerometer data storage */
    5.39  static float fLastAccelerometer[3];
    5.40  static bool bHasNewData;
    5.41  
    5.42 @@ -83,7 +83,7 @@
    5.43                   Functions called by JNI
    5.44  *******************************************************************************/
    5.45  
    5.46 -// Library init
    5.47 +/* Library init */
    5.48  jint JNI_OnLoad(JavaVM* vm, void* reserved)
    5.49  {
    5.50      JNIEnv *env;
    5.51 @@ -107,7 +107,7 @@
    5.52      return JNI_VERSION_1_4;
    5.53  }
    5.54  
    5.55 -// Called before SDL_main() to initialize JNI bindings
    5.56 +/* Called before SDL_main() to initialize JNI bindings */
    5.57  void SDL_Android_Init(JNIEnv* mEnv, jclass cls)
    5.58  {
    5.59      __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL_Android_Init()");
    5.60 @@ -138,7 +138,7 @@
    5.61      __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL_Android_Init() finished!");
    5.62  }
    5.63  
    5.64 -// Resize
    5.65 +/* Resize */
    5.66  void Java_org_libsdl_app_SDLActivity_onNativeResize(
    5.67                                      JNIEnv* env, jclass jcls,
    5.68                                      jint width, jint height, jint format)
    5.69 @@ -147,7 +147,7 @@
    5.70  }
    5.71  
    5.72  
    5.73 -// Surface Created
    5.74 +/* Surface Created */
    5.75  void Java_org_libsdl_app_SDLActivity_onNativeSurfaceChanged(JNIEnv* env, jclass jcls)
    5.76  {
    5.77      SDL_WindowData *data;
    5.78 @@ -173,7 +173,7 @@
    5.79      
    5.80  }
    5.81  
    5.82 -// Surface Destroyed
    5.83 +/* Surface Destroyed */
    5.84  void Java_org_libsdl_app_SDLActivity_onNativeSurfaceDestroyed(JNIEnv* env, jclass jcls)
    5.85  {
    5.86      /* We have to clear the current context and destroy the egl surface here
    5.87 @@ -205,21 +205,21 @@
    5.88      SDL_GL_SwapWindow(Android_Window);
    5.89  }
    5.90  
    5.91 -// Keydown
    5.92 +/* Keydown */
    5.93  void Java_org_libsdl_app_SDLActivity_onNativeKeyDown(
    5.94                                      JNIEnv* env, jclass jcls, jint keycode)
    5.95  {
    5.96      Android_OnKeyDown(keycode);
    5.97  }
    5.98  
    5.99 -// Keyup
   5.100 +/* Keyup */
   5.101  void Java_org_libsdl_app_SDLActivity_onNativeKeyUp(
   5.102                                      JNIEnv* env, jclass jcls, jint keycode)
   5.103  {
   5.104      Android_OnKeyUp(keycode);
   5.105  }
   5.106  
   5.107 -// Keyboard Focus Lost
   5.108 +/* Keyboard Focus Lost */
   5.109  void Java_org_libsdl_app_SDLActivity_onNativeKeyboardFocusLost(
   5.110                                      JNIEnv* env, jclass jcls)
   5.111  {
   5.112 @@ -228,7 +228,7 @@
   5.113  }
   5.114  
   5.115  
   5.116 -// Touch
   5.117 +/* Touch */
   5.118  void Java_org_libsdl_app_SDLActivity_onNativeTouch(
   5.119                                      JNIEnv* env, jclass jcls,
   5.120                                      jint touch_device_id_in, jint pointer_finger_id_in,
   5.121 @@ -237,7 +237,7 @@
   5.122      Android_OnTouch(touch_device_id_in, pointer_finger_id_in, action, x, y, p);
   5.123  }
   5.124  
   5.125 -// Accelerometer
   5.126 +/* Accelerometer */
   5.127  void Java_org_libsdl_app_SDLActivity_onNativeAccel(
   5.128                                      JNIEnv* env, jclass jcls,
   5.129                                      jfloat x, jfloat y, jfloat z)
   5.130 @@ -248,23 +248,23 @@
   5.131      bHasNewData = true;
   5.132  }
   5.133  
   5.134 -// Low memory
   5.135 +/* Low memory */
   5.136  void Java_org_libsdl_app_SDLActivity_nativeLowMemory(
   5.137                                      JNIEnv* env, jclass cls)
   5.138  {
   5.139      SDL_SendAppEvent(SDL_APP_LOWMEMORY);
   5.140  }
   5.141  
   5.142 -// Quit
   5.143 +/* Quit */
   5.144  void Java_org_libsdl_app_SDLActivity_nativeQuit(
   5.145                                      JNIEnv* env, jclass cls)
   5.146  {
   5.147 -    // Inject a SDL_QUIT event
   5.148 +    /* Inject a SDL_QUIT event */
   5.149      SDL_SendQuit();
   5.150      SDL_SendAppEvent(SDL_APP_TERMINATING);
   5.151  }
   5.152  
   5.153 -// Pause
   5.154 +/* Pause */
   5.155  void Java_org_libsdl_app_SDLActivity_nativePause(
   5.156                                      JNIEnv* env, jclass cls)
   5.157  {
   5.158 @@ -280,7 +280,7 @@
   5.159      SDL_SendAppEvent(SDL_APP_DIDENTERBACKGROUND);
   5.160  }
   5.161  
   5.162 -// Resume
   5.163 +/* Resume */
   5.164  void Java_org_libsdl_app_SDLActivity_nativeResume(
   5.165                                      JNIEnv* env, jclass cls)
   5.166  {
   5.167 @@ -468,9 +468,9 @@
   5.168      return 1;
   5.169  }
   5.170  
   5.171 -//
   5.172 -// Audio support
   5.173 -//
   5.174 +/*
   5.175 + * Audio support
   5.176 + */
   5.177  static jboolean audioBuffer16Bit = JNI_FALSE;
   5.178  static jboolean audioBufferStereo = JNI_FALSE;
   5.179  static jobject audioBuffer = NULL;
   5.180 @@ -568,8 +568,8 @@
   5.181      }
   5.182  }
   5.183  
   5.184 -// Test for an exception and call SDL_SetError with its detail if one occurs
   5.185 -// If the parameter silent is truthy then SDL_SetError() will not be called.
   5.186 +/* Test for an exception and call SDL_SetError with its detail if one occurs */
   5.187 +/* If the parameter silent is truthy then SDL_SetError() will not be called. */
   5.188  static bool Android_JNI_ExceptionOccurred(bool silent)
   5.189  {
   5.190      SDL_assert(LocalReferenceHolder_IsActive());
   5.191 @@ -579,7 +579,7 @@
   5.192      if (exception != NULL) {
   5.193          jmethodID mid;
   5.194  
   5.195 -        // Until this happens most JNI operations have undefined behaviour
   5.196 +        /* Until this happens most JNI operations have undefined behaviour */
   5.197          (*mEnv)->ExceptionClear(mEnv);
   5.198  
   5.199          if (!silent) {
   5.200 @@ -635,13 +635,13 @@
   5.201      fileNameJString = (jstring)ctx->hidden.androidio.fileNameRef;
   5.202      ctx->hidden.androidio.position = 0;
   5.203  
   5.204 -    // context = SDLActivity.getContext();
   5.205 +    /* context = SDLActivity.getContext(); */
   5.206      mid = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
   5.207              "getContext","()Landroid/content/Context;");
   5.208      context = (*mEnv)->CallStaticObjectMethod(mEnv, mActivityClass, mid);
   5.209  
   5.210  
   5.211 -    // assetManager = context.getAssets();
   5.212 +    /* assetManager = context.getAssets(); */
   5.213      mid = (*mEnv)->GetMethodID(mEnv, (*mEnv)->GetObjectClass(mEnv, context),
   5.214              "getAssets", "()Landroid/content/res/AssetManager;");
   5.215      assetManager = (*mEnv)->CallObjectMethod(mEnv, context, mid);
   5.216 @@ -674,18 +674,18 @@
   5.217      ctx->hidden.androidio.fd = (*mEnv)->GetIntField(mEnv, fd, descriptor);
   5.218      ctx->hidden.androidio.assetFileDescriptorRef = (*mEnv)->NewGlobalRef(mEnv, inputStream);
   5.219  
   5.220 -    // Seek to the correct offset in the file.
   5.221 +    /* Seek to the correct offset in the file. */
   5.222      lseek(ctx->hidden.androidio.fd, (off_t)ctx->hidden.androidio.offset, SEEK_SET);
   5.223  
   5.224      if (false) {
   5.225  fallback:
   5.226 -        // Disabled log message because of spam on the Nexus 7
   5.227 -        //__android_log_print(ANDROID_LOG_DEBUG, "SDL", "Falling back to legacy InputStream method for opening file");
   5.228 +        /* Disabled log message because of spam on the Nexus 7 */
   5.229 +        /*__android_log_print(ANDROID_LOG_DEBUG, "SDL", "Falling back to legacy InputStream method for opening file");*/
   5.230  
   5.231          /* Try the old method using InputStream */
   5.232          ctx->hidden.androidio.assetFileDescriptorRef = NULL;
   5.233  
   5.234 -        // inputStream = assetManager.open(<filename>);
   5.235 +        /* inputStream = assetManager.open(<filename>); */
   5.236          mid = (*mEnv)->GetMethodID(mEnv, (*mEnv)->GetObjectClass(mEnv, assetManager),
   5.237                  "open", "(Ljava/lang/String;I)Ljava/io/InputStream;");
   5.238          inputStream = (*mEnv)->CallObjectMethod(mEnv, assetManager, mid, fileNameJString, 1 /*ACCESS_RANDOM*/);
   5.239 @@ -695,13 +695,14 @@
   5.240  
   5.241          ctx->hidden.androidio.inputStreamRef = (*mEnv)->NewGlobalRef(mEnv, inputStream);
   5.242  
   5.243 -        // Despite all the visible documentation on [Asset]InputStream claiming
   5.244 -        // that the .available() method is not guaranteed to return the entire file
   5.245 -        // size, comments in <sdk>/samples/<ver>/ApiDemos/src/com/example/ ...
   5.246 -        // android/apis/content/ReadAsset.java imply that Android's
   5.247 -        // AssetInputStream.available() /will/ always return the total file size
   5.248 -
   5.249 -        // size = inputStream.available();
   5.250 +        /* Despite all the visible documentation on [Asset]InputStream claiming
   5.251 +         * that the .available() method is not guaranteed to return the entire file
   5.252 +         * size, comments in <sdk>/samples/<ver>/ApiDemos/src/com/example/ ...
   5.253 +         * android/apis/content/ReadAsset.java imply that Android's
   5.254 +         * AssetInputStream.available() /will/ always return the total file size
   5.255 +        */
   5.256 +        
   5.257 +        /* size = inputStream.available(); */
   5.258          mid = (*mEnv)->GetMethodID(mEnv, (*mEnv)->GetObjectClass(mEnv, inputStream),
   5.259                  "available", "()I");
   5.260          ctx->hidden.androidio.size = (long)(*mEnv)->CallIntMethod(mEnv, inputStream, mid);
   5.261 @@ -709,7 +710,7 @@
   5.262              goto failure;
   5.263          }
   5.264  
   5.265 -        // readableByteChannel = Channels.newChannel(inputStream);
   5.266 +        /* readableByteChannel = Channels.newChannel(inputStream); */
   5.267          channels = (*mEnv)->FindClass(mEnv, "java/nio/channels/Channels");
   5.268          mid = (*mEnv)->GetStaticMethodID(mEnv, channels,
   5.269                  "newChannel",
   5.270 @@ -723,7 +724,7 @@
   5.271          ctx->hidden.androidio.readableByteChannelRef =
   5.272              (*mEnv)->NewGlobalRef(mEnv, readableByteChannel);
   5.273  
   5.274 -        // Store .read id for reading purposes
   5.275 +        /* Store .read id for reading purposes */
   5.276          mid = (*mEnv)->GetMethodID(mEnv, (*mEnv)->GetObjectClass(mEnv, readableByteChannel),
   5.277                  "read", "(Ljava/nio/ByteBuffer;)I");
   5.278          ctx->hidden.androidio.readMethod = mid;
   5.279 @@ -819,7 +820,7 @@
   5.280          jobject byteBuffer = (*mEnv)->NewDirectByteBuffer(mEnv, buffer, bytesRemaining);
   5.281  
   5.282          while (bytesRemaining > 0) {
   5.283 -            // result = readableByteChannel.read(...);
   5.284 +            /* result = readableByteChannel.read(...); */
   5.285              int result = (*mEnv)->CallIntMethod(mEnv, readableByteChannel, readMethod, byteBuffer);
   5.286  
   5.287              if (Android_JNI_ExceptionOccurred(false)) {
   5.288 @@ -877,7 +878,7 @@
   5.289          else {
   5.290              jobject inputStream = (jobject)ctx->hidden.androidio.inputStreamRef;
   5.291  
   5.292 -            // inputStream.close();
   5.293 +            /* inputStream.close();*/
   5.294              jmethodID mid = (*mEnv)->GetMethodID(mEnv, (*mEnv)->GetObjectClass(mEnv, inputStream),
   5.295                      "close", "()V");
   5.296              (*mEnv)->CallVoidMethod(mEnv, inputStream, mid);
   5.297 @@ -956,7 +957,7 @@
   5.298          if (movement > 0) {
   5.299              unsigned char buffer[4096];
   5.300  
   5.301 -            // The easy case where we're seeking forwards
   5.302 +            /* The easy case where we're seeking forwards */
   5.303              while (movement > 0) {
   5.304                  Sint64 amount = sizeof (buffer);
   5.305                  if (amount > movement) {
   5.306 @@ -964,7 +965,7 @@
   5.307                  }
   5.308                  size_t result = Android_JNI_FileRead(ctx, buffer, 1, amount);
   5.309                  if (result <= 0) {
   5.310 -                    // Failed to read/skip the required amount, so fail
   5.311 +                    /* Failed to read/skip the required amount, so fail */
   5.312                      return -1;
   5.313                  }
   5.314  
   5.315 @@ -972,8 +973,8 @@
   5.316              }
   5.317  
   5.318          } else if (movement < 0) {
   5.319 -            // We can't seek backwards so we have to reopen the file and seek
   5.320 -            // forwards which obviously isn't very efficient
   5.321 +            /* We can't seek backwards so we have to reopen the file and seek */
   5.322 +            /* forwards which obviously isn't very efficient */
   5.323              Internal_Android_JNI_FileClose(ctx, false);
   5.324              Internal_Android_JNI_FileOpen(ctx);
   5.325              Android_JNI_FileSeek(ctx, newPosition, RW_SEEK_SET);
   5.326 @@ -989,7 +990,7 @@
   5.327      return Internal_Android_JNI_FileClose(ctx, true);
   5.328  }
   5.329  
   5.330 -// returns a new global reference which needs to be released later
   5.331 +/* returns a new global reference which needs to be released later */
   5.332  static jobject Android_JNI_GetSystemServiceObject(const char* name)
   5.333  {
   5.334      struct LocalReferenceHolder refs = LocalReferenceHolder_Setup(__FUNCTION__);
   5.335 @@ -1089,9 +1090,10 @@
   5.336  }
   5.337  
   5.338  
   5.339 -// returns 0 on success or -1 on error (others undefined then)
   5.340 -// returns truthy or falsy value in plugged, charged and battery
   5.341 -// returns the value in seconds and percent or -1 if not available
   5.342 +/* returns 0 on success or -1 on error (others undefined then)
   5.343 + * returns truthy or falsy value in plugged, charged and battery
   5.344 + * returns the value in seconds and percent or -1 if not available
   5.345 + */
   5.346  int Android_JNI_GetPowerInfo(int* plugged, int* charged, int* battery, int* seconds, int* percent)
   5.347  {
   5.348      struct LocalReferenceHolder refs = LocalReferenceHolder_Setup(__FUNCTION__);
   5.349 @@ -1139,38 +1141,38 @@
   5.350      (*env)->DeleteLocalRef(env, bname);
   5.351  
   5.352      if (plugged) {
   5.353 -        GET_INT_EXTRA(plug, "plugged") // == BatteryManager.EXTRA_PLUGGED (API 5)
   5.354 +        GET_INT_EXTRA(plug, "plugged") /* == BatteryManager.EXTRA_PLUGGED (API 5) */
   5.355          if (plug == -1) {
   5.356              LocalReferenceHolder_Cleanup(&refs);
   5.357              return -1;
   5.358          }
   5.359 -        // 1 == BatteryManager.BATTERY_PLUGGED_AC
   5.360 -        // 2 == BatteryManager.BATTERY_PLUGGED_USB
   5.361 +        /* 1 == BatteryManager.BATTERY_PLUGGED_AC */
   5.362 +        /* 2 == BatteryManager.BATTERY_PLUGGED_USB */
   5.363          *plugged = (0 < plug) ? 1 : 0;
   5.364      }
   5.365  
   5.366      if (charged) {
   5.367 -        GET_INT_EXTRA(status, "status") // == BatteryManager.EXTRA_STATUS (API 5)
   5.368 +        GET_INT_EXTRA(status, "status") /* == BatteryManager.EXTRA_STATUS (API 5) */
   5.369          if (status == -1) {
   5.370              LocalReferenceHolder_Cleanup(&refs);
   5.371              return -1;
   5.372          }
   5.373 -        // 5 == BatteryManager.BATTERY_STATUS_FULL
   5.374 +        /* 5 == BatteryManager.BATTERY_STATUS_FULL */
   5.375          *charged = (status == 5) ? 1 : 0;
   5.376      }
   5.377  
   5.378      if (battery) {
   5.379 -        GET_BOOL_EXTRA(present, "present") // == BatteryManager.EXTRA_PRESENT (API 5)
   5.380 +        GET_BOOL_EXTRA(present, "present") /* == BatteryManager.EXTRA_PRESENT (API 5) */
   5.381          *battery = present ? 1 : 0;
   5.382      }
   5.383  
   5.384      if (seconds) {
   5.385 -        *seconds = -1; // not possible
   5.386 +        *seconds = -1; /* not possible */
   5.387      }
   5.388  
   5.389      if (percent) {
   5.390 -        GET_INT_EXTRA(level, "level") // == BatteryManager.EXTRA_LEVEL (API 5)
   5.391 -        GET_INT_EXTRA(scale, "scale") // == BatteryManager.EXTRA_SCALE (API 5)
   5.392 +        GET_INT_EXTRA(level, "level") /* == BatteryManager.EXTRA_LEVEL (API 5) */
   5.393 +        GET_INT_EXTRA(scale, "scale") /* == BatteryManager.EXTRA_SCALE (API 5) */
   5.394          if ((level == -1) || (scale == -1)) {
   5.395              LocalReferenceHolder_Cleanup(&refs);
   5.396              return -1;
   5.397 @@ -1184,7 +1186,7 @@
   5.398      return 0;
   5.399  }
   5.400  
   5.401 -// sends message to be handled on the UI event dispatch thread
   5.402 +/* sends message to be handled on the UI event dispatch thread */
   5.403  int Android_JNI_SendMessage(int command, int param)
   5.404  {
   5.405      JNIEnv *env = Android_JNI_GetEnv();
   5.406 @@ -1219,15 +1221,17 @@
   5.407  
   5.408  void Android_JNI_HideTextInput()
   5.409  {
   5.410 -    // has to match Activity constant
   5.411 +    /* has to match Activity constant */
   5.412      const int COMMAND_TEXTEDIT_HIDE = 3;
   5.413      Android_JNI_SendMessage(COMMAND_TEXTEDIT_HIDE, 0);
   5.414  }
   5.415  
   5.416 +/*
   5.417  //////////////////////////////////////////////////////////////////////////////
   5.418  //
   5.419  // Functions exposed to SDL applications in SDL_system.h
   5.420 -//
   5.421 +//////////////////////////////////////////////////////////////////////////////
   5.422 +*/
   5.423  
   5.424  void *SDL_AndroidGetJNIEnv()
   5.425  {
   5.426 @@ -1247,7 +1251,7 @@
   5.427          return NULL;
   5.428      }
   5.429  
   5.430 -    // return SDLActivity.getContext();
   5.431 +    /* return SDLActivity.getContext(); */
   5.432      mid = (*env)->GetStaticMethodID(env, mActivityClass,
   5.433              "getContext","()Landroid/content/Context;");
   5.434      return (*env)->CallStaticObjectMethod(env, mActivityClass, mid);
   5.435 @@ -1271,12 +1275,12 @@
   5.436              return NULL;
   5.437          }
   5.438  
   5.439 -        // context = SDLActivity.getContext();
   5.440 +        /* context = SDLActivity.getContext(); */
   5.441          mid = (*env)->GetStaticMethodID(env, mActivityClass,
   5.442                  "getContext","()Landroid/content/Context;");
   5.443          context = (*env)->CallStaticObjectMethod(env, mActivityClass, mid);
   5.444  
   5.445 -        // fileObj = context.getFilesDir();
   5.446 +        /* fileObj = context.getFilesDir(); */
   5.447          mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, context),
   5.448                  "getFilesDir", "()Ljava/io/File;");
   5.449          fileObject = (*env)->CallObjectMethod(env, context, mid);
   5.450 @@ -1286,7 +1290,7 @@
   5.451              return NULL;
   5.452          }
   5.453  
   5.454 -        // path = fileObject.getAbsolutePath();
   5.455 +        /* path = fileObject.getAbsolutePath(); */
   5.456          mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, fileObject),
   5.457                  "getAbsolutePath", "()Ljava/lang/String;");
   5.458          pathString = (jstring)(*env)->CallObjectMethod(env, fileObject, mid);
   5.459 @@ -1322,7 +1326,7 @@
   5.460  
   5.461      state = (*env)->GetStringUTFChars(env, stateString, NULL);
   5.462  
   5.463 -    // Print an info message so people debugging know the storage state
   5.464 +    /* Print an info message so people debugging know the storage state */
   5.465      __android_log_print(ANDROID_LOG_INFO, "SDL", "external storage state: %s", state);
   5.466  
   5.467      if (SDL_strcmp(state, "mounted") == 0) {
   5.468 @@ -1357,12 +1361,12 @@
   5.469              return NULL;
   5.470          }
   5.471  
   5.472 -        // context = SDLActivity.getContext();
   5.473 +        /* context = SDLActivity.getContext(); */
   5.474          mid = (*env)->GetStaticMethodID(env, mActivityClass,
   5.475                  "getContext","()Landroid/content/Context;");
   5.476          context = (*env)->CallStaticObjectMethod(env, mActivityClass, mid);
   5.477  
   5.478 -        // fileObj = context.getExternalFilesDir();
   5.479 +        /* fileObj = context.getExternalFilesDir(); */
   5.480          mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, context),
   5.481                  "getExternalFilesDir", "(Ljava/lang/String;)Ljava/io/File;");
   5.482          fileObject = (*env)->CallObjectMethod(env, context, mid, NULL);
   5.483 @@ -1372,7 +1376,7 @@
   5.484              return NULL;
   5.485          }
   5.486  
   5.487 -        // path = fileObject.getAbsolutePath();
   5.488 +        /* path = fileObject.getAbsolutePath(); */
   5.489          mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, fileObject),
   5.490                  "getAbsolutePath", "()Ljava/lang/String;");
   5.491          pathString = (jstring)(*env)->CallObjectMethod(env, fileObject, mid);
     6.1 --- a/src/events/scancodes_windows.h	Tue Aug 20 19:49:24 2013 -0300
     6.2 +++ b/src/events/scancodes_windows.h	Tue Aug 20 20:34:40 2013 -0300
     6.3 @@ -26,30 +26,30 @@
     6.4  /* *INDENT-OFF* */
     6.5  static const SDL_Scancode windows_scancode_table[] = 
     6.6  { 
     6.7 -	//	0						1							2							3							4						5							6							7 
     6.8 -	//	8						9							A							B							C						D							E							F 
     6.9 -	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_ESCAPE,		SDL_SCANCODE_1,				SDL_SCANCODE_2,				SDL_SCANCODE_3,			SDL_SCANCODE_4,				SDL_SCANCODE_5,				SDL_SCANCODE_6,			// 0
    6.10 -	SDL_SCANCODE_7,				SDL_SCANCODE_8,				SDL_SCANCODE_9,				SDL_SCANCODE_0,				SDL_SCANCODE_MINUS,		SDL_SCANCODE_EQUALS,		SDL_SCANCODE_BACKSPACE,		SDL_SCANCODE_TAB,		// 0 
    6.11 +	/*	0						1							2							3							4						5							6							7 */
    6.12 +	/*	8						9							A							B							C						D							E							F */
    6.13 +	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_ESCAPE,		SDL_SCANCODE_1,				SDL_SCANCODE_2,				SDL_SCANCODE_3,			SDL_SCANCODE_4,				SDL_SCANCODE_5,				SDL_SCANCODE_6,			/* 0 */
    6.14 +	SDL_SCANCODE_7,				SDL_SCANCODE_8,				SDL_SCANCODE_9,				SDL_SCANCODE_0,				SDL_SCANCODE_MINUS,		SDL_SCANCODE_EQUALS,		SDL_SCANCODE_BACKSPACE,		SDL_SCANCODE_TAB,		/* 0 */
    6.15  
    6.16 -	SDL_SCANCODE_Q,				SDL_SCANCODE_W,				SDL_SCANCODE_E,				SDL_SCANCODE_R,				SDL_SCANCODE_T,			SDL_SCANCODE_Y,				SDL_SCANCODE_U,				SDL_SCANCODE_I,			// 1
    6.17 -	SDL_SCANCODE_O,				SDL_SCANCODE_P,				SDL_SCANCODE_LEFTBRACKET,	SDL_SCANCODE_RIGHTBRACKET,	SDL_SCANCODE_RETURN,	SDL_SCANCODE_LCTRL,			SDL_SCANCODE_A,				SDL_SCANCODE_S,			// 1 
    6.18 +	SDL_SCANCODE_Q,				SDL_SCANCODE_W,				SDL_SCANCODE_E,				SDL_SCANCODE_R,				SDL_SCANCODE_T,			SDL_SCANCODE_Y,				SDL_SCANCODE_U,				SDL_SCANCODE_I,			/* 1 */
    6.19 +	SDL_SCANCODE_O,				SDL_SCANCODE_P,				SDL_SCANCODE_LEFTBRACKET,	SDL_SCANCODE_RIGHTBRACKET,	SDL_SCANCODE_RETURN,	SDL_SCANCODE_LCTRL,			SDL_SCANCODE_A,				SDL_SCANCODE_S,			/* 1 */
    6.20  
    6.21 -	SDL_SCANCODE_D,				SDL_SCANCODE_F,				SDL_SCANCODE_G,				SDL_SCANCODE_H,				SDL_SCANCODE_J,			SDL_SCANCODE_K,				SDL_SCANCODE_L,				SDL_SCANCODE_SEMICOLON,	// 2 
    6.22 -	SDL_SCANCODE_APOSTROPHE,	SDL_SCANCODE_GRAVE,			SDL_SCANCODE_LSHIFT,		SDL_SCANCODE_BACKSLASH,		SDL_SCANCODE_Z,			SDL_SCANCODE_X,				SDL_SCANCODE_C,				SDL_SCANCODE_V,			// 2 
    6.23 +	SDL_SCANCODE_D,				SDL_SCANCODE_F,				SDL_SCANCODE_G,				SDL_SCANCODE_H,				SDL_SCANCODE_J,			SDL_SCANCODE_K,				SDL_SCANCODE_L,				SDL_SCANCODE_SEMICOLON,	/* 2 */
    6.24 +	SDL_SCANCODE_APOSTROPHE,	SDL_SCANCODE_GRAVE,			SDL_SCANCODE_LSHIFT,		SDL_SCANCODE_BACKSLASH,		SDL_SCANCODE_Z,			SDL_SCANCODE_X,				SDL_SCANCODE_C,				SDL_SCANCODE_V,			/* 2 */
    6.25  
    6.26 -	SDL_SCANCODE_B,				SDL_SCANCODE_N,				SDL_SCANCODE_M,				SDL_SCANCODE_COMMA,			SDL_SCANCODE_PERIOD,	SDL_SCANCODE_SLASH,			SDL_SCANCODE_RSHIFT,		SDL_SCANCODE_PRINTSCREEN,// 3
    6.27 -	SDL_SCANCODE_LALT,			SDL_SCANCODE_SPACE,			SDL_SCANCODE_CAPSLOCK,		SDL_SCANCODE_F1,			SDL_SCANCODE_F2,		SDL_SCANCODE_F3,			SDL_SCANCODE_F4,			SDL_SCANCODE_F5,		// 3 
    6.28 +	SDL_SCANCODE_B,				SDL_SCANCODE_N,				SDL_SCANCODE_M,				SDL_SCANCODE_COMMA,			SDL_SCANCODE_PERIOD,	SDL_SCANCODE_SLASH,			SDL_SCANCODE_RSHIFT,		SDL_SCANCODE_PRINTSCREEN,/* 3 */
    6.29 +	SDL_SCANCODE_LALT,			SDL_SCANCODE_SPACE,			SDL_SCANCODE_CAPSLOCK,		SDL_SCANCODE_F1,			SDL_SCANCODE_F2,		SDL_SCANCODE_F3,			SDL_SCANCODE_F4,			SDL_SCANCODE_F5,		/* 3 */
    6.30  
    6.31 -	SDL_SCANCODE_F6,			SDL_SCANCODE_F7,			SDL_SCANCODE_F8,			SDL_SCANCODE_F9,			SDL_SCANCODE_F10,		SDL_SCANCODE_NUMLOCKCLEAR,	SDL_SCANCODE_SCROLLLOCK,	SDL_SCANCODE_HOME,		// 4
    6.32 -	SDL_SCANCODE_UP,			SDL_SCANCODE_PAGEUP,		SDL_SCANCODE_KP_MINUS,		SDL_SCANCODE_LEFT,			SDL_SCANCODE_KP_5,		SDL_SCANCODE_RIGHT,			SDL_SCANCODE_KP_PLUS,		SDL_SCANCODE_END,		// 4 
    6.33 +	SDL_SCANCODE_F6,			SDL_SCANCODE_F7,			SDL_SCANCODE_F8,			SDL_SCANCODE_F9,			SDL_SCANCODE_F10,		SDL_SCANCODE_NUMLOCKCLEAR,	SDL_SCANCODE_SCROLLLOCK,	SDL_SCANCODE_HOME,		/* 4 */
    6.34 +	SDL_SCANCODE_UP,			SDL_SCANCODE_PAGEUP,		SDL_SCANCODE_KP_MINUS,		SDL_SCANCODE_LEFT,			SDL_SCANCODE_KP_5,		SDL_SCANCODE_RIGHT,			SDL_SCANCODE_KP_PLUS,		SDL_SCANCODE_END,		/* 4 */
    6.35  
    6.36 -	SDL_SCANCODE_DOWN,			SDL_SCANCODE_PAGEDOWN,		SDL_SCANCODE_INSERT,		SDL_SCANCODE_DELETE,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_NONUSBACKSLASH,SDL_SCANCODE_F11,		// 5
    6.37 -	SDL_SCANCODE_F12,			SDL_SCANCODE_PAUSE,			SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_LGUI,			SDL_SCANCODE_RGUI,		SDL_SCANCODE_APPLICATION,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	// 5
    6.38 +	SDL_SCANCODE_DOWN,			SDL_SCANCODE_PAGEDOWN,		SDL_SCANCODE_INSERT,		SDL_SCANCODE_DELETE,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_NONUSBACKSLASH,SDL_SCANCODE_F11,		/* 5 */
    6.39 +	SDL_SCANCODE_F12,			SDL_SCANCODE_PAUSE,			SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_LGUI,			SDL_SCANCODE_RGUI,		SDL_SCANCODE_APPLICATION,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	/* 5 */
    6.40  
    6.41 -	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_F13,		SDL_SCANCODE_F14,			SDL_SCANCODE_F15,			SDL_SCANCODE_F16,		// 6
    6.42 -	SDL_SCANCODE_F17,			SDL_SCANCODE_F18,			SDL_SCANCODE_F19,			SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	// 6 
    6.43 +	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_F13,		SDL_SCANCODE_F14,			SDL_SCANCODE_F15,			SDL_SCANCODE_F16,		/* 6 */
    6.44 +	SDL_SCANCODE_F17,			SDL_SCANCODE_F18,			SDL_SCANCODE_F19,			SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	/* 6 */
    6.45  	
    6.46 -	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	// 7
    6.47 -	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN	// 7 
    6.48 +	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	/* 7 */
    6.49 +	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN	/* 7 */
    6.50  };
    6.51  /* *INDENT-ON* */
     7.1 --- a/src/joystick/windows/SDL_dxjoystick.c	Tue Aug 20 19:49:24 2013 -0300
     7.2 +++ b/src/joystick/windows/SDL_dxjoystick.c	Tue Aug 20 20:34:40 2013 -0300
     7.3 @@ -433,8 +433,8 @@
     7.4          return SDL_FALSE;
     7.5      }
     7.6  
     7.7 -    // Check for well known XInput device GUIDs
     7.8 -    // We need to do this for the Valve Streaming Gamepad because it's virtualized and doesn't show up in the device list.
     7.9 +    /* Check for well known XInput device GUIDs */
    7.10 +    /* We need to do this for the Valve Streaming Gamepad because it's virtualized and doesn't show up in the device list. */
    7.11      for ( iDevice = 0; iDevice < SDL_arraysize(s_XInputProductGUID); ++iDevice ) {
    7.12          if (SDL_memcmp(pGuidProductFromDirectInput, s_XInputProductGUID[iDevice], sizeof(GUID)) == 0) {
    7.13              return SDL_TRUE;
     8.1 --- a/src/main/android/SDL_android_main.c	Tue Aug 20 19:49:24 2013 -0300
     8.2 +++ b/src/main/android/SDL_android_main.c	Tue Aug 20 20:34:40 2013 -0300
     8.3 @@ -11,10 +11,10 @@
     8.4  *******************************************************************************/
     8.5  #include <jni.h>
     8.6  
     8.7 -// Called before SDL_main() to initialize JNI bindings in SDL library
     8.8 +/* Called before SDL_main() to initialize JNI bindings in SDL library */
     8.9  extern void SDL_Android_Init(JNIEnv* env, jclass cls);
    8.10  
    8.11 -// Start up the SDL app
    8.12 +/* Start up the SDL app */
    8.13  void Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject obj)
    8.14  {
    8.15      /* This interface could expand with ABI negotiation, calbacks, etc. */
    8.16 @@ -30,7 +30,7 @@
    8.17      status = SDL_main(1, argv);
    8.18  
    8.19      /* Do not issue an exit or the whole application will terminate instead of just the SDL thread */
    8.20 -    //exit(status);
    8.21 +    /*exit(status);*/
    8.22  }
    8.23  
    8.24  #endif /* __ANDROID__ */
     9.1 --- a/src/render/direct3d/SDL_render_d3d.c	Tue Aug 20 19:49:24 2013 -0300
     9.2 +++ b/src/render/direct3d/SDL_render_d3d.c	Tue Aug 20 20:34:40 2013 -0300
     9.3 @@ -1033,7 +1033,7 @@
     9.4      HRESULT result;
     9.5  
     9.6      if (data->yuv) {
     9.7 -        // It's more efficient to upload directly...
     9.8 +        /* It's more efficient to upload directly... */
     9.9          if (!data->pixels) {
    9.10              data->pitch = texture->w;
    9.11              data->pixels = (Uint8 *)SDL_malloc((texture->h * data->pitch * 3) / 2);
    10.1 --- a/src/render/psp/SDL_render_psp.c	Tue Aug 20 19:49:24 2013 -0300
    10.2 +++ b/src/render/psp/SDL_render_psp.c	Tue Aug 20 20:34:40 2013 -0300
    10.3 @@ -458,7 +458,7 @@
    10.4  static int
    10.5  PSP_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
    10.6  {
    10.7 -//      PSP_RenderData *renderdata = (PSP_RenderData *) renderer->driverdata;
    10.8 +/*      PSP_RenderData *renderdata = (PSP_RenderData *) renderer->driverdata;*/
    10.9      PSP_TextureData* psp_texture = (PSP_TextureData*) SDL_calloc(1, sizeof(*psp_texture));;
   10.10  
   10.11      if(!psp_texture)
   10.12 @@ -528,7 +528,7 @@
   10.13  PSP_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
   10.14                     const SDL_Rect * rect, const void *pixels, int pitch)
   10.15  {
   10.16 -//  PSP_TextureData *psp_texture = (PSP_TextureData *) texture->driverdata;
   10.17 +/*  PSP_TextureData *psp_texture = (PSP_TextureData *) texture->driverdata;*/
   10.18      const Uint8 *src;
   10.19      Uint8 *dst;
   10.20      int row, length,dpitch;
   10.21 @@ -895,8 +895,8 @@
   10.22          sceGuColor(0xFFFFFFFF);
   10.23      }
   10.24  
   10.25 -//      x += width * 0.5f;
   10.26 -//      y += height * 0.5f;
   10.27 +/*      x += width * 0.5f;*/
   10.28 +/*      y += height * 0.5f;*/
   10.29      x += centerx;
   10.30      y += centery;
   10.31  
   10.32 @@ -904,8 +904,8 @@
   10.33  
   10.34      MathSincos(degToRad(angle), &s, &c);
   10.35  
   10.36 -//      width *= 0.5f;
   10.37 -//      height *= 0.5f;
   10.38 +/*      width *= 0.5f;*/
   10.39 +/*      height *= 0.5f;*/
   10.40      width  -= centerx;
   10.41      height -= centery;
   10.42  
   10.43 @@ -968,7 +968,7 @@
   10.44      sceGuFinish();
   10.45      sceGuSync(0,0);
   10.46  
   10.47 -//  if(data->vsync)
   10.48 +/*  if(data->vsync)*/
   10.49          sceDisplayWaitVblankStart();
   10.50  
   10.51      data->backbuffer = data->frontbuffer;
   10.52 @@ -1007,8 +1007,8 @@
   10.53          StartDrawing(renderer);
   10.54  
   10.55          sceGuTerm();
   10.56 -//      vfree(data->backbuffer);
   10.57 -//      vfree(data->frontbuffer);
   10.58 +/*      vfree(data->backbuffer);*/
   10.59 +/*      vfree(data->frontbuffer);*/
   10.60  
   10.61          data->initialized = SDL_FALSE;
   10.62          data->displayListAvail = SDL_FALSE;
    11.1 --- a/src/video/bwindow/SDL_BWin.h	Tue Aug 20 19:49:24 2013 -0300
    11.2 +++ b/src/video/bwindow/SDL_BWin.h	Tue Aug 20 20:34:40 2013 -0300
    11.3 @@ -353,7 +353,7 @@
    11.4                 - CTRL+Q to close window (and other shortcuts)
    11.5                 - PrintScreen to make screenshot into /boot/home
    11.6                 - etc.. */
    11.7 -            //BDirectWindow::DispatchMessage(msg, target);
    11.8 +            /*BDirectWindow::DispatchMessage(msg, target);*/
    11.9              break;
   11.10          }
   11.11  
   11.12 @@ -461,9 +461,9 @@
   11.13          msg.AddBool("focusGained", focusGained);
   11.14          _PostWindowEvent(msg);
   11.15  
   11.16 -//FIXME: Why were these here?
   11.17 -// if false: be_app->SetCursor(B_HAND_CURSOR);
   11.18 -// if true:  SDL_SetCursor(NULL);
   11.19 +/*FIXME: Why were these here?
   11.20 + if false: be_app->SetCursor(B_HAND_CURSOR);
   11.21 + if true:  SDL_SetCursor(NULL);*/
   11.22      }
   11.23  
   11.24      void _MouseButtonEvent(int32 buttons) {
    12.1 --- a/src/video/bwindow/SDL_bopengl.h	Tue Aug 20 19:49:24 2013 -0300
    12.2 +++ b/src/video/bwindow/SDL_bopengl.h	Tue Aug 20 20:34:40 2013 -0300
    12.3 @@ -29,13 +29,13 @@
    12.4  #include "../SDL_sysvideo.h"
    12.5  
    12.6  
    12.7 -extern int BE_GL_LoadLibrary(_THIS, const char *path);                  //FIXME
    12.8 -extern void *BE_GL_GetProcAddress(_THIS, const char *proc);             //FIXME
    12.9 -extern void BE_GL_UnloadLibrary(_THIS);                                 //TODO
   12.10 +extern int BE_GL_LoadLibrary(_THIS, const char *path);                  /*FIXME*/
   12.11 +extern void *BE_GL_GetProcAddress(_THIS, const char *proc);             /*FIXME*/
   12.12 +extern void BE_GL_UnloadLibrary(_THIS);                                 /*TODO*/
   12.13  extern int BE_GL_MakeCurrent(_THIS, SDL_Window * window,
   12.14                                SDL_GLContext context);
   12.15 -extern int BE_GL_SetSwapInterval(_THIS, int interval);                  //TODO
   12.16 -extern int BE_GL_GetSwapInterval(_THIS);                                //TODO
   12.17 +extern int BE_GL_SetSwapInterval(_THIS, int interval);                  /*TODO*/
   12.18 +extern int BE_GL_GetSwapInterval(_THIS);                                /*TODO*/
   12.19  extern void BE_GL_SwapWindow(_THIS, SDL_Window * window);
   12.20  extern SDL_GLContext BE_GL_CreateContext(_THIS, SDL_Window * window);
   12.21  extern void BE_GL_DeleteContext(_THIS, SDL_GLContext context);
    13.1 --- a/src/video/windows/SDL_windowsevents.c	Tue Aug 20 19:49:24 2013 -0300
    13.2 +++ b/src/video/windows/SDL_windowsevents.c	Tue Aug 20 20:34:40 2013 -0300
    13.3 @@ -533,7 +533,7 @@
    13.4                  break;
    13.5              }
    13.6          }
    13.7 -        // no break
    13.8 +        /* no break */
    13.9      case WM_CHAR:
   13.10          {
   13.11              char text[5];
    14.1 --- a/src/video/windows/SDL_windowswindow.c	Tue Aug 20 19:49:24 2013 -0300
    14.2 +++ b/src/video/windows/SDL_windowswindow.c	Tue Aug 20 20:34:40 2013 -0300
    14.3 @@ -157,7 +157,7 @@
    14.4              int w = rect.right;
    14.5              int h = rect.bottom;
    14.6              if ((window->w && window->w != w) || (window->h && window->h != h)) {
    14.7 -                // We tried to create a window larger than the desktop and Windows didn't allow it.  Override!
    14.8 +                /* We tried to create a window larger than the desktop and Windows didn't allow it.  Override! */
    14.9                  WIN_SetWindowPositionInternal(_this, window, SWP_NOCOPYBITS | SWP_NOZORDER | SWP_NOACTIVATE);
   14.10              } else {
   14.11                  window->w = w;
    15.1 --- a/test/testautomation_main.c	Tue Aug 20 19:49:24 2013 -0300
    15.2 +++ b/test/testautomation_main.c	Tue Aug 20 20:34:40 2013 -0300
    15.3 @@ -79,16 +79,16 @@
    15.4  #else
    15.5      int initialized_system;
    15.6  
    15.7 -    // First initialize the controller
    15.8 +    /* First initialize the controller */
    15.9      SDLTest_AssertCheck( (SDL_WasInit(joy_and_controller) & joy_and_controller) == 0, "SDL_WasInit() before init should be false for joystick & controller" );
   15.10      SDLTest_AssertCheck( SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER) == 0, "SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER)" );
   15.11  
   15.12 -    // Then make sure this implicitly initialized the joystick subsystem
   15.13 +    /* Then make sure this implicitly initialized the joystick subsystem */
   15.14      initialized_system = SDL_WasInit(joy_and_controller);
   15.15      SDLTest_AssertCheck( (initialized_system & joy_and_controller) == joy_and_controller, "SDL_WasInit() should be true for joystick & controller (%x)", initialized_system );
   15.16  
   15.17 -    // Then quit the controller, and make sure that implicitly also quits the
   15.18 -    // joystick subsystem
   15.19 +    /* Then quit the controller, and make sure that implicitly also quits the */
   15.20 +    /* joystick subsystem */
   15.21      SDL_QuitSubSystem(SDL_INIT_GAMECONTROLLER);
   15.22      initialized_system = SDL_WasInit(joy_and_controller);
   15.23      SDLTest_AssertCheck( (initialized_system & joy_and_controller) == 0, "SDL_WasInit() should be false for joystick & controller (%x)", initialized_system );
   15.24 @@ -104,17 +104,17 @@
   15.25  #else
   15.26      int initialized_system;
   15.27  
   15.28 -    // First initialize the controller and the joystick (explicitly)
   15.29 +    /* First initialize the controller and the joystick (explicitly) */
   15.30      SDLTest_AssertCheck( (SDL_WasInit(joy_and_controller) & joy_and_controller) == 0, "SDL_WasInit() before init should be false for joystick & controller" );
   15.31      SDLTest_AssertCheck( SDL_InitSubSystem(SDL_INIT_JOYSTICK) == 0, "SDL_InitSubSystem(SDL_INIT_JOYSTICK)" );
   15.32      SDLTest_AssertCheck( SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER) == 0, "SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER)" );
   15.33  
   15.34 -    // Then make sure they're both initialized properly
   15.35 +    /* Then make sure they're both initialized properly */
   15.36      initialized_system = SDL_WasInit(joy_and_controller);
   15.37      SDLTest_AssertCheck( (initialized_system & joy_and_controller) == joy_and_controller, "SDL_WasInit() should be true for joystick & controller (%x)", initialized_system );
   15.38  
   15.39 -    // Then quit the controller, and make sure that it does NOT quit the
   15.40 -    // explicitly initialized joystick subsystem.
   15.41 +    /* Then quit the controller, and make sure that it does NOT quit the */
   15.42 +    /* explicitly initialized joystick subsystem. */
   15.43      SDL_QuitSubSystem(SDL_INIT_GAMECONTROLLER);
   15.44      initialized_system = SDL_WasInit(joy_and_controller);
   15.45      SDLTest_AssertCheck( (initialized_system & joy_and_controller) == SDL_INIT_JOYSTICK, "SDL_WasInit() should be false for joystick & controller (%x)", initialized_system );
    16.1 --- a/test/testautomation_platform.c	Tue Aug 20 19:49:24 2013 -0300
    16.2 +++ b/test/testautomation_platform.c	Tue Aug 20 20:34:40 2013 -0300
    16.3 @@ -168,7 +168,7 @@
    16.4  {
    16.5     int ret;
    16.6  
    16.7 -   // TODO: independently determine and compare values as well
    16.8 +   /* TODO: independently determine and compare values as well */
    16.9  
   16.10     ret = SDL_HasRDTSC();
   16.11     SDLTest_AssertPass("SDL_HasRDTSC()");
   16.12 @@ -315,7 +315,7 @@
   16.13               lastError);
   16.14     }
   16.15  
   16.16 -   // Clean up
   16.17 +   /* Clean up */
   16.18     SDL_ClearError();
   16.19     SDLTest_AssertPass("SDL_ClearError()");
   16.20  
   16.21 @@ -351,7 +351,7 @@
   16.22               lastError);
   16.23     }
   16.24  
   16.25 -   // Clean up
   16.26 +   /* Clean up */
   16.27     SDL_ClearError();
   16.28     SDLTest_AssertPass("SDL_ClearError()");
   16.29  
   16.30 @@ -370,11 +370,11 @@
   16.31     char *lastError;
   16.32     int len;
   16.33  
   16.34 -   // Reset
   16.35 +   /* Reset */
   16.36     SDL_ClearError();
   16.37     SDLTest_AssertPass("SDL_ClearError()");
   16.38  
   16.39 -   // Check for no-op
   16.40 +   /* Check for no-op */
   16.41     SDL_SetError(testError);
   16.42     SDLTest_AssertPass("SDL_SetError()");
   16.43     lastError = (char *)SDL_GetError();
   16.44 @@ -392,11 +392,11 @@
   16.45               lastError);
   16.46     }
   16.47  
   16.48 -   // Set
   16.49 +   /* Set */
   16.50     SDL_SetError(probeError);
   16.51     SDLTest_AssertPass("SDL_SetError()");
   16.52  
   16.53 -   // Check for no-op
   16.54 +   /* Check for no-op */
   16.55     SDL_SetError(testError);
   16.56     SDLTest_AssertPass("SDL_SetError()");
   16.57     lastError = (char *)SDL_GetError();
   16.58 @@ -415,7 +415,7 @@
   16.59               lastError);
   16.60     }
   16.61  
   16.62 -   // Clean up
   16.63 +   /* Clean up */
   16.64     SDL_ClearError();
   16.65     SDLTest_AssertPass("SDL_ClearError()");
   16.66  
   16.67 @@ -472,7 +472,7 @@
   16.68           pct);
   16.69     }
   16.70  
   16.71 -   // Partial return value variations
   16.72 +   /* Partial return value variations */
   16.73     stateAgain = SDL_GetPowerInfo(&secsAgain, NULL);
   16.74     SDLTest_AssertCheck(
   16.75          state==stateAgain,
    17.1 --- a/test/testautomation_rect.c	Tue Aug 20 19:49:24 2013 -0300
    17.2 +++ b/test/testautomation_rect.c	Tue Aug 20 20:34:40 2013 -0300
    17.3 @@ -423,7 +423,7 @@
    17.4      SDL_Rect result;
    17.5      SDL_bool intersection;
    17.6  
    17.7 -    // rectB fully contained in rectA
    17.8 +    /* rectB fully contained in rectA */
    17.9      refRectB.x = 0;
   17.10      refRectB.y = 0;
   17.11      refRectB.w = SDLTest_RandomIntegerInRange(refRectA.x + 1, refRectA.x + refRectA.w - 1);
   17.12 @@ -451,7 +451,7 @@
   17.13      SDL_Rect result;
   17.14      SDL_bool intersection;
   17.15  
   17.16 -    // rectB fully outside of rectA
   17.17 +    /* rectB fully outside of rectA */
   17.18      refRectB.x = refRectA.x + refRectA.w + SDLTest_RandomIntegerInRange(1, 10);
   17.19      refRectB.y = refRectA.y + refRectA.h + SDLTest_RandomIntegerInRange(1, 10);
   17.20      refRectB.w = refRectA.w;
   17.21 @@ -480,7 +480,7 @@
   17.22      SDL_Rect expectedResult;
   17.23      SDL_bool intersection;
   17.24  
   17.25 -    // rectB partially contained in rectA
   17.26 +    /* rectB partially contained in rectA */
   17.27      refRectB.x = SDLTest_RandomIntegerInRange(refRectA.x + 1, refRectA.x + refRectA.w - 1);
   17.28      refRectB.y = SDLTest_RandomIntegerInRange(refRectA.y + 1, refRectA.y + refRectA.h - 1);
   17.29      refRectB.w = refRectA.w;
   17.30 @@ -494,7 +494,7 @@
   17.31      intersection = SDL_IntersectRect(&rectA, &rectB, &result);
   17.32      _validateIntersectRectResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   17.33  
   17.34 -    // rectB right edge
   17.35 +    /* rectB right edge */
   17.36      refRectB.x = rectA.w - 1;
   17.37      refRectB.y = rectA.y;
   17.38      refRectB.w = SDLTest_RandomIntegerInRange(1, refRectA.w - 1);
   17.39 @@ -508,7 +508,7 @@
   17.40      intersection = SDL_IntersectRect(&rectA, &rectB, &result);
   17.41      _validateIntersectRectResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   17.42  
   17.43 -    // rectB left edge
   17.44 +    /* rectB left edge */
   17.45      refRectB.x = 1 - rectA.w;
   17.46      refRectB.y = rectA.y;
   17.47      refRectB.w = refRectA.w;
   17.48 @@ -522,7 +522,7 @@
   17.49      intersection = SDL_IntersectRect(&rectA, &rectB, &result);
   17.50      _validateIntersectRectResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   17.51  
   17.52 -    // rectB bottom edge
   17.53 +    /* rectB bottom edge */
   17.54      refRectB.x = rectA.x;
   17.55      refRectB.y = rectA.h - 1;
   17.56      refRectB.w = SDLTest_RandomIntegerInRange(1, refRectA.w - 1);
   17.57 @@ -536,7 +536,7 @@
   17.58      intersection = SDL_IntersectRect(&rectA, &rectB, &result);
   17.59      _validateIntersectRectResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB, &result, &expectedResult);
   17.60  
   17.61 -    // rectB top edge
   17.62 +    /* rectB top edge */
   17.63      refRectB.x = rectA.x;
   17.64      refRectB.y = 1 - rectA.h;
   17.65      refRectB.w = SDLTest_RandomIntegerInRange(1, refRectA.w - 1);
   17.66 @@ -569,7 +569,7 @@
   17.67      SDL_bool intersection;
   17.68      int offsetX, offsetY;
   17.69  
   17.70 -    // intersecting pixels
   17.71 +    /* intersecting pixels */
   17.72      refRectA.x = SDLTest_RandomIntegerInRange(1, 100);
   17.73      refRectA.y = SDLTest_RandomIntegerInRange(1, 100);
   17.74      refRectB.x = refRectA.x;
   17.75 @@ -579,7 +579,7 @@
   17.76      intersection = SDL_IntersectRect(&rectA, &rectB, &result);
   17.77      _validateIntersectRectResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB, &result, &refRectA);
   17.78  
   17.79 -    // non-intersecting pixels cases
   17.80 +    /* non-intersecting pixels cases */
   17.81      for (offsetX = -1; offsetX <= 1; offsetX++) {
   17.82          for (offsetY = -1; offsetY <= 1; offsetY++) {
   17.83              if (offsetX != 0 || offsetY != 0) {
   17.84 @@ -616,7 +616,7 @@
   17.85      SDL_bool intersection;
   17.86      SDL_bool empty;
   17.87  
   17.88 -    // Rect A empty
   17.89 +    /* Rect A empty */
   17.90      result.w = SDLTest_RandomIntegerInRange(1, 100);
   17.91      result.h = SDLTest_RandomIntegerInRange(1, 100);
   17.92      refRectA.x = SDLTest_RandomIntegerInRange(1, 100);
   17.93 @@ -633,7 +633,7 @@
   17.94      empty = (SDL_bool)SDL_RectEmpty(&result);
   17.95      SDLTest_AssertCheck(empty == SDL_TRUE, "Validate result is empty Rect; got: %s", (empty == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
   17.96  
   17.97 -    // Rect B empty
   17.98 +    /* Rect B empty */
   17.99      result.w = SDLTest_RandomIntegerInRange(1, 100);
  17.100      result.h = SDLTest_RandomIntegerInRange(1, 100);
  17.101      refRectA.x = SDLTest_RandomIntegerInRange(1, 100);
  17.102 @@ -650,7 +650,7 @@
  17.103      empty = (SDL_bool)SDL_RectEmpty(&result);
  17.104      SDLTest_AssertCheck(empty == SDL_TRUE, "Validate result is empty Rect; got: %s", (empty == SDL_TRUE) ? "SDL_TRUE" : "SDL_FALSE");
  17.105  
  17.106 -    // Rect A and B empty
  17.107 +    /* Rect A and B empty */
  17.108      result.w = SDLTest_RandomIntegerInRange(1, 100);
  17.109      result.h = SDLTest_RandomIntegerInRange(1, 100);
  17.110      refRectA.x = SDLTest_RandomIntegerInRange(1, 100);
  17.111 @@ -685,7 +685,7 @@
  17.112      SDL_Rect result;
  17.113      SDL_bool intersection;
  17.114  
  17.115 -    // invalid parameter combinations
  17.116 +    /* invalid parameter combinations */
  17.117      intersection = SDL_IntersectRect((SDL_Rect *)NULL, &rectB, &result);
  17.118      SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 1st parameter is NULL");
  17.119      intersection = SDL_IntersectRect(&rectA, (SDL_Rect *)NULL, &result);
  17.120 @@ -716,7 +716,7 @@
  17.121      SDL_Rect rectB;
  17.122      SDL_bool intersection;
  17.123  
  17.124 -    // rectB fully contained in rectA
  17.125 +    /* rectB fully contained in rectA */
  17.126      refRectB.x = 0;
  17.127      refRectB.y = 0;
  17.128      refRectB.w = SDLTest_RandomIntegerInRange(refRectA.x + 1, refRectA.x + refRectA.w - 1);
  17.129 @@ -743,7 +743,7 @@
  17.130      SDL_Rect rectB;
  17.131      SDL_bool intersection;
  17.132  
  17.133 -    // rectB fully outside of rectA
  17.134 +    /* rectB fully outside of rectA */
  17.135      refRectB.x = refRectA.x + refRectA.w + SDLTest_RandomIntegerInRange(1, 10);
  17.136      refRectB.y = refRectA.y + refRectA.h + SDLTest_RandomIntegerInRange(1, 10);
  17.137      refRectB.w = refRectA.w;
  17.138 @@ -770,7 +770,7 @@
  17.139      SDL_Rect rectB;
  17.140      SDL_bool intersection;
  17.141  
  17.142 -    // rectB partially contained in rectA
  17.143 +    /* rectB partially contained in rectA */
  17.144      refRectB.x = SDLTest_RandomIntegerInRange(refRectA.x + 1, refRectA.x + refRectA.w - 1);
  17.145      refRectB.y = SDLTest_RandomIntegerInRange(refRectA.y + 1, refRectA.y + refRectA.h - 1);
  17.146      refRectB.w = refRectA.w;
  17.147 @@ -780,7 +780,7 @@
  17.148      intersection = SDL_HasIntersection(&rectA, &rectB);
  17.149      _validateHasIntersectionResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB);
  17.150  
  17.151 -    // rectB right edge
  17.152 +    /* rectB right edge */
  17.153      refRectB.x = rectA.w - 1;
  17.154      refRectB.y = rectA.y;
  17.155      refRectB.w = SDLTest_RandomIntegerInRange(1, refRectA.w - 1);
  17.156 @@ -790,7 +790,7 @@
  17.157      intersection = SDL_HasIntersection(&rectA, &rectB);
  17.158      _validateHasIntersectionResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB);
  17.159  
  17.160 -    // rectB left edge
  17.161 +    /* rectB left edge */
  17.162      refRectB.x = 1 - rectA.w;
  17.163      refRectB.y = rectA.y;
  17.164      refRectB.w = refRectA.w;
  17.165 @@ -800,7 +800,7 @@
  17.166      intersection = SDL_HasIntersection(&rectA, &rectB);
  17.167      _validateHasIntersectionResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB);
  17.168  
  17.169 -    // rectB bottom edge
  17.170 +    /* rectB bottom edge */
  17.171      refRectB.x = rectA.x;
  17.172      refRectB.y = rectA.h - 1;
  17.173      refRectB.w = SDLTest_RandomIntegerInRange(1, refRectA.w - 1);
  17.174 @@ -810,7 +810,7 @@
  17.175      intersection = SDL_HasIntersection(&rectA, &rectB);
  17.176      _validateHasIntersectionResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB);
  17.177  
  17.178 -    // rectB top edge
  17.179 +    /* rectB top edge */
  17.180      refRectB.x = rectA.x;
  17.181      refRectB.y = 1 - rectA.h;
  17.182      refRectB.w = SDLTest_RandomIntegerInRange(1, refRectA.w - 1);
  17.183 @@ -838,7 +838,7 @@
  17.184      SDL_bool intersection;
  17.185      int offsetX, offsetY;
  17.186  
  17.187 -    // intersecting pixels
  17.188 +    /* intersecting pixels */
  17.189      refRectA.x = SDLTest_RandomIntegerInRange(1, 100);
  17.190      refRectA.y = SDLTest_RandomIntegerInRange(1, 100);
  17.191      refRectB.x = refRectA.x;
  17.192 @@ -848,7 +848,7 @@
  17.193      intersection = SDL_HasIntersection(&rectA, &rectB);
  17.194      _validateHasIntersectionResults(intersection, SDL_TRUE, &rectA, &rectB, &refRectA, &refRectB);
  17.195  
  17.196 -    // non-intersecting pixels cases
  17.197 +    /* non-intersecting pixels cases */
  17.198      for (offsetX = -1; offsetX <= 1; offsetX++) {
  17.199          for (offsetY = -1; offsetY <= 1; offsetY++) {
  17.200              if (offsetX != 0 || offsetY != 0) {
  17.201 @@ -883,7 +883,7 @@
  17.202      SDL_Rect rectB;
  17.203      SDL_bool intersection;
  17.204  
  17.205 -    // Rect A empty
  17.206 +    /* Rect A empty */
  17.207      refRectA.x = SDLTest_RandomIntegerInRange(1, 100);
  17.208      refRectA.y = SDLTest_RandomIntegerInRange(1, 100);
  17.209      refRectA.w = SDLTest_RandomIntegerInRange(1, 100);
  17.210 @@ -896,7 +896,7 @@
  17.211      intersection = SDL_HasIntersection(&rectA, &rectB);
  17.212      _validateHasIntersectionResults(intersection, SDL_FALSE, &rectA, &rectB, &refRectA, &refRectB);
  17.213  
  17.214 -    // Rect B empty
  17.215 +    /* Rect B empty */
  17.216      refRectA.x = SDLTest_RandomIntegerInRange(1, 100);
  17.217      refRectA.y = SDLTest_RandomIntegerInRange(1, 100);
  17.218      refRectA.w = SDLTest_RandomIntegerInRange(1, 100);
  17.219 @@ -909,7 +909,7 @@
  17.220      intersection = SDL_HasIntersection(&rectA, &rectB);
  17.221      _validateHasIntersectionResults(intersection, SDL_FALSE, &rectA, &rectB, &refRectA, &refRectB);
  17.222  
  17.223 -    // Rect A and B empty
  17.224 +    /* Rect A and B empty */
  17.225      refRectA.x = SDLTest_RandomIntegerInRange(1, 100);
  17.226      refRectA.y = SDLTest_RandomIntegerInRange(1, 100);
  17.227      refRectA.w = SDLTest_RandomIntegerInRange(1, 100);
  17.228 @@ -939,7 +939,7 @@
  17.229      SDL_Rect rectB;
  17.230      SDL_bool intersection;
  17.231  
  17.232 -    // invalid parameter combinations
  17.233 +    /* invalid parameter combinations */
  17.234      intersection = SDL_HasIntersection((SDL_Rect *)NULL, &rectB);
  17.235      SDLTest_AssertCheck(intersection == SDL_FALSE, "Check that function returns SDL_FALSE when 1st parameter is NULL");
  17.236      intersection = SDL_HasIntersection(&rectA, (SDL_Rect *)NULL);
  17.237 @@ -969,7 +969,7 @@
  17.238      int minx = 0, maxx = 0, miny = 0, maxy = 0;
  17.239      int i;
  17.240  
  17.241 -    // Create input data, tracking result
  17.242 +    /* Create input data, tracking result */
  17.243      for (i=0; i<numPoints; i++) {
  17.244          newx = SDLTest_RandomIntegerInRange(-1024, 1024);
  17.245          newy = SDLTest_RandomIntegerInRange(-1024, 1024);
  17.246 @@ -990,7 +990,7 @@
  17.247          }
  17.248      }
  17.249  
  17.250 -    // Call function and validate - special case: no result requested
  17.251 +    /* Call function and validate - special case: no result requested */
  17.252      anyEnclosedNoResult = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)NULL, (SDL_Rect *)NULL);
  17.253      SDLTest_AssertCheck(expectedEnclosed==anyEnclosedNoResult,
  17.254          "Check expected return value %s, got %s",
  17.255 @@ -1002,7 +1002,7 @@
  17.256              i, refPoints[i].x, refPoints[i].y, points[i].x, points[i].y);
  17.257      }
  17.258  
  17.259 -    // Call function and validate
  17.260 +    /* Call function and validate */
  17.261      anyEnclosed = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)NULL, &result);
  17.262      SDLTest_AssertCheck(expectedEnclosed==anyEnclosed,
  17.263          "Check return value %s, got %s",
  17.264 @@ -1040,7 +1040,7 @@
  17.265      int minx = 0, maxx = 0, miny = 0, maxy = 0;
  17.266      int i;
  17.267  
  17.268 -    // Create input data, tracking result
  17.269 +    /* Create input data, tracking result */
  17.270      for (i=0; i<numPoints; i++) {
  17.271          if (i < halfPoints) {
  17.272              newx = SDLTest_RandomIntegerInRange(-1024, 1024);
  17.273 @@ -1066,7 +1066,7 @@
  17.274          }
  17.275      }
  17.276  
  17.277 -    // Call function and validate - special case: no result requested
  17.278 +    /* Call function and validate - special case: no result requested */
  17.279      anyEnclosedNoResult = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)NULL, (SDL_Rect *)NULL);
  17.280      SDLTest_AssertCheck(expectedEnclosed==anyEnclosedNoResult,
  17.281          "Check return value %s, got %s",
  17.282 @@ -1078,7 +1078,7 @@
  17.283              i, refPoints[i].x, refPoints[i].y, points[i].x, points[i].y);
  17.284      }
  17.285  
  17.286 -    // Call function and validate
  17.287 +    /* Call function and validate */
  17.288      anyEnclosed = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)NULL, &result);
  17.289      SDLTest_AssertCheck(expectedEnclosed==anyEnclosed,
  17.290          "Check return value %s, got %s",
  17.291 @@ -1117,13 +1117,13 @@
  17.292      int minx = 0, maxx = 0, miny = 0, maxy = 0;
  17.293      int i;
  17.294  
  17.295 -    // Setup clipping rectangle
  17.296 +    /* Setup clipping rectangle */
  17.297      refClip.x = SDLTest_RandomIntegerInRange(-1024, 1024);
  17.298      refClip.y = SDLTest_RandomIntegerInRange(-1024, 1024);
  17.299      refClip.w = SDLTest_RandomIntegerInRange(1, 1024);
  17.300      refClip.h = SDLTest_RandomIntegerInRange(1, 1024);
  17.301  
  17.302 -    // Create input data, tracking result
  17.303 +    /* Create input data, tracking result */
  17.304      for (i=0; i<numPoints; i++) {
  17.305          newx = SDLTest_RandomIntegerInRange(-1024, 1024);
  17.306          newy = SDLTest_RandomIntegerInRange(-1024, 1024);
  17.307 @@ -1148,7 +1148,7 @@
  17.308          }
  17.309      }
  17.310  
  17.311 -    // Call function and validate - special case: no result requested
  17.312 +    /* Call function and validate - special case: no result requested */
  17.313      clip = refClip;
  17.314      anyEnclosedNoResult = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)&clip, (SDL_Rect *)NULL);
  17.315      SDLTest_AssertCheck(expectedEnclosed==anyEnclosedNoResult,
  17.316 @@ -1163,7 +1163,7 @@
  17.317      SDLTest_AssertCheck(refClip.x==clip.x && refClip.y==clip.y && refClip.w==clip.w && refClip.h==clip.h,
  17.318          "Check that source clipping rectangle was not modified");
  17.319  
  17.320 -    // Call function and validate
  17.321 +    /* Call function and validate */
  17.322      anyEnclosed = SDL_EnclosePoints((const SDL_Point *)points, numPoints, (const SDL_Rect *)&clip, &result);
  17.323      SDLTest_AssertCheck(expectedEnclosed==anyEnclosed,
  17.324          "Check return value %s, got %s",
  17.325 @@ -1209,7 +1209,7 @@
  17.326      SDL_Rect result;
  17.327      SDL_bool anyEnclosed;
  17.328  
  17.329 -    // invalid parameter combinations
  17.330 +    /* invalid parameter combinations */
  17.331      anyEnclosed = SDL_EnclosePoints((SDL_Point *)NULL, 1, (const SDL_Rect *)&clip, &result);
  17.332      SDLTest_AssertCheck(anyEnclosed == SDL_FALSE, "Check that functions returns SDL_FALSE when 1st parameter is NULL");
  17.333      anyEnclosed = SDL_EnclosePoints((const SDL_Point *)points, 0, (const SDL_Rect *)&clip, &result);
  17.334 @@ -1434,7 +1434,7 @@
  17.335      SDL_Rect rectA, rectB;
  17.336      SDL_Rect result;
  17.337  
  17.338 -    // invalid parameter combinations
  17.339 +    /* invalid parameter combinations */
  17.340      SDL_UnionRect((SDL_Rect *)NULL, &rectB, &result);
  17.341      SDLTest_AssertPass("Check that function returns when 1st parameter is NULL");
  17.342      SDL_UnionRect(&rectA, (SDL_Rect *)NULL, &result);
  17.343 @@ -1465,7 +1465,7 @@
  17.344      SDL_bool result;
  17.345      int w, h;
  17.346  
  17.347 -    // Non-empty case
  17.348 +    /* Non-empty case */
  17.349      refRect.x=SDLTest_RandomIntegerInRange(-1024, 1024);
  17.350      refRect.y=SDLTest_RandomIntegerInRange(-1024, 1024);
  17.351      refRect.w=SDLTest_RandomIntegerInRange(256, 1024);
  17.352 @@ -1475,7 +1475,7 @@
  17.353      result = (SDL_bool)SDL_RectEmpty((const SDL_Rect *)&rect);
  17.354      _validateRectEmptyResults(result, expectedResult, &rect, &refRect);
  17.355  
  17.356 -    // Empty case
  17.357 +    /* Empty case */
  17.358      for (w=-1; w<2; w++) {
  17.359          for (h=-1; h<2; h++) {
  17.360              if ((w != 1) || (h != 1)) {
  17.361 @@ -1504,7 +1504,7 @@
  17.362  {
  17.363      SDL_bool result;
  17.364  
  17.365 -    // invalid parameter combinations
  17.366 +    /* invalid parameter combinations */
  17.367      result = (SDL_bool)SDL_RectEmpty((const SDL_Rect *)NULL);
  17.368      SDLTest_AssertCheck(result == SDL_TRUE, "Check that function returns TRUE when 1st parameter is NULL");
  17.369  
  17.370 @@ -1526,7 +1526,7 @@
  17.371      SDL_bool expectedResult;
  17.372      SDL_bool result;
  17.373  
  17.374 -    // Equals
  17.375 +    /* Equals */
  17.376      refRectA.x=SDLTest_RandomIntegerInRange(-1024, 1024);
  17.377      refRectA.y=SDLTest_RandomIntegerInRange(-1024, 1024);
  17.378      refRectA.w=SDLTest_RandomIntegerInRange(1, 1024);
  17.379 @@ -1563,7 +1563,7 @@
  17.380      rectB.w=SDLTest_RandomIntegerInRange(1, 1024);
  17.381      rectB.h=SDLTest_RandomIntegerInRange(1, 1024);
  17.382  
  17.383 -    // invalid parameter combinations
  17.384 +    /* invalid parameter combinations */
  17.385      result = (SDL_bool)SDL_RectEquals((const SDL_Rect *)NULL, (const SDL_Rect *)&rectB);
  17.386      SDLTest_AssertCheck(result == SDL_FALSE, "Check that function returns SDL_FALSE when 1st parameter is NULL");
  17.387      result = (SDL_bool)SDL_RectEquals((const SDL_Rect *)&rectA, (const SDL_Rect *)NULL);
    18.1 --- a/test/testautomation_rwops.c	Tue Aug 20 19:49:24 2013 -0300
    18.2 +++ b/test/testautomation_rwops.c	Tue Aug 20 20:34:40 2013 -0300
    18.3 @@ -305,7 +305,7 @@
    18.4     SDLTest_AssertPass("Call to SDL_RWFromFile(..,\"r\") succeeded");
    18.5     SDLTest_AssertCheck(rw != NULL, "Verify opening file with SDL_RWFromFile in read mode does not return NULL");
    18.6  
    18.7 -   // Bail out if NULL
    18.8 +   /* Bail out if NULL */
    18.9     if (rw == NULL) return TEST_ABORTED;
   18.10  
   18.11     /* Check type */
   18.12 @@ -352,7 +352,7 @@
   18.13     SDLTest_AssertPass("Call to SDL_RWFromFile(..,\"w+\") succeeded");
   18.14     SDLTest_AssertCheck(rw != NULL, "Verify opening file with SDL_RWFromFile in write mode does not return NULL");
   18.15  
   18.16 -   // Bail out if NULL
   18.17 +   /* Bail out if NULL */
   18.18     if (rw == NULL) return TEST_ABORTED;
   18.19  
   18.20     /* Check type */
   18.21 @@ -642,7 +642,7 @@
   18.22       SDLTest_AssertPass("Call to SDL_RWFromFile(..,\"w+\")");
   18.23       SDLTest_AssertCheck(rw != NULL, "Verify opening file with SDL_RWFromFile in write mode does not return NULL");
   18.24  
   18.25 -     // Bail out if NULL
   18.26 +     /* Bail out if NULL */
   18.27       if (rw == NULL) return TEST_ABORTED;
   18.28  
   18.29       /* Write test data */
    19.1 --- a/test/testautomation_suites.h	Tue Aug 20 19:49:24 2013 -0300
    19.2 +++ b/test/testautomation_suites.h	Tue Aug 20 20:34:40 2013 -0300
    19.3 @@ -8,7 +8,7 @@
    19.4  
    19.5  #include "SDL_test.h"
    19.6  
    19.7 -// Test collections
    19.8 +/* Test collections */
    19.9  extern SDLTest_TestSuiteReference audioTestSuite;
   19.10  extern SDLTest_TestSuiteReference clipboardTestSuite;
   19.11  extern SDLTest_TestSuiteReference eventsTestSuite;
   19.12 @@ -27,7 +27,7 @@
   19.13  extern SDLTest_TestSuiteReference timerTestSuite;
   19.14  extern SDLTest_TestSuiteReference videoTestSuite;
   19.15  
   19.16 -// All test suites
   19.17 +/* All test suites */
   19.18  SDLTest_TestSuiteReference *testSuites[] =  {
   19.19      &audioTestSuite,
   19.20      &clipboardTestSuite,
    20.1 --- a/test/testfile.c	Tue Aug 20 19:49:24 2013 -0300
    20.2 +++ b/test/testfile.c	Tue Aug 20 20:34:40 2013 -0300
    20.3 @@ -12,7 +12,7 @@
    20.4  
    20.5  /* sanity tests on SDL_rwops.c (usefull for alternative implementations of stdio rwops) */
    20.6  
    20.7 -// quiet windows compiler warnings
    20.8 +/* quiet windows compiler warnings */
    20.9  #define _CRT_NONSTDC_NO_WARNINGS
   20.10  
   20.11  #include <stdlib.h>
    21.1 --- a/test/testgesture.c	Tue Aug 20 19:49:24 2013 -0300
    21.2 +++ b/test/testgesture.c	Tue Aug 20 20:34:40 2013 -0300
    21.3 @@ -49,7 +49,7 @@
    21.4  #define BPP 4
    21.5  #define DEPTH 32
    21.6  
    21.7 -//MUST BE A POWER OF 2!
    21.8 +/*MUST BE A POWER OF 2!*/
    21.9  #define EVENT_BUF_SIZE 256
   21.10  
   21.11  
   21.12 @@ -102,9 +102,9 @@
   21.13    SDL_memcpy(&colour,pixmem32,screen->format->BytesPerPixel);
   21.14  
   21.15    SDL_GetRGB(colour,screen->format,&r,&g,&b);
   21.16 -  //r = 0;g = 0; b = 0;
   21.17 +  /*r = 0;g = 0; b = 0;*/
   21.18    a = (float)((col>>24)&0xFF);
   21.19 -  if(a == 0) a = 0xFF; //Hack, to make things easier.
   21.20 +  if(a == 0) a = 0xFF; /*Hack, to make things easier.*/
   21.21    a /= 0xFF;
   21.22    r = (Uint8)(r*(1-a) + ((col>>16)&0xFF)*(a));
   21.23    g = (Uint8)(g*(1-a) + ((col>> 8)&0xFF)*(a));
   21.24 @@ -127,7 +127,7 @@
   21.25    float xr;
   21.26    for(ty = (float)-SDL_fabs(r);ty <= (float)SDL_fabs((int)r);ty++) {
   21.27      xr = (float)sqrt(r*r - ty*ty);
   21.28 -    if(r > 0) { //r > 0 ==> filled circle
   21.29 +    if(r > 0) { /*r > 0 ==> filled circle*/
   21.30        for(tx=-xr+.5f;tx<=xr-.5;tx++) {
   21.31      setpix(screen,x+tx,y+ty,c);
   21.32        }
   21.33 @@ -157,7 +157,7 @@
   21.34      setpix(screen,(float)x,(float)y,((x%255)<<16) + ((y%255)<<8) + (x+y)%255);
   21.35  #endif
   21.36  
   21.37 -  //draw Touch History
   21.38 +  /*draw Touch History*/
   21.39    for(i = eventWrite; i < eventWrite+EVENT_BUF_SIZE; ++i) {
   21.40      const SDL_Event *event = &events[i&(EVENT_BUF_SIZE-1)];
   21.41      float age = (float)(i - eventWrite) / EVENT_BUF_SIZE;
   21.42 @@ -170,7 +170,7 @@
   21.43        x = event->tfinger.x;
   21.44        y = event->tfinger.y;
   21.45  
   21.46 -      //draw the touch:
   21.47 +      /*draw the touch:*/
   21.48        c = colors[event->tfinger.fingerId%7];
   21.49        col = ((unsigned int)(c*(.1+.85))) | (unsigned int)(0xFF*age)<<24;
   21.50  
   21.51 @@ -210,7 +210,7 @@
   21.52    /* Enable standard application logging */
   21.53    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   21.54  
   21.55 -  //gesture variables
   21.56 +  /*gesture variables*/
   21.57    knob.r = .1f;
   21.58    knob.ang = 0;
   21.59  
   21.60 @@ -225,7 +225,7 @@
   21.61    while(!quitting) {
   21.62      while(SDL_PollEvent(&event))
   21.63        {
   21.64 -    //Record _all_ events
   21.65 +    /*Record _all_ events*/
   21.66      events[eventWrite & (EVENT_BUF_SIZE-1)] = event;
   21.67      eventWrite++;
   21.68  
    22.1 --- a/test/testime.c	Tue Aug 20 19:49:24 2013 -0300
    22.2 +++ b/test/testime.c	Tue Aug 20 20:34:40 2013 -0300
    22.3 @@ -135,7 +135,7 @@
    22.4      markedRect.w = textRect.w - w;
    22.5      if (markedRect.w < 0)
    22.6      {
    22.7 -        // Stop text input because we cannot hold any more characters
    22.8 +        /* Stop text input because we cannot hold any more characters */
    22.9          SDL_StopTextInput();
   22.10          return;
   22.11      }
   22.12 @@ -342,8 +342,8 @@
   22.13  
   22.14                      SDL_Log("text inputed: %s\n", text);
   22.15  
   22.16 -                    // After text inputed, we can clear up markedText because it
   22.17 -                    // is committed
   22.18 +                    /* After text inputed, we can clear up markedText because it */
   22.19 +                    /* is committed*/
   22.20                      markedText[0] = 0;
   22.21                      Redraw();
   22.22                      break;
    23.1 --- a/test/testmessage.c	Tue Aug 20 19:49:24 2013 -0300
    23.2 +++ b/test/testmessage.c	Tue Aug 20 20:34:40 2013 -0300
    23.3 @@ -46,12 +46,12 @@
    23.4  
    23.5      SDL_MessageBoxData data = {
    23.6          SDL_MESSAGEBOX_INFORMATION,
    23.7 -        NULL, // no parent window
    23.8 +        NULL, /* no parent window */
    23.9          "Custom MessageBox",
   23.10          "This is a custom messagebox",
   23.11          2,
   23.12          buttons,
   23.13 -        NULL // Default color scheme
   23.14 +        NULL /* Default color scheme */
   23.15      };
   23.16  
   23.17      int button = -1;
    24.1 --- a/test/testrendercopyex.c	Tue Aug 20 19:49:24 2013 -0300
    24.2 +++ b/test/testrendercopyex.c	Tue Aug 20 20:34:40 2013 -0300
    24.3 @@ -127,7 +127,7 @@
    24.4  
    24.5      /* Update the screen! */
    24.6      SDL_RenderPresent(s->renderer);
    24.7 -    //SDL_Delay(10);
    24.8 +    /*SDL_Delay(10);*/
    24.9  }
   24.10  
   24.11  int
    25.1 --- a/test/testresample.c	Tue Aug 20 19:49:24 2013 -0300
    25.2 +++ b/test/testresample.c	Tue Aug 20 20:34:40 2013 -0300
    25.3 @@ -107,12 +107,12 @@
    25.4          SDL_FreeWAV(data);
    25.5          SDL_Quit();
    25.6          return 8;
    25.7 -    }                           // if
    25.8 +    }                           /* if */
    25.9  
   25.10      SDL_free(cvt.buf);
   25.11      SDL_FreeWAV(data);
   25.12      SDL_Quit();
   25.13      return 0;
   25.14 -}                               // main
   25.15 +}                               /* main */
   25.16  
   25.17 -// end of resample_test.c ...
   25.18 +/* end of resample_test.c ... */
    26.1 --- a/test/testshader.c	Tue Aug 20 19:49:24 2013 -0300
    26.2 +++ b/test/testshader.c	Tue Aug 20 20:34:40 2013 -0300
    26.3 @@ -332,19 +332,19 @@
    26.4  }
    26.5  
    26.6  /* A general OpenGL initialization function.    Sets all of the initial parameters. */
    26.7 -void InitGL(int Width, int Height)                    // We call this right after our OpenGL window is created.
    26.8 +void InitGL(int Width, int Height)                    /* We call this right after our OpenGL window is created. */
    26.9  {
   26.10      GLdouble aspect;
   26.11  
   26.12      glViewport(0, 0, Width, Height);
   26.13 -    glClearColor(0.0f, 0.0f, 0.0f, 0.0f);        // This Will Clear The Background Color To Black
   26.14 -    glClearDepth(1.0);                // Enables Clearing Of The Depth Buffer
   26.15 -    glDepthFunc(GL_LESS);                // The Type Of Depth Test To Do
   26.16 -    glEnable(GL_DEPTH_TEST);            // Enables Depth Testing
   26.17 -    glShadeModel(GL_SMOOTH);            // Enables Smooth Color Shading
   26.18 +    glClearColor(0.0f, 0.0f, 0.0f, 0.0f);        /* This Will Clear The Background Color To Black */
   26.19 +    glClearDepth(1.0);                /* Enables Clearing Of The Depth Buffer */
   26.20 +    glDepthFunc(GL_LESS);                /* The Type Of Depth Test To Do */
   26.21 +    glEnable(GL_DEPTH_TEST);            /* Enables Depth Testing */
   26.22 +    glShadeModel(GL_SMOOTH);            /* Enables Smooth Color Shading */
   26.23  
   26.24      glMatrixMode(GL_PROJECTION);
   26.25 -    glLoadIdentity();                // Reset The Projection Matrix
   26.26 +    glLoadIdentity();                /* Reset The Projection Matrix */
   26.27  
   26.28      aspect = (GLdouble)Width / Height;
   26.29      glOrtho(-3.0, 3.0, -3.0 / aspect, 3.0 / aspect, 0.0, 1.0);
   26.30 @@ -363,29 +363,29 @@
   26.31          MAXY
   26.32      };
   26.33  
   26.34 -    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);        // Clear The Screen And The Depth Buffer
   26.35 -    glLoadIdentity();                // Reset The View
   26.36 +    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);        /* Clear The Screen And The Depth Buffer */
   26.37 +    glLoadIdentity();                /* Reset The View */
   26.38  
   26.39 -    glTranslatef(-1.5f,0.0f,0.0f);        // Move Left 1.5 Units
   26.40 +    glTranslatef(-1.5f,0.0f,0.0f);        /* Move Left 1.5 Units */
   26.41  
   26.42 -    // draw a triangle (in smooth coloring mode)
   26.43 -    glBegin(GL_POLYGON);                // start drawing a polygon
   26.44 -    glColor3f(1.0f,0.0f,0.0f);            // Set The Color To Red
   26.45 -    glVertex3f( 0.0f, 1.0f, 0.0f);        // Top
   26.46 -    glColor3f(0.0f,1.0f,0.0f);            // Set The Color To Green
   26.47 -    glVertex3f( 1.0f,-1.0f, 0.0f);        // Bottom Right
   26.48 -    glColor3f(0.0f,0.0f,1.0f);            // Set The Color To Blue
   26.49 -    glVertex3f(-1.0f,-1.0f, 0.0f);        // Bottom Left
   26.50 -    glEnd();                    // we're done with the polygon (smooth color interpolation)
   26.51 +    /* draw a triangle (in smooth coloring mode) */
   26.52 +    glBegin(GL_POLYGON);                /* start drawing a polygon */
   26.53 +    glColor3f(1.0f,0.0f,0.0f);            /* Set The Color To Red */
   26.54 +    glVertex3f( 0.0f, 1.0f, 0.0f);        /* Top */
   26.55 +    glColor3f(0.0f,1.0f,0.0f);            /* Set The Color To Green */
   26.56 +    glVertex3f( 1.0f,-1.0f, 0.0f);        /* Bottom Right */
   26.57 +    glColor3f(0.0f,0.0f,1.0f);            /* Set The Color To Blue */
   26.58 +    glVertex3f(-1.0f,-1.0f, 0.0f);        /* Bottom Left */
   26.59 +    glEnd();                    /* we're done with the polygon (smooth color interpolation) */
   26.60  
   26.61 -    glTranslatef(3.0f,0.0f,0.0f);         // Move Right 3 Units
   26.62 +    glTranslatef(3.0f,0.0f,0.0f);         /* Move Right 3 Units */
   26.63  
   26.64 -    // Enable blending
   26.65 +    /* Enable blending */
   26.66      glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
   26.67      glEnable(GL_BLEND);
   26.68      glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
   26.69  
   26.70 -    // draw a textured square (quadrilateral)
   26.71 +    /* draw a textured square (quadrilateral) */
   26.72      glEnable(GL_TEXTURE_2D);
   26.73      glBindTexture(GL_TEXTURE_2D, texture);
   26.74      glColor3f(1.0f,1.0f,1.0f);
   26.75 @@ -393,23 +393,23 @@
   26.76          glUseProgramObjectARB(shaders[current_shader].program);
   26.77      }
   26.78  
   26.79 -    glBegin(GL_QUADS);                // start drawing a polygon (4 sided)
   26.80 +    glBegin(GL_QUADS);                /* start drawing a polygon (4 sided) */
   26.81      glTexCoord2f(texcoord[MINX], texcoord[MINY]);
   26.82 -    glVertex3f(-1.0f, 1.0f, 0.0f);        // Top Left
   26.83 +    glVertex3f(-1.0f, 1.0f, 0.0f);        /* Top Left */
   26.84      glTexCoord2f(texcoord[MAXX], texcoord[MINY]);
   26.85 -    glVertex3f( 1.0f, 1.0f, 0.0f);        // Top Right
   26.86 +    glVertex3f( 1.0f, 1.0f, 0.0f);        /* Top Right */
   26.87      glTexCoord2f(texcoord[MAXX], texcoord[MAXY]);
   26.88 -    glVertex3f( 1.0f,-1.0f, 0.0f);        // Bottom Right
   26.89 +    glVertex3f( 1.0f,-1.0f, 0.0f);        /* Bottom Right */
   26.90      glTexCoord2f(texcoord[MINX], texcoord[MAXY]);
   26.91 -    glVertex3f(-1.0f,-1.0f, 0.0f);        // Bottom Left
   26.92 -    glEnd();                    // done with the polygon
   26.93 +    glVertex3f(-1.0f,-1.0f, 0.0f);        /* Bottom Left */
   26.94 +    glEnd();                    /* done with the polygon */
   26.95  
   26.96      if (shaders_supported) {
   26.97          glUseProgramObjectARB(0);
   26.98      }
   26.99      glDisable(GL_TEXTURE_2D);
  26.100  
  26.101 -    // swap buffers to display, since we're double buffered.
  26.102 +    /* swap buffers to display, since we're double buffered. */
  26.103      SDL_GL_SwapWindow(window);
  26.104  }
  26.105  
    27.1 --- a/test/testshape.c	Tue Aug 20 19:49:24 2013 -0300
    27.2 +++ b/test/testshape.c	Tue Aug 20 20:34:40 2013 -0300
    27.3 @@ -29,11 +29,11 @@
    27.4  
    27.5  void render(SDL_Renderer *renderer,SDL_Texture *texture,SDL_Rect texture_dimensions)
    27.6  {
    27.7 -    //Clear render-target to blue.
    27.8 +    /*Clear render-target to blue.*/
    27.9      SDL_SetRenderDrawColor(renderer,0x00,0x00,0xff,0xff);
   27.10      SDL_RenderClear(renderer);
   27.11  
   27.12 -    //Render the texture.
   27.13 +    /*Render the texture.*/
   27.14      SDL_RenderCopy(renderer,texture,&texture_dimensions,&texture_dimensions);
   27.15  
   27.16      SDL_RenderPresent(renderer);
   27.17 @@ -188,17 +188,17 @@
   27.18          next_time += TICK_INTERVAL;
   27.19      }
   27.20  
   27.21 -    //Free the textures.
   27.22 +    /*Free the textures.*/
   27.23      for(i=0;i<num_pictures;i++)
   27.24          SDL_DestroyTexture(pictures[i].texture);
   27.25      SDL_DestroyRenderer(renderer);
   27.26 -    //Destroy the window.
   27.27 +    /*Destroy the window.*/
   27.28      SDL_DestroyWindow(window);
   27.29 -    //Free the original surfaces backing the textures.
   27.30 +    /*Free the original surfaces backing the textures.*/
   27.31      for(i=0;i<num_pictures;i++)
   27.32          SDL_FreeSurface(pictures[i].surface);
   27.33      SDL_free(pictures);
   27.34 -    //Call SDL_VideoQuit() before quitting.
   27.35 +    /*Call SDL_VideoQuit() before quitting.*/
   27.36      SDL_VideoQuit();
   27.37  
   27.38      return 0;
    28.1 --- a/test/testwm2.c	Tue Aug 20 19:49:24 2013 -0300
    28.2 +++ b/test/testwm2.c	Tue Aug 20 20:34:40 2013 -0300
    28.3 @@ -132,7 +132,7 @@
    28.4      SDL_FreeCursor(cursor);
    28.5  
    28.6      quit(0);
    28.7 -    // keep the compiler happy ...
    28.8 +    /* keep the compiler happy ... */
    28.9      return(0);
   28.10  }
   28.11