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