the menuing functionality implemented. This file is used only by
the X Window System version of GLUT. */
+#ifdef __VMS
+#include <GL/vms_x_fix.h>
+#endif
+
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
{
char *xvendor, *glvendor, *renderer;
int isSunCreator = 0; /* Until proven that it is. */
- int savedDisplayMode;
- char *savedDisplayString;
+ int savedDisplayMode = 0;
+ char *savedDisplayString = 0;
GLUTwindow *window;
#define VENDOR_SUN "Sun Microsystems"
Bool presumablyMesa;
int layer, nVisuals, i, dummy;
unsigned long *placeHolders = NULL;
- int numPlaceHolders;
+ int numPlaceHolders = 0;
Bool allocateHigh;
allocateHigh = ifSunCreator();
__glutGetMenuItem = getMenuItem;
}
-int APIENTRY
+int GLUTAPIENTRY
glutCreateMenu(GLUTselectCB selectFunc)
{
XSetWindowAttributes wa;
}
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutGetMenu(void)
{
if (__glutCurrentMenu) {
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutSetMenu(int menuid)
{
GLUTmenu *menu;
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutAddMenuEntry(const char *label, int value)
{
XSetWindowAttributes wa;
__glutCurrentMenu->list = entry;
}
-void APIENTRY
+void GLUTAPIENTRY
glutAddSubMenu(const char *label, int menu)
{
XSetWindowAttributes wa;
__glutCurrentMenu->list = submenu;
}
-void APIENTRY
+void GLUTAPIENTRY
glutAttachMenu(int button)
{
if (__glutMappedMenu) {