Cleaned out a few C++ single-line comments.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 21 Jan 2013 02:50:11 -0500
changeset 681793103b719488
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
     1.1 --- a/src/video/x11/SDL_x11events.c	Mon Jan 14 20:20:33 2013 -0300
     1.2 +++ b/src/video/x11/SDL_x11events.c	Mon Jan 21 02:50:11 2013 -0500
     1.3 @@ -42,7 +42,7 @@
     1.4  #include <stdio.h>
     1.5  
     1.6  #ifdef SDL_INPUT_LINUXEV
     1.7 -//Touch Input/event* includes
     1.8 +/* Touch Input/event* includes */
     1.9  #include <linux/input.h>
    1.10  #include <fcntl.h>
    1.11  #endif
     2.1 --- a/src/video/x11/SDL_x11messagebox.c	Mon Jan 14 20:20:33 2013 -0300
     2.2 +++ b/src/video/x11/SDL_x11messagebox.c	Mon Jan 21 02:50:11 2013 -0500
     2.3 @@ -50,11 +50,11 @@
     2.4  static const char g_MessageBoxFont[] = "-*-*-*-*-*-*-*-*-*-*-*-*-*-*";
     2.5  
     2.6  static const SDL_MessageBoxColor g_default_colors[ SDL_MESSAGEBOX_COLOR_MAX ] = {
     2.7 -    { 56,  54,  53  }, // SDL_MESSAGEBOX_COLOR_BACKGROUND,
     2.8 -    { 209, 207, 205 }, // SDL_MESSAGEBOX_COLOR_TEXT,
     2.9 -    { 140, 135, 129 }, // SDL_MESSAGEBOX_COLOR_BUTTON_BORDER,
    2.10 -    { 105, 102, 99  }, // SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND,
    2.11 -    { 205, 202, 53  }, // SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED,
    2.12 +    { 56,  54,  53  }, /* SDL_MESSAGEBOX_COLOR_BACKGROUND, */
    2.13 +    { 209, 207, 205 }, /* SDL_MESSAGEBOX_COLOR_TEXT, */
    2.14 +    { 140, 135, 129 }, /* SDL_MESSAGEBOX_COLOR_BUTTON_BORDER, */
    2.15 +    { 105, 102, 99  }, /* SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND, */
    2.16 +    { 205, 202, 53  }, /* SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED, */
    2.17  };
    2.18  
    2.19  #define SDL_MAKE_RGB( _r, _g, _b )  ( ( ( Uint32 )( _r ) << 16 ) | \
     3.1 --- a/src/video/x11/SDL_x11mouse.c	Mon Jan 14 20:20:33 2013 -0300
     3.2 +++ b/src/video/x11/SDL_x11mouse.c	Mon Jan 21 02:50:11 2013 -0500
     3.3 @@ -230,8 +230,8 @@
     3.4      default:
     3.5          SDL_assert(0);
     3.6          return NULL;
     3.7 -	// X Font Cursors reference:
     3.8 -	//   http://tronche.com/gui/x/xlib/appendix/b/
     3.9 +	/* X Font Cursors reference:
    3.10 +	   http://tronche.com/gui/x/xlib/appendix/b/ */
    3.11      case SDL_SYSTEM_CURSOR_ARROW:     shape = XC_arrow; break;
    3.12      case SDL_SYSTEM_CURSOR_IBEAM:     shape = XC_xterm; break;
    3.13      case SDL_SYSTEM_CURSOR_WAIT:      shape = XC_watch; break;
     4.1 --- a/src/video/x11/SDL_x11opengl.c	Mon Jan 14 20:20:33 2013 -0300
     4.2 +++ b/src/video/x11/SDL_x11opengl.c	Mon Jan 21 02:50:11 2013 -0500
     4.3 @@ -460,8 +460,8 @@
     4.4                                                        GLX_SLOW_VISUAL_EXT;
     4.5      }
     4.6  
     4.7 -    // If we're supposed to use DirectColor visuals, and we've got the EXT_visual_info
     4.8 -    //  extension, then add GLX_X_VISUAL_TYPE_EXT.
     4.9 +    /* If we're supposed to use DirectColor visuals, and we've got the
    4.10 +       EXT_visual_info extension, then add GLX_X_VISUAL_TYPE_EXT. */
    4.11      if (X11_UseDirectColorVisuals() &&
    4.12          _this->gl_data->HAS_GLX_EXT_visual_info) {
    4.13          attribs[i++] = GLX_X_VISUAL_TYPE_EXT;
     5.1 --- a/src/video/x11/SDL_x11opengles.c	Mon Jan 14 20:20:33 2013 -0300
     5.2 +++ b/src/video/x11/SDL_x11opengles.c	Mon Jan 21 02:50:11 2013 -0500
     5.3 @@ -355,8 +355,10 @@
     5.4  {
     5.5      int retval;
     5.6  
     5.7 -//    SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
     5.8 -//    Display *display = data->videodata->display;
     5.9 +/*
    5.10 +    SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
    5.11 +    Display *display = data->videodata->display;
    5.12 +*/
    5.13  
    5.14      if (!_this->gles_data) {
    5.15          SDL_SetError("OpenGL not initialized");
    5.16 @@ -371,7 +373,10 @@
    5.17          SDL_SetError("Unable to make EGL context current");
    5.18          retval = -1;
    5.19      }
    5.20 -//    XSync(display, False);
    5.21 +
    5.22 +/*
    5.23 +    XSync(display, False);
    5.24 +*/
    5.25  
    5.26      return (retval);
    5.27  }
     6.1 --- a/src/video/x11/SDL_x11video.c	Mon Jan 14 20:20:33 2013 -0300
     6.2 +++ b/src/video/x11/SDL_x11video.c	Mon Jan 21 02:50:11 2013 -0500
     6.3 @@ -293,8 +293,8 @@
     6.4          return NULL;
     6.5      }
     6.6  
     6.7 -    // Need for threading gl calls. This is also required for the proprietary nVidia
     6.8 -	//  driver to be threaded.
     6.9 +    /* Need for threading gl calls. This is also required for the proprietary
    6.10 +        nVidia driver to be threaded. */
    6.11      XInitThreads();
    6.12  
    6.13      /* Initialize all variables that we clean on shutdown */