Fix some mixed spaces / tabs issues in generated code. Commit generated
authorIan Romanick <idr@us.ibm.com>
Sat, 5 Feb 2005 00:59:57 +0000 (00:59 +0000)
committerIan Romanick <idr@us.ibm.com>
Sat, 5 Feb 2005 00:59:57 +0000 (00:59 +0000)
files that have been trivially changed by other recent commits.

src/glx/x11/indirect.c
src/glx/x11/indirect.h
src/glx/x11/indirect_size.c
src/glx/x11/indirect_size.h
src/mesa/glapi/glX_proto_send.py

index d218909..dd9a2f7 100644 (file)
@@ -64,19 +64,19 @@ read_reply( Display *dpy, size_t size, void * dest, GLboolean reply_is_always_ar
     
     (void) _XReply(dpy, (xReply *) & reply, 0, False);
     if (size != 0) {
-       if ((reply.length > 0) || reply_is_always_array) {
-           const GLint bytes = (reply_is_always_array) 
-             ? (4 * reply.length) : (reply.size * size);
-           const GLint extra = 4 - (bytes & 3);
-
-           _XRead(dpy, dest, bytes);
-           if ( extra < 4 ) {
-               _XEatData(dpy, extra);
-           }
-       }
-       else {
-           (void) memcpy( dest, &(reply.pad3), size);
-       }
+        if ((reply.length > 0) || reply_is_always_array) {
+            const GLint bytes = (reply_is_always_array) 
+              ? (4 * reply.length) : (reply.size * size);
+            const GLint extra = 4 - (bytes & 3);
+
+            _XRead(dpy, dest, bytes);
+            if ( extra < 4 ) {
+                _XEatData(dpy, extra);
+            }
+        }
+        else {
+            (void) memcpy( dest, &(reply.pad3), size);
+        }
     }
 
     return reply.retval;
index cb14dbc..a250790 100644 (file)
@@ -519,6 +519,7 @@ extern HIDDEN void __indirect_glPointParameterivNV(GLenum pname, const GLint * p
 extern HIDDEN void __indirect_glMultiDrawArraysEXT(GLenum mode, GLint * first, GLsizei * count, GLsizei primcount);
 extern HIDDEN void __indirect_glMultiDrawElementsEXT(GLenum mode, const GLsizei * count, GLenum type, const GLvoid ** indices, GLsizei primcount);
 extern HIDDEN void __indirect_glActiveStencilFaceEXT(GLenum face);
+
 #  undef HIDDEN
 
 #endif /* !defined( _INDIRECT_H_ ) */
index c21e1ee..ae6939b 100644 (file)
@@ -132,6 +132,7 @@ __glLightModelfv_size( GLenum e )
         case GL_LIGHT_MODEL_LOCAL_VIEWER:
         case GL_LIGHT_MODEL_TWO_SIDE:
         case GL_LIGHT_MODEL_COLOR_CONTROL:
+/*      case GL_LIGHT_MODEL_COLOR_CONTROL_EXT:*/
             return 1;
         case GL_LIGHT_MODEL_AMBIENT:
             return 4;
index 2001c56..ba7fc35 100644 (file)
@@ -81,8 +81,8 @@ extern INTERNAL PURE FASTCALL GLint __glConvolutionParameteriv_size(GLenum);
 extern INTERNAL PURE FASTCALL GLint __glPointParameterfvEXT_size(GLenum);
 extern INTERNAL PURE FASTCALL GLint __glPointParameterivNV_size(GLenum);
 
-#  undef INTERNAL
 #  undef PURE
 #  undef FASTCALL
+#  undef INTERNAL
 
 #endif /* !defined( _INDIRECT_SIZE_H_ ) */
index 6ee93a5..334caf8 100644 (file)
@@ -148,19 +148,19 @@ read_reply( Display *dpy, size_t size, void * dest, GLboolean reply_is_always_ar
     
     (void) _XReply(dpy, (xReply *) & reply, 0, False);
     if (size != 0) {
-       if ((reply.length > 0) || reply_is_always_array) {
-           const GLint bytes = (reply_is_always_array) 
-             ? (4 * reply.length) : (reply.size * size);
-           const GLint extra = 4 - (bytes & 3);
-
-           _XRead(dpy, dest, bytes);
-           if ( extra < 4 ) {
-               _XEatData(dpy, extra);
-           }
-       }
-       else {
-           (void) memcpy( dest, &(reply.pad3), size);
-       }
+        if ((reply.length > 0) || reply_is_always_array) {
+            const GLint bytes = (reply_is_always_array) 
+              ? (4 * reply.length) : (reply.size * size);
+            const GLint extra = 4 - (bytes & 3);
+
+            _XRead(dpy, dest, bytes);
+            if ( extra < 4 ) {
+                _XEatData(dpy, extra);
+            }
+        }
+        else {
+            (void) memcpy( dest, &(reply.pad3), size);
+        }
     }
 
     return reply.retval;