From b448f0ac2b00a865f548310b36d3ab30a365423d Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 16 2020 09:27:51 +0000 Subject: Apply patch opensp-multilib.patch patch_name: opensp-multilib.patch present_in_specfile: true --- diff --git a/config.h.in b/config.h.in index 12a461a..7b54af2 100644 --- a/config.h.in +++ b/config.h.in @@ -1,5 +1,7 @@ /* config.h.in. Generated from configure.in by autoheader. */ +#include + /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP systems. This function is required for `alloca.c' support on those systems. */ @@ -333,22 +335,6 @@ /* The size of a `bool', as computed by sizeof. */ #undef SIZEOF_BOOL -/* The size of a `size_t', as computed by sizeof. */ -#undef SIZEOF_SIZE_T - -/* The size of a `unsigned int', as computed by sizeof. */ -#undef SIZEOF_UNSIGNED_INT - -/* The size of a `unsigned short', as computed by sizeof. */ -#undef SIZEOF_UNSIGNED_SHORT - -/* The size of a `wchar_t', as computed by sizeof. */ -#undef SIZEOF_WCHAR_T - -/* Define as the maximum value of type 'size_t', if the system doesn't define - it. */ -#undef SIZE_MAX - /* define this if h_errno should be declared extern int */ #undef SP_DECLARE_H_ERRNO @@ -503,7 +489,7 @@ #define SP_SIZEOF_BOOL_1 #endif -#if (SIZEOF_WCHAR_T == SIZEOF_UNSIGNED_SHORT) +#if (WCHAR_MAX == SHRT_MAX) #define SP_WCHAR_T_USHORT #endif diff --git a/config.h.in.multilib b/config.h.in.multilib new file mode 100644 index 0000000..12a461a --- /dev/null +++ b/config.h.in.multilib @@ -0,0 +1,627 @@ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP + systems. This function is required for `alloca.c' support on those systems. + */ +#undef CRAY_STACKSEG_END + +/* Define to 1 if using `alloca.c'. */ +#undef C_ALLOCA + +/* define this if memmove should be declared extern "C" */ +#undef DECLARE_MEMMOVE + +/* define this if strerror should be declared extern "C" */ +#undef DECLARE_STRERROR + +/* if this is not set it defaults to 200 */ +#undef DEFAULT_ERROR_LIMIT + +/* Define to 1 if translation of program messages to the user's native + language is requested. */ +#undef ENABLE_NLS + +/* Define to 1 if you have `alloca', as a function or macro. */ +#undef HAVE_ALLOCA + +/* Define to 1 if you have and it should be used (not on Ultrix). + */ +#undef HAVE_ALLOCA_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_ARGZ_H + +/* Define to 1 if you have the `asprintf' function. */ +#undef HAVE_ASPRINTF + +/* define if bool is a built-in type */ +#undef HAVE_BOOL + +/* Define to 1 if you have the header file. */ +#undef HAVE_CASSERT + +/* Define if you have the gettext() function */ +#undef HAVE_CATGETS + +/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the + CoreFoundation framework. */ +#undef HAVE_CFLOCALECOPYCURRENT + +/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in + the CoreFoundation framework. */ +#undef HAVE_CFPREFERENCESCOPYAPPVALUE + +/* Define if the GNU dcgettext() function is already present or preinstalled. + */ +#undef HAVE_DCGETTEXT + +/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you + don't. */ +#undef HAVE_DECL_FEOF_UNLOCKED + +/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if + you don't. */ +#undef HAVE_DECL_FGETS_UNLOCKED + +/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you + don't. */ +#undef HAVE_DECL_GETC_UNLOCKED + +/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you + don't. */ +#undef HAVE_DECL__SNPRINTF + +/* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you + don't. */ +#undef HAVE_DECL__SNWPRINTF + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* define if the compiler supports dynamic_cast<> */ +#undef HAVE_DYNAMIC_CAST + +/* Define to 1 if you have the `fwprintf' function. */ +#undef HAVE_FWPRINTF + +/* Define to 1 if you have the `getcwd' function. */ +#undef HAVE_GETCWD + +/* Define to 1 if you have the `getegid' function. */ +#undef HAVE_GETEGID + +/* Define to 1 if you have the `geteuid' function. */ +#undef HAVE_GETEUID + +/* Define to 1 if you have the `getgid' function. */ +#undef HAVE_GETGID + +/* Define to 1 if you have the `getpagesize' function. */ +#undef HAVE_GETPAGESIZE + +/* Define if the GNU gettext() function is already present or preinstalled. */ +#undef HAVE_GETTEXT + +/* Define to 1 if you have the `getuid' function. */ +#undef HAVE_GETUID + +/* Define if you have the iconv() function. */ +#undef HAVE_ICONV + +/* define if the compiler supports explicit instantiations */ +#undef HAVE_INSTANTIATIONS + +/* Define if you have the 'intmax_t' type in or . */ +#undef HAVE_INTMAX_T + +/* Define if exists and doesn't clash with . */ +#undef HAVE_INTTYPES_H + +/* Define if exists, doesn't clash with , and + declares uintmax_t. */ +#undef HAVE_INTTYPES_H_WITH_UINTMAX + +/* Define to 1 if you have the header file. */ +#undef HAVE_IO_H + +/* Define if you have and nl_langinfo(CODESET). */ +#undef HAVE_LANGINFO_CODESET + +/* Define if your file defines LC_MESSAGES. */ +#undef HAVE_LC_MESSAGES + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#undef HAVE_LIBPTHREAD + +/* Define to 1 if you have the `threads' library (-lthreads). */ +#undef HAVE_LIBTHREADS + +/* Define to 1 if you have the header file. */ +#undef HAVE_LIMITS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_LOCALE_H + +/* Define if you have the 'long double' type. */ +#undef HAVE_LONG_DOUBLE + +/* Define if you have the 'long long' type. */ +#undef HAVE_LONG_LONG + +/* Define to 1 if you have the header file. */ +#undef HAVE_MALLOC_H + +/* Define to 1 if you have the `memcmp' function. */ +#undef HAVE_MEMCMP + +/* Define to 1 if you have the `memmove' function. */ +#undef HAVE_MEMMOVE + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the `mempcpy' function. */ +#undef HAVE_MEMPCPY + +/* Define to 1 if you have a working `mmap' system call. */ +#undef HAVE_MMAP + +/* Define to 1 if you have the `munmap' function. */ +#undef HAVE_MUNMAP + +/* define if the compiler supports the mutable keyword */ +#undef HAVE_MUTABLE + +/* define if the compiler implements namespaces */ +#undef HAVE_NAMESPACES + +/* define if the C++ compiler supports the std namespace */ +#undef HAVE_NAMESPACE_STD + +/* Define to 1 if you have the header file. */ +#undef HAVE_NEW + +/* define if the compiler accepts the new for scoping rules */ +#undef HAVE_NEW_FOR_SCOPING + +/* Define to 1 if you have the header file. */ +#undef HAVE_NL_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_OSFCN_H + +/* define if the compiler supports placement operator delete */ +#undef HAVE_PLACEMENT_OPERATOR_DELETE + +/* define if placement operator new is declared */ +#undef HAVE_PLACEMENT_OPERATOR_NEW + +/* Define if your printf() function supports format strings with positions. */ +#undef HAVE_POSIX_PRINTF + +/* Define to 1 if you have the `putenv' function. */ +#undef HAVE_PUTENV + +/* Define to 1 if you have the `setenv' function. */ +#undef HAVE_SETENV + +/* Define to 1 if you have the `setlocale' function. */ +#undef HAVE_SETLOCALE + +/* Define to 1 if you have the `snprintf' function. */ +#undef HAVE_SNPRINTF + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDDEF_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define if exists, doesn't clash with , and declares + uintmax_t. */ +#undef HAVE_STDINT_H_WITH_UINTMAX + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the `stpcpy' function. */ +#undef HAVE_STPCPY + +/* Define to 1 if you have the `strcasecmp' function. */ +#undef HAVE_STRCASECMP + +/* Define to 1 if you have the `strdup' function. */ +#undef HAVE_STRDUP + +/* Define to 1 if you have the `strerror' function. */ +#undef HAVE_STRERROR + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the `strtoul' function. */ +#undef HAVE_STRTOUL + +/* Define to 1 if `st_blksize' is member of `struct stat'. */ +#undef HAVE_STRUCT_STAT_ST_BLKSIZE + +/* Define if your `struct stat' has `st_blksize'. Deprecated, use + `HAVE_STRUCT_STAT_ST_BLKSIZE' instead. */ +#undef HAVE_ST_BLKSIZE + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_PARAM_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the `tsearch' function. */ +#undef HAVE_TSEARCH + +/* define if the compiler recognizes typename */ +#undef HAVE_TYPENAME + +/* Define if you have the 'uintmax_t' type in or . */ +#undef HAVE_UINTMAX_T + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define if you have the 'unsigned long long' type. */ +#undef HAVE_UNSIGNED_LONG_LONG + +/* Define if you have the 'wchar_t' type. */ +#undef HAVE_WCHAR_T + +/* Define to 1 if you have the `wcslen' function. */ +#undef HAVE_WCSLEN + +/* Define if you have the 'wint_t' type. */ +#undef HAVE_WINT_T + +/* Define to 1 if you have the `__argz_count' function. */ +#undef HAVE___ARGZ_COUNT + +/* Define to 1 if you have the `__argz_next' function. */ +#undef HAVE___ARGZ_NEXT + +/* Define to 1 if you have the `__argz_stringify' function. */ +#undef HAVE___ARGZ_STRINGIFY + +/* Define to 1 if you have the `__fsetlocking' function. */ +#undef HAVE___FSETLOCKING + +/* Define as const if the declaration of iconv() needs const. */ +#undef ICONV_CONST + +/* Define if integer division by zero raises signal SIGFPE. */ +#undef INTDIV0_RAISES_SIGFPE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* set this to the path separator */ +#undef PATH_SEPARATOR + +/* Define if exists and defines unusable PRI* macros. */ +#undef PRI_MACROS_BROKEN + +/* set this to the default catalog files list */ +#undef SGML_CATALOG_FILES_DEFAULT + +/* set this to the default SGML search path */ +#undef SGML_SEARCH_PATH_DEFAULT + +/* The size of a `bool', as computed by sizeof. */ +#undef SIZEOF_BOOL + +/* The size of a `size_t', as computed by sizeof. */ +#undef SIZEOF_SIZE_T + +/* The size of a `unsigned int', as computed by sizeof. */ +#undef SIZEOF_UNSIGNED_INT + +/* The size of a `unsigned short', as computed by sizeof. */ +#undef SIZEOF_UNSIGNED_SHORT + +/* The size of a `wchar_t', as computed by sizeof. */ +#undef SIZEOF_WCHAR_T + +/* Define as the maximum value of type 'size_t', if the system doesn't define + it. */ +#undef SIZE_MAX + +/* define this if h_errno should be declared extern int */ +#undef SP_DECLARE_H_ERRNO + +/* define this to include template definitions in the headers */ +#undef SP_DEFINE_TEMPLATES + +/* define this to build a dll */ +#undef SP_DLLEXPORT + +/* define this tobuild a dll */ +#undef SP_DLLIMPORT + +/* set this to enable DTDDECL support */ +#undef SP_DTDDECL + +/* define this if the new handler takes size_t and returns int */ +#undef SP_FANCY_NEW_HANDLER + +/* define this if _setmode is supported */ +#undef SP_HAVE_SETMODE + +/* define this if sockets are available */ +#undef SP_HAVE_SOCKET + +/* set this to the first line term character */ +#undef SP_LINE_TERM1 + +/* set this to the second line term character */ +#undef SP_LINE_TERM2 + +/* location of message catalogs */ +#undef SP_LOCALE_DIR + +/* define this to compile explicit template instantiations */ +#undef SP_MANUAL_INST + +/* message domain */ +#undef SP_MESSAGE_DOMAIN + +/* define this to build a multi-byte version */ +#undef SP_MULTI_BYTE + +/* define this to use win32 mutex mechanisms */ +#undef SP_MUTEX_WIN32 + +/* define this if your system misses new.h */ +#undef SP_NEW_H_MISSING + +/* define this to not compile message texts in */ +#undef SP_NO_MESSAGE_TEXT + +/* Package name */ +#undef SP_PACKAGE + +/* define this to enable precompiled header support */ +#undef SP_PCH + +/* define this if set_new_handler() has to be declared extern "C" */ +#undef SP_SET_NEW_HANDLER_EXTERN_C + +/* define this to build a dll */ +#undef SP_USE_DLL + +/* define this if you can't or don't want to use the builtin assert() macro */ +#undef SP_USE_OWN_ASSERT + +/* Package version */ +#undef SP_VERSION + +/* define this if the OS provides wide character interfaces */ +#undef SP_WIDE_SYSTEM + +/* set this to enable XML Formatted Messages */ +#undef SP_XML + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ +#undef STACK_DIRECTION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define to 1 if your processor stores words with the most significant byte + first (like Motorola and SPARC, unlike Intel and VAX). */ +#undef WORDS_BIGENDIAN + +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +#undef inline +#endif + +/* Define to `long' if does not define. */ +#undef off_t + +/* Define as the type of the result of subtracting two pointers, if the system + doesn't define it. */ +#undef ptrdiff_t + +/* Define to `int' if does not define. */ +#undef sig_atomic_t + +/* Define to empty if the C compiler doesn't support this keyword. */ +#undef signed + +/* Define to `unsigned' if does not define. */ +#undef size_t + +/* Define to unsigned long or unsigned long long if and + don't define. */ +#undef uintmax_t + + +#ifdef HAVE_UNISTD_H +#define SP_INCLUDE_UNISTD_H +#endif + +#ifdef HAVE_IO_H +#undef SP_INCLUDE_IO_H +#endif + +#ifdef HAVE_OSFCN_H +#undef SP_INCLUDE_OSFCN_H +#endif + +#ifndef SP_MSDOS_FILENAMES +#define SP_POSIX_FILENAMES +#endif + +#ifdef HAVE_ST_BLKSIZE +#define SP_STAT_BLKSIZE +#endif + +#ifdef HAVE_BOOL +#ifndef SP_HAVE_BOOL +#define SP_HAVE_BOOL +#endif +#endif /* HAVE_BOOL */ + +#ifdef HAVE_TYPENAME +#define SP_HAVE_TYPENAME +#endif /* HAVE_TYPENAME */ + +#if (SIZEOF_BOOL == 1) +#define SP_SIZEOF_BOOL_1 +#endif + +#if (SIZEOF_WCHAR_T == SIZEOF_UNSIGNED_SHORT) +#define SP_WCHAR_T_USHORT +#endif + +#ifdef SP_HAVE_SETMODE +#ifndef SP_LINE_TERM1 +#define SP_LINE_TERM1 '\r' +#define SP_LINE_TERM2 '\n' +#endif +#endif /* not SP_HAVE_SETMODE */ + +#ifndef SP_LINE_TERM1 +#define SP_LINE_TERM1 '\n' +#endif + +#ifndef HAVE_NEW_FOR_SCOPING +// This simulates the new ANSI "for" scope rules +#define for if (0); else for +#endif /* HAVE_NEW_FOR_SCOPING */ + +#ifndef SP_HAVE_TYPENAME +#define typename /* as nothing */ +#endif + +#ifndef SP_DLLEXPORT +#define SP_DLLEXPORT /* as nothing */ +#endif + +#ifndef SP_DLLIMPORT +#define SP_DLLIMPORT /* as nothing */ +#endif + +#ifdef SP_USE_DLL + +#ifdef BUILD_LIBSP +#define SP_API SP_DLLEXPORT +#else +#define SP_API SP_DLLIMPORT +#endif + +#else /* not SP_USE_DLL */ + +#define SP_API /* as nothing */ + +#endif /* not SP_USE_DLL */ + +#ifdef SP_WIDE_SYSTEM +#ifndef SP_MULTI_BYTE +#define SP_MULTI_BYTE +#endif +#endif + +#ifdef HAVE_NAMESPACES +#define SP_NAMESPACE OpenSP +#endif /* HAVE_NAMESPACES */ + +#ifdef SP_NAMESPACE +#define SP_NAMESPACE_SCOPE SP_NAMESPACE:: +#else +#define SP_NAMESPACE_SCOPE +#endif /* SP_NAMESPACE */ + +#ifdef HAVE_DYNAMIC_CAST +#define SP_HAVE_RTTI +#endif /* HAVE_DYNAMIC_CAST */ + +#ifdef HAVE_PATHNAME_STYLE_DOS +#define SP_MSDOS_FILENAMES +#else +#define SP_POSIX_FILENAMES +#endif /* HAVE_PATHNAME_STYLE_DOS */ + +#ifdef HAVE_INSTANTIATIONS +#ifndef SP_ANSI_CLASS_INST +#define SP_ANSI_CLASS_INST +#endif +#endif /* HAVE_INSTANTIATIONS */ + +#ifdef HAVE_SETLOCALE +#ifndef SP_HAVE_LOCALE +#define SP_HAVE_LOCALE +#endif +#endif /* HAVE_SETLOCALE */ + +#if defined(HAVE_GETTEXT) && defined(ENABLE_NLS) +#ifndef SP_HAVE_GETTEXT +#define SP_HAVE_GETTEXT +#endif +#endif /* HAVE_GETTEXT && ENABLE_NLS */ + +#ifdef WORDS_BIGENDIAN +#define SP_BIG_ENDIAN +#endif /* WORDS_BIGENDIAN */ + +#ifdef HAVE_LIBTHREADS +#define SP_MUTEX_MACH +#endif /* HAVE_LIBTHREADS */ + +#ifdef HAVE_LIBPTHREAD +#define SP_MUTEX_PTHREADS +#endif /* HAVE_LIBPTHREAD */ + +#ifdef HAVE_PLACEMENT_OPERATOR_DELETE +#define SP_HAVE_PLACEMENT_OPERATOR_DELETE +#endif /* HAVE_PLACEMENT_OPERATOR_DELETE */ + +#ifndef HAVE_PLACEMENT_OPERATOR_NEW +#define SP_DECLARE_PLACEMENT_OPERATOR_NEW +#endif /* HAVE_PLACEMENT_OPERATOR_NEW */ + +#ifndef HAVE_NAMESPACE_STD +#define SP_NO_STD_NAMESPACE +#endif /* HAVE_NAMESPACE_STD */ + +#if defined(HAVE_NEW) && defined(HAVE_CASSERT) +#define SP_ANSI_LIB 1 +#endif /* HAVE_NEW && HAVE_CASSERT */ + +#ifndef HAVE_MUTABLE +#define mutable +#endif /* HAVE_MUTABLE */ + diff --git a/configure.in b/configure.in index 22b5fde..fbfb311 100644 --- a/configure.in +++ b/configure.in @@ -90,7 +90,7 @@ AH_BOTTOM([ #define SP_SIZEOF_BOOL_1 #endif -#if (SIZEOF_WCHAR_T == SIZEOF_UNSIGNED_SHORT) +#if (WCHAR_MAX == SHRT_MAX) #define SP_WCHAR_T_USHORT #endif diff --git a/configure.in.multilib b/configure.in.multilib new file mode 100644 index 0000000..22b5fde --- /dev/null +++ b/configure.in.multilib @@ -0,0 +1,562 @@ +AC_REVISION([$Id: configure.in,v 1.29.2.41 2005/12/16 08:12:19 tbe Exp $]) +dnl +dnl Process this file with autoconf to produce a configure script. +dnl +dnl Copyright (C) 1998 Cees A. de Groot +dnl + +dnl +dnl Credits: this autoconf script was largely "inspired" by the +dnl autoconf script around SP made by Henry Thompson. +dnl + +dnl Initialization. +AC_INIT +AC_CONFIG_SRCDIR([pubtext]) +AM_INIT_AUTOMAKE(OpenSP, 1.5.2, no-define) +AM_MAINTAINER_MODE +AC_PREREQ(2.53) +AM_CONFIG_HEADER(config.h) +AM_SANITY_CHECK + +dnl Autoheader definitions + +AH_TEMPLATE([HAVE_CATGETS],[Define if you have the gettext() function]) +AH_TEMPLATE([SGML_CATALOG_FILES_DEFAULT],[set this to the default catalog files list]) +AH_TEMPLATE([SGML_SEARCH_PATH_DEFAULT],[set this to the default SGML search path]) +AH_TEMPLATE([SP_DECLARE_H_ERRNO],[define this if h_errno should be declared extern int]) +AH_TEMPLATE([DECLARE_MEMMOVE],[define this if memmove should be declared extern "C"]) +AH_TEMPLATE([DECLARE_STRERROR],[define this if strerror should be declared extern "C"]) +AH_TEMPLATE([SP_HAVE_SOCKET],[define this if sockets are available]) +AH_TEMPLATE([sig_atomic_t],[define this appropriately if the type sig_atomic_t is not available]) +AH_TEMPLATE([SP_NEW_H_MISSING],[define this if your system misses new.h]) +AH_TEMPLATE([SP_SET_NEW_HANDLER_EXTERN_C],[define this if set_new_handler() has to be declared extern "C"]) +AC_DEFINE(SP_MULTI_BYTE,[1],[define this to build a multi-byte version]) +AH_TEMPLATE([SP_DEFINE_TEMPLATES],[define this to include template definitions in the headers]) +AH_TEMPLATE([SP_MANUAL_INST],[define this to compile explicit template instantiations]) +AH_TEMPLATE([SP_FANCY_NEW_HANDLER],[define this if the new handler takes size_t and returns int.]) +AH_TEMPLATE([PATH_SEPARATOR],[set this to the path separator]) +AH_TEMPLATE([DEFAULT_ERROR_LIMIT],[if this is not set it defaults to 200 ]) +AH_TEMPLATE([SP_USE_OWN_ASSERT],[define this if you can't or don't want to use the builtin assert() macro]) +AH_TEMPLATE([SP_LINE_TERM1],[set this to the first line term character]) +AH_TEMPLATE([SP_LINE_TERM2],[set this to the second line term character]) + +dnl These are really windows only + +AH_TEMPLATE([SP_MUTEX_WIN32],[define this to use win32 mutex mechanisms]) +AH_TEMPLATE([SP_HAVE_SETMODE],[define this if _setmode is supported]) +AH_TEMPLATE([SP_NO_MESSAGE_TEXT],[define this to not compile message texts in]) +AH_TEMPLATE([SP_USE_DLL],[define this to build a dll]) +AH_TEMPLATE([SP_DLLEXPORT],[define this to build a dll]) +AH_TEMPLATE([SP_DLLIMPORT],[define this tobuild a dll]) +AH_TEMPLATE([SP_WIDE_SYSTEM],[define this if the OS provides wide character interfaces]) +AH_TEMPLATE([SP_PCH],[define this to enable precompiled header support]) +AH_TEMPLATE([SP_LOCALE_DIR],[the location we install our messages]) + +AH_TEMPLATE([SIZEOF_WCHAR_T],[size of wchar_t]) + +AH_BOTTOM([ +#ifdef HAVE_UNISTD_H +#define SP_INCLUDE_UNISTD_H +#endif + +#ifdef HAVE_IO_H +#undef SP_INCLUDE_IO_H +#endif + +#ifdef HAVE_OSFCN_H +#undef SP_INCLUDE_OSFCN_H +#endif + +#ifndef SP_MSDOS_FILENAMES +#define SP_POSIX_FILENAMES +#endif + +#ifdef HAVE_ST_BLKSIZE +#define SP_STAT_BLKSIZE +#endif + +#ifdef HAVE_BOOL +#ifndef SP_HAVE_BOOL +#define SP_HAVE_BOOL +#endif +#endif /* HAVE_BOOL */ + +#ifdef HAVE_TYPENAME +#define SP_HAVE_TYPENAME +#endif /* HAVE_TYPENAME */ + +#if (SIZEOF_BOOL == 1) +#define SP_SIZEOF_BOOL_1 +#endif + +#if (SIZEOF_WCHAR_T == SIZEOF_UNSIGNED_SHORT) +#define SP_WCHAR_T_USHORT +#endif + +#ifdef SP_HAVE_SETMODE +#ifndef SP_LINE_TERM1 +#define SP_LINE_TERM1 '\r' +#define SP_LINE_TERM2 '\n' +#endif +#endif /* not SP_HAVE_SETMODE */ + +#ifndef SP_LINE_TERM1 +#define SP_LINE_TERM1 '\n' +#endif + +#ifndef HAVE_NEW_FOR_SCOPING +// This simulates the new ANSI "for" scope rules +#define for if (0); else for +#endif /* HAVE_NEW_FOR_SCOPING */ + +#ifndef SP_HAVE_TYPENAME +#define typename /* as nothing */ +#endif + +#ifndef SP_DLLEXPORT +#define SP_DLLEXPORT /* as nothing */ +#endif + +#ifndef SP_DLLIMPORT +#define SP_DLLIMPORT /* as nothing */ +#endif + +#ifdef SP_USE_DLL + +#ifdef BUILD_LIBSP +#define SP_API SP_DLLEXPORT +#else +#define SP_API SP_DLLIMPORT +#endif + +#else /* not SP_USE_DLL */ + +#define SP_API /* as nothing */ + +#endif /* not SP_USE_DLL */ + +#ifdef SP_WIDE_SYSTEM +#ifndef SP_MULTI_BYTE +#define SP_MULTI_BYTE +#endif +#endif + +#ifdef HAVE_NAMESPACES +#define SP_NAMESPACE OpenSP +#endif /* HAVE_NAMESPACES */ + +#ifdef SP_NAMESPACE +#define SP_NAMESPACE_SCOPE SP_NAMESPACE:: +#else +#define SP_NAMESPACE_SCOPE +#endif /* SP_NAMESPACE */ + +#ifdef HAVE_DYNAMIC_CAST +#define SP_HAVE_RTTI +#endif /* HAVE_DYNAMIC_CAST */ + +#ifdef HAVE_PATHNAME_STYLE_DOS +#define SP_MSDOS_FILENAMES +#else +#define SP_POSIX_FILENAMES +#endif /* HAVE_PATHNAME_STYLE_DOS */ + +#ifdef HAVE_INSTANTIATIONS +#ifndef SP_ANSI_CLASS_INST +#define SP_ANSI_CLASS_INST +#endif +#endif /* HAVE_INSTANTIATIONS */ + +#ifdef HAVE_SETLOCALE +#ifndef SP_HAVE_LOCALE +#define SP_HAVE_LOCALE +#endif +#endif /* HAVE_SETLOCALE */ + +#if defined(HAVE_GETTEXT) && defined(ENABLE_NLS) +#ifndef SP_HAVE_GETTEXT +#define SP_HAVE_GETTEXT +#endif +#endif /* HAVE_GETTEXT && ENABLE_NLS */ + +#ifdef WORDS_BIGENDIAN +#define SP_BIG_ENDIAN +#endif /* WORDS_BIGENDIAN */ + +#ifdef HAVE_LIBTHREADS +#define SP_MUTEX_MACH +#endif /* HAVE_LIBTHREADS */ + +#ifdef HAVE_LIBPTHREAD +#define SP_MUTEX_PTHREADS +#endif /* HAVE_LIBPTHREAD */ + +#ifdef HAVE_PLACEMENT_OPERATOR_DELETE +#define SP_HAVE_PLACEMENT_OPERATOR_DELETE +#endif /* HAVE_PLACEMENT_OPERATOR_DELETE */ + +#ifndef HAVE_PLACEMENT_OPERATOR_NEW +#define SP_DECLARE_PLACEMENT_OPERATOR_NEW +#endif /* HAVE_PLACEMENT_OPERATOR_NEW */ + +#ifndef HAVE_NAMESPACE_STD +#define SP_NO_STD_NAMESPACE +#endif /* HAVE_NAMESPACE_STD */ + +#if defined(HAVE_NEW) && defined(HAVE_CASSERT) +#define SP_ANSI_LIB 1 +#endif /* HAVE_NEW && HAVE_CASSERT */ + +#ifndef HAVE_MUTABLE +#define mutable +#endif /* HAVE_MUTABLE */ +]) + +dnl Since config.h gets included by user programs, we use special names +dnl for PACKAGE and VERSION. +AC_DEFINE_UNQUOTED(SP_PACKAGE, "$PACKAGE", [Package name]) +AC_DEFINE_UNQUOTED(SP_VERSION, "$VERSION", [Package version]) + +dnl libosp current:revision:age +SP_LIBOSP_CUR=5 +dnl AC_DEFINE_UNQUOTED(SP_LIBOSP_CUR, "$SP_LIBOSP_CUR", [libosp current]) +AC_SUBST(SP_LIBOSP_CUR) +AC_SUBST(SP_LIBOSP_REV, 0) +AC_SUBST(SP_LIBOSP_AGE, 0) + +dnl Check for programs. +AC_PROG_CC +AC_PROG_CPP +AC_PROG_CXX +AC_PROG_CXXCPP +AC_PROG_INSTALL +AC_PROG_LN_S +AC_PROG_MAKE_SET +AC_PATH_PROGS(PERL, perl, perl) +AC_PROG_LIBTOOL +dnl Checks for libraries. +AC_CHECK_LIB(pthread,pthread_create,,AC_CHECK_LIB(threads,cthread_fork)) + +AM_GNU_GETTEXT +AM_GNU_GETTEXT_VERSION([0.14.5]) +AC_CHECK_HEADERS(locale.h) +AC_DEFINE_DIR(SP_LOCALE_DIR, datadir/locale, [location of message catalogs]) +SP_MESSAGE_DOMAIN="sp$SP_LIBOSP_CUR" +AC_DEFINE_UNQUOTED(SP_MESSAGE_DOMAIN, "$SP_MESSAGE_DOMAIN", [message domain]) +AC_SUBST(SP_MESSAGE_DOMAIN) + +dnl Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS(limits.h unistd.h io.h osfcn.h) +AC_LANG([C++]) +AC_CHECK_HEADERS(new cassert) + +dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_BIGENDIAN +AC_TYPE_SIZE_T +AC_DIAGNOSE([obsolete],[AC_DIAGNOSE([obsolete],[AC_STRUCT_ST_BLKSIZE: + your code should no longer depend upon `HAVE_ST_BLKSIZE', but + `HAVE_STRUCT_STAT_ST_BLKSIZE'. Remove this warning and + the `AC_DEFINE' when you adjust the code.]) +AC_CHECK_MEMBERS([struct stat.st_blksize],[AC_DEFINE(HAVE_ST_BLKSIZE, 1, + [Define to 1 if your `struct stat' has + `st_blksize'. Deprecated, use + `HAVE_STRUCT_STAT_ST_BLKSIZE' instead.])]) +: + your code should no longer depend upon `HAVE_ST_BLKSIZE', but + `HAVE_STRUCT_STAT_ST_BLKSIZE'. Remove this warning and + the `AC_DEFINE' when you adjust the code.]) +AC_CHECK_MEMBERS([struct stat.st_blksize],[AC_DEFINE(HAVE_ST_BLKSIZE, 1, + [Define if your `struct stat' has + `st_blksize'. Deprecated, use + `HAVE_STRUCT_STAT_ST_BLKSIZE' instead.])]) + +AC_CACHE_CHECK(for sig_atomic_t in signal.h, + ac_cv_have_sig_atomic_t, + AC_TRY_LINK([#include ],sig_atomic_t x;, + ac_cv_have_sig_atomic_t=yes, + ac_cv_have_sig_atomic_t=no)) +if test "$ac_cv_have_sig_atomic_t" = "no" +then + AC_CHECK_TYPE(sig_atomic_t,int) +fi +AC_CHECK_SIZEOF(size_t) +AC_CHECK_SIZEOF(unsigned int) +AC_CHECK_SIZEOF(unsigned short) +AC_CHECK_SIZEOF(wchar_t,,[ + #include + #include ]) +AC_CXX_BOOL +if test "$ac_cv_cxx_bool" = yes; then + AC_CHECK_SIZEOF(bool) +fi +AC_CXX_MUTABLE +AC_CXX_TYPENAME +AC_CXX_NEW_FOR_SCOPING +AC_CXX_PLACEMENT_OPERATOR_DELETE +AC_CXX_DYNAMIC_CAST +AC_CXX_NAMESPACES +AC_CXX_EXPLICIT_INSTANTIATIONS +AC_CACHE_CHECK(for placement operator new, +ac_cv_cxx_placement_operator_new, +[AC_TRY_COMPILE([#include +#ifdef HAVE_NEW +#include +#else +#include +#endif +class A { +public: + A() {}; +}; +A* foo() +{ + void *x; + A *bar = new (x) A; + return bar; +};],, + ac_cv_cxx_placement_operator_new=yes, + ac_cv_cxx_placement_operator_new=no) +]) +if test "$ac_cv_cxx_placement_operator_new" = yes; then + AC_DEFINE(HAVE_PLACEMENT_OPERATOR_NEW,1, + [define if placement operator new is declared]) +fi +AC_CACHE_CHECK(whether the C++ compiler supports the std namespace, +ac_cv_cxx_namespace_std, +[AC_TRY_COMPILE([ +#ifdef HAVE_NEW +#include +#else +#include +#endif],[ +std::set_new_handler(0);], + ac_cv_cxx_namespace_std=yes, + ac_cv_cxx_namespace_std=no) +]) +if test "$ac_cv_cxx_namespace_std" = yes; then + AC_DEFINE(HAVE_NAMESPACE_STD,1, + [define if the C++ compiler supports the std namespace]) +fi +if test "$GXX"; then +dnl FIXME these need tests for non-GNU compilers + AC_CACHE_CHECK(whether GNU C++ supports automatic template instantiation, + ac_cv_c_gnu_automatic_templates, + [AC_EGREP_CPP(yes,[ +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 8) + yes +#endif + ], + ac_cv_c_gnu_automatic_templates=yes, + ac_cv_c_gnu_automatic_templates=no) + ]) + if test "$ac_cv_c_gnu_automatic_templates" = yes; then + AC_DEFINE(SP_DEFINE_TEMPLATES,1, + [define this to include template definitions in the headers]) + else + AC_DEFINE(SP_MANUAL_INST,1, + [define this to compile explicit template instantiations]) + CXXFLAGS="$CXXFLAGS -fno-implicit-templates" + fi + AC_CACHE_CHECK(whether GNU C++ links with libg++ if we include new.h, + ac_cv_cxx_gnu_avoid_new_h, + [AC_EGREP_CPP(yes,[ +#if (__GNUC__ == 2 && __GNUC_MINOR__ < 8) + yes +#endif + ], + ac_cv_cxx_gnu_avoid_new_h=yes, + ac_cv_cxx_gnu_avoid_new_h=no) + ]) + if test "$ac_cv_cxx_gnu_avoid_new_h" = yes; then + AC_DEFINE(SP_NEW_H_MISSING,1, + [define this if your system misses new.h]) + AC_CACHE_CHECK(whether to declare set_new_handler extern "C", + ac_cv_cxx_new_handler_extern_c, + [AC_TRY_LINK([ +typedef void (*new_handler)(); +new_handler set_new_handler(new_handler);],[ +set_new_handler(0);], + ac_cv_cxx_new_handler_extern_c=no, + ac_cv_cxx_new_handler_extern_c=yes) + ]) + if test "$ac_cv_cxx_new_handler_extern_c" = yes; then + AC_DEFINE(SP_SET_NEW_HANDLER_EXTERN_C,1, + [define this if set_new_handler() has to be declared extern "C"]) + fi + fi +fi +AC_CACHE_CHECK(whether new_handler accepts size_t and returns int, +ac_cv_cxx_fancy_new_handler, +[AC_TRY_COMPILE([ +#include +#include +int oom(size_t) { }],[set_new_handler(oom);], + ac_cv_cxx_fancy_new_handler=yes, + ac_cv_cxx_fancy_new_handler=no) + ]) +if test "$ac_cv_cxx_fancy_new_handler" = yes; then + AC_DEFINE(SP_FANCY_NEW_HANDLER,1, + [define this if the new handler takes size_t and returns int]) +fi + +dnl Checks for library functions. +AC_REPLACE_FUNCS(memmove memcmp strerror strtoul) +AC_CHECK_FUNCS(setlocale) + +dnl Checks for system services. +ACX_CHECK_PATHNAME_STYLE_DOS + +AC_MSG_CHECKING(whether to include support for http) +AC_ARG_ENABLE(http, +[ --enable-http include support for http], + if test $enableval + then + AC_MSG_RESULT(yes) + AC_DEFINE(SP_HAVE_SOCKET,1, + [define this if sockets are available]) + AC_CHECK_LIB(nsl,main,LIBS="$LIBS -lnsl") + AC_CHECK_LIB(socket,main,LIBS="$LIBS -lsocket") + AC_MSG_CHECKING(h_errno in netdb.h) + AC_EGREP_HEADER(h_errno,netdb.h, + AC_MSG_RESULT(yes), + AC_DEFINE(SP_DECLARE_H_ERRNO,1, + [define this if h_errno should be declared extern int]) + AC_MSG_RESULT(no)) + else + AC_MSG_RESULT(no) + fi, + AC_MSG_RESULT(no)) +AC_MSG_CHECKING(for default catalog) +AC_ARG_ENABLE(default-catalog, +[ --enable-default-catalog=pathlist + provide one or more default catalog files or + sysids, e.g. /usr/local/lib/sgml/catalog], + if test $enableval + then + AC_MSG_RESULT($enableval) + AC_DEFINE_UNQUOTED(SGML_CATALOG_FILES_DEFAULT,"$enableval", + [set this to the default catalog files list]) + else + AC_MSG_RESULT(none) + fi, + AC_MSG_RESULT(none)) +AC_MSG_CHECKING(for default search path) +AC_ARG_ENABLE(default-search-path, +[ --enable-default-search-path=pathlist + provide a default value for SGML_SEARCH_PATH], + if test $enableval + then + AC_MSG_RESULT($enableval) + AC_DEFINE_UNQUOTED(SGML_SEARCH_PATH_DEFAULT,"$enableval", + [set this to the default SGML search path]) + else + AC_MSG_RESULT(none) + fi, + AC_MSG_RESULT(none)) +AC_MSG_CHECKING(whether to include support for XML Formatted Messages) +AC_ARG_ENABLE(xml-messages, +[ --enable-xml-messages include support for XML Formatted Messages], + if test $enableval + then + AC_MSG_RESULT(yes) + AC_DEFINE(SP_XML,1,[set this to enable XML Formatted Messages]) + else + AC_MSG_RESULT(no) + fi, + AC_MSG_RESULT(no)) +DTDDECL=yes +AC_MSG_CHECKING(whether to include DTDDECL support) +AC_ARG_ENABLE(dtddecl, +[ --disable-dtddecl disable support for DTDDECL catalog entries], + if test "$enableval" = "no" + then + AC_MSG_RESULT(no) + DTDDECL=no + else + AC_MSG_RESULT(yes) + fi, + AC_MSG_RESULT(yes)) +if test "$DTDDECL" = "yes" +then + AC_DEFINE(SP_DTDDECL,1,[set this to enable DTDDECL support]) + AM_CONDITIONAL(DTDDECL,true) +else + AM_CONDITIONAL(DTDDECL,false) +fi + +dnl Output. +AC_CONFIG_FILES([${PACKAGE}-${VERSION}.spec:spec.in Makefile msggen.pl + lib/Makefile nsgmls/Makefile spent/Makefile + spam/Makefile sgmlnorm/Makefile sx/Makefile spcat/Makefile + include/Makefile include/config.h.old generic/Makefile doc/Makefile + pubtext/Makefile tests/Makefile unicode/Makefile intl/Makefile + po/Makefile.in]) + +BUILDDOCS=yes +AC_MSG_CHECKING([whether to build docs (man and html)]) +AC_ARG_ENABLE(doc-build, + [ --disable-doc-build do not build docs from source], + if test "$enableval" = "no" + then + AC_MSG_RESULT(no) + BUILDDOCS=no + else + AC_MSG_RESULT(yes) + fi, + AC_MSG_RESULT(yes)) + +if test "$BUILDDOCS" = "yes" +then + AC_PATH_PROG(XMLTO, xmlto) + if test -z "$XMLTO" + then AC_MSG_ERROR( +[could not find xmlto; set XMLTO or consider --disable-doc-build]) + fi + AC_SUBST(DOCSRC, docsrc) + AC_CONFIG_FILES(docsrc/Makefile) +fi + +BUILDFULLDOCS=no +AC_MSG_CHECKING([whether to build all docs (man, html, pdf, ps)]) +AC_ARG_ENABLE(full-doc-build, + [ --enable-full-doc-build build all docs from source], + if test "$enableval" = "yes" + then + AC_MSG_RESULT(yes) + BUILDFULLDOCS=yes + else + AC_MSG_RESULT(no) + fi, + AC_MSG_RESULT(no)) + +if test "$BUILDFULLDOCS" = "yes" +then + AC_PATH_PROG(PDF2PS, pdf2ps) + if test -z "$PDF2PS" + then AC_MSG_ERROR( +[could not find pdf2ps; set PDF2PS or consider --disable-doc-build]) + fi + AC_PATH_PROG(JADE, openjade jade) + if test -z "$JADE" + then + AC_MSG_ERROR( +[could not find openjade or jade; set JADE or consider --disable-doc-build]) + fi + AC_PATH_PROG(JADETEX, jadetex) + if test -z "$JADETEX" + then + AC_MSG_ERROR( +[could not find jadetex; set JADETEX or consider --disable-doc-build]) + fi + AC_PATH_PROG(PDFJADETEX, pdfjadetex) + if test -z "$PDFJADETEX" + then + AC_MSG_ERROR( +[could not find pdfjadetex; set PDFJADETEX or consider --disable-doc-build]) + fi + AC_SUBST(EXTRADOCS,["releasenotes.pdf releasenotes.ps"]) +fi + +AC_OUTPUT diff --git a/lib/parser_inst.cxx b/lib/parser_inst.cxx index a7f7863..f71b3a6 100644 --- a/lib/parser_inst.cxx +++ b/lib/parser_inst.cxx @@ -9,6 +9,7 @@ namespace SP_NAMESPACE { // Copyright (c) 1994 James Clark // See the file COPYING for copying permission. +#include #include "splib.h" #ifdef SP_MANUAL_INST @@ -1338,7 +1339,7 @@ typedef Vector Dummy_96; #endif #endif // we really just want to test if size_t == unsigned int -#if !defined(SIZEOF_SIZE_T) || !defined(SIZEOF_UNSIGNED_INT) || (SIZEOF_SIZE_T != SIZEOF_UNSIGNED_INT) +#if INT_MAX != SSIZE_MAX #ifdef __DECCXX #pragma define_template Vector #else diff --git a/lib/parser_inst.cxx.multilib b/lib/parser_inst.cxx.multilib new file mode 100644 index 0000000..a7f7863 --- /dev/null +++ b/lib/parser_inst.cxx.multilib @@ -0,0 +1,1650 @@ +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + + +#ifdef SP_NAMESPACE +} +#endif +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "Owner.h" +#include "CopyOwner.h" +#include "Vector.h" +#include "NCVector.h" +#include "Ptr.h" +#include "IList.h" +#include "IQueue.h" +#include "List.h" +#include "OwnerTable.h" +#include "PointerTable.h" +#include "HashTable.h" +#include "HashTableItemBase.h" +#include "StringOf.h" +#include "IListIter.h" +#include "ListIter.h" +#include "NamedResourceTable.h" +#undef SP_DEFINE_TEMPLATES + +#include +#include "Attribute.h" +#include "Attributed.h" +#include "CharsetDecl.h" +#include "ContentToken.h" +#include "Dtd.h" +#include "ElementType.h" +#include "Entity.h" +#include "EntityCatalog.h" +#include "EntityManager.h" +#include "EquivClass.h" +#include "Event.h" +#include "Hash.h" +#include "HashTable.h" +#include "HashTableItemBase.h" +#include "InputSource.h" +#include "LinkProcess.h" +#include "Lpd.h" +#include "LpdEntityRef.h" +#include "Markup.h" +#include "NamedResource.h" +#include "NamedTable.h" +#include "Named.h" +#include "NameToken.h" +#include "OpenElement.h" +#include "OutputState.h" +#include "Recognizer.h" +#include "Sd.h" +#include "SdText.h" +#include "SdFormalError.h" +#include "SrInfo.h" +#include "StringResource.h" +#include "Syntax.h" +#include "Text.h" +#include "Trie.h" +#include "Undo.h" +#include "Boolean.h" +#include "types.h" +#include "Id.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_0; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_1; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_2; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_3; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_4; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_5; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_6; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_7; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_8; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_9; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_10; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_11; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_12; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_13; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_14; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_15; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_16; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_17; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_18; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_19; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_20; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_21; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_22; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_23; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr Dummy_24; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstPtr +#else +#ifdef __xlC__ +#pragma define(ConstPtr) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstPtr; +#else +typedef ConstPtr Dummy_25; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CopyOwner +#else +#ifdef __xlC__ +#pragma define(CopyOwner) +#else +#ifdef SP_ANSI_CLASS_INST +template class CopyOwner; +#else +typedef CopyOwner Dummy_26; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CopyOwner +#else +#ifdef __xlC__ +#pragma define(CopyOwner) +#else +#ifdef SP_ANSI_CLASS_INST +template class CopyOwner; +#else +typedef CopyOwner Dummy_27; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CopyOwner +#else +#ifdef __xlC__ +#pragma define(CopyOwner) +#else +#ifdef SP_ANSI_CLASS_INST +template class CopyOwner; +#else +typedef CopyOwner Dummy_28; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CopyOwner +#else +#ifdef __xlC__ +#pragma define(CopyOwner) +#else +#ifdef SP_ANSI_CLASS_INST +template class CopyOwner; +#else +typedef CopyOwner Dummy_29; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template NCVector > +#else +#ifdef __xlC__ +#pragma define(NCVector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class NCVector >; +#else +typedef NCVector > Dummy_30; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector > +#else +#ifdef __xlC__ +#pragma define(Vector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector >; +#else +typedef Vector > Dummy_31; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template NCVector > +#else +#ifdef __xlC__ +#pragma define(NCVector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class NCVector >; +#else +typedef NCVector > Dummy_32; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_33; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template HashTableItem +#else +#ifdef __xlC__ +#pragma define(HashTableItem) +#else +#ifdef SP_ANSI_CLASS_INST +template class HashTableItem; +#else +typedef HashTableItem Dummy_34; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template HashTable +#else +#ifdef __xlC__ +#pragma define(HashTable) +#else +#ifdef SP_ANSI_CLASS_INST +template class HashTable; +#else +typedef HashTable Dummy_35; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template HashTableItem +#else +#ifdef __xlC__ +#pragma define(HashTableItem) +#else +#ifdef SP_ANSI_CLASS_INST +template class HashTableItem; +#else +typedef HashTableItem Dummy_36; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template HashTable +#else +#ifdef __xlC__ +#pragma define(HashTable) +#else +#ifdef SP_ANSI_CLASS_INST +template class HashTable; +#else +typedef HashTable Dummy_37; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template IList +#else +#ifdef __xlC__ +#pragma define(IList) +#else +#ifdef SP_ANSI_CLASS_INST +template class IList; +#else +typedef IList Dummy_38; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template IList +#else +#ifdef __xlC__ +#pragma define(IList) +#else +#ifdef SP_ANSI_CLASS_INST +template class IList; +#else +typedef IList Dummy_39; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template IList +#else +#ifdef __xlC__ +#pragma define(IList) +#else +#ifdef SP_ANSI_CLASS_INST +template class IList; +#else +typedef IList Dummy_40; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template IList +#else +#ifdef __xlC__ +#pragma define(IList) +#else +#ifdef SP_ANSI_CLASS_INST +template class IList; +#else +typedef IList Dummy_41; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template IList +#else +#ifdef __xlC__ +#pragma define(IList) +#else +#ifdef SP_ANSI_CLASS_INST +template class IList; +#else +typedef IList Dummy_42; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template IList +#else +#ifdef __xlC__ +#pragma define(IList) +#else +#ifdef SP_ANSI_CLASS_INST +template class IList; +#else +typedef IList Dummy_43; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template IList +#else +#ifdef __xlC__ +#pragma define(IList) +#else +#ifdef SP_ANSI_CLASS_INST +template class IList; +#else +typedef IList Dummy_44; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template IQueue +#else +#ifdef __xlC__ +#pragma define(IQueue) +#else +#ifdef SP_ANSI_CLASS_INST +template class IQueue; +#else +typedef IQueue Dummy_45; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template IQueue +#else +#ifdef __xlC__ +#pragma define(IQueue) +#else +#ifdef SP_ANSI_CLASS_INST +template class IQueue; +#else +typedef IQueue Dummy_46; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template OwnerTable +#else +#ifdef __xlC__ +#pragma define(OwnerTable) +#else +#ifdef SP_ANSI_CLASS_INST +template class OwnerTable; +#else +typedef OwnerTable Dummy_47; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template OwnerTableIter +#else +#ifdef __xlC__ +#pragma define(OwnerTableIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class OwnerTableIter; +#else +typedef OwnerTableIter Dummy_48; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_49; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_50; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_51; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_52; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_53; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_54; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_55; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_56; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_57; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_58; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_59; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_60; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_61; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_62; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template PointerTableIter +#else +#ifdef __xlC__ +#pragma define(PointerTableIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class PointerTableIter; +#else +typedef PointerTableIter Dummy_63; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template PointerTable +#else +#ifdef __xlC__ +#pragma define(PointerTable) +#else +#ifdef SP_ANSI_CLASS_INST +template class PointerTable; +#else +typedef PointerTable Dummy_64; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template PointerTable,StringC,Hash,NamedResourceKeyFunction> +#else +#ifdef __xlC__ +#pragma define(PointerTable,StringC,Hash,NamedResourceKeyFunction>) +#else +#ifdef SP_ANSI_CLASS_INST +template class PointerTable,StringC,Hash,NamedResourceKeyFunction>; +#else +typedef PointerTable,StringC,Hash,NamedResourceKeyFunction> Dummy_65; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template PointerTableIter,StringC,Hash,NamedResourceKeyFunction> +#else +#ifdef __xlC__ +#pragma define(PointerTableIter,StringC,Hash,NamedResourceKeyFunction>) +#else +#ifdef SP_ANSI_CLASS_INST +template class PointerTableIter,StringC,Hash,NamedResourceKeyFunction>; +#else +typedef PointerTableIter,StringC,Hash,NamedResourceKeyFunction> Dummy_66; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector > +#else +#ifdef __xlC__ +#pragma define(Vector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector >; +#else +typedef Vector > Dummy_67; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_68; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_69; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_70; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector > +#else +#ifdef __xlC__ +#pragma define(Vector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector >; +#else +typedef Vector > Dummy_71; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_72; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_73; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_74; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_75; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_76; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_77; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_78; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_79; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_80; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector > +#else +#ifdef __xlC__ +#pragma define(Vector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector >; +#else +typedef Vector > Dummy_81; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector > +#else +#ifdef __xlC__ +#pragma define(Vector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector >; +#else +typedef Vector > Dummy_82; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_83; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector > +#else +#ifdef __xlC__ +#pragma define(Vector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector >; +#else +typedef Vector > Dummy_84; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_85; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_86; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_87; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_88; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector > +#else +#ifdef __xlC__ +#pragma define(Vector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector >; +#else +typedef Vector > Dummy_89; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_90; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_91; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector > +#else +#ifdef __xlC__ +#pragma define(Vector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector >; +#else +typedef Vector > Dummy_92; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_93; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_94; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_95; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_96; +#endif +#endif +#endif + // we really just want to test if size_t == unsigned int +#if !defined(SIZEOF_SIZE_T) || !defined(SIZEOF_UNSIGNED_INT) || (SIZEOF_SIZE_T != SIZEOF_UNSIGNED_INT) +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_97; +#endif +#endif +#endif +#endif + +#ifdef __DECCXX +#pragma define_template NamedTable +#else +#ifdef __xlC__ +#pragma define(NamedTable) +#else +#ifdef SP_ANSI_CLASS_INST +template class NamedTable; +#else +typedef NamedTable Dummy_98; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template NamedTableIter +#else +#ifdef __xlC__ +#pragma define(NamedTableIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class NamedTableIter; +#else +typedef NamedTableIter Dummy_99; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template IListIter +#else +#ifdef __xlC__ +#pragma define(IListIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class IListIter; +#else +typedef IListIter Dummy_100; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template IListIter +#else +#ifdef __xlC__ +#pragma define(IListIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class IListIter; +#else +typedef IListIter Dummy_101; +#endif +#endif +#endif + +#ifdef __DECCXX +#pragma define_template NamedResourceTable +#else +#ifdef __xlC__ +#pragma define(NamedResourceTable) +#else +#ifdef SP_ANSI_CLASS_INST +template class NamedResourceTable; +#else +typedef NamedResourceTable Dummy_102; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template NamedResourceTable +#else +#ifdef __xlC__ +#pragma define(NamedResourceTable) +#else +#ifdef SP_ANSI_CLASS_INST +template class NamedResourceTable; +#else +typedef NamedResourceTable Dummy_103; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template NamedResourceTableIter +#else +#ifdef __xlC__ +#pragma define(NamedResourceTableIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class NamedResourceTableIter; +#else +typedef NamedResourceTableIter Dummy_104; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template NamedResourceTableIter +#else +#ifdef __xlC__ +#pragma define(NamedResourceTableIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class NamedResourceTableIter; +#else +typedef NamedResourceTableIter Dummy_105; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstNamedResourceTableIter +#else +#ifdef __xlC__ +#pragma define(ConstNamedResourceTableIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstNamedResourceTableIter; +#else +typedef ConstNamedResourceTableIter Dummy_106; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ConstNamedResourceTableIter +#else +#ifdef __xlC__ +#pragma define(ConstNamedResourceTableIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class ConstNamedResourceTableIter; +#else +typedef ConstNamedResourceTableIter Dummy_107; +#endif +#endif +#endif + +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_108; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector > +#else +#ifdef __xlC__ +#pragma define(Vector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector >; +#else +typedef Vector > Dummy_109; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector > > +#else +#ifdef __xlC__ +#pragma define(Vector > >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector > >; +#else +typedef Vector > > Dummy_110; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_111; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector > +#else +#ifdef __xlC__ +#pragma define(Vector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector >; +#else +typedef Vector > Dummy_112; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector > +#else +#ifdef __xlC__ +#pragma define(Vector >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector >; +#else +typedef Vector > Dummy_113; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Vector +#else +#ifdef __xlC__ +#pragma define(Vector) +#else +#ifdef SP_ANSI_CLASS_INST +template class Vector; +#else +typedef Vector Dummy_114; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template PointerTable +#else +#ifdef __xlC__ +#pragma define(PointerTable) +#else +#ifdef SP_ANSI_CLASS_INST +template class PointerTable; +#else +typedef PointerTable Dummy_115; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template PointerTableIter +#else +#ifdef __xlC__ +#pragma define(PointerTableIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class PointerTableIter; +#else +typedef PointerTableIter Dummy_116; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template OwnerTable +#else +#ifdef __xlC__ +#pragma define(OwnerTable) +#else +#ifdef SP_ANSI_CLASS_INST +template class OwnerTable; +#else +typedef OwnerTable Dummy_117; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template OwnerTableIter +#else +#ifdef __xlC__ +#pragma define(OwnerTableIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class OwnerTableIter; +#else +typedef OwnerTableIter Dummy_118; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template IList +#else +#ifdef __xlC__ +#pragma define(IList) +#else +#ifdef SP_ANSI_CLASS_INST +template class IList; +#else +typedef IList Dummy_119; +#endif +#endif +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/lib/parser_inst.m4 b/lib/parser_inst.m4 index 541c614..29addb1 100644 --- a/lib/parser_inst.m4 +++ b/lib/parser_inst.m4 @@ -1,6 +1,7 @@ // Copyright (c) 1994 James Clark // See the file COPYING for copying permission. +#include #include "splib.h" #ifdef SP_MANUAL_INST @@ -166,7 +167,7 @@ __instantiate(Vector) __instantiate(Vector) __instantiate(Vector) // we really just want to test if size_t == unsigned int -#if !defined(SIZEOF_SIZE_T) || !defined(SIZEOF_UNSIGNED_INT) || (SIZEOF_SIZE_T != SIZEOF_UNSIGNED_INT) +#if INT_MAX != SSIZE_MAX __instantiate(Vector) #endif diff --git a/lib/parser_inst.m4.multilib b/lib/parser_inst.m4.multilib new file mode 100644 index 0000000..541c614 --- /dev/null +++ b/lib/parser_inst.m4.multilib @@ -0,0 +1,202 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "Owner.h" +#include "CopyOwner.h" +#include "Vector.h" +#include "NCVector.h" +#include "Ptr.h" +#include "IList.h" +#include "IQueue.h" +#include "List.h" +#include "OwnerTable.h" +#include "PointerTable.h" +#include "HashTable.h" +#include "HashTableItemBase.h" +#include "StringOf.h" +#include "IListIter.h" +#include "ListIter.h" +#include "NamedResourceTable.h" +#undef SP_DEFINE_TEMPLATES + +#include +#include "Attribute.h" +#include "Attributed.h" +#include "CharsetDecl.h" +#include "ContentToken.h" +#include "Dtd.h" +#include "ElementType.h" +#include "Entity.h" +#include "EntityCatalog.h" +#include "EntityManager.h" +#include "EquivClass.h" +#include "Event.h" +#include "Hash.h" +#include "HashTable.h" +#include "HashTableItemBase.h" +#include "InputSource.h" +#include "LinkProcess.h" +#include "Lpd.h" +#include "LpdEntityRef.h" +#include "Markup.h" +#include "NamedResource.h" +#include "NamedTable.h" +#include "Named.h" +#include "NameToken.h" +#include "OpenElement.h" +#include "OutputState.h" +#include "Recognizer.h" +#include "Sd.h" +#include "SdText.h" +#include "SdFormalError.h" +#include "SrInfo.h" +#include "StringResource.h" +#include "Syntax.h" +#include "Text.h" +#include "Trie.h" +#include "Undo.h" +#include "Boolean.h" +#include "types.h" +#include "Id.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(CopyOwner) +__instantiate(CopyOwner) +__instantiate(CopyOwner) +__instantiate(CopyOwner) +__instantiate(NCVector >) +__instantiate(Vector >) +__instantiate(NCVector >) +__instantiate(Vector) +__instantiate(`HashTableItem') +__instantiate(`HashTable') +__instantiate(`HashTableItem') +__instantiate(`HashTable') +__instantiate(IList) +__instantiate(IList) +__instantiate(IList) +__instantiate(IList) +__instantiate(IList) +__instantiate(IList) +__instantiate(IList) +__instantiate(IQueue) +__instantiate(IQueue) +__instantiate(`OwnerTable') +__instantiate(`OwnerTableIter') +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(`PointerTableIter') +__instantiate(`PointerTable') +__instantiate(`PointerTable,StringC,Hash,NamedResourceKeyFunction>') +__instantiate(`PointerTableIter,StringC,Hash,NamedResourceKeyFunction>') +__instantiate(Vector >) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector >) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector >) +__instantiate(Vector >) +__instantiate(Vector) +__instantiate(Vector >) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector >) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector >) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Vector) + // we really just want to test if size_t == unsigned int +#if !defined(SIZEOF_SIZE_T) || !defined(SIZEOF_UNSIGNED_INT) || (SIZEOF_SIZE_T != SIZEOF_UNSIGNED_INT) +__instantiate(Vector) +#endif + +__instantiate(NamedTable) +__instantiate(NamedTableIter) +__instantiate(IListIter) +__instantiate(IListIter) + +__instantiate(NamedResourceTable) +__instantiate(NamedResourceTable) +__instantiate(NamedResourceTableIter) +__instantiate(NamedResourceTableIter) +__instantiate(ConstNamedResourceTableIter) +__instantiate(ConstNamedResourceTableIter) + +__instantiate(Vector) +__instantiate(Vector >) +__instantiate(Vector > >) +__instantiate(Vector) +__instantiate(Vector >) +__instantiate(Vector >) +__instantiate(Vector) +__instantiate(`PointerTable') +__instantiate(`PointerTableIter') +__instantiate(`OwnerTable') +__instantiate(`OwnerTableIter') +__instantiate(IList) + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */