Use FREE instead of free. Fix newlines.
This commit is contained in:
@@ -32,6 +32,8 @@
|
|||||||
|
|
||||||
#define CALLOC_STRUCT(T) (struct T *) calloc(1, sizeof(struct T))
|
#define CALLOC_STRUCT(T) (struct T *) calloc(1, sizeof(struct T))
|
||||||
|
|
||||||
|
#define FREE( PTR ) free( PTR )
|
||||||
|
|
||||||
#define CLAMP( X, MIN, MAX ) ( (X)<(MIN) ? (MIN) : ((X)>(MAX) ? (MAX) : (X)) )
|
#define CLAMP( X, MIN, MAX ) ( (X)<(MIN) ? (MIN) : ((X)>(MAX) ? (MAX) : (X)) )
|
||||||
#define MIN2( A, B ) ( (A)<(B) ? (A) : (B) )
|
#define MIN2( A, B ) ( (A)<(B) ? (A) : (B) )
|
||||||
#define MAX2( A, B ) ( (A)>(B) ? (A) : (B) )
|
#define MAX2( A, B ) ( (A)>(B) ? (A) : (B) )
|
||||||
|
@@ -88,9 +88,9 @@ static void alpha_test_begin(struct quad_stage *qs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void alpha_test_destroy(struct quad_stage *qs)
|
static void alpha_test_destroy(struct quad_stage *qs)
|
||||||
{
|
{
|
||||||
free( qs );
|
FREE( qs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -727,9 +727,9 @@ static void blend_begin(struct quad_stage *qs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void blend_destroy(struct quad_stage *qs)
|
static void blend_destroy(struct quad_stage *qs)
|
||||||
{
|
{
|
||||||
free( qs );
|
FREE( qs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -50,9 +50,9 @@ static void cbuf_loop_begin(struct quad_stage *qs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void cbuf_loop_destroy(struct quad_stage *qs)
|
static void cbuf_loop_destroy(struct quad_stage *qs)
|
||||||
{
|
{
|
||||||
free( qs );
|
FREE( qs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -90,9 +90,9 @@ static void colormask_begin(struct quad_stage *qs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void colormask_destroy(struct quad_stage *qs)
|
static void colormask_destroy(struct quad_stage *qs)
|
||||||
{
|
{
|
||||||
free( qs );
|
FREE( qs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -69,9 +69,9 @@ static void coverage_begin(struct quad_stage *qs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void coverage_destroy(struct quad_stage *qs)
|
static void coverage_destroy(struct quad_stage *qs)
|
||||||
{
|
{
|
||||||
free( qs );
|
FREE( qs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -231,9 +231,9 @@ static void depth_test_begin(struct quad_stage *qs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void depth_test_destroy(struct quad_stage *qs)
|
static void depth_test_destroy(struct quad_stage *qs)
|
||||||
{
|
{
|
||||||
free( qs );
|
FREE( qs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -198,7 +198,11 @@ static void shade_begin(struct quad_stage *qs)
|
|||||||
|
|
||||||
static void shade_destroy(struct quad_stage *qs)
|
static void shade_destroy(struct quad_stage *qs)
|
||||||
{
|
{
|
||||||
free( qs );
|
struct quad_shade_stage *qss = (struct quad_shade_stage *) qs;
|
||||||
|
|
||||||
|
FREE( qss->inputs );
|
||||||
|
FREE( qss->outputs );
|
||||||
|
FREE( qs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -64,9 +64,9 @@ static void occlusion_begin(struct quad_stage *qs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void occlusion_destroy(struct quad_stage *qs)
|
static void occlusion_destroy(struct quad_stage *qs)
|
||||||
{
|
{
|
||||||
free( qs );
|
FREE( qs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -70,9 +70,9 @@ static void output_begin(struct quad_stage *qs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void output_destroy(struct quad_stage *qs)
|
static void output_destroy(struct quad_stage *qs)
|
||||||
{
|
{
|
||||||
free( qs );
|
FREE( qs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -323,9 +323,9 @@ static void stencil_begin(struct quad_stage *qs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void stencil_destroy(struct quad_stage *qs)
|
static void stencil_destroy(struct quad_stage *qs)
|
||||||
{
|
{
|
||||||
free( qs );
|
FREE( qs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -65,9 +65,9 @@ static void stipple_begin(struct quad_stage *qs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void stipple_destroy(struct quad_stage *qs)
|
static void stipple_destroy(struct quad_stage *qs)
|
||||||
{
|
{
|
||||||
free( qs );
|
FREE( qs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user