miscutil.c revision b020570b
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
4841c30155Smrg#ifndef NO_WEAK_SYMBOLS
4923a0898aSmrg/* make sure everything initializes themselves at least once */
50b020570bSmrgweak unsigned long serverGeneration = 1;
5141c30155Smrg#endif
5223a0898aSmrg
5323a0898aSmrgweak void
547f7f5e4eSmrgregister_fpe_functions (void)
5523a0898aSmrg{
565a3d36dfSmrg    BuiltinRegisterFpeFunctions();
575a3d36dfSmrg    FontFileRegisterFpeFunctions();
585a3d36dfSmrg#ifdef XFONT_FC
595a3d36dfSmrg    fs_register_fpe_functions();
605a3d36dfSmrg#endif
6123a0898aSmrg}
62