From 3c63452e64df7e10aa073c6c3b9492b1d7dabbb8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 24 Oct 2002 23:57:19 +0000 Subject: Header file clean-up: 1. Remove all.h and PC_HEADER junk. 2. Rolled mem.c and mem.h into imports.c and imports.h 3. Include imports.h instead of mem.h Restore _mesa_create/initialize_context() to be like they were in 4.0.4 New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc. --- src/mesa/tnl/t_array_api.c | 6 +++--- src/mesa/tnl/t_array_import.c | 4 ++-- src/mesa/tnl/t_context.c | 4 ++-- src/mesa/tnl/t_eval_api.c | 4 ++-- src/mesa/tnl/t_imm_alloc.c | 4 ++-- src/mesa/tnl/t_imm_api.c | 4 ++-- src/mesa/tnl/t_imm_debug.c | 4 +++- src/mesa/tnl/t_imm_dlist.c | 4 ++-- src/mesa/tnl/t_imm_elt.c | 4 ++-- src/mesa/tnl/t_imm_eval.c | 4 ++-- src/mesa/tnl/t_imm_exec.c | 4 ++-- src/mesa/tnl/t_imm_fixup.c | 4 ++-- src/mesa/tnl/t_pipeline.c | 4 ++-- src/mesa/tnl/t_vb_fog.c | 4 ++-- src/mesa/tnl/t_vb_light.c | 4 ++-- src/mesa/tnl/t_vb_normals.c | 4 ++-- src/mesa/tnl/t_vb_points.c | 4 ++-- src/mesa/tnl/t_vb_program.c | 4 ++-- src/mesa/tnl/t_vb_render.c | 4 ++-- src/mesa/tnl/t_vb_texgen.c | 4 ++-- src/mesa/tnl/t_vb_texmat.c | 4 ++-- src/mesa/tnl/t_vb_vertex.c | 4 ++-- src/mesa/tnl/t_vtx_exec.c | 2 +- src/mesa/tnl/t_vtx_sse.c | 4 +--- src/mesa/tnl/t_vtx_x86.c | 4 +--- 25 files changed, 49 insertions(+), 51 deletions(-) (limited to 'src/mesa/tnl') diff --git a/src/mesa/tnl/t_array_api.c b/src/mesa/tnl/t_array_api.c index e2b37ccfb4..b61d29d662 100644 --- a/src/mesa/tnl/t_array_api.c +++ b/src/mesa/tnl/t_array_api.c @@ -1,4 +1,4 @@ -/* $Id: t_array_api.c,v 1.27 2002/06/29 19:48:17 brianp Exp $ */ +/* $Id: t_array_api.c,v 1.28 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -33,11 +33,11 @@ #include "glheader.h" #include "api_validate.h" #include "context.h" +#include "imports.h" #include "macros.h" #include "mmath.h" -#include "mem.h" -#include "state.h" #include "mtypes.h" +#include "state.h" #include "array_cache/acache.h" diff --git a/src/mesa/tnl/t_array_import.c b/src/mesa/tnl/t_array_import.c index b949bc639a..50649cddd8 100644 --- a/src/mesa/tnl/t_array_import.c +++ b/src/mesa/tnl/t_array_import.c @@ -1,4 +1,4 @@ -/* $Id: t_array_import.c,v 1.25 2002/06/29 19:48:17 brianp Exp $ */ +/* $Id: t_array_import.c,v 1.26 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -30,7 +30,7 @@ #include "glheader.h" #include "context.h" #include "macros.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "state.h" #include "mtypes.h" diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index 2aa72c7aee..e98f454030 100644 --- a/src/mesa/tnl/t_context.c +++ b/src/mesa/tnl/t_context.c @@ -1,4 +1,4 @@ -/* $Id: t_context.c,v 1.28 2002/08/21 13:05:37 brianp Exp $ */ +/* $Id: t_context.c,v 1.29 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -29,9 +29,9 @@ #include "glheader.h" +#include "imports.h" #include "macros.h" #include "mtypes.h" -#include "mem.h" #include "dlist.h" #include "light.h" #include "vtxfmt.h" diff --git a/src/mesa/tnl/t_eval_api.c b/src/mesa/tnl/t_eval_api.c index 91592c9823..feddf2619a 100644 --- a/src/mesa/tnl/t_eval_api.c +++ b/src/mesa/tnl/t_eval_api.c @@ -1,4 +1,4 @@ -/* $Id: t_eval_api.c,v 1.11 2002/06/23 02:36:27 brianp Exp $ */ +/* $Id: t_eval_api.c,v 1.12 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -33,7 +33,7 @@ #include "colormac.h" #include "context.h" #include "macros.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "mtypes.h" #include "math/m_eval.h" diff --git a/src/mesa/tnl/t_imm_alloc.c b/src/mesa/tnl/t_imm_alloc.c index 76bfd16512..78c46307f1 100644 --- a/src/mesa/tnl/t_imm_alloc.c +++ b/src/mesa/tnl/t_imm_alloc.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_alloc.c,v 1.15 2002/04/19 12:32:14 brianp Exp $ */ +/* $Id: t_imm_alloc.c,v 1.16 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -28,7 +28,7 @@ */ #include "glheader.h" -#include "mem.h" +#include "imports.h" #include "mtypes.h" #include "t_imm_alloc.h" diff --git a/src/mesa/tnl/t_imm_api.c b/src/mesa/tnl/t_imm_api.c index 9f9d4ab5d1..563c863110 100644 --- a/src/mesa/tnl/t_imm_api.c +++ b/src/mesa/tnl/t_imm_api.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_api.c,v 1.33 2002/10/09 19:38:32 brianp Exp $ */ +/* $Id: t_imm_api.c,v 1.34 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -34,7 +34,7 @@ #include "dlist.h" #include "enums.h" #include "light.h" -#include "mem.h" +#include "imports.h" #include "state.h" #include "colormac.h" #include "macros.h" diff --git a/src/mesa/tnl/t_imm_debug.c b/src/mesa/tnl/t_imm_debug.c index 5def0d73a7..14b4f7e4d7 100644 --- a/src/mesa/tnl/t_imm_debug.c +++ b/src/mesa/tnl/t_imm_debug.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_debug.c,v 1.8 2002/06/29 19:48:17 brianp Exp $ */ +/* $Id: t_imm_debug.c,v 1.9 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -26,9 +26,11 @@ #include "mtypes.h" #include "context.h" +#include "imports.h" #include "t_context.h" #include "t_imm_debug.h" + void _tnl_print_vert_flags( const char *name, GLuint flags ) { _mesa_debug(NULL, diff --git a/src/mesa/tnl/t_imm_dlist.c b/src/mesa/tnl/t_imm_dlist.c index 66285b4d19..34da0ea448 100644 --- a/src/mesa/tnl/t_imm_dlist.c +++ b/src/mesa/tnl/t_imm_dlist.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_dlist.c,v 1.42 2002/06/15 02:38:18 brianp Exp $ */ +/* $Id: t_imm_dlist.c,v 1.43 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -33,7 +33,7 @@ #include "dlist.h" #include "debug.h" #include "mmath.h" -#include "mem.h" +#include "imports.h" #include "state.h" #include "t_context.h" diff --git a/src/mesa/tnl/t_imm_elt.c b/src/mesa/tnl/t_imm_elt.c index f0c470de92..f435dc9db0 100644 --- a/src/mesa/tnl/t_imm_elt.c +++ b/src/mesa/tnl/t_imm_elt.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_elt.c,v 1.18 2002/06/15 02:38:18 brianp Exp $ */ +/* $Id: t_imm_elt.c,v 1.19 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -30,7 +30,7 @@ #include "glheader.h" #include "colormac.h" #include "context.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "mtypes.h" diff --git a/src/mesa/tnl/t_imm_eval.c b/src/mesa/tnl/t_imm_eval.c index e7ffdaaeae..2fe88b10d9 100644 --- a/src/mesa/tnl/t_imm_eval.c +++ b/src/mesa/tnl/t_imm_eval.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_eval.c,v 1.25 2002/06/25 02:56:45 brianp Exp $ */ +/* $Id: t_imm_eval.c,v 1.26 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -33,7 +33,7 @@ #include "colormac.h" #include "context.h" #include "macros.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "mtypes.h" #include "math/m_eval.h" diff --git a/src/mesa/tnl/t_imm_exec.c b/src/mesa/tnl/t_imm_exec.c index 137c7ec514..fb149a123d 100644 --- a/src/mesa/tnl/t_imm_exec.c +++ b/src/mesa/tnl/t_imm_exec.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_exec.c,v 1.42 2002/08/08 16:55:17 brianp Exp $ */ +/* $Id: t_imm_exec.c,v 1.43 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -36,7 +36,7 @@ #include "enums.h" #include "dlist.h" #include "macros.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "light.h" #include "state.h" diff --git a/src/mesa/tnl/t_imm_fixup.c b/src/mesa/tnl/t_imm_fixup.c index 007a2130a5..9cf911a932 100644 --- a/src/mesa/tnl/t_imm_fixup.c +++ b/src/mesa/tnl/t_imm_fixup.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_fixup.c,v 1.37 2002/06/29 19:48:17 brianp Exp $ */ +/* $Id: t_imm_fixup.c,v 1.38 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -37,7 +37,7 @@ #include "colormac.h" #include "light.h" #include "macros.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "state.h" #include "mtypes.h" diff --git a/src/mesa/tnl/t_pipeline.c b/src/mesa/tnl/t_pipeline.c index d6121d70b6..cd6cd9d8ea 100644 --- a/src/mesa/tnl/t_pipeline.c +++ b/src/mesa/tnl/t_pipeline.c @@ -1,4 +1,4 @@ -/* $Id: t_pipeline.c,v 1.23 2002/10/16 17:57:52 brianp Exp $ */ +/* $Id: t_pipeline.c,v 1.24 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -29,7 +29,7 @@ #include "glheader.h" #include "context.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "state.h" #include "mtypes.h" diff --git a/src/mesa/tnl/t_vb_fog.c b/src/mesa/tnl/t_vb_fog.c index 01b553a191..9639d5ace7 100644 --- a/src/mesa/tnl/t_vb_fog.c +++ b/src/mesa/tnl/t_vb_fog.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_fog.c,v 1.17 2002/01/22 14:35:17 brianp Exp $ */ +/* $Id: t_vb_fog.c,v 1.18 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -32,7 +32,7 @@ #include "colormac.h" #include "context.h" #include "macros.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "mtypes.h" diff --git a/src/mesa/tnl/t_vb_light.c b/src/mesa/tnl/t_vb_light.c index 99f15d8036..934ddb8d7b 100644 --- a/src/mesa/tnl/t_vb_light.c +++ b/src/mesa/tnl/t_vb_light.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_light.c,v 1.18 2002/02/13 00:53:20 keithw Exp $ */ +/* $Id: t_vb_light.c,v 1.19 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -30,7 +30,7 @@ #include "colormac.h" #include "light.h" #include "macros.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "simple_list.h" #include "mtypes.h" diff --git a/src/mesa/tnl/t_vb_normals.c b/src/mesa/tnl/t_vb_normals.c index ac09792138..31f309a7bc 100644 --- a/src/mesa/tnl/t_vb_normals.c +++ b/src/mesa/tnl/t_vb_normals.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_normals.c,v 1.15 2002/08/08 16:54:43 brianp Exp $ */ +/* $Id: t_vb_normals.c,v 1.16 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -32,7 +32,7 @@ #include "colormac.h" #include "context.h" #include "macros.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "mtypes.h" diff --git a/src/mesa/tnl/t_vb_points.c b/src/mesa/tnl/t_vb_points.c index 21832d47e8..ced7799573 100644 --- a/src/mesa/tnl/t_vb_points.c +++ b/src/mesa/tnl/t_vb_points.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_points.c,v 1.8 2002/01/22 14:35:17 brianp Exp $ */ +/* $Id: t_vb_points.c,v 1.9 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -28,7 +28,7 @@ */ #include "mtypes.h" -#include "mem.h" +#include "imports.h" #include "t_context.h" #include "t_pipeline.h" diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c index 0416766478..86fe025fe1 100644 --- a/src/mesa/tnl/t_vb_program.c +++ b/src/mesa/tnl/t_vb_program.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_program.c,v 1.14 2002/08/08 16:55:56 brianp Exp $ */ +/* $Id: t_vb_program.c,v 1.15 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -85,7 +85,7 @@ #include "hash.h" #include "light.h" #include "macros.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "simple_list.h" #include "mtypes.h" diff --git a/src/mesa/tnl/t_vb_render.c b/src/mesa/tnl/t_vb_render.c index 687f286f98..976d3fc3d7 100644 --- a/src/mesa/tnl/t_vb_render.c +++ b/src/mesa/tnl/t_vb_render.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_render.c,v 1.31 2002/06/29 19:48:17 brianp Exp $ */ +/* $Id: t_vb_render.c,v 1.32 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -44,7 +44,7 @@ #include "context.h" #include "enums.h" #include "macros.h" -#include "mem.h" +#include "imports.h" #include "mtypes.h" #include "mmath.h" diff --git a/src/mesa/tnl/t_vb_texgen.c b/src/mesa/tnl/t_vb_texgen.c index 81751508bf..7014d53244 100644 --- a/src/mesa/tnl/t_vb_texgen.c +++ b/src/mesa/tnl/t_vb_texgen.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_texgen.c,v 1.13 2002/06/29 19:48:17 brianp Exp $ */ +/* $Id: t_vb_texgen.c,v 1.14 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -34,7 +34,7 @@ #include "context.h" #include "macros.h" #include "mmath.h" -#include "mem.h" +#include "imports.h" #include "mtypes.h" #include "math/m_xform.h" diff --git a/src/mesa/tnl/t_vb_texmat.c b/src/mesa/tnl/t_vb_texmat.c index 135278d740..f4552f3ee5 100644 --- a/src/mesa/tnl/t_vb_texmat.c +++ b/src/mesa/tnl/t_vb_texmat.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_texmat.c,v 1.8 2002/01/22 14:35:17 brianp Exp $ */ +/* $Id: t_vb_texmat.c,v 1.9 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -32,7 +32,7 @@ #include "colormac.h" #include "context.h" #include "macros.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "mtypes.h" diff --git a/src/mesa/tnl/t_vb_vertex.c b/src/mesa/tnl/t_vb_vertex.c index e13b8bc0a1..c41d6f59f9 100644 --- a/src/mesa/tnl/t_vb_vertex.c +++ b/src/mesa/tnl/t_vb_vertex.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_vertex.c,v 1.14 2002/04/09 16:56:52 keithw Exp $ */ +/* $Id: t_vb_vertex.c,v 1.15 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -32,7 +32,7 @@ #include "colormac.h" #include "context.h" #include "macros.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "mtypes.h" diff --git a/src/mesa/tnl/t_vtx_exec.c b/src/mesa/tnl/t_vtx_exec.c index f0e316ce3e..7e9db78925 100644 --- a/src/mesa/tnl/t_vtx_exec.c +++ b/src/mesa/tnl/t_vtx_exec.c @@ -34,7 +34,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. #include "api_noop.h" #include "api_arrayelt.h" #include "context.h" -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "mtypes.h" #include "enums.h" diff --git a/src/mesa/tnl/t_vtx_sse.c b/src/mesa/tnl/t_vtx_sse.c index 240d6cf8b9..8998c901bc 100644 --- a/src/mesa/tnl/t_vtx_sse.c +++ b/src/mesa/tnl/t_vtx_sse.c @@ -31,9 +31,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. * Keith Whitwell */ -#include -#include -#include "mem.h" +#include "imports.h" #include "simple_list.h" #include "t_vtx_api.h" diff --git a/src/mesa/tnl/t_vtx_x86.c b/src/mesa/tnl/t_vtx_x86.c index 4e4596a4e6..7a55db72df 100644 --- a/src/mesa/tnl/t_vtx_x86.c +++ b/src/mesa/tnl/t_vtx_x86.c @@ -31,9 +31,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. * Keith Whitwell */ -#include -#include -#include "mem.h" +#include "imports.h" #include "mmath.h" #include "simple_list.h" #include "tnl_vtxfmt.h" -- cgit v1.2.3