123a0898aSmrg/*
223a0898aSmrg
323a0898aSmrgCopyright 1991, 1994, 1998  The Open Group
423a0898aSmrg
523a0898aSmrgPermission to use, copy, modify, distribute, and sell this software and its
623a0898aSmrgdocumentation for any purpose is hereby granted without fee, provided that
723a0898aSmrgthe above copyright notice appear in all copies and that both that
823a0898aSmrgcopyright notice and this permission notice appear in supporting
923a0898aSmrgdocumentation.
1023a0898aSmrg
1123a0898aSmrgThe above copyright notice and this permission notice shall be included
1223a0898aSmrgin all copies or substantial portions of the Software.
1323a0898aSmrg
1423a0898aSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1523a0898aSmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1623a0898aSmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1723a0898aSmrgIN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
1823a0898aSmrgOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1923a0898aSmrgARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2023a0898aSmrgOTHER DEALINGS IN THE SOFTWARE.
2123a0898aSmrg
2223a0898aSmrgExcept as contained in this notice, the name of The Open Group shall
2323a0898aSmrgnot be used in advertising or otherwise to promote the sale, use or
2423a0898aSmrgother dealings in this Software without prior written authorization
2523a0898aSmrgfrom The Open Group.
2623a0898aSmrg
2723a0898aSmrg*/
2823a0898aSmrg
2923a0898aSmrg#ifdef HAVE_CONFIG_H
3023a0898aSmrg#include <config.h>
3123a0898aSmrg#endif
3223a0898aSmrg#include <X11/Xosdefs.h>
3323a0898aSmrg#include <stdlib.h>
3423a0898aSmrg#include <X11/fonts/fontmisc.h>
3523a0898aSmrg#include "stubs.h"
3623a0898aSmrg
3723a0898aSmrg#define XK_LATIN1
3823a0898aSmrg#include    <X11/keysymdef.h>
3923a0898aSmrg
4023a0898aSmrg
4123a0898aSmrg#ifdef __SUNPRO_C
4223a0898aSmrg#pragma weak serverGeneration
4323a0898aSmrg#pragma weak register_fpe_functions
4423a0898aSmrg#endif
4523a0898aSmrg
465a3d36dfSmrgextern void BuiltinRegisterFpeFunctions(void);
475a3d36dfSmrg
4823a0898aSmrg/* make sure everything initializes themselves at least once */
49b020570bSmrgweak unsigned long serverGeneration = 1;
500145ab54Ssnj
510145ab54Ssnjunsigned long __GetServerGeneration (void);
520145ab54Ssnj
530145ab54Ssnjunsigned long
540145ab54Ssnj__GetServerGeneration (void)
550145ab54Ssnj{
560145ab54Ssnj  OVERRIDE_DATA(serverGeneration);
570145ab54Ssnj  return serverGeneration;
580145ab54Ssnj}
5923a0898aSmrg
6023a0898aSmrgweak void
617f7f5e4eSmrgregister_fpe_functions (void)
6223a0898aSmrg{
630145ab54Ssnj    OVERRIDE_SYMBOL(register_fpe_functions);
645a3d36dfSmrg    BuiltinRegisterFpeFunctions();
655a3d36dfSmrg    FontFileRegisterFpeFunctions();
665a3d36dfSmrg#ifdef XFONT_FC
675a3d36dfSmrg    fs_register_fpe_functions();
685a3d36dfSmrg#endif
6923a0898aSmrg}
70