cmap_alloc.c revision 550
98N/A* cmap_alloc.c 1.x
98N/A#pragma ident "@(#)cmap_alloc.c 35.3 08/09/30 SMI"
536N/Aint num_visuals;
536N/Astatic void alloc_cmaps_for_screen();
536N/Astatic void alloc_cmap_for_visual();
536N/Astatic void create_colormap();
98N/Astatic char *visual_class_name();
98N/Astatic void parse_cmdline();
static int string_to_depth();
static int string_to_visual();
static void usage();
int argc;
char **argv;
int screen;
exit(0);
if (all_screens)
if (created_colormap)
int screen;
if (verbose)
num_cmaps = 0;
if (vinfo)
exit(0);
for (v = 0; v < num_visuals; v++)
for (v = 0; v < num_visuals; v++)
for (v = 0; v < num_visuals; v++)
int screen;
if (verbose)
if (verbose)
int class;
char *name;
switch (class) {
case StaticGray:
case GrayScale:
case StaticColor:
case PseudoColor:
case TrueColor:
case DirectColor:
return name;
int argc;
char **argv;
if (argc)
usage();
usage();
usage();
usage();
exit(0);
usage();
usage();
usage();
option++;
char *str;
int depth;
return depth;
char *str;
int visual_class;
return visual_class;
usage()
exit(0);