Cleaned out a few C++ single-line comments.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 21 Jan 2013 02:50:11 -0500
changeset 6817 93103b719488
parent 6816 b3d3ef1e15b5
child 6818 6f17d1353ffa
Cleaned out a few C++ single-line comments. Should we bother doing this anymore? Is there really a C compiler we care about that doesn't support this?
src/video/x11/SDL_x11events.c
src/video/x11/SDL_x11messagebox.c
src/video/x11/SDL_x11mouse.c
src/video/x11/SDL_x11opengl.c
src/video/x11/SDL_x11opengles.c
src/video/x11/SDL_x11video.c
--- a/src/video/x11/SDL_x11events.c	Mon Jan 14 20:20:33 2013 -0300
+++ b/src/video/x11/SDL_x11events.c	Mon Jan 21 02:50:11 2013 -0500
@@ -42,7 +42,7 @@
 #include <stdio.h>
 
 #ifdef SDL_INPUT_LINUXEV
-//Touch Input/event* includes
+/* Touch Input/event* includes */
 #include <linux/input.h>
 #include <fcntl.h>
 #endif
--- a/src/video/x11/SDL_x11messagebox.c	Mon Jan 14 20:20:33 2013 -0300
+++ b/src/video/x11/SDL_x11messagebox.c	Mon Jan 21 02:50:11 2013 -0500
@@ -50,11 +50,11 @@
 static const char g_MessageBoxFont[] = "-*-*-*-*-*-*-*-*-*-*-*-*-*-*";
 
 static const SDL_MessageBoxColor g_default_colors[ SDL_MESSAGEBOX_COLOR_MAX ] = {
-    { 56,  54,  53  }, // SDL_MESSAGEBOX_COLOR_BACKGROUND,
-    { 209, 207, 205 }, // SDL_MESSAGEBOX_COLOR_TEXT,
-    { 140, 135, 129 }, // SDL_MESSAGEBOX_COLOR_BUTTON_BORDER,
-    { 105, 102, 99  }, // SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND,
-    { 205, 202, 53  }, // SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED,
+    { 56,  54,  53  }, /* SDL_MESSAGEBOX_COLOR_BACKGROUND, */
+    { 209, 207, 205 }, /* SDL_MESSAGEBOX_COLOR_TEXT, */
+    { 140, 135, 129 }, /* SDL_MESSAGEBOX_COLOR_BUTTON_BORDER, */
+    { 105, 102, 99  }, /* SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND, */
+    { 205, 202, 53  }, /* SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED, */
 };
 
 #define SDL_MAKE_RGB( _r, _g, _b )  ( ( ( Uint32 )( _r ) << 16 ) | \
--- a/src/video/x11/SDL_x11mouse.c	Mon Jan 14 20:20:33 2013 -0300
+++ b/src/video/x11/SDL_x11mouse.c	Mon Jan 21 02:50:11 2013 -0500
@@ -230,8 +230,8 @@
     default:
         SDL_assert(0);
         return NULL;
-	// X Font Cursors reference:
-	//   http://tronche.com/gui/x/xlib/appendix/b/
+	/* X Font Cursors reference:
+	   http://tronche.com/gui/x/xlib/appendix/b/ */
     case SDL_SYSTEM_CURSOR_ARROW:     shape = XC_arrow; break;
     case SDL_SYSTEM_CURSOR_IBEAM:     shape = XC_xterm; break;
     case SDL_SYSTEM_CURSOR_WAIT:      shape = XC_watch; break;
--- a/src/video/x11/SDL_x11opengl.c	Mon Jan 14 20:20:33 2013 -0300
+++ b/src/video/x11/SDL_x11opengl.c	Mon Jan 21 02:50:11 2013 -0500
@@ -460,8 +460,8 @@
                                                       GLX_SLOW_VISUAL_EXT;
     }
 
-    // If we're supposed to use DirectColor visuals, and we've got the EXT_visual_info
-    //  extension, then add GLX_X_VISUAL_TYPE_EXT.
+    /* If we're supposed to use DirectColor visuals, and we've got the
+       EXT_visual_info extension, then add GLX_X_VISUAL_TYPE_EXT. */
     if (X11_UseDirectColorVisuals() &&
         _this->gl_data->HAS_GLX_EXT_visual_info) {
         attribs[i++] = GLX_X_VISUAL_TYPE_EXT;
--- a/src/video/x11/SDL_x11opengles.c	Mon Jan 14 20:20:33 2013 -0300
+++ b/src/video/x11/SDL_x11opengles.c	Mon Jan 21 02:50:11 2013 -0500
@@ -355,8 +355,10 @@
 {
     int retval;
 
-//    SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
-//    Display *display = data->videodata->display;
+/*
+    SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
+    Display *display = data->videodata->display;
+*/
 
     if (!_this->gles_data) {
         SDL_SetError("OpenGL not initialized");
@@ -371,7 +373,10 @@
         SDL_SetError("Unable to make EGL context current");
         retval = -1;
     }
-//    XSync(display, False);
+
+/*
+    XSync(display, False);
+*/
 
     return (retval);
 }
--- a/src/video/x11/SDL_x11video.c	Mon Jan 14 20:20:33 2013 -0300
+++ b/src/video/x11/SDL_x11video.c	Mon Jan 21 02:50:11 2013 -0500
@@ -293,8 +293,8 @@
         return NULL;
     }
 
-    // Need for threading gl calls. This is also required for the proprietary nVidia
-	//  driver to be threaded.
+    /* Need for threading gl calls. This is also required for the proprietary
+        nVidia driver to be threaded. */
     XInitThreads();
 
     /* Initialize all variables that we clean on shutdown */