more minor header file re-org (moved CONST, ASSERT, INLINE to config.h)

This commit is contained in:
Brian Paul
2000-10-29 18:23:16 +00:00
parent 699bc7b73d
commit ebb248aa5c
9 changed files with 37 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: osmesa.c,v 1.22 2000/09/28 22:44:31 brianp Exp $ */
/* $Id: osmesa.c,v 1.23 2000/10/29 18:23:28 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -42,6 +42,7 @@
#include "GL/osmesa.h"
#include "context.h"
#include "depth.h"
#include "macros.h"
#include "mem.h"
#include "matrix.h"
#include "types.h"

View File

@@ -1,4 +1,4 @@
/* $Id: accum.c,v 1.28 2000/10/28 18:34:48 brianp Exp $ */
/* $Id: accum.c,v 1.29 2000/10/29 18:23:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -31,6 +31,7 @@
#include "glheader.h"
#include "accum.h"
#include "context.h"
#include "macros.h"
#include "mem.h"
#include "masking.h"
#include "span.h"

View File

@@ -1,4 +1,4 @@
/* $Id: config.h,v 1.22 2000/10/29 18:12:14 brianp Exp $ */
/* $Id: config.h,v 1.23 2000/10/29 18:23:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -197,6 +197,10 @@
#define VB_SIZE (VB_MAX + VB_MAX_CLIPPED_VERTS)
/*
* Language/compiler stuff
*/
/* Some compilers don't like some of Mesa's const usage */
#ifdef NO_CONST
# define CONST
@@ -205,4 +209,21 @@
#endif
/* Function inlining */
#if defined(__GNUC__)
# define INLINE __inline__
#elif defined(__MSC__)
# define INLINE __inline
#else
# define INLINE
#endif
#ifdef DEBUG
# define ASSERT(X) assert(X)
#else
# define ASSERT(X)
#endif
#endif

View File

@@ -1,4 +1,4 @@
/* $Id: depth.c,v 1.19 2000/09/26 20:53:53 brianp Exp $ */
/* $Id: depth.c,v 1.20 2000/10/29 18:23:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -32,6 +32,7 @@
#include "context.h"
#include "enums.h"
#include "depth.h"
#include "macros.h"
#include "mem.h"
#include "pb.h"
#include "types.h"

View File

@@ -1,4 +1,4 @@
/* $Id: macros.h,v 1.11 2000/10/28 20:41:14 brianp Exp $ */
/* $Id: macros.h,v 1.12 2000/10/29 18:23:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -37,35 +37,11 @@
#include "glheader.h"
#ifdef DEBUG
# define ASSERT(X) assert(X)
#else
# define ASSERT(X)
#endif
#if defined(__GNUC__)
#define INLINE __inline__
#elif defined(__MSC__)
#define INLINE __inline
#else
#define INLINE
#endif
/* Limits: */
#define MAX_GLUSHORT 0xffff
#define MAX_GLUINT 0xffffffff
/* Some compilers don't like some of Mesa's const usage */
#ifdef NO_CONST
# define CONST
#else
# define CONST const
#endif
/* Pi */
#ifndef M_PI
#define M_PI (3.1415926)

View File

@@ -1,4 +1,4 @@
/* $Id: matrix.c,v 1.21 2000/09/26 20:53:53 brianp Exp $ */
/* $Id: matrix.c,v 1.22 2000/10/29 18:23:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -42,6 +42,7 @@
#include "buffers.h"
#include "context.h"
#include "enums.h"
#include "macros.h"
#include "matrix.h"
#include "mem.h"
#include "mmath.h"

View File

@@ -1,4 +1,4 @@
/* $Id: stencil.c,v 1.19 2000/09/26 20:53:53 brianp Exp $ */
/* $Id: stencil.c,v 1.20 2000/10/29 18:23:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -31,6 +31,7 @@
#include "glheader.h"
#include "context.h"
#include "depth.h"
#include "macros.h"
#include "mem.h"
#include "pb.h"
#include "stencil.h"

View File

@@ -1,4 +1,4 @@
/* $Id: teximage.c,v 1.54 2000/10/29 18:12:15 brianp Exp $ */
/* $Id: teximage.c,v 1.55 2000/10/29 18:23:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -32,6 +32,7 @@
#include "context.h"
#include "convolve.h"
#include "image.h"
#include "macros.h"
#include "mem.h"
#include "mmath.h"
#include "span.h"

View File

@@ -1,4 +1,4 @@
/* $Id: texobj.c,v 1.29 2000/10/24 02:53:18 brianp Exp $ */
/* $Id: texobj.c,v 1.30 2000/10/29 18:23:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -33,6 +33,7 @@
#include "context.h"
#include "enums.h"
#include "hash.h"
#include "macros.h"
#include "mem.h"
#include "teximage.h"
#include "texstate.h"