make some functions static
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 5 Sep 2005 21:17:44 +0000 (21:17 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 5 Sep 2005 21:17:44 +0000 (21:17 +0000)
src/mesa/drivers/dri/trident/trident_context.c
src/mesa/drivers/dri/trident/trident_state.c

index f43c1e732c45db3b019440aa9d255cfd82a700a2..9c8f7ef01f3ce00eb0a7dca7c95554a4c84999e1 100644 (file)
@@ -62,9 +62,10 @@ static const struct tnl_pipeline_stage *trident_pipeline[] = {
 };
 
 
-GLboolean tridentCreateContext( const __GLcontextModes *glVisual,
-                            __DRIcontextPrivate *driContextPriv,
-                            void *sharedContextPrivate)
+static GLboolean
+tridentCreateContext( const __GLcontextModes *glVisual,
+                      __DRIcontextPrivate *driContextPriv,
+                      void *sharedContextPrivate)
 {
    GLcontext *ctx, *shareCtx;
    __DRIscreenPrivate *sPriv = driContextPriv->driScreenPriv;
@@ -348,7 +349,8 @@ tridentUnbindContext( __DRIcontextPrivate *driContextPriv )
 }
 
 
-tridentScreenPtr tridentCreateScreen( __DRIscreenPrivate *sPriv )
+static tridentScreenPtr
+tridentCreateScreen( __DRIscreenPrivate *sPriv )
 {
    TRIDENTDRIPtr tDRIPriv = (TRIDENTDRIPtr)sPriv->pDevPriv;
    tridentScreenPtr tridentScreen;
@@ -393,12 +395,14 @@ printf("MAPPED at %p\n", tridentScreen->mmio.map);
 
 /* Destroy the device specific screen private data struct.
  */
-void tridentDestroyScreen( __DRIscreenPrivate *sPriv )
+static void
+tridentDestroyScreen( __DRIscreenPrivate *sPriv )
 {
     tridentScreenPtr tridentScreen = (tridentScreenPtr)sPriv->private;
 
     FREE(tridentScreen);
 }
+
 static GLboolean 
 tridentInitDriver(__DRIscreenPrivate *sPriv)
 {
index 76b2a8ef3c903309c43827b3dbb27305eb72ae97..e0b7a452243412e14f3401076b4379ee855a0c63 100644 (file)
@@ -322,7 +322,8 @@ static void tridentDDShadeModel( GLcontext *ctx, GLenum mode )
    }
 }
 
-void tridentCalcViewport( GLcontext *ctx )
+static void
+tridentCalcViewport( GLcontext *ctx )
 {
    tridentContextPtr tmesa = TRIDENT_CONTEXT(ctx);
    const GLfloat *v = ctx->Viewport._WindowMap.m;
@@ -358,7 +359,8 @@ static void tridentDDDepthRange( GLcontext *ctx,
    tridentCalcViewport( ctx );
 }
 
-void tridentSetCliprects( tridentContextPtr tmesa, GLenum mode )
+static void
+tridentSetCliprects( tridentContextPtr tmesa, GLenum mode )
 {
    __DRIdrawablePrivate *dPriv = tmesa->driDrawable;
 
@@ -455,7 +457,8 @@ static void tridentDDClearColor( GLcontext *ctx,
 }
 #endif
 
-void tridentDDUpdateState( GLcontext *ctx, GLuint new_state )
+static void
+tridentDDUpdateState( GLcontext *ctx, GLuint new_state )
 {
    _swrast_InvalidateState( ctx, new_state );
    _swsetup_InvalidateState( ctx, new_state );