Committing in .
authorJouk Jansen <joukj@hrem.stm.tudelft.nl>
Mon, 8 Dec 2003 09:03:35 +0000 (09:03 +0000)
committerJouk Jansen <joukj@hrem.stm.tudelft.nl>
Mon, 8 Dec 2003 09:03:35 +0000 (09:03 +0000)
 OpenVMS compile issues

 Modified Files:
  Mesa-newtree/progs/tests/cva.c
  Mesa-newtree/progs/tests/dinoshade.c
  Mesa-newtree/progs/tests/multipal.c
  Mesa-newtree/src/mesa/main/descrip.mms
  Mesa-newtree/src/mesa/tnl/descrip.mms
  Mesa-newtree/src/mesa/tnl/t_vtx_api.c
 ----------------------------------------------------------------------

progs/tests/cva.c
progs/tests/dinoshade.c
progs/tests/multipal.c
src/mesa/main/descrip.mms
src/mesa/tnl/descrip.mms
src/mesa/tnl/t_vtx_api.c

index b596a5a4d3ec73bff3462164c9387ff46592be89..3f7960f53b6d1daee610178eda8d0e45f01388fe 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: cva.c,v 1.6 2003/11/23 10:27:10 keithw Exp $ */
+/* $Id: cva.c,v 1.7 2003/12/08 09:03:35 joukj Exp $ */
 
 /*
  * Trivial CVA test, good for testing driver fastpaths (especially
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
-#include <malloc.h>    /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
+#ifdef __VMS
+# include <stddef.h>   /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
+#else
+# include <malloc.h>   /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
+#endif
 #ifdef _WIN32
 #include <windows.h>
 #endif
index 1e4d4abfda8deec7a1f495f47f0751b1e9f3db37..d0a79c1923fd5ed87c09912241a1c7c732d69ceb 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>       /* for cos(), sin(), and sqrt() */
-#include <malloc.h>    /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
+#ifdef __VMS
+# include <stddef.h>   /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
+#else
+# include <malloc.h>   /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
+#endif
 #ifdef _WIN32
 #include <windows.h>
 #endif
index 9ac5bdf8df77e52c48faf734534ebd14401b5840..c824b38703ac160540478fe68b7ade0d645a850b 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: multipal.c,v 1.5 2003/11/23 10:27:10 keithw Exp $ */
+/* $Id: multipal.c,v 1.6 2003/12/08 09:03:36 joukj Exp $ */
 
 /*
  * Test multitexture and paletted textures.
@@ -9,7 +9,11 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <malloc.h>    /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
+#ifdef __VMS
+# include <stddef.h>   /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
+#else
+# include <malloc.h>   /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
+#endif
 #ifdef _WIN32
 #include <windows.h>
 #endif
index 67d4e2de817fab8807fe9fc290ecc1384b6110bc..e6d5d22d8c8bfcbf7d97309842941b559747cc24 100644 (file)
@@ -17,6 +17,7 @@ LIBDIR = [---.lib]
 CFLAGS = /include=($(INCDIR),[])/define=(PTHREADS=1)/name=(as_is,short)
 
 SOURCES =accum.c \
+       api_arrayelt.c \
        api_loopback.c \
        api_noop.c \
        api_validate.c \
@@ -75,6 +76,7 @@ SOURCES =accum.c \
        vtxfmt.c
 
 OBJECTS=accum.obj,\
+api_arrayelt.obj,\
 api_loopback.obj,\
 api_noop.obj,\
 api_validate.obj,\
@@ -147,6 +149,7 @@ clean :
        delete *.obj;*
 
 accum.obj : accum.c
+api_arrayelt.obj : api_arrayelt.c
 api_loopback.obj : api_loopback.c
 api_noop.obj : api_noop.c
 api_validate.obj : api_validate.c
index 8826d049a422768ffc68dea0c50e844963abef8e..c00fc5ac54fb831daa3ffc8bcf06dd44c3e4bf93 100644 (file)
@@ -17,18 +17,17 @@ INCDIR = [---.include],[-.main],[-.glapi]
 LIBDIR = [---.lib]
 CFLAGS = /include=($(INCDIR),[])/define=(PTHREADS=1)/name=(as_is,short)
 
-SOURCES = t_array_api.c t_array_import.c t_context.c t_eval_api.c \
-       t_imm_alloc.c t_imm_api.c t_imm_debug.c t_imm_dlist.c t_imm_elt.c \
-       t_imm_eval.c t_imm_exec.c t_imm_fixup.c t_pipeline.c t_vb_fog.c \
+SOURCES = t_array_api.c t_array_import.c t_context.c \
+       t_pipeline.c t_vb_fog.c t_save_api.c t_vtx_api.c \
        t_vb_light.c t_vb_normals.c t_vb_points.c t_vb_program.c \
-       t_vb_render.c t_vb_texgen.c t_vb_texmat.c t_vb_vertex.c
+       t_vb_render.c t_vb_texgen.c t_vb_texmat.c t_vb_vertex.c \
+       t_vtx_eval.c t_vtx_exec.c t_save_playback.c t_save_loopback.c
 
-OBJECTS = t_array_api.obj,t_array_import.obj,t_context.obj,t_eval_api.obj,\
-       t_imm_alloc.obj,t_imm_api.obj,t_imm_debug.obj,t_imm_dlist.obj,\
-       t_imm_elt.obj,t_imm_eval.obj,t_imm_exec.obj,t_imm_fixup.obj,\
+OBJECTS = t_array_api.obj,t_array_import.obj,t_context.obj,\
        t_pipeline.obj,t_vb_fog.obj,t_vb_light.obj,t_vb_normals.obj,\
        t_vb_points.obj,t_vb_program.obj,t_vb_render.obj,t_vb_texgen.obj,\
-       t_vb_texmat.obj,t_vb_vertex.obj
+       t_vb_texmat.obj,t_vb_vertex.obj,t_save_api.obj,t_vtx_api.obj,\
+       t_vtx_eval.obj,t_vtx_exec.obj,t_save_playback.obj,t_save_loopback.obj
 
 ##### RULES #####
 
@@ -46,15 +45,6 @@ clean :
 t_array_api.obj : t_array_api.c
 t_array_import.obj : t_array_import.c
 t_context.obj : t_context.c
-t_eval_api.obj : t_eval_api.c
-t_imm_alloc.obj : t_imm_alloc.c
-t_imm_api.obj : t_imm_api.c
-t_imm_debug.obj : t_imm_debug.c
-t_imm_dlist.obj : t_imm_dlist.c
-t_imm_elt.obj : t_imm_elt.c
-t_imm_eval.obj : t_imm_eval.c
-t_imm_exec.obj : t_imm_exec.c
-t_imm_fixup.obj : t_imm_fixup.c
 t_pipeline.obj : t_pipeline.c
 t_vb_fog.obj : t_vb_fog.c
 t_vb_light.obj : t_vb_light.c
@@ -65,3 +55,9 @@ t_vb_render.obj : t_vb_render.c
 t_vb_texgen.obj : t_vb_texgen.c
 t_vb_texmat.obj : t_vb_texmat.c
 t_vb_vertex.obj : t_vb_vertex.c
+t_save_api.obj : t_save_api.c
+t_vtx_api.obj : t_vtx_api.c
+t_vtx_eval.obj : t_vtx_eval.c
+t_vtx_exec.obj : t_vtx_exec.c
+t_save_playback.obj : t_save_playback.c
+t_save_loopback.obj : t_save_loopback.c
index 8f105bef89e1f09e69adeff338a886fbd93638db..2fd5ccab1f32a1ea2cc475ea3153e19190160f15 100644 (file)
@@ -431,7 +431,7 @@ ATTRS( 15 )
 
 static void init_attrfv( TNLcontext *tnl )
 {
-#ifdef WIN32
+#if defined( WIN32 ) || defined( __VMS )
    if (0) fprintf(stderr, "%s %d\n", "init_attrfv", tnl->vtx.vertex_size);
 #else
    if (0) fprintf(stderr, "%s %d\n", __FUNCTION__, tnl->vtx.vertex_size);