#ifndef lint static char sccsid[] = "@(#)pr_makefun.c 9.2 88/01/19 SMI"; #endif /* * Copyright 1986 by Sun Microsystems, Inc. */ /* * Pixrect make operation vector. * * Customers developing their own pixrect drivers can take over one of the * unused slots in pr_makefun by supplying their own make routine * instead of zero. * * Other customers that will be selling their product only on one display * could zero out currently used slots to prevent all the code for the * unused driver from being loaded. This has the advantage of reducing * disk space usage by reducing the object size. However, working set size * will presumably not be much affected due to virtual memory not touching * unused code. * * For both adding and deleting drivers, loading a changed version of this * file before libpixrect will have your version used instead of the library's. */ #ifdef REF #include #include #endif #include #ifdef VXSREF #include #endif #include Pixrect *(*pr_makefun[FBTYPE_LASTPLUSONE])() = { #ifdef REF #ifdef SUNREF #ifdef sparc 0 /* bw1_make */ , #else bw1_make, #endif sparc 0 /* cg1_make */ , bw2_make, cg2_make, 0 /* gp1_make */ , 0 /* bw3_make */ , 0 /* cg3_make */ , 0 /* bw4_make */ , cg4_make #else #ifdef VXSREF 0 /* bw1_make */ , 0 /* cg1_make */ , 0 /* bw2_make */ , 0 /* cg2_make */ , 0 /* gp1_make */ , 0 /* bw3_make */ , 0 /* cg3_make */ , 0 /* bw4_make */ , 0 /* cg4_make */ , vxs_make /* VAXstation make */ #endif #endif #else #ifdef sparc 0 /* bw1_make */ , #else bw1_make, #endif sparc 0 /* cg1_make */ , bw2_make, cg2_make, gp1_make, 0 /* bw3_make */ , 0 /* cg3_make */ , 0 /* bw4_make */ , cg4_make #endif };