Removed GLCALLBACK stuff - apparently never used anywhere.
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 27 Nov 2004 03:14:57 +0000 (03:14 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 27 Nov 2004 03:14:57 +0000 (03:14 +0000)
Removed GLWINAPI stuff - only used (unnecessarily?) in enums.c

src/mesa/main/enums.c
src/mesa/main/glheader.h

index 20009d66dd331879530753087bd2d217058ef7c3..3f9d91dfe74e73bd9996b513d912030eca8ca57a 100644 (file)
@@ -1,9 +1,8 @@
-
 /*
  * Mesa 3-D graphics library
- * Version:  5.1
+ * Version:  6.3
  *
- * Copyright (C) 1999-2003  Brian Paul   All Rights Reserved.
+ * Copyright (C) 1999-2004  Brian Paul   All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -37,7 +36,10 @@ typedef struct {
    int n;
 } enum_elt;
 
-enum_elt all_enums[] =
+/**
+ * XXX We should auto-generate this with a Python script someday.
+ */
+static enum_elt all_enums[] =
 {
    /* Boolean values */
    { "GL_FALSE", 0 },
@@ -889,7 +891,7 @@ enum_elt all_enums[] =
 
 #define Elements(x) sizeof(x)/sizeof(*x)
 
-typedef int (GLWINAPIV *cfunc)(const void *, const void *);
+typedef int (*cfunc)(const void *, const void *);
 
 static enum_elt **index1 = 0;
 static int sorted = 0;
index 0266b77f1b08957a7584189d96b2380d20e69306..65901c7b8183c1fb1028b208dfa84946a32068e0 100644 (file)
 #  endif /* _STATIC_MESA support */
 #  define GLAPIENTRY __stdcall
 #  define GLAPIENTRYP GLAPIENTRY *
-#  define GLCALLBACK __stdcall
-#  define GLCALLBACKP GLCALLBACK *
-#  if defined(__CYGWIN__)
-#    define GLCALLBACKPCAST *
-#  else
-#    define GLCALLBACKPCAST __stdcall *
-#  endif
-#  define GLWINAPI __stdcall
-#  define GLWINAPIV __cdecl
 #elif !defined(BUILD_FOR_SNAP)
 /* non-Windows compilation */
 #  define GLAPI extern
 #  ifndef GLAPIENTRYP
 #    define GLAPIENTRYP *
 #  endif
-#  define GLCALLBACK
-#  define GLCALLBACKP *
-#  define GLCALLBACKPCAST *
-#  define GLWINAPI
-#  define GLWINAPIV
 #endif /* WIN32 / CYGWIN bracket */