#endif
#include <X11/Xos.h>
#include <stdio.h>
+#include <stdlib.h>
#ifdef HAVE_GLX
# include <GL/gl.h>
}
+static int print_event_mask (char *buf, int lastcol, int indent, long mask);
+
+
+
#ifdef HAVE_GLX /* Added by jwz, 11-Nov-99 */
static void
if (ov->transparency == 1)
printf ("transparent pixel %lu\n", (unsigned long) ov->value);
else if (ov->transparency == 2)
- printf ("transparent mask 0x%x\n", (unsigned long) ov->value);
+ printf ("transparent mask 0x%x\n", (unsigned) ov->value);
else
printf ("opaque\n");
}
#endif /* HAVE_OVERLAY */
-void
+static void
print_extension_info (dpy)
Display *dpy;
{
}
}
-void
+static void
print_display_info (dpy)
Display *dpy;
{
req_size = XExtendedMaxRequestSize (dpy);
if (!req_size) req_size = XMaxRequestSize (dpy);
printf ("maximum request size: %ld bytes\n", req_size * 4);
- printf ("motion buffer size: %d\n", XDisplayMotionBufferSize (dpy));
+ printf ("motion buffer size: %d\n", (int) XDisplayMotionBufferSize(dpy));
switch (BitmapBitOrder (dpy)) {
case LSBFirst: cp = "LSBFirst"; break;
printf ("number of screens: %d\n", ScreenCount (dpy));
}
-void
+static void
print_visual_info (vip)
XVisualInfo *vip;
{
vip->bits_per_rgb);
}
-void
+static void
print_screen_info (dpy, scr)
Display *dpy;
int scr;
printf (" default colormap: 0x%lx\n", DefaultColormap (dpy, scr));
printf (" default number of colormap cells: %d\n",
DisplayCells (dpy, scr));
- printf (" preallocated pixels: black %d, white %d\n",
+ printf (" preallocated pixels: black %ld, white %ld\n",
BlackPixel (dpy, scr), WhitePixel (dpy, scr));
printf (" options: backing-store %s, save-unders %s\n",
(DoesBackingStore (s) == NotUseful) ? no :
{ "OwnerGrabButtonMask ", OwnerGrabButtonMask },
{ NULL, 0 }};
-int print_event_mask (buf, lastcol, indent, mask)
- char *buf; /* string to write into */
- int lastcol; /* strlen(buf)+1 */
- int indent; /* amount by which to indent */
- long mask; /* event mask */
+static int print_event_mask (char *buf, int lastcol, int indent, long mask)
{
struct _event_table *etp;
int len;
return (bitsfound);
}
-void
+static void
print_standard_extension_info(dpy, extname, majorrev, minorrev)
Display *dpy;
char *extname;
printf("\n");
}
-int
+static int
print_multibuf_info(dpy, extname)
Display *dpy;
char *extname;
}
#endif /* HAVE_XTEST */
-int
+static int
print_sync_info(dpy, extname)
Display *dpy;
char *extname;
for (i = 0; i < ncounters; i++)
{
printf(" %s id: 0x%08x resolution_lo: %d resolution_hi: %d\n",
- syscounters[i].name, syscounters[i].counter,
- XSyncValueLow32(syscounters[i].resolution),
- XSyncValueHigh32(syscounters[i].resolution));
+ syscounters[i].name, (int) syscounters[i].counter,
+ (int) XSyncValueLow32(syscounters[i].resolution),
+ (int) XSyncValueHigh32(syscounters[i].resolution));
}
XSyncFreeSystemCounterList(syscounters);
return 1;
}
-int
+static int
print_shape_info(dpy, extname)
Display *dpy;
char *extname;
}
#ifdef MITSHM
-int
+static int
print_mitshm_info(dpy, extname)
Display *dpy;
char *extname;
}
#endif /* MITSHM */
-int
+static int
print_dbe_info(dpy, extname)
Display *dpy;
char *extname;
}
#ifdef HAVE_XRECORD
-int
+static int
print_record_info(dpy, extname)
Display *dpy;
char *extname;
int num_known_extensions = sizeof known_extensions / sizeof known_extensions[0];
-void
+static void
print_known_extensions(f)
FILE *f;
{
}
}
-void
+static void
mark_extension_for_printing(extname)
char *extname;
{
}
}
-void
+static void
print_marked_extensions(dpy)
Display *dpy;
{
Display *dpy; /* X connection */
char *displayname = NULL; /* server to contact */
int i; /* temp variable: iterator */
- Bool multibuf = False;
ProgramName = argv[0];