miscutil.c revision 5a3d36df
1/* $Xorg: miscutil.c,v 1.4 2001/02/09 02:04:04 xorgcvs Exp $ */ 2 3/* 4 5Copyright 1991, 1994, 1998 The Open Group 6 7Permission to use, copy, modify, distribute, and sell this software and its 8documentation for any purpose is hereby granted without fee, provided that 9the above copyright notice appear in all copies and that both that 10copyright notice and this permission notice appear in supporting 11documentation. 12 13The above copyright notice and this permission notice shall be included 14in all copies or substantial portions of the Software. 15 16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 20OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22OTHER DEALINGS IN THE SOFTWARE. 23 24Except as contained in this notice, the name of The Open Group shall 25not be used in advertising or otherwise to promote the sale, use or 26other dealings in this Software without prior written authorization 27from The Open Group. 28 29*/ 30/* $XFree86: xc/lib/font/util/miscutil.c,v 1.7 2001/07/25 15:04:57 dawes Exp $ */ 31 32#ifdef HAVE_CONFIG_H 33#include <config.h> 34#endif 35#include <X11/Xosdefs.h> 36#include <stdlib.h> 37#include <X11/fonts/fontmisc.h> 38#include "stubs.h" 39 40#define XK_LATIN1 41#include <X11/keysymdef.h> 42 43 44#ifdef __SUNPRO_C 45#pragma weak serverGeneration 46#pragma weak register_fpe_functions 47#endif 48 49extern void BuiltinRegisterFpeFunctions(void); 50 51/* make sure everything initializes themselves at least once */ 52weak long serverGeneration = 1; 53 54weak void 55register_fpe_functions (void) 56{ 57 BuiltinRegisterFpeFunctions(); 58 FontFileRegisterFpeFunctions(); 59#ifdef XFONT_FC 60 fs_register_fpe_functions(); 61#endif 62} 63