mesa: extra braces
authorBlair Sadewitz <blair.sadewitz@gmail.com>
Tue, 15 Jul 2008 23:05:28 +0000 (17:05 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 15 Jul 2008 23:05:28 +0000 (17:05 -0600)
src/mesa/drivers/x11/xm_tri.c

index c87a293756728f563012ab504a8ab3030775ee7f..77fceec194cf45a014e71be38128b1e12f172cc0 100644 (file)
@@ -66,7 +66,7 @@
    XMesaContext xmesa = XMESA_CONTEXT(ctx);                    \
    GET_XRB(xrb);
 
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLint x = span.x, y = YFLIP(xrb, span.y);                   \
    GLuint i;                                                   \
    for (i = 0; i < span.end; i++, x++) {                       \
@@ -82,7 +82,7 @@
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
       span.z += span.zStep;                                    \
-   }
+   } }
 
 #include "swrast/s_tritemp.h"
 
 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    for (i = 0; i < span.end; i++) {                            \
       const DEPTH_TYPE z = FixedToDepth(span.z);               \
       span.blue += span.blueStep;                              \
       span.alpha += span.alphaStep;                            \
       span.z += span.zStep;                                    \
-   }
+   } }
 
 #include "swrast/s_tritemp.h"
 
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
 
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    for (i = 0; i < span.end; i++) {                            \
       const DEPTH_TYPE z = FixedToDepth(span.z);               \
       span.blue += span.blueStep;                              \
       span.alpha += span.alphaStep;                            \
       span.z += span.zStep;                                    \
-   }
+   } }
 
 #include "swrast/s_tritemp.h"
 
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
 
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    for (i = 0; i < span.end; i++) {                            \
       const DEPTH_TYPE z = FixedToDepth(span.z);               \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
       span.z += span.zStep;                                    \
-   }
+   } }
 
 #include "swrast/s_tritemp.h"
 
 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    for (i = 0; i < span.end; i++) {                            \
       const DEPTH_TYPE z = FixedToDepth(span.z);               \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define SETUP_CODE                                             \
    XMesaContext xmesa = XMESA_CONTEXT(ctx);                    \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);                   \
    for (i = 0; i < span.end; i++, x++) {                       \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    for (i = 0; i < span.end; i++) {                            \
       const DEPTH_TYPE z = FixedToDepth(span.z);               \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define SETUP_CODE                                             \
    XMesaContext xmesa = XMESA_CONTEXT(ctx);                    \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);                   \
    for (i = 0; i < span.end; i++, x++) {                       \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);                   \
    XDITHER_SETUP(y);                                           \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define SETUP_CODE                                             \
    GET_XRB(xrb);                                               \
    XMesaImage *img = xrb->ximage;
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);                   \
    XDITHER_SETUP(y);                                           \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    LOOKUP_SETUP;                                               \
    for (i = 0; i < span.end; i++) {                            \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define SETUP_CODE                                             \
    XMesaContext xmesa = XMESA_CONTEXT(ctx);                    \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);                   \
    for (i = 0; i < span.end; i++, x++) {                       \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    XMesaImage *img = xrb->ximage;                              \
    unsigned long pixel;                                                \
    PACK_TRUECOLOR(pixel, v2->color[0], v2->color[1], v2->color[2]);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);                   \
    for (i = 0; i < span.end; i++, x++) {                       \
          zRow[i] = z;                                          \
       }                                                                \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    GET_XRB(xrb);                                       \
    GLuint p = PACK_8A8B8G8R( v2->color[0], v2->color[1],\
                              v2->color[2], v2->color[3]);
-#define RENDER_SPAN( span )                            \
+#define RENDER_SPAN( span ) {                          \
    GLuint i;                                           \
    for (i = 0; i < span.end; i++) {                    \
       const DEPTH_TYPE z = FixedToDepth(span.z);       \
          zRow[i] = z;                                  \
       }                                                        \
       span.z += span.zStep;                            \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    GET_XRB(xrb);                                       \
    GLuint p = PACK_8A8R8G8B(v2->color[0], v2->color[1],        \
                             v2->color[2], v2->color[3]);
-#define RENDER_SPAN( span )                            \
+#define RENDER_SPAN( span ) {                          \
    GLuint i;                                           \
    for (i = 0; i < span.end; i++) {                    \
       const DEPTH_TYPE z = FixedToDepth(span.z);       \
          zRow[i] = z;                                  \
       }                                                        \
       span.z += span.zStep;                            \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define SETUP_CODE                                     \
    GET_XRB(xrb);                                       \
    GLuint p = PACK_8R8G8B( v2->color[0], v2->color[1], v2->color[2] );
-#define RENDER_SPAN( span )                    \
+#define RENDER_SPAN( span ) {                  \
    GLuint i;                                   \
    for (i = 0; i < span.end; i++) {            \
       DEPTH_TYPE z = FixedToDepth(span.z);     \
          zRow[i] = z;                          \
       }                                                \
       span.z += span.zStep;                    \
-   }
+   } }
 
 #include "swrast/s_tritemp.h"
 
 #define SETUP_CODE                                     \
    GET_XRB(xrb);                                       \
    const GLubyte *color = v2->color;
-#define RENDER_SPAN( span )                            \
+#define RENDER_SPAN( span ) {                          \
    GLuint i;                                           \
    for (i = 0; i < span.end; i++) {                    \
       const DEPTH_TYPE z = FixedToDepth(span.z);       \
          zRow[i] = z;                                  \
       }                                                        \
       span.z += span.zStep;                            \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    XMesaContext xmesa = XMESA_CONTEXT(ctx);                    \
    GET_XRB(xrb);                                               \
    XMesaImage *img = xrb->ximage;
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);                   \
    for (i = 0; i < span.end; i++, x++) {                       \
          zRow[i] = z;                                          \
       }                                                                \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define SETUP_CODE                                     \
    GET_XRB(xrb);                                       \
    GLushort p = PACK_5R6G5B( v2->color[0], v2->color[1], v2->color[2] );
-#define RENDER_SPAN( span )                            \
+#define RENDER_SPAN( span ) {                          \
    GLuint i;                                           \
    for (i = 0; i < span.end; i++) {                    \
       const DEPTH_TYPE z = FixedToDepth(span.z);       \
          zRow[i] = z;                                  \
       }                                                        \
       span.z += span.zStep;                            \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    XMesaContext xmesa = XMESA_CONTEXT(ctx);                    \
    GET_XRB(xrb);                                               \
    const GLubyte *color = v2->color;
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);                   \
    for (i = 0; i < span.end; i++, x++) {                       \
          zRow[i] = z;                                          \
       }                                                                \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define SETUP_CODE                                             \
    GET_XRB(xrb);                                               \
    FLAT_DITHER_SETUP( v2->color[0], v2->color[1], v2->color[2] );
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);                   \
    FLAT_DITHER_ROW_SETUP(YFLIP(xrb, y));                       \
          zRow[i] = z;                                          \
       }                                                                \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    GET_XRB(xrb);                                       \
    XMesaImage *img = xrb->ximage;              \
    FLAT_DITHER_SETUP( v2->color[0], v2->color[1], v2->color[2] );
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    FLAT_DITHER_ROW_SETUP(y);                                   \
          zRow[i] = z;                                          \
       }                                                                \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    GLubyte r = v2->color[0];                                   \
    GLubyte g = v2->color[1];                                   \
    GLubyte b = v2->color[2];
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    for (i = 0; i < span.end; i++, x++) {                       \
          zRow[i] = z;                                          \
       }                                                                \
       span.z += span.zStep;                                    \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    GLubyte g = v2->color[1];                           \
    GLubyte b = v2->color[2];                           \
    GLubyte p = LOOKUP(r,g,b);
-#define RENDER_SPAN( span )                            \
+#define RENDER_SPAN( span ) {                          \
    GLuint i;                                           \
    for (i = 0; i < span.end; i++) {                    \
       const DEPTH_TYPE z = FixedToDepth(span.z);       \
          zRow[i] = z;                                  \
       }                                                        \
       span.z += span.zStep;                            \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    XMesaContext xmesa = XMESA_CONTEXT(ctx);                    \
    GET_XRB(xrb);                                               \
    XMesaImage *img = xrb->ximage;
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    for (i = 0; i < span.end; i++, x++) {                       \
       span.red += span.redStep;                                        \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    for (i = 0; i < span.end; i++) {                            \
       pRow[i] = PACK_8A8B8G8R(FixedToInt(span.red),            \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
       span.alpha += span.alphaStep;                            \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    for (i = 0; i < span.end; i++) {                            \
       pRow[i] = PACK_8A8R8G8B(FixedToInt(span.red),            \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
       span.alpha += span.alphaStep;                            \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    for (i = 0; i < span.end; i++) {                            \
       pRow[i] = PACK_8R8G8B(FixedToInt(span.red),              \
       span.red += span.redStep;                                        \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
 #define SETUP_CODE                                     \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                            \
+#define RENDER_SPAN( span ) {                          \
    GLuint i;                                           \
    PIXEL_TYPE *pixel = pRow;                           \
    for (i = 0; i < span.end; i++, pixel++) {           \
       span.red += span.redStep;                                \
       span.green += span.greenStep;                    \
       span.blue += span.blueStep;                      \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    XMesaContext xmesa = XMESA_CONTEXT(ctx);                    \
    GET_XRB(xrb);                                               \
    XMesaImage *img = xrb->ximage;
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    for (i = 0; i < span.end; i++, x++) {                       \
       span.red += span.redStep;                                        \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    for (i = 0; i < span.end; i++) {                            \
       pRow[i] = (PIXEL_TYPE) PACK_5R6G5B(FixedToInt(span.red), \
       span.red += span.redStep;                                        \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define SETUP_CODE                                             \
    XMesaContext xmesa = XMESA_CONTEXT(ctx);                    \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    for (i = 0; i < span.end; i++, x++) {                       \
       span.red += span.redStep;                                        \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    XDITHER_SETUP(y);                                           \
       span.red += span.redStep;                                        \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define SETUP_CODE                                             \
    GET_XRB(xrb);                                               \
    XMesaImage *img = xrb->ximage;
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    XDITHER_SETUP(y);                                           \
       span.red += span.redStep;                                        \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
 #define SETUP_CODE                                             \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    LOOKUP_SETUP;                                               \
    for (i = 0; i < span.end; i++) {                            \
       span.red += span.redStep;                                        \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define SETUP_CODE                                             \
    XMesaContext xmesa = XMESA_CONTEXT(ctx);                    \
    GET_XRB(xrb);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    for (i = 0; i < span.end; i++, x++) {                       \
       span.red += span.redStep;                                        \
       span.green += span.greenStep;                            \
       span.blue += span.blueStep;                              \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    XMesaImage *img = xrb->ximage;                              \
    unsigned long pixel;                                                \
    PACK_TRUECOLOR(pixel, v2->color[0], v2->color[1], v2->color[2]);
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    for (i = 0; i < span.end; i++, x++) {                       \
       XMesaPutPixel(img, x, y, pixel);                         \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    GET_XRB(xrb);                                       \
    unsigned long p = PACK_8B8G8R( v2->color[0],                \
                 v2->color[1], v2->color[2] );
-#define RENDER_SPAN( span )                            \
+#define RENDER_SPAN( span ) {                          \
    GLuint i;                                           \
    for (i = 0; i < span.end; i++) {                    \
       pRow[i] = (PIXEL_TYPE) p;                                \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    GET_XRB(xrb);                                       \
    unsigned long p = PACK_8R8G8B( v2->color[0],                \
                 v2->color[1], v2->color[2] );
-#define RENDER_SPAN( span )                            \
+#define RENDER_SPAN( span ) {                          \
    GLuint i;                                           \
    for (i = 0; i < span.end; i++) {                    \
       pRow[i] = (PIXEL_TYPE) p;                                \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    GET_XRB(xrb);                                       \
    unsigned long p = PACK_8R8G8B( v2->color[0],                \
                 v2->color[1], v2->color[2] );
-#define RENDER_SPAN( span )                            \
+#define RENDER_SPAN( span ) {                          \
    GLuint i;                                           \
    for (i = 0; i < span.end; i++) {                    \
       pRow[i] = (PIXEL_TYPE) p;                                \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define SETUP_CODE                                     \
    GET_XRB(xrb);                                       \
    const GLubyte *color = v2->color;
-#define RENDER_SPAN( span )                            \
+#define RENDER_SPAN( span ) {                          \
    GLuint i;                                           \
    PIXEL_TYPE *pixel = pRow;                           \
    for (i = 0; i < span.end; i++, pixel++) {           \
       pixel->r = color[RCOMP];                         \
       pixel->g = color[GCOMP];                         \
       pixel->b = color[BCOMP];                         \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    XMesaContext xmesa = XMESA_CONTEXT(ctx);                    \
    GET_XRB(xrb);                                               \
    XMesaImage *img = xrb->ximage;
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    for (i = 0; i < span.end; i++, x++) {                       \
       PACK_TRUEDITHER(p, x, y, v2->color[0],                   \
                v2->color[1], v2->color[2] );                   \
       XMesaPutPixel(img, x, y, p);                             \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    GET_XRB(xrb);                                       \
    unsigned long p = PACK_5R6G5B( v2->color[0],                \
                 v2->color[1], v2->color[2] );
-#define RENDER_SPAN( span )                            \
+#define RENDER_SPAN( span ) {                          \
    GLuint i;                                           \
    for (i = 0; i < span.end; i++) {                    \
       pRow[i] = (PIXEL_TYPE) p;                                \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    XMesaContext xmesa = XMESA_CONTEXT(ctx);                    \
    GET_XRB(xrb);                                               \
    const GLubyte *color = v2->color;
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    for (i = 0; i < span.end; i++, x++) {                       \
       PACK_TRUEDITHER(pRow[i], x, y, color[RCOMP],             \
          color[GCOMP], color[BCOMP]);                          \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
 #define SETUP_CODE                                             \
    GET_XRB(xrb);                                               \
    FLAT_DITHER_SETUP( v2->color[0], v2->color[1], v2->color[2] );
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    FLAT_DITHER_ROW_SETUP(YFLIP(xrb, y));               \
    for (i = 0; i < span.end; i++, x++) {                       \
       pRow[i] = (PIXEL_TYPE) FLAT_DITHER(x);                   \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    GET_XRB(xrb);                                               \
    XMesaImage *img = xrb->ximage;                              \
    FLAT_DITHER_SETUP( v2->color[0], v2->color[1], v2->color[2] );
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    FLAT_DITHER_ROW_SETUP(y);                                   \
    for (i = 0; i < span.end; i++, x++) {                       \
       unsigned long p = FLAT_DITHER(x);                                \
       XMesaPutPixel(img, x, y, p );                            \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    GLubyte r = v2->color[0];                                   \
    GLubyte g = v2->color[1];                                   \
    GLubyte b = v2->color[2];
-#define RENDER_SPAN( span )                                    \
+#define RENDER_SPAN( span ) {                                  \
    GLuint i;                                                   \
    GLint x = span.x, y = YFLIP(xrb, span.y);   \
    for (i = 0; i < span.end; i++, x++) {                       \
       pRow[i] = (PIXEL_TYPE) DITHER_HPCR(x, y, r, g, b);       \
-   }
+   } }
 #include "swrast/s_tritemp.h"
 
 
    GLubyte g = v2->color[1];                           \
    GLubyte b = v2->color[2];                           \
    GLubyte p = LOOKUP(r,g,b);
-#define RENDER_SPAN( span )                            \
+#define RENDER_SPAN( span ) {                          \
    GLuint i;                                           \
    for (i = 0; i < span.end; i++) {                    \
       pRow[i] = (PIXEL_TYPE) p;                                \
-   }
+   } }
 #include "swrast/s_tritemp.h"