From 077b74820859c8ad359fe504e55e31b4bc62ed19 Mon Sep 17 00:00:00 2001 From: "Graydon, Tracy" Date: Fri, 31 Aug 2012 12:24:59 -0700 Subject: [PATCH 1/1] TIVI-153: Add as dependency for iputils --- .cvsignore | 33 + ABOUT-NLS | 996 + AUTHORS | 15 + BUGS | 4 + COPYING | 25 + ChangeLog | 2634 +++ INSTALL | 236 + Makefile.am | 44 + Makefile.in | 777 + NEWS | 155 + OpenSP-1.5.2.spec | 91 + README | 18 + SP.dsw | 118 + SP.mak | 22618 +++++++++++++++++++++++ acinclude.m4 | 279 + aclocal.m4 | 7101 +++++++ all/README | 2 + all/all.dsp | 93 + autoinit.sh | 37 + build-win32.bat | 2 + config.guess | 1463 ++ config.h | 315 + config.h.in | 627 + config.rpath | 571 + config.sub | 1579 ++ configure | 33865 ++++++++++++++++++++++++++++++++++ configure.in | 562 + depcomp | 530 + doc/.cvsignore | 2 + doc/Makefile.am | 19 + doc/Makefile.in | 417 + doc/archform.htm | 358 + doc/autoconf.htm | 101 + doc/build.htm | 55 + doc/catalog | 1 + doc/catalog.htm | 183 + doc/charset.htm | 302 + doc/features.htm | 132 + doc/generic.htm | 1088 ++ doc/ideas.htm | 515 + doc/index.htm | 103 + doc/new.htm | 141 + doc/nsgmls.htm | 587 + doc/sgmldecl.htm | 296 + doc/sgmlnorm.htm | 147 + doc/sgmlsout.htm | 470 + doc/spam.htm | 256 + doc/spcat.htm | 104 + doc/spent.htm | 80 + doc/sx.htm | 222 + doc/sysdecl.htm | 34 + doc/sysid.htm | 259 + doc/xml.htm | 64 + doc/xmlwarn.htm | 217 + docsrc/Makefile.am | 58 + docsrc/Makefile.in | 505 + docsrc/logo.png | Bin 0 -> 1703 bytes docsrc/onsgmls.xml | 564 + docsrc/osgmlnorm.xml | 253 + docsrc/ospam.xml | 362 + docsrc/ospcat.xml | 195 + docsrc/ospent.xml | 166 + docsrc/osx.xml | 403 + docsrc/releasenotes.dsl | 240 + docsrc/releasenotes.xml | 1047 ++ generic/.cvsignore | 2 + generic/EventGenerator.h | 29 + generic/Makefile.am | 8 + generic/Makefile.in | 453 + generic/ParserEventGeneratorKit.h | 54 + generic/SGMLApplication.h | 313 + include/.cvsignore | 2 + include/Allocator.h | 67 + include/ArcEngine.h | 57 + include/Attribute.h | 980 + include/Attributed.h | 57 + include/Big5CodingSystem.h | 23 + include/Boolean.h | 40 + include/CharMap.cxx | 390 + include/CharMap.h | 229 + include/CharsetDecl.h | 142 + include/CharsetInfo.h | 121 + include/CharsetRegistry.h | 60 + include/CmdLineApp.h | 133 + include/CodingSystem.h | 97 + include/CodingSystemKit.h | 59 + include/ConsoleOutput.h | 27 + include/ContentState.h | 119 + include/ContentToken.h | 636 + include/CopyOwner.cxx | 27 + include/CopyOwner.h | 31 + include/DescriptorManager.h | 50 + include/Dtd.h | 486 + include/EUCJPCodingSystem.h | 23 + include/ElementType.h | 327 + include/Entity.h | 352 + include/EntityApp.h | 49 + include/EntityCatalog.h | 57 + include/EntityDecl.h | 107 + include/EntityManager.h | 49 + include/ErrnoMessageArg.h | 35 + include/ErrorCountEventHandler.h | 68 + include/Event.h | 1368 ++ include/EventsWanted.h | 91 + include/ExtendEntityManager.h | 137 + include/ExternalId.h | 194 + include/Fixed2CodingSystem.h | 24 + include/Fixed4CodingSystem.h | 24 + include/GenericEventHandler.h | 127 + include/Hash.h | 25 + include/HashTable.cxx | 41 + include/HashTable.h | 68 + include/HashTableItemBase.cxx | 26 + include/HashTableItemBase.h | 38 + include/IList.h | 41 + include/IListBase.h | 80 + include/IListIter.h | 28 + include/IListIterBase.h | 51 + include/IQueue.cxx | 22 + include/IQueue.h | 65 + include/ISet.cxx | 130 + include/ISet.h | 58 + include/ISetIter.h | 40 + include/IdentityCodingSystem.h | 25 + include/InputSource.h | 289 + include/InternalInputSource.h | 50 + include/Link.h | 38 + include/LinkProcess.h | 81 + include/List.cxx | 37 + include/List.h | 49 + include/ListIter.h | 29 + include/LiteralStorage.h | 40 + include/Location.h | 197 + include/Lpd.h | 449 + include/Makefile.am | 40 + include/Makefile.in | 486 + include/Markup.h | 204 + include/Message.h | 310 + include/MessageArg.h | 76 + include/MessageBuilder.h | 31 + include/MessageEventHandler.h | 39 + include/MessageFormatter.h | 60 + include/MessageModule.h | 33 + include/MessageReporter.h | 110 + include/MessageTable.h | 34 + include/Mode.h | 75 + include/NCVector.h | 60 + include/Named.h | 29 + include/NamedResource.h | 23 + include/NamedResourceTable.h | 94 + include/NamedTable.h | 65 + include/Notation.h | 62 + include/NotationStorage.h | 38 + include/OpenElement.h | 218 + include/Options.cxx | 133 + include/Options.h | 58 + include/OutputByteStream.h | 138 + include/OutputCharStream.h | 138 + include/Owner.cxx | 28 + include/Owner.h | 60 + include/OwnerTable.cxx | 44 + include/OwnerTable.h | 50 + include/ParserApp.h | 53 + include/ParserOptions.h | 142 + include/PointerTable.cxx | 146 + include/PointerTable.h | 68 + include/PosixStorage.h | 85 + include/Ptr.cxx | 72 + include/Ptr.h | 92 + include/RangeMap.cxx | 162 + include/RangeMap.h | 68 + include/Resource.h | 56 + include/RewindStorageObject.h | 45 + include/SJISCodingSystem.h | 23 + include/SOEntityCatalog.h | 31 + include/Sd.h | 603 + include/SdText.h | 71 + include/SearchResultMessageArg.h | 57 + include/SgmlParser.h | 87 + include/ShortReferenceMap.h | 105 + include/StdioStorage.h | 47 + include/StorageManager.h | 89 + include/StringC.h | 20 + include/StringOf.cxx | 152 + include/StringOf.h | 79 + include/StringResource.h | 24 + include/SubstTable.h | 64 + include/Syntax.h | 530 + include/Text.h | 230 + include/TranslateCodingSystem.h | 52 + include/TypeId.h | 29 + include/URLStorage.h | 39 + include/UTF16CodingSystem.h | 23 + include/UTF8CodingSystem.h | 23 + include/UnicodeCodingSystem.h | 26 + include/UnivCharsetDesc.h | 150 + include/Vector.cxx | 160 + include/Vector.h | 78 + include/Win32CodingSystem.h | 38 + include/WinApp.h | 105 + include/WinInetStorage.h | 39 + include/XMLCodingSystem.h | 28 + include/XcharMap.cxx | 66 + include/XcharMap.h | 100 + include/config.h.old.in | 315 + include/constant.h | 24 + include/macros.h | 49 + include/rtti.h | 59 + include/sptchar.h | 168 + include/types.h | 62 + include/xnew.h | 37 + install-sh | 323 + instmac.pl | 79 + intl/ChangeLog | 4 + intl/Makefile.in | 500 + intl/VERSION | 1 + intl/bindtextdom.c | 363 + intl/config.charset | 638 + intl/dcgettext.c | 56 + intl/dcigettext.c | 1258 ++ intl/dcngettext.c | 57 + intl/dgettext.c | 58 + intl/dngettext.c | 59 + intl/eval-plural.h | 108 + intl/explodename.c | 185 + intl/finddomain.c | 192 + intl/gettext.c | 63 + intl/gettextP.h | 218 + intl/gmo.h | 149 + intl/hash-string.h | 48 + intl/intl-compat.c | 131 + intl/l10nflist.c | 421 + intl/langprefs.c | 130 + intl/libgnuintl.h.in | 383 + intl/loadinfo.h | 145 + intl/loadmsgcat.c | 1420 ++ intl/localcharset.c | 409 + intl/localcharset.h | 42 + intl/locale.alias | 78 + intl/localealias.c | 414 + intl/localename.c | 1500 ++ intl/log.c | 98 + intl/ngettext.c | 65 + intl/os2compat.c | 98 + intl/os2compat.h | 46 + intl/osdep.c | 24 + intl/plural-exp.c | 154 + intl/plural-exp.h | 118 + intl/plural.c | 1490 ++ intl/plural.y | 381 + intl/printf-args.c | 119 + intl/printf-args.h | 137 + intl/printf-parse.c | 537 + intl/printf-parse.h | 75 + intl/printf.c | 371 + intl/ref-add.sin | 31 + intl/ref-del.sin | 26 + intl/relocatable.c | 449 + intl/relocatable.h | 77 + intl/textdomain.c | 141 + intl/vasnprintf.c | 902 + intl/vasnprintf.h | 78 + intl/vasnwprintf.h | 46 + intl/wprintf-parse.h | 75 + intl/xsize.h | 109 + lib/.cvsignore | 10 + lib/Allocator.cxx | 104 + lib/ArcEngine.cxx | 2104 +++ lib/ArcEngineMessages.h | 402 + lib/ArcEngineMessages.msg | 45 + lib/ArcEngineMessages.rc | 42 + lib/ArcProcessor.h | 230 + lib/Attribute.cxx | 1472 ++ lib/Big5CodingSystem.cxx | 85 + lib/CatalogEntry.h | 27 + lib/CatalogMessages.h | 132 + lib/CatalogMessages.msg | 16 + lib/CatalogMessages.rc | 15 + lib/CharsetDecl.cxx | 269 + lib/CharsetInfo.cxx | 138 + lib/CharsetRegistry.cxx | 288 + lib/CmdLineApp.cxx | 592 + lib/CmdLineAppMessages.h | 248 + lib/CmdLineAppMessages.msg | 30 + lib/CmdLineAppMessages.rc | 27 + lib/CodingSystem.cxx | 118 + lib/CodingSystemKit.cxx | 562 + lib/ConsoleOutput.cxx | 73 + lib/ContentState.cxx | 172 + lib/ContentToken.cxx | 791 + lib/DescriptorManager.cxx | 90 + lib/Dtd.cxx | 94 + lib/DtdDeclEventHandler.cxx | 56 + lib/DtdDeclEventHandler.h | 30 + lib/EUCJPCodingSystem.cxx | 115 + lib/ElementType.cxx | 114 + lib/Entity.cxx | 624 + lib/EntityApp.cxx | 197 + lib/EntityAppMessages.h | 70 + lib/EntityAppMessages.msg | 12 + lib/EntityAppMessages.rc | 9 + lib/EntityCatalog.cxx | 61 + lib/EntityDecl.cxx | 58 + lib/EntityManager.cxx | 21 + lib/EntityManagerMessages.h | 222 + lib/EntityManagerMessages.msg | 25 + lib/EntityManagerMessages.rc | 24 + lib/EquivClass.h | 25 + lib/ErrnoMessageArg.cxx | 24 + lib/ErrorCountEventHandler.cxx | 33 + lib/Event.cxx | 582 + lib/EventGenerator.cxx | 25 + lib/EventQueue.h | 58 + lib/ExtendEntityManager.cxx | 2209 +++ lib/ExternalId.cxx | 418 + lib/Fixed2CodingSystem.cxx | 107 + lib/Fixed4CodingSystem.cxx | 169 + lib/GenericEventHandler.cxx | 806 + lib/Group.cxx | 183 + lib/Group.h | 167 + lib/Hash.cxx | 26 + lib/IListBase.cxx | 36 + lib/Id.cxx | 30 + lib/Id.h | 60 + lib/IdentityCodingSystem.cxx | 83 + lib/InputSource.cxx | 88 + lib/InternalInputSource.cxx | 70 + lib/Link.cxx | 17 + lib/LinkProcess.cxx | 185 + lib/LiteralStorage.cxx | 130 + lib/Location.cxx | 568 + lib/Lpd.cxx | 180 + lib/LpdEntityRef.h | 46 + lib/Makefile.am | 129 + lib/Makefile.in | 781 + lib/Markup.cxx | 422 + lib/MarkupScan.h | 24 + lib/Message.cxx | 351 + lib/MessageArg.cxx | 102 + lib/MessageEventHandler.cxx | 50 + lib/MessageFormatter.cxx | 183 + lib/MessageFormatterMessages.h | 66 + lib/MessageFormatterMessages.msg | 11 + lib/MessageFormatterMessages.rc | 9 + lib/MessageReporter.cxx | 532 + lib/MessageReporterMessages.h | 111 + lib/MessageReporterMessages.msg | 16 + lib/MessageReporterMessages.rc | 14 + lib/MessageTable.cxx | 186 + lib/ModeInfo.cxx | 299 + lib/ModeInfo.h | 63 + lib/Mutex.h | 125 + lib/NameToken.h | 24 + lib/Notation.cxx | 63 + lib/NotationStorage.cxx | 42 + lib/NumericCharRefOrigin.cxx | 42 + lib/NumericCharRefOrigin.h | 35 + lib/OffsetOrderedList.cxx | 132 + lib/OffsetOrderedList.h | 55 + lib/OpenElement.cxx | 31 + lib/OutputByteStream.cxx | 283 + lib/OutputCharStream.cxx | 261 + lib/OutputState.cxx | 131 + lib/OutputState.h | 78 + lib/Param.cxx | 252 + lib/Param.h | 223 + lib/Parser.cxx | 262 + lib/Parser.h | 417 + lib/ParserApp.cxx | 276 + lib/ParserAppMessages.h | 159 + lib/ParserAppMessages.msg | 21 + lib/ParserAppMessages.rc | 18 + lib/ParserEventGeneratorKit.cxx | 216 + lib/ParserMessages.cxx | 3964 ++++ lib/ParserMessages.h | 961 + lib/ParserMessages.msg | 487 + lib/ParserMessages.rc | 482 + lib/ParserOptions.cxx | 59 + lib/ParserState.cxx | 906 + lib/ParserState.h | 859 + lib/Partition.cxx | 219 + lib/Partition.h | 74 + lib/PosixStorage.cxx | 771 + lib/PosixStorageMessages.h | 102 + lib/PosixStorageMessages.msg | 15 + lib/PosixStorageMessages.rc | 12 + lib/Priority.h | 36 + lib/Recognizer.cxx | 77 + lib/Recognizer.h | 43 + lib/RewindStorageObject.cxx | 78 + lib/SGMLApplication.cxx | 159 + lib/SJISCodingSystem.cxx | 176 + lib/SOEntityCatalog.cxx | 1209 ++ lib/Sd.cxx | 277 + lib/SdFormalError.h | 32 + lib/SdText.cxx | 100 + lib/SearchResultMessageArg.cxx | 35 + lib/SgmlParser.cxx | 113 + lib/ShortReferenceMap.cxx | 35 + lib/SrInfo.h | 24 + lib/StdioStorage.cxx | 156 + lib/StdioStorageMessages.h | 42 + lib/StdioStorageMessages.msg | 9 + lib/StdioStorageMessages.rc | 6 + lib/StorageManager.cxx | 99 + lib/StorageObjectPosition.h | 35 + lib/SubstTable.cxx | 112 + lib/Syntax.cxx | 470 + lib/Text.cxx | 433 + lib/TokenMessageArg.cxx | 114 + lib/TokenMessageArg.h | 39 + lib/TranslateCodingSystem.cxx | 209 + lib/Trie.h | 70 + lib/TrieBuilder.cxx | 252 + lib/TrieBuilder.h | 70 + lib/TypeId.cxx | 28 + lib/URLStorage.cxx | 814 + lib/URLStorageMessages.h | 241 + lib/URLStorageMessages.msg | 29 + lib/URLStorageMessages.rc | 26 + lib/UTF16CodingSystem.cxx | 130 + lib/UTF8CodingSystem.cxx | 282 + lib/Undo.cxx | 54 + lib/Undo.h | 71 + lib/UnicodeCodingSystem.cxx | 143 + lib/UnivCharsetDesc.cxx | 171 + lib/Win32CodingSystem.cxx | 218 + lib/WinApp.cxx | 229 + lib/WinInetStorage.cxx | 234 + lib/WinInetStorageMessages.h | 32 + lib/WinInetStorageMessages.msg | 9 + lib/WinInetStorageMessages.rc | 5 + lib/XMLCodingSystem.cxx | 424 + lib/app_inst.cxx | 153 + lib/app_inst.m4 | 37 + lib/arc_inst.cxx | 72 + lib/arc_inst.m4 | 28 + lib/assert.cxx | 28 + lib/big5.h | 1895 ++ lib/entmgr_inst.cxx | 727 + lib/entmgr_inst.m4 | 95 + lib/events.h | 43 + lib/gb2312.h | 1043 ++ lib/iso646-jis.h | 14 + lib/iso8859-2.h | 15 + lib/iso8859-3.h | 24 + lib/iso8859-4.h | 15 + lib/iso8859-5.h | 15 + lib/iso8859-6.h | 21 + lib/iso8859-7.h | 21 + lib/iso8859-8.h | 14 + lib/iso8859-9.h | 15 + lib/jis0201.h | 10 + lib/jis0208.h | 971 + lib/jis0212.h | 871 + lib/koi8-r.h | 15 + lib/ksc5601.h | 1152 ++ lib/lib.dsp | 2035 ++ lib/lib.rc | 18 + lib/memcmp.c | 17 + lib/memmove.c | 12 + lib/parseAttribute.cxx | 526 + lib/parseCommon.cxx | 617 + lib/parseDecl.cxx | 3661 ++++ lib/parseInstance.cxx | 1442 ++ lib/parseMode.cxx | 581 + lib/parseParam.cxx | 1084 ++ lib/parseSd.cxx | 3478 ++++ lib/parser_inst.cxx | 1650 ++ lib/parser_inst.m4 | 202 + lib/splib.cxx | 4 + lib/splib.h | 10 + lib/splibpch.h | 153 + lib/strerror.c | 23 + lib/token.h | 83 + lib/xentmgr_inst.cxx | 748 + lib/xentmgr_inst.m4 | 104 + ltmain.sh | 6500 +++++++ m4/codeset.m4 | 21 + m4/gettext.m4 | 549 + m4/glibc2.m4 | 30 + m4/glibc21.m4 | 30 + m4/iconv.m4 | 101 + m4/intdiv0.m4 | 70 + m4/intmax.m4 | 30 + m4/inttypes-pri.m4 | 30 + m4/inttypes.m4 | 25 + m4/inttypes_h.m4 | 26 + m4/lcmessage.m4 | 30 + m4/lib-ld.m4 | 110 + m4/lib-link.m4 | 553 + m4/lib-prefix.m4 | 153 + m4/longdouble.m4 | 28 + m4/longlong.m4 | 23 + m4/nls.m4 | 51 + m4/po.m4 | 429 + m4/printf-posix.m4 | 44 + m4/progtest.m4 | 92 + m4/signed.m4 | 17 + m4/size_max.m4 | 59 + m4/stdint_h.m4 | 26 + m4/uintmax_t.m4 | 30 + m4/ulonglong.m4 | 23 + m4/wchar_t.m4 | 20 + m4/wint_t.m4 | 20 + m4/xsize.m4 | 13 + missing | 360 + mkinstalldirs | 158 + msggen.pl | 428 + msggen.pl.in | 428 + nsgmls/.cvsignore | 11 + nsgmls/Makefile.am | 30 + nsgmls/Makefile.in | 545 + nsgmls/NsgmlsMessages.h | 229 + nsgmls/NsgmlsMessages.msg | 27 + nsgmls/NsgmlsMessages.rc | 25 + nsgmls/RastEventHandler.cxx | 911 + nsgmls/RastEventHandler.h | 193 + nsgmls/RastEventHandlerMessages.h | 72 + nsgmls/RastEventHandlerMessages.msg | 12 + nsgmls/RastEventHandlerMessages.rc | 9 + nsgmls/SgmlsEventHandler.cxx | 739 + nsgmls/SgmlsEventHandler.h | 157 + nsgmls/StringSet.cxx | 33 + nsgmls/StringSet.h | 43 + nsgmls/nsgmls.cxx | 274 + nsgmls/nsgmls.dsp | 253 + nsgmls/nsgmls.h | 40 + nsgmls/nsgmls.rc | 5 + nsgmls/nsgmls_inst.cxx | 115 + nsgmls/nsgmls_inst.m4 | 35 + packaging/opensp-multilib.patch | 91 + packaging/opensp-nodeids.patch | 128 + packaging/opensp-sigsegv.patch | 20 + packaging/opensp.changes | 59 + packaging/opensp.spec | 103 + po/ChangeLog | 7 + po/LINGUAS | 1 + po/Makefile.in.in | 386 + po/Makevars | 41 + po/POTFILES.in | 21 + po/Rules-quot | 47 + po/boldquot.sed | 10 + po/de.gmo | Bin 0 -> 92260 bytes po/de.po | 2791 +++ po/en@boldquot.header | 25 + po/en@quot.header | 22 + po/fr.gmo | Bin 0 -> 94096 bytes po/fr.po | 2813 +++ po/insert-header.sin | 23 + po/ja.gmo | Bin 0 -> 78495 bytes po/ja.po | 2613 +++ po/quot.sed | 6 + po/remove-potcdate.sin | 19 + po/sp5.pot | 2182 +++ po/stamp-po | 1 + po/sv.gmo | Bin 0 -> 68569 bytes po/sv.po | 2628 +++ po/tr.gmo | Bin 0 -> 91686 bytes po/tr.po | 2691 +++ pubtext/.cvsignore | 2 + pubtext/HTML32.dcl | 80 + pubtext/HTML32.dtd | 597 + pubtext/HTML32.soc | 8 + pubtext/HTML4-f.dtd | 37 + pubtext/HTML4-s.dtd | 869 + pubtext/HTML4.dcl | 88 + pubtext/HTML4.dtd | 1092 ++ pubtext/HTML4.soc | 9 + pubtext/HTMLlat1.ent | 195 + pubtext/HTMLspec.ent | 77 + pubtext/HTMLsym.ent | 241 + pubtext/ISOlat1.ent | 108 + pubtext/ISOlat1.sgm | 74 + pubtext/Makefile.am | 15 + pubtext/Makefile.in | 413 + pubtext/html-1.dtd | 29 + pubtext/html-1s.dtd | 29 + pubtext/html-s.dtd | 29 + pubtext/html.dcl | 88 + pubtext/html.dtd | 599 + pubtext/html.soc | 31 + pubtext/japan.dcl | 630 + pubtext/opensp-implied.dcl | 66 + pubtext/xml.dcl | 189 + pubtext/xml.soc | 1 + sgmlnorm/.cvsignore | 11 + sgmlnorm/Makefile.am | 24 + sgmlnorm/Makefile.in | 533 + sgmlnorm/SGMLGenerator.cxx | 439 + sgmlnorm/SGMLGenerator.h | 74 + sgmlnorm/SgmlnormMessages.h | 82 + sgmlnorm/SgmlnormMessages.msg | 12 + sgmlnorm/SgmlnormMessages.rc | 10 + sgmlnorm/sgmlnorm.cxx | 89 + sgmlnorm/sgmlnorm.dsp | 146 + sp-generate.mak | 73 + spam/.cvsignore | 11 + spam/CopyEventHandler.cxx | 1071 ++ spam/CopyEventHandler.h | 137 + spam/Makefile.am | 32 + spam/Makefile.in | 542 + spam/MarkupEventHandler.cxx | 159 + spam/MarkupEventHandler.h | 51 + spam/SpamMessages.h | 150 + spam/SpamMessages.msg | 19 + spam/SpamMessages.rc | 17 + spam/spam.cxx | 169 + spam/spam.dsp | 193 + spam/spam.rc | 4 + spam/spam_inst.cxx | 44 + spam/spam_inst.m4 | 24 + spcat/.cvsignore | 11 + spcat/Makefile.am | 26 + spcat/Makefile.in | 534 + spcat/SpcatMessages.h | 150 + spcat/SpcatMessages.msg | 20 + spcat/SpcatMessages.rc | 17 + spcat/spcat.cxx | 165 + spcat/spcat.dsp | 138 + spcat/spcat_inst.cxx | 255 + spcat/spcat_inst.m4 | 55 + spec.in | 91 + spent/.cvsignore | 11 + spent/Makefile.am | 23 + spent/Makefile.in | 530 + spent/SpentMessages.h | 52 + spent/SpentMessages.msg | 9 + spent/SpentMessages.rc | 7 + spent/spent.cxx | 76 + spent/spent.dsp | 138 + sunfix.sh | 10 + sx/.cvsignore | 11 + sx/Makefile.am | 29 + sx/Makefile.in | 540 + sx/SxMessages.h | 71 + sx/SxMessages.msg | 11 + sx/SxMessages.rc | 9 + sx/XmlOutputEventHandler.cxx | 1674 ++ sx/XmlOutputEventHandler.h | 156 + sx/XmlOutputMessages.h | 172 + sx/XmlOutputMessages.msg | 22 + sx/XmlOutputMessages.rc | 19 + sx/sx.cxx | 165 + sx/sx.dsp | 235 + sx/sx.rc | 5 + sx/sx_inst.cxx | 44 + sx/sx_inst.m4 | 24 + tests/Makefile.am | 44 + tests/Makefile.in | 475 + tests/af-1 | 97 + tests/af-10 | 104 + tests/af-11 | 106 + tests/af-12 | 120 + tests/af-13 | 120 + tests/af-14 | 100 + tests/af-15 | 114 + tests/af-16 | 117 + tests/af-18 | 106 + tests/af-19 | 108 + tests/af-2 | 98 + tests/af-3 | 98 + tests/af-4 | 101 + tests/af-5 | 90 + tests/af-6 | 98 + tests/af-7 | 108 + tests/af-8 | 108 + tests/af-9 | 103 + tests/catalog-1 | 54 + tests/catalog-2 | 37 + tests/onsgmls-1 | 38 + tests/onsgmls-2 | 48 + tests/osnorm-1 | 35 + unicode/.cvsignore | 2 + unicode/Makefile.am | 7 + unicode/Makefile.in | 403 + unicode/catalog | 5 + unicode/demo.sgm | 5 + unicode/gensyntax.pl | 224 + unicode/unicode.sd | 24 + unicode/unicode.syn | 1272 ++ 681 files changed, 230859 insertions(+) create mode 100644 .cvsignore create mode 100644 ABOUT-NLS create mode 100644 AUTHORS create mode 100644 BUGS create mode 100644 COPYING create mode 100644 ChangeLog create mode 100644 INSTALL create mode 100644 Makefile.am create mode 100644 Makefile.in create mode 100644 NEWS create mode 100644 OpenSP-1.5.2.spec create mode 100644 README create mode 100644 SP.dsw create mode 100644 SP.mak create mode 100644 acinclude.m4 create mode 100644 aclocal.m4 create mode 100644 all/README create mode 100644 all/all.dsp create mode 100755 autoinit.sh create mode 100755 build-win32.bat create mode 100755 config.guess create mode 100644 config.h create mode 100644 config.h.in create mode 100755 config.rpath create mode 100755 config.sub create mode 100755 configure create mode 100644 configure.in create mode 100755 depcomp create mode 100644 doc/.cvsignore create mode 100644 doc/Makefile.am create mode 100644 doc/Makefile.in create mode 100644 doc/archform.htm create mode 100644 doc/autoconf.htm create mode 100644 doc/build.htm create mode 100644 doc/catalog create mode 100644 doc/catalog.htm create mode 100644 doc/charset.htm create mode 100644 doc/features.htm create mode 100644 doc/generic.htm create mode 100644 doc/ideas.htm create mode 100644 doc/index.htm create mode 100644 doc/new.htm create mode 100644 doc/nsgmls.htm create mode 100644 doc/sgmldecl.htm create mode 100644 doc/sgmlnorm.htm create mode 100644 doc/sgmlsout.htm create mode 100644 doc/spam.htm create mode 100644 doc/spcat.htm create mode 100644 doc/spent.htm create mode 100644 doc/sx.htm create mode 100644 doc/sysdecl.htm create mode 100644 doc/sysid.htm create mode 100644 doc/xml.htm create mode 100644 doc/xmlwarn.htm create mode 100644 docsrc/Makefile.am create mode 100644 docsrc/Makefile.in create mode 100644 docsrc/logo.png create mode 100644 docsrc/onsgmls.xml create mode 100644 docsrc/osgmlnorm.xml create mode 100644 docsrc/ospam.xml create mode 100644 docsrc/ospcat.xml create mode 100644 docsrc/ospent.xml create mode 100644 docsrc/osx.xml create mode 100644 docsrc/releasenotes.dsl create mode 100644 docsrc/releasenotes.xml create mode 100644 generic/.cvsignore create mode 100644 generic/EventGenerator.h create mode 100644 generic/Makefile.am create mode 100644 generic/Makefile.in create mode 100644 generic/ParserEventGeneratorKit.h create mode 100644 generic/SGMLApplication.h create mode 100644 include/.cvsignore create mode 100644 include/Allocator.h create mode 100644 include/ArcEngine.h create mode 100644 include/Attribute.h create mode 100644 include/Attributed.h create mode 100644 include/Big5CodingSystem.h create mode 100644 include/Boolean.h create mode 100644 include/CharMap.cxx create mode 100644 include/CharMap.h create mode 100644 include/CharsetDecl.h create mode 100644 include/CharsetInfo.h create mode 100644 include/CharsetRegistry.h create mode 100644 include/CmdLineApp.h create mode 100644 include/CodingSystem.h create mode 100644 include/CodingSystemKit.h create mode 100644 include/ConsoleOutput.h create mode 100644 include/ContentState.h create mode 100644 include/ContentToken.h create mode 100644 include/CopyOwner.cxx create mode 100644 include/CopyOwner.h create mode 100644 include/DescriptorManager.h create mode 100644 include/Dtd.h create mode 100644 include/EUCJPCodingSystem.h create mode 100644 include/ElementType.h create mode 100644 include/Entity.h create mode 100644 include/EntityApp.h create mode 100644 include/EntityCatalog.h create mode 100644 include/EntityDecl.h create mode 100644 include/EntityManager.h create mode 100644 include/ErrnoMessageArg.h create mode 100644 include/ErrorCountEventHandler.h create mode 100644 include/Event.h create mode 100644 include/EventsWanted.h create mode 100644 include/ExtendEntityManager.h create mode 100644 include/ExternalId.h create mode 100644 include/Fixed2CodingSystem.h create mode 100644 include/Fixed4CodingSystem.h create mode 100644 include/GenericEventHandler.h create mode 100644 include/Hash.h create mode 100644 include/HashTable.cxx create mode 100644 include/HashTable.h create mode 100644 include/HashTableItemBase.cxx create mode 100644 include/HashTableItemBase.h create mode 100644 include/IList.h create mode 100644 include/IListBase.h create mode 100644 include/IListIter.h create mode 100644 include/IListIterBase.h create mode 100644 include/IQueue.cxx create mode 100644 include/IQueue.h create mode 100644 include/ISet.cxx create mode 100644 include/ISet.h create mode 100644 include/ISetIter.h create mode 100644 include/IdentityCodingSystem.h create mode 100644 include/InputSource.h create mode 100644 include/InternalInputSource.h create mode 100644 include/Link.h create mode 100644 include/LinkProcess.h create mode 100644 include/List.cxx create mode 100644 include/List.h create mode 100644 include/ListIter.h create mode 100644 include/LiteralStorage.h create mode 100644 include/Location.h create mode 100644 include/Lpd.h create mode 100644 include/Makefile.am create mode 100644 include/Makefile.in create mode 100644 include/Markup.h create mode 100644 include/Message.h create mode 100644 include/MessageArg.h create mode 100644 include/MessageBuilder.h create mode 100644 include/MessageEventHandler.h create mode 100644 include/MessageFormatter.h create mode 100644 include/MessageModule.h create mode 100644 include/MessageReporter.h create mode 100644 include/MessageTable.h create mode 100644 include/Mode.h create mode 100644 include/NCVector.h create mode 100644 include/Named.h create mode 100644 include/NamedResource.h create mode 100644 include/NamedResourceTable.h create mode 100644 include/NamedTable.h create mode 100644 include/Notation.h create mode 100644 include/NotationStorage.h create mode 100644 include/OpenElement.h create mode 100644 include/Options.cxx create mode 100644 include/Options.h create mode 100644 include/OutputByteStream.h create mode 100644 include/OutputCharStream.h create mode 100644 include/Owner.cxx create mode 100644 include/Owner.h create mode 100644 include/OwnerTable.cxx create mode 100644 include/OwnerTable.h create mode 100644 include/ParserApp.h create mode 100644 include/ParserOptions.h create mode 100644 include/PointerTable.cxx create mode 100644 include/PointerTable.h create mode 100644 include/PosixStorage.h create mode 100644 include/Ptr.cxx create mode 100644 include/Ptr.h create mode 100644 include/RangeMap.cxx create mode 100644 include/RangeMap.h create mode 100644 include/Resource.h create mode 100644 include/RewindStorageObject.h create mode 100644 include/SJISCodingSystem.h create mode 100644 include/SOEntityCatalog.h create mode 100644 include/Sd.h create mode 100644 include/SdText.h create mode 100644 include/SearchResultMessageArg.h create mode 100644 include/SgmlParser.h create mode 100644 include/ShortReferenceMap.h create mode 100644 include/StdioStorage.h create mode 100644 include/StorageManager.h create mode 100644 include/StringC.h create mode 100644 include/StringOf.cxx create mode 100644 include/StringOf.h create mode 100644 include/StringResource.h create mode 100644 include/SubstTable.h create mode 100644 include/Syntax.h create mode 100644 include/Text.h create mode 100644 include/TranslateCodingSystem.h create mode 100644 include/TypeId.h create mode 100644 include/URLStorage.h create mode 100644 include/UTF16CodingSystem.h create mode 100644 include/UTF8CodingSystem.h create mode 100644 include/UnicodeCodingSystem.h create mode 100644 include/UnivCharsetDesc.h create mode 100644 include/Vector.cxx create mode 100644 include/Vector.h create mode 100644 include/Win32CodingSystem.h create mode 100644 include/WinApp.h create mode 100644 include/WinInetStorage.h create mode 100644 include/XMLCodingSystem.h create mode 100644 include/XcharMap.cxx create mode 100644 include/XcharMap.h create mode 100644 include/config.h.old.in create mode 100644 include/constant.h create mode 100644 include/macros.h create mode 100644 include/rtti.h create mode 100644 include/sptchar.h create mode 100644 include/types.h create mode 100644 include/xnew.h create mode 100755 install-sh create mode 100755 instmac.pl create mode 100644 intl/ChangeLog create mode 100644 intl/Makefile.in create mode 100644 intl/VERSION create mode 100644 intl/bindtextdom.c create mode 100755 intl/config.charset create mode 100644 intl/dcgettext.c create mode 100644 intl/dcigettext.c create mode 100644 intl/dcngettext.c create mode 100644 intl/dgettext.c create mode 100644 intl/dngettext.c create mode 100644 intl/eval-plural.h create mode 100644 intl/explodename.c create mode 100644 intl/finddomain.c create mode 100644 intl/gettext.c create mode 100644 intl/gettextP.h create mode 100644 intl/gmo.h create mode 100644 intl/hash-string.h create mode 100644 intl/intl-compat.c create mode 100644 intl/l10nflist.c create mode 100644 intl/langprefs.c create mode 100644 intl/libgnuintl.h.in create mode 100644 intl/loadinfo.h create mode 100644 intl/loadmsgcat.c create mode 100644 intl/localcharset.c create mode 100644 intl/localcharset.h create mode 100644 intl/locale.alias create mode 100644 intl/localealias.c create mode 100644 intl/localename.c create mode 100644 intl/log.c create mode 100644 intl/ngettext.c create mode 100644 intl/os2compat.c create mode 100644 intl/os2compat.h create mode 100644 intl/osdep.c create mode 100644 intl/plural-exp.c create mode 100644 intl/plural-exp.h create mode 100644 intl/plural.c create mode 100644 intl/plural.y create mode 100644 intl/printf-args.c create mode 100644 intl/printf-args.h create mode 100644 intl/printf-parse.c create mode 100644 intl/printf-parse.h create mode 100644 intl/printf.c create mode 100644 intl/ref-add.sin create mode 100644 intl/ref-del.sin create mode 100644 intl/relocatable.c create mode 100644 intl/relocatable.h create mode 100644 intl/textdomain.c create mode 100644 intl/vasnprintf.c create mode 100644 intl/vasnprintf.h create mode 100644 intl/vasnwprintf.h create mode 100644 intl/wprintf-parse.h create mode 100644 intl/xsize.h create mode 100644 lib/.cvsignore create mode 100644 lib/Allocator.cxx create mode 100644 lib/ArcEngine.cxx create mode 100644 lib/ArcEngineMessages.h create mode 100644 lib/ArcEngineMessages.msg create mode 100644 lib/ArcEngineMessages.rc create mode 100644 lib/ArcProcessor.h create mode 100644 lib/Attribute.cxx create mode 100644 lib/Big5CodingSystem.cxx create mode 100644 lib/CatalogEntry.h create mode 100644 lib/CatalogMessages.h create mode 100644 lib/CatalogMessages.msg create mode 100644 lib/CatalogMessages.rc create mode 100644 lib/CharsetDecl.cxx create mode 100644 lib/CharsetInfo.cxx create mode 100644 lib/CharsetRegistry.cxx create mode 100644 lib/CmdLineApp.cxx create mode 100644 lib/CmdLineAppMessages.h create mode 100644 lib/CmdLineAppMessages.msg create mode 100644 lib/CmdLineAppMessages.rc create mode 100644 lib/CodingSystem.cxx create mode 100644 lib/CodingSystemKit.cxx create mode 100644 lib/ConsoleOutput.cxx create mode 100644 lib/ContentState.cxx create mode 100644 lib/ContentToken.cxx create mode 100644 lib/DescriptorManager.cxx create mode 100644 lib/Dtd.cxx create mode 100644 lib/DtdDeclEventHandler.cxx create mode 100644 lib/DtdDeclEventHandler.h create mode 100644 lib/EUCJPCodingSystem.cxx create mode 100644 lib/ElementType.cxx create mode 100644 lib/Entity.cxx create mode 100644 lib/EntityApp.cxx create mode 100644 lib/EntityAppMessages.h create mode 100644 lib/EntityAppMessages.msg create mode 100644 lib/EntityAppMessages.rc create mode 100644 lib/EntityCatalog.cxx create mode 100644 lib/EntityDecl.cxx create mode 100644 lib/EntityManager.cxx create mode 100644 lib/EntityManagerMessages.h create mode 100644 lib/EntityManagerMessages.msg create mode 100644 lib/EntityManagerMessages.rc create mode 100644 lib/EquivClass.h create mode 100644 lib/ErrnoMessageArg.cxx create mode 100644 lib/ErrorCountEventHandler.cxx create mode 100644 lib/Event.cxx create mode 100644 lib/EventGenerator.cxx create mode 100644 lib/EventQueue.h create mode 100644 lib/ExtendEntityManager.cxx create mode 100644 lib/ExternalId.cxx create mode 100644 lib/Fixed2CodingSystem.cxx create mode 100644 lib/Fixed4CodingSystem.cxx create mode 100644 lib/GenericEventHandler.cxx create mode 100644 lib/Group.cxx create mode 100644 lib/Group.h create mode 100644 lib/Hash.cxx create mode 100644 lib/IListBase.cxx create mode 100644 lib/Id.cxx create mode 100644 lib/Id.h create mode 100644 lib/IdentityCodingSystem.cxx create mode 100644 lib/InputSource.cxx create mode 100644 lib/InternalInputSource.cxx create mode 100644 lib/Link.cxx create mode 100644 lib/LinkProcess.cxx create mode 100644 lib/LiteralStorage.cxx create mode 100644 lib/Location.cxx create mode 100644 lib/Lpd.cxx create mode 100644 lib/LpdEntityRef.h create mode 100644 lib/Makefile.am create mode 100644 lib/Makefile.in create mode 100644 lib/Markup.cxx create mode 100644 lib/MarkupScan.h create mode 100644 lib/Message.cxx create mode 100644 lib/MessageArg.cxx create mode 100644 lib/MessageEventHandler.cxx create mode 100644 lib/MessageFormatter.cxx create mode 100644 lib/MessageFormatterMessages.h create mode 100644 lib/MessageFormatterMessages.msg create mode 100644 lib/MessageFormatterMessages.rc create mode 100644 lib/MessageReporter.cxx create mode 100644 lib/MessageReporterMessages.h create mode 100644 lib/MessageReporterMessages.msg create mode 100644 lib/MessageReporterMessages.rc create mode 100644 lib/MessageTable.cxx create mode 100644 lib/ModeInfo.cxx create mode 100644 lib/ModeInfo.h create mode 100644 lib/Mutex.h create mode 100644 lib/NameToken.h create mode 100644 lib/Notation.cxx create mode 100644 lib/NotationStorage.cxx create mode 100644 lib/NumericCharRefOrigin.cxx create mode 100644 lib/NumericCharRefOrigin.h create mode 100644 lib/OffsetOrderedList.cxx create mode 100644 lib/OffsetOrderedList.h create mode 100644 lib/OpenElement.cxx create mode 100644 lib/OutputByteStream.cxx create mode 100644 lib/OutputCharStream.cxx create mode 100644 lib/OutputState.cxx create mode 100644 lib/OutputState.h create mode 100644 lib/Param.cxx create mode 100644 lib/Param.h create mode 100644 lib/Parser.cxx create mode 100644 lib/Parser.h create mode 100644 lib/ParserApp.cxx create mode 100644 lib/ParserAppMessages.h create mode 100644 lib/ParserAppMessages.msg create mode 100644 lib/ParserAppMessages.rc create mode 100644 lib/ParserEventGeneratorKit.cxx create mode 100644 lib/ParserMessages.cxx create mode 100644 lib/ParserMessages.h create mode 100644 lib/ParserMessages.msg create mode 100644 lib/ParserMessages.rc create mode 100644 lib/ParserOptions.cxx create mode 100644 lib/ParserState.cxx create mode 100644 lib/ParserState.h create mode 100644 lib/Partition.cxx create mode 100644 lib/Partition.h create mode 100644 lib/PosixStorage.cxx create mode 100644 lib/PosixStorageMessages.h create mode 100644 lib/PosixStorageMessages.msg create mode 100644 lib/PosixStorageMessages.rc create mode 100644 lib/Priority.h create mode 100644 lib/Recognizer.cxx create mode 100644 lib/Recognizer.h create mode 100644 lib/RewindStorageObject.cxx create mode 100644 lib/SGMLApplication.cxx create mode 100644 lib/SJISCodingSystem.cxx create mode 100644 lib/SOEntityCatalog.cxx create mode 100644 lib/Sd.cxx create mode 100644 lib/SdFormalError.h create mode 100644 lib/SdText.cxx create mode 100644 lib/SearchResultMessageArg.cxx create mode 100644 lib/SgmlParser.cxx create mode 100644 lib/ShortReferenceMap.cxx create mode 100644 lib/SrInfo.h create mode 100644 lib/StdioStorage.cxx create mode 100644 lib/StdioStorageMessages.h create mode 100644 lib/StdioStorageMessages.msg create mode 100644 lib/StdioStorageMessages.rc create mode 100644 lib/StorageManager.cxx create mode 100644 lib/StorageObjectPosition.h create mode 100644 lib/SubstTable.cxx create mode 100644 lib/Syntax.cxx create mode 100644 lib/Text.cxx create mode 100644 lib/TokenMessageArg.cxx create mode 100644 lib/TokenMessageArg.h create mode 100644 lib/TranslateCodingSystem.cxx create mode 100644 lib/Trie.h create mode 100644 lib/TrieBuilder.cxx create mode 100644 lib/TrieBuilder.h create mode 100644 lib/TypeId.cxx create mode 100644 lib/URLStorage.cxx create mode 100644 lib/URLStorageMessages.h create mode 100644 lib/URLStorageMessages.msg create mode 100644 lib/URLStorageMessages.rc create mode 100644 lib/UTF16CodingSystem.cxx create mode 100644 lib/UTF8CodingSystem.cxx create mode 100644 lib/Undo.cxx create mode 100644 lib/Undo.h create mode 100644 lib/UnicodeCodingSystem.cxx create mode 100644 lib/UnivCharsetDesc.cxx create mode 100644 lib/Win32CodingSystem.cxx create mode 100644 lib/WinApp.cxx create mode 100644 lib/WinInetStorage.cxx create mode 100644 lib/WinInetStorageMessages.h create mode 100644 lib/WinInetStorageMessages.msg create mode 100644 lib/WinInetStorageMessages.rc create mode 100644 lib/XMLCodingSystem.cxx create mode 100644 lib/app_inst.cxx create mode 100644 lib/app_inst.m4 create mode 100644 lib/arc_inst.cxx create mode 100644 lib/arc_inst.m4 create mode 100644 lib/assert.cxx create mode 100644 lib/big5.h create mode 100644 lib/entmgr_inst.cxx create mode 100644 lib/entmgr_inst.m4 create mode 100644 lib/events.h create mode 100644 lib/gb2312.h create mode 100644 lib/iso646-jis.h create mode 100644 lib/iso8859-2.h create mode 100644 lib/iso8859-3.h create mode 100644 lib/iso8859-4.h create mode 100644 lib/iso8859-5.h create mode 100644 lib/iso8859-6.h create mode 100644 lib/iso8859-7.h create mode 100644 lib/iso8859-8.h create mode 100644 lib/iso8859-9.h create mode 100644 lib/jis0201.h create mode 100644 lib/jis0208.h create mode 100644 lib/jis0212.h create mode 100644 lib/koi8-r.h create mode 100644 lib/ksc5601.h create mode 100644 lib/lib.dsp create mode 100644 lib/lib.rc create mode 100644 lib/memcmp.c create mode 100644 lib/memmove.c create mode 100644 lib/parseAttribute.cxx create mode 100644 lib/parseCommon.cxx create mode 100644 lib/parseDecl.cxx create mode 100644 lib/parseInstance.cxx create mode 100644 lib/parseMode.cxx create mode 100644 lib/parseParam.cxx create mode 100644 lib/parseSd.cxx create mode 100644 lib/parser_inst.cxx create mode 100644 lib/parser_inst.m4 create mode 100644 lib/splib.cxx create mode 100644 lib/splib.h create mode 100644 lib/splibpch.h create mode 100644 lib/strerror.c create mode 100644 lib/token.h create mode 100644 lib/xentmgr_inst.cxx create mode 100644 lib/xentmgr_inst.m4 create mode 100644 ltmain.sh create mode 100644 m4/codeset.m4 create mode 100644 m4/gettext.m4 create mode 100644 m4/glibc2.m4 create mode 100644 m4/glibc21.m4 create mode 100644 m4/iconv.m4 create mode 100644 m4/intdiv0.m4 create mode 100644 m4/intmax.m4 create mode 100644 m4/inttypes-pri.m4 create mode 100644 m4/inttypes.m4 create mode 100644 m4/inttypes_h.m4 create mode 100644 m4/lcmessage.m4 create mode 100644 m4/lib-ld.m4 create mode 100644 m4/lib-link.m4 create mode 100644 m4/lib-prefix.m4 create mode 100644 m4/longdouble.m4 create mode 100644 m4/longlong.m4 create mode 100644 m4/nls.m4 create mode 100644 m4/po.m4 create mode 100644 m4/printf-posix.m4 create mode 100644 m4/progtest.m4 create mode 100644 m4/signed.m4 create mode 100644 m4/size_max.m4 create mode 100644 m4/stdint_h.m4 create mode 100644 m4/uintmax_t.m4 create mode 100644 m4/ulonglong.m4 create mode 100644 m4/wchar_t.m4 create mode 100644 m4/wint_t.m4 create mode 100644 m4/xsize.m4 create mode 100755 missing create mode 100755 mkinstalldirs create mode 100644 msggen.pl create mode 100644 msggen.pl.in create mode 100644 nsgmls/.cvsignore create mode 100644 nsgmls/Makefile.am create mode 100644 nsgmls/Makefile.in create mode 100644 nsgmls/NsgmlsMessages.h create mode 100644 nsgmls/NsgmlsMessages.msg create mode 100644 nsgmls/NsgmlsMessages.rc create mode 100644 nsgmls/RastEventHandler.cxx create mode 100644 nsgmls/RastEventHandler.h create mode 100644 nsgmls/RastEventHandlerMessages.h create mode 100644 nsgmls/RastEventHandlerMessages.msg create mode 100644 nsgmls/RastEventHandlerMessages.rc create mode 100644 nsgmls/SgmlsEventHandler.cxx create mode 100644 nsgmls/SgmlsEventHandler.h create mode 100644 nsgmls/StringSet.cxx create mode 100644 nsgmls/StringSet.h create mode 100644 nsgmls/nsgmls.cxx create mode 100644 nsgmls/nsgmls.dsp create mode 100644 nsgmls/nsgmls.h create mode 100644 nsgmls/nsgmls.rc create mode 100644 nsgmls/nsgmls_inst.cxx create mode 100644 nsgmls/nsgmls_inst.m4 create mode 100644 packaging/opensp-multilib.patch create mode 100644 packaging/opensp-nodeids.patch create mode 100644 packaging/opensp-sigsegv.patch create mode 100644 packaging/opensp.changes create mode 100644 packaging/opensp.spec create mode 100644 po/ChangeLog create mode 100644 po/LINGUAS create mode 100644 po/Makefile.in.in create mode 100644 po/Makevars create mode 100644 po/POTFILES.in create mode 100644 po/Rules-quot create mode 100644 po/boldquot.sed create mode 100644 po/de.gmo create mode 100644 po/de.po create mode 100644 po/en@boldquot.header create mode 100644 po/en@quot.header create mode 100644 po/fr.gmo create mode 100644 po/fr.po create mode 100644 po/insert-header.sin create mode 100644 po/ja.gmo create mode 100644 po/ja.po create mode 100644 po/quot.sed create mode 100644 po/remove-potcdate.sin create mode 100644 po/sp5.pot create mode 100644 po/stamp-po create mode 100644 po/sv.gmo create mode 100644 po/sv.po create mode 100644 po/tr.gmo create mode 100644 po/tr.po create mode 100644 pubtext/.cvsignore create mode 100644 pubtext/HTML32.dcl create mode 100644 pubtext/HTML32.dtd create mode 100644 pubtext/HTML32.soc create mode 100644 pubtext/HTML4-f.dtd create mode 100644 pubtext/HTML4-s.dtd create mode 100644 pubtext/HTML4.dcl create mode 100644 pubtext/HTML4.dtd create mode 100644 pubtext/HTML4.soc create mode 100644 pubtext/HTMLlat1.ent create mode 100644 pubtext/HTMLspec.ent create mode 100644 pubtext/HTMLsym.ent create mode 100644 pubtext/ISOlat1.ent create mode 100644 pubtext/ISOlat1.sgm create mode 100644 pubtext/Makefile.am create mode 100644 pubtext/Makefile.in create mode 100644 pubtext/html-1.dtd create mode 100644 pubtext/html-1s.dtd create mode 100644 pubtext/html-s.dtd create mode 100644 pubtext/html.dcl create mode 100644 pubtext/html.dtd create mode 100644 pubtext/html.soc create mode 100644 pubtext/japan.dcl create mode 100644 pubtext/opensp-implied.dcl create mode 100644 pubtext/xml.dcl create mode 100644 pubtext/xml.soc create mode 100644 sgmlnorm/.cvsignore create mode 100644 sgmlnorm/Makefile.am create mode 100644 sgmlnorm/Makefile.in create mode 100644 sgmlnorm/SGMLGenerator.cxx create mode 100644 sgmlnorm/SGMLGenerator.h create mode 100644 sgmlnorm/SgmlnormMessages.h create mode 100644 sgmlnorm/SgmlnormMessages.msg create mode 100644 sgmlnorm/SgmlnormMessages.rc create mode 100644 sgmlnorm/sgmlnorm.cxx create mode 100644 sgmlnorm/sgmlnorm.dsp create mode 100644 sp-generate.mak create mode 100644 spam/.cvsignore create mode 100644 spam/CopyEventHandler.cxx create mode 100644 spam/CopyEventHandler.h create mode 100644 spam/Makefile.am create mode 100644 spam/Makefile.in create mode 100644 spam/MarkupEventHandler.cxx create mode 100644 spam/MarkupEventHandler.h create mode 100644 spam/SpamMessages.h create mode 100644 spam/SpamMessages.msg create mode 100644 spam/SpamMessages.rc create mode 100644 spam/spam.cxx create mode 100644 spam/spam.dsp create mode 100644 spam/spam.rc create mode 100644 spam/spam_inst.cxx create mode 100644 spam/spam_inst.m4 create mode 100644 spcat/.cvsignore create mode 100644 spcat/Makefile.am create mode 100644 spcat/Makefile.in create mode 100644 spcat/SpcatMessages.h create mode 100644 spcat/SpcatMessages.msg create mode 100644 spcat/SpcatMessages.rc create mode 100644 spcat/spcat.cxx create mode 100644 spcat/spcat.dsp create mode 100644 spcat/spcat_inst.cxx create mode 100644 spcat/spcat_inst.m4 create mode 100644 spec.in create mode 100644 spent/.cvsignore create mode 100644 spent/Makefile.am create mode 100644 spent/Makefile.in create mode 100644 spent/SpentMessages.h create mode 100644 spent/SpentMessages.msg create mode 100644 spent/SpentMessages.rc create mode 100644 spent/spent.cxx create mode 100644 spent/spent.dsp create mode 100644 sunfix.sh create mode 100644 sx/.cvsignore create mode 100644 sx/Makefile.am create mode 100644 sx/Makefile.in create mode 100644 sx/SxMessages.h create mode 100644 sx/SxMessages.msg create mode 100644 sx/SxMessages.rc create mode 100644 sx/XmlOutputEventHandler.cxx create mode 100644 sx/XmlOutputEventHandler.h create mode 100644 sx/XmlOutputMessages.h create mode 100644 sx/XmlOutputMessages.msg create mode 100644 sx/XmlOutputMessages.rc create mode 100644 sx/sx.cxx create mode 100644 sx/sx.dsp create mode 100644 sx/sx.rc create mode 100644 sx/sx_inst.cxx create mode 100644 sx/sx_inst.m4 create mode 100644 tests/Makefile.am create mode 100644 tests/Makefile.in create mode 100755 tests/af-1 create mode 100755 tests/af-10 create mode 100755 tests/af-11 create mode 100755 tests/af-12 create mode 100755 tests/af-13 create mode 100755 tests/af-14 create mode 100755 tests/af-15 create mode 100755 tests/af-16 create mode 100755 tests/af-18 create mode 100755 tests/af-19 create mode 100755 tests/af-2 create mode 100755 tests/af-3 create mode 100755 tests/af-4 create mode 100755 tests/af-5 create mode 100755 tests/af-6 create mode 100755 tests/af-7 create mode 100755 tests/af-8 create mode 100755 tests/af-9 create mode 100755 tests/catalog-1 create mode 100755 tests/catalog-2 create mode 100755 tests/onsgmls-1 create mode 100755 tests/onsgmls-2 create mode 100755 tests/osnorm-1 create mode 100644 unicode/.cvsignore create mode 100644 unicode/Makefile.am create mode 100644 unicode/Makefile.in create mode 100644 unicode/catalog create mode 100644 unicode/demo.sgm create mode 100644 unicode/gensyntax.pl create mode 100644 unicode/unicode.sd create mode 100644 unicode/unicode.syn diff --git a/.cvsignore b/.cvsignore new file mode 100644 index 0000000..ef51cc5 --- /dev/null +++ b/.cvsignore @@ -0,0 +1,33 @@ +config.h +Makefile.in +ChangeLog +stamp-h.in +config.cache +configure +aclocal.m4 +config.log +libtool +config.status +Makefile +stamp-h +stamp-h1 +config.h.in +msggen.pl +*.tar.gz +*.spec +autom4te-2.53.cache +autom4te.cache +onsgmlnorm.1 +onsgmls.1 +osgmlnorm.1 +ospam.1 +ospent.1 +osx.1 +ospcat.1 +releasenotes.html +releasenotes.pdf +releasenotes.ps +stamp-h1.in +stamp-h2.in +stamp-h3.in +stamp-h4.in diff --git a/ABOUT-NLS b/ABOUT-NLS new file mode 100644 index 0000000..e32d52d --- /dev/null +++ b/ABOUT-NLS @@ -0,0 +1,996 @@ +1 Notes on the Free Translation Project +*************************************** + +Free software is going international! The Free Translation Project is +a way to get maintainers of free software, translators, and users all +together, so that free software will gradually become able to speak many +languages. A few packages already provide translations for their +messages. + + If you found this `ABOUT-NLS' file inside a distribution, you may +assume that the distributed package does use GNU `gettext' internally, +itself available at your nearest GNU archive site. But you do _not_ +need to install GNU `gettext' prior to configuring, installing or using +this package with messages translated. + + Installers will find here some useful hints. These notes also +explain how users should proceed for getting the programs to use the +available translations. They tell how people wanting to contribute and +work on translations can contact the appropriate team. + + When reporting bugs in the `intl/' directory or bugs which may be +related to internationalization, you should tell about the version of +`gettext' which is used. The information can be found in the +`intl/VERSION' file, in internationalized packages. + +1.1 Quick configuration advice +============================== + +If you want to exploit the full power of internationalization, you +should configure it using + + ./configure --with-included-gettext + +to force usage of internationalizing routines provided within this +package, despite the existence of internationalizing capabilities in the +operating system where this package is being installed. So far, only +the `gettext' implementation in the GNU C library version 2 provides as +many features (such as locale alias, message inheritance, automatic +charset conversion or plural form handling) as the implementation here. +It is also not possible to offer this additional functionality on top +of a `catgets' implementation. Future versions of GNU `gettext' will +very likely convey even more functionality. So it might be a good idea +to change to GNU `gettext' as soon as possible. + + So you need _not_ provide this option if you are using GNU libc 2 or +you have installed a recent copy of the GNU gettext package with the +included `libintl'. + +1.2 INSTALL Matters +=================== + +Some packages are "localizable" when properly installed; the programs +they contain can be made to speak your own native language. Most such +packages use GNU `gettext'. Other packages have their own ways to +internationalization, predating GNU `gettext'. + + By default, this package will be installed to allow translation of +messages. It will automatically detect whether the system already +provides the GNU `gettext' functions. If not, the included GNU +`gettext' library will be used. This library is wholly contained +within this package, usually in the `intl/' subdirectory, so prior +installation of the GNU `gettext' package is _not_ required. +Installers may use special options at configuration time for changing +the default behaviour. The commands: + + ./configure --with-included-gettext + ./configure --disable-nls + +will, respectively, bypass any pre-existing `gettext' to use the +internationalizing routines provided within this package, or else, +_totally_ disable translation of messages. + + When you already have GNU `gettext' installed on your system and run +configure without an option for your new package, `configure' will +probably detect the previously built and installed `libintl.a' file and +will decide to use this. This might not be desirable. You should use +the more recent version of the GNU `gettext' library. I.e. if the file +`intl/VERSION' shows that the library which comes with this package is +more recent, you should use + + ./configure --with-included-gettext + +to prevent auto-detection. + + The configuration process will not test for the `catgets' function +and therefore it will not be used. The reason is that even an +emulation of `gettext' on top of `catgets' could not provide all the +extensions of the GNU `gettext' library. + + Internationalized packages usually have many `po/LL.po' files, where +LL gives an ISO 639 two-letter code identifying the language. Unless +translations have been forbidden at `configure' time by using the +`--disable-nls' switch, all available translations are installed +together with the package. However, the environment variable `LINGUAS' +may be set, prior to configuration, to limit the installed set. +`LINGUAS' should then contain a space separated list of two-letter +codes, stating which languages are allowed. + +1.3 Using This Package +====================== + +As a user, if your language has been installed for this package, you +only have to set the `LANG' environment variable to the appropriate +`LL_CC' combination. Here `LL' is an ISO 639 two-letter language code, +and `CC' is an ISO 3166 two-letter country code. For example, let's +suppose that you speak German and live in Germany. At the shell +prompt, merely execute `setenv LANG de_DE' (in `csh'), +`export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). +This can be done from your `.login' or `.profile' file, once and for +all. + + You might think that the country code specification is redundant. +But in fact, some languages have dialects in different countries. For +example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The +country code serves to distinguish the dialects. + + The locale naming convention of `LL_CC', with `LL' denoting the +language and `CC' denoting the country, is the one use on systems based +on GNU libc. On other systems, some variations of this scheme are +used, such as `LL' or `LL_CC.ENCODING'. You can get the list of +locales supported by your system for your country by running the command +`locale -a | grep '^LL''. + + Not all programs have translations for all languages. By default, an +English message is shown in place of a nonexistent translation. If you +understand other languages, you can set up a priority list of languages. +This is done through a different environment variable, called +`LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' +for the purpose of message handling, but you still need to have `LANG' +set to the primary language; this is required by other parts of the +system libraries. For example, some Swedish users who would rather +read translations in German than English for when Swedish is not +available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. + + Special advice for Norwegian users: The language code for Norwegian +bokma*l changed from `no' to `nb' recently (in 2003). During the +transition period, while some message catalogs for this language are +installed under `nb' and some older ones under `no', it's recommended +for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and +older translations are used. + + In the `LANGUAGE' environment variable, but not in the `LANG' +environment variable, `LL_CC' combinations can be abbreviated as `LL' +to denote the language's main dialect. For example, `de' is equivalent +to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' +(Portuguese as spoken in Portugal) in this context. + +1.4 Translating Teams +===================== + +For the Free Translation Project to be a success, we need interested +people who like their own language and write it well, and who are also +able to synergize with other translators speaking the same language. +Each translation team has its own mailing list. The up-to-date list of +teams can be found at the Free Translation Project's homepage, +`http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams" +area. + + If you'd like to volunteer to _work_ at translating messages, you +should become a member of the translating team for your own language. +The subscribing address is _not_ the same as the list itself, it has +`-request' appended. For example, speakers of Swedish can send a +message to `sv-request@li.org', having this message body: + + subscribe + + Keep in mind that team members are expected to participate +_actively_ in translations, or at solving translational difficulties, +rather than merely lurking around. If your team does not exist yet and +you want to start one, or if you are unsure about what to do or how to +get started, please write to `translation@iro.umontreal.ca' to reach the +coordinator for all translator teams. + + The English team is special. It works at improving and uniformizing +the terminology in use. Proven linguistic skill are praised more than +programming skill, here. + +1.5 Available Packages +====================== + +Languages are not equally supported in all packages. The following +matrix shows the current state of internationalization, as of May 2005. +The matrix shows, in regard of each package, for which languages PO +files have been submitted to translation coordination, with a +translation percentage of at least 50%. + + Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB + +-------------------------------------------------+ + GNUnet | | + a2ps | [] [] [] [] [] | + aegis | () | + ant-phone | () | + anubis | [] | + ap-utils | | + aspell | [] [] [] [] | + bash | [] [] | + batchelor | [] | + bfd | | + bibshelf | [] | + binutils | [] | + bison | [] [] | + bluez-pin | [] [] [] [] | + clisp | [] [] | + console-tools | [] [] | + coreutils | [] [] [] [] | + cpio | | + cpplib | [] [] [] | + darkstat | [] () [] | + dialog | [] [] [] [] [] [] | + diffutils | [] [] [] [] [] | + doodle | [] | + e2fsprogs | [] [] | + enscript | [] [] [] [] | + error | [] [] [] [] | + fetchmail | [] [] () [] | + fileutils | [] [] | + findutils | [] [] [] | + flex | [] [] [] | + fslint | [] | + gas | | + gawk | [] [] [] | + gbiff | [] | + gcal | [] | + gcc | [] | + gettext-examples | [] [] [] [] | + gettext-runtime | [] [] [] [] | + gettext-tools | [] [] | + gimp-print | [] [] [] [] | + gip | | + gliv | [] | + glunarclock | | + gmult | [] [] | + gnubiff | () | + gnucash | [] () () [] | + gnucash-glossary | [] () | + gpe-aerial | [] [] | + gpe-beam | [] [] | + gpe-calendar | [] [] | + gpe-clock | [] [] | + gpe-conf | [] [] | + gpe-contacts | | + gpe-edit | [] | + gpe-go | [] | + gpe-login | [] [] | + gpe-ownerinfo | [] [] | + gpe-sketchbook | [] [] | + gpe-su | [] [] | + gpe-taskmanager | [] [] | + gpe-timesheet | [] | + gpe-today | [] [] | + gpe-todo | [] [] | + gphoto2 | [] [] [] [] | + gprof | [] [] | + gpsdrive | () () | + gramadoir | [] [] | + grep | [] [] [] [] [] [] | + gretl | | + gsasl | [] | + gss | | + gst-plugins | [] [] [] [] [] [] | + gstreamer | [] [] [] [] [] | + gtick | [] () | + gtkspell | [] [] [] | + hello | [] [] [] [] | + id-utils | [] [] | + impost | | + indent | [] [] | + iso_3166 | | + iso_3166_1 | [] [] [] [] [] | + iso_3166_2 | | + iso_3166_3 | [] | + iso_4217 | | + iso_639 | | + jpilot | [] | + jtag | | + jwhois | | + kbd | [] [] [] [] | + latrine | () | + ld | [] | + libc | [] [] [] [] [] | + libextractor | | + libgpewidget | [] [] [] | + libgphoto2 | [] | + libgphoto2_port | [] | + libgsasl | | + libiconv | [] [] [] [] [] | + libidn | | + lifelines | [] () | + lilypond | [] | + lingoteach | | + lynx | [] [] [] [] | + m4 | [] [] [] [] | + mailutils | [] | + make | [] [] | + man-db | [] () [] [] | + minicom | [] [] | + mysecretdiary | [] [] | + nano | [] () [] | + nano_1_0 | [] () [] [] | + opcodes | [] | + parted | [] [] [] [] | + psmisc | | + ptx | [] [] [] | + pwdutils | | + python | | + radius | [] | + recode | [] [] [] [] [] | + rpm | [] [] | + screem | | + scrollkeeper | [] [] [] [] [] [] [] [] | + sed | [] [] | + sh-utils | [] [] | + shared-mime-info | [] [] | + sharutils | [] [] [] [] [] | + silky | | + skencil | [] () | + sketch | [] () | + solfege | [] | + soundtracker | [] [] | + sp | [] | + stardict | [] | + tar | | + texinfo | [] [] | + textutils | [] [] [] | + tin | () () | + tp-robot | [] | + tuxpaint | [] [] [] [] [] [] [] | + unicode-han-tra... | | + unicode-transla... | | + util-linux | [] [] [] [] | + vorbis-tools | [] [] [] [] | + wastesedge | () | + wdiff | [] [] [] [] | + wget | | + xchat | [] [] [] [] [] | + xkeyboard-config | | + xpad | | + +-------------------------------------------------+ + af am ar az be bg bs ca cs cy da de el en en_GB + 10 0 0 2 7 5 0 40 43 2 51 91 19 1 14 + + eo es et eu fa fi fr ga gl he hi hr hu id is + +-----------------------------------------------+ + GNUnet | | + a2ps | [] [] [] | + aegis | | + ant-phone | [] | + anubis | [] | + ap-utils | [] | + aspell | [] [] | + bash | [] [] [] [] | + batchelor | [] [] | + bfd | [] | + bibshelf | [] [] | + binutils | [] [] | + bison | [] [] [] [] [] | + bluez-pin | [] [] [] [] [] [] | + clisp | [] [] | + console-tools | | + coreutils | [] [] [] [] [] | + cpio | [] [] | + cpplib | [] [] | + darkstat | [] () [] [] [] | + dialog | [] [] [] [] [] [] [] | + diffutils | [] [] [] [] [] [] [] [] [] | + doodle | [] | + e2fsprogs | [] [] | + enscript | [] [] | + error | [] [] [] [] [] | + fetchmail | [] | + fileutils | [] [] [] [] [] | + findutils | [] [] [] [] | + flex | [] [] [] | + fslint | [] | + gas | [] [] | + gawk | [] [] [] [] | + gbiff | [] | + gcal | [] [] | + gcc | [] | + gettext-examples | [] [] [] | + gettext-runtime | [] [] [] [] [] | + gettext-tools | [] [] | + gimp-print | [] [] | + gip | [] [] [] | + gliv | () | + glunarclock | [] [] [] | + gmult | [] [] | + gnubiff | () | + gnucash | [] () | + gnucash-glossary | [] | + gpe-aerial | [] [] | + gpe-beam | [] [] | + gpe-calendar | [] [] [] [] | + gpe-clock | [] [] [] | + gpe-conf | [] | + gpe-contacts | [] | + gpe-edit | [] [] | + gpe-go | [] [] | + gpe-login | [] [] [] | + gpe-ownerinfo | [] [] [] [] [] | + gpe-sketchbook | [] [] | + gpe-su | [] [] [] | + gpe-taskmanager | [] [] [] | + gpe-timesheet | [] [] [] [] | + gpe-today | [] [] [] [] | + gpe-todo | [] [] [] | + gphoto2 | [] [] [] [] | + gprof | [] [] [] | + gpsdrive | () () [] | + gramadoir | [] [] | + grep | [] [] [] [] [] [] [] [] [] [] [] | + gretl | [] [] | + gsasl | [] [] [] | + gss | [] | + gst-plugins | [] [] | + gstreamer | | + gtick | [] [] [] [] | + gtkspell | [] [] [] [] [] | + hello | [] [] [] [] [] [] [] [] [] [] [] [] [] | + id-utils | [] [] [] | + impost | [] [] | + indent | [] [] [] [] [] [] [] [] [] [] | + iso_3166 | [] [] [] | + iso_3166_1 | [] [] [] [] [] [] [] | + iso_3166_2 | [] | + iso_3166_3 | [] | + iso_4217 | [] [] [] | + iso_639 | [] [] [] [] | + jpilot | [] [] | + jtag | [] | + jwhois | [] [] [] [] | + kbd | [] [] | + latrine | [] [] | + ld | [] [] | + libc | [] [] [] [] [] | + libextractor | | + libgpewidget | [] [] [] [] [] | + libgphoto2 | [] [] [] | + libgphoto2_port | [] | + libgsasl | [] [] | + libiconv | [] [] [] [] [] [] [] [] [] [] | + libidn | [] [] | + lifelines | () | + lilypond | | + lingoteach | [] [] | + lynx | [] [] | + m4 | [] [] [] [] | + mailutils | [] [] | + make | [] [] [] [] [] [] [] | + man-db | () | + minicom | [] [] [] [] | + mysecretdiary | [] [] [] | + nano | [] [] () [] | + nano_1_0 | [] [] [] [] | + opcodes | [] [] [] | + parted | [] [] [] | + psmisc | [] | + ptx | [] [] [] [] [] [] [] [] [] | + pwdutils | | + python | | + radius | [] [] | + recode | [] [] [] [] [] [] [] | + rpm | [] | + screem | | + scrollkeeper | [] [] [] | + sed | [] [] [] [] [] [] | + sh-utils | [] [] [] [] [] [] | + shared-mime-info | [] [] [] [] [] [] | + sharutils | [] [] [] [] [] [] | + silky | [] | + skencil | [] [] | + sketch | [] [] | + solfege | | + soundtracker | [] [] | + sp | [] | + stardict | [] | + tar | [] [] [] [] | + texinfo | [] [] [] | + textutils | [] [] [] [] [] | + tin | [] () | + tp-robot | [] [] | + tuxpaint | [] [] [] [] [] [] [] [] | + unicode-han-tra... | | + unicode-transla... | [] [] | + util-linux | [] [] [] [] [] | + vorbis-tools | [] [] | + wastesedge | () | + wdiff | [] [] [] [] [] [] [] | + wget | [] [] [] [] | + xchat | [] [] [] [] [] | + xkeyboard-config | | + xpad | [] [] [] | + +-----------------------------------------------+ + eo es et eu fa fi fr ga gl he hi hr hu id is + 15 85 21 15 2 35 115 45 16 8 1 6 40 27 1 + + it ja ko ku lg lt lv mk mn ms mt nb nl nn no nso + +--------------------------------------------------+ + GNUnet | | + a2ps | () () [] [] () | + aegis | () | + ant-phone | [] | + anubis | [] [] [] | + ap-utils | | + aspell | [] [] | + bash | [] | + batchelor | [] | + bfd | | + bibshelf | [] | + binutils | | + bison | [] [] [] [] | + bluez-pin | [] [] | + clisp | [] | + console-tools | | + coreutils | [] [] | + cpio | | + cpplib | [] | + darkstat | [] [] | + dialog | [] [] | + diffutils | [] [] [] [] | + doodle | [] | + e2fsprogs | [] | + enscript | [] | + error | [] | + fetchmail | [] [] | + fileutils | [] [] [] | + findutils | [] [] | + flex | [] [] | + fslint | [] | + gas | | + gawk | [] [] | + gbiff | [] | + gcal | | + gcc | | + gettext-examples | [] [] [] | + gettext-runtime | [] [] [] [] | + gettext-tools | [] [] [] | + gimp-print | [] [] | + gip | [] | + gliv | [] | + glunarclock | [] [] | + gmult | [] [] | + gnubiff | () | + gnucash | [] () () [] | + gnucash-glossary | [] [] | + gpe-aerial | [] | + gpe-beam | [] | + gpe-calendar | [] | + gpe-clock | [] | + gpe-conf | [] | + gpe-contacts | | + gpe-edit | [] | + gpe-go | [] | + gpe-login | [] | + gpe-ownerinfo | [] | + gpe-sketchbook | [] | + gpe-su | [] | + gpe-taskmanager | [] [] | + gpe-timesheet | [] | + gpe-today | [] | + gpe-todo | [] | + gphoto2 | [] [] [] | + gprof | | + gpsdrive | () () () () | + gramadoir | () | + grep | [] [] [] [] | + gretl | [] | + gsasl | [] | + gss | | + gst-plugins | [] [] | + gstreamer | [] [] | + gtick | [] [] | + gtkspell | [] [] [] | + hello | [] [] [] [] [] [] [] [] [] | + id-utils | [] [] | + impost | | + indent | [] [] [] | + iso_3166 | [] | + iso_3166_1 | [] [] | + iso_3166_2 | [] | + iso_3166_3 | [] | + iso_4217 | [] [] [] | + iso_639 | [] [] [] | + jpilot | () () () | + jtag | | + jwhois | [] [] | + kbd | [] | + latrine | [] [] | + ld | | + libc | [] [] [] [] [] | + libextractor | | + libgpewidget | [] | + libgphoto2 | [] [] | + libgphoto2_port | [] [] | + libgsasl | [] | + libiconv | [] [] | + libidn | [] | + lifelines | [] | + lilypond | | + lingoteach | [] [] | + lynx | [] [] [] | + m4 | [] [] | + mailutils | | + make | [] [] [] | + man-db | () | + minicom | [] | + mysecretdiary | [] | + nano | [] [] [] | + nano_1_0 | [] [] [] [] | + opcodes | [] | + parted | [] [] [] [] | + psmisc | [] [] [] | + ptx | [] [] [] | + pwdutils | | + python | | + radius | | + recode | [] [] | + rpm | [] [] | + screem | [] | + scrollkeeper | [] [] [] | + sed | [] [] | + sh-utils | [] [] [] | + shared-mime-info | [] [] [] [] | + sharutils | [] [] [] | + silky | [] | + skencil | | + sketch | | + solfege | [] [] [] | + soundtracker | [] | + sp | () | + stardict | [] [] | + tar | [] [] [] | + texinfo | [] [] [] | + textutils | [] [] [] | + tin | | + tp-robot | [] | + tuxpaint | [] [] [] [] [] [] [] | + unicode-han-tra... | | + unicode-transla... | | + util-linux | [] [] [] | + vorbis-tools | [] | + wastesedge | [] | + wdiff | [] [] [] | + wget | [] | + xchat | [] [] [] [] [] | + xkeyboard-config | [] | + xpad | [] | + +--------------------------------------------------+ + it ja ko ku lg lt lv mk mn ms mt nb nl nn no nso + 46 35 11 2 1 1 2 2 3 11 0 15 96 7 5 0 + + or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv + +----------------------------------------------+ + GNUnet | | + a2ps | () [] [] [] [] [] [] | + aegis | () () | + ant-phone | [] | + anubis | [] [] [] | + ap-utils | () | + aspell | [] [] | + bash | [] [] [] | + batchelor | [] | + bfd | | + bibshelf | | + binutils | [] [] | + bison | [] [] [] [] [] | + bluez-pin | [] [] [] [] [] [] [] [] | + clisp | [] | + console-tools | [] | + coreutils | [] [] [] [] | + cpio | [] [] | + cpplib | | + darkstat | [] [] [] [] [] [] | + dialog | [] [] [] [] [] [] [] | + diffutils | [] [] [] [] [] [] | + doodle | [] | + e2fsprogs | [] [] | + enscript | [] [] [] [] | + error | [] [] [] | + fetchmail | [] [] [] [] | + fileutils | [] [] [] [] [] | + findutils | [] [] [] [] [] [] | + flex | [] [] [] [] [] | + fslint | [] [] [] | + gas | | + gawk | [] [] [] [] | + gbiff | [] | + gcal | [] | + gcc | | + gettext-examples | [] [] [] [] [] [] | + gettext-runtime | [] [] [] [] [] [] [] | + gettext-tools | [] [] [] [] [] [] [] | + gimp-print | [] [] | + gip | [] [] [] | + gliv | [] [] [] | + glunarclock | [] [] [] [] [] [] | + gmult | [] [] [] [] | + gnubiff | () [] | + gnucash | () [] [] [] [] | + gnucash-glossary | [] [] [] | + gpe-aerial | [] [] [] [] [] [] | + gpe-beam | [] [] [] [] [] [] | + gpe-calendar | [] [] [] [] [] [] [] | + gpe-clock | [] [] [] [] [] [] [] | + gpe-conf | [] [] [] [] [] [] | + gpe-contacts | [] [] [] [] | + gpe-edit | [] [] [] [] [] [] [] | + gpe-go | [] [] [] [] [] | + gpe-login | [] [] [] [] [] [] [] | + gpe-ownerinfo | [] [] [] [] [] [] [] | + gpe-sketchbook | [] [] [] [] [] [] [] | + gpe-su | [] [] [] [] [] [] [] | + gpe-taskmanager | [] [] [] [] [] [] [] | + gpe-timesheet | [] [] [] [] [] [] [] | + gpe-today | [] [] [] [] [] [] [] | + gpe-todo | [] [] [] [] [] [] [] [] | + gphoto2 | [] [] [] [] | + gprof | [] [] [] | + gpsdrive | [] [] | + gramadoir | [] | + grep | [] [] [] [] [] [] [] | + gretl | [] | + gsasl | [] [] [] [] [] | + gss | [] [] [] | + gst-plugins | [] [] [] [] | + gstreamer | [] [] [] [] | + gtick | [] [] [] | + gtkspell | [] [] [] [] [] [] | + hello | [] [] [] [] [] [] [] | + id-utils | [] [] [] [] | + impost | | + indent | [] [] [] [] [] [] | + iso_3166 | [] [] [] [] [] | + iso_3166_1 | [] [] [] [] | + iso_3166_2 | | + iso_3166_3 | [] [] [] | + iso_4217 | [] [] | + iso_639 | [] [] [] | + jpilot | | + jtag | [] | + jwhois | [] [] [] () () | + kbd | [] [] [] | + latrine | [] [] | + ld | [] | + libc | [] [] [] [] [] | + libextractor | [] | + libgpewidget | [] [] [] [] [] [] | + libgphoto2 | [] [] | + libgphoto2_port | [] | + libgsasl | [] [] [] | + libiconv | [] [] [] [] [] [] [] [] [] [] | + libidn | [] () | + lifelines | [] [] | + lilypond | | + lingoteach | [] | + lynx | [] [] [] | + m4 | [] [] [] [] [] | + mailutils | [] [] [] | + make | [] [] [] [] | + man-db | [] [] | + minicom | [] [] [] [] | + mysecretdiary | [] [] [] [] | + nano | [] [] [] | + nano_1_0 | [] [] [] [] | + opcodes | [] [] | + parted | [] [] [] [] | + psmisc | [] [] | + ptx | [] [] [] [] [] [] | + pwdutils | [] | + python | | + radius | [] [] | + recode | [] [] [] [] [] [] | + rpm | [] [] [] [] | + screem | | + scrollkeeper | [] [] [] [] [] [] [] | + sed | [] [] [] [] [] [] [] [] | + sh-utils | [] [] [] | + shared-mime-info | [] [] [] [] [] [] | + sharutils | [] [] [] | + silky | [] | + skencil | [] [] [] | + sketch | [] [] [] | + solfege | | + soundtracker | [] [] | + sp | | + stardict | [] [] | + tar | [] [] [] [] | + texinfo | [] [] [] [] | + textutils | [] [] [] | + tin | | + tp-robot | [] | + tuxpaint | [] [] [] [] [] [] [] [] | + unicode-han-tra... | | + unicode-transla... | | + util-linux | [] [] [] | + vorbis-tools | [] [] | + wastesedge | | + wdiff | [] [] [] [] [] [] | + wget | | + xchat | [] [] [] [] [] [] [] | + xkeyboard-config | | + xpad | | + +----------------------------------------------+ + or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv + 1 3 47 29 57 6 78 73 5 44 12 12 50 85 + + ta tg th tk tr uk ven vi wa xh zh_CN zh_TW zu + +-----------------------------------------------+ + GNUnet | | 0 + a2ps | [] [] [] | 19 + aegis | | 0 + ant-phone | [] [] | 5 + anubis | [] [] [] | 11 + ap-utils | () [] | 2 + aspell | [] [] [] | 13 + bash | [] | 11 + batchelor | [] [] | 7 + bfd | | 1 + bibshelf | [] | 5 + binutils | [] | 6 + bison | [] [] | 18 + bluez-pin | [] [] [] [] [] | 25 + clisp | | 7 + console-tools | [] [] | 5 + coreutils | [] [] | 17 + cpio | [] [] [] | 7 + cpplib | [] [] | 8 + darkstat | [] () () | 15 + dialog | [] [] [] | 25 + diffutils | [] [] [] [] | 28 + doodle | [] | 5 + e2fsprogs | [] | 8 + enscript | [] | 12 + error | [] [] [] | 16 + fetchmail | [] | 12 + fileutils | [] [] [] | 18 + findutils | [] [] | 17 + flex | [] [] | 15 + fslint | [] | 7 + gas | [] | 3 + gawk | [] | 14 + gbiff | [] | 5 + gcal | [] | 5 + gcc | [] [] | 4 + gettext-examples | [] [] [] [] [] | 21 + gettext-runtime | [] [] [] [] [] | 25 + gettext-tools | [] [] [] [] [] | 19 + gimp-print | [] | 11 + gip | [] | 8 + gliv | [] [] | 7 + glunarclock | [] [] | 13 + gmult | [] [] [] | 13 + gnubiff | [] | 3 + gnucash | () [] | 10 + gnucash-glossary | [] [] | 9 + gpe-aerial | [] [] | 13 + gpe-beam | [] [] | 13 + gpe-calendar | [] [] [] [] | 18 + gpe-clock | [] [] [] [] | 17 + gpe-conf | [] [] | 12 + gpe-contacts | [] [] | 7 + gpe-edit | [] [] [] [] | 15 + gpe-go | [] [] | 11 + gpe-login | [] [] [] [] [] | 18 + gpe-ownerinfo | [] [] [] [] | 19 + gpe-sketchbook | [] [] | 14 + gpe-su | [] [] [] | 16 + gpe-taskmanager | [] [] [] | 17 + gpe-timesheet | [] [] [] [] | 17 + gpe-today | [] [] [] [] [] | 19 + gpe-todo | [] [] [] | 17 + gphoto2 | [] [] [] | 18 + gprof | [] [] | 10 + gpsdrive | | 3 + gramadoir | [] | 6 + grep | [] [] [] [] | 32 + gretl | | 4 + gsasl | [] [] | 12 + gss | [] | 5 + gst-plugins | [] [] [] | 17 + gstreamer | [] [] [] [] | 15 + gtick | [] | 11 + gtkspell | [] [] [] [] | 21 + hello | [] [] [] [] | 37 + id-utils | [] [] | 13 + impost | [] | 3 + indent | [] [] [] [] | 25 + iso_3166 | [] [] [] | 12 + iso_3166_1 | [] [] | 20 + iso_3166_2 | | 2 + iso_3166_3 | [] [] | 8 + iso_4217 | [] [] | 10 + iso_639 | [] [] | 12 + jpilot | [] [] [] | 6 + jtag | | 2 + jwhois | [] [] [] | 12 + kbd | [] [] | 12 + latrine | [] [] | 8 + ld | [] | 5 + libc | [] [] | 22 + libextractor | | 1 + libgpewidget | [] [] | 17 + libgphoto2 | [] | 9 + libgphoto2_port | | 5 + libgsasl | [] | 7 + libiconv | [] [] [] [] [] | 32 + libidn | [] [] | 6 + lifelines | | 4 + lilypond | | 1 + lingoteach | [] | 6 + lynx | [] [] [] | 15 + m4 | [] [] | 17 + mailutils | [] | 7 + make | [] [] | 18 + man-db | | 5 + minicom | | 11 + mysecretdiary | [] [] | 12 + nano | [] [] | 13 + nano_1_0 | [] [] [] | 18 + opcodes | [] [] | 9 + parted | [] [] [] | 18 + psmisc | [] | 7 + ptx | [] [] | 23 + pwdutils | | 1 + python | | 0 + radius | [] | 6 + recode | [] [] | 22 + rpm | [] [] | 11 + screem | | 1 + scrollkeeper | [] [] [] | 24 + sed | [] [] [] | 21 + sh-utils | [] | 15 + shared-mime-info | [] [] [] | 21 + sharutils | [] [] [] | 20 + silky | | 3 + skencil | | 6 + sketch | | 6 + solfege | | 4 + soundtracker | [] | 8 + sp | [] | 3 + stardict | [] [] [] [] | 10 + tar | [] [] [] [] | 15 + texinfo | [] [] | 14 + textutils | [] [] [] | 17 + tin | | 1 + tp-robot | [] [] [] | 8 + tuxpaint | [] [] [] [] | 34 + unicode-han-tra... | | 0 + unicode-transla... | | 2 + util-linux | [] [] [] | 18 + vorbis-tools | [] | 10 + wastesedge | | 1 + wdiff | [] [] | 22 + wget | [] [] | 7 + xchat | [] [] [] [] | 26 + xkeyboard-config | [] | 2 + xpad | [] | 5 + +-----------------------------------------------+ + 73 teams ta tg th tk tr uk ven vi wa xh zh_CN zh_TW zu + 149 domains 0 0 0 1 77 30 0 92 16 0 42 32 0 1746 + + Some counters in the preceding matrix are higher than the number of +visible blocks let us expect. This is because a few extra PO files are +used for implementing regional variants of languages, or language +dialects. + + For a PO file in the matrix above to be effective, the package to +which it applies should also have been internationalized and +distributed as such by its maintainer. There might be an observable +lag between the mere existence a PO file and its wide availability in a +distribution. + + If May 2005 seems to be old, you may fetch a more recent copy of +this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date +matrix with full percentage details can be found at +`http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'. + +1.6 Using `gettext' in new packages +=================================== + +If you are writing a freely available program and want to +internationalize it you are welcome to use GNU `gettext' in your +package. Of course you have to respect the GNU Library General Public +License which covers the use of the GNU `gettext' library. This means +in particular that even non-free programs can use `libintl' as a shared +library, whereas only free software can use `libintl' as a static +library or use modified versions of `libintl'. + + Once the sources are changed appropriately and the setup can handle +the use of `gettext' the only thing missing are the translations. The +Free Translation Project is also available for packages which are not +developed inside the GNU project. Therefore the information given above +applies also for every other Free Software Project. Contact +`translation@iro.umontreal.ca' to make the `.pot' files available to +the translation teams. + diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..f4907be --- /dev/null +++ b/AUTHORS @@ -0,0 +1,15 @@ +James Clark: +Original author of the SP suite, from which OpenSP is derived. + +Henry Thompson: +Initial autoconf support for SP. + +Cees A. de Groot: +Autoconf support for SP. + +Matthias Clasen: +spcat, DTDDECL, CONCUR, improved support of Annex K, +autoconf & automake setup. + +Peter Newcomb, Epremis Corp.: +MessageModule, support for HyTime Amendment 1 (IS10744:arch PI) diff --git a/BUGS b/BUGS new file mode 100644 index 0000000..e56d6d9 --- /dev/null +++ b/BUGS @@ -0,0 +1,4 @@ +Some tests of the testsuite will fail at the moment, if you run +'make check'; test which are known to fail (mostly Architectual Forms +(SF) processing related) are listed as SHOWSTOPPERS in +tests/Makefile.am. (2003-10-10). diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..179f0c5 --- /dev/null +++ b/COPYING @@ -0,0 +1,25 @@ +Copyright (c) 1994, 1995, 1996, 1997, 1998 James Clark + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +``Software''), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL JAMES CLARK BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of James Clark shall +not be used in advertising or otherwise to promote the sale, use or +other dealings in this Software without prior written authorization +from James Clark. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..a828114 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,2634 @@ +2005-12-11 Neil Roeth + + * docsrc/releasenotes.xml: + Changed release date to December 2005 from November 2005. + + * docsrc/Makefile.am: + Redefined XMLDCL to be one included here, $(top_srcdir)/pubtext/xml.dcl. + Use EXTRADOCS variable now defined in configure step to determine if PDF and + PS format release notes will be built. + + * configure.in: + Added --enable-full-doc-build option to build PDF and PS docs as well as man + and HTML. Only check for necessary tools if enabled. + Removed search for xml.dcl, we will always use the one in pubtext. + +2005-12-10 Neil Roeth + + * sx/Makefile.am, spent/Makefile.am, spcat/Makefile.am, spam/Makefile.am, sgmlnorm/Makefile.am, nsgmls/Makefile.am, lib/Makefile.am: + Gerrit Haase's patch: add LTLIBINTL to avoid undefined references. + +2005-12-09 Neil Roeth + + * po/fr.po: Fixed typo. + + * autoinit.sh: Added libtoolize to avoid error of missing ltmain.sh. + +2005-12-07 Neil Roeth + + * docsrc/osx.xml: + Made purpose a one-liner because it is used for man -k and apropos, so it + should be short. Moved long paragraph that was there to description section. + + * docsrc/ospent.xml: + Made purpose a bit more descriptive so it makes more sense without context. + + * docsrc/ospam.xml, docsrc/onsgmls.xml, docsrc/osgmlnorm.xml: + Made purpose a one-liner because it is used for man -k and apropos, so it + should be short. Moved long paragraph that was there to description section. + +2005-12-07 Karl Eichwalder + + * include/InternalInputSource.h: Prepare for gcc 4.1. + +2005-10-23 Neil Roeth + + * lib/Text.cxx, lib/Attribute.cxx: Make operator= return *this. + + * lib/ExtendEntityManager.cxx: + Fix operator= to return *this (two places). + + * lib/ArcEngine.cxx: + Ensure that toIndex and fromIndex are not invalidAtt OR contentPseudoAtt + before using to index into arrays. Those constants are defined to be the + unsigned version of -1 and -2, which are very large numbers, and cause + segfaults when array elements with those indexes are accessed. + + * nsgmls/RastEventHandler.h, lib/Text.cxx, lib/Syntax.cxx, lib/SdText.cxx, lib/Sd.cxx, lib/Recognizer.h, lib/Recognizer.cxx, lib/Notation.cxx, lib/MessageFormatter.cxx, lib/Message.cxx, lib/Markup.cxx, lib/Lpd.cxx, lib/Location.cxx, lib/ExtendEntityManager.cxx, lib/Event.cxx, lib/EntityCatalog.cxx, lib/ElementType.cxx, lib/Dtd.cxx: + Added functions to eliminate g++ 4.0 warnings. + +2005-10-22 Neil Roeth + + * lib/ContentToken.cxx, lib/CodingSystemKit.cxx, lib/CodingSystem.cxx: + Added functions to eliminate g++ 4.0 warnings. + + * include/Vector.h: + Changed order of initializations to match order of declaration in class. + + * include/UnivCharsetDesc.h, include/Text.h, include/Syntax.h, include/ShortReferenceMap.h, include/SdText.h, include/Sd.h, include/OpenElement.h, include/Notation.h: + Added functions to eliminate g++ 4.0 warnings. + + * include/MessageFormatter.h: + Added functions to eliminate g++ 4.0 warnings. + Changed order of initializations to match order of declaration in class. + + * include/MessageBuilder.h, include/Message.h, include/Markup.h, include/Lpd.h, include/Location.h, include/ExtendEntityManager.h, include/Event.h, include/EntityCatalog.h, include/Entity.h, include/ElementType.h, include/Dtd.h, include/ContentToken.h, include/CodingSystemKit.h, include/CodingSystem.h, include/CharsetInfo.h, lib/CharsetDecl.cxx, include/CharsetDecl.h, lib/Attribute.cxx: + Added functions to eliminate g++ 4.0 warnings. + + * include/Attribute.h: + Added missing prototypes to eliminate g++ 4.0 warnings. + + * configure.in: + Incremented SP_LIBOSP_CUR in preparation for upcoming checkins that will + technically break binary compatilibility. + + * Makefile.am: Added autoinit.sh to EXTRA_DIST. + +2005-09-30 Neil Roeth + + * tests/Makefile.am: + Revert to using SHOWSTOPPERS variable after discussion with Karl Eichwalder. + Changed EXTRA_DIST and other variables so that all tests get put into dist + regardless of whether they are being run or not, e.g., if you run + "make distcheck SHOWSTOPPERS=" then only the tests that are known to pass will + be run during the make check part, but all tests, including the ones that are + known to pass, will be in the dist tarball. + Added comment that the tests that fail imply there are problems that need to + be tracked down and fixed. + +2005-09-27 Neil Roeth + + * docsrc/releasenotes.xml: Initial update for 1.5.2. + +2005-09-24 Neil Roeth + + * tests/Makefile.am: + Changed name of variable from SHOWSTOPPERS to XFAIL_TESTS. These are tests + that are expected to fail, and the latter name is known by automake to tag + them as such. This allows a "make check" to complete with a message that some + tests failed, but were expected to, and the make returns a normal exit code. + Use DTDDECL automake conditional to control whether catalog-1 is in + XFAIL_TESTS. This test is the one that tests DTDDECL support, so if that is + disabled then the test is expected to fail. + + * lib/SOEntityCatalog.cxx: + Use new config preprocessor directive SP_DTDDECL to control whether DTDDECL + support is enabled or not. + + * configure.in: + Added option to disable DTDDECL support. If a default catalog is used, then + the DTDDECL support causes it to be read over and over again, causing a huge + performance hit if there are a significant number of entries in it. + +2005-09-23 Neil Roeth + + * po/Makefile.in.in: + Be more precise about updating $(srcdir)/$(DOMAIN).pot so that both a normal + make and a make distcheck work. + + * po/Makefile.in.in: Added PERL variable to enable running msggen.pl. + Use old method of generating $(DOMAIN).pot with msggen.pl instead of newer + method using xgettext. Should update to use the latter eventually. + + * docsrc/Makefile.am: + Put man page XML sources, releasenotes.{xml,dsl} and logo.png in EXTRA_DIST + variable so they get put into dist tarball. + Added $(srcdir)/ prefix to files where necessary so docs will build even when + build area differs from source area, e.g., as when make distcheck is done. + Added (define %openjade-logo% "$(srcdir)/logo.png") so the logo can be found + when creating releasenotes.{pdf,ps} + + * Makefile.am: + Use @DOCSRC@ variable in SUBDIRS so that it will not be included if doc + building is disabled. + +2005-09-19 Neil Roeth + + * configure.in: + Change AM_PROG_LIBTOOL to AC_PROG_LIBTOOL. + Added --disable-doc-build option. + Moved checks for doc building so they are only executed if building docs. + Added error messages for doc building programs so it is more clear what is + missing. + Added /usr/share/sgml/declaration to search path for xml.dcl. + +2005-08-28 Bjoern Hoehrmann + + * docsrc/onsgmls.xml: + added documentation for the revised restricted file reading + behavior on win32, etc + +2005-08-27 Terje Bless + + * include/UnivCharsetDesc.h: + Fiddle #include's around as it seems to appease GCC 3.4 and does no harm + for GCC 4.0. + +2005-08-26 Terje Bless + + * configure.in: Bump version to 1.5.2, to shut check-news up. + + * po/Makefile.in.in: Restore Neil Roeth's domain=soname for .po files. + + * po/remove-potcdate.sed: Add another missing gettext file. + + * po/remove-potcdate.sed: New file. + + * configure.in, docsrc/Makefile.am: + Make autoconf check for the utils needed for docsrc/ building, and let + xmlto choose the stylesheet to use for the manpages. + + ( The rest of the docs should probably also be made by xmlto, but it's + not currently working on my box so we'll do iut the old way for now. ) + + * configure.in, intl/dcigettext.c, intl/langprefs.c, intl/libgnuintl.h.in, intl/localcharset.h, intl/log.c, intl/printf-args.c, intl/printf-args.h, intl/printf-parse.c, intl/printf-parse.h, intl/printf.c, intl/relocatable.c, intl/relocatable.h, intl/vasnprintf.c, intl/vasnprintf.h, intl/vasnwprintf.h, intl/wprintf-parse.h, intl/xsize.h, po/ChangeLog, po/Makevars, po/Rules-quot, po/boldquot.sed, po/en@boldquot.header, po/en@quot.header, po/insert-header.sin, po/quot.sed, po/remove-potcdate.sin: + Add (new) files left out of previous checkin. + + * intl/langprefs.c, intl/libgnuintl.h.in, intl/localcharset.h, intl/log.c, intl/printf-args.c, intl/printf-args.h, intl/printf-parse.c, intl/printf-parse.h, intl/printf.c, intl/relocatable.c, intl/relocatable.h, intl/vasnprintf.c, intl/vasnprintf.h, intl/vasnwprintf.h, intl/wprintf-parse.h, intl/xsize.h, po/ChangeLog, po/Makevars, po/Rules-quot, po/boldquot.sed, po/en@boldquot.header, po/en@quot.header, po/insert-header.sin, po/quot.sed, po/remove-potcdate.sin, m4/codeset.m4, m4/gettext.m4, m4/glibc2.m4, m4/glibc21.m4, m4/iconv.m4, m4/intdiv0.m4, m4/intmax.m4, m4/inttypes-pri.m4, m4/inttypes.m4, m4/inttypes_h.m4, m4/isc-posix.m4, m4/lcmessage.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4, m4/longdouble.m4, m4/longlong.m4, m4/nls.m4, m4/po.m4, m4/printf-posix.m4, m4/progtest.m4, m4/signed.m4, m4/size_max.m4, m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4: + New file. + + * ABOUT-NLS, ChangeLog, Makefile.am, config.rpath, configure.in, intl/COPYING.LIB-2.0, intl/COPYING.LIB-2.1, intl/ChangeLog, intl/Makefile.in, intl/VERSION, intl/bindtextdom.c, intl/config.charset, intl/dcgettext.c, intl/dcigettext.c, intl/dcngettext.c, intl/dgettext.c, intl/dngettext.c, intl/eval-plural.h, intl/explodename.c, intl/finddomain.c, intl/gettext.c, intl/gettextP.h, intl/gmo.h, intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c, intl/libgnuintl.h, intl/loadinfo.h, intl/loadmsgcat.c, intl/localcharset.c, intl/locale.alias, intl/localealias.c, intl/localename.c, intl/ngettext.c, intl/os2compat.c, intl/os2compat.h, intl/osdep.c, intl/plural-exp.c, intl/plural-exp.h, intl/plural.c, intl/plural.y, intl/ref-add.sin, intl/ref-del.sin, intl/textdomain.c, m4/codeset.m4, m4/gettext.m4, m4/glibc2.m4, m4/glibc21.m4, m4/iconv.m4, m4/intdiv0.m4, m4/intmax.m4, m4/inttypes-pri.m4, m4/inttypes.m4, m4/inttypes_h.m4, m4/isc-posix.m4, m4/lcmessage.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4, m4/longdouble.m4, m4/longlong.m4, m4/nls.m4, m4/po.m4, m4/printf-posix.m4, m4/progtest.m4, m4/signed.m4, m4/size_max.m4, m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4, po/Makefile.in.in, po/de.po, po/fr.po, po/ja.po, po/sv.po, po/tr.po: + Upgrading gettext to 0.14.5 and including necessary .m4 files. + + * spec.in: Slightly tweak spec towards Fedora guidelines; + for Vendor, Packager, Copyright vs. License, and BuildRoot. + + * configure.in: Tell automake about our embedded gettext version. + + +2005-08-26 Terje Bless (via gettextize) + + * m4/codeset.m4: Upgrade to gettext-0.14.5. + * m4/gettext.m4: Upgrade to gettext-0.14.5. + * m4/glibc2.m4: New file, from gettext-0.14.5. + * m4/glibc21.m4: Upgrade to gettext-0.14.5. + * m4/iconv.m4: Upgrade to gettext-0.14.5. + * m4/intdiv0.m4: New file, from gettext-0.14.5. + * m4/intmax.m4: New file, from gettext-0.14.5. + * m4/inttypes.m4: New file, from gettext-0.14.5. + * m4/inttypes_h.m4: New file, from gettext-0.14.5. + * m4/inttypes-pri.m4: New file, from gettext-0.14.5. + * m4/isc-posix.m4: Upgrade to gettext-0.14.5. + * m4/lcmessage.m4: Upgrade to gettext-0.14.5. + * m4/lib-ld.m4: Upgrade to gettext-0.14.5. + * m4/lib-link.m4: Upgrade to gettext-0.14.5. + * m4/lib-prefix.m4: Upgrade to gettext-0.14.5. + * m4/longdouble.m4: New file, from gettext-0.14.5. + * m4/longlong.m4: New file, from gettext-0.14.5. + * m4/nls.m4: New file, from gettext-0.14.5. + * m4/po.m4: New file, from gettext-0.14.5. + * m4/printf-posix.m4: New file, from gettext-0.14.5. + * m4/progtest.m4: Upgrade to gettext-0.14.5. + * m4/signed.m4: New file, from gettext-0.14.5. + * m4/size_max.m4: New file, from gettext-0.14.5. + * m4/stdint_h.m4: New file, from gettext-0.14.5. + * m4/uintmax_t.m4: New file, from gettext-0.14.5. + * m4/ulonglong.m4: New file, from gettext-0.14.5. + * m4/wchar_t.m4: New file, from gettext-0.14.5. + * m4/wint_t.m4: New file, from gettext-0.14.5. + * m4/xsize.m4: New file, from gettext-0.14.5. + * Makefile.am (SUBDIRS): Remove intl. + (ACLOCAL_AMFLAGS): New variable. + (EXTRA_DIST): Add mkinstalldirs. + * configure.in (AM_GNU_GETTEXT_VERSION): Bump to 0.14.5. + (AC_CONFIG_FILES): Add intl/Makefile. + +2005-08-15 02:25 Bjoern Hoehrmann + + * sx/XmlOutputEventHandler.cxx: explicit const char* to char* + conversion for VS.NET 2005 Beta2 + +2005-08-15 02:09 Bjoern Hoehrmann + + * lib/xentmgr_inst.m4: fix for vs.net when building with + /Zc:wchar_t + +2005-08-15 00:05 Bjoern Hoehrmann + + * lib/Sd.cxx: make gcc happy again + +2005-08-14 22:49 Bjoern Hoehrmann + + * lib/Sd.cxx: initialize implydefElement_ so OpenSP does not assume + some random value + +2005-07-21 16:12 Terje Bless + + * Makefile.am, configure.in, docsrc/Makefile, docsrc/Makefile.am: + Use automake/autoconf to generate man pages and + releasenotes.{ps|pdf|html}. + +2005-07-15 16:03 Terje Bless + + * acinclude.m4: Adding copious quoting for Automake >= 1.8; cf. + + +2005-07-15 16:01 Terje Bless + + * BUILDING: Add note about missing gettext-devel/gettext.m4 causing + aclocal complaints for undefined AM_GNU_GETTEXT macro. + +2004-09-07 06:45 Bjoern Hoehrmann + + * lib/PosixStorage.cxx: make -R consistent with common practise on + Win32 + +2004-09-07 05:15 Bjoern Hoehrmann + + * lib/parseDecl.cxx: allow applications to get non-random location + information for dtd events for implied dtds + +2004-09-04 18:41 Bjoern Hoehrmann + + * doc/generic.htm, generic/ParserEventGeneratorKit.h, + lib/ParserEventGeneratorKit.cxx: adding --error-numbers to + generic interface + +2004-08-29 14:57 Bjoern Hoehrmann + + * lib/lib.dsp: use proper paths to refer to source files of the + generic interface + +2004-08-28 21:11 Bjoern Hoehrmann + + * sp-generate.mak: turn off error checking for `del`, the relevant + files do not exist for builds from CVS which causes the entire + make process to fail + +2004-08-26 05:58 Bjoern Hoehrmann + + * sx/: XmlOutputEventHandler.cxx, XmlOutputEventHandler.h: [ 970258 + ] Patch to make osx compile in MSVC -- Thanks to Tony Dodd + +2004-08-26 05:39 Bjoern Hoehrmann + + * lib/parseParam.cxx: fix for markup declaration memory leak, see + http://sourceforge.net/mailarchive/forum.php?thread_id=5381372&forum_id=2437 + +2004-08-23 02:01 Bjoern Hoehrmann + + * lib/parseDecl.cxx: Dead memory-leaking code, see + http://sourceforge.net/mailarchive/forum.php?thread_id=5381372&forum_id=2437 + +2004-06-30 Karl Eichwalder + + * acinclude.m4: Add missing quotations. + +2004-06-26 19:11 liamquinn + + * doc/index.htm: Fixed broken link to NEWS (bug 666497). + +2004-06-26 19:05 liamquinn + + * docsrc/osx.xml: Fixed -l option in man page synopsis (bug + 891323). + +2004-06-09 Karl Eichwalder + + * tests/onsgmls-2: Make sure path to the binary will not come + into the way. + +2004-06-09 Karl Eichwalder + + * configure.in (ALL_LINGUAS): Remove it; only po/LINGUAS is required. + +2004-06-09 Karl Eichwalder + + * include/MessageReporter.h: Add missing return; (thanks to Marcus + Meissner). + * lib/URLStorage.cxx (open): Likewise. + +2004-05-23 01:57 Bjoern Hoehrmann + + * SP.dsw, msggen.pl.in, sp-generate.mak, include/Message.h, + include/MessageReporter.h, include/config.h.old.in, + lib/MessageTable.cxx, lib/lib.dsp: Win32 patch, see + http://lists.w3.org/Archives/Public/www-archive/2004Jan/0081.html + +2004-04-09 04:14 Terje Bless + + * spec.in: Merge "today" changelog entires into one entry (dunno + what I was thinking). + +2004-04-09 03:58 Terje Bless + + * spec.in: Merging in spec file changes from HEAD; add man pages to + %files section and change the *.mo files to include the library + major revision. + +2004-04-09 03:54 Terje Bless + + * spec.in: Adding man pages to the %files section for the OpenSP + package. + +2004-04-09 03:51 Terje Bless + + * spec.in: Use _datadir macro for doc files; merged from + opensp_1_5_branch, change by Karl Eichwalder and Ville Skytta. + +2004-04-09 03:38 Terje Bless + + * spec.in: Tweak names of l10n/*.mo files in the %files section. + These seem to get the library's major revision appended to the + basename for some reason. + +2004-01-16 Karl Eichwalder + + * include/RangeMap.cxx: Include "constant.h" to make it compile + with GCC 3.4 (thanks to Marcus Meissner). + +2003-11-03 Karl Eichwalder + + * po/LINGUAS (Tag): Add 'tr' + * po/tr.po (Tag): New file from + http://www.iro.umontreal.ca/~gnutra/maint/sp/ . + * po/de.po (Tag): Update from + http://www.iro.umontreal.ca/~gnutra/maint/sp/ . + * po/fr.po (Tag): Likewise. + +2003-10-19 Karl Eichwalder + + * tests/onsgmls-2: New file. Test --restricted and --directory= . + + * tests/Makefile.am (TESTS): Add onsgmls-2. + +2003-10-10 Karl Eichwalder + + * Makefile.am (pkgdoc_DATA): Add BUGS. + + * BUGS: New file. + + * tests/Makefile.am (TESTS_ENVIRONMENT): Add + ../sgmlnorm:../sx:../spent:../spcat:../spam to PATH. + +2003-09-14 08:26 Neil Roeth + + Make sure DESTDIR is handled correctly in po/Makefile + +2003-09-13 08:48 Ian Castle + + * Add ospcat man page + +2003-09-03 Karl Eichwalder + + * Add testsuite from opensp_1_5_tests_branch. + +2003-08-31 12:09 Jessica Perry Hekman + + Add new options (-x preserve-case, -x no-overwrite ) to osx + + preserve-case: + + Preserve casing as specified in the DTD for element names; + attribute names; attribute values which are token lists. + + no-overwrite: + + When preserving internal or external entities, multiple output + files will be written. If this option is specified, do not + overwrite existing files; instead, attempt to append a number to + the end of the original filename to create a unique filename. + Exit with an error if too many (100) such files already exist. + +2003-08-30 11:54 Neil Roeth + + Build Infrastructure/Localisation Changes + + The change is to add versions to the translations so that + multiple versions of libosp, i.e., with different SONAMEs, can + exist simultaneously without stomping on each other's files. + + Without this, the Debian package would not upgrade properly.  + Since the next release will require a new SONAME (recent changes + made the ABI different), it makes sense to include this change in + the next release. + + I accomplished the versioning by adding a version number to + SP_MESSAGE_DOMAIN, and it made sense to use the library SONAME + for that.  So, I created a new variable in configure.in called + SP_LIBOSP_CUR to be the "current" part of the SONAME, and used + that in SP_MESSAGE_DOMAIN, and also referenced that in + lib/Makefile to to actually set the SONAME. + +2003-08-30 09:56 Peter O'Gorman + + Fix for Mac OS X/Darwin compiliation. + +2003-08-30 09:26 Nick Kew + + MessageReporter: to enable selection of [XML|TRADITIONAL|NONE] at + run time. + + The message format can now be set at run time using the + environment variable SP_MESSAGE_FORMAT e.g. export + SP_MESSAGE_FORMAT=XML + + ParserEventGeneratorKit: enable Liam's restrictFileReading from + the "generic API". + + Improvements to http:// support. Allow http redirection. The + User-Agent: header can be specified by the environment variable + SP_HTTP_USER_AGENT It defaults to "libosp 1.5" if not set. The + environment variable SP_HTTP_ACCEPT can contain the argument to + the Accept: header (was hard coded as "Accept: */*"). There is no + default, so to obtain the same behaviour do export + SP_HTTP_ACCEPT="*/*" + +2003-07-17 19:41 Patrick Smith + + * Make opensp compile with gcc 3.3 + +2003-07-17 19:16 Jessica Perry Hekman + + * Fixed bug reported by Neil Roeth: nested entities were being + mishandled; also sdata entities were being misquoted; note, + modified outputData to have additional argument, and added + getQuoteMark method + + * added contents() for use by osx + + * added asInternalInputSource for use by osx + +2003-05-08 16:57 Jessica Perry Hekman + + * New command line argument + + * Warn before removing leading slashes in output file pathnames, + and remove them; added no-write-outside-outdir to request + exiting instead of writing output file outside (above) output + directory + +2003-04-29 22:08 Jessica Perry Hekman + + * handle schemes such as http:// + correctly in external entity filenames + +2003-02-10 21:05 Jessica Perry Hekman + + * - include appropriate quotation marks in entity declarations + - print correct output filenames for external entity files in + driver file + - print correct output directory name in for driver files in + internal subset + - create directories where needed when writing files + - output all under output directory, even absolute + filenames + - don't define predefined entities (like lt) + +2002-12-01 Karl Eichwalder + + * doc/Makefile.am (docdir): Set to $(datadir)/doc. + * doc/Makefile.am (pkgdochtmldir): New variable; set to + $(pkgdocdir)/doc to make it compatible with description in README. + * doc/Makefile.am (pkgdochtml_DATA): Use it instead of + pkgdoc_DATA. + * spec.in: Change it accordingly. + Reported by Ville Skyttä. + + * include/Makefile.am (EXTRA_DIST): Add NCVector.sed. + * include/NCVector.sed: Add it; required by sunfix.sh. + +2002-11-24 17:04 icastle + + * docsrc/ospam.xml: file ospam.xml was initially added on branch + opensp_1_5_branch. + +2002-11-24 17:04 icastle + + * docsrc/logo.png: file logo.png was initially added on branch + opensp_1_5_branch. + +2002-11-24 17:04 icastle + + * docsrc/: .cvsignore, Makefile, jadetex.cfg, logo.png, + onsgmls.xml, osgmlnorm.xml, ospam.xml, ospent.xml, osx.xml, + releasenotes.dsl, releasenotes.xml: Documentation + + Added manual pages and release notes + +2002-11-24 17:04 icastle + + * docsrc/releasenotes.xml: file releasenotes.xml was initially + added on branch opensp_1_5_branch. + +2002-11-24 17:04 icastle + + * docsrc/.cvsignore: file .cvsignore was initially added on branch + opensp_1_5_branch. + +2002-11-24 17:04 icastle + + * docsrc/Makefile: file Makefile was initially added on branch + opensp_1_5_branch. + +2002-11-24 17:04 icastle + + * docsrc/jadetex.cfg: file jadetex.cfg was initially added on + branch opensp_1_5_branch. + +2002-11-24 17:04 icastle + + * docsrc/osx.xml: file osx.xml was initially added on branch + opensp_1_5_branch. + +2002-11-24 17:04 icastle + + * docsrc/releasenotes.dsl: file releasenotes.dsl was initially + added on branch opensp_1_5_branch. + +2002-11-24 17:04 icastle + + * docsrc/osgmlnorm.xml: file osgmlnorm.xml was initially added on + branch opensp_1_5_branch. + +2002-11-24 17:04 icastle + + * docsrc/ospent.xml: file ospent.xml was initially added on branch + opensp_1_5_branch. + +2002-11-24 17:04 icastle + + * docsrc/onsgmls.xml: file onsgmls.xml was initially added on + branch opensp_1_5_branch. + +2002-11-24 09:48 icastle + + * po/fr.po: file fr.po was initially added on branch + opensp_1_5_branch. + +2002-11-24 09:48 icastle + + * po/: LINGUAS, de.po, fr.po, ja.po, sv.po: Updated translation + files (.po). Translation file for "fr" added. + + The files are held at the "Translation Project" + + http://www.iro.umontreal.ca/contrib/po/HTML/index.html + + The textual domain for OpenSP is "sp". + + The French (fr) translation has been contributed by Michel + Robitaille The German (de) translation has been updated for 1.5 by + Karl Eichwalder + +2002-11-23 18:18 icastle + + * configure.in: Make sure compiler doesn't emit warnings when + compiling openjade 1.3.2 with the config.h file + +2002-11-23 15:05 icastle + + * nsgmls/: NsgmlsMessages.msg, nsgmls.cxx: "-m" is an alias for + "-c". As such, it needs to take a SYSID as a parameter, otherwise + it will crash. + +2002-11-22 18:08 icastle + + * doc/index.htm: Correct URLS (download, mailing list etc). + + Ref: Source Forge Patch #641163 (Karl Eichwalder). + +2002-11-16 07:46 icastle + + * Makefile.am: Make sure docdir is in a structure like /usr/share + instead of /usr for LSB compliance etc. + +2002-11-16 00:14 icastle + + * Makefile.am: Add config.rpath + +2002-11-15 18:25 icastle + + * NEWS, config.rpath, configure.in: Add config.rpath from/for + gettext. Update NEWS and configure.in + +2002-11-15 18:25 icastle + + * config.rpath: file config.rpath was initially added on branch + opensp_1_5_branch. + +2002-08-23 02:14 liamquinn + + * doc/nsgmls.htm, doc/sgmlnorm.htm, doc/spam.htm, doc/spcat.htm, + doc/spent.htm, doc/sx.htm, include/EntityApp.h, + include/PosixStorage.h, lib/EntityApp.cxx, + lib/EntityAppMessages.msg, lib/PosixStorage.cxx: Added a new + command-line option, -R or --restricted, to restrict file reading + (intended for use in OpenSP-based Web applications). + +2002-07-10 17:08 icastle + + * configure.in: Make sure that SP_MULTI_BYTE is set by default + (reverts mistake in previous commit). + +2002-07-08 06:14 Terje Bless + + * lib/ParserMessages.msg: Demote duplicateAttributeDef from Error + to Warning. This closes SF Bug Tracker bug #578543. + +2002-07-07 17:42 Terje Bless + + * pubtext/xml.dcl: Update to canonical SGML Declaration for XML + from the W3C. Changes ISO Registration number for the BASESET from + 176 (UCS-2) to 177 (UCS-4). UCS-2 only allows 2^16 code points; + UCS-4 allows the full 2^31. + +2002-06-13 21:16 icastle + + * NEWS, doc/sx.htm, sx/XmlOutputEventHandler.cxx, + sx/XmlOutputEventHandler.h, sx/sx.cxx: Added a -x command line + option to osx, which allows users to say whether they want sdata + entities transformed into PIs or treated like normal entities (the + default is the latter, which is how osx always behaved before these + changes). Contributed by Jessica Hekman. + +2002-06-13 12:45 icastle + + * .cvsignore, NEWS, acconfig.h, configure.in: More work on upgrade + to newer autoconf etc. + + Remove obsolete acconfig.h. Update .cvsignore for new files/dir + created by new autoconf tools. Change the version number. + + Need to be careful that config.h.in hasn't been perturbed by the + changes.... + +2002-06-12 13:43 icastle + + * intl/gmo.h: file gmo.h was initially added on branch + opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/dcigettext.c: file dcigettext.c was initially added on + branch opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/ref-del.sin: file ref-del.sin was initially added on branch + opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/plural.c: file plural.c was initially added on branch + opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/osdep.c: file osdep.c was initially added on branch + opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/libgnuintl.h: file libgnuintl.h was initially added on + branch opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/ref-add.sin: file ref-add.sin was initially added on branch + opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/plural.y: file plural.y was initially added on branch + opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/localename.c: file localename.c was initially added on + branch opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/localcharset.c: file localcharset.c was initially added on + branch opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/os2compat.c: file os2compat.c was initially added on branch + opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/os2compat.h: file os2compat.h was initially added on branch + opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * po/LINGUAS: file LINGUAS was initially added on branch + opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/eval-plural.h: file eval-plural.h was initially added on + branch opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/dcngettext.c: file dcngettext.c was initially added on + branch opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/dngettext.c: file dngettext.c was initially added on branch + opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/locale.alias: file locale.alias was initially added on + branch opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/ngettext.c: file ngettext.c was initially added on branch + opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/plural-exp.h: file plural-exp.h was initially added on + branch opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/plural-exp.c: file plural-exp.c was initially added on + branch opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/COPYING.LIB-2.0: file COPYING.LIB-2.0 was initially added on + branch opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/config.charset: file config.charset was initially added on + branch opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * intl/COPYING.LIB-2.1: file COPYING.LIB-2.1 was initially added on + branch opensp_1_5_branch. + +2002-06-12 13:43 icastle + + * configure.in, intl/COPYING.LIB-2.0, intl/COPYING.LIB-2.1, + intl/ChangeLog, intl/Makefile.in, intl/VERSION, intl/bindtextdom.c, + intl/cat-compat.c, intl/config.charset, intl/dcgettext.c, + intl/dcigettext.c, intl/dcngettext.c, intl/dgettext.c, + intl/dngettext.c, intl/eval-plural.h, intl/explodename.c, + intl/finddomain.c, intl/gettext.c, intl/gettext.h, intl/gettextP.h, + intl/gmo.h, intl/hash-string.h, intl/intl-compat.c, + intl/l10nflist.c, intl/libgettext.h, intl/libgnuintl.h, + intl/linux-msg.sed, intl/loadinfo.h, intl/loadmsgcat.c, + intl/localcharset.c, intl/locale.alias, intl/localealias.c, + intl/localename.c, intl/ngettext.c, intl/os2compat.c, + intl/os2compat.h, intl/osdep.c, intl/plural-exp.c, + intl/plural-exp.h, intl/plural.c, intl/plural.y, + intl/po2tbl.sed.in, intl/ref-add.sin, intl/ref-del.sin, + intl/textdomain.c, intl/xopen-msg.sed, po/LINGUAS: Upgrade autoconf + framework + + In the absence of a nice set of portability tools to cope with + different versions of autoconf, automake etc.;-) upgrade to + autoconf-2.53 automake-1.5 gettext-0.11.1 libtool-1.4.2 + + Hopefully, this will reduce the problems people have had recently + when building from CVS + + - Run autoupgrade on configure.in. - update the built-in "intl" to + version 0.11. - no longer need to define extra commands to handle + POFILE substitution in configure. - Use "LINGUAS" file in the + "po" directory rather than in ALL_LINGUAS in the configure.in as + this is the modern way of doing it (allows support for multiple + po directories in the project). + +2002-06-10 18:22 icastle + + * configure.in: LIBOBJS is obsolete in autoconf 2.53. As it isn't + used, the simplest thing is to remove it. + +2002-04-13 13:48 icastle + + * NEWS, include/ArcEngine.h, lib/ArcEngine.cxx: architecture public + id reporting + + Ref: Sourceforge #532322, Peter Newcomb, Epremis + + Adds the architecture public id to the information passed to + implementations of ArcDirector. This is especially important when + using the PI-based architecture use declaration syntax, since there + may be no Notation object from which to get the information. + +2002-04-13 13:19 icastle + + * AUTHORS, NEWS, include/Mode.h, include/SgmlParser.h, + lib/ArcEngine.cxx, lib/ArcEngineMessages.msg, lib/ArcProcessor.h, + lib/MessageReporter.cxx, lib/ModeInfo.cxx, lib/Parser.h, + lib/ParserState.h, lib/parseAttribute.cxx, lib/parseDecl.cxx, + lib/parseInstance.cxx, lib/parseMode.cxx: PI architecture + declaration support + + Ref: Sourceforge #532318, Peter Newcomb, Epremis (patch #19689) + + Adds support for the PI-based architecture use declaration syntax + defined by Amendment 1 to ISO/IEC 10744:1997 (HyTime). This makes + it possible to specify architectural support attributes when using + architectures with XML, and is generally simpler than the original + syntax. See http://www.ornl.gov/sgml/wg8/document/1985.htm for + details. This patch also makes it possible to, and provides an + example of how to, use the exisiting attribute specification + parsing machinery to process attribute specifications within + processing instructions. + +2002-04-13 12:57 icastle + + * include/MessageFormatter.h: MessageFormatter::Builder private + + Ref: Source Forge #532046, Peter Newcomb, Epremis + + XMLMessageFormatter::formatMessage() needs to instantiate a + MessageFormatter::Builder, but cannot because Builder is private. + This patch adds makes Builder protected instead of private. + + This problem crops up with Red Hat gcc 2.96 + +2002-04-13 12:53 icastle + + * lib/ArcEngine.cxx: defaulting invalid arc att segfault fix + + Ref: Sourceforge patch #530152 + + Fixes a segfault that occurred when an attempt was made to map a + nonexistent architectural attribute to #DEFAULT. + +2002-04-13 12:41 icastle + + * NEWS, doc/sx.htm, include/Event.h, include/OutputByteStream.h, + include/OutputCharStream.h, include/Owner.h, include/Vector.h, + lib/Event.cxx, lib/ParserState.cxx, sx/XmlOutputEventHandler.cxx, + sx/XmlOutputEventHandler.h, sx/XmlOutputMessages.msg, sx/sx.cxx: + Various enhancements to osx from Jessica Perry Hekman, Dynamic + Diagrams + +2002-03-16 08:55 icastle + + * lib/Makefile.am: Read the libtool manual and work out the + "correct" rules for bumping the library version + +2002-03-15 15:56 icastle + + * lib/Makefile.am: Bump version number as API has changed with new + Message Module capability + +2002-03-15 11:57 icastle + + * include/MessageModule.h: file MessageModule.h was initially added + on branch opensp_1_5_branch. + +2002-03-15 11:57 icastle + + * include/MessageModule.h: Extensible message modules + + In order to support Windows applications that use DLLs that use + SP's DLL, where the intervening DLLs also define messages to be + used with the SP message handling infrastructure, this patch + reworks the way in which MessageFragments identify the module + within which their text resides by replacing the (libModule, + appModule, xModule) enumeration with a pointer to a global, opaque + MessageModule object. This MessageModule object then contains + whatever data is needed to identify sets of text resources on the + host system, e.g. an HINSTANCE DLL handle under Windows, or a + message domain string for gettext. + + Only the implementation of the message handling infrastructure is + changed; use of the patch does require regeneration of .h and .cxx + files from .msg files and recompilation of everything, its general + usage does not change. + + Ref: Peter Newcomb, Epremis Corp. Source Forge patch #530161 + +2002-03-15 11:53 icastle + + * AUTHORS, NEWS, msggen.pl.in, include/Makefile.am, + include/Message.h, include/MessageTable.h, lib/CmdLineApp.cxx, + lib/Message.cxx, lib/MessageTable.cxx: Extensible message modules + + In order to support Windows applications that use DLLs that use + SP's DLL, where the intervening DLLs also define messages to be + used with the SP message handling infrastructure, this patch + reworks the way in which MessageFragments identify the module + within which their text resides by replacing the (libModule, + appModule, xModule) enumeration with a pointer to a global, opaque + MessageModule object. This MessageModule object then contains + whatever data is needed to identify sets of text resources on the + host system, e.g. an HINSTANCE DLL handle under Windows, or a + message domain string for gettext. + + Only the implementation of the message handling infrastructure is + changed; use of the patch does require regeneration of .h and .cxx + files from .msg files and recompilation of everything, its general + usage does not change. + + Ref: Peter Newcomb, Epremis Corp. Source Forge patch #530161 + +2002-03-15 10:15 icastle + + * include/constant.h: Include types.h in constant.h + + Allows "constant.h" to be independently included by source files by + making explicit its dependency on "types.h". + + Ref: Peter Newcomb, Epremis Corporation, Source Forge patch #530157 + +2002-03-15 10:12 icastle + + * include/CmdLineApp.h: main() missing extern "C" fix + + Adds missing `extern "C"' to non-multi-byte main() definition macro + in "CmdLineApp.h". + + Ref: Peter Newcomb, Epremis Corporation, Source Forge patch #530158 + +2002-03-15 10:10 icastle + + * include/Entity.h: Makes PiEntity a part of the public API. + + Ref: Peter Newcomb, Epremis Corporation, Source Forge patch #530154 + +2002-03-15 10:00 icastle + + * lib/ArcEngine.cxx: Fixes cut-and-paste error that made undeclared + architectural DTD general entities reported as if they were + expected to be parameter entities. + + Ref: Peter Newcomb, Epremis Corporation, SourceForge Patch #530150 + +2002-03-14 17:50 icastle + + * configure.in: Revert change to package name opensp -> OpenSP. It + may look nicer but it is too gratuitous a change - affects external + interfaces etc. + +2002-03-14 13:33 icastle + + * nsgmls/Makefile.am: Add new header file nsgmls.h + +2002-03-14 12:35 icastle + + * nsgmls/nsgmls.h: Add new output options "all" and "version" to + onsgmls + + --option=all --option=version + + Option "all" is shorthand to turn on all available options + + Option "version" causes details of onsgmls to be output under a new + output code "V".  A version line and a mini-report of features will + be  utput.  For example (p=package, v=version, c=possible codes, + o=output options): + + Vp opensp Vv 1.5pre7 Vc -?C#()&ADaNEISTps{}fLie_oV Vo esis line + entity id included notation-sysid nonsgml empty data-attribute + comment omitted tagomit attromit version + + Robert Braddock notes "I think this will be useful, based on + working on (Perl tools) SGMLSpm and XML::Parser::ESISParser, to + help applications know what kind of info they'll be getting.  + Ideally, the "Vc" line would only list commands that might be + issued, but right now, I just have it list all commands the onsgmls + knows about. I'm not particularly happy with this change, because I + needed to split out a couple things from nsgmls.cxx and make a + nsgmls.h to keep down the duplication of lists of options, but it's + not clear to me the best way to lay things out (and I think that + needs to be found before there will be a clean way to reduce the Vc + line)." + + Ref: Robert Braddock, Source Forge patch #476642 + +2002-03-14 12:35 icastle + + * nsgmls/nsgmls.h: file nsgmls.h was initially added on branch + opensp_1_5_branch. + +2002-03-14 11:26 icastle + + * nsgmls/: SgmlsEventHandler.cxx, SgmlsEventHandler.h, nsgmls.cxx: + Add new output options "all" and "version" to onsgmls + + --option=all --option=version + + Option "all" is shorthand to turn on all available options + + Option "version" causes details of onsgmls to be output under a new + output code "V". A version line and a mini-report of features will + be utput. For example (p=package, v=version, c=possible codes, + o=output options): + + Vp opensp Vv 1.5pre7 Vc -?C#()&ADaNEISTps{}fLie_oV Vo esis line + entity id included notation-sysid nonsgml empty data-attribute + comment omitted tagomit attromit version + + Robert Braddock notes "I think this will be useful, based on + working on (Perl tools) SGMLSpm and XML::Parser::ESISParser, to + help applications know what kind of info they'll be getting. + Ideally, the "Vc" line would only list commands that might be + issued, but right now, I just have it list all commands the onsgmls + knows about. I'm not particularly happy with this change, because I + needed to split out a couple things from nsgmls.cxx and make a + nsgmls.h to keep down the duplication of lists of options, but it's + not clear to me the best way to lay things out (and I think that + needs to be found before there will be a clean way to reduce the Vc + line)." + + Ref: Robert Braddock, Source Forge patch #476642 + +2002-03-14 11:08 icastle + + * nsgmls/: SgmlsEventHandler.cxx, SgmlsEventHandler.h: Simple + onsgmls char type changes + + Some minor changes to character typing, and move all character + constants to const variables. (This is desirable because it + simplifies working on wide character support and it looks nice. It + also removes a FIXME, which is probably good.) + + Ref: Robert Braddock, sourceforge patch #476606 + +2002-03-14 10:57 icastle + + * lib/UTF8CodingSystem.cxx: Accept Byte Order Marks as valid XML + + Ref: Source Forge #442560 (Terje Bless/Liam Quinn) + + Determination of Character Encoding of an XML file brought in line + with Second Edition XML 1.0 Specification (REC-xml-20001006) - Byte + Order Marks now accepted as valid XML in UTF8 encoded documents. + +2002-03-14 10:37 icastle + + * lib/lib.dsp: Update from jade RELEASE-1_3 branch. + + Win32: Can't use precompiled header when header file is not + included... + +2002-03-14 10:34 icastle + + * include/config.h.old.in: Update from jade RELEASE-1_3 branch. + + Support for new std namespace in GNU C++ >= 2.9 + +2002-03-14 10:12 icastle + + * nsgmls/nsgmls.cxx: Update from jade RELEASE-1_3 branch. + + Better support for newer compilers + + Ref: Red Hat openjade-1.3-decl.patch + +2002-03-14 08:47 icastle + + * configure.in: Updates for new versions of automake + +2002-03-13 16:00 icastle + + * NEWS, configure.in: Update for 1.5-pre7. Also change package name + to "opensp" (looks more natural, consistent with previous releases + and most other things and best to avoid case signficance when + dealing with cross platform stuff. And I like it this way). + +2002-03-13 14:40 icastle + + * configure.in, include/CmdLineApp.h, include/MessageFormatter.h, + include/MessageReporter.h, lib/CmdLineApp.cxx, + lib/MessageReporter.cxx: Add Nick Kew's option for producing + messages in XML format (taken from MAIN). Also add support for + configure to enable this with + + ./configure --enable-xml-messages + + See http://valet.webthing.com/xml/ for some info about this + feature. + +2002-03-13 13:43 icastle + + * configure.in, po/ja.po: Add Japanese Support contributed by SATO + Satoru (from MAIN branch) + +2002-03-13 13:13 icastle + + * ChangeLog: file ChangeLog was initially added on branch + opensp_1_5_branch. + +2002-03-13 13:13 icastle + + * ChangeLog: Add missing ChangeLog + +2001-08-31 08:29 adicarlo + + * NEWS, configure.in: fix the wchar_t check; remove redundant + RANLIB check + +2001-08-31 08:15 adicarlo + + * acconfig.h: autoconf 2.52 doesn't liek these silly error messages + I guess + +2001-08-31 08:01 adicarlo + + * debian/: changelog, control: reburn this version; require + autoconf 2.52 or better + +2001-08-31 08:00 adicarlo + + * NEWS, configure.in: require autoconf 2.52; remove reference to + OJ_CHECK_SIZEOF, which was causing autoheader to puke; if this + works ok, I'll remove the definition of that from acinclude.m4, + since I think it was just a temporary workaround for an autoconf + bug.... + +2001-08-31 07:25 adicarlo + + * debian/changelog: burn 1.5pre5-4 + +2001-08-06 16:00 adicarlo + + * debian/: changelog, rules: libosp-dev now has proper depends on + libosp2 and opensp, modified patch from Yann Dirson; closes: + #107239 + +2001-07-30 05:51 adicarlo + + * debian/: changelog, control: 1.5pre5-3: fix missing build-depends + on gettext, closes: #105961 + +2001-07-10 21:07 adicarlo + + * debian/: changelog, control, rules: use dh_shlibdeps, remove some + hand-rolled stuff here which was unnecessary and in fact adding two + libosp deps on the opensp package, not to mention that it stopped + working + +2001-07-10 17:03 adicarlo + + * debian/changelog: uh, change version 1.5pre5-1.5pre6-1 to just + 1.5pre5-2, the other seems like asking for trouble + +2001-07-10 17:02 adicarlo + + * debian/changelog: Debian version 1.5pre5-1.5pre6-1 + +2001-07-10 17:02 adicarlo + + * NEWS: trivial recent news + +2001-07-10 17:00 adicarlo + + * Makefile.am: deal with the config.h in 'make dist' situation, I + hope + +2001-07-10 16:58 adicarlo + + * debian/rules: libtoolize --force during building; tolerate errors + in 'make maintainer-clean' + +2001-07-10 16:57 adicarlo + + * nsgmls/nsgmls.cxx: fix for GCC 3.0 compilation, doesn't seem to + hurt the older GCCs (I hope!) + +2001-07-10 06:44 adicarlo + + * NEWS: document Terje Bless's documentation improvements + +2001-05-11 14:08 twaugh + + * po/ja.po: Japanese translations. + +2001-03-19 17:01 adicarlo + + * doc/sysid.htm: more discussion of , thanks to Terje Bless + +2001-03-19 16:39 adicarlo + + * NEWS: document gcc 2.96 fixes + +2001-03-19 16:37 adicarlo + + * BUILDING, nsgmls/RastEventHandler.h: merged from HEAD (latest + head merge is opensp_1_5_branch_merged) + +2001-03-17 10:34 adicarlo + + * configure.in: bump up to 1.5pre6 + +2001-02-22 21:42 adicarlo + + * NEWS, lib/URLStorage.cxx: Adapt SP patch from Liam Quinn that + adds a HTTP/1.0 Host header to HTTP requests. Necessary to fetch + DTDs specified in SYSTEM identifiers when the DTD resides on a + name-based "Virtual Host". Thanks to 'tbe'. + +2001-02-22 21:32 adicarlo + + * debian/: changelog, rules: hmm, it turns out that Debian wasn't + shipping the gettext files properly, oops + +2001-02-22 21:30 adicarlo + + * NEWS, spec.in: RPM spec file updates and corrections from Terje + Bless + +2001-02-19 06:08 adicarlo + + * msggen.pl.in: use @PERL@ setting here, thanks to Michael Wiedmann + +2001-02-19 06:04 adicarlo + + * debian/changelog: prepare 1.5pre5-1 + +2001-02-19 06:03 adicarlo + + * debian/rules: do make clean, then make maintainer clean + +2001-02-10 08:28 adicarlo + + * debian/changelog: prepare 1.5pre5-1 + +2001-02-10 08:20 adicarlo + + * configure.in: version bumped to 1.5pre5 + +2001-02-09 23:22 adicarlo + + * lib/Mutex.h: #include now put outside of + SP_NAMESPACE; patch from Robert Braddock + +2001-02-09 23:18 adicarlo + + * debian/rules: make some rules depends on 'Makefile', and use that + +2001-02-09 23:17 adicarlo + + * debian/control: libosp2 goes in libs (override disparity); + libosp-dev goes in devel (request change from text, mail sent to + override-change@debian.org) + +2001-02-09 23:15 adicarlo + + * NEWS, doc/nsgmls.htm, doc/sgmlsout.htm, + nsgmls/SgmlsEventHandler.cxx, nsgmls/SgmlsEventHandler.h, + nsgmls/nsgmls.cxx: New -output options: comment, omitted, tagomit + and attromit; this shows comments and implied elements and/or + attributes. Patch from Robert Braddock. + +2001-02-08 05:44 adicarlo + + * include/SubstTable.h: fix a c++ warning, warning: nsigned int + SubstTable::operator [](unsigned int) const' was used before it was + declared inline + +2001-02-08 03:19 adicarlo + + * configure.in: mere cosmetic + +2001-02-03 02:42 adicarlo + + * debian/changelog: clarify + +2001-02-03 02:41 adicarlo + + * debian/changelog: re-burn this + +2001-01-31 09:41 adicarlo + + * NEWS: document autoconf fix + +2001-01-31 09:40 adicarlo + + * debian/changelog: prepare 1.5pre4-5 + +2001-01-31 09:39 adicarlo + + * debian/rules: handle DEB_BUILD_OPTIONS + +2001-01-31 09:39 adicarlo + + * debian/control: update standards to 3.5.0 + +2001-01-31 09:36 adicarlo + + * configure.in: fix bug triggered on gcc 2.7.x at least, fixing + 'checking whether to declare set_new_handler extern C' + +2000-10-16 00:00 adicarlo + + * NEWS: oops, it would be 1.5pre5 + +2000-10-15 23:42 adicarlo + + * NEWS: reconstruct changes for a projected 1.5pre5 based on CVS + logs + +2000-10-15 23:10 adicarlo + + * intl/: ChangeLog, Makefile.in, bindtextdom.c, cat-compat.c, + dcgettext.c, dgettext.c, explodename.c, finddomain.c, gettext.c, + gettext.h, gettextP.h, hash-string.h, l10nflist.c, libgettext.h, + loadinfo.h, loadmsgcat.c, localealias.c, textdomain.c: rerun + gettextize, gettting newer versions of intl stuff; all of this is + straight out of the gettext package w/o modification + +2000-10-15 23:10 adicarlo + + * intl/l10nflist.c: file l10nflist.c was initially added on branch + opensp_1_5_branch. + +2000-10-15 23:10 adicarlo + + * intl/ChangeLog: file ChangeLog was initially added on branch + opensp_1_5_branch. + +2000-10-15 23:10 adicarlo + + * intl/loadinfo.h: file loadinfo.h was initially added on branch + opensp_1_5_branch. + +2000-10-15 23:10 adicarlo + + * intl/explodename.c: file explodename.c was initially added on + branch opensp_1_5_branch. + +2000-10-15 07:50 adicarlo + + * debian/rules: put doc/*.htm in opensp doc dir (closes: Bug#68002) + +2000-10-15 07:49 adicarlo + + * debian/changelog: 1.5pre4-4 + +2000-10-15 07:43 adicarlo + + * configure.in: be more careful about po/Makefile.in, although we + still seem to get some circular situations + +2000-10-15 07:41 adicarlo + + * lib/parseDecl.cxx: patch from Christopher C. Chimelis to enable + compilation on 64-bit platforms, Alpha in particular + +2000-06-26 10:00 murray + + * BUILDING: This file documents the build process as decribed in + the jade-devel mailing list by Adam Di Carlo. + +2000-05-20 09:40 adicarlo + + * debian/: changelog, control: we gotta conflict with libosp1 + +2000-05-20 06:52 adicarlo + + * debian/libosp2.postinst: file libosp2.postinst was initially + added on branch opensp_1_5_branch. + +2000-05-20 06:52 adicarlo + + * debian/: changelog, control, libosp-dev.README, + libosp1.README.Debian.in, libosp1.postinst, + libosp2.README.Debian.in, libosp2.postinst, rules: major number on + the shared library changed; libosp1 is libosp2 + +2000-05-20 06:52 adicarlo + + * debian/libosp2.README.Debian.in: file libosp2.README.Debian.in + was initially added on branch opensp_1_5_branch. + +2000-05-16 08:19 clasen + + * msggen.pl.in, sp-generate.mak, doc/build.htm: Support localized + builds on Win32. + +2000-05-15 13:53 clasen + + * lib/ParserApp.cxx: Reinstate the -widref option which was + accidentally removed. + +2000-05-09 04:18 adicarlo + + * debian/: changelog, rules: fix aclocal/autoheader ordering bug + +2000-05-09 03:27 adicarlo + + * debian/changelog: first cut for 1.5pre4-2 + +2000-05-08 08:37 adicarlo + + * acconfig.h: undo bad change I made before + +2000-05-06 20:40 adicarlo + + * debian/: changelog, control: add build-depends for next version + +2000-05-06 05:20 adicarlo + + * debian/: changelog, rules: lintian and lib dep change + +2000-05-06 00:25 adicarlo + + * debian/changelog: document Makefile.am changes + +2000-05-06 00:10 adicarlo + + * Makefile.am, doc/Makefile.am, generic/Makefile.am, + include/Makefile.am, lib/Makefile.am, nsgmls/Makefile.am, + pubtext/Makefile.am, sgmlnorm/Makefile.am, spam/Makefile.am, + spcat/Makefile.am, spent/Makefile.am, sx/Makefile.am, + unicode/Makefile.am: 'maintainer-clean' is now closer to CVS-level + pristineness + +2000-05-05 22:26 adicarlo + + * spent/Makefile.am: SpentMessages.msg should not be in + BUILT_SOURCES + +2000-05-05 22:25 adicarlo + + * debian/libosp1.postinst: add newline at end of file + +2000-05-05 19:02 adicarlo + + * debian/changelog: more updates + +2000-05-05 19:01 adicarlo + + * debian/libosp-dev.README: file libosp-dev.README was initially + added on branch opensp_1_5_branch. + +2000-05-05 19:01 adicarlo + + * debian/libosp-dev.README: new file + +2000-05-05 17:47 adicarlo + + * debian/changelog: uh, change the numbering a bit + +2000-05-05 16:54 adicarlo + + * debian/changelog: recent updates documented + +2000-05-05 16:53 adicarlo + + * debian/copyright.Debian: update download/cvs locations + +2000-05-05 16:52 adicarlo + + * README: point to project home page, and bug reporting URL + +2000-05-05 16:42 adicarlo + + * debian/: changelog, rules: finalize for 1.5-0.pre4-1, we hope + +2000-05-05 15:27 adicarlo + + * acconfig.h: add HAVE_BOOL + +2000-05-04 16:50 adicarlo + + * debian/changelog: new version started + +2000-04-28 08:15 clasen + + * lib/PosixStorage.cxx: Fix a typo which caused problems with + filenames on Win32. + +2000-03-30 07:55 pnil + + * include/config.h.old.in: (SP_PACKAGE, SP_VERSION): Use @PACKAGE@ + and @VERSION@ instead of the SP_ prefixed ones. + +2000-03-29 19:49 clasen + + * spec.in: Remove braces since rpm apparently doesn't support brace + expansion. + +2000-03-29 18:00 clasen + + * Makefile.am, NEWS, configure.in, include/SubstTable.h, + lib/CmdLineApp.cxx, lib/SubstTable.cxx, lib/Win32CodingSystem.cxx, + lib/WinApp.cxx, lib/lib.dsp, po/de.po: More Win32 fixes. + +2000-03-28 18:21 clasen + + * spec.in: Include message catalogs. + +2000-03-27 18:33 clasen + + * lib/xentmgr_inst.m4, po/Makefile.in.in: More Win32 fixes. + +2000-03-25 22:15 clasen + + * lib/CmdLineApp.cxx: One more Win32 fix. + +2000-03-25 21:31 clasen + + * lib/: ArcEngine.cxx, Win32CodingSystem.cxx, entmgr_inst.m4, + xentmgr_inst.m4: More Win32 fixes and a fix for a segfault caused + by the recent architecture engine changes. + +2000-03-23 22:37 clasen + + * lib/ArcEngine.cxx: Fix a segfault. + +2000-03-22 14:36 clasen + + * lib/: lib.dsp, splibpch.h, xentmgr_inst.m4: More Win32 fixes. + +2000-03-21 10:04 pnil + + * msggen.pl.in: Added Peter Nilsson as copyright holder. + +2000-03-21 09:25 pnil + + * msggen.pl.in: (read_po_translations, po_flush): New functions. + +2000-03-18 21:08 clasen + + * Makefile.am, NEWS, configure.in, spec.in, include/MessageArg.h, + include/SubstTable.h, lib/ArcEngine.cxx, lib/entmgr_inst.m4, + lib/lib.dsp: More Win32 build fixes. + +2000-03-16 20:47 clasen + + * NEWS, configure.in, lib/Group.cxx, lib/Group.h, + lib/ParserMessages.msg, lib/lib.dsp, lib/parseParam.cxx, po/de.po, + po/sv.po: Annex K: Parse #ALL/#IMPLICIT content tokens and issue a + proper error message. + +2000-03-16 16:49 clasen + + * spec.in, lib/CmdLineApp.cxx, lib/PosixStorage.cxx, + lib/Win32CodingSystem.cxx, lib/WinApp.cxx, lib/lib.dsp, + nsgmls/nsgmls.dsp, sgmlnorm/sgmlnorm.dsp, spam/spam.dsp, + spcat/spcat.dsp, spent/spent.dsp, sx/sx.dsp: Incorporate spec + changes proposed by Karl Eichwalder; change SP_NAMESPACE to + "OpenSP" on Win32; remove silent assumption sizeof(Char) == + sizeof(wchar_t) in Win32-only files. + +2000-03-15 16:24 clasen + + * po/de.po: More german translations. + +2000-03-14 23:17 clasen + + * include/Syntax.h, lib/Parser.h, lib/ParserMessages.msg, + lib/Syntax.cxx, lib/parseDecl.cxx, lib/parseSd.cxx: Check that + added function names are valid in the concrete syntax; warn about + notation attributes which are CONREF; use the proper syntax for + delimiters in bracketed text entities. + +2000-03-14 12:26 clasen + + * lib/parseParam.cxx: Fix a typo. + +2000-03-14 12:22 clasen + + * lib/Parser.h, lib/ParserMessages.msg, lib/ParserState.cxx, + lib/ParserState.h, lib/parseInstance.cxx, lib/parseParam.cxx, + po/de.po, po/sv.po: Correctly recognize parameter entities with an + active document type name; disallow name group in parameter entity + references in document type specifications in tags. + +2000-03-13 15:59 clasen + + * lib/parseDecl.cxx: A fix for the (nonworking) #IMPLIED doctypes. + +2000-03-09 18:30 clasen + + * NEWS, doc/xml.htm, include/Attribute.h, lib/Attribute.cxx, + lib/ParserMessages.msg, lib/ParserState.cxx, + lib/parseAttribute.cxx, lib/parseDecl.cxx: Annex K support + improvements: common data attributes can now be specified in entity + declarations. + +2000-03-08 18:25 clasen + + * spec.in: Split the rpm into OpenSP, OpenSP and OpenSP-devel + packages. + +2000-03-08 16:28 clasen + + * .cvsignore, Makefile.am, configure.in, spec.in, po/de.po, + po/sv.po: First cut at RPM packaging support. It should be able to + generate a .rpm package simply by applying rpm -tb to the tarball. + +2000-03-08 16:28 clasen + + * spec.in: file spec.in was initially added on branch + opensp_1_5_branch. + +2000-03-07 12:25 clasen + + * NEWS, configure.in, doc/Makefile.am, generic/Makefile.am, + include/Makefile.am, intl/Makefile.in, lib/Makefile.am, + lib/lib.dsp, lib/memcmp.c, lib/memmove.c, lib/strerror.c, + nsgmls/Makefile.am, po/Makefile.in.in, pubtext/Makefile.am, + sgmlnorm/Makefile.am, spam/Makefile.am, spcat/Makefile.am, + spent/Makefile.am, sx/Makefile.am: Minor improvements. + +2000-03-07 12:23 clasen + + * autoinit.sh: A little shell script to ease working from CVS. + +2000-03-07 12:23 clasen + + * autoinit.sh: file autoinit.sh was initially added on branch + opensp_1_5_branch. + +2000-03-07 12:03 clasen + + * unicode/.cvsignore: file .cvsignore was initially added on branch + opensp_1_5_branch. + +2000-03-07 12:03 clasen + + * Makefile.am, all/Makefile.am, unicode/.cvsignore, + unicode/Makefile.am: Add all and unicode directories to dist; + install unicode stuff in pkgdatadir. + +2000-03-07 12:03 clasen + + * unicode/Makefile.am: file Makefile.am was initially added on + branch opensp_1_5_branch. + +2000-03-07 10:21 clasen + + * NEWS: Add a forgotten headline. + +2000-03-07 10:15 clasen + + * lib/parseDecl.cxx: Merge the post-1.4 fix. + +2000-03-07 10:13 clasen + + * lib/lib.dsp: Change dll name to be in sync with $VERSION. + +2000-03-07 10:12 clasen + + * lib/Makefile.am: Bump so version, since the SubstTable and Char + changes are interface changes. + +2000-03-07 10:10 clasen + + * NEWS, doc/archform.htm, lib/ArcEngine.cxx, + lib/ArcEngineMessages.msg, lib/ArcProcessor.h: Implement #MAPTOKEN, + fix architectural content handling and remove some cruft. + +2000-03-06 16:24 clasen + + * lib/: ArcEngine.cxx, ArcEngineMessages.msg, ArcProcessor.h: + Stricter error-catching in the architecture engine; parse + #maptoken. + +2000-03-03 10:44 clasen + + * lib/ParserMessages.msg, msggen.pl.in: Add standard identification + to relevant clauses. + +2000-03-01 19:57 clasen + + * lib/SubstTable.cxx: Fix a coredump. + +2000-03-01 18:59 clasen + + * lib/XMLCodingSystem.cxx: Fix some byte order bugs. + +2000-03-01 14:19 clasen + + * lib/: Fixed4CodingSystem.cxx, XMLCodingSystem.cxx: Fix + compilation failures. + +2000-02-29 18:08 clasen + + * include/CodingSystem.h, include/Fixed2CodingSystem.h, + include/Fixed4CodingSystem.h, lib/Fixed2CodingSystem.cxx, + lib/Fixed4CodingSystem.cxx, lib/UTF16CodingSystem.cxx, + lib/XMLCodingSystem.cxx: Support autodetection of 4-byte coding + systems in XML. This needs testing. + +2000-02-28 17:36 clasen + + * pubtext/xml.dcl: Use the full UTF-16 char range in the XML + declaration. + +2000-02-28 17:21 clasen + + * doc/: features.htm, xml.htm: Updates for 32bit chars. + +2000-02-28 16:25 clasen + + * NEWS, doc/charset.htm, include/CodingSystem.h, + include/UTF16CodingSystem.h, include/UnicodeCodingSystem.h, + lib/CodingSystemKit.cxx, lib/Fixed2CodingSystem.cxx, + lib/UTF16CodingSystem.cxx, lib/UnicodeCodingSystem.cxx, + lib/XMLCodingSystem.cxx: Adapt the coding systems to the new + character range. fixed-2 now handles unencodable chars, unicode and + xml use a utf-16 subdecoder/subencoder to handle utf-16. + +2000-02-28 09:53 pnil + + * include/XcharMap.cxx: (XcharMap::setRange): Tighten loop. Also + fixes a bug where == should be >=. + +2000-02-27 22:20 pnil + + * po/sv.po: More translations. + +2000-02-27 22:12 pnil + + * include/: CharMap.cxx, CharMap.h: Cleanups. + +2000-02-26 21:52 clasen + + * generic/SGMLApplication.h, include/constant.h, include/types.h: + Switch to 32bit Chars. charMax stays at 0x10ffff. + +2000-02-25 16:55 clasen + + * include/CharsetInfo.h, include/RangeMap.cxx, lib/CharsetInfo.cxx, + lib/SOEntityCatalog.cxx, lib/Syntax.cxx, lib/UnivCharsetDesc.cxx: + Replace uses of {Wide,Syntax,Univ,}Char(-1) by the appropriate + constants. + +2000-02-25 15:27 clasen + + * include/: XcharMap.cxx, XcharMap.h: Fix the size of the flat + array to 2^8/2^16 independent of charMax. For SP_MULTI_BYTE, add a + CharMap to XcharMap to store the values for higher planes. + +2000-02-25 15:25 clasen + + * include/: CharMap.cxx, CharMap.h: Change levels to 5,8,4,4. + Rename block to plane. + +2000-02-25 13:19 clasen + + * include/Syntax.h, lib/Syntax.cxx: Delay instantiation of + Syntax::markupScanTable_ to save 64k with most SGML declarations. + +2000-02-24 19:00 clasen + + * include/: CharMap.cxx, CharMap.h: Add another level of + indirection to CharMap in order to accomodate 20bits. This needs + severe testing. + +2000-02-24 18:07 clasen + + * include/Fixed4CodingSystem.h, include/Makefile.am, + include/UTF16CodingSystem.h, lib/CodingSystemKit.cxx, + lib/Fixed4CodingSystem.cxx, lib/Makefile.am, + lib/UTF16CodingSystem.cxx: First cut at utf16 and fixed4 encodings. + Known to compile, but untested. + +2000-02-24 17:45 clasen + + * lib/SubstTable.cxx: Add forgotten file. + +2000-02-24 00:34 clasen + + * lib/Partition.cxx: Remove forgotten debugging printf. + +2000-02-23 22:42 clasen + + * include/SubstTable.h, lib/Partition.cxx: Change SubstTable + implementation to a sparse array with binary search. This should + work with 32bit Chars. + +2000-02-21 20:12 clasen + + * include/Makefile.am: Remove SubstTable.cxx. + +2000-02-21 20:10 clasen + + * lib/: ParserState.cxx, SOEntityCatalog.cxx, parseDecl.cxx, + parseSd.cxx: Replace loops over strings by calls of + SubstTable::subst(StringC &). + +2000-02-21 19:46 clasen + + * include/ArcEngine.h, include/EntityCatalog.h, + include/SubstTable.h, include/Syntax.h, include/Text.h, + lib/ArcEngine.cxx, lib/Makefile.am, lib/ParserState.cxx, + lib/ParserState.h, lib/Partition.cxx, lib/Partition.h, + lib/SOEntityCatalog.cxx, lib/SubstTable.cxx, lib/Syntax.cxx, + lib/Text.cxx, lib/entmgr_inst.m4, lib/parseDecl.cxx, + lib/parseSd.cxx, spam/CopyEventHandler.h, + sx/XmlOutputEventHandler.h: Detemplatize SubstTable. We never used + anything but SubstTable. + +2000-02-08 16:59 clasen + + * .cvsignore, Makefile.am, NEWS, SP.dsw, acconfig.h, acinclude.m4, + build-win32.bat, configure.in, msggen.pl.in, sp-generate.mak, + debian/README.Debian.in, debian/changelog, debian/control, + debian/copyright.Debian, debian/libosp1.README.Debian.in, + debian/libosp1.postinst, debian/opensp.doc-base, debian/rules, + doc/.cvsignore, doc/autoconf.htm, doc/build.htm, doc/charset.htm, + doc/ideas.htm, doc/index.htm, doc/new.htm, generic/.cvsignore, + include/.cvsignore, include/CharsetRegistry.h, include/Dtd.h, + include/ExternalId.h, include/MessageArg.h, include/SubstTable.h, + include/config.h.old.in, intl/.cvsignore, lib/.cvsignore, + lib/Attribute.cxx, lib/CharsetRegistry.cxx, lib/CmdLineApp.cxx, + lib/CodingSystemKit.cxx, lib/Makefile.am, lib/MessageArg.cxx, + lib/MessageTable.cxx, lib/ParserState.cxx, lib/ParserState.h, + lib/koi8-r.h, lib/lib.dsp, lib/parseInstance.cxx, lib/splibpch.h, + nsgmls/.cvsignore, nsgmls/Makefile.am, nsgmls/nsgmls.dsp, + po/.cvsignore, po/Makefile.in.in, po/de.po, pubtext/.cvsignore, + pubtext/Makefile.am, pubtext/opensp-implied.dcl, + sgmlnorm/.cvsignore, sgmlnorm/Makefile.am, sgmlnorm/sgmlnorm.dsp, + spam/.cvsignore, spam/Makefile.am, spam/spam.dsp, spcat/.cvsignore, + spcat/Makefile.am, spcat/spcat.dsp, spcat/spcat_inst.m4, + spent/.cvsignore, spent/Makefile.am, spent/spent.dsp, + sx/.cvsignore, sx/Makefile.am, sx/sx.dsp: Merge the + opensp_1_4_branch up to tag opensp_1_4_merge. + +2000-01-21 22:02 clasen + + * doc/autoconf.htm: file autoconf.htm was initially added on branch + opensp_1_4_branch. + +2000-01-20 23:39 pn + + * .cvsignore, doc/.cvsignore, generic/.cvsignore, + include/.cvsignore, intl/.cvsignore, lib/.cvsignore, + nsgmls/.cvsignore, po/.cvsignore, pubtext/.cvsignore, + sgmlnorm/.cvsignore, spam/.cvsignore, spcat/.cvsignore, + spent/.cvsignore, sx/.cvsignore: file .cvsignore was initially + added on branch opensp_1_4_branch. + +2000-01-20 21:15 clasen + + * lib/koi8-r.h: file koi8-r.h was initially added on branch + opensp_1_4_branch. + +2000-01-08 14:01 clasen + + * lib/Makefile.am, nsgmls/Makefile.am, sgmlnorm/Makefile.am, + spam/Makefile.am, spcat/Makefile.am, spent/Makefile.am, + sx/Makefile.am: Fix building with builddir!=srcdir. + +1999-12-30 00:37 debian + + * debian/README.Debian.in: file README.Debian.in was initially + added on branch opensp_1_4_branch. + +1999-12-30 00:37 debian + + * debian/libosp1.postinst: file libosp1.postinst was initially + added on branch opensp_1_4_branch. + +1999-12-30 00:37 debian + + * debian/libosp1.README.Debian.in: file libosp1.README.Debian.in + was initially added on branch opensp_1_4_branch. + +1999-12-23 06:30 debian + + * debian/copyright.Debian: file copyright.Debian was initially + added on branch opensp_1_4_branch. + +1999-12-22 18:44 debian + + * pubtext/opensp-implied.dcl: file opensp-implied.dcl was initially + added on branch opensp_1_4_branch. + +1999-12-22 08:26 debian + + * debian/changelog: file changelog was initially added on branch + opensp_1_4_branch. + +1999-12-22 08:26 debian + + * debian/opensp.doc-base: file opensp.doc-base was initially added + on branch opensp_1_4_branch. + +1999-12-22 08:26 debian + + * debian/rules: file rules was initially added on branch + opensp_1_4_branch. + +1999-12-22 08:26 debian + + * debian/control: file control was initially added on branch + opensp_1_4_branch. + +1999-12-21 22:32 pn + + * include/config.h.old.in: file config.h.old.in was initially added + on branch opensp_1_4_branch. + +1999-12-16 23:11 pn + + * Makefile.am, msggen.pl.in: Merge with 1.4 branch. + +1999-12-16 22:11 pn + + * lib/lib.dsp, lib/lib.rc, spcat/spcat.dsp, SP.dsw, + include/Attribute.h, include/Message.h, include/Options.cxx, + lib/app_inst.m4, lib/assert.cxx: MSVC (and other) small fixes. + +1999-12-13 07:54 pn + + * po/sv.po: Merge from 1.4 branch. + +1999-12-12 08:43 clasen + + * configure.in: Change version to 1.5-devel + +1999-12-11 21:34 clasen + + * configure.in, lib/Group.cxx, lib/Param.cxx, + lib/ParserMessages.msg, lib/TokenMessageArg.cxx, lib/parseSd.cxx, + po/de.po: Remove delimEnd message, change version number to + 1.4-pre1. + +1999-12-11 00:41 pn + + * po/sv.po: Many new translations. + +1999-12-10 15:38 pn + + * lib/CmdLineApp.cxx: (cmdLineApp::usage): Create output stream + with default coding system. + +1999-12-09 23:32 clasen + + * doc/: archform.htm, build.htm, catalog.htm, charset.htm, + features.htm, generic.htm, ideas.htm, index.htm, new.htm, + nsgmls.htm, sgmldecl.htm, sgmlnorm.htm, sgmlsout.htm, spam.htm, + spcat.htm, spent.htm, sx.htm, sysdecl.htm, sysid.htm, xml.htm: + Updated docs for long options, removed james' mail address + throughout. + +1999-12-09 18:45 clasen + + * NEWS: Mention --help. + +1999-12-09 18:39 clasen + + * include/CmdLineApp.h, lib/CmdLineApp.cxx, + lib/CmdLineAppMessages.msg, nsgmls/NsgmlsMessages.msg, + nsgmls/nsgmls.cxx, po/de.po, sgmlnorm/SgmlnormMessages.msg, + sgmlnorm/sgmlnorm.cxx, spam/SpamMessages.msg, spam/spam.cxx, + spcat/SpcatMessages.msg, spcat/spcat.cxx, spent/SpentMessages.msg, + spent/spent.cxx, sx/SxMessages.msg, sx/sx.cxx: Add info lines to + the usage messages, extracted from the html docs. Change the + CmdLineApp interface once more: info lines now have one argument, + the program name. + +1999-12-09 15:58 clasen + + * intl/: Makefile.in, VERSION: Add the VERSION file, so we know + which version of GNU gettext we use. + +1999-12-09 11:25 pn + + * lib/CmdLineAppMessages.msg: (bHelp, eHelp): Clarified + documentation. + +1999-12-09 08:54 pn + + * NEWS: Update. + +1999-12-08 21:25 pn + + * po/Makefile.in.in: DISTFILES: Remove non-existent ChangeLog file. + +1999-12-08 21:24 pn + + * lib/Makefile.am: Typo fix. + +1999-12-08 21:23 pn + + * intl/Makefile.in: Deps on non-existent files removed. + check-install target added. + +1999-12-08 07:45 clasen + + * lib/Makefile.am, nsgmls/Makefile.am, sx/Makefile.am: Remove + unnecessary dependencies. + +1999-12-08 00:56 pn + + * lib/CmdLineApp.cxx: CmdLineApp::usage(): Clean up. Avoid using + messages in some places. + +1999-12-08 00:55 pn + + * configure.in: AC_OUTPUT: Generate msggen.pl. + +1999-12-08 00:54 pn + + * Makefile.am: BUILT_SOURCES: Add msggen.pl (remove from + EXTRA_DIST) + +1999-12-08 00:53 pn + + * msggen.pl.in: Generate msggen.pl from msggen.pl.in. Add header to + generated .po file. + +1999-12-07 13:19 pn + + * include/CmdLineApp.h, lib/CmdLineApp.cxx, + lib/CmdLineAppMessages.msg: CmdLineApp::registerOption(): Added + back the old form registering an undocumented option. + +1999-12-07 08:56 pn + + * po/sv.po: New translations added. + +1999-12-07 08:53 pn + + * lib/CmdLineAppMessages.msg: tryHelpOptionFor INfo added. + +1999-12-07 08:50 pn + + * include/CmdLineApp.h, lib/CmdLineApp.cxx: Help message lokks more + like GNU tools. --help prints help message on stdout and exits + successfully. Help message lokks more like GNU tools. --help + prints help message on stdout and exits successfully. + +1999-12-07 08:35 clasen + + * lib/CmdLineApp.cxx: Make sure arg names in usage() get + translated. + +1999-12-06 16:09 clasen + + * po/de.po: More german translations. + +1999-12-06 15:54 clasen + + * include/CmdLineApp.h, lib/CmdLineApp.cxx, + lib/CmdLineAppMessages.msg, lib/EntityApp.cxx, + lib/EntityAppMessages.msg, lib/ParserApp.cxx, + lib/ParserAppMessages.msg, sgmlnorm/sgmlnorm.cxx, sx/sx.cxx: Add a + way to add information before the options list in usage() output, + some options got shorter names, resolved option name conficts, some + doc rewording. + +1999-12-06 14:28 clasen + + * acinclude.m4, configure.in, include/CmdLineApp.h, + lib/CmdLineApp.cxx, lib/EntityApp.cxx, spam/spam.cxx: Fix bug in + redefining cmdline options. + +1999-12-05 22:51 clasen + + * lib/EntityAppMessages.msg, sgmlnorm/SgmlnormMessages.msg, + spcat/SpcatMessages.msg, spent/SpentMessages.msg: add new messages + for translatable usage messages. + +1999-12-05 22:49 clasen + + * include/CmdLineApp.h, include/MessageFormatter.h, + include/Options.cxx, include/Options.h, include/sptchar.h, + lib/CmdLineApp.cxx, lib/CmdLineAppMessages.msg, lib/EntityApp.cxx, + lib/Makefile.am, lib/MessageFormatter.cxx, lib/ParserApp.cxx, + lib/ParserAppMessages.msg, nsgmls/NsgmlsMessages.msg, + nsgmls/nsgmls.cxx, po/POTFILES.in, sgmlnorm/Makefile.am, + sgmlnorm/sgmlnorm.cxx, spam/SpamMessages.msg, spam/spam.cxx, + spcat/Makefile.am, spcat/spcat.cxx, spent/Makefile.am, + spent/spent.cxx, sx/SxMessages.msg, sx/sx.cxx: Revamp long options + and usage message. + +1999-12-04 13:07 pn + + * po/sv.po: Updated after Matthias msggen.pl changes. + +1999-12-03 23:31 pn + + * po/sv.po: First Swedish messages. Most missing, and many + translated need review. + +1999-12-03 23:30 pn + + * configure.in: ALL_LINGUAS: Added Swedish translation. + +1999-12-03 18:48 clasen + + * lib/Makefile.am: Typo fix. + +1999-12-03 17:14 clasen + + * lib/Makefile.am, lib/ParserMessages.msg, nsgmls/Makefile.am, + po/Makefile.in.in, po/POTFILES.in, po/de.po, spam/Makefile.am, + sx/Makefile.am: Improve the build process for I18N: no more + intermediate .po files, msggen.pl now directly produces OpenSP.pot + from the .msg files when called with -p OpenSP.pot. + +1999-12-02 22:06 clasen + + * po/de.po: Latest and greatest translations. + +1999-12-01 22:01 clasen + + * NEWS, lib/ParserMessages.msg, po/de.po: More German translations, + fix some glitches in the English messages. + +1999-12-01 19:48 clasen + + * sx/sx.cxx: Typo fix. + +1999-12-01 19:46 clasen + + * spent/spent.cxx, sgmlnorm/sgmlnorm.cxx, sx/sx.cxx: Add a needed + include. + +1999-12-01 19:43 clasen + + * lib/ParserApp.cxx: Typo fix. + +1999-12-01 19:41 clasen + + * nsgmls/nsgmls.cxx, sgmlnorm/sgmlnorm.cxx, spam/spam.cxx, + spcat/spcat.cxx, spent/spent.cxx, sx/sx.cxx: Add long variants for + all options. This was done in a hurry and the names may be + improvable. + +1999-12-01 19:27 clasen + + * lib/: EntityApp.cxx, ParserApp.cxx: More long options. + +1999-12-01 19:08 clasen + + * include/CmdLineApp.h, include/Options.cxx, include/Options.h, + lib/CmdLineApp.cxx, lib/CmdLineAppMessages.msg, po/de.po: Long + options. Currently only CmdLineApp has some. + +1999-12-01 00:18 clasen + + * po/de.po: More german translations. + +1999-11-30 22:25 pn + + * acconfig.h: Add HAVE_GETTEXT and #define SP_ANSI_LIB to 1 to + match OJ definition. + +1999-11-30 19:16 clasen + + * lib/ParserMessages.msg: Remove some unwanted trailing spaces in + messages. + +1999-11-30 18:52 clasen + + * lib/Makefile.am, nsgmls/Makefile.am, spam/Makefile.am, + sx/Makefile.am: Add rules for .rc and .po files. + +1999-11-30 18:22 clasen + + * acconfig.h, configure.in, lib/MessageTable.cxx: Remove a + generated file in intl/, cosmetic fixes. + +1999-11-30 18:04 clasen + + * nsgmls/RastEventHandlerMessages.msg: Fix a typo. + +1999-11-30 17:46 clasen + + * acconfig.h: Re-add HAVE_GETTEXT which was accidentally removed. + +1999-11-29 17:37 clasen + + * lib/MessageTable.cxx: Make it compile. + +1999-11-29 17:32 clasen + + * acconfig.h, acinclude.m4, configure.in, include/MessageTable.h, + lib/CmdLineApp.cxx, lib/MessageTable.cxx: support ./configure + --disable-nls, use bindtextdomain() to find translated messages + where they are installed. + +1999-11-29 16:49 clasen + + * po/de.po: Remove illegal linebreak + +1999-11-29 16:33 clasen + + * Makefile.am, configure.in, include/Makefile.am: Generate config.h + at top level, since GNU gettext depends on it. + +1999-11-29 15:29 clasen + + * ABOUT-NLS: Apparently automake wants this to exist. + +1999-11-28 22:47 clasen + + * configure.in, po/de.po: Add beginning of german translation for + OpenSP. + +1999-11-28 22:46 clasen + + * lib/: Entity.cxx, EntityManagerMessages.msg, ParserMessages.msg, + StdioStorageMessages.msg: Message uniformity improvements. + +1999-11-27 01:00 clasen + + * configure.in: Cosmetic fix. + +1999-11-27 00:54 clasen + + * acconfig.h: Add gettext defines. + +1999-11-27 00:51 clasen + + * Makefile.am, configure.in, intl/Makefile.in, intl/bindtextdom.c, + intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c, + intl/finddomain.c, intl/gettext.c, intl/gettext.h, intl/gettextP.h, + intl/hash-string.h, intl/intl-compat.c, intl/libgettext.h, + intl/linux-msg.sed, intl/loadmsgcat.c, intl/localealias.c, + intl/po2tbl.sed.in, intl/textdomain.c, intl/xopen-msg.sed, + lib/Makefile.am, nsgmls/Makefile.am, po/Makefile.in.in, + po/POTFILES.in, spam/Makefile.am, sx/Makefile.am: First cut at GNU + gettext integration. + +1999-11-26 10:07 clasen + + * doc/: catalog.htm, nsgmls.htm, xml.htm: Update links to WebSGML + adaptations. + +1999-11-23 20:52 clasen + + * acconfig.h, acinclude.m4, configure.in, lib/EntityApp.cxx: Some + define cleanups. + +1999-11-22 22:40 clasen + + * README, doc/nsgmls.htm, lib/CatalogMessages.msg: Cleanups. + +1999-11-22 17:21 clasen + + * NEWS, doc/nsgmls.htm, pubtext/Makefile.am, pubtext/japan.dcl: + Document -n and -x, move japan.sgmldecl to pubtext/japan.dcl. + +1999-11-22 16:37 clasen + + * sp-generate.mak: Try to adapt win build. Here we go again: Win + users, test this !!! + +1999-11-21 02:27 clasen + + * include/Message.h, include/MessageReporter.h, + include/MessageTable.h, lib/CmdLineApp.cxx, lib/Makefile.am, + lib/Message.cxx, lib/MessageReporter.cxx, + lib/MessageReporterMessages.msg, lib/MessageTable.cxx, + lib/ParserApp.cxx, nsgmls/Makefile.am, spam/Makefile.am, + spcat/Makefile.am, sx/Makefile.am: Changes to the message reporting + system: make the message domain for gettext settable and set it to + OpenSP for all messages, make the `relevant clauses' info and + message numbers available via -x and -n; related changes to + msggen.pl. + +1999-11-20 22:23 clasen + + * lib/ParserMessages.msg: Move a comment. + +1999-11-15 21:19 pn + + * configure.in, lib/CmdLineApp.cxx: Change Package to SP_PACKAGE + and VERSION to SP_VERSION to avoid conflicts, since + include/config.h gets included by users. + +1999-11-14 14:03 clasen + + * configure.in: Remove AC_CONFIG_AUX_DIR(config). All aux files are + toplevel now (automake prefers this). + +1999-11-14 12:30 clasen + + * Makefile.am: Remove all from SUBDIRS. + +1999-11-14 12:22 clasen + + * all/Makefile.am: Add a forgotten Makefile. + +1999-11-14 00:40 clasen + + * Makefile.am: Remove unneccessary EXTRA_DIST stuff (automake knows + to include the config stuff if it is toplevel). + +1999-11-13 22:13 clasen + + * Makefile.am, acconfig.h, acinclude.m4, configure.in, + doc/Makefile.am, generic/Makefile.am, include/Makefile.am, + lib/Makefile.am, nsgmls/Makefile.am, pubtext/Makefile.am, + sgmlnorm/Makefile.am, spam/Makefile.am, spcat/Makefile.am, + spent/Makefile.am, sx/Makefile.am: More C++ autoconf tests, some + caching fixes in configure, add windows-only stuff to distribution, + add dist-zip target for windows distribution. + +1999-11-12 21:52 clasen + + * acinclude.m4: Fix a typo. + +1999-11-12 21:50 clasen + + * acinclude.m4, configure.in: remove unneeded test for RTTI. + +1999-11-12 21:45 clasen + + * acconfig.h, configure.in, include/Vector.cxx: Remove + SP_QUAL_TEMPLATE_DTOR_BROKEN, since the macro DTOR() whose + definition it influences is unused. + +1999-11-12 21:09 clasen + + * configure.in: Add test for `fancy' new_handler. + +1999-11-12 18:48 clasen + + * configure.in: Add forgotten type check. + +1999-11-12 18:15 clasen + + * lib/ExtendEntityManager.cxx: Fix a typo· + +1999-11-12 17:17 clasen + + * acconfig.h, acinclude.m4, configure.in, + lib/DtdDeclEventHandler.cxx, lib/DtdDeclEventHandler.h: Remove + erroneous SP_API on internal headers, add test for placement + operator delete. + +1999-11-11 21:45 clasen + + * instmac.pl: Move instmac.pl to toplevel. + +1999-11-11 19:09 clasen + + * README: Remove pointers to removed files. + +1999-11-11 17:54 clasen + + * configure.in: Some reorganization. + +1999-11-11 17:03 clasen + + * lib/CmdLineApp.cxx: Remove forgotten include of version.h + +1999-11-11 16:29 clasen + + * Makefile.am, configure.in, lib/CmdLineApp.cxx, + lib/CmdLineAppMessages.msg, lib/Makefile.am, nsgmls/Makefile.am, + spam/Makefile.am, spcat/Makefile.am, sx/Makefile.am: Directly use + the #defined VERSION instead of producing two intermediate files. + +1999-11-10 00:51 clasen + + * acconfig.h, configure.in, lib/memcmp.c: Add better thread support + detection, add check for memcmp with replacement. + +1999-11-09 21:15 pn + + * Makefile.am: EXTRA_DIST: Distribute files in config/. + +1999-11-09 11:07 clasen + + * acconfig.h, configure.in: A few more checks for #defines found by + ifnames. + +1999-11-09 10:16 pn + + * nsgmls/Makefile.am, sgmlnorm/Makefile.am, spent/Makefile.am, + sx/Makefile.am: INCLUDES: Added "-I" before directory names. + +1999-11-09 09:20 pn + + * spam/Makefile.am, spcat/Makefile.am: INCLUDES: Add "-I" before + include path. + +1999-11-08 16:29 clasen + + * acconfig.h, nsgmls/Makefile.am, sgmlnorm/Makefile.am, + spam/Makefile.am, spcat/Makefile.am, spent/Makefile.am, + sx/Makefile.am: More fixes, it should actually compile and work + now. + +1999-11-08 14:53 clasen + + * acconfig.h, acinclude.m4, configure.in: Added some cxx checks + found in the autoconf macro archive. + +1999-11-07 23:04 clasen + + * acconfig.h, configure.in, include/Makefile.am, lib/Makefile.am, + nsgmls/Makefile.am: Initial attempt to let configure create + config.h. + +1999-11-07 20:52 clasen + + * AUTHORS, Makefile.am, NEWS, README, configure.in, + doc/Makefile.am, generic/Makefile.am, include/Makefile.am, + lib/Makefile.am, nsgmls/Makefile.am, pubtext/Makefile.am, + sgmlnorm/Makefile.am, spam/Makefile.am, spcat/Makefile.am, + spent/Makefile.am, sx/Makefile.am: First attempt to automakify + OpenSP. + +1999-11-07 20:15 clasen + + * doc/xmlwarn.htm: Add forgotten file. + +1999-11-06 13:10 clasen + + * configure.in: Install headers in $(includedir)/OpenSP, move + configure.in to toplevel, remove generated file aclocal.m4. + +1999-11-04 08:35 clasen + + * COPYING, README, SP.dsw, SP.mak, build-win32.bat, + sp-generate.mak, sunfix.sh, all/README, all/all.dsp, + doc/archform.htm, doc/build.htm, doc/catalog, doc/catalog.htm, + doc/charset.htm, doc/features.htm, doc/generic.htm, doc/ideas.htm, + doc/index.htm, doc/new.htm, doc/nsgmls.htm, doc/sgmldecl.htm, + doc/sgmlnorm.htm, doc/sgmlsout.htm, doc/spam.htm, doc/spcat.htm, + doc/spent.htm, doc/sx.htm, doc/sysdecl.htm, doc/sysid.htm, + doc/xml.htm, generic/EventGenerator.h, + generic/ParserEventGeneratorKit.h, generic/SGMLApplication.h, + include/Allocator.h, include/ArcEngine.h, include/Attribute.h, + include/Attributed.h, include/Big5CodingSystem.h, + include/Boolean.h, include/CharMap.cxx, include/CharMap.h, + include/CharsetDecl.h, include/CharsetInfo.h, + include/CharsetRegistry.h, include/CmdLineApp.h, + include/CodingSystem.h, include/CodingSystemKit.h, + include/ConsoleOutput.h, include/ContentState.h, + include/ContentToken.h, include/CopyOwner.cxx, include/CopyOwner.h, + include/DescriptorManager.h, include/Dtd.h, + include/EUCJPCodingSystem.h, include/ElementType.h, + include/Entity.h, include/EntityApp.h, include/EntityCatalog.h, + include/EntityDecl.h, include/EntityManager.h, + include/ErrnoMessageArg.h, include/ErrorCountEventHandler.h, + include/Event.h, include/EventsWanted.h, + include/ExtendEntityManager.h, include/ExternalId.h, + include/Fixed2CodingSystem.h, include/GenericEventHandler.h, + include/Hash.h, include/HashTable.cxx, include/HashTable.h, + include/HashTableItemBase.cxx, include/HashTableItemBase.h, + include/IList.h, include/IListBase.h, include/IListIter.h, + include/IListIterBase.h, include/IQueue.cxx, include/IQueue.h, + include/ISet.cxx, include/ISet.h, include/ISetIter.h, + include/IdentityCodingSystem.h, include/InputSource.h, + include/InternalInputSource.h, include/Link.h, + include/LinkProcess.h, include/List.cxx, include/List.h, + include/ListIter.h, include/LiteralStorage.h, include/Location.h, + include/Lpd.h, include/Markup.h, include/Message.h, + include/MessageArg.h, include/MessageBuilder.h, + include/MessageEventHandler.h, include/MessageFormatter.h, + include/MessageReporter.h, include/MessageTable.h, include/Mode.h, + include/NCVector.h, include/NCVector.sed, include/Named.h, + include/NamedResource.h, include/NamedResourceTable.h, + include/NamedTable.h, include/Notation.h, + include/NotationStorage.h, include/OpenElement.h, + include/Options.cxx, include/Options.h, include/OutputByteStream.h, + include/OutputCharStream.h, include/Owner.cxx, include/Owner.h, + include/OwnerTable.cxx, include/OwnerTable.h, include/ParserApp.h, + include/ParserOptions.h, include/PointerTable.cxx, + include/PointerTable.h, include/PosixStorage.h, include/Ptr.cxx, + include/Ptr.h, include/RangeMap.cxx, include/RangeMap.h, + include/Resource.h, include/RewindStorageObject.h, + include/SJISCodingSystem.h, include/SOEntityCatalog.h, + include/Sd.h, include/SdText.h, include/SearchResultMessageArg.h, + include/SgmlParser.h, include/ShortReferenceMap.h, + include/StdioStorage.h, include/StorageManager.h, + include/StringC.h, include/StringOf.cxx, include/StringOf.h, + include/StringResource.h, include/SubstTable.h, include/Syntax.h, + include/Text.h, include/TranslateCodingSystem.h, include/TypeId.h, + include/URLStorage.h, include/UTF8CodingSystem.h, + include/UnicodeCodingSystem.h, include/UnivCharsetDesc.h, + include/Vector.cxx, include/Vector.h, include/Win32CodingSystem.h, + include/WinApp.h, include/WinInetStorage.h, + include/XMLCodingSystem.h, include/XcharMap.cxx, + include/XcharMap.h, include/constant.h, include/macros.h, + include/rtti.h, include/sptchar.h, include/types.h, include/xnew.h, + lib/Allocator.cxx, lib/ArcEngine.cxx, lib/ArcEngineMessages.msg, + lib/ArcProcessor.h, lib/Attribute.cxx, lib/Big5CodingSystem.cxx, + lib/CatalogEntry.h, lib/CatalogMessages.msg, lib/CharsetDecl.cxx, + lib/CharsetInfo.cxx, lib/CharsetRegistry.cxx, lib/CmdLineApp.cxx, + lib/CmdLineAppMessages.msg, lib/CodingSystem.cxx, + lib/CodingSystemKit.cxx, lib/ConsoleOutput.cxx, + lib/ContentState.cxx, lib/ContentToken.cxx, + lib/DescriptorManager.cxx, lib/Dtd.cxx, + lib/DtdDeclEventHandler.cxx, lib/DtdDeclEventHandler.h, + lib/EUCJPCodingSystem.cxx, lib/ElementType.cxx, lib/Entity.cxx, + lib/EntityApp.cxx, lib/EntityCatalog.cxx, lib/EntityDecl.cxx, + lib/EntityManager.cxx, lib/EntityManagerMessages.msg, + lib/EquivClass.h, lib/ErrnoMessageArg.cxx, + lib/ErrorCountEventHandler.cxx, lib/Event.cxx, + lib/EventGenerator.cxx, lib/EventQueue.h, + lib/ExtendEntityManager.cxx, lib/ExternalId.cxx, + lib/Fixed2CodingSystem.cxx, lib/GenericEventHandler.cxx, + lib/Group.cxx, lib/Group.h, lib/Hash.cxx, lib/IListBase.cxx, + lib/Id.cxx, lib/Id.h, lib/IdentityCodingSystem.cxx, + lib/InputSource.cxx, lib/InternalInputSource.cxx, lib/Link.cxx, + lib/LinkProcess.cxx, lib/LiteralStorage.cxx, lib/Location.cxx, + lib/Lpd.cxx, lib/LpdEntityRef.h, lib/Markup.cxx, lib/MarkupScan.h, + lib/Message.cxx, lib/MessageArg.cxx, lib/MessageEventHandler.cxx, + lib/MessageFormatter.cxx, lib/MessageFormatterMessages.msg, + lib/MessageReporter.cxx, lib/MessageReporterMessages.msg, + lib/MessageTable.cxx, lib/ModeInfo.cxx, lib/ModeInfo.h, + lib/Mutex.h, lib/NameToken.h, lib/Notation.cxx, + lib/NotationStorage.cxx, lib/NumericCharRefOrigin.cxx, + lib/NumericCharRefOrigin.h, lib/OffsetOrderedList.cxx, + lib/OffsetOrderedList.h, lib/OpenElement.cxx, + lib/OutputByteStream.cxx, lib/OutputCharStream.cxx, + lib/OutputState.cxx, lib/OutputState.h, lib/Param.cxx, lib/Param.h, + lib/Parser.cxx, lib/Parser.h, lib/ParserApp.cxx, + lib/ParserAppMessages.msg, lib/ParserEventGeneratorKit.cxx, + lib/ParserMessages.msg, lib/ParserOptions.cxx, lib/ParserState.cxx, + lib/ParserState.h, lib/Partition.cxx, lib/Partition.h, + lib/PosixStorage.cxx, lib/PosixStorageMessages.msg, lib/Priority.h, + lib/Recognizer.cxx, lib/Recognizer.h, lib/RewindStorageObject.cxx, + lib/SGMLApplication.cxx, lib/SJISCodingSystem.cxx, + lib/SOEntityCatalog.cxx, lib/Sd.cxx, lib/SdFormalError.h, + lib/SdText.cxx, lib/SearchResultMessageArg.cxx, lib/SgmlParser.cxx, + lib/ShortReferenceMap.cxx, lib/SrInfo.h, lib/StdioStorage.cxx, + lib/StdioStorageMessages.msg, lib/StorageManager.cxx, + lib/StorageObjectPosition.h, lib/Syntax.cxx, lib/Text.cxx, + lib/TokenMessageArg.cxx, lib/TokenMessageArg.h, + lib/TranslateCodingSystem.cxx, lib/Trie.h, lib/TrieBuilder.cxx, + lib/TrieBuilder.h, lib/TypeId.cxx, lib/URLStorage.cxx, + lib/URLStorageMessages.msg, lib/UTF8CodingSystem.cxx, lib/Undo.cxx, + lib/Undo.h, lib/UnicodeCodingSystem.cxx, lib/UnivCharsetDesc.cxx, + lib/Win32CodingSystem.cxx, lib/WinApp.cxx, lib/WinInetStorage.cxx, + lib/WinInetStorageMessages.msg, lib/XMLCodingSystem.cxx, + lib/app_inst.m4, lib/arc_inst.m4, lib/assert.cxx, lib/big5.h, + lib/entmgr_inst.m4, lib/events.h, lib/gb2312.h, lib/iso646-jis.h, + lib/iso8859-2.h, lib/iso8859-3.h, lib/iso8859-4.h, lib/iso8859-5.h, + lib/iso8859-6.h, lib/iso8859-7.h, lib/iso8859-8.h, lib/iso8859-9.h, + lib/jis0201.h, lib/jis0208.h, lib/jis0212.h, lib/ksc5601.h, + lib/lib.dsp, lib/lib.rc, lib/memmove.c, lib/parseAttribute.cxx, + lib/parseCommon.cxx, lib/parseDecl.cxx, lib/parseInstance.cxx, + lib/parseMode.cxx, lib/parseParam.cxx, lib/parseSd.cxx, + lib/parser_inst.m4, lib/splib.cxx, lib/splib.h, lib/splibpch.h, + lib/strerror.c, lib/token.h, lib/xentmgr_inst.m4, + nsgmls/NsgmlsMessages.msg, nsgmls/RastEventHandler.cxx, + nsgmls/RastEventHandler.h, nsgmls/RastEventHandlerMessages.msg, + nsgmls/SgmlsEventHandler.cxx, nsgmls/SgmlsEventHandler.h, + nsgmls/StringSet.cxx, nsgmls/StringSet.h, nsgmls/nsgmls.cxx, + nsgmls/nsgmls.dsp, nsgmls/nsgmls.rc, nsgmls/nsgmls_inst.m4, + pubtext/HTML32.dcl, pubtext/HTML32.dtd, pubtext/HTML32.soc, + pubtext/HTML4-f.dtd, pubtext/HTML4-s.dtd, pubtext/HTML4.dcl, + pubtext/HTML4.dtd, pubtext/HTML4.soc, pubtext/HTMLlat1.ent, + pubtext/HTMLspec.ent, pubtext/HTMLsym.ent, pubtext/ISOlat1.ent, + pubtext/ISOlat1.sgm, pubtext/html-1.dtd, pubtext/html-1s.dtd, + pubtext/html-s.dtd, pubtext/html.dcl, pubtext/html.dtd, + pubtext/html.soc, pubtext/xml.dcl, pubtext/xml.soc, + sgmlnorm/SGMLGenerator.cxx, sgmlnorm/SGMLGenerator.h, + sgmlnorm/sgmlnorm.cxx, sgmlnorm/sgmlnorm.dsp, + spam/CopyEventHandler.cxx, spam/CopyEventHandler.h, + spam/MarkupEventHandler.cxx, spam/MarkupEventHandler.h, + spam/SpamMessages.msg, spam/spam.cxx, spam/spam.dsp, spam/spam.rc, + spam/spam_inst.m4, spcat/spcat.cxx, spcat/spcat.dsp, + spcat/spcat_inst.m4, spent/spent.cxx, spent/spent.dsp, + sx/SxMessages.msg, sx/XmlOutputEventHandler.cxx, + sx/XmlOutputEventHandler.h, sx/XmlOutputMessages.msg, sx/sx.cxx, + sx/sx.dsp, sx/sx.rc, sx/sx_inst.m4, unicode/catalog, + unicode/demo.sgm, unicode/gensyntax.pl, unicode/unicode.sd, + unicode/unicode.syn: Initial revision, taken from the current jade + repository at tag before_split. + diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..23e5f25 --- /dev/null +++ b/INSTALL @@ -0,0 +1,236 @@ +Installation Instructions +************************* + +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free +Software Foundation, Inc. + +This file is free documentation; the Free Software Foundation gives +unlimited permission to copy, distribute and modify it. + +Basic Installation +================== + +These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. (Caching is +disabled by default to prevent problems with accidental use of stale +cache files.) + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You only need +`configure.ac' if you want to change it or regenerate `configure' using +a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes awhile. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + +Some systems require unusual options for compilation or linking that the +`configure' script does not know about. Run `./configure --help' for +details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + +You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not support the `VPATH' +variable, you have to compile the package for one architecture at a +time in the source code directory. After you have installed the +package for one architecture, use `make distclean' before reconfiguring +for another architecture. + +Installation Names +================== + +By default, `make install' installs the package's commands under +`/usr/local/bin', include files under `/usr/local/include', etc. You +can specify an installation prefix other than `/usr/local' by giving +`configure' the option `--prefix=PREFIX'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +pass the option `--exec-prefix=PREFIX' to `configure', the package uses +PREFIX as the prefix for installing programs and libraries. +Documentation and other data files still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=DIR' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + +Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + +There may be some features `configure' cannot figure out automatically, +but needs to determine by the type of machine the package will run on. +Usually, assuming the package is built to be run on the _same_ +architectures, `configure' can figure that out, but if it prints a +message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the option `--target=TYPE' to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + +If you want to set default values for `configure' scripts to share, you +can create a site shell script called `config.site' that gives default +values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + +Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +causes the specified `gcc' to be used as the C compiler (unless it is +overridden in the site shell script). Here is a another example: + + /bin/bash ./configure CONFIG_SHELL=/bin/bash + +Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent +configuration-related scripts to be executed by `/bin/bash'. + +`configure' Invocation +====================== + +`configure' recognizes the following options to control how it operates. + +`--help' +`-h' + Print a summary of the options to `configure', and exit. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..3703adf --- /dev/null +++ b/Makefile.am @@ -0,0 +1,44 @@ +## Process this file with automake to produce Makefile.in + +AUTOMAKE_OPTIONS = check-news + +SUBDIRS = pubtext unicode doc \ + include generic \ + intl po \ + lib nsgmls spent spam sgmlnorm sx spcat \ + tests @DOCSRC@ + +pkginclude_HEADERS = config.h + +docdir = $(datadir)/doc +pkgdocdir = $(docdir)/@PACKAGE@ + +pkgdoc_DATA = README ABOUT-NLS NEWS COPYING AUTHORS BUGS ChangeLog + +BUILT_SOURCES = config.h msggen.pl + +# these are not in CVS and get generated by 'automake --add-missing' +MAINTAINERCLEANFILES = install-sh mkinstalldirs missing \ + config.guess config.sub ltconfig ltmain.sh INSTALL \ + Makefile.in +## Note that we include the windows-only aux files. +## We include msggen.pl, since it won't be generated on Windows. +EXTRA_DIST = mkinstalldirs instmac.pl msggen.pl sunfix.sh SP.dsw SP.mak \ + build-win32.bat sp-generate.mak .cvsignore all/README all/all.dsp \ + @PACKAGE@-@VERSION@.spec config.rpath BUGS autoinit.sh + +dist-hook: + mv $(distdir)/include/config.h.old $(distdir)/config.h + if test -f $(top_srcdir)/update-changelog; then \ + cd $(top_srcdir); \ + ./update-changelog; \ + cp $(top_srcdir)/ChangeLog $(top_distdir); \ + fi + +dist-zip: distdir + -chmod -R a+r $(distdir) + zip -rql $(distdir).zip $(distdir) + -rm -rf $(distdir) + + +ACLOCAL_AMFLAGS = -I m4 diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..55c7be5 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,777 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = . +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +DIST_COMMON = README $(am__configure_deps) $(pkginclude_HEADERS) \ + $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(srcdir)/config.h.in $(srcdir)/msggen.pl.in $(srcdir)/spec.in \ + $(top_srcdir)/configure $(top_srcdir)/intl/Makefile.in \ + ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS config.guess \ + config.rpath config.sub depcomp install-sh ltmain.sh missing \ + mkinstalldirs +subdir = . +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno configure.status.lineno +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = ${PACKAGE}-${VERSION}.spec msggen.pl \ + intl/Makefile +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-exec-recursive install-info-recursive \ + install-recursive installcheck-recursive installdirs-recursive \ + pdf-recursive ps-recursive uninstall-info-recursive \ + uninstall-recursive +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pkgdocdir)" \ + "$(DESTDIR)$(pkgincludedir)" +pkgdocDATA_INSTALL = $(INSTALL_DATA) +DATA = $(pkgdoc_DATA) +pkgincludeHEADERS_INSTALL = $(INSTALL_HEADER) +HEADERS = $(pkginclude_HEADERS) +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d $(distdir) \ + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(distdir); }; } +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +AUTOMAKE_OPTIONS = check-news +SUBDIRS = pubtext unicode doc \ + include generic \ + intl po \ + lib nsgmls spent spam sgmlnorm sx spcat \ + tests @DOCSRC@ + +pkginclude_HEADERS = config.h +docdir = $(datadir)/doc +pkgdocdir = $(docdir)/@PACKAGE@ +pkgdoc_DATA = README ABOUT-NLS NEWS COPYING AUTHORS BUGS ChangeLog +BUILT_SOURCES = config.h msggen.pl + +# these are not in CVS and get generated by 'automake --add-missing' +MAINTAINERCLEANFILES = install-sh mkinstalldirs missing \ + config.guess config.sub ltconfig ltmain.sh INSTALL \ + Makefile.in + +EXTRA_DIST = mkinstalldirs instmac.pl msggen.pl sunfix.sh SP.dsw SP.mak \ + build-win32.bat sp-generate.mak .cvsignore all/README all/all.dsp \ + @PACKAGE@-@VERSION@.spec config.rpath BUGS autoinit.sh + +ACLOCAL_AMFLAGS = -I m4 +all: $(BUILT_SOURCES) config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +am--refresh: + @: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ + cd $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + +config.h: stamp-h1 + @if test ! -f $@; then \ + rm -f stamp-h1; \ + $(MAKE) stamp-h1; \ + else :; fi + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_srcdir) && $(AUTOHEADER) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 +${PACKAGE}-${VERSION}.spec: $(top_builddir)/config.status $(srcdir)/spec.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +msggen.pl: $(top_builddir)/config.status $(srcdir)/msggen.pl.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +intl/Makefile: $(top_builddir)/config.status $(top_srcdir)/intl/Makefile.in + cd $(top_builddir) && $(SHELL) ./config.status $@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +install-pkgdocDATA: $(pkgdoc_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkgdocdir)" || $(mkdir_p) "$(DESTDIR)$(pkgdocdir)" + @list='$(pkgdoc_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(pkgdocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdocdir)/$$f'"; \ + $(pkgdocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdocdir)/$$f"; \ + done + +uninstall-pkgdocDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgdoc_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pkgdocdir)/$$f'"; \ + rm -f "$(DESTDIR)$(pkgdocdir)/$$f"; \ + done +install-pkgincludeHEADERS: $(pkginclude_HEADERS) + @$(NORMAL_INSTALL) + test -z "$(pkgincludedir)" || $(mkdir_p) "$(DESTDIR)$(pkgincludedir)" + @list='$(pkginclude_HEADERS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(pkgincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgincludedir)/$$f'"; \ + $(pkgincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgincludedir)/$$f"; \ + done + +uninstall-pkgincludeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(pkginclude_HEADERS)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pkgincludedir)/$$f'"; \ + rm -f "$(DESTDIR)$(pkgincludedir)/$$f"; \ + done + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +mostlyclean-recursive clean-recursive distclean-recursive \ +maintainer-clean-recursive: + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @case `sed 15q $(srcdir)/NEWS` in \ + *"$(VERSION)"*) : ;; \ + *) \ + echo "NEWS not updated; not releasing" 1>&2; \ + exit 1;; \ + esac + $(am__remove_distdir) + mkdir $(distdir) + $(mkdir_p) $(distdir)/. $(distdir)/all $(distdir)/include $(distdir)/intl $(distdir)/m4 $(distdir)/po + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(mkdir_p) "$(distdir)/$$subdir" \ + || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ + distdir) \ + || exit 1; \ + fi; \ + done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-hook + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(distdir) +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && cd $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + --with-included-gettext \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' +distuninstallcheck: + @cd $(distuninstallcheck_dir) \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-recursive +all-am: Makefile $(DATA) $(HEADERS) config.h +installdirs: installdirs-recursive +installdirs-am: + for dir in "$(DESTDIR)$(pkgdocdir)" "$(DESTDIR)$(pkgincludedir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-hdr \ + distclean-libtool distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +info: info-recursive + +info-am: + +install-data-am: install-pkgdocDATA install-pkgincludeHEADERS + +install-exec-am: + +install-info: install-info-recursive + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-info-am uninstall-pkgdocDATA \ + uninstall-pkgincludeHEADERS + +uninstall-info: uninstall-info-recursive + +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ + check-am clean clean-generic clean-libtool clean-recursive \ + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ + dist-hook dist-shar dist-tarZ dist-zip distcheck distclean \ + distclean-generic distclean-hdr distclean-libtool \ + distclean-recursive distclean-tags distcleancheck distdir \ + distuninstallcheck dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-pkgdocDATA install-pkgincludeHEADERS install-strip \ + installcheck installcheck-am installdirs installdirs-am \ + maintainer-clean maintainer-clean-generic \ + maintainer-clean-recursive mostlyclean mostlyclean-generic \ + mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ + tags tags-recursive uninstall uninstall-am uninstall-info-am \ + uninstall-pkgdocDATA uninstall-pkgincludeHEADERS + + +dist-hook: + mv $(distdir)/include/config.h.old $(distdir)/config.h + if test -f $(top_srcdir)/update-changelog; then \ + cd $(top_srcdir); \ + ./update-changelog; \ + cp $(top_srcdir)/ChangeLog $(top_distdir); \ + fi + +dist-zip: distdir + -chmod -R a+r $(distdir) + zip -rql $(distdir).zip $(distdir) + -rm -rf $(distdir) +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..3921577 --- /dev/null +++ b/NEWS @@ -0,0 +1,155 @@ +Changes in OpenSP 1.5.2 + +* Support for version 4.0 and 4.1 of the GNU C++ compiler. +* Added doc building and config option. +* Updated local gettext. +* Added config option to turn off DTDDECL support. +* Update 'de' and 'fr' translations; add new 'tr' translation. +* Add more tests. (Karl Eichwalder) + +Changes in OpenSP 1.5.1 + +* Enable run time selection of message format with SP_MESSAGE_FORMAT + environment variable. Value is one of XML, NONE, TRADITIONAL (Nick Kew) + +* Add support for restricted files option to generic API (Nick Kew) + +* Add support for http redirection (Nick Kew) + +* Add support for specifying the user agent at run time with the + SP_HTTP_USER_AGENT environment variable (Nick Kew) + +* Add support for specifying Accept: headers with the + SP_HTTP_ACCEPT environment variable (Nick Kew) + +* Fix for Mac OS X/Darwin compilation (Peter O'Gorman) + +* Build Infrastructure/Localisation enhancements (Neil Roeth) + +* Enhancements to osx. Preserve case option, security fixes (Jessica Perry Hekman) + +* Start adding a testsuite. (Karl Eichwalder) + +Changes in OpenSP 1.5 + +* Fix crash when "-m" option specified. + +* Updated Translations (new "fr" translation). + +Changes in OpenSP 1.5pre9 + +* Support for "--restricted" option to restrict parsing of web based documents + to local files only. + +Changes in OpenSP 1.5pre8 + +* Support for newer autoconf, gettext tools + +* Added a -x command line option to osx, which allows users to + say whether they want sdata entities transformed into PIs or treated like + normal entities (the default is the latter, which is how osx always + behaved before this change). Contributed by Jessica Hekman. + +Changes in OpenSP 1.5pre7 + +* Option to produce error messages formatted as XML from Nick Kew + enable with ./configure --enable-xml-messages + +* Japanese Translation from SATO Satoru + +* Changed the way in which MessageFragments identify the module within + which their text resides (libModule, appModule, xModule) in order to + support Windows applications that use DLLs that use SP's DLL, where + the intervening DLLs also define messages to be used with the SP + message handling infrastructure. Patch contributed by Peter Newcomb + of Epremis Corp. + +* Enhancements to osx. Contributed by Jessica Perry Hekman, Dynamic Diagrams. + +* Added support for the PI-based architecture use declaration syntax + defined by Amendment 1 to ISO/IEC 10744:1997 (HyTime). This makes + it possible to specify architectural support attributes when using + architectures with XML, and is generally simpler than the original + syntax. See http://www.y12.doe.gov/sgml/wg8/document/1985.htm for + details. Patch contributed by Peter Newcomb of Epremis Corp. + +* Adds the architecture public id to the information passed to + implementations of ArcDirector. This is especially important when + using the PI-based architecture use declaration syntax, since there + may be no Notation object from which to get the information. Patch + contributed by Peter Newcomb of Epremis Corp. + +Changes in OpenSP 1.5pre6 + +* RPM spec file updates and corrections from Terje Bless + +* Adapt SP patch from Liam Quinn that adds a HTTP/1.0 Host header to HTTP + requests. Necessary to fetch DTDs specified in SYSTEM identifiers + when the DTD resides on a name-based "Virtual Host". + Thanks to 'tbe'. + +* Some GCC >= 2.96 fixes and other build improvements + +* A few minor documentation improvements, thanks to Terje Bless + +* require autoconf 2.52; fix some autoconf problems for the new version + +Changes in OpenSP 1.5pre5 + +* Fix 32-bit assumptions so we build on 64-bit platforms such + as Alpha. + +* Enable internationalized builds on Win32 + +* Other Win32 fixes + +* Re-instate the '-widref' option which was accidentally removed. + +* New output options (--option): comment, omitted, tagomit and attromit; + this shows comments and implied elements and/or attributes. + Patch from Robert Braddock. + +* German translation updates + +* Build hygene + +* Autoconf fix affecting at least some gcc 2.7.x installations + +Changes in OpenSP 1.5pre4 + +* More of Annex K supported: Common data attributes can now be + specified in external entity declarations. + +* The architecture engine supports #MAPTOKEN. + +* The multibyte version of OpenSP now uses 32bit chars and supports + the full UTF-16 range 0x0000-0x10ffff. + +Changes in OpenSP 1.4 + +* Support for the koi8-r (RFC 1489) encoding. + +* OpenSP now supports long cmdline options. + +* OpenSP is internationalized (currenly German and Swedish translations are + provided). + +* New option -h or --help shows a list of all available options with + descriptions. + +* New options -n and -x to see message numbers/relevant clauses with messages. + +* More of Annex K supported: SGML declarations on subdocs, + DATA declared value for attributes, DTD data entities and + DTD notations for doctypes, complete IMPLYDEF support, + ENTITIES REF constraints, URN parsing. Many new -w flags. + +* DTDDECL supported. + +* New spcat cmdline interface to the catalog manager. + +Changes in OpenSP 1.3.4 + +* Added the Entity classes to the public interface of the library/dll. + +1.3.3 The begin diff --git a/OpenSP-1.5.2.spec b/OpenSP-1.5.2.spec new file mode 100644 index 0000000..b9a78b5 --- /dev/null +++ b/OpenSP-1.5.2.spec @@ -0,0 +1,91 @@ +# Copyright (C) 2000 Matthias Clasen +# See the file COPYING for copying permissions. + +Summary: The OpenJade Group's SGML and XML parsing tools +Name: OpenSP +Version: 1.5.2 +Release: 1 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +License: GPL +Group: Applications/Text +Source: http://download.sourceforge.net/openjade/OpenSP-1.5.2.tar.gz +URL: http://openjade.sourceforge.net/ +Requires: OpenSP-lib + +%description +This package is a collection of SGML/XML tools called OpenSP. It is a fork from +James Clark's SP suite. These tools are used to parse, validate, and normalize +SGML and XML files. + +%package lib +Summary: Runtime library for the OpenJade group's SP suite +Group: System Environment/Libraries + +%description lib +This is the SP suite's shared library runtime support. This C++ +library contains entity management functions, parsing functions, and +other functions useful for SGML/XML/DSSSL development. + +%package devel +Summary: Libraries and include files for developing OpenSP applications. +Group: Development/Libraries + +%description devel +This contains include files and libraries for OpenSP. +This C++ library contains entity management functions, parsing functions, +and other functions useful for SGML/XML/DSSSL development. + +%prep +# check that rpm is new enough to know internal macros like %{_prefix} +rpmversion=`rpm -q --queryformat '%{RPMVERSION}' rpm | cut -d. -f1` +[ ${rpmversion} -lt 3 ] && { echo "please update rpm" exit 1 ; } +# unpack source .tar.gz package +%setup + +%build +# configure build system according to rpm settings +./configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --libexecdir=%{_libexecdir} --datadir=%{_datadir} --sysconfdir=%{_sysconfdir} --sharedstatedir=%{_sharedstatedir} --localstatedir=%{_localstatedir} --libdir=%{_libdir} --includedir=%{_includedir} --oldincludedir=%{_oldincludedir} --infodir=%{_infodir} --mandir=%{_mandir} +# compile and link +make CFLAGS="${RPM_OPT_FLAGS}" + +%install +# install all files +make "DESTDIR=${RPM_BUILD_ROOT}" install + +%clean +test "$RPM_BUILD_ROOT" = "/" || rm -rf "$RPM_BUILD_ROOT" + +%files +%defattr(-, root, root) +%{_bindir}/* +%{_datadir}/OpenSP/* +%doc %{_datadir}/doc/OpenSP/* +%doc %{_mandir}/man1/* + +%files lib +%defattr(-, root, root) +%{_libdir}/*.so.* +%{_datadir}/locale/*/LC_MESSAGES/sp4.mo + +%files devel +%defattr(-, root, root) +%{_libdir}/lib*.so +%{_libdir}/lib*.a +%{_libdir}/lib*.la +%{_includedir}/OpenSP/* + +%changelog +* Fri Aug 26 2005 Terje Bless +- Slightly tweak spec towards Fedora guidelines; + for Vendor, Packager, Copyright vs. License, and BuildRoot. + +* Fri Apr 09 2004 Terje Bless +- Add man pages to the "files" section for OpenSP. +- Use _datadir macro for doc files (Karl Eichwalder and Ville Skytta). +- Tweak name of l10n files; they get the lib's major rev appended. + +* Wed Feb 21 2001 Terje Bless +- Fixed name of l10n message files ("OpenSP" -> "sp"). + +* Tue Feb 20 2001 Terje Bless +- Tweaked strings, moved to Sourceforge. diff --git a/README b/README new file mode 100644 index 0000000..64913c6 --- /dev/null +++ b/README @@ -0,0 +1,18 @@ +Copyright (c) 1994, 1995, 1996 James Clark, 1999 Matthias Clasen + +This directory contains an SGML parser called OpenSP. + +See the file COPYING for copying permission. + +This is a production release. + +All documentation is in HTML format in the doc directory. Start with +doc/index.htm. + +The home page for OpenSP and OpenJade can be found at + + +Please report any bugs you find. +See . + +The OpenJade Team diff --git a/SP.dsw b/SP.dsw new file mode 100644 index 0000000..8f6510f --- /dev/null +++ b/SP.dsw @@ -0,0 +1,118 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "lib"=.\lib\lib.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "nsgmls"=.\nsgmls\nsgmls.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name lib + End Project Dependency +}}} + +############################################################################### + +Project: "sgmlnorm"=.\sgmlnorm\sgmlnorm.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name lib + End Project Dependency +}}} + +############################################################################### + +Project: "spam"=.\spam\spam.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name lib + End Project Dependency +}}} + +############################################################################### + +Project: "spent"=.\spent\spent.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name lib + End Project Dependency +}}} + +############################################################################### + +Project: "sx"=.\sx\sx.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name lib + End Project Dependency +}}} + +############################################################################### + +Project: "spcat"=.\spcat\spcat.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name lib + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### diff --git a/SP.mak b/SP.mak new file mode 100644 index 0000000..d482d3b --- /dev/null +++ b/SP.mak @@ -0,0 +1,22618 @@ +# Microsoft Developer Studio Generated NMAKE File, Format Version 4.20 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 +# TARGTYPE "Win32 (x86) External Target" 0x0106 +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +!IF "$(CFG)" == "" +CFG=sx - Win32 Debug +!MESSAGE No configuration specified. Defaulting to sx - Win32 Debug. +!ENDIF + +!IF "$(CFG)" != "lib - Win32 Release" && "$(CFG)" != "lib - Win32 Debug" &&\ + "$(CFG)" != "nsgmls - Win32 Release" && "$(CFG)" != "nsgmls - Win32 Debug" &&\ + "$(CFG)" != "spam - Win32 Release" && "$(CFG)" != "spam - Win32 Debug" &&\ + "$(CFG)" != "spent - Win32 Release" && "$(CFG)" != "spent - Win32 Debug" &&\ + "$(CFG)" != "sgmlnorm - Win32 Release" && "$(CFG)" != "sgmlnorm - Win32 Debug"\ + && "$(CFG)" != "all - Win32 Release" && "$(CFG)" != "all - Win32 Debug" &&\ + "$(CFG)" != "sx - Win32 Release" && "$(CFG)" != "sx - Win32 Debug" +!MESSAGE Invalid configuration "$(CFG)" specified. +!MESSAGE You can specify a configuration when running NMAKE on this makefile +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "SP.mak" CFG="sx - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "lib - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "lib - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "nsgmls - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "nsgmls - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE "spam - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "spam - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE "spent - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "spent - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE "sgmlnorm - Win32 Release" (based on\ + "Win32 (x86) Console Application") +!MESSAGE "sgmlnorm - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE "all - Win32 Release" (based on "Win32 (x86) External Target") +!MESSAGE "all - Win32 Debug" (based on "Win32 (x86) External Target") +!MESSAGE "sx - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "sx - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE +!ERROR An invalid configuration is specified. +!ENDIF + +!IF "$(OS)" == "Windows_NT" +NULL= +!ELSE +NULL=nul +!ENDIF +################################################################################ +# Begin Project +# PROP Target_Last_Scanned "lib - Win32 Debug" + +!IF "$(CFG)" == "lib - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "lib\Release" +# PROP BASE Intermediate_Dir "lib\Release" +# PROP BASE Target_Dir "lib" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "lib\Release" +# PROP Intermediate_Dir "lib\Release" +# PROP Target_Dir "lib" +OUTDIR=.\lib\Release +INTDIR=.\lib\Release + +ALL : ".\bin\sp133.dll" + +CLEAN : + -@erase "$(INTDIR)\Allocator.obj" + -@erase "$(INTDIR)\app_inst.obj" + -@erase "$(INTDIR)\arc_inst.obj" + -@erase "$(INTDIR)\ArcEngine.obj" + -@erase "$(INTDIR)\assert.obj" + -@erase "$(INTDIR)\Attribute.obj" + -@erase "$(INTDIR)\Big5CodingSystem.obj" + -@erase "$(INTDIR)\CharsetDecl.obj" + -@erase "$(INTDIR)\CharsetInfo.obj" + -@erase "$(INTDIR)\CharsetRegistry.obj" + -@erase "$(INTDIR)\CmdLineApp.obj" + -@erase "$(INTDIR)\CodingSystem.obj" + -@erase "$(INTDIR)\CodingSystemKit.obj" + -@erase "$(INTDIR)\ConsoleOutput.obj" + -@erase "$(INTDIR)\ContentState.obj" + -@erase "$(INTDIR)\ContentToken.obj" + -@erase "$(INTDIR)\DescriptorManager.obj" + -@erase "$(INTDIR)\Dtd.obj" + -@erase "$(INTDIR)\ElementType.obj" + -@erase "$(INTDIR)\Entity.obj" + -@erase "$(INTDIR)\EntityApp.obj" + -@erase "$(INTDIR)\EntityCatalog.obj" + -@erase "$(INTDIR)\EntityDecl.obj" + -@erase "$(INTDIR)\EntityManager.obj" + -@erase "$(INTDIR)\entmgr_inst.obj" + -@erase "$(INTDIR)\ErrnoMessageArg.obj" + -@erase "$(INTDIR)\ErrorCountEventHandler.obj" + -@erase "$(INTDIR)\EUCJPCodingSystem.obj" + -@erase "$(INTDIR)\Event.obj" + -@erase "$(INTDIR)\EventGenerator.obj" + -@erase "$(INTDIR)\ExtendEntityManager.obj" + -@erase "$(INTDIR)\ExternalId.obj" + -@erase "$(INTDIR)\Fixed2CodingSystem.obj" + -@erase "$(INTDIR)\GenericEventHandler.obj" + -@erase "$(INTDIR)\Group.obj" + -@erase "$(INTDIR)\Hash.obj" + -@erase "$(INTDIR)\Id.obj" + -@erase "$(INTDIR)\IdentityCodingSystem.obj" + -@erase "$(INTDIR)\IListBase.obj" + -@erase "$(INTDIR)\InputSource.obj" + -@erase "$(INTDIR)\InternalInputSource.obj" + -@erase "$(INTDIR)\lib.pch" + -@erase "$(INTDIR)\lib.res" + -@erase "$(INTDIR)\Link.obj" + -@erase "$(INTDIR)\LinkProcess.obj" + -@erase "$(INTDIR)\LiteralStorage.obj" + -@erase "$(INTDIR)\Location.obj" + -@erase "$(INTDIR)\Lpd.obj" + -@erase "$(INTDIR)\Markup.obj" + -@erase "$(INTDIR)\Message.obj" + -@erase "$(INTDIR)\MessageArg.obj" + -@erase "$(INTDIR)\MessageEventHandler.obj" + -@erase "$(INTDIR)\MessageFormatter.obj" + -@erase "$(INTDIR)\MessageReporter.obj" + -@erase "$(INTDIR)\MessageTable.obj" + -@erase "$(INTDIR)\ModeInfo.obj" + -@erase "$(INTDIR)\Notation.obj" + -@erase "$(INTDIR)\NotationStorage.obj" + -@erase "$(INTDIR)\NumericCharRefOrigin.obj" + -@erase "$(INTDIR)\OffsetOrderedList.obj" + -@erase "$(INTDIR)\OpenElement.obj" + -@erase "$(INTDIR)\OutputByteStream.obj" + -@erase "$(INTDIR)\OutputCharStream.obj" + -@erase "$(INTDIR)\OutputState.obj" + -@erase "$(INTDIR)\Param.obj" + -@erase "$(INTDIR)\parseAttribute.obj" + -@erase "$(INTDIR)\parseCommon.obj" + -@erase "$(INTDIR)\parseDecl.obj" + -@erase "$(INTDIR)\parseInstance.obj" + -@erase "$(INTDIR)\parseMode.obj" + -@erase "$(INTDIR)\parseParam.obj" + -@erase "$(INTDIR)\Parser.obj" + -@erase "$(INTDIR)\parser_inst.obj" + -@erase "$(INTDIR)\ParserApp.obj" + -@erase "$(INTDIR)\ParserEventGeneratorKit.obj" + -@erase "$(INTDIR)\ParserMessages.obj" + -@erase "$(INTDIR)\ParserOptions.obj" + -@erase "$(INTDIR)\ParserState.obj" + -@erase "$(INTDIR)\parseSd.obj" + -@erase "$(INTDIR)\Partition.obj" + -@erase "$(INTDIR)\PosixStorage.obj" + -@erase "$(INTDIR)\Recognizer.obj" + -@erase "$(INTDIR)\RewindStorageObject.obj" + -@erase "$(INTDIR)\Sd.obj" + -@erase "$(INTDIR)\SdText.obj" + -@erase "$(INTDIR)\SearchResultMessageArg.obj" + -@erase "$(INTDIR)\SGMLApplication.obj" + -@erase "$(INTDIR)\SgmlParser.obj" + -@erase "$(INTDIR)\ShortReferenceMap.obj" + -@erase "$(INTDIR)\SJISCodingSystem.obj" + -@erase "$(INTDIR)\SOEntityCatalog.obj" + -@erase "$(INTDIR)\splib.obj" + -@erase "$(INTDIR)\StdioStorage.obj" + -@erase "$(INTDIR)\StorageManager.obj" + -@erase "$(INTDIR)\StringVectorMessageArg.obj" + -@erase "$(INTDIR)\Syntax.obj" + -@erase "$(INTDIR)\Text.obj" + -@erase "$(INTDIR)\TokenMessageArg.obj" + -@erase "$(INTDIR)\TranslateCodingSystem.obj" + -@erase "$(INTDIR)\TrieBuilder.obj" + -@erase "$(INTDIR)\TypeId.obj" + -@erase "$(INTDIR)\Undo.obj" + -@erase "$(INTDIR)\UnicodeCodingSystem.obj" + -@erase "$(INTDIR)\UnivCharsetDesc.obj" + -@erase "$(INTDIR)\URLStorage.obj" + -@erase "$(INTDIR)\UTF8CodingSystem.obj" + -@erase "$(INTDIR)\Win32CodingSystem.obj" + -@erase "$(INTDIR)\WinApp.obj" + -@erase "$(INTDIR)\WinInetStorage.obj" + -@erase "$(INTDIR)\xentmgr_inst.obj" + -@erase "$(INTDIR)\XMLCodingSystem.obj" + -@erase "$(OUTDIR)\sp133.exp" + -@erase "$(OUTDIR)\sp133.lib" + -@erase ".\bin\sp133.dll" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP=cl.exe +# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "include" /I "generic" /D "NDEBUG" /D "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE" /Yu"splib.h" /c +CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "include" /I "generic" /D "NDEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yu"splib.h" /Fo"$(INTDIR)/" /c +CPP_OBJS=.\lib\Release/ +CPP_SBRS=.\. + +.c{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.c{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +MTL=mktyplib.exe +# ADD BASE MTL /nologo /D "NDEBUG" /win32 +# ADD MTL /nologo /D "NDEBUG" /win32 +MTL_PROJ=/nologo /D "NDEBUG" /win32 +RSC=rc.exe +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +RSC_PROJ=/l 0x809 /fo"$(INTDIR)/lib.res" /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +BSC32_FLAGS=/nologo /o"$(OUTDIR)/lib.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /dll /machine:I386 +# ADD LINK32 wininet.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /dll /machine:I386 /out:"bin/sp133.dll" +# SUBTRACT LINK32 /profile +LINK32_FLAGS=wininet.lib wsock32.lib kernel32.lib user32.lib gdi32.lib\ + winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib\ + uuid.lib /nologo /subsystem:windows /dll /incremental:no\ + /pdb:"$(OUTDIR)/sp133.pdb" /machine:I386 /out:"bin/sp133.dll"\ + /implib:"$(OUTDIR)/sp133.lib" +LINK32_OBJS= \ + "$(INTDIR)\Allocator.obj" \ + "$(INTDIR)\app_inst.obj" \ + "$(INTDIR)\arc_inst.obj" \ + "$(INTDIR)\ArcEngine.obj" \ + "$(INTDIR)\assert.obj" \ + "$(INTDIR)\Attribute.obj" \ + "$(INTDIR)\Big5CodingSystem.obj" \ + "$(INTDIR)\CharsetDecl.obj" \ + "$(INTDIR)\CharsetInfo.obj" \ + "$(INTDIR)\CharsetRegistry.obj" \ + "$(INTDIR)\CmdLineApp.obj" \ + "$(INTDIR)\CodingSystem.obj" \ + "$(INTDIR)\CodingSystemKit.obj" \ + "$(INTDIR)\ConsoleOutput.obj" \ + "$(INTDIR)\ContentState.obj" \ + "$(INTDIR)\ContentToken.obj" \ + "$(INTDIR)\DescriptorManager.obj" \ + "$(INTDIR)\Dtd.obj" \ + "$(INTDIR)\ElementType.obj" \ + "$(INTDIR)\Entity.obj" \ + "$(INTDIR)\EntityApp.obj" \ + "$(INTDIR)\EntityCatalog.obj" \ + "$(INTDIR)\EntityDecl.obj" \ + "$(INTDIR)\EntityManager.obj" \ + "$(INTDIR)\entmgr_inst.obj" \ + "$(INTDIR)\ErrnoMessageArg.obj" \ + "$(INTDIR)\ErrorCountEventHandler.obj" \ + "$(INTDIR)\EUCJPCodingSystem.obj" \ + "$(INTDIR)\Event.obj" \ + "$(INTDIR)\EventGenerator.obj" \ + "$(INTDIR)\ExtendEntityManager.obj" \ + "$(INTDIR)\ExternalId.obj" \ + "$(INTDIR)\Fixed2CodingSystem.obj" \ + "$(INTDIR)\GenericEventHandler.obj" \ + "$(INTDIR)\Group.obj" \ + "$(INTDIR)\Hash.obj" \ + "$(INTDIR)\Id.obj" \ + "$(INTDIR)\IdentityCodingSystem.obj" \ + "$(INTDIR)\IListBase.obj" \ + "$(INTDIR)\InputSource.obj" \ + "$(INTDIR)\InternalInputSource.obj" \ + "$(INTDIR)\lib.res" \ + "$(INTDIR)\Link.obj" \ + "$(INTDIR)\LinkProcess.obj" \ + "$(INTDIR)\LiteralStorage.obj" \ + "$(INTDIR)\Location.obj" \ + "$(INTDIR)\Lpd.obj" \ + "$(INTDIR)\Markup.obj" \ + "$(INTDIR)\Message.obj" \ + "$(INTDIR)\MessageArg.obj" \ + "$(INTDIR)\MessageEventHandler.obj" \ + "$(INTDIR)\MessageFormatter.obj" \ + "$(INTDIR)\MessageReporter.obj" \ + "$(INTDIR)\MessageTable.obj" \ + "$(INTDIR)\ModeInfo.obj" \ + "$(INTDIR)\Notation.obj" \ + "$(INTDIR)\NotationStorage.obj" \ + "$(INTDIR)\NumericCharRefOrigin.obj" \ + "$(INTDIR)\OffsetOrderedList.obj" \ + "$(INTDIR)\OpenElement.obj" \ + "$(INTDIR)\OutputByteStream.obj" \ + "$(INTDIR)\OutputCharStream.obj" \ + "$(INTDIR)\OutputState.obj" \ + "$(INTDIR)\Param.obj" \ + "$(INTDIR)\parseAttribute.obj" \ + "$(INTDIR)\parseCommon.obj" \ + "$(INTDIR)\parseDecl.obj" \ + "$(INTDIR)\parseInstance.obj" \ + "$(INTDIR)\parseMode.obj" \ + "$(INTDIR)\parseParam.obj" \ + "$(INTDIR)\Parser.obj" \ + "$(INTDIR)\parser_inst.obj" \ + "$(INTDIR)\ParserApp.obj" \ + "$(INTDIR)\ParserEventGeneratorKit.obj" \ + "$(INTDIR)\ParserMessages.obj" \ + "$(INTDIR)\ParserOptions.obj" \ + "$(INTDIR)\ParserState.obj" \ + "$(INTDIR)\parseSd.obj" \ + "$(INTDIR)\Partition.obj" \ + "$(INTDIR)\PosixStorage.obj" \ + "$(INTDIR)\Recognizer.obj" \ + "$(INTDIR)\RewindStorageObject.obj" \ + "$(INTDIR)\Sd.obj" \ + "$(INTDIR)\SdText.obj" \ + "$(INTDIR)\SearchResultMessageArg.obj" \ + "$(INTDIR)\SGMLApplication.obj" \ + "$(INTDIR)\SgmlParser.obj" \ + "$(INTDIR)\ShortReferenceMap.obj" \ + "$(INTDIR)\SJISCodingSystem.obj" \ + "$(INTDIR)\SOEntityCatalog.obj" \ + "$(INTDIR)\splib.obj" \ + "$(INTDIR)\StdioStorage.obj" \ + "$(INTDIR)\StorageManager.obj" \ + "$(INTDIR)\StringVectorMessageArg.obj" \ + "$(INTDIR)\Syntax.obj" \ + "$(INTDIR)\Text.obj" \ + "$(INTDIR)\TokenMessageArg.obj" \ + "$(INTDIR)\TranslateCodingSystem.obj" \ + "$(INTDIR)\TrieBuilder.obj" \ + "$(INTDIR)\TypeId.obj" \ + "$(INTDIR)\Undo.obj" \ + "$(INTDIR)\UnicodeCodingSystem.obj" \ + "$(INTDIR)\UnivCharsetDesc.obj" \ + "$(INTDIR)\URLStorage.obj" \ + "$(INTDIR)\UTF8CodingSystem.obj" \ + "$(INTDIR)\Win32CodingSystem.obj" \ + "$(INTDIR)\WinApp.obj" \ + "$(INTDIR)\WinInetStorage.obj" \ + "$(INTDIR)\xentmgr_inst.obj" \ + "$(INTDIR)\XMLCodingSystem.obj" + +".\bin\sp133.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "lib\Debug" +# PROP BASE Intermediate_Dir "lib\Debug" +# PROP BASE Target_Dir "lib" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "lib\Debug" +# PROP Intermediate_Dir "lib\Debug" +# PROP Target_Dir "lib" +OUTDIR=.\lib\Debug +INTDIR=.\lib\Debug + +ALL : ".\dbgbin\sp133d.dll" + +CLEAN : + -@erase "$(INTDIR)\Allocator.obj" + -@erase "$(INTDIR)\app_inst.obj" + -@erase "$(INTDIR)\arc_inst.obj" + -@erase "$(INTDIR)\ArcEngine.obj" + -@erase "$(INTDIR)\assert.obj" + -@erase "$(INTDIR)\Attribute.obj" + -@erase "$(INTDIR)\Big5CodingSystem.obj" + -@erase "$(INTDIR)\CharsetDecl.obj" + -@erase "$(INTDIR)\CharsetInfo.obj" + -@erase "$(INTDIR)\CharsetRegistry.obj" + -@erase "$(INTDIR)\CmdLineApp.obj" + -@erase "$(INTDIR)\CodingSystem.obj" + -@erase "$(INTDIR)\CodingSystemKit.obj" + -@erase "$(INTDIR)\ConsoleOutput.obj" + -@erase "$(INTDIR)\ContentState.obj" + -@erase "$(INTDIR)\ContentToken.obj" + -@erase "$(INTDIR)\DescriptorManager.obj" + -@erase "$(INTDIR)\Dtd.obj" + -@erase "$(INTDIR)\ElementType.obj" + -@erase "$(INTDIR)\Entity.obj" + -@erase "$(INTDIR)\EntityApp.obj" + -@erase "$(INTDIR)\EntityCatalog.obj" + -@erase "$(INTDIR)\EntityDecl.obj" + -@erase "$(INTDIR)\EntityManager.obj" + -@erase "$(INTDIR)\entmgr_inst.obj" + -@erase "$(INTDIR)\ErrnoMessageArg.obj" + -@erase "$(INTDIR)\ErrorCountEventHandler.obj" + -@erase "$(INTDIR)\EUCJPCodingSystem.obj" + -@erase "$(INTDIR)\Event.obj" + -@erase "$(INTDIR)\EventGenerator.obj" + -@erase "$(INTDIR)\ExtendEntityManager.obj" + -@erase "$(INTDIR)\ExternalId.obj" + -@erase "$(INTDIR)\Fixed2CodingSystem.obj" + -@erase "$(INTDIR)\GenericEventHandler.obj" + -@erase "$(INTDIR)\Group.obj" + -@erase "$(INTDIR)\Hash.obj" + -@erase "$(INTDIR)\Id.obj" + -@erase "$(INTDIR)\IdentityCodingSystem.obj" + -@erase "$(INTDIR)\IListBase.obj" + -@erase "$(INTDIR)\InputSource.obj" + -@erase "$(INTDIR)\InternalInputSource.obj" + -@erase "$(INTDIR)\lib.pch" + -@erase "$(INTDIR)\lib.res" + -@erase "$(INTDIR)\Link.obj" + -@erase "$(INTDIR)\LinkProcess.obj" + -@erase "$(INTDIR)\LiteralStorage.obj" + -@erase "$(INTDIR)\Location.obj" + -@erase "$(INTDIR)\Lpd.obj" + -@erase "$(INTDIR)\Markup.obj" + -@erase "$(INTDIR)\Message.obj" + -@erase "$(INTDIR)\MessageArg.obj" + -@erase "$(INTDIR)\MessageEventHandler.obj" + -@erase "$(INTDIR)\MessageFormatter.obj" + -@erase "$(INTDIR)\MessageReporter.obj" + -@erase "$(INTDIR)\MessageTable.obj" + -@erase "$(INTDIR)\ModeInfo.obj" + -@erase "$(INTDIR)\Notation.obj" + -@erase "$(INTDIR)\NotationStorage.obj" + -@erase "$(INTDIR)\NumericCharRefOrigin.obj" + -@erase "$(INTDIR)\OffsetOrderedList.obj" + -@erase "$(INTDIR)\OpenElement.obj" + -@erase "$(INTDIR)\OutputByteStream.obj" + -@erase "$(INTDIR)\OutputCharStream.obj" + -@erase "$(INTDIR)\OutputState.obj" + -@erase "$(INTDIR)\Param.obj" + -@erase "$(INTDIR)\parseAttribute.obj" + -@erase "$(INTDIR)\parseCommon.obj" + -@erase "$(INTDIR)\parseDecl.obj" + -@erase "$(INTDIR)\parseInstance.obj" + -@erase "$(INTDIR)\parseMode.obj" + -@erase "$(INTDIR)\parseParam.obj" + -@erase "$(INTDIR)\Parser.obj" + -@erase "$(INTDIR)\parser_inst.obj" + -@erase "$(INTDIR)\ParserApp.obj" + -@erase "$(INTDIR)\ParserEventGeneratorKit.obj" + -@erase "$(INTDIR)\ParserMessages.obj" + -@erase "$(INTDIR)\ParserOptions.obj" + -@erase "$(INTDIR)\ParserState.obj" + -@erase "$(INTDIR)\parseSd.obj" + -@erase "$(INTDIR)\Partition.obj" + -@erase "$(INTDIR)\PosixStorage.obj" + -@erase "$(INTDIR)\Recognizer.obj" + -@erase "$(INTDIR)\RewindStorageObject.obj" + -@erase "$(INTDIR)\Sd.obj" + -@erase "$(INTDIR)\SdText.obj" + -@erase "$(INTDIR)\SearchResultMessageArg.obj" + -@erase "$(INTDIR)\SGMLApplication.obj" + -@erase "$(INTDIR)\SgmlParser.obj" + -@erase "$(INTDIR)\ShortReferenceMap.obj" + -@erase "$(INTDIR)\SJISCodingSystem.obj" + -@erase "$(INTDIR)\SOEntityCatalog.obj" + -@erase "$(INTDIR)\splib.obj" + -@erase "$(INTDIR)\StdioStorage.obj" + -@erase "$(INTDIR)\StorageManager.obj" + -@erase "$(INTDIR)\StringVectorMessageArg.obj" + -@erase "$(INTDIR)\Syntax.obj" + -@erase "$(INTDIR)\Text.obj" + -@erase "$(INTDIR)\TokenMessageArg.obj" + -@erase "$(INTDIR)\TranslateCodingSystem.obj" + -@erase "$(INTDIR)\TrieBuilder.obj" + -@erase "$(INTDIR)\TypeId.obj" + -@erase "$(INTDIR)\Undo.obj" + -@erase "$(INTDIR)\UnicodeCodingSystem.obj" + -@erase "$(INTDIR)\UnivCharsetDesc.obj" + -@erase "$(INTDIR)\URLStorage.obj" + -@erase "$(INTDIR)\UTF8CodingSystem.obj" + -@erase "$(INTDIR)\vc40.pdb" + -@erase "$(INTDIR)\Win32CodingSystem.obj" + -@erase "$(INTDIR)\WinApp.obj" + -@erase "$(INTDIR)\WinInetStorage.obj" + -@erase "$(INTDIR)\xentmgr_inst.obj" + -@erase "$(INTDIR)\XMLCodingSystem.obj" + -@erase "$(OUTDIR)\sp133d.exp" + -@erase "$(OUTDIR)\sp133d.lib" + -@erase "$(OUTDIR)\sp133d.pdb" + -@erase ".\dbgbin\sp133d.dll" + -@erase ".\dbgbin\sp133d.ilk" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP=cl.exe +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c +# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "include" /I "generic" /D "_DEBUG" /D "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE" /Yu"splib.h" /c +CPP_PROJ=/nologo /MDd /W3 /GX /Zi /Od /I "include" /I "generic" /D "_DEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yu"splib.h" /Fo"$(INTDIR)/"\ + /Fd"$(INTDIR)/" /c +CPP_OBJS=.\lib\Debug/ +CPP_SBRS=.\. + +.c{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.c{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +MTL=mktyplib.exe +# ADD BASE MTL /nologo /D "_DEBUG" /win32 +# ADD MTL /nologo /D "_DEBUG" /win32 +MTL_PROJ=/nologo /D "_DEBUG" /win32 +RSC=rc.exe +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +RSC_PROJ=/l 0x809 /fo"$(INTDIR)/lib.res" /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +BSC32_FLAGS=/nologo /o"$(OUTDIR)/lib.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /dll /debug /machine:I386 +# ADD LINK32 wininet.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:"dbgbin/sp133d.dll" +LINK32_FLAGS=wininet.lib wsock32.lib kernel32.lib user32.lib gdi32.lib\ + winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib\ + uuid.lib /nologo /subsystem:windows /dll /incremental:yes\ + /pdb:"$(OUTDIR)/sp133d.pdb" /debug /machine:I386 /out:"dbgbin/sp133d.dll"\ + /implib:"$(OUTDIR)/sp133d.lib" +LINK32_OBJS= \ + "$(INTDIR)\Allocator.obj" \ + "$(INTDIR)\app_inst.obj" \ + "$(INTDIR)\arc_inst.obj" \ + "$(INTDIR)\ArcEngine.obj" \ + "$(INTDIR)\assert.obj" \ + "$(INTDIR)\Attribute.obj" \ + "$(INTDIR)\Big5CodingSystem.obj" \ + "$(INTDIR)\CharsetDecl.obj" \ + "$(INTDIR)\CharsetInfo.obj" \ + "$(INTDIR)\CharsetRegistry.obj" \ + "$(INTDIR)\CmdLineApp.obj" \ + "$(INTDIR)\CodingSystem.obj" \ + "$(INTDIR)\CodingSystemKit.obj" \ + "$(INTDIR)\ConsoleOutput.obj" \ + "$(INTDIR)\ContentState.obj" \ + "$(INTDIR)\ContentToken.obj" \ + "$(INTDIR)\DescriptorManager.obj" \ + "$(INTDIR)\Dtd.obj" \ + "$(INTDIR)\ElementType.obj" \ + "$(INTDIR)\Entity.obj" \ + "$(INTDIR)\EntityApp.obj" \ + "$(INTDIR)\EntityCatalog.obj" \ + "$(INTDIR)\EntityDecl.obj" \ + "$(INTDIR)\EntityManager.obj" \ + "$(INTDIR)\entmgr_inst.obj" \ + "$(INTDIR)\ErrnoMessageArg.obj" \ + "$(INTDIR)\ErrorCountEventHandler.obj" \ + "$(INTDIR)\EUCJPCodingSystem.obj" \ + "$(INTDIR)\Event.obj" \ + "$(INTDIR)\EventGenerator.obj" \ + "$(INTDIR)\ExtendEntityManager.obj" \ + "$(INTDIR)\ExternalId.obj" \ + "$(INTDIR)\Fixed2CodingSystem.obj" \ + "$(INTDIR)\GenericEventHandler.obj" \ + "$(INTDIR)\Group.obj" \ + "$(INTDIR)\Hash.obj" \ + "$(INTDIR)\Id.obj" \ + "$(INTDIR)\IdentityCodingSystem.obj" \ + "$(INTDIR)\IListBase.obj" \ + "$(INTDIR)\InputSource.obj" \ + "$(INTDIR)\InternalInputSource.obj" \ + "$(INTDIR)\lib.res" \ + "$(INTDIR)\Link.obj" \ + "$(INTDIR)\LinkProcess.obj" \ + "$(INTDIR)\LiteralStorage.obj" \ + "$(INTDIR)\Location.obj" \ + "$(INTDIR)\Lpd.obj" \ + "$(INTDIR)\Markup.obj" \ + "$(INTDIR)\Message.obj" \ + "$(INTDIR)\MessageArg.obj" \ + "$(INTDIR)\MessageEventHandler.obj" \ + "$(INTDIR)\MessageFormatter.obj" \ + "$(INTDIR)\MessageReporter.obj" \ + "$(INTDIR)\MessageTable.obj" \ + "$(INTDIR)\ModeInfo.obj" \ + "$(INTDIR)\Notation.obj" \ + "$(INTDIR)\NotationStorage.obj" \ + "$(INTDIR)\NumericCharRefOrigin.obj" \ + "$(INTDIR)\OffsetOrderedList.obj" \ + "$(INTDIR)\OpenElement.obj" \ + "$(INTDIR)\OutputByteStream.obj" \ + "$(INTDIR)\OutputCharStream.obj" \ + "$(INTDIR)\OutputState.obj" \ + "$(INTDIR)\Param.obj" \ + "$(INTDIR)\parseAttribute.obj" \ + "$(INTDIR)\parseCommon.obj" \ + "$(INTDIR)\parseDecl.obj" \ + "$(INTDIR)\parseInstance.obj" \ + "$(INTDIR)\parseMode.obj" \ + "$(INTDIR)\parseParam.obj" \ + "$(INTDIR)\Parser.obj" \ + "$(INTDIR)\parser_inst.obj" \ + "$(INTDIR)\ParserApp.obj" \ + "$(INTDIR)\ParserEventGeneratorKit.obj" \ + "$(INTDIR)\ParserMessages.obj" \ + "$(INTDIR)\ParserOptions.obj" \ + "$(INTDIR)\ParserState.obj" \ + "$(INTDIR)\parseSd.obj" \ + "$(INTDIR)\Partition.obj" \ + "$(INTDIR)\PosixStorage.obj" \ + "$(INTDIR)\Recognizer.obj" \ + "$(INTDIR)\RewindStorageObject.obj" \ + "$(INTDIR)\Sd.obj" \ + "$(INTDIR)\SdText.obj" \ + "$(INTDIR)\SearchResultMessageArg.obj" \ + "$(INTDIR)\SGMLApplication.obj" \ + "$(INTDIR)\SgmlParser.obj" \ + "$(INTDIR)\ShortReferenceMap.obj" \ + "$(INTDIR)\SJISCodingSystem.obj" \ + "$(INTDIR)\SOEntityCatalog.obj" \ + "$(INTDIR)\splib.obj" \ + "$(INTDIR)\StdioStorage.obj" \ + "$(INTDIR)\StorageManager.obj" \ + "$(INTDIR)\StringVectorMessageArg.obj" \ + "$(INTDIR)\Syntax.obj" \ + "$(INTDIR)\Text.obj" \ + "$(INTDIR)\TokenMessageArg.obj" \ + "$(INTDIR)\TranslateCodingSystem.obj" \ + "$(INTDIR)\TrieBuilder.obj" \ + "$(INTDIR)\TypeId.obj" \ + "$(INTDIR)\Undo.obj" \ + "$(INTDIR)\UnicodeCodingSystem.obj" \ + "$(INTDIR)\UnivCharsetDesc.obj" \ + "$(INTDIR)\URLStorage.obj" \ + "$(INTDIR)\UTF8CodingSystem.obj" \ + "$(INTDIR)\Win32CodingSystem.obj" \ + "$(INTDIR)\WinApp.obj" \ + "$(INTDIR)\WinInetStorage.obj" \ + "$(INTDIR)\xentmgr_inst.obj" \ + "$(INTDIR)\XMLCodingSystem.obj" + +".\dbgbin\sp133d.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ELSEIF "$(CFG)" == "nsgmls - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "nsgmls\Release" +# PROP BASE Intermediate_Dir "nsgmls\Release" +# PROP BASE Target_Dir "nsgmls" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "nsgmls\Release" +# PROP Intermediate_Dir "nsgmls\Release" +# PROP Target_Dir "nsgmls" +OUTDIR=.\nsgmls\Release +INTDIR=.\nsgmls\Release + +ALL : "lib - Win32 Release" ".\bin\nsgmls.exe" + +CLEAN : + -@erase "$(INTDIR)\nsgmls.obj" + -@erase "$(INTDIR)\nsgmls.res" + -@erase "$(INTDIR)\nsgmls_inst.obj" + -@erase "$(INTDIR)\RastEventHandler.obj" + -@erase "$(INTDIR)\SgmlsEventHandler.obj" + -@erase "$(INTDIR)\StringSet.obj" + -@erase ".\bin\nsgmls.exe" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP=cl.exe +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE" /YX /c +CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "include" /D "NDEBUG" /D "_CONSOLE" /D\ + "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE"\ + /Fp"$(INTDIR)/nsgmls.pch" /YX /Fo"$(INTDIR)/" /c +CPP_OBJS=.\nsgmls\Release/ +CPP_SBRS=.\. + +.c{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.c{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +RSC=rc.exe +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +RSC_PROJ=/l 0x809 /fo"$(INTDIR)/nsgmls.res" /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +BSC32_FLAGS=/nologo /o"$(OUTDIR)/nsgmls.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"bin/nsgmls.exe" +# SUBTRACT LINK32 /profile +LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ + advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo\ + /subsystem:console /incremental:no /pdb:"$(OUTDIR)/nsgmls.pdb" /machine:I386\ + /out:"bin/nsgmls.exe" +LINK32_OBJS= \ + "$(INTDIR)\nsgmls.obj" \ + "$(INTDIR)\nsgmls.res" \ + "$(INTDIR)\nsgmls_inst.obj" \ + "$(INTDIR)\RastEventHandler.obj" \ + "$(INTDIR)\SgmlsEventHandler.obj" \ + "$(INTDIR)\StringSet.obj" \ + ".\lib\Release\sp133.lib" + +".\bin\nsgmls.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ELSEIF "$(CFG)" == "nsgmls - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "nsgmls\Debug" +# PROP BASE Intermediate_Dir "nsgmls\Debug" +# PROP BASE Target_Dir "nsgmls" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "nsgmls\Debug" +# PROP Intermediate_Dir "nsgmls\Debug" +# PROP Target_Dir "nsgmls" +OUTDIR=.\nsgmls\Debug +INTDIR=.\nsgmls\Debug + +ALL : "lib - Win32 Debug" ".\dbgbin\nsgmls.exe" + +CLEAN : + -@erase "$(INTDIR)\nsgmls.obj" + -@erase "$(INTDIR)\nsgmls.res" + -@erase "$(INTDIR)\nsgmls_inst.obj" + -@erase "$(INTDIR)\RastEventHandler.obj" + -@erase "$(INTDIR)\SgmlsEventHandler.obj" + -@erase "$(INTDIR)\StringSet.obj" + -@erase "$(INTDIR)\vc40.idb" + -@erase "$(INTDIR)\vc40.pdb" + -@erase "$(OUTDIR)\nsgmls.pdb" + -@erase ".\dbgbin\nsgmls.exe" + -@erase ".\dbgbin\nsgmls.ilk" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP=cl.exe +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE" /YX /c +CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /D "_DEBUG" /D\ + "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE"\ + /Fp"$(INTDIR)/nsgmls.pch" /YX /Fo"$(INTDIR)/" /Fd"$(INTDIR)/" /c +CPP_OBJS=.\nsgmls\Debug/ +CPP_SBRS=.\. + +.c{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.c{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +RSC=rc.exe +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +RSC_PROJ=/l 0x809 /fo"$(INTDIR)/nsgmls.res" /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +BSC32_FLAGS=/nologo /o"$(OUTDIR)/nsgmls.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"dbgbin/nsgmls.exe" +LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ + advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo\ + /subsystem:console /incremental:yes /pdb:"$(OUTDIR)/nsgmls.pdb" /debug\ + /machine:I386 /out:"dbgbin/nsgmls.exe" +LINK32_OBJS= \ + "$(INTDIR)\nsgmls.obj" \ + "$(INTDIR)\nsgmls.res" \ + "$(INTDIR)\nsgmls_inst.obj" \ + "$(INTDIR)\RastEventHandler.obj" \ + "$(INTDIR)\SgmlsEventHandler.obj" \ + "$(INTDIR)\StringSet.obj" \ + ".\lib\Debug\sp133d.lib" + +".\dbgbin\nsgmls.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ELSEIF "$(CFG)" == "spam - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "spam\Release" +# PROP BASE Intermediate_Dir "spam\Release" +# PROP BASE Target_Dir "spam" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "spam\Release" +# PROP Intermediate_Dir "spam\Release" +# PROP Target_Dir "spam" +OUTDIR=.\spam\Release +INTDIR=.\spam\Release + +ALL : "lib - Win32 Release" ".\bin\spam.exe" + +CLEAN : + -@erase "$(INTDIR)\CopyEventHandler.obj" + -@erase "$(INTDIR)\MarkupEventHandler.obj" + -@erase "$(INTDIR)\spam.obj" + -@erase "$(INTDIR)\spam.res" + -@erase "$(INTDIR)\spam_inst.obj" + -@erase ".\bin\spam.exe" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP=cl.exe +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE" /YX /c +CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "include" /D "NDEBUG" /D "_CONSOLE" /D\ + "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE"\ + /Fp"$(INTDIR)/spam.pch" /YX /Fo"$(INTDIR)/" /c +CPP_OBJS=.\spam\Release/ +CPP_SBRS=.\. + +.c{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.c{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +RSC=rc.exe +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +RSC_PROJ=/l 0x809 /fo"$(INTDIR)/spam.res" /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +BSC32_FLAGS=/nologo /o"$(OUTDIR)/spam.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"bin/spam.exe" +# SUBTRACT LINK32 /profile +LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ + advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo\ + /subsystem:console /incremental:no /pdb:"$(OUTDIR)/spam.pdb" /machine:I386\ + /out:"bin/spam.exe" +LINK32_OBJS= \ + "$(INTDIR)\CopyEventHandler.obj" \ + "$(INTDIR)\MarkupEventHandler.obj" \ + "$(INTDIR)\spam.obj" \ + "$(INTDIR)\spam.res" \ + "$(INTDIR)\spam_inst.obj" \ + ".\lib\Release\sp133.lib" + +".\bin\spam.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ELSEIF "$(CFG)" == "spam - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "spam\Debug" +# PROP BASE Intermediate_Dir "spam\Debug" +# PROP BASE Target_Dir "spam" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "spam\Debug" +# PROP Intermediate_Dir "spam\Debug" +# PROP Target_Dir "spam" +OUTDIR=.\spam\Debug +INTDIR=.\spam\Debug + +ALL : "lib - Win32 Debug" ".\dbgbin\spam.exe" + +CLEAN : + -@erase "$(INTDIR)\CopyEventHandler.obj" + -@erase "$(INTDIR)\MarkupEventHandler.obj" + -@erase "$(INTDIR)\spam.obj" + -@erase "$(INTDIR)\spam.res" + -@erase "$(INTDIR)\spam_inst.obj" + -@erase "$(INTDIR)\vc40.idb" + -@erase "$(INTDIR)\vc40.pdb" + -@erase "$(OUTDIR)\spam.pdb" + -@erase ".\dbgbin\spam.exe" + -@erase ".\dbgbin\spam.ilk" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP=cl.exe +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE" /YX /c +CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /D "_DEBUG" /D\ + "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE"\ + /Fp"$(INTDIR)/spam.pch" /YX /Fo"$(INTDIR)/" /Fd"$(INTDIR)/" /c +CPP_OBJS=.\spam\Debug/ +CPP_SBRS=.\. + +.c{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.c{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +RSC=rc.exe +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +RSC_PROJ=/l 0x809 /fo"$(INTDIR)/spam.res" /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +BSC32_FLAGS=/nologo /o"$(OUTDIR)/spam.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"dbgbin/spam.exe" +LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ + advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo\ + /subsystem:console /incremental:yes /pdb:"$(OUTDIR)/spam.pdb" /debug\ + /machine:I386 /out:"dbgbin/spam.exe" +LINK32_OBJS= \ + "$(INTDIR)\CopyEventHandler.obj" \ + "$(INTDIR)\MarkupEventHandler.obj" \ + "$(INTDIR)\spam.obj" \ + "$(INTDIR)\spam.res" \ + "$(INTDIR)\spam_inst.obj" \ + ".\lib\Debug\sp133d.lib" + +".\dbgbin\spam.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ELSEIF "$(CFG)" == "spent - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "spent\Release" +# PROP BASE Intermediate_Dir "spent\Release" +# PROP BASE Target_Dir "spent" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "spent\Release" +# PROP Intermediate_Dir "spent\Release" +# PROP Target_Dir "spent" +OUTDIR=.\spent\Release +INTDIR=.\spent\Release + +ALL : "lib - Win32 Release" ".\bin\spent.exe" + +CLEAN : + -@erase "$(INTDIR)\spent.obj" + -@erase ".\bin\spent.exe" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP=cl.exe +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE" /YX /c +CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "include" /D "NDEBUG" /D "_CONSOLE" /D\ + "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE"\ + /Fp"$(INTDIR)/spent.pch" /YX /Fo"$(INTDIR)/" /c +CPP_OBJS=.\spent\Release/ +CPP_SBRS=.\. + +.c{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.c{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +RSC=rc.exe +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +BSC32_FLAGS=/nologo /o"$(OUTDIR)/spent.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"bin/spent.exe" +# SUBTRACT LINK32 /profile +LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ + advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo\ + /subsystem:console /incremental:no /pdb:"$(OUTDIR)/spent.pdb" /machine:I386\ + /out:"bin/spent.exe" +LINK32_OBJS= \ + "$(INTDIR)\spent.obj" \ + ".\lib\Release\sp133.lib" + +".\bin\spent.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ELSEIF "$(CFG)" == "spent - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "spent\Debug" +# PROP BASE Intermediate_Dir "spent\Debug" +# PROP BASE Target_Dir "spent" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "spent\Debug" +# PROP Intermediate_Dir "spent\Debug" +# PROP Target_Dir "spent" +OUTDIR=.\spent\Debug +INTDIR=.\spent\Debug + +ALL : "lib - Win32 Debug" ".\dbgbin\spent.exe" + +CLEAN : + -@erase "$(INTDIR)\spent.obj" + -@erase "$(INTDIR)\vc40.idb" + -@erase "$(INTDIR)\vc40.pdb" + -@erase "$(OUTDIR)\spent.pdb" + -@erase ".\dbgbin\spent.exe" + -@erase ".\dbgbin\spent.ilk" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP=cl.exe +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE" /YX /c +CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /D "_DEBUG" /D\ + "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE"\ + /Fp"$(INTDIR)/spent.pch" /YX /Fo"$(INTDIR)/" /Fd"$(INTDIR)/" /c +CPP_OBJS=.\spent\Debug/ +CPP_SBRS=.\. + +.c{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.c{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +RSC=rc.exe +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +BSC32_FLAGS=/nologo /o"$(OUTDIR)/spent.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"dbgbin/spent.exe" +LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ + advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo\ + /subsystem:console /incremental:yes /pdb:"$(OUTDIR)/spent.pdb" /debug\ + /machine:I386 /out:"dbgbin/spent.exe" +LINK32_OBJS= \ + "$(INTDIR)\spent.obj" \ + ".\lib\Debug\sp133d.lib" + +".\dbgbin\spent.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ELSEIF "$(CFG)" == "sgmlnorm - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "sgmlnorm\Release" +# PROP BASE Intermediate_Dir "sgmlnorm\Release" +# PROP BASE Target_Dir "sgmlnorm" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "sgmlnorm\Release" +# PROP Intermediate_Dir "sgmlnorm\Release" +# PROP Target_Dir "sgmlnorm" +OUTDIR=.\sgmlnorm\Release +INTDIR=.\sgmlnorm\Release + +ALL : "lib - Win32 Release" ".\bin\sgmlnorm.exe" + +CLEAN : + -@erase "$(INTDIR)\SGMLGenerator.obj" + -@erase "$(INTDIR)\sgmlnorm.obj" + -@erase ".\bin\sgmlnorm.exe" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP=cl.exe +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "include" /I "generic" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE" /YX /c +CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "include" /I "generic" /D "NDEBUG" /D\ + "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE"\ + /Fp"$(INTDIR)/sgmlnorm.pch" /YX /Fo"$(INTDIR)/" /c +CPP_OBJS=.\sgmlnorm\Release/ +CPP_SBRS=.\. + +.c{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.c{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +RSC=rc.exe +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +BSC32_FLAGS=/nologo /o"$(OUTDIR)/sgmlnorm.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"bin/sgmlnorm.exe" +# SUBTRACT LINK32 /profile +LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ + advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo\ + /subsystem:console /incremental:no /pdb:"$(OUTDIR)/sgmlnorm.pdb" /machine:I386\ + /out:"bin/sgmlnorm.exe" +LINK32_OBJS= \ + "$(INTDIR)\SGMLGenerator.obj" \ + "$(INTDIR)\sgmlnorm.obj" \ + ".\lib\Release\sp133.lib" + +".\bin\sgmlnorm.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ELSEIF "$(CFG)" == "sgmlnorm - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "sgmlnorm\Debug" +# PROP BASE Intermediate_Dir "sgmlnorm\Debug" +# PROP BASE Target_Dir "sgmlnorm" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "sgmlnorm\Debug" +# PROP Intermediate_Dir "sgmlnorm\Debug" +# PROP Target_Dir "sgmlnorm" +OUTDIR=.\sgmlnorm\Debug +INTDIR=.\sgmlnorm\Debug + +ALL : "lib - Win32 Debug" ".\dbgbin\sgmlnorm.exe" + +CLEAN : + -@erase "$(INTDIR)\SGMLGenerator.obj" + -@erase "$(INTDIR)\sgmlnorm.obj" + -@erase "$(INTDIR)\vc40.idb" + -@erase "$(INTDIR)\vc40.pdb" + -@erase "$(OUTDIR)\sgmlnorm.pdb" + -@erase ".\dbgbin\sgmlnorm.exe" + -@erase ".\dbgbin\sgmlnorm.ilk" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP=cl.exe +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /I "generic" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE" /YX /c +CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /I "generic" /D "_DEBUG"\ + /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE"\ + /Fp"$(INTDIR)/sgmlnorm.pch" /YX /Fo"$(INTDIR)/" /Fd"$(INTDIR)/" /c +CPP_OBJS=.\sgmlnorm\Debug/ +CPP_SBRS=.\. + +.c{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.c{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +RSC=rc.exe +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +BSC32_FLAGS=/nologo /o"$(OUTDIR)/sgmlnorm.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"dbgbin/sgmlnorm.exe" +LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ + advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo\ + /subsystem:console /incremental:yes /pdb:"$(OUTDIR)/sgmlnorm.pdb" /debug\ + /machine:I386 /out:"dbgbin/sgmlnorm.exe" +LINK32_OBJS= \ + "$(INTDIR)\SGMLGenerator.obj" \ + "$(INTDIR)\sgmlnorm.obj" \ + ".\lib\Debug\sp133d.lib" + +".\dbgbin\sgmlnorm.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ELSEIF "$(CFG)" == "all - Win32 Release" + +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "all\Release" +# PROP BASE Intermediate_Dir "all\Release" +# PROP BASE Target_Dir "all" +# PROP BASE Cmd_Line "NMAKE /f all.mak" +# PROP BASE Rebuild_Opt "/a" +# PROP BASE Target_File "all\all.exe" +# PROP BASE Bsc_Name "all\all.bsc" +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "all\Release" +# PROP Intermediate_Dir "all\Release" +# PROP Target_Dir "all" +# PROP Cmd_Line "" +# PROP Rebuild_Opt "" +# PROP Target_File "all" +# PROP Bsc_Name "" +OUTDIR=.\all\Release +INTDIR=.\all\Release + +ALL : "sx - Win32 Release" "spent - Win32 Release" "spam - Win32 Release"\ + "sgmlnorm - Win32 Release" "nsgmls - Win32 Release" "lib - Win32 Release" + +CLEAN : + -@erase + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +!ELSEIF "$(CFG)" == "all - Win32 Debug" + +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "all\Debug" +# PROP BASE Intermediate_Dir "all\Debug" +# PROP BASE Target_Dir "all" +# PROP BASE Cmd_Line "NMAKE /f all.mak" +# PROP BASE Rebuild_Opt "/a" +# PROP BASE Target_File "all\all.exe" +# PROP BASE Bsc_Name "all\all.bsc" +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "all\Debug" +# PROP Intermediate_Dir "all\Debug" +# PROP Target_Dir "all" +# PROP Cmd_Line "" +# PROP Rebuild_Opt "" +# PROP Target_File "all" +# PROP Bsc_Name "" +OUTDIR=.\all\Debug +INTDIR=.\all\Debug + +ALL : "sx - Win32 Debug" "spent - Win32 Debug" "spam - Win32 Debug"\ + "sgmlnorm - Win32 Debug" "nsgmls - Win32 Debug" "lib - Win32 Debug" + +CLEAN : + -@erase + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +!ELSEIF "$(CFG)" == "sx - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "sx\Release" +# PROP BASE Intermediate_Dir "sx\Release" +# PROP BASE Target_Dir "sx" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "sx\Release" +# PROP Intermediate_Dir "sx\Release" +# PROP Target_Dir "sx" +OUTDIR=.\sx\Release +INTDIR=.\sx\Release + +ALL : "lib - Win32 Release" ".\bin\sx.exe" + +CLEAN : + -@erase "$(INTDIR)\sx.obj" + -@erase "$(INTDIR)\sx.res" + -@erase "$(INTDIR)\sx_inst.obj" + -@erase "$(INTDIR)\XmlOutputEventHandler.obj" + -@erase ".\bin\sx.exe" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP=cl.exe +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "include" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE" /YX /c +CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "include" /D "NDEBUG" /D "WIN32" /D\ + "_CONSOLE" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE"\ + /Fp"$(INTDIR)/sx.pch" /YX /Fo"$(INTDIR)/" /c +CPP_OBJS=.\sx\Release/ +CPP_SBRS=.\. + +.c{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.c{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +RSC=rc.exe +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +RSC_PROJ=/l 0x809 /fo"$(INTDIR)/sx.res" /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +BSC32_FLAGS=/nologo /o"$(OUTDIR)/sx.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"bin/sx.exe" +LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ + advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo\ + /subsystem:console /incremental:no /pdb:"$(OUTDIR)/sx.pdb" /machine:I386\ + /out:"bin/sx.exe" +LINK32_OBJS= \ + "$(INTDIR)\sx.obj" \ + "$(INTDIR)\sx.res" \ + "$(INTDIR)\sx_inst.obj" \ + "$(INTDIR)\XmlOutputEventHandler.obj" \ + ".\lib\Release\sp133.lib" + +".\bin\sx.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ELSEIF "$(CFG)" == "sx - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "sx\Debug" +# PROP BASE Intermediate_Dir "sx\Debug" +# PROP BASE Target_Dir "sx" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "sx\Debug" +# PROP Intermediate_Dir "sx\Debug" +# PROP Target_Dir "sx" +OUTDIR=.\sx\Debug +INTDIR=.\sx\Debug + +ALL : "lib - Win32 Debug" ".\dbgbin\sx.exe" + +CLEAN : + -@erase "$(INTDIR)\sx.obj" + -@erase "$(INTDIR)\sx.res" + -@erase "$(INTDIR)\sx_inst.obj" + -@erase "$(INTDIR)\vc40.idb" + -@erase "$(INTDIR)\vc40.pdb" + -@erase "$(INTDIR)\XmlOutputEventHandler.obj" + -@erase "$(OUTDIR)\sx.pdb" + -@erase ".\dbgbin\sx.exe" + -@erase ".\dbgbin\sx.ilk" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP=cl.exe +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE" /YX /c +CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /D "_DEBUG" /D "WIN32"\ + /D "_CONSOLE" /D SP_NAMESPACE=James_Clark_SP /D "SP_MULTI_BYTE"\ + /Fp"$(INTDIR)/sx.pch" /YX /Fo"$(INTDIR)/" /Fd"$(INTDIR)/" /c +CPP_OBJS=.\sx\Debug/ +CPP_SBRS=.\. + +.c{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_OBJS)}.obj: + $(CPP) $(CPP_PROJ) $< + +.c{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cpp{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +.cxx{$(CPP_SBRS)}.sbr: + $(CPP) $(CPP_PROJ) $< + +RSC=rc.exe +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +RSC_PROJ=/l 0x809 /fo"$(INTDIR)/sx.res" /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +BSC32_FLAGS=/nologo /o"$(OUTDIR)/sx.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"dbgbin/sx.exe" +LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ + advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo\ + /subsystem:console /incremental:yes /pdb:"$(OUTDIR)/sx.pdb" /debug\ + /machine:I386 /out:"dbgbin/sx.exe" +LINK32_OBJS= \ + "$(INTDIR)\sx.obj" \ + "$(INTDIR)\sx.res" \ + "$(INTDIR)\sx_inst.obj" \ + "$(INTDIR)\XmlOutputEventHandler.obj" \ + ".\lib\Debug\sp133d.lib" + +".\dbgbin\sx.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ENDIF + +################################################################################ +# Begin Target + +# Name "lib - Win32 Release" +# Name "lib - Win32 Debug" + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +################################################################################ +# Begin Source File + +SOURCE=.\lib\xentmgr_inst.cxx +DEP_CPP_XENTM=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\Mutex.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OffsetOrderedList.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +!IF "$(CFG)" == "lib - Win32 Release" + +# ADD CPP /Yu"splib.h" + +"$(INTDIR)\xentmgr_inst.obj" : $(SOURCE) $(DEP_CPP_XENTM) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) /nologo /MD /W3 /GX /O2 /I "include" /I "generic" /D "NDEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yu"splib.h" /Fo"$(INTDIR)/" /c\ + $(SOURCE) + + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# ADD CPP /Yu"splib.h" + +"$(INTDIR)\xentmgr_inst.obj" : $(SOURCE) $(DEP_CPP_XENTM) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) /nologo /MDd /W3 /GX /Zi /Od /I "include" /I "generic" /D "_DEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yu"splib.h" /Fo"$(INTDIR)/"\ + /Fd"$(INTDIR)/" /c $(SOURCE) + + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\URLStorage.cxx +DEP_CPP_URLST=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + ".\lib\URLStorageMessages.h"\ + {$(INCLUDE)}"\sys\TYPES.H"\ + + +"$(INTDIR)\URLStorage.obj" : $(SOURCE) $(DEP_CPP_URLST) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\UnivCharsetDesc.cxx +DEP_CPP_UNIVC=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\UnivCharsetDesc.obj" : $(SOURCE) $(DEP_CPP_UNIVC) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\UnicodeCodingSystem.cxx +DEP_CPP_UNICO=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\UnicodeCodingSystem.obj" : $(SOURCE) $(DEP_CPP_UNICO) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Undo.cxx +DEP_CPP_UNDO_=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Undo.obj" : $(SOURCE) $(DEP_CPP_UNDO_) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\TypeId.cxx +DEP_CPP_TYPEI=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\TypeId.obj" : $(SOURCE) $(DEP_CPP_TYPEI) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\TrieBuilder.cxx +DEP_CPP_TRIEB=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\TrieBuilder.obj" : $(SOURCE) $(DEP_CPP_TRIEB) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\TokenMessageArg.h + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\TokenMessageArg.cxx +DEP_CPP_TOKEN=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\TokenMessageArg.obj" : $(SOURCE) $(DEP_CPP_TOKEN) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\token.h + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Text.cxx +DEP_CPP_TEXT_=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Text.obj" : $(SOURCE) $(DEP_CPP_TEXT_) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Syntax.cxx +DEP_CPP_SYNTA=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Syntax.obj" : $(SOURCE) $(DEP_CPP_SYNTA) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\StorageManager.cxx +DEP_CPP_STORA=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\StorageManager.obj" : $(SOURCE) $(DEP_CPP_STORA) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\StdioStorage.cxx +DEP_CPP_STDIO=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StdioStorageMessages.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\StdioStorage.obj" : $(SOURCE) $(DEP_CPP_STDIO) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\SOEntityCatalog.cxx +DEP_CPP_SOENT=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\CatalogMessages.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\SOEntityCatalog.obj" : $(SOURCE) $(DEP_CPP_SOENT) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\SJISCodingSystem.cxx +DEP_CPP_SJISC=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\SJISCodingSystem.obj" : $(SOURCE) $(DEP_CPP_SJISC) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ShortReferenceMap.cxx +DEP_CPP_SHORT=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ShortReferenceMap.obj" : $(SOURCE) $(DEP_CPP_SHORT) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\SgmlParser.cxx +DEP_CPP_SGMLP=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\SgmlParser.obj" : $(SOURCE) $(DEP_CPP_SGMLP) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\SearchResultMessageArg.cxx +DEP_CPP_SEARC=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\SearchResultMessageArg.obj" : $(SOURCE) $(DEP_CPP_SEARC) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\SdText.cxx +DEP_CPP_SDTEX=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\SdText.obj" : $(SOURCE) $(DEP_CPP_SDTEX) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Sd.cxx +DEP_CPP_SD_CX=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Sd.obj" : $(SOURCE) $(DEP_CPP_SD_CX) "$(INTDIR)" "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\RewindStorageObject.cxx +DEP_CPP_REWIN=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\RewindStorageObject.obj" : $(SOURCE) $(DEP_CPP_REWIN) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Recognizer.cxx +DEP_CPP_RECOG=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Recognizer.obj" : $(SOURCE) $(DEP_CPP_RECOG) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\PosixStorage.cxx +DEP_CPP_POSIX=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\PosixStorageMessages.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + {$(INCLUDE)}"\sys\STAT.H"\ + {$(INCLUDE)}"\sys\TYPES.H"\ + + +"$(INTDIR)\PosixStorage.obj" : $(SOURCE) $(DEP_CPP_POSIX) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Partition.cxx +DEP_CPP_PARTI=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Partition.obj" : $(SOURCE) $(DEP_CPP_PARTI) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\parseSd.cxx +DEP_CPP_PARSE=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\parseSd.obj" : $(SOURCE) $(DEP_CPP_PARSE) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ParserState.cxx +DEP_CPP_PARSER=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ParserState.obj" : $(SOURCE) $(DEP_CPP_PARSER) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ParserOptions.cxx +DEP_CPP_PARSERO=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ParserOptions.obj" : $(SOURCE) $(DEP_CPP_PARSERO) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ParserMessages.cxx +DEP_CPP_PARSERM=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ParserMessages.obj" : $(SOURCE) $(DEP_CPP_PARSERM) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\parser_inst.cxx +DEP_CPP_PARSER_=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +!IF "$(CFG)" == "lib - Win32 Release" + +# ADD CPP /Yu"splib.h" + +"$(INTDIR)\parser_inst.obj" : $(SOURCE) $(DEP_CPP_PARSER_) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) /nologo /MD /W3 /GX /O2 /I "include" /I "generic" /D "NDEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yu"splib.h" /Fo"$(INTDIR)/" /c\ + $(SOURCE) + + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# ADD CPP /Yu"splib.h" + +"$(INTDIR)\parser_inst.obj" : $(SOURCE) $(DEP_CPP_PARSER_) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) /nologo /MDd /W3 /GX /Zi /Od /I "include" /I "generic" /D "_DEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yu"splib.h" /Fo"$(INTDIR)/"\ + /Fd"$(INTDIR)/" /c $(SOURCE) + + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Parser.cxx +DEP_CPP_PARSER_C=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Parser.obj" : $(SOURCE) $(DEP_CPP_PARSER_C) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\parseParam.cxx +DEP_CPP_PARSEP=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\parseParam.obj" : $(SOURCE) $(DEP_CPP_PARSEP) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\parseMode.cxx +DEP_CPP_PARSEM=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\parseMode.obj" : $(SOURCE) $(DEP_CPP_PARSEM) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\parseInstance.cxx +DEP_CPP_PARSEI=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\parseInstance.obj" : $(SOURCE) $(DEP_CPP_PARSEI) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\parseDecl.cxx +DEP_CPP_PARSED=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\parseDecl.obj" : $(SOURCE) $(DEP_CPP_PARSED) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\parseCommon.cxx +DEP_CPP_PARSEC=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\parseCommon.obj" : $(SOURCE) $(DEP_CPP_PARSEC) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\parseAttribute.cxx +DEP_CPP_PARSEA=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\parseAttribute.obj" : $(SOURCE) $(DEP_CPP_PARSEA) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Param.cxx +DEP_CPP_PARAM=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Param.obj" : $(SOURCE) $(DEP_CPP_PARAM) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\OutputState.cxx +DEP_CPP_OUTPU=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\OutputState.obj" : $(SOURCE) $(DEP_CPP_OUTPU) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\OutputCharStream.cxx +DEP_CPP_OUTPUT=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\OutputCharStream.obj" : $(SOURCE) $(DEP_CPP_OUTPUT) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\OpenElement.cxx +DEP_CPP_OPENE=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\OpenElement.obj" : $(SOURCE) $(DEP_CPP_OPENE) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\OffsetOrderedList.h + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\OffsetOrderedList.cxx +DEP_CPP_OFFSE=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\Mutex.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OffsetOrderedList.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\OffsetOrderedList.obj" : $(SOURCE) $(DEP_CPP_OFFSE) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\NumericCharRefOrigin.cxx +DEP_CPP_NUMER=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\NumericCharRefOrigin.obj" : $(SOURCE) $(DEP_CPP_NUMER) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Notation.cxx +DEP_CPP_NOTAT=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Notation.obj" : $(SOURCE) $(DEP_CPP_NOTAT) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ModeInfo.cxx +DEP_CPP_MODEI=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ModeInfo.obj" : $(SOURCE) $(DEP_CPP_MODEI) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\MessageReporter.cxx +DEP_CPP_MESSA=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\MessageReporterMessages.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\MessageReporter.obj" : $(SOURCE) $(DEP_CPP_MESSA) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\MessageEventHandler.cxx +DEP_CPP_MESSAG=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\MessageEventHandler.obj" : $(SOURCE) $(DEP_CPP_MESSAG) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\MessageArg.cxx +DEP_CPP_MESSAGE=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\MessageArg.obj" : $(SOURCE) $(DEP_CPP_MESSAGE) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Message.cxx +DEP_CPP_MESSAGE_=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Message.obj" : $(SOURCE) $(DEP_CPP_MESSAGE_) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Markup.cxx +DEP_CPP_MARKU=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Markup.obj" : $(SOURCE) $(DEP_CPP_MARKU) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Lpd.cxx +DEP_CPP_LPD_C=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Lpd.obj" : $(SOURCE) $(DEP_CPP_LPD_C) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Location.cxx +DEP_CPP_LOCAT=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\Mutex.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Location.obj" : $(SOURCE) $(DEP_CPP_LOCAT) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\LiteralStorage.cxx +DEP_CPP_LITER=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\LiteralStorage.obj" : $(SOURCE) $(DEP_CPP_LITER) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\LinkProcess.cxx +DEP_CPP_LINKP=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\LinkProcess.obj" : $(SOURCE) $(DEP_CPP_LINKP) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Link.cxx +DEP_CPP_LINK_=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Link.obj" : $(SOURCE) $(DEP_CPP_LINK_) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\InternalInputSource.cxx +DEP_CPP_INTER=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\InternalInputSource.obj" : $(SOURCE) $(DEP_CPP_INTER) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\InputSource.cxx +DEP_CPP_INPUT=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\InputSource.obj" : $(SOURCE) $(DEP_CPP_INPUT) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\IListBase.cxx +DEP_CPP_ILIST=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\IListBase.obj" : $(SOURCE) $(DEP_CPP_ILIST) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\IdentityCodingSystem.cxx +DEP_CPP_IDENT=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\IdentityCodingSystem.obj" : $(SOURCE) $(DEP_CPP_IDENT) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Id.cxx +DEP_CPP_ID_CX=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Id.obj" : $(SOURCE) $(DEP_CPP_ID_CX) "$(INTDIR)" "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Hash.cxx +DEP_CPP_HASH_=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Hash.obj" : $(SOURCE) $(DEP_CPP_HASH_) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Group.cxx +DEP_CPP_GROUP=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Group.obj" : $(SOURCE) $(DEP_CPP_GROUP) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Fixed2CodingSystem.cxx +DEP_CPP_FIXED=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Fixed2CodingSystem.obj" : $(SOURCE) $(DEP_CPP_FIXED) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ExternalId.cxx +DEP_CPP_EXTER=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ExternalId.obj" : $(SOURCE) $(DEP_CPP_EXTER) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ExtendEntityManager.cxx +DEP_CPP_EXTEN=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EntityManagerMessages.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\Mutex.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OffsetOrderedList.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ExtendEntityManager.obj" : $(SOURCE) $(DEP_CPP_EXTEN) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Event.cxx +DEP_CPP_EVENT=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Event.obj" : $(SOURCE) $(DEP_CPP_EVENT) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\EUCJPCodingSystem.cxx +DEP_CPP_EUCJP=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\EUCJPCodingSystem.obj" : $(SOURCE) $(DEP_CPP_EUCJP) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ErrnoMessageArg.cxx +DEP_CPP_ERRNO=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ErrnoMessageArg.obj" : $(SOURCE) $(DEP_CPP_ERRNO) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\entmgr_inst.cxx +DEP_CPP_ENTMG=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +!IF "$(CFG)" == "lib - Win32 Release" + +# ADD CPP /Yu"splib.h" + +"$(INTDIR)\entmgr_inst.obj" : $(SOURCE) $(DEP_CPP_ENTMG) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) /nologo /MD /W3 /GX /O2 /I "include" /I "generic" /D "NDEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yu"splib.h" /Fo"$(INTDIR)/" /c\ + $(SOURCE) + + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# ADD CPP /Yu"splib.h" + +"$(INTDIR)\entmgr_inst.obj" : $(SOURCE) $(DEP_CPP_ENTMG) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) /nologo /MDd /W3 /GX /Zi /Od /I "include" /I "generic" /D "_DEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yu"splib.h" /Fo"$(INTDIR)/"\ + /Fd"$(INTDIR)/" /c $(SOURCE) + + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\EntityManager.cxx +DEP_CPP_ENTIT=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\EntityManager.obj" : $(SOURCE) $(DEP_CPP_ENTIT) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\EntityDecl.cxx +DEP_CPP_ENTITY=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\EntityDecl.obj" : $(SOURCE) $(DEP_CPP_ENTITY) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\EntityCatalog.cxx +DEP_CPP_ENTITYC=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\EntityCatalog.obj" : $(SOURCE) $(DEP_CPP_ENTITYC) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Entity.cxx +DEP_CPP_ENTITY_=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Entity.obj" : $(SOURCE) $(DEP_CPP_ENTITY_) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ElementType.cxx +DEP_CPP_ELEME=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ElementType.obj" : $(SOURCE) $(DEP_CPP_ELEME) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Dtd.cxx +DEP_CPP_DTD_C=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Dtd.obj" : $(SOURCE) $(DEP_CPP_DTD_C) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\DescriptorManager.cxx +DEP_CPP_DESCR=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\DescriptorManager.obj" : $(SOURCE) $(DEP_CPP_DESCR) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ContentToken.cxx +DEP_CPP_CONTE=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ContentToken.obj" : $(SOURCE) $(DEP_CPP_CONTE) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\CharsetRegistry.cxx +DEP_CPP_CHARS=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\big5.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\gb2312.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\iso646-jis.h"\ + ".\lib\iso8859-2.h"\ + ".\lib\iso8859-3.h"\ + ".\lib\iso8859-4.h"\ + ".\lib\iso8859-5.h"\ + ".\lib\iso8859-6.h"\ + ".\lib\iso8859-7.h"\ + ".\lib\iso8859-8.h"\ + ".\lib\iso8859-9.h"\ + ".\lib\jis0201.h"\ + ".\lib\jis0208.h"\ + ".\lib\jis0212.h"\ + ".\lib\ksc5601.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\CharsetRegistry.obj" : $(SOURCE) $(DEP_CPP_CHARS) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\CharsetInfo.cxx +DEP_CPP_CHARSE=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\CharsetInfo.obj" : $(SOURCE) $(DEP_CPP_CHARSE) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\CharsetDecl.cxx +DEP_CPP_CHARSET=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\CharsetDecl.obj" : $(SOURCE) $(DEP_CPP_CHARSET) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Attribute.cxx +DEP_CPP_ATTRI=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Attribute.obj" : $(SOURCE) $(DEP_CPP_ATTRI) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\assert.cxx +DEP_CPP_ASSER=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\assert.obj" : $(SOURCE) $(DEP_CPP_ASSER) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\app_inst.cxx +DEP_CPP_APP_I=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +!IF "$(CFG)" == "lib - Win32 Release" + +# ADD CPP /Yu"splib.h" + +"$(INTDIR)\app_inst.obj" : $(SOURCE) $(DEP_CPP_APP_I) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) /nologo /MD /W3 /GX /O2 /I "include" /I "generic" /D "NDEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yu"splib.h" /Fo"$(INTDIR)/" /c\ + $(SOURCE) + + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# ADD CPP /Yu"splib.h" + +"$(INTDIR)\app_inst.obj" : $(SOURCE) $(DEP_CPP_APP_I) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) /nologo /MDd /W3 /GX /Zi /Od /I "include" /I "generic" /D "_DEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yu"splib.h" /Fo"$(INTDIR)/"\ + /Fd"$(INTDIR)/" /c $(SOURCE) + + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Allocator.cxx +DEP_CPP_ALLOC=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Allocator.obj" : $(SOURCE) $(DEP_CPP_ALLOC) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ErrorCountEventHandler.cxx +DEP_CPP_ERROR=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ErrorCountEventHandler.obj" : $(SOURCE) $(DEP_CPP_ERROR) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Win32CodingSystem.cxx +DEP_CPP_WIN32=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Win32CodingSystem.obj" : $(SOURCE) $(DEP_CPP_WIN32) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\UTF8CodingSystem.cxx +DEP_CPP_UTF8C=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\UTF8CodingSystem.obj" : $(SOURCE) $(DEP_CPP_UTF8C) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\StringVectorMessageArg.cxx +DEP_CPP_STRIN=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\StringVectorMessageArg.obj" : $(SOURCE) $(DEP_CPP_STRIN) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ParserApp.cxx +DEP_CPP_PARSERA=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserAppMessages.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ParserApp.obj" : $(SOURCE) $(DEP_CPP_PARSERA) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\EntityApp.cxx +DEP_CPP_ENTITYA=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\WinInetStorage.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\EntityApp.obj" : $(SOURCE) $(DEP_CPP_ENTITYA) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\CmdLineApp.cxx +DEP_CPP_CMDLI=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\MessageTable.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\CmdLineAppMessages.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + ".\lib\version.h"\ + {$(INCLUDE)}"\sys\TYPES.H"\ + + +"$(INTDIR)\CmdLineApp.obj" : $(SOURCE) $(DEP_CPP_CMDLI) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ConsoleOutput.cxx +DEP_CPP_CONSO=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ConsoleOutput.obj" : $(SOURCE) $(DEP_CPP_CONSO) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ContentState.cxx +DEP_CPP_CONTEN=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ContentState.obj" : $(SOURCE) $(DEP_CPP_CONTEN) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ArcEngine.cxx +DEP_CPP_ARCEN=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcEngineMessages.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ArcEngine.obj" : $(SOURCE) $(DEP_CPP_ARCEN) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\arc_inst.cxx +DEP_CPP_ARC_I=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +!IF "$(CFG)" == "lib - Win32 Release" + +# ADD CPP /Yu"splib.h" + +"$(INTDIR)\arc_inst.obj" : $(SOURCE) $(DEP_CPP_ARC_I) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) /nologo /MD /W3 /GX /O2 /I "include" /I "generic" /D "NDEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yu"splib.h" /Fo"$(INTDIR)/" /c\ + $(SOURCE) + + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# ADD CPP /Yu"splib.h" + +"$(INTDIR)\arc_inst.obj" : $(SOURCE) $(DEP_CPP_ARC_I) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) /nologo /MDd /W3 /GX /Zi /Od /I "include" /I "generic" /D "_DEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yu"splib.h" /Fo"$(INTDIR)/"\ + /Fd"$(INTDIR)/" /c $(SOURCE) + + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\splib.cxx +DEP_CPP_SPLIB=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +!IF "$(CFG)" == "lib - Win32 Release" + +# ADD CPP /Yc"splib.h" + +BuildCmds= \ + $(CPP) /nologo /MD /W3 /GX /O2 /I "include" /I "generic" /D "NDEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yc"splib.h" /Fo"$(INTDIR)/" /c\ + $(SOURCE) \ + + +"$(INTDIR)\splib.obj" : $(SOURCE) $(DEP_CPP_SPLIB) "$(INTDIR)" + $(BuildCmds) + +"$(INTDIR)\lib.pch" : $(SOURCE) $(DEP_CPP_SPLIB) "$(INTDIR)" + $(BuildCmds) + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# ADD CPP /Yc"splib.h" + +BuildCmds= \ + $(CPP) /nologo /MDd /W3 /GX /Zi /Od /I "include" /I "generic" /D "_DEBUG" /D\ + "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=James_Clark_SP /D\ + "SP_MULTI_BYTE" /Fp"$(INTDIR)/lib.pch" /Yc"splib.h" /Fo"$(INTDIR)/"\ + /Fd"$(INTDIR)/" /c $(SOURCE) \ + + +"$(INTDIR)\splib.obj" : $(SOURCE) $(DEP_CPP_SPLIB) "$(INTDIR)" + $(BuildCmds) + +"$(INTDIR)\lib.pch" : $(SOURCE) $(DEP_CPP_SPLIB) "$(INTDIR)" + $(BuildCmds) + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\SGMLApplication.cxx +DEP_CPP_SGMLA=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\SGMLApplication.obj" : $(SOURCE) $(DEP_CPP_SGMLA) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ParserEventGeneratorKit.cxx +DEP_CPP_PARSERE=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\ParserEventGeneratorKit.obj" : $(SOURCE) $(DEP_CPP_PARSERE)\ + "$(INTDIR)" "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\GenericEventHandler.cxx +DEP_CPP_GENER=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\GenericEventHandler.obj" : $(SOURCE) $(DEP_CPP_GENER) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\EventGenerator.cxx +DEP_CPP_EVENTG=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\EventGenerator.obj" : $(SOURCE) $(DEP_CPP_EVENTG) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\lib.rc +DEP_RSC_LIB_R=\ + ".\lib\ArcEngineMessages.rc"\ + ".\lib\CatalogMessages.rc"\ + ".\lib\CmdLineAppMessages.rc"\ + ".\lib\EntityManagerMessages.rc"\ + ".\lib\MessageFormatterMessages.rc"\ + ".\lib\MessageReporterMessages.rc"\ + ".\lib\ParserAppMessages.rc"\ + ".\lib\ParserMessages.rc"\ + ".\lib\PosixStorageMessages.rc"\ + ".\lib\StdioStorageMessages.rc"\ + ".\lib\URLStorageMessages.rc"\ + + +!IF "$(CFG)" == "lib - Win32 Release" + + +"$(INTDIR)\lib.res" : $(SOURCE) $(DEP_RSC_LIB_R) "$(INTDIR)" + $(RSC) /l 0x809 /fo"$(INTDIR)/lib.res" /i "lib" /d "NDEBUG" $(SOURCE) + + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + + +"$(INTDIR)\lib.res" : $(SOURCE) $(DEP_RSC_LIB_R) "$(INTDIR)" + $(RSC) /l 0x809 /fo"$(INTDIR)/lib.res" /i "lib" /d "_DEBUG" $(SOURCE) + + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\MessageTable.cxx +DEP_CPP_MESSAGET=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\MessageTable.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\MessageTable.obj" : $(SOURCE) $(DEP_CPP_MESSAGET) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\WinInetStorage.cxx +DEP_CPP_WININ=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\WinInetStorage.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + ".\lib\WinInetStorageMessages.h"\ + + +"$(INTDIR)\WinInetStorage.obj" : $(SOURCE) $(DEP_CPP_WININ) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\ParserMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\arc_inst.m4 + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\app_inst.m4 + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\entmgr_inst.m4 + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\instmac.m4 + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\parser_inst.m4 + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\xentmgr_inst.m4 + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\TranslateCodingSystem.cxx +DEP_CPP_TRANS=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TranslateCodingSystem.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\TranslateCodingSystem.obj" : $(SOURCE) $(DEP_CPP_TRANS) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\CodingSystemKit.cxx +DEP_CPP_CODIN=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Big5CodingSystem.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TranslateCodingSystem.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\XMLCodingSystem.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\CodingSystemKit.obj" : $(SOURCE) $(DEP_CPP_CODIN) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\CmdLineAppMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\EntityManagerMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\CodingSystem.cxx +DEP_CPP_CODING=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\CodingSystem.obj" : $(SOURCE) $(DEP_CPP_CODING) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\Big5CodingSystem.cxx +DEP_CPP_BIG5C=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Big5CodingSystem.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\Big5CodingSystem.obj" : $(SOURCE) $(DEP_CPP_BIG5C) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\OutputByteStream.cxx +DEP_CPP_OUTPUTB=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + {$(INCLUDE)}"\sys\STAT.H"\ + {$(INCLUDE)}"\sys\TYPES.H"\ + + +"$(INTDIR)\OutputByteStream.obj" : $(SOURCE) $(DEP_CPP_OUTPUTB) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\MessageFormatter.cxx +DEP_CPP_MESSAGEF=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\MessageFormatterMessages.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\MessageFormatter.obj" : $(SOURCE) $(DEP_CPP_MESSAGEF) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\WinApp.cxx +DEP_CPP_WINAP=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\WinApp.h"\ + ".\include\WinInetStorage.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + +# PROP Exclude_From_Build 0 + +"$(INTDIR)\WinApp.obj" : $(SOURCE) $(DEP_CPP_WINAP) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\NotationStorage.cxx +DEP_CPP_NOTATI=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\NotationStorage.obj" : $(SOURCE) $(DEP_CPP_NOTATI) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\lib\XMLCodingSystem.cxx +DEP_CPP_XMLCO=\ + ".\generic\EventGenerator.h"\ + ".\generic\ParserEventGeneratorKit.h"\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\ArcEngine.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CharsetRegistry.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\ConsoleOutput.h"\ + ".\include\constant.h"\ + ".\include\ContentState.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\DescriptorManager.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\EUCJPCodingSystem.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Fixed2CodingSystem.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IdentityCodingSystem.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IListIter.h"\ + ".\include\IListIterBase.h"\ + ".\include\InputSource.h"\ + ".\include\InternalInputSource.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\ISetIter.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\List.cxx"\ + ".\include\List.h"\ + ".\include\ListIter.h"\ + ".\include\LiteralStorage.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\NotationStorage.h"\ + ".\include\OpenElement.h"\ + ".\include\Options.cxx"\ + ".\include\Options.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\PosixStorage.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\RewindStorageObject.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SearchResultMessageArg.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\SJISCodingSystem.h"\ + ".\include\SOEntityCatalog.h"\ + ".\include\sptchar.h"\ + ".\include\StdioStorage.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnicodeCodingSystem.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\URLStorage.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\Win32CodingSystem.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\XMLCodingSystem.h"\ + ".\include\xnew.h"\ + ".\lib\ArcProcessor.h"\ + ".\lib\CatalogEntry.h"\ + ".\lib\EquivClass.h"\ + ".\lib\EventQueue.h"\ + ".\lib\events.h"\ + ".\lib\Group.h"\ + ".\lib\Id.h"\ + ".\lib\LpdEntityRef.h"\ + ".\lib\MarkupScan.h"\ + ".\lib\ModeInfo.h"\ + ".\lib\NameToken.h"\ + ".\lib\NumericCharRefOrigin.h"\ + ".\lib\OutputState.h"\ + ".\lib\Param.h"\ + ".\lib\Parser.h"\ + ".\lib\ParserMessages.h"\ + ".\lib\ParserState.h"\ + ".\lib\Partition.h"\ + ".\lib\Priority.h"\ + ".\lib\Recognizer.h"\ + ".\lib\SdFormalError.h"\ + ".\lib\splib.h"\ + ".\lib\splibpch.h"\ + ".\lib\SrInfo.h"\ + ".\lib\StorageObjectPosition.h"\ + ".\lib\StringVectorMessageArg.h"\ + ".\lib\token.h"\ + ".\lib\TokenMessageArg.h"\ + ".\lib\Trie.h"\ + ".\lib\TrieBuilder.h"\ + ".\lib\Undo.h"\ + + +"$(INTDIR)\XMLCodingSystem.obj" : $(SOURCE) $(DEP_CPP_XMLCO) "$(INTDIR)"\ + "$(INTDIR)\lib.pch" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +# End Target +################################################################################ +# Begin Target + +# Name "nsgmls - Win32 Release" +# Name "nsgmls - Win32 Debug" + +!IF "$(CFG)" == "nsgmls - Win32 Release" + +!ELSEIF "$(CFG)" == "nsgmls - Win32 Debug" + +!ENDIF + +################################################################################ +# Begin Project Dependency + +# Project_Dep_Name "lib" + +!IF "$(CFG)" == "nsgmls - Win32 Release" + +"lib - Win32 Release" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="lib - Win32 Release" + +!ELSEIF "$(CFG)" == "nsgmls - Win32 Debug" + +"lib - Win32 Debug" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="lib - Win32 Debug" + +!ENDIF + +# End Project Dependency +################################################################################ +# Begin Source File + +SOURCE=.\nsgmls\StringSet.cxx +DEP_CPP_STRING=\ + ".\include\Boolean.h"\ + ".\include\config.h"\ + ".\include\Hash.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\xnew.h"\ + ".\nsgmls\StringSet.h"\ + + +"$(INTDIR)\StringSet.obj" : $(SOURCE) $(DEP_CPP_STRING) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\nsgmls\SgmlsEventHandler.cxx +DEP_CPP_SGMLS=\ + ".\include\Allocator.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\nsgmls\SgmlsEventHandler.h"\ + ".\nsgmls\StringSet.h"\ + + +"$(INTDIR)\SgmlsEventHandler.obj" : $(SOURCE) $(DEP_CPP_SGMLS) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\nsgmls\RastEventHandler.cxx +DEP_CPP_RASTE=\ + ".\include\Allocator.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CodingSystem.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExternalId.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\nsgmls\RastEventHandler.h"\ + ".\nsgmls\RastEventHandlerMessages.h"\ + + +"$(INTDIR)\RastEventHandler.obj" : $(SOURCE) $(DEP_CPP_RASTE) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\nsgmls\nsgmls_inst.cxx +DEP_CPP_NSGML=\ + ".\include\Allocator.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CodingSystem.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\Event.h"\ + ".\include\ExternalId.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\nsgmls\RastEventHandler.h"\ + ".\nsgmls\StringSet.h"\ + + +"$(INTDIR)\nsgmls_inst.obj" : $(SOURCE) $(DEP_CPP_NSGML) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\nsgmls\nsgmls.cxx +DEP_CPP_NSGMLS=\ + ".\include\Allocator.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrnoMessageArg.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\IList.h"\ + ".\include\IListBase.h"\ + ".\include\IQueue.cxx"\ + ".\include\IQueue.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\Link.h"\ + ".\include\LinkProcess.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageEventHandler.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\sptchar.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\nsgmls\NsgmlsMessages.h"\ + ".\nsgmls\RastEventHandler.h"\ + ".\nsgmls\SgmlsEventHandler.h"\ + ".\nsgmls\StringSet.h"\ + + +"$(INTDIR)\nsgmls.obj" : $(SOURCE) $(DEP_CPP_NSGMLS) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\nsgmls\nsgmls.rc +DEP_RSC_NSGMLS_=\ + ".\nsgmls\NsgmlsMessages.rc"\ + ".\nsgmls\RastEventHandlerMessages.rc"\ + + +!IF "$(CFG)" == "nsgmls - Win32 Release" + + +"$(INTDIR)\nsgmls.res" : $(SOURCE) $(DEP_RSC_NSGMLS_) "$(INTDIR)" + $(RSC) /l 0x809 /fo"$(INTDIR)/nsgmls.res" /i "nsgmls" /d "NDEBUG" $(SOURCE) + + +!ELSEIF "$(CFG)" == "nsgmls - Win32 Debug" + + +"$(INTDIR)\nsgmls.res" : $(SOURCE) $(DEP_RSC_NSGMLS_) "$(INTDIR)" + $(RSC) /l 0x809 /fo"$(INTDIR)/nsgmls.res" /i "nsgmls" /d "_DEBUG" $(SOURCE) + + +!ENDIF + +# End Source File +# End Target +################################################################################ +# Begin Target + +# Name "spam - Win32 Release" +# Name "spam - Win32 Debug" + +!IF "$(CFG)" == "spam - Win32 Release" + +!ELSEIF "$(CFG)" == "spam - Win32 Debug" + +!ENDIF + +################################################################################ +# Begin Project Dependency + +# Project_Dep_Name "lib" + +!IF "$(CFG)" == "spam - Win32 Release" + +"lib - Win32 Release" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="lib - Win32 Release" + +!ELSEIF "$(CFG)" == "spam - Win32 Debug" + +"lib - Win32 Debug" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="lib - Win32 Debug" + +!ENDIF + +# End Project Dependency +################################################################################ +# Begin Source File + +SOURCE=.\spam\spam_inst.cxx +DEP_CPP_SPAM_=\ + ".\include\Allocator.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CodingSystem.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\Event.h"\ + ".\include\ExternalId.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\Link.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\spam\CopyEventHandler.h"\ + ".\spam\MarkupEventHandler.h"\ + + +"$(INTDIR)\spam_inst.obj" : $(SOURCE) $(DEP_CPP_SPAM_) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\spam\spam.cxx +DEP_CPP_SPAM_C=\ + ".\include\Allocator.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\InputSource.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\Link.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\sptchar.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\spam\CopyEventHandler.h"\ + ".\spam\MarkupEventHandler.h"\ + ".\spam\SpamMessages.h"\ + + +"$(INTDIR)\spam.obj" : $(SOURCE) $(DEP_CPP_SPAM_C) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\spam\MarkupEventHandler.cxx +DEP_CPP_MARKUP=\ + ".\include\Allocator.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\Event.h"\ + ".\include\ExternalId.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\Link.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\spam\MarkupEventHandler.h"\ + + +"$(INTDIR)\MarkupEventHandler.obj" : $(SOURCE) $(DEP_CPP_MARKUP) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\spam\CopyEventHandler.cxx +DEP_CPP_COPYE=\ + ".\include\Allocator.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CodingSystem.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\Event.h"\ + ".\include\ExternalId.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\Link.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\spam\CopyEventHandler.h"\ + ".\spam\MarkupEventHandler.h"\ + + +"$(INTDIR)\CopyEventHandler.obj" : $(SOURCE) $(DEP_CPP_COPYE) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\spam\SpamMessages.msg + +!IF "$(CFG)" == "spam - Win32 Release" + +!ELSEIF "$(CFG)" == "spam - Win32 Debug" + +!ENDIF + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\spam\spam.rc +DEP_RSC_SPAM_R=\ + ".\spam\SpamMessages.rc"\ + + +!IF "$(CFG)" == "spam - Win32 Release" + + +"$(INTDIR)\spam.res" : $(SOURCE) $(DEP_RSC_SPAM_R) "$(INTDIR)" + $(RSC) /l 0x809 /fo"$(INTDIR)/spam.res" /i "spam" /d "NDEBUG" $(SOURCE) + + +!ELSEIF "$(CFG)" == "spam - Win32 Debug" + + +"$(INTDIR)\spam.res" : $(SOURCE) $(DEP_RSC_SPAM_R) "$(INTDIR)" + $(RSC) /l 0x809 /fo"$(INTDIR)/spam.res" /i "spam" /d "_DEBUG" $(SOURCE) + + +!ENDIF + +# End Source File +# End Target +################################################################################ +# Begin Target + +# Name "spent - Win32 Release" +# Name "spent - Win32 Debug" + +!IF "$(CFG)" == "spent - Win32 Release" + +!ELSEIF "$(CFG)" == "spent - Win32 Debug" + +!ENDIF + +################################################################################ +# Begin Project Dependency + +# Project_Dep_Name "lib" + +!IF "$(CFG)" == "spent - Win32 Release" + +"lib - Win32 Release" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="lib - Win32 Release" + +!ELSEIF "$(CFG)" == "spent - Win32 Debug" + +"lib - Win32 Debug" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="lib - Win32 Debug" + +!ENDIF + +# End Project Dependency +################################################################################ +# Begin Source File + +SOURCE=.\spent\spent.cxx +DEP_CPP_SPENT=\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityManager.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\InputSource.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\Link.h"\ + ".\include\Location.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\TypeId.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + + +"$(INTDIR)\spent.obj" : $(SOURCE) $(DEP_CPP_SPENT) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\spent\SpentMessages.msg + +!IF "$(CFG)" == "spent - Win32 Release" + +!ELSEIF "$(CFG)" == "spent - Win32 Debug" + +!ENDIF + +# End Source File +# End Target +################################################################################ +# Begin Target + +# Name "sgmlnorm - Win32 Release" +# Name "sgmlnorm - Win32 Debug" + +!IF "$(CFG)" == "sgmlnorm - Win32 Release" + +!ELSEIF "$(CFG)" == "sgmlnorm - Win32 Debug" + +!ENDIF + +################################################################################ +# Begin Project Dependency + +# Project_Dep_Name "lib" + +!IF "$(CFG)" == "sgmlnorm - Win32 Release" + +"lib - Win32 Release" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="lib - Win32 Release" + +!ELSEIF "$(CFG)" == "sgmlnorm - Win32 Debug" + +"lib - Win32 Debug" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="lib - Win32 Debug" + +!ENDIF + +# End Project Dependency +################################################################################ +# Begin Source File + +SOURCE=.\sgmlnorm\sgmlnorm.cxx +DEP_CPP_SGMLN=\ + ".\generic\SGMLApplication.h"\ + ".\include\Allocator.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\GenericEventHandler.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\Link.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\sgmlnorm\SGMLGenerator.h"\ + + +"$(INTDIR)\sgmlnorm.obj" : $(SOURCE) $(DEP_CPP_SGMLN) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\sgmlnorm\SGMLGenerator.cxx +DEP_CPP_SGMLG=\ + ".\generic\SGMLApplication.h"\ + ".\include\Boolean.h"\ + ".\include\CodingSystem.h"\ + ".\include\config.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\sgmlnorm\SGMLGenerator.h"\ + + +"$(INTDIR)\SGMLGenerator.obj" : $(SOURCE) $(DEP_CPP_SGMLG) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +# End Target +################################################################################ +# Begin Target + +# Name "all - Win32 Release" +# Name "all - Win32 Debug" + +!IF "$(CFG)" == "all - Win32 Release" + +".\all" : + CD all + + +!ELSEIF "$(CFG)" == "all - Win32 Debug" + +".\all" : + CD all + + +!ENDIF + +################################################################################ +# Begin Project Dependency + +# Project_Dep_Name "lib" + +!IF "$(CFG)" == "all - Win32 Release" + +"lib - Win32 Release" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="lib - Win32 Release" + +!ELSEIF "$(CFG)" == "all - Win32 Debug" + +"lib - Win32 Debug" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="lib - Win32 Debug" + +!ENDIF + +# End Project Dependency +################################################################################ +# Begin Project Dependency + +# Project_Dep_Name "nsgmls" + +!IF "$(CFG)" == "all - Win32 Release" + +"nsgmls - Win32 Release" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="nsgmls - Win32 Release" + +!ELSEIF "$(CFG)" == "all - Win32 Debug" + +"nsgmls - Win32 Debug" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="nsgmls - Win32 Debug" + +!ENDIF + +# End Project Dependency +################################################################################ +# Begin Project Dependency + +# Project_Dep_Name "sgmlnorm" + +!IF "$(CFG)" == "all - Win32 Release" + +"sgmlnorm - Win32 Release" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="sgmlnorm - Win32 Release" + +!ELSEIF "$(CFG)" == "all - Win32 Debug" + +"sgmlnorm - Win32 Debug" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="sgmlnorm - Win32 Debug" + +!ENDIF + +# End Project Dependency +################################################################################ +# Begin Project Dependency + +# Project_Dep_Name "spam" + +!IF "$(CFG)" == "all - Win32 Release" + +"spam - Win32 Release" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="spam - Win32 Release" + +!ELSEIF "$(CFG)" == "all - Win32 Debug" + +"spam - Win32 Debug" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="spam - Win32 Debug" + +!ENDIF + +# End Project Dependency +################################################################################ +# Begin Project Dependency + +# Project_Dep_Name "spent" + +!IF "$(CFG)" == "all - Win32 Release" + +"spent - Win32 Release" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="spent - Win32 Release" + +!ELSEIF "$(CFG)" == "all - Win32 Debug" + +"spent - Win32 Debug" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="spent - Win32 Debug" + +!ENDIF + +# End Project Dependency +################################################################################ +# Begin Project Dependency + +# Project_Dep_Name "sx" + +!IF "$(CFG)" == "all - Win32 Release" + +"sx - Win32 Release" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="sx - Win32 Release" + +!ELSEIF "$(CFG)" == "all - Win32 Debug" + +"sx - Win32 Debug" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="sx - Win32 Debug" + +!ENDIF + +# End Project Dependency +# End Target +################################################################################ +# Begin Target + +# Name "sx - Win32 Release" +# Name "sx - Win32 Debug" + +!IF "$(CFG)" == "sx - Win32 Release" + +!ELSEIF "$(CFG)" == "sx - Win32 Debug" + +!ENDIF + +################################################################################ +# Begin Project Dependency + +# Project_Dep_Name "lib" + +!IF "$(CFG)" == "sx - Win32 Release" + +"lib - Win32 Release" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="lib - Win32 Release" + +!ELSEIF "$(CFG)" == "sx - Win32 Debug" + +"lib - Win32 Debug" : + $(MAKE) /$(MAKEFLAGS) /F ".\SP.mak" CFG="lib - Win32 Debug" + +!ENDIF + +# End Project Dependency +################################################################################ +# Begin Source File + +SOURCE=.\sx\sx.cxx +DEP_CPP_SX_CX=\ + ".\include\Allocator.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CmdLineApp.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityApp.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\Event.h"\ + ".\include\EventsWanted.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\Link.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\MessageBuilder.h"\ + ".\include\MessageFormatter.h"\ + ".\include\MessageReporter.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\ParserApp.h"\ + ".\include\ParserOptions.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\SgmlParser.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\sptchar.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\sx\SxMessages.h"\ + ".\sx\XmlOutputEventHandler.h"\ + + +"$(INTDIR)\sx.obj" : $(SOURCE) $(DEP_CPP_SX_CX) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\sx\sx_inst.cxx +DEP_CPP_SX_IN=\ + ".\include\Boolean.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\InputSource.h"\ + ".\include\Link.h"\ + ".\include\Location.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\TypeId.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + + +"$(INTDIR)\sx_inst.obj" : $(SOURCE) $(DEP_CPP_SX_IN) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\sx\XmlOutputEventHandler.cxx +DEP_CPP_XMLOU=\ + ".\include\Allocator.h"\ + ".\include\Attribute.h"\ + ".\include\Attributed.h"\ + ".\include\Boolean.h"\ + ".\include\CharMap.cxx"\ + ".\include\CharMap.h"\ + ".\include\CharsetDecl.h"\ + ".\include\CharsetInfo.h"\ + ".\include\CodingSystem.h"\ + ".\include\CodingSystemKit.h"\ + ".\include\config.h"\ + ".\include\constant.h"\ + ".\include\ContentToken.h"\ + ".\include\CopyOwner.cxx"\ + ".\include\CopyOwner.h"\ + ".\include\Dtd.h"\ + ".\include\ElementType.h"\ + ".\include\Entity.h"\ + ".\include\EntityCatalog.h"\ + ".\include\EntityDecl.h"\ + ".\include\EntityManager.h"\ + ".\include\ErrorCountEventHandler.h"\ + ".\include\Event.h"\ + ".\include\ExtendEntityManager.h"\ + ".\include\ExternalId.h"\ + ".\include\Hash.h"\ + ".\include\HashTable.cxx"\ + ".\include\HashTable.h"\ + ".\include\HashTableItemBase.cxx"\ + ".\include\HashTableItemBase.h"\ + ".\include\InputSource.h"\ + ".\include\ISet.cxx"\ + ".\include\ISet.h"\ + ".\include\Link.h"\ + ".\include\Location.h"\ + ".\include\Lpd.h"\ + ".\include\macros.h"\ + ".\include\Markup.h"\ + ".\include\Message.h"\ + ".\include\MessageArg.h"\ + ".\include\Mode.h"\ + ".\include\Named.h"\ + ".\include\NamedResource.h"\ + ".\include\NamedResourceTable.h"\ + ".\include\NamedTable.h"\ + ".\include\NCVector.h"\ + ".\include\Notation.h"\ + ".\include\OutputByteStream.h"\ + ".\include\OutputCharStream.h"\ + ".\include\Owner.cxx"\ + ".\include\Owner.h"\ + ".\include\OwnerTable.cxx"\ + ".\include\OwnerTable.h"\ + ".\include\PointerTable.cxx"\ + ".\include\PointerTable.h"\ + ".\include\Ptr.cxx"\ + ".\include\Ptr.h"\ + ".\include\RangeMap.cxx"\ + ".\include\RangeMap.h"\ + ".\include\Resource.h"\ + ".\include\rtti.h"\ + ".\include\Sd.h"\ + ".\include\SdText.h"\ + ".\include\ShortReferenceMap.h"\ + ".\include\StorageManager.h"\ + ".\include\StringC.h"\ + ".\include\StringOf.cxx"\ + ".\include\StringOf.h"\ + ".\include\StringResource.h"\ + ".\include\SubstTable.cxx"\ + ".\include\SubstTable.h"\ + ".\include\Syntax.h"\ + ".\include\Text.h"\ + ".\include\TypeId.h"\ + ".\include\UnivCharsetDesc.h"\ + ".\include\UTF8CodingSystem.h"\ + ".\include\Vector.cxx"\ + ".\include\Vector.h"\ + ".\include\XcharMap.cxx"\ + ".\include\XcharMap.h"\ + ".\include\xnew.h"\ + ".\sx\XmlOutputEventHandler.h"\ + ".\sx\XmlOutputMessages.h"\ + + +"$(INTDIR)\XmlOutputEventHandler.obj" : $(SOURCE) $(DEP_CPP_XMLOU) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\sx\sx.rc +DEP_RSC_SX_RC=\ + ".\sx\SxMessages.rc"\ + ".\sx\XmlOutputMessages.rc"\ + + +!IF "$(CFG)" == "sx - Win32 Release" + + +"$(INTDIR)\sx.res" : $(SOURCE) $(DEP_RSC_SX_RC) "$(INTDIR)" + $(RSC) /l 0x809 /fo"$(INTDIR)/sx.res" /i "sx" /d "NDEBUG" $(SOURCE) + + +!ELSEIF "$(CFG)" == "sx - Win32 Debug" + + +"$(INTDIR)\sx.res" : $(SOURCE) $(DEP_RSC_SX_RC) "$(INTDIR)" + $(RSC) /l 0x809 /fo"$(INTDIR)/sx.res" /i "sx" /d "_DEBUG" $(SOURCE) + + +!ENDIF + +# End Source File +# End Target +# End Project +################################################################################ diff --git a/acinclude.m4 b/acinclude.m4 new file mode 100644 index 0000000..113c1e6 --- /dev/null +++ b/acinclude.m4 @@ -0,0 +1,279 @@ +dnl OJ_CHECK_SIZEOF(TYPE, HEADER [, CROSS-SIZE]) +AC_DEFUN([OJ_CHECK_SIZEOF], +[changequote(<<, >>)dnl +dnl The name to #define. +define(<>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl +dnl The cache variable name. +define(<>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl +changequote([, ])dnl +AC_MSG_CHECKING(size of $1) +AC_CACHE_VAL(AC_CV_NAME, +[AC_TRY_RUN([#include +#include <$2> +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof($1)); + exit(0); +}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$3] , , AC_CV_NAME=$3))])dnl +AC_MSG_RESULT($AC_CV_NAME) +AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME) +undefine([AC_TYPE_NAME])dnl +undefine([AC_CV_NAME])dnl +]) + + +dnl @synopsis AC_CXX_PLACEMENT_OPERATOR_DELETE +dnl +dnl If the compiler supports void delete(size_t,void*), define +dnl HAVE_PLACEMENT_OPERATOR_DELETE. +dnl +dnl @author Matthias Clasen +dnl +AC_DEFUN([AC_CXX_PLACEMENT_OPERATOR_DELETE], +[AC_CACHE_CHECK(whether the compiler supports placement operator delete, +ac_cv_cxx_placement_operator_delete, +[AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_TRY_COMPILE([#include ], + [class Thing { + public: + Thing() { }; + void *operator new(size_t,bool) { }; + void operator delete(size_t,void*) { }; + };], + ac_cv_cxx_placement_operator_delete=yes, + ac_cv_cxx_placement_operator_delete=no) + AC_LANG_RESTORE +]) +if test "$ac_cv_cxx_placement_operator_delete" = yes; then + AC_DEFINE(HAVE_PLACEMENT_OPERATOR_DELETE,, + [define if the compiler supports placement operator delete]) +fi +]) + + +dnl @synopsis AC_CXX_BOOL +dnl +dnl If the compiler recognizes bool as a separate built-in type, +dnl define HAVE_BOOL. Note that a typedef is not a separate +dnl type since you cannot overload a function such that it accepts either +dnl the basic type or the typedef. +dnl +dnl @version $Id: acinclude.m4,v 1.9.2.1 2004/06/30 13:16:25 keichwa Exp $ +dnl @author Luc Maisonobe +dnl +AC_DEFUN([AC_CXX_BOOL], +[AC_CACHE_CHECK(whether the compiler recognizes bool as a built-in type, +ac_cv_cxx_bool, +[AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_TRY_COMPILE([ +int f(int x){return 1;} +int f(char x){return 1;} +int f(bool x){return 1;} +],[bool b = true; return f(b);], + ac_cv_cxx_bool=yes, ac_cv_cxx_bool=no) + AC_LANG_RESTORE +]) +if test "$ac_cv_cxx_bool" = yes; then + AC_DEFINE(HAVE_BOOL,,[define if bool is a built-in type]) +fi +]) + +dnl @synopsis AC_CXX_TYPENAME +dnl +dnl If the compiler recognizes the typename keyword, define HAVE_TYPENAME. +dnl +dnl @version $Id: acinclude.m4,v 1.9.2.1 2004/06/30 13:16:25 keichwa Exp $ +dnl @author Luc Maisonobe +dnl +AC_DEFUN([AC_CXX_TYPENAME], +[AC_CACHE_CHECK(whether the compiler recognizes typename, +ac_cv_cxx_typename, +[AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_TRY_COMPILE([templateclass X {public:X(){}};], +[X z; return 0;], + ac_cv_cxx_typename=yes, ac_cv_cxx_typename=no) + AC_LANG_RESTORE +]) +if test "$ac_cv_cxx_typename" = yes; then + AC_DEFINE(HAVE_TYPENAME,,[define if the compiler recognizes typename]) +fi +]) + +dnl @synopsis AC_CXX_NEW_FOR_SCOPING +dnl +dnl If the compiler accepts the new for scoping rules (the scope of a +dnl variable declared inside the parentheses is restricted to the +dnl for-body), define HAVE_NEW_FOR_SCOPING. +dnl +dnl @version $Id: acinclude.m4,v 1.9.2.1 2004/06/30 13:16:25 keichwa Exp $ +dnl @author Luc Maisonobe +dnl +AC_DEFUN([AC_CXX_NEW_FOR_SCOPING], +[AC_CACHE_CHECK(whether the compiler accepts the new for scoping rules, +ac_cv_cxx_new_for_scoping, +[AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_TRY_COMPILE(,[ + int z = 0; + for (int i = 0; i < 10; ++i) + z = z + i; + for (int i = 0; i < 10; ++i) + z = z - i; + return z;], + ac_cv_cxx_new_for_scoping=yes, ac_cv_cxx_new_for_scoping=no) + AC_LANG_RESTORE +]) +if test "$ac_cv_cxx_new_for_scoping" = yes; then + AC_DEFINE(HAVE_NEW_FOR_SCOPING,,[define if the compiler accepts the new for scoping rules]) +fi +]) + + +dnl @synopsis AC_CXX_DYNAMIC_CAST +dnl +dnl If the compiler supports dynamic_cast<>, define HAVE_DYNAMIC_CAST. +dnl +dnl @version $Id: acinclude.m4,v 1.9.2.1 2004/06/30 13:16:25 keichwa Exp $ +dnl @author Luc Maisonobe +dnl +AC_DEFUN([AC_CXX_DYNAMIC_CAST], +[AC_CACHE_CHECK(whether the compiler supports dynamic_cast<>, +ac_cv_cxx_dynamic_cast, +[AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_TRY_COMPILE([#include +class Base { public : Base () {} virtual void f () = 0;}; +class Derived : public Base { public : Derived () {} virtual void f () {} };],[ +Derived d; Base& b=d; return dynamic_cast(&b) ? 0 : 1;], + ac_cv_cxx_dynamic_cast=yes, ac_cv_cxx_dynamic_cast=no) + AC_LANG_RESTORE +]) +if test "$ac_cv_cxx_dynamic_cast" = yes; then + AC_DEFINE(HAVE_DYNAMIC_CAST,,[define if the compiler supports dynamic_cast<>]) +fi +]) + + +dnl @synopsis AC_CXX_NAMESPACES +dnl +dnl If the compiler can prevent names clashes using namespaces, define +dnl HAVE_NAMESPACES. +dnl +dnl @version $Id: acinclude.m4,v 1.9.2.1 2004/06/30 13:16:25 keichwa Exp $ +dnl @author Luc Maisonobe +dnl +AC_DEFUN([AC_CXX_NAMESPACES], +[AC_CACHE_CHECK(whether the compiler implements namespaces, +ac_cv_cxx_namespaces, +[AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_TRY_COMPILE([namespace Outer { namespace Inner { int i = 0; }}], + [using namespace Outer::Inner; return i;], + ac_cv_cxx_namespaces=yes, ac_cv_cxx_namespaces=no) + AC_LANG_RESTORE +]) +if test "$ac_cv_cxx_namespaces" = yes; then + AC_DEFINE(HAVE_NAMESPACES,,[define if the compiler implements namespaces]) +fi +]) + + +dnl @synopsis ACX_CHECK_PATHNAME_STYLE_DOS +dnl +dnl Check if host OS uses DOS-style pathnames. This includes the use +dnl of drive letters and backslashes. Under DOS, Windows, and OS/2, +dnl defines HAVE_PATHNAME_STYLE_DOS and PATH_SEPARATOR to ';'. +dnl Otherwise, defines PATH_SEPARATOR to ':'. +dnl +dnl Use for enabling code to handle drive letters, backslashes in +dnl filenames and semicolons in the PATH. +dnl +dnl @version $Id: acinclude.m4,v 1.9.2.1 2004/06/30 13:16:25 keichwa Exp $ +dnl @author Mark Elbrecht +dnl +AC_DEFUN([ACX_CHECK_PATHNAME_STYLE_DOS], +[AC_MSG_CHECKING(for Windows and DOS and OS/2 style pathnames) +AC_CACHE_VAL(acx_cv_pathname_style_dos, +[AC_REQUIRE([AC_CANONICAL_HOST]) + +acx_cv_pathname_style_dos="no" +case ${host_os} in + *djgpp | *mingw32 | *emx*) acx_cv_pathname_style_dos="yes" ;; +esac +]) +AC_MSG_RESULT($acx_cv_pathname_style_dos) +if test $acx_cv_pathname_style_dos = "yes"; then + AC_DEFINE(HAVE_PATHNAME_STYLE_DOS) + AC_DEFINE(PATH_SEPARATOR, ';') +else + AC_DEFINE(PATH_SEPARATOR, ':') +fi +]) + + +dnl @synopsis AC_CXX_EXPLICIT_INSTANTIATIONS +dnl +dnl If the C++ compiler supports explicit instanciations syntax, +dnl define HAVE_INSTANTIATIONS. +dnl +dnl @version $Id: acinclude.m4,v 1.9.2.1 2004/06/30 13:16:25 keichwa Exp $ +dnl @author Luc Maisonobe +dnl +AC_DEFUN([AC_CXX_EXPLICIT_INSTANTIATIONS], +[AC_CACHE_CHECK(whether the compiler supports explicit instantiations, +ac_cv_cxx_explinst, +[AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_TRY_COMPILE([template class A { T t; }; template class A;], + [], ac_cv_cxx_explinst=yes, ac_cv_cxx_explinst=no) + AC_LANG_RESTORE +]) +if test "$ac_cv_cxx_explinst" = yes; then + AC_DEFINE(HAVE_INSTANTIATIONS,, + [define if the compiler supports explicit instantiations]) +fi +]) + +AC_DEFUN([AC_DEFINE_DIR], [ + ac_expanded=`( + test "x$prefix" = xNONE && prefix="$ac_default_prefix" + test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" + eval echo \""[$]$2"\" + )` + ifelse($3, , + AC_DEFINE_UNQUOTED($1, "$ac_expanded"), + AC_DEFINE_UNQUOTED($1, "$ac_expanded", $3)) +]) + +dnl @synopsis AC_CXX_MUTABLE +dnl +dnl If the compiler allows modifying class data members flagged with +dnl the mutable keyword even in const objects (for example in the +dnl body of a const member function), define HAVE_MUTABLE. +dnl +dnl @version $Id: acinclude.m4,v 1.9.2.1 2004/06/30 13:16:25 keichwa Exp $ +dnl @author Luc Maisonobe +dnl +AC_DEFUN([AC_CXX_MUTABLE], +[AC_CACHE_CHECK(whether the compiler supports the mutable keyword, +ac_cv_cxx_mutable, +[AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_TRY_COMPILE([ +class A { mutable int i; + public: + int f (int n) const { i = n; return i; } + }; +],[A a; return a.f (1);], + ac_cv_cxx_mutable=yes, ac_cv_cxx_mutable=no) + AC_LANG_RESTORE +]) +if test "$ac_cv_cxx_mutable" = yes; then + AC_DEFINE(HAVE_MUTABLE,,[define if the compiler supports the mutable keyword]) +fi +]) diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 0000000..d7cc45c --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,7101 @@ +# generated automatically by aclocal 1.9.6 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- + +# serial 47 AC_PROG_LIBTOOL + + +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) +# ----------------------------------------------------------- +# If this macro is not defined by Autoconf, define it here. +m4_ifdef([AC_PROVIDE_IFELSE], + [], + [m4_define([AC_PROVIDE_IFELSE], + [m4_ifdef([AC_PROVIDE_$1], + [$2], [$3])])]) + + +# AC_PROG_LIBTOOL +# --------------- +AC_DEFUN([AC_PROG_LIBTOOL], +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. + AC_PROVIDE_IFELSE([AC_PROG_CXX], + [AC_LIBTOOL_CXX], + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX + ])]) +dnl And a similar setup for Fortran 77 support + AC_PROVIDE_IFELSE([AC_PROG_F77], + [AC_LIBTOOL_F77], + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 +])]) + +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. + AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [ifdef([AC_PROG_GCJ], + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([A][M_PROG_GCJ], + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([LT_AC_PROG_GCJ], + [define([LT_AC_PROG_GCJ], + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) +])])# AC_PROG_LIBTOOL + + +# _AC_PROG_LIBTOOL +# ---------------- +AC_DEFUN([_AC_PROG_LIBTOOL], +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +# Prevent multiple expansion +define([AC_PROG_LIBTOOL], []) +])# _AC_PROG_LIBTOOL + + +# AC_LIBTOOL_SETUP +# ---------------- +AC_DEFUN([AC_LIBTOOL_SETUP], +[AC_PREREQ(2.50)dnl +AC_REQUIRE([AC_ENABLE_SHARED])dnl +AC_REQUIRE([AC_ENABLE_STATIC])dnl +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_LD])dnl +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl +AC_REQUIRE([AC_PROG_NM])dnl + +AC_REQUIRE([AC_PROG_LN_S])dnl +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! +AC_REQUIRE([AC_OBJEXT])dnl +AC_REQUIRE([AC_EXEEXT])dnl +dnl + +AC_LIBTOOL_SYS_MAX_CMD_LEN +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +AC_LIBTOOL_OBJDIR + +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl +_LT_AC_PROG_ECHO_BACKSLASH + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] + +# Same as above, but do not quote variable references. +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +AC_CHECK_TOOL(AR, ar, false) +AC_CHECK_TOOL(RANLIB, ranlib, :) +AC_CHECK_TOOL(STRIP, strip, :) + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$SED" && SED=sed +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" + ;; + *) + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + AC_PATH_MAGIC + fi + ;; +esac + +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +enable_win32_dll=yes, enable_win32_dll=no) + +AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +AC_ARG_WITH([pic], + [AC_HELP_STRING([--with-pic], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [pic_mode="$withval"], + [pic_mode=default]) +test -z "$pic_mode" && pic_mode=default + +# Use C for the default configuration in the libtool script +tagname= +AC_LIBTOOL_LANG_C_CONFIG +_LT_AC_TAGCONFIG +])# AC_LIBTOOL_SETUP + + +# _LT_AC_SYS_COMPILER +# ------------------- +AC_DEFUN([_LT_AC_SYS_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_AC_SYS_COMPILER + + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +AC_DEFUN([_LT_CC_BASENAME], +[for cc_temp in $1""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +]) + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +AC_DEFUN([_LT_COMPILER_BOILERPLATE], +[ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +AC_DEFUN([_LT_LINKER_BOILERPLATE], +[ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* +])# _LT_LINKER_BOILERPLATE + + +# _LT_AC_SYS_LIBPATH_AIX +# ---------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi],[]) +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +])# _LT_AC_SYS_LIBPATH_AIX + + +# _LT_AC_SHELL_INIT(ARG) +# ---------------------- +AC_DEFUN([_LT_AC_SHELL_INIT], +[ifdef([AC_DIVERSION_NOTICE], + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], + [AC_DIVERT_PUSH(NOTICE)]) +$1 +AC_DIVERT_POP +])# _LT_AC_SHELL_INIT + + +# _LT_AC_PROG_ECHO_BACKSLASH +# -------------------------- +# Add some code to the start of the generated configure script which +# will find an echo command which doesn't interpret backslashes. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], +[_LT_AC_SHELL_INIT([ +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` + ;; +esac + +echo=${ECHO-echo} +if test "X[$]1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X[$]1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} +fi + +if test "X[$]1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null 2>&1 && unset CDPATH + +if test -z "$ECHO"; then +if test "X${echo_test_string+set}" != Xset; then +# find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if (echo_test_string=`eval $cmd`) 2>/dev/null && + echo_test_string=`eval $cmd` && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL [$]0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL [$]0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "[$]0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" +fi + +AC_SUBST(ECHO) +])])# _LT_AC_PROG_ECHO_BACKSLASH + + +# _LT_AC_LOCK +# ----------- +AC_DEFUN([_LT_AC_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; + ]) +esac + +need_locks="$enable_libtool_lock" + +])# _LT_AC_LOCK + + +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], +[AC_REQUIRE([LT_AC_PROG_SED]) +AC_CACHE_CHECK([$1], [$2], + [$2=no + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $rm conftest* +]) + +if test x"[$]$2" = xyes; then + ifelse([$5], , :, [$5]) +else + ifelse([$6], , :, [$6]) +fi +])# AC_LIBTOOL_COMPILER_OPTION + + +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ------------------------------------------------------------ +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], +[AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + printf "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $rm conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + ifelse([$4], , :, [$4]) +else + ifelse([$5], , :, [$5]) +fi +])# AC_LIBTOOL_LINKER_OPTION + + +# AC_LIBTOOL_SYS_MAX_CMD_LEN +# -------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], +[# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + *) + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ + = "XX$teststring") >/dev/null 2>&1 && + new_result=`expr "X$teststring" : ".*" 2>&1` && + lt_cv_sys_max_cmd_len=$new_result && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + teststring= + # Add a significant safety factor because C++ compilers can tack on massive + # amounts of additional arguments before passing them to the linker. + # It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +])# AC_LIBTOOL_SYS_MAX_CMD_LEN + + +# _LT_AC_CHECK_DLFCN +# -------------------- +AC_DEFUN([_LT_AC_CHECK_DLFCN], +[AC_CHECK_HEADERS(dlfcn.h)dnl +])# _LT_AC_CHECK_DLFCN + + +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ------------------------------------------------------------------ +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl +if test "$cross_compiling" = yes; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +}] +EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_unknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_AC_TRY_DLOPEN_SELF + + +# AC_LIBTOOL_DLOPEN_SELF +# ------------------- +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + LDFLAGS="$LDFLAGS $link_static_flag" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +])# AC_LIBTOOL_DLOPEN_SELF + + +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) +# --------------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp + $SED '/^$/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . 2>&AS_MESSAGE_LOG_FD + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* +]) +])# AC_LIBTOOL_PROG_CC_C_O + + +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) +# ----------------------------------------- +# Check to see if we can do hard links to lock some files if needed +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], +[AC_REQUIRE([_LT_AC_LOCK])dnl + +hard_links="nottested" +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS + + +# AC_LIBTOOL_OBJDIR +# ----------------- +AC_DEFUN([AC_LIBTOOL_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +])# AC_LIBTOOL_OBJDIR + + +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) +# ---------------------------------------------- +# Check hardcoding attributes. +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_AC_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then + + # We can hardcode non-existant directories. + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then + # Linking always hardcodes the temporary library directory. + _LT_AC_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_AC_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) + +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH + + +# AC_LIBTOOL_SYS_LIB_STRIP +# ------------------------ +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], +[striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) +fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac +fi +])# AC_LIBTOOL_SYS_LIB_STRIP + + +# AC_LIBTOOL_SYS_DYNAMIC_LINKER +# ----------------------------- +# PORTME Fill in your ld.so characteristics +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], +[AC_MSG_CHECKING([dynamic linker characteristics]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[[45]]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` + else + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' + fi + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[123]]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + *) # from 3.2 on + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # find out which ABI we are using + libsuff= + case "$host_cpu" in + x86_64*|s390x*|powerpc64*) + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *64-bit*) + libsuff=64 + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" + ;; + esac + fi + rm -rf conftest* + ;; + esac + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +knetbsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER + + +# _LT_AC_TAGCONFIG +# ---------------- +AC_DEFUN([_LT_AC_TAGCONFIG], +[AC_ARG_WITH([tags], + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], + [include additional configurations @<:@automatic@:>@])], + [tagnames="$withval"]) + +if test -f "$ltmain" && test -n "$tagnames"; then + if test ! -f "${ofile}"; then + AC_MSG_WARN([output file `$ofile' does not exist]) + fi + + if test -z "$LTCC"; then + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" + if test -z "$LTCC"; then + AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) + else + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) + fi + fi + + # Extract list of available tagged configurations in $ofile. + # Note that this assumes the entire list is on one line. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for tagname in $tagnames; do + IFS="$lt_save_ifs" + # Check whether tagname contains only valid characters + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in + "") ;; + *) AC_MSG_ERROR([invalid tag name: $tagname]) + ;; + esac + + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null + then + AC_MSG_ERROR([tag name \"$tagname\" already exists]) + fi + + # Update the list of available tags. + if test -n "$tagname"; then + echo appending configuration tag \"$tagname\" to $ofile + + case $tagname in + CXX) + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_LIBTOOL_LANG_CXX_CONFIG + else + tagname="" + fi + ;; + + F77) + if test -n "$F77" && test "X$F77" != "Xno"; then + AC_LIBTOOL_LANG_F77_CONFIG + else + tagname="" + fi + ;; + + GCJ) + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then + AC_LIBTOOL_LANG_GCJ_CONFIG + else + tagname="" + fi + ;; + + RC) + AC_LIBTOOL_LANG_RC_CONFIG + ;; + + *) + AC_MSG_ERROR([Unsupported tag name: $tagname]) + ;; + esac + + # Append the new tag name to the list of available tags. + if test -n "$tagname" ; then + available_tags="$available_tags $tagname" + fi + fi + done + IFS="$lt_save_ifs" + + # Now substitute the updated list of available tags. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then + mv "${ofile}T" "$ofile" + chmod +x "$ofile" + else + rm -f "${ofile}T" + AC_MSG_ERROR([unable to update list of available tagged configurations.]) + fi +fi +])# _LT_AC_TAGCONFIG + + +# AC_LIBTOOL_DLOPEN +# ----------------- +# enable checks for dlopen support +AC_DEFUN([AC_LIBTOOL_DLOPEN], + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) +])# AC_LIBTOOL_DLOPEN + + +# AC_LIBTOOL_WIN32_DLL +# -------------------- +# declare package support for building win32 DLLs +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) +])# AC_LIBTOOL_WIN32_DLL + + +# AC_ENABLE_SHARED([DEFAULT]) +# --------------------------- +# implement the --enable-shared flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_SHARED], +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([shared], + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_shared=]AC_ENABLE_SHARED_DEFAULT) +])# AC_ENABLE_SHARED + + +# AC_DISABLE_SHARED +# ----------------- +#- set the default shared flag to --disable-shared +AC_DEFUN([AC_DISABLE_SHARED], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_SHARED(no) +])# AC_DISABLE_SHARED + + +# AC_ENABLE_STATIC([DEFAULT]) +# --------------------------- +# implement the --enable-static flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_STATIC], +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([static], + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_static=]AC_ENABLE_STATIC_DEFAULT) +])# AC_ENABLE_STATIC + + +# AC_DISABLE_STATIC +# ----------------- +# set the default static flag to --disable-static +AC_DEFUN([AC_DISABLE_STATIC], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_STATIC(no) +])# AC_DISABLE_STATIC + + +# AC_ENABLE_FAST_INSTALL([DEFAULT]) +# --------------------------------- +# implement the --enable-fast-install flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_FAST_INSTALL], +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([fast-install], + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) +])# AC_ENABLE_FAST_INSTALL + + +# AC_DISABLE_FAST_INSTALL +# ----------------------- +# set the default to --disable-fast-install +AC_DEFUN([AC_DISABLE_FAST_INSTALL], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_FAST_INSTALL(no) +])# AC_DISABLE_FAST_INSTALL + + +# AC_LIBTOOL_PICMODE([MODE]) +# -------------------------- +# implement the --with-pic flag +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. +AC_DEFUN([AC_LIBTOOL_PICMODE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +pic_mode=ifelse($#,1,$1,default) +])# AC_LIBTOOL_PICMODE + + +# AC_PROG_EGREP +# ------------- +# This is predefined starting with Autoconf 2.54, so this conditional +# definition can be removed once we require Autoconf 2.54 or later. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 + then ac_cv_prog_egrep='grep -E' + else ac_cv_prog_egrep='egrep' + fi]) + EGREP=$ac_cv_prog_egrep + AC_SUBST([EGREP]) +])]) + + +# AC_PATH_TOOL_PREFIX +# ------------------- +# find a file program which can recognise shared library +AC_DEFUN([AC_PATH_TOOL_PREFIX], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="ifelse([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +])# AC_PATH_TOOL_PREFIX + + +# AC_PATH_MAGIC +# ------------- +# find a file program which can recognise a shared library +AC_DEFUN([AC_PATH_MAGIC], +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# AC_PATH_MAGIC + + +# AC_PROG_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([AC_PROG_LD], +[AC_ARG_WITH([gnu-ld], + [AC_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no]) +AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +nto-qnx*) + lt_cv_deplibs_check_method=unknown + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +sco3.2v5*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown +])# AC_DEPLIBS_CHECK_METHOD + + +# AC_PROG_NM +# ---------- +# find the pathname to a BSD-compatible name lister +AC_DEFUN([AC_PROG_NM], +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/${ac_tool_prefix}nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + esac + fi + done + IFS="$lt_save_ifs" + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi]) +NM="$lt_cv_path_NM" +])# AC_PROG_NM + + +# AC_CHECK_LIBM +# ------------- +# check for math library +AC_DEFUN([AC_CHECK_LIBM], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +])# AC_CHECK_LIBM + + +# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) +# ----------------------------------- +# sets LIBLTDL to the link flags for the libltdl convenience library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-convenience to the configure arguments. Note that +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' +# (note the single quotes!). If your package is not flat and you're not +# using automake, define top_builddir and top_srcdir appropriately in +# the Makefiles. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + case $enable_ltdl_convenience in + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; + "") enable_ltdl_convenience=yes + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; + esac + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +])# AC_LIBLTDL_CONVENIENCE + + +# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) +# ----------------------------------- +# sets LIBLTDL to the link flags for the libltdl installable library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-install to the configure arguments. Note that +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, +# and an installed libltdl is not found, it is assumed to be `libltdl'. +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with +# '${top_srcdir}/' (note the single quotes!). If your package is not +# flat and you're not using automake, define top_builddir and top_srcdir +# appropriately in the Makefiles. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + AC_CHECK_LIB(ltdl, lt_dlinit, + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], + [if test x"$enable_ltdl_install" = xno; then + AC_MSG_WARN([libltdl not installed, but installation disabled]) + else + enable_ltdl_install=yes + fi + ]) + if test x"$enable_ltdl_install" = x"yes"; then + ac_configure_args="$ac_configure_args --enable-ltdl-install" + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + else + ac_configure_args="$ac_configure_args --enable-ltdl-install=no" + LIBLTDL="-lltdl" + LTDLINCL= + fi + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +])# AC_LIBLTDL_INSTALLABLE + + +# AC_LIBTOOL_CXX +# -------------- +# enable support for C++ libraries +AC_DEFUN([AC_LIBTOOL_CXX], +[AC_REQUIRE([_LT_AC_LANG_CXX]) +])# AC_LIBTOOL_CXX + + +# _LT_AC_LANG_CXX +# --------------- +AC_DEFUN([_LT_AC_LANG_CXX], +[AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) +])# _LT_AC_LANG_CXX + +# _LT_AC_PROG_CXXCPP +# --------------- +AC_DEFUN([_LT_AC_PROG_CXXCPP], +[ +AC_REQUIRE([AC_PROG_CXX]) +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_PROG_CXXCPP +fi +])# _LT_AC_PROG_CXXCPP + +# AC_LIBTOOL_F77 +# -------------- +# enable support for Fortran 77 libraries +AC_DEFUN([AC_LIBTOOL_F77], +[AC_REQUIRE([_LT_AC_LANG_F77]) +])# AC_LIBTOOL_F77 + + +# _LT_AC_LANG_F77 +# --------------- +AC_DEFUN([_LT_AC_LANG_F77], +[AC_REQUIRE([AC_PROG_F77]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) +])# _LT_AC_LANG_F77 + + +# AC_LIBTOOL_GCJ +# -------------- +# enable support for GCJ libraries +AC_DEFUN([AC_LIBTOOL_GCJ], +[AC_REQUIRE([_LT_AC_LANG_GCJ]) +])# AC_LIBTOOL_GCJ + + +# _LT_AC_LANG_GCJ +# --------------- +AC_DEFUN([_LT_AC_LANG_GCJ], +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) +])# _LT_AC_LANG_GCJ + + +# AC_LIBTOOL_RC +# -------------- +# enable support for Windows resource files +AC_DEFUN([AC_LIBTOOL_RC], +[AC_REQUIRE([LT_AC_PROG_RC]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) +])# AC_LIBTOOL_RC + + +# AC_LIBTOOL_LANG_C_CONFIG +# ------------------------ +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) +AC_DEFUN([_LT_AC_LANG_C_CONFIG], +[lt_save_CC="$CC" +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}\n' + +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# +# Check for any special shared library compilation flags. +# +_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= +if test "$GCC" = no; then + case $host_os in + sco3.2v5*) + _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' + ;; + esac +fi +if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then + AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) + if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : + else + AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) + _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no + fi +fi + + +# +# Check to make sure the static flag actually works. +# +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), + $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), + [], + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) + + +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) +AC_LIBTOOL_SYS_LIB_STRIP +AC_LIBTOOL_DLOPEN_SELF($1) + +# Report which librarie types wil actually be built +AC_MSG_CHECKING([if libtool supports shared libraries]) +AC_MSG_RESULT([$can_build_shared]) + +AC_MSG_CHECKING([whether to build shared libraries]) +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix4* | aix5*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +AC_MSG_RESULT([$enable_shared]) + +AC_MSG_CHECKING([whether to build static libraries]) +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +AC_MSG_RESULT([$enable_static]) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_C_CONFIG + + +# AC_LIBTOOL_LANG_CXX_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], +[AC_LANG_PUSH(C++) +AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) + +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_AC_TAGVAR(allow_undefined_flag, $1)= +_LT_AC_TAGVAR(always_export_symbols, $1)=no +_LT_AC_TAGVAR(archive_expsym_cmds, $1)= +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_direct, $1)=no +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no +_LT_AC_TAGVAR(hardcode_automatic, $1)=no +_LT_AC_TAGVAR(module_cmds, $1)= +_LT_AC_TAGVAR(module_expsym_cmds, $1)= +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_AC_TAGVAR(no_undefined_flag, $1)= +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Dependencies to place before and after the object being linked: +_LT_AC_TAGVAR(predep_objects, $1)= +_LT_AC_TAGVAR(postdep_objects, $1)= +_LT_AC_TAGVAR(predeps, $1)= +_LT_AC_TAGVAR(postdeps, $1)= +_LT_AC_TAGVAR(compiler_lib_search_path, $1)= + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_LD=$LD +lt_save_GCC=$GCC +GCC=$GXX +lt_save_with_gnu_ld=$with_gnu_ld +lt_save_path_LD=$lt_cv_path_LD +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx +else + unset lt_cv_prog_gnu_ld +fi +if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX +else + unset lt_cv_path_LD +fi +test -z "${LDCXX+set}" || LD=$LDCXX +CC=${CXX-"c++"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) + +# We don't want -fno-exception wen compiling C++ code, so set the +# no_builtin_flag separately +if test "$GXX" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' +else + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= +fi + +if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + AC_PROG_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ + grep 'no-whole-archive' > /dev/null; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + +else + GXX=no + with_gnu_ld=no + wlarc= +fi + +# PORTME: fill in a description of your system's C++ link characteristics +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +_LT_AC_TAGVAR(ld_shlibs, $1)=yes +case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_AC_TAGVAR(archive_cmds, $1)='' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GXX" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + else + # We have old collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + # Exported symbols can be pulled into shared objects from archives + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GXX" = yes ; then + lt_int_apple_cc_single_mod=no + output_verbose_link_cmd='echo' + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then + lt_int_apple_cc_single_mod=yes + fi + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + fi + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + freebsd[[12]]*) + # C++ shared libraries reported to be fairly broken before switch to ELF + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + freebsd-elf*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + freebsd* | kfreebsd*-gnu | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + ;; + gnu*) + ;; + hpux9*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + ia64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + ;; + *) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + ia64*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + *) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case $host_cpu in + hppa*64*|ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + ia64*|hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + fi + fi + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + linux*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc*) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC*) + # Portland Group C++ compiler + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + m88k*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + openbsd2*) + # C++ shared libraries are fairly broken + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + openbsd*) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd='echo' + ;; + osf3*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ + $rm $lib.exp' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + sco*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The C++ compiler is used as linker so we must use $wl + # flag to pass the commands to the underlying system + # linker. We must also pass each convience library through + # to the system linker between allextract/defaultextract. + # The C++ compiler will combine linker options so we + # cannot just pass the convience library names through + # without $wl. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' + ;; + esac + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' + if $CC --version | grep -v '^2\.7' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + fi + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' + fi + ;; + esac + ;; + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; +esac +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +_LT_AC_TAGVAR(GCC, $1)="$GXX" +_LT_AC_TAGVAR(LD, $1)="$LD" + +AC_LIBTOOL_POSTDEP_PREDEP($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) +AC_LIBTOOL_SYS_LIB_STRIP +AC_LIBTOOL_DLOPEN_SELF($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC=$lt_save_CC +LDCXX=$LD +LD=$lt_save_LD +GCC=$lt_save_GCC +with_gnu_ldcxx=$with_gnu_ld +with_gnu_ld=$lt_save_with_gnu_ld +lt_cv_path_LDCXX=$lt_cv_path_LD +lt_cv_path_LD=$lt_save_path_LD +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +])# AC_LIBTOOL_LANG_CXX_CONFIG + +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) +# ------------------------ +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <> "$cfgfile" +ifelse([$1], [], +[#! $SHELL + +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. +# +# This file is part of GNU Libtool: +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e 1s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# The names of the tagged configurations supported by this script. +available_tags= + +# ### BEGIN LIBTOOL CONFIG], +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) + +# Is the compiler the GNU C compiler? +with_gcc=$_LT_AC_TAGVAR(GCC, $1) + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_[]_LT_AC_TAGVAR(LD, $1) + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) + +# Commands used to build and install a shared archive. +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" + +# Set to yes if exported symbols are required. +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) + +# The commands to list exported symbols. +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) + +# Symbols that must always be exported. +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) + +ifelse([$1],[], +[# ### END LIBTOOL CONFIG], +[# ### END LIBTOOL TAG CONFIG: $tagname]) + +__EOF__ + +ifelse([$1],[], [ + case $host_os in + aix3*) + cat <<\EOF >> "$cfgfile" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || \ + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +]) +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi +])# AC_LIBTOOL_CONFIG + + +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------------------- +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl + +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test "$GCC" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI + + +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +# --------------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], +[AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([AC_PROG_NM]) +AC_REQUIRE([AC_OBJEXT]) +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], +[ +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[[ABCDEGRST]]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +linux*) + if test "$host_cpu" = ia64; then + symcode='[[ABCDGIRSTW]]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris* | sysv5*) + symcode='[[BDRT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[[]] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -f conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE + + +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) +# --------------------------------------- +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= + +AC_MSG_CHECKING([for $compiler option to produce PIC]) + ifelse([$1],[CXX],[ + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | os2* | pw32*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix4* | aix5*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | kfreebsd*-gnu | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" + if test "$host_cpu" != ia64; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux*) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + icpc* | ecpc*) + # Intel C++ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC*) + # Portland Group C++ compiler. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + sco*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + *) + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + unixware*) + ;; + vxworks*) + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test "$GCC" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + esac + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + newsos6) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + linux*) + case $cc_basename in + icc* | ecc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + esac + ;; + + osf3* | osf4* | osf5*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + sco3.2v5*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' + ;; + + solaris*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + unicos*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" + ;; +esac +]) + + +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) +# ------------------------------------ +# See if the linker supports building shared libraries. +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +ifelse([$1],[CXX],[ + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix4* | aix5*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + else + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; + cygwin* | mingw*) + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac +],[ + runpath_var= + _LT_AC_TAGVAR(allow_undefined_flag, $1)= + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_AC_TAGVAR(archive_cmds, $1)= + _LT_AC_TAGVAR(archive_expsym_cmds, $1)= + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown + _LT_AC_TAGVAR(hardcode_automatic, $1)=no + _LT_AC_TAGVAR(module_cmds, $1)= + _LT_AC_TAGVAR(module_expsym_cmds, $1)= + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_AC_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + _LT_CC_BASENAME([$compiler]) + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + linux*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sunos4*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then + runpath_var= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + else + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_AC_TAGVAR(archive_cmds, $1)='' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + else + # We have old collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + # Exported symbols can be pulled into shared objects from archives + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + # see comment about different semantics on the GNU ld section + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + bsdi[[45]]*) + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi + ;; + + dgux*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + freebsd1*) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | kfreebsd*-gnu | dragonfly*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + + hpux10* | hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*|ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*|ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + ia64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + ;; + *) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + openbsd*) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + else + case $host_os in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + + os2*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + else + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + sco3.2v5*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ;; + + solaris*) + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine linker options so we + # cannot just pass the convience library names through + # without $wl, iff we do not link with $LD. + # Luckily, gcc supports the same syntax we need for Sun Studio. + # Supported since Solaris 2.6 (maybe 2.5.1?) + case $wlarc in + '') + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; + *) + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; + esac ;; + esac + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4.2uw2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv5*) + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi +]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +# +# Do we need to explicitly link libc? +# +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $_LT_AC_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) + $rm conftest* + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) + _LT_AC_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) + then + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + else + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) + ;; + esac + fi + ;; +esac +])# AC_LIBTOOL_PROG_LD_SHLIBS + + +# _LT_AC_FILE_LTDLL_C +# ------------------- +# Be careful that the start marker always follows a newline. +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ +# /* ltdll.c starts here */ +# #define WIN32_LEAN_AND_MEAN +# #include +# #undef WIN32_LEAN_AND_MEAN +# #include +# +# #ifndef __CYGWIN__ +# # ifdef __CYGWIN32__ +# # define __CYGWIN__ __CYGWIN32__ +# # endif +# #endif +# +# #ifdef __cplusplus +# extern "C" { +# #endif +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); +# #ifdef __cplusplus +# } +# #endif +# +# #ifdef __CYGWIN__ +# #include +# DECLARE_CYGWIN_DLL( DllMain ); +# #endif +# HINSTANCE __hDllInstance_base; +# +# BOOL APIENTRY +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) +# { +# __hDllInstance_base = hInst; +# return TRUE; +# } +# /* ltdll.c ends here */ +])# _LT_AC_FILE_LTDLL_C + + +# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) +# --------------------------------- +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) + + +# old names +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) + +# This is just to silence aclocal about the macro not being used +ifelse([AC_DISABLE_FAST_INSTALL]) + +AC_DEFUN([LT_AC_PROG_GCJ], +[AC_CHECK_TOOL(GCJ, gcj, no) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS) +]) + +AC_DEFUN([LT_AC_PROG_RC], +[AC_CHECK_TOOL(RC, windres, no) +]) + +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +# LT_AC_PROG_SED +# -------------- +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +AC_DEFUN([LT_AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done +]) +SED=$lt_cv_path_SED +AC_MSG_RESULT([$SED]) +]) + +# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION so it can be traced. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], + [AM_AUTOMAKE_VERSION([1.9.6])]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 7 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE]) +AC_SUBST([$1_FALSE]) +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 8 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH]) +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 3 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[for mf in $CONFIG_FILES; do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # So let's grep whole file. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 8 + +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 12 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.58])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +# test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && + test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AM_PROG_INSTALL_SH +AM_PROG_INSTALL_STRIP +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +]) +]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $1 | $1:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +install_sh=${install_sh-"$am_aux_dir/install-sh"} +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- +# From Jim Meyering + +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +AC_DEFUN([AM_MAINTAINER_MODE], +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) + dnl maintainer-mode is disabled by default + AC_ARG_ENABLE(maintainer-mode, +[ --enable-maintainer-mode enable make rules and dependencies not useful + (and sometimes confusing) to the casual installer], + USE_MAINTAINER_MODE=$enableval, + USE_MAINTAINER_MODE=no) + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) + AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) + MAINT=$MAINTAINER_MODE_TRUE + AC_SUBST(MAINT)dnl +] +) + +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo done +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then + am__include=include + am__quote= + _am_result=GNU +fi +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then + am__include=.include + am__quote="\"" + _am_result=BSD + fi +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_MKDIR_P +# --------------- +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. +# +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories +# created by `make install' are always world readable, even if the +# installer happens to have an overly restrictive umask (e.g. 077). +# This was a mistake. There are at least two reasons why we must not +# use `-m 0755': +# - it causes special bits like SGID to be ignored, +# - it may be too restrictive (some setups expect 775 directories). +# +# Do not use -m 0755 and let people choose whatever they expect by +# setting umask. +# +# We cannot accept any implementation of `mkdir' that recognizes `-p'. +# Some implementations (such as Solaris 8's) are not thread-safe: if a +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' +# concurrently, both version can detect that a/ is missing, but only +# one can create it and the other will error out. Consequently we +# restrict ourselves to GNU make (using the --version option ensures +# this.) +AC_DEFUN([AM_PROG_MKDIR_P], +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then + # We used to keeping the `.' as first argument, in order to + # allow $(mkdir_p) to be used without argument. As in + # $(mkdir_p) $(somedir) + # where $(somedir) is conditionally defined. However this is wrong + # for two reasons: + # 1. if the package is installed by a user who cannot write `.' + # make install will fail, + # 2. the above comment should most certainly read + # $(mkdir_p) $(DESTDIR)$(somedir) + # so it does not work when $(somedir) is undefined and + # $(DESTDIR) is not. + # To support the latter case, we have to write + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), + # so the `.' trick is pointless. + mkdir_p='mkdir -p --' +else + # On NextStep and OpenStep, the `mkdir' command does not + # recognize any option. It will interpret all options as + # directories to create, and then abort because `.' already + # exists. + for d in ./-p ./--version; + do + test -d $d && rmdir $d + done + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. + if test -f "$ac_aux_dir/mkinstalldirs"; then + mkdir_p='$(mkinstalldirs)' + else + mkdir_p='$(install_sh) -d' + fi +fi +AC_SUBST([mkdir_p])]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# ------------------------------ +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. +AM_MISSING_PROG([AMTAR], [tar]) +m4_if([$1], [v7], + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +m4_include([m4/codeset.m4]) +m4_include([m4/gettext.m4]) +m4_include([m4/glibc2.m4]) +m4_include([m4/glibc21.m4]) +m4_include([m4/iconv.m4]) +m4_include([m4/intdiv0.m4]) +m4_include([m4/intmax.m4]) +m4_include([m4/inttypes-pri.m4]) +m4_include([m4/inttypes.m4]) +m4_include([m4/inttypes_h.m4]) +m4_include([m4/lcmessage.m4]) +m4_include([m4/lib-ld.m4]) +m4_include([m4/lib-link.m4]) +m4_include([m4/lib-prefix.m4]) +m4_include([m4/longdouble.m4]) +m4_include([m4/longlong.m4]) +m4_include([m4/nls.m4]) +m4_include([m4/po.m4]) +m4_include([m4/printf-posix.m4]) +m4_include([m4/progtest.m4]) +m4_include([m4/signed.m4]) +m4_include([m4/size_max.m4]) +m4_include([m4/stdint_h.m4]) +m4_include([m4/uintmax_t.m4]) +m4_include([m4/ulonglong.m4]) +m4_include([m4/wchar_t.m4]) +m4_include([m4/wint_t.m4]) +m4_include([m4/xsize.m4]) +m4_include([acinclude.m4]) diff --git a/all/README b/all/README new file mode 100644 index 0000000..57ecba4 --- /dev/null +++ b/all/README @@ -0,0 +1,2 @@ +This file exists only to ensure that the all directory exists. +This directory is used in the Visual C++ build process. diff --git a/all/all.dsp b/all/all.dsp new file mode 100644 index 0000000..af92ad8 --- /dev/null +++ b/all/all.dsp @@ -0,0 +1,93 @@ +# Microsoft Developer Studio Project File - Name="all" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) External Target" 0x0106 + +CFG=all - Win32 Release +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "all.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "all.mak" CFG="all - Win32 Release" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "all - Win32 Release" (based on "Win32 (x86) External Target") +!MESSAGE "all - Win32 Debug" (based on "Win32 (x86) External Target") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" + +!IF "$(CFG)" == "all - Win32 Release" + +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir ".\Release" +# PROP BASE Intermediate_Dir ".\Release" +# PROP BASE Cmd_Line "NMAKE /f all.mak" +# PROP BASE Rebuild_Opt "/a" +# PROP BASE Target_File "all\all.exe" +# PROP BASE Bsc_Name "all\all.bsc" +# PROP BASE Target_Dir "." +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir ".\Release" +# PROP Intermediate_Dir ".\Release" +# PROP Cmd_Line "" +# PROP Rebuild_Opt "" +# PROP Target_File "all" +# PROP Bsc_Name "" +# PROP Target_Dir "." + +!ELSEIF "$(CFG)" == "all - Win32 Debug" + +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir ".\Debug" +# PROP BASE Intermediate_Dir ".\Debug" +# PROP BASE Cmd_Line "NMAKE /f all.mak" +# PROP BASE Rebuild_Opt "/a" +# PROP BASE Target_File "all\all.exe" +# PROP BASE Bsc_Name "all\all.bsc" +# PROP BASE Target_Dir "." +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir ".\Debug" +# PROP Intermediate_Dir ".\Debug" +# PROP Cmd_Line "" +# PROP Rebuild_Opt "" +# PROP Target_File "all" +# PROP Bsc_Name "" +# PROP Target_Dir "." + +!ENDIF + +# Begin Target + +# Name "all - Win32 Release" +# Name "all - Win32 Debug" + +!IF "$(CFG)" == "all - Win32 Release" + +!ELSEIF "$(CFG)" == "all - Win32 Debug" + +!ENDIF + +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat;for;f90" +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd" +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/autoinit.sh b/autoinit.sh new file mode 100755 index 0000000..6a2fcdd --- /dev/null +++ b/autoinit.sh @@ -0,0 +1,37 @@ +#!/bin/sh +# +# $Id: autoinit.sh,v 1.1.2.2 2005/12/09 04:00:57 neilroeth Exp $ +# +# autoinit.sh - part of build system for C/C++ Unix/X11 programs +# Copyright (C) 1999 Hans Ulrich Niedermann +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +basename="$(basename "$0" || echo "$0")" + +for command in aclocal autoheader libtoolize "automake --add-missing" autoconf; do + echo "$basename: Executing \"${command}\"" + ${command} + status=$? + if test $status -ne 0; then + echo "$basename: Execution of \"${command}\" failed (exit status ${status})" + echo "$basename: aborted (exit status ${status})" + exit ${status} + fi +done + +configure="$(dirname "$0" || echo "")/configure" +echo "$basename: You probably want to run \"$configure\" now." +echo "$basename: See \"$configure --help\" for help \"$configure\" options" diff --git a/build-win32.bat b/build-win32.bat new file mode 100755 index 0000000..e9d80d6 --- /dev/null +++ b/build-win32.bat @@ -0,0 +1,2 @@ +nmake -f sp-generate.mak +msdev SP.dsw /make "all - win32 release" diff --git a/config.guess b/config.guess new file mode 100755 index 0000000..917bbc5 --- /dev/null +++ b/config.guess @@ -0,0 +1,1463 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + +timestamp='2005-07-08' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Originally written by Per Bothner . +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit build system type. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep __ELF__ >/dev/null + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerppc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + exit ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[45]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep __LP64__ >/dev/null + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + i*:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + x86:Interix*:[34]*) + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' + exit ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + arm*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + cris:Linux:*:*) + echo cris-axis-linux-gnu + exit ;; + crisv32:Linux:*:*) + echo crisv32-axis-linux-gnu + exit ;; + frv:Linux:*:*) + echo frv-unknown-linux-gnu + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + mips:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips + #undef mipsel + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mipsel + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + ;; + mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips64 + #undef mips64el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mips64el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips64 + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-gnu ;; + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; + esac + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-gnu + exit ;; + i*86:Linux:*:*) + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. cd to the root directory to prevent + # problems with other programs or directories called `ld' in the path. + # Set LC_ALL=C to ensure ld outputs messages in English. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ + | sed -ne '/supported targets:/!d + s/[ ][ ]*/ /g + s/.*supported targets: *// + s/ .*// + p'` + case "$ld_supported_targets" in + elf32-i386) + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" + ;; + a.out-i386-linux) + echo "${UNAME_MACHINE}-pc-linux-gnuaout" + exit ;; + coff-i386) + echo "${UNAME_MACHINE}-pc-linux-gnucoff" + exit ;; + "") + # Either a pre-BFD a.out linker (linux-gnuoldld) or + # one that does not give us useful --help. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld" + exit ;; + esac + # Determine whether the default compiler is a.out or elf + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #ifdef __ELF__ + # ifdef __GLIBC__ + # if __GLIBC__ >= 2 + LIBC=gnu + # else + LIBC=gnulibc1 + # endif + # else + LIBC=gnulibc1 + # endif + #else + #ifdef __INTEL_COMPILER + LIBC=gnu + #else + LIBC=gnuaout + #endif + #endif + #ifdef __dietlibc__ + LIBC=dietlibc + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + test x"${LIBC}" != x && { + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + exit + } + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } + ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i386. + echo i386-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in + *86) UNAME_PROCESSOR=i686 ;; + unknown) UNAME_PROCESSOR=powerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NSE-?:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix\n"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + c34*) + echo c34-convex-bsd + exit ;; + c38*) + echo c38-convex-bsd + exit ;; + c4*) + echo c4-convex-bsd + exit ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/config.h b/config.h new file mode 100644 index 0000000..4237a92 --- /dev/null +++ b/config.h @@ -0,0 +1,315 @@ +// Copyright (c) 1994, 1995, 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef config_INCLUDED +#define config_INCLUDED 1 + +#define SP_INCLUDE_UNISTD_H +#define SP_POSIX_FILENAMES + +#ifdef __GNUG__ +// Ideally, this should be set in configure.in, I think +// It's not missing, but it pulls in libg++ +#define SP_NEW_H_MISSING +// set_new_handler() has to be declared extern "C" +#define SP_SET_NEW_HANDLER_EXTERN_C +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) +#define SP_ANSI_FOR_SCOPE +#endif +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8) +#define SP_ANSI_LIB +#define SP_NO_STD_NAMESPACE +#undef SP_NEW_H_MISSING +#endif +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 9) +#undef SP_NO_STD_NAMESPACE +#endif +#endif /* __GNUG__ */ + +#if defined(sun) || defined(__sun) +// struct stat has st_blksize member +#define SP_STAT_BLKSIZE +#endif + +#if (defined __MACH__) && (! defined __GNU__) +#define SP_MUTEX_MACH +#endif + +#ifdef __EMX__ +// EMX 0.9a for OS/2 +#undef SP_POSIX_FILENAMES +#define SP_MSDOS_FILENAMES +#endif + +#ifdef _MSC_VER +// Microsoft Visual C++ 4.0 +#undef SP_INCLUDE_UNISTD_H +#define SP_INCLUDE_IO_H +#ifndef SP_ANSI_CLASS_INST +#define SP_ANSI_CLASS_INST +#endif +#undef SP_POSIX_FILENAMES +#define SP_MSDOS_FILENAMES +#define SP_SHORT_HEADERS +#pragma warning ( disable : 4660 ) // already instantiated +#pragma warning ( disable : 4661 ) // missing def for decl member +#pragma warning ( disable : 4786 ) // debug symbol truncated (>255 chars) +#pragma warning ( disable : 4018 ) // signed/unsigned mismatch +#pragma warning ( disable : 4251 ) // __declspec(dllexport) +#pragma warning ( disable : 4275 ) +#pragma warning ( disable : 4237 ) // future reserved keyword +#define huge verybig +#if _MSC_VER == 900 +#define SP_DECLARE_PLACEMENT_OPERATOR_NEW +#endif +#define set_new_handler _set_new_handler +// Function passed to set_new_handler() returns int and takes size_t argument. +#define SP_FANCY_NEW_HANDLER + +#if _MSC_VER >= 1100 +// Visual C++ 5.0 +#define SP_HAVE_BOOL +#define SP_SIZEOF_BOOL_1 +#pragma warning ( disable : 4800 ) // forcing value to bool 'true' or + // 'false' (performance warning) +#endif + +#if _MSC_VER >= 1200 +// Visual C++ 6.0 +#define SP_HAVE_PLACEMENT_OPERATOR_DELETE +#define SP_HAVE_TYPENAME +#endif + +#define SP_HAVE_SETMODE +#define SP_DLLEXPORT __declspec(dllexport) +#define SP_DLLIMPORT __declspec(dllimport) + +#if defined(_DLL) || defined(_USRDLL) || defined(_MT) +#define SP_USE_DLL +#endif + +#ifdef SP_USE_DLL +#ifndef BUILD_LIBSP +// It's not possible to export templates using __declspec(dllexport), +// so instead we include the template definitions in the headers, +// which allows Visual C++ to instantiate any needed templates +// in the client. +#define SP_DEFINE_TEMPLATES +#endif +#endif /* SP_USE_DLL */ + +#ifndef SP_MANUAL_INST +#ifndef SP_DEFINE_TEMPLATES +#define SP_MANUAL_INST +#endif +#endif /* not SP_MANUAL_INST */ + +// SP_WIDE_SYSTEM builds will not compile due to missing overloads +// OutputCharStream &operator<<(wchar_t) and +// OutputCharStream &operator<<(unsigned short*) +// which are required by onsgmls; osx has probably similar issues. +// Once these issues are addressed, the following lines should be +// re-activated. + +// #ifdef SP_MULTI_BYTE +// #define SP_WIDE_SYSTEM +// #endif + +// wchar_t's base type is an unsigned short +#define SP_WCHAR_T_USHORT + +// Enable precompiled header support. +#define SP_PCH +// Don't compile in message text. +#define SP_NO_MESSAGE_TEXT +#ifdef _MT +// Use Win32 critical section facilities +#define SP_MUTEX_WIN32 +// Use the new Standard C++ library +#define SP_ANSI_LIB +#if _MSC_VER < 1100 +// Versions prior to 5.0 don't use the std namespace +#define SP_NO_STD_NAMESPACE +#endif +#endif /* _MT */ +#endif /* _MSC_VER */ + +#ifdef __WATCOMC__ +// Watcom C++ 10.0a +#define SP_MANUAL_INST +#undef SP_POSIX_FILENAMES +#define SP_MSDOS_FILENAMES +#undef SP_INCLUDE_UNISTD_H +#define SP_INCLUDE_IO_H +#pragma warning 004 9 +#undef huge +// Cannot handle T::~T in template. +#define SP_QUAL_TEMPLATE_DTOR_BROKEN +#define SP_HAVE_SETMODE +#define _setmode setmode +#if __WATCOMC__ < 1050 +#define _O_BINARY O_BINARY +#endif +#define SP_WCHAR_T_USHORT +#if __WATCOMC__ >= 1100 +#define SP_HAVE_BOOL +// #define SP_SIZEOF_BOOL_1 +#endif +#endif /* __WATCOMC__ */ + +#ifdef __BORLANDC__ +// Borland C++ 5.0 +#define SP_ANSI_FOR_SCOPE +#define SP_HAVE_RTTI +#define SP_HAVE_SETMODE +#undef SP_INCLUDE_UNISTD_H +#define SP_INCLUDE_IO_H +#undef SP_POSIX_FILENAMES +#define SP_MSDOS_FILENAMES +#define SP_HAVE_BOOL +#define SP_SHORT_HEADERS +#define _O_BINARY O_BINARY +#define _setmode setmode +#define SP_ANSI_CLASS_INST +#define SP_MANUAL_INST +// Building as a DLL doesn't work with Borland C++ yet. +#define SP_DLLEXPORT __declspec(dllexport) +#define SP_DLLIMPORT __declspec(dllimport) +#ifdef SP_USE_DLL +#ifndef BUILD_LIBSP +#define SP_DEFINE_TEMPLATES +#endif +#endif /* SP_USE_DLL */ +#define SP_WCHAR_T_USHORT +#endif /* __BORLANDC__ */ + +#ifdef __IBMCPP__ +// IBM CSet++ 2.1 from Horst Szillat . +#undef SP_POSIX_FILENAMES +#define SP_MANUAL_INST +#define SP_SHORT_HEADERS +#define SP_MSDOS_FILENAMES +#undef SP_INCLUDE_UNISTD_H +#define SP_INCLUDE_IO_H +#define S_IFMT (S_IFDIR|S_IFCHR|S_IFREG) +#endif + +#ifdef __xlC__ +// IBM CSet++ 3.1 on AIX 4.1. +// Use CXX=xlC and CC=xlC in the Makefile. +// Note that -g creates massive executables and that -O +// takes ages to compile and creates core dumping executables! +// I havn't tried the socket stuff. +// +#define SP_MANUAL_INST +#define SP_HAVE_LOCALE +#define SP_STAT_BLKSIZE +#endif /* __xlC__ */ + +#ifdef macintosh +// Apple MacOS. Tested only with Metrowerks CW10. +// From Ashley Colin Yakeley +#undef SP_POSIX_FILENAMES +#define SP_MAC_FILENAMES +#define SP_LINE_TERM1 '\r' + +#ifdef __MWERKS__ +// Metrowerks for some platform (MacOS in this case) + +#pragma mpwc_newline off +#define SP_DEFINE_TEMPLATES +// #define SP_USE_DLL -- __declspec doesn't work with classes (yet) +#ifdef SP_USE_DLL +#define SP_DLLEXPORT __declspec(export) +#define SP_DLLIMPORT __declspec(import) +#endif // SP_USE_DLL + +#if __MWERKS__ >= 0x1000 +// bool option only defined for CW10 and later (note __MWERKS__ is BCD) +#if __option(bool) +#define SP_HAVE_BOOL +#endif // __option(bool) +#endif // __MWERKS__ >= 0x1000 +#endif // __MWERKS__ + +#if ('\n' != 10) || ('\r' != 13) +#error "newlines incorrect" +#endif + +#endif /* macintosh */ + +#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 SP_ANSI_FOR_SCOPE +// This simulates the new ANSI "for" scope rules +#define for if (0); else for +#endif + +#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 */ + +// SP_WIDE_SYSTEM says that your OS provides wide character interfaces +// SP_WIDE_SYSTEM currently works only with Visual C++ and Windows NT/95 +// SP_WIDE_SYSTEM implies SP_MULTI_BYTE +#ifdef SP_WIDE_SYSTEM +#ifndef SP_MULTI_BYTE +#define SP_MULTI_BYTE +#endif +#endif + +#ifdef SP_NAMESPACE +#define SP_NAMESPACE_SCOPE SP_NAMESPACE:: +#else +#define SP_NAMESPACE_SCOPE +#endif + +#ifdef SP_MSDOS_FILENAMES +#define PATH_SEPARATOR ';' +#else +#define PATH_SEPARATOR ':' +#endif + + +/* new stuff */ + +#ifndef HAVE_MUTABLE +#define mutable +#endif + +// NOTE: This is processed as a Makefile, not as a header by autoconf. +#define SP_PACKAGE "OpenSP" +#define SP_VERSION "1.5.2" + +#endif /* not config_INCLUDED */ diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..12a461a --- /dev/null +++ b/config.h.in @@ -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/config.rpath b/config.rpath new file mode 100755 index 0000000..3f1bef3 --- /dev/null +++ b/config.rpath @@ -0,0 +1,571 @@ +#! /bin/sh +# Output a system dependent set of variables, describing how to set the +# run time search path of shared libraries in an executable. +# +# Copyright 1996-2005 Free Software Foundation, Inc. +# Taken from GNU libtool, 2001 +# Originally by Gordon Matzigkeit , 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# The first argument passed to this file is the canonical host specification, +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld +# should be set by the caller. +# +# The set of defined variables is at the end of this script. + +# Known limitations: +# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer +# than 256 bytes, otherwise the compiler driver will dump core. The only +# known workaround is to choose shorter directory names for the build +# directory and/or the installation directory. + +# All known linkers require a `.a' archive for static linking (except M$VC, +# which needs '.lib'). +libext=a +shrext=.so + +host="$1" +host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + +cc_basename=`echo "$CC" | sed -e 's%^.*/%%'` + +# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. + +wl= +if test "$GCC" = yes; then + wl='-Wl,' +else + case "$host_os" in + aix*) + wl='-Wl,' + ;; + darwin*) + case "$cc_basename" in + xlc*) + wl='-Wl,' + ;; + esac + ;; + mingw* | pw32* | os2*) + ;; + hpux9* | hpux10* | hpux11*) + wl='-Wl,' + ;; + irix5* | irix6* | nonstopux*) + wl='-Wl,' + ;; + newsos6) + ;; + linux*) + case $cc_basename in + icc* | ecc*) + wl='-Wl,' + ;; + pgcc | pgf77 | pgf90) + wl='-Wl,' + ;; + ccc*) + wl='-Wl,' + ;; + como) + wl='-lopt=' + ;; + esac + ;; + osf3* | osf4* | osf5*) + wl='-Wl,' + ;; + sco3.2v5*) + ;; + solaris*) + wl='-Wl,' + ;; + sunos4*) + wl='-Qoption ld ' + ;; + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + wl='-Wl,' + ;; + sysv4*MP*) + ;; + unicos*) + wl='-Wl,' + ;; + uts4*) + ;; + esac +fi + +# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. + +hardcode_libdir_flag_spec= +hardcode_libdir_separator= +hardcode_direct=no +hardcode_minus_L=no + +case "$host_os" in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + openbsd*) + with_gnu_ld=no + ;; +esac + +ld_shlibs=yes +if test "$with_gnu_ld" = yes; then + case "$host_os" in + aix3* | aix4* | aix5*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + fi + ;; + amigaos*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we cannot use + # them. + ld_shlibs=no + ;; + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + cygwin* | mingw* | pw32*) + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + netbsd*) + ;; + solaris* | sysv5*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + sunos4*) + hardcode_direct=yes + ;; + linux*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + esac + if test "$ld_shlibs" = yes; then + # Unlike libtool, we use -rpath here, not --rpath, since the documented + # option of GNU ld is called -rpath, not --rpath. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + fi +else + case "$host_os" in + aix3*) + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + else + aix_use_runtimelinking=no + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix5*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + esac + fi + hardcode_direct=yes + hardcode_libdir_separator=':' + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct=yes + else + # We have old collect2 + hardcode_direct=unsupported + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + esac + fi + # Begin _LT_AC_SYS_LIBPATH_AIX. + echo 'int main () { return 0; }' > conftest.c + ${CC} ${LDFLAGS} conftest.c -o conftest + aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` + if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` + fi + if test -z "$aix_libpath"; then + aix_libpath="/usr/lib:/lib" + fi + rm -f conftest.c conftest + # End _LT_AC_SYS_LIBPATH_AIX. + if test "$aix_use_runtimelinking" = yes; then + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + else + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + fi + fi + ;; + amigaos*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + bsdi[45]*) + ;; + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + libext=lib + ;; + darwin* | rhapsody*) + hardcode_direct=no + if test "$GCC" = yes ; then + : + else + case "$cc_basename" in + xlc*) + ;; + *) + ld_shlibs=no + ;; + esac + fi + ;; + dgux*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + freebsd1*) + ld_shlibs=no + ;; + freebsd2.2*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + freebsd2*) + hardcode_direct=yes + hardcode_minus_L=yes + ;; + freebsd* | kfreebsd*-gnu | dragonfly*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + hpux9*) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + hpux10* | hpux11*) + if test "$with_gnu_ld" = no; then + case "$host_cpu" in + hppa*64*) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=no + ;; + ia64*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=no + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + *) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + irix5* | irix6* | nonstopux*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + netbsd*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + newsos6) + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + openbsd*) + hardcode_direct=yes + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + else + case "$host_os" in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + osf3*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + osf4* | osf5*) + if test "$GCC" = yes; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + # Both cc and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + sco3.2v5*) + ;; + solaris*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + sunos4*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + ;; + sysv4) + case $host_vendor in + sni) + hardcode_direct=yes # is this really true??? + ;; + siemens) + hardcode_direct=no + ;; + motorola) + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + ;; + sysv4.3*) + ;; + sysv4*MP*) + if test -d /usr/nec; then + ld_shlibs=yes + fi + ;; + sysv4.2uw2*) + hardcode_direct=yes + hardcode_minus_L=no + ;; + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) + ;; + sysv5*) + hardcode_libdir_flag_spec= + ;; + uts4*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + *) + ld_shlibs=no + ;; + esac +fi + +# Check dynamic linker characteristics +# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. +libname_spec='lib$name' +case "$host_os" in + aix3*) + ;; + aix4* | aix5*) + ;; + amigaos*) + ;; + beos*) + ;; + bsdi[45]*) + ;; + cygwin* | mingw* | pw32*) + shrext=.dll + ;; + darwin* | rhapsody*) + shrext=.dylib + ;; + dgux*) + ;; + freebsd1*) + ;; + kfreebsd*-gnu) + ;; + freebsd*) + ;; + gnu*) + ;; + hpux9* | hpux10* | hpux11*) + case "$host_cpu" in + ia64*) + shrext=.so + ;; + hppa*64*) + shrext=.sl + ;; + *) + shrext=.sl + ;; + esac + ;; + irix5* | irix6* | nonstopux*) + case "$host_os" in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; + *) libsuff= shlibsuff= ;; + esac + ;; + esac + ;; + linux*oldld* | linux*aout* | linux*coff*) + ;; + linux*) + ;; + knetbsd*-gnu) + ;; + netbsd*) + ;; + newsos6) + ;; + nto-qnx*) + ;; + openbsd*) + ;; + os2*) + libname_spec='$name' + shrext=.dll + ;; + osf3* | osf4* | osf5*) + ;; + sco3.2v5*) + ;; + solaris*) + ;; + sunos4*) + ;; + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + ;; + sysv4*MP*) + ;; + uts4*) + ;; +esac + +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` +shlibext=`echo "$shrext" | sed -e 's,^\.,,'` +escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` + +LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <. Submit a context +# diff and a properly formatted ChangeLog entry. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ + kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray) + os= + basic_machine=$1 + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | bfin \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64vr | mips64vrel \ + | mips64orion | mips64orionel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | ms1 \ + | msp430 \ + | ns16k | ns32k \ + | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b \ + | strongarm \ + | tahoe | thumb | tic4x | tic80 | tron \ + | v850 | v850e \ + | we32k \ + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ + | z8k) + basic_machine=$basic_machine-unknown + ;; + m32c) + basic_machine=$basic_machine-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12) + # Motorola 68HC11/12. + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | ms1-* \ + | msp430-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tron-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa-* \ + | ymp-* \ + | z8k-*) + ;; + m32c-*) + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16c) + basic_machine=cr16c-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tic54x | c54x*) + basic_machine=tic54x-unknown + os=-coff + ;; + tic55x | c55x*) + basic_machine=tic55x-unknown + os=-coff + ;; + tic6x | c6x*) + basic_machine=tic6x-unknown + os=-coff + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -kaos*) + os=-kaos + ;; + -zvmoe) + os=-zvmoe + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + m68*-cisco) + os=-aout + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/configure b/configure new file mode 100755 index 0000000..caa2d31 --- /dev/null +++ b/configure @@ -0,0 +1,33865 @@ +#! /bin/sh +# From configure.in Id: configure.in,v 1.29.2.41 2005/12/16 08:12:19 tbe Exp . +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.59. +# +# Copyright (C) 2003 Free Software Foundation, Inc. +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi +DUALCASE=1; export DUALCASE # for MKS sh + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# Work around bugs in pre-3.0 UWIN ksh. +$as_unset ENV MAIL MAILPATH +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + $as_unset $as_var + fi +done + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + + +# Name of the executable. +as_me=`$as_basename "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)$' \| \ + . : '\(.\)' 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } + /^X\/\(\/\/\)$/{ s//\1/; q; } + /^X\/\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + + +# PATH needs CR, and LINENO needs CR and PATH. +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" || { + # Find who we are. Look in the path if we contain no path at all + # relative or not. + case $0 in + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +done + + ;; + esac + # We did not find ourselves, most probably we were run as `sh COMMAND' + # in which case we are not to be found in the path. + if test "x$as_myself" = x; then + as_myself=$0 + fi + if test ! -f "$as_myself"; then + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 + { (exit 1); exit 1; }; } + fi + case $CONFIG_SHELL in + '') + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for as_base in sh bash ksh sh5; do + case $as_dir in + /*) + if ("$as_dir/$as_base" -c ' + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } + CONFIG_SHELL=$as_dir/$as_base + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$0" ${1+"$@"} + fi;; + esac + done +done +;; + esac + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line before each line; the second 'sed' does the real + # work. The second script uses 'N' to pair each line-number line + # with the numbered line, and appends trailing '-' during + # substitution so that $LINENO is not a special case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) + sed '=' <$as_myself | + sed ' + N + s,$,-, + : loop + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, + t loop + s,-$,, + s,^['$as_cr_digits']*\n,, + ' >$as_me.lineno && + chmod +x $as_me.lineno || + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensible to this). + . ./$as_me.lineno + # Exit status is that of the last command. + exit +} + + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_executable_p="test -f" + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH + + + +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` + ;; +esac + +echo=${ECHO-echo} +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "$0" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null 2>&1 && unset CDPATH + +if test -z "$ECHO"; then +if test "X${echo_test_string+set}" != Xset; then +# find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if (echo_test_string=`eval $cmd`) 2>/dev/null && + echo_test_string=`eval $cmd` && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL $0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL $0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "$0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" +fi + + + + +tagnames=${tagnames+${tagnames},}CXX + +tagnames=${tagnames+${tagnames},}F77 + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +exec 6>&1 + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_config_libobj_dir=. +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Maximum number of lines to put in a shell here document. +# This variable seems obsolete. It should probably be removed, and +# only ac_max_sed_lines should be used. +: ${ac_max_here_lines=38} + +# Identity of this package. +PACKAGE_NAME= +PACKAGE_TARNAME= +PACKAGE_VERSION= +PACKAGE_STRING= +PACKAGE_BUGREPORT= + +ac_unique_file="pubtext" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_SYS_STAT_H +# include +#endif +#if STDC_HEADERS +# include +# include +#else +# if HAVE_STDLIB_H +# include +# endif +#endif +#if HAVE_STRING_H +# if !STDC_HEADERS && HAVE_MEMORY_H +# include +# endif +# include +#endif +#if HAVE_STRINGS_H +# include +#endif +#if HAVE_INTTYPES_H +# include +#else +# if HAVE_STDINT_H +# include +# endif +#endif +#if HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SP_LIBOSP_CUR SP_LIBOSP_REV SP_LIBOSP_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LN_S PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC2 ALLOCA GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB SP_MESSAGE_DOMAIN LIBOBJS DTDDECL_TRUE DTDDECL_FALSE XMLTO DOCSRC PDF2PS JADE JADETEX PDFJADETEX EXTRADOCS LTLIBOBJS' +ac_subst_files='' + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +ac_prev= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_option in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + eval "enable_$ac_feature=no" ;; + + -enable-* | --enable-*) + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=yes ;; + esac + eval "enable_$ac_feature='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package| sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=yes ;; + esac + eval "with_$ac_package='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/-/_/g'` + eval "with_$ac_package=no" ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute paths. +for ac_var in exec_prefix prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +# Be sure to have absolute paths. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ + localstatedir libdir includedir oldincludedir infodir mandir +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_confdir=`(dirname "$0") 2>/dev/null || +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$0" : 'X\(//\)[^/]' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$0" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 + { (exit 1); exit 1; }; } + else + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 + { (exit 1); exit 1; }; } + fi +fi +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 + { (exit 1); exit 1; }; } +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` +ac_env_build_alias_set=${build_alias+set} +ac_env_build_alias_value=$build_alias +ac_cv_env_build_alias_set=${build_alias+set} +ac_cv_env_build_alias_value=$build_alias +ac_env_host_alias_set=${host_alias+set} +ac_env_host_alias_value=$host_alias +ac_cv_env_host_alias_set=${host_alias+set} +ac_cv_env_host_alias_value=$host_alias +ac_env_target_alias_set=${target_alias+set} +ac_env_target_alias_value=$target_alias +ac_cv_env_target_alias_set=${target_alias+set} +ac_cv_env_target_alias_value=$target_alias +ac_env_CC_set=${CC+set} +ac_env_CC_value=$CC +ac_cv_env_CC_set=${CC+set} +ac_cv_env_CC_value=$CC +ac_env_CFLAGS_set=${CFLAGS+set} +ac_env_CFLAGS_value=$CFLAGS +ac_cv_env_CFLAGS_set=${CFLAGS+set} +ac_cv_env_CFLAGS_value=$CFLAGS +ac_env_LDFLAGS_set=${LDFLAGS+set} +ac_env_LDFLAGS_value=$LDFLAGS +ac_cv_env_LDFLAGS_set=${LDFLAGS+set} +ac_cv_env_LDFLAGS_value=$LDFLAGS +ac_env_CPPFLAGS_set=${CPPFLAGS+set} +ac_env_CPPFLAGS_value=$CPPFLAGS +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} +ac_cv_env_CPPFLAGS_value=$CPPFLAGS +ac_env_CPP_set=${CPP+set} +ac_env_CPP_value=$CPP +ac_cv_env_CPP_set=${CPP+set} +ac_cv_env_CPP_value=$CPP +ac_env_CXX_set=${CXX+set} +ac_env_CXX_value=$CXX +ac_cv_env_CXX_set=${CXX+set} +ac_cv_env_CXX_value=$CXX +ac_env_CXXFLAGS_set=${CXXFLAGS+set} +ac_env_CXXFLAGS_value=$CXXFLAGS +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} +ac_cv_env_CXXFLAGS_value=$CXXFLAGS +ac_env_CXXCPP_set=${CXXCPP+set} +ac_env_CXXCPP_value=$CXXCPP +ac_cv_env_CXXCPP_set=${CXXCPP+set} +ac_cv_env_CXXCPP_value=$CXXCPP +ac_env_F77_set=${F77+set} +ac_env_F77_value=$F77 +ac_cv_env_F77_set=${F77+set} +ac_cv_env_F77_value=$F77 +ac_env_FFLAGS_set=${FFLAGS+set} +ac_env_FFLAGS_value=$FFLAGS +ac_cv_env_FFLAGS_set=${FFLAGS+set} +ac_cv_env_FFLAGS_value=$FFLAGS + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures this package to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +_ACEOF + + cat <<_ACEOF +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data [PREFIX/share] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --infodir=DIR info documentation [PREFIX/info] + --mandir=DIR man documentation [PREFIX/man] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + + cat <<\_ACEOF + +Optional Features: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-maintainer-mode enable make rules and dependencies not useful + (and sometimes confusing) to the casual installer + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --enable-shared[=PKGS] + build shared libraries [default=yes] + --enable-static[=PKGS] + build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-libtool-lock avoid locking (might break parallel builds) + --disable-nls do not use Native Language Support + --disable-rpath do not hardcode runtime library paths + --enable-http include support for http + --enable-default-catalog=pathlist + provide one or more default catalog files or + sysids, e.g. /usr/local/lib/sgml/catalog + --enable-default-search-path=pathlist + provide a default value for SGML_SEARCH_PATH + --enable-xml-messages include support for XML Formatted Messages + --disable-dtddecl disable support for DTDDECL catalog entries + --disable-doc-build do not build docs from source + --enable-full-doc-build build all docs from source + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-tags[=TAGS] + include additional configurations [automatic] + --with-gnu-ld assume the C compiler uses GNU ld default=no + --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib + --without-libiconv-prefix don't search for libiconv in includedir and libdir + --with-included-gettext use the GNU gettext library included here + --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib + --without-libintl-prefix don't search for libintl in includedir and libdir + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have + headers in a nonstandard directory + CPP C preprocessor + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor + F77 Fortran 77 compiler command + FFLAGS Fortran 77 compiler flags + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +_ACEOF +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + ac_popdir=`pwd` + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d $ac_dir || continue + ac_builddir=. + +if test "$ac_dir" != .; then + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix= ac_top_builddir= +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_builddir$srcdir ;; +esac + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; +*) + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_builddir=${ac_top_builddir}.;; +*) + case ${ac_top_builddir}. in + .) ac_abs_top_builddir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_srcdir=$ac_srcdir;; +*) + case $ac_srcdir in + .) ac_abs_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_srcdir=$ac_top_srcdir;; +*) + case $ac_top_srcdir in + .) ac_abs_top_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; + esac;; +esac + + cd $ac_dir + # Check for guested configure; otherwise get Cygnus style configure. + if test -f $ac_srcdir/configure.gnu; then + echo + $SHELL $ac_srcdir/configure.gnu --help=recursive + elif test -f $ac_srcdir/configure; then + echo + $SHELL $ac_srcdir/configure --help=recursive + elif test -f $ac_srcdir/configure.ac || + test -f $ac_srcdir/configure.in; then + echo + $ac_configure --help + else + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi + cd $ac_popdir + done +fi + +test -n "$ac_init_help" && exit 0 +if $ac_init_version; then + cat <<\_ACEOF + +Copyright (C) 2003 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit 0 +fi +exec 5>config.log +cat >&5 <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by $as_me, which was +generated by GNU Autoconf 2.59. Invocation command line was + + $ $0 $@ + +_ACEOF +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +hostinfo = `(hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + echo "PATH: $as_dir" +done + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_sep= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 2) + ac_configure_args1="$ac_configure_args1 '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" + # Get rid of the leading space. + ac_sep=" " + ;; + esac + done +done +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Be sure not to use single quotes in there, as some shells, +# such as our DU 5.0 friend, will then `close' the trap. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +{ + (set) 2>&1 | + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in + *ac_space=\ *) + sed -n \ + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" + ;; + *) + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} + echo + + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=$`echo $ac_var` + echo "$ac_var='"'"'$ac_val'"'"'" + done | sort + echo + + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------- ## +## Output files. ## +## ------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=$`echo $ac_var` + echo "$ac_var='"'"'$ac_val'"'"'" + done | sort + echo + fi + + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + sed "/^$/d" confdefs.h | sort + echo + fi + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" + echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core && + rm -rf conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status + ' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo >confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special + # files actually), so we avoid doing that. + if test -f "$cache_file"; then + { echo "$as_me:$LINENO: loading cache $cache_file" >&5 +echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . $cache_file;; + *) . ./$cache_file;; + esac + fi +else + { echo "$as_me:$LINENO: creating cache $cache_file" >&5 +echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in `(set) 2>&1 | + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val="\$ac_cv_env_${ac_var}_value" + eval ac_new_val="\$ac_env_${ac_var}_value" + case $ac_old_set,$ac_new_set in + set,) + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 +echo "$as_me: former value: $ac_old_val" >&2;} + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 +echo "$as_me: current value: $ac_new_val" >&2;} + ac_cache_corrupted=: + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 +echo "$as_me: error: changes in the environment can compromise the build" >&2;} + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} + { (exit 1); exit 1; }; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + + + + + + + + + + + + + + + +am__api_version="1.9" +ac_aux_dir= +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f $ac_dir/shtool; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} + { (exit 1); exit 1; }; } +fi +ac_config_guess="$SHELL $ac_aux_dir/config.guess" +ac_config_sub="$SHELL $ac_aux_dir/config.sub" +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in + ./ | .// | /cC/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac +done + + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=$ac_install_sh + fi +fi +echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +echo "$as_me:$LINENO: checking whether build environment is sane" >&5 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&5 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&2;} + { (exit 1); exit 1; }; } + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! +Check your system clock" >&5 +echo "$as_me: error: newly created file is older than distributed files! +Check your system clock" >&2;} + { (exit 1); exit 1; }; } +fi +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +test "$program_prefix" != NONE && + program_transform_name="s,^,$program_prefix,;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s,\$,$program_suffix,;$program_transform_name" +# Double any \ or $. echo might interpret backslashes. +# By default was `s,x,x', remove it if useless. +cat <<\_ACEOF >conftest.sed +s/[\\$]/&&/g;s/;s,x,x,$// +_ACEOF +program_transform_name=`echo $program_transform_name | sed -f conftest.sed` +rm conftest.sed + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then + # We used to keeping the `.' as first argument, in order to + # allow $(mkdir_p) to be used without argument. As in + # $(mkdir_p) $(somedir) + # where $(somedir) is conditionally defined. However this is wrong + # for two reasons: + # 1. if the package is installed by a user who cannot write `.' + # make install will fail, + # 2. the above comment should most certainly read + # $(mkdir_p) $(DESTDIR)$(somedir) + # so it does not work when $(somedir) is undefined and + # $(DESTDIR) is not. + # To support the latter case, we have to write + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), + # so the `.' trick is pointless. + mkdir_p='mkdir -p --' +else + # On NextStep and OpenStep, the `mkdir' command does not + # recognize any option. It will interpret all options as + # directories to create, and then abort because `.' already + # exists. + for d in ./-p ./--version; + do + test -d $d && rmdir $d + done + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. + if test -f "$ac_aux_dir/mkinstalldirs"; then + mkdir_p='$(mkinstalldirs)' + else + mkdir_p='$(install_sh) -d' + fi +fi + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_AWK+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + echo "$as_me:$LINENO: result: $AWK" >&5 +echo "${ECHO_T}$AWK" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$AWK" && break +done + +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.make <<\_ACEOF +all: + @echo 'ac_maketemp="$(MAKE)"' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftest.make +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + SET_MAKE= +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +# test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && + test -f $srcdir/config.status; then + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} + { (exit 1); exit 1; }; } +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE=OpenSP + VERSION=1.5.2 + + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +install_sh=${install_sh-"$am_aux_dir/install-sh"} + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + echo "$as_me:$LINENO: result: $STRIP" >&5 +echo "${ECHO_T}$STRIP" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 +echo "${ECHO_T}$ac_ct_STRIP" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + STRIP=$ac_ct_STRIP +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + + + + + +echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 + # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. +if test "${enable_maintainer_mode+set}" = set; then + enableval="$enable_maintainer_mode" + USE_MAINTAINER_MODE=$enableval +else + USE_MAINTAINER_MODE=no +fi; + echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 + + +if test $USE_MAINTAINER_MODE = yes; then + MAINTAINER_MODE_TRUE= + MAINTAINER_MODE_FALSE='#' +else + MAINTAINER_MODE_TRUE='#' + MAINTAINER_MODE_FALSE= +fi + + MAINT=$MAINTAINER_MODE_TRUE + + + + ac_config_headers="$ac_config_headers config.h" + +echo "$as_me:$LINENO: checking whether build environment is sane" >&5 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&5 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&2;} + { (exit 1); exit 1; }; } + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! +Check your system clock" >&5 +echo "$as_me: error: newly created file is older than distributed files! +Check your system clock" >&2;} + { (exit 1); exit 1; }; } +fi +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + + + + + + + + + + + + + + + + + + + + + + + +cat >>confdefs.h <<\_ACEOF +#define SP_MULTI_BYTE 1 +_ACEOF + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +cat >>confdefs.h <<_ACEOF +#define SP_PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define SP_VERSION "$VERSION" +_ACEOF + + +SP_LIBOSP_CUR=5 + +SP_LIBOSP_REV=0 + +SP_LIBOSP_AGE=0 + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + CC=$ac_ct_CC +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="cc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + CC=$ac_ct_CC +else + CC="$ac_cv_prog_CC" +fi + +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$ac_ct_CC" && break +done + + CC=$ac_ct_CC +fi + +fi + + +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH +See \`config.log' for more details." >&5 +echo "$as_me: error: no acceptable C compiler found in \$PATH +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } + +# Provide some information about the compiler. +echo "$as_me:$LINENO:" \ + "checking for C compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 + (eval $ac_link_default) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # Find the output, starting from the most likely. This scheme is +# not robust to junk in `.', hence go to wildcards (a.*) only as a last +# resort. + +# Be careful to initialize this variable, since it used to be cached. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. +ac_cv_exeext= +# b.out is created by i960 compilers. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) + ;; + conftest.$ac_ext ) + # This is the source file. + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + # FIXME: I believe we export ac_cv_exeext for Libtool, + # but it would be cool to find out if it's true. Does anybody + # maintain Libtool? --akim. + export ac_cv_exeext + break;; + * ) + break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables +See \`config.log' for more details." >&5 +echo "$as_me: error: C compiler cannot create executables +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } +fi + +ac_exeext=$ac_cv_exeext +echo "$as_me:$LINENO: result: $ac_file" >&5 +echo "${ECHO_T}$ac_file" >&6 + +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 +# If not cross compiling, check that we can run a simple program. +if test "$cross_compiling" != yes; then + if { ac_try='./$ac_file' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { echo "$as_me:$LINENO: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } + fi + fi +fi +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +rm -f a.out a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 +echo "$as_me:$LINENO: result: $cross_compiling" >&5 +echo "${ECHO_T}$cross_compiling" >&6 + +echo "$as_me:$LINENO: checking for suffix of executables" >&5 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + export ac_cv_exeext + break;; + * ) break;; + esac +done +else + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest$ac_cv_exeext +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 +echo "${ECHO_T}$ac_cv_exeext" >&6 + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +echo "$as_me:$LINENO: checking for suffix of object files" >&5 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 +if test "${ac_cv_objext+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute suffix of object files: cannot compile +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 +echo "${ECHO_T}$ac_cv_objext" >&6 +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 +if test "${ac_cv_c_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_compiler_gnu=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 +GCC=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +CFLAGS="-g" +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_cc_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_cc_g=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_prog_cc_g=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 +if test "${ac_cv_prog_cc_stdc+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_prog_cc_stdc=no +ac_save_CC=$CC +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std1 is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std1. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +# Don't try gcc -ansi; that turns off useful extensions and +# breaks some systems' header files. +# AIX -qlanglvl=ansi +# Ultrix and OSF/1 -std1 +# HP-UX 10.20 and later -Ae +# HP-UX older versions -Aa -D_HPUX_SOURCE +# SVR4 -Xc -D__EXTENSIONS__ +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_cc_stdc=$ac_arg +break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext +done +rm -f conftest.$ac_ext conftest.$ac_objext +CC=$ac_save_CC + +fi + +case "x$ac_cv_prog_cc_stdc" in + x|xno) + echo "$as_me:$LINENO: result: none needed" >&5 +echo "${ECHO_T}none needed" >&6 ;; + *) + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 + CC="$CC $ac_cv_prog_cc_stdc" ;; +esac + +# Some people use a C++ compiler to compile C. Since we use `exit', +# in C++ we need to declare it. In case someone uses the same compiler +# for both compiling C and C++ we need to have the C++ compiler decide +# the declaration of exit, since it's the most demanding environment. +cat >conftest.$ac_ext <<_ACEOF +#ifndef __cplusplus + choke me +#endif +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + for ac_declaration in \ + '' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' +do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_declaration +#include +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +continue +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_declaration +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +rm -f conftest* +if test -n "$ac_declaration"; then + echo '#ifdef __cplusplus' >>confdefs.h + echo $ac_declaration >>confdefs.h + echo '#endif' >>confdefs.h +fi + +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +DEPDIR="${am__leading_dot}deps" + + ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo done +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then + am__include=include + am__quote= + _am_result=GNU +fi +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then + am__include=.include + am__quote="\"" + _am_result=BSD + fi +fi + + +echo "$as_me:$LINENO: result: $_am_result" >&5 +echo "${ECHO_T}$_am_result" >&6 +rm -f confinc confmf + +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then + enableval="$enable_dependency_tracking" + +fi; +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi + + +if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + + +depcc="$CC" am_compiler_list= + +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + + +if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +echo "$as_me:$LINENO: result: $CPP" >&5 +echo "${ECHO_T}$CPP" >&6 +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + : +else + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." >&5 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + echo "$as_me:$LINENO: result: $CXX" >&5 +echo "${ECHO_T}$CXX" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 +echo "${ECHO_T}$ac_ct_CXX" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$ac_ct_CXX" && break +done +test -n "$ac_ct_CXX" || ac_ct_CXX="g++" + + CXX=$ac_ct_CXX +fi + + +# Provide some information about the compiler. +echo "$as_me:$LINENO:" \ + "checking for C++ compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_compiler_gnu=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 +GXX=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +CXXFLAGS="-g" +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_cxx_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_cxx_g=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_prog_cxx_g=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +for ac_declaration in \ + '' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' +do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_declaration +#include +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +continue +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_declaration +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +rm -f conftest* +if test -n "$ac_declaration"; then + echo '#ifdef __cplusplus' >>confdefs.h + echo $ac_declaration >>confdefs.h + echo '#endif' >>confdefs.h +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CXX" am_compiler_list= + +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + + +if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 +if test -z "$CXXCPP"; then + if test "${ac_cv_prog_CXXCPP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +echo "$as_me:$LINENO: result: $CXXCPP" >&5 +echo "${ECHO_T}$CXXCPP" >&6 +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + : +else + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details." >&5 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in + ./ | .// | /cC/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac +done + + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=$ac_install_sh + fi +fi +echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +echo "$as_me:$LINENO: checking whether ln -s works" >&5 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else + echo "$as_me:$LINENO: result: no, using $LN_S" >&5 +echo "${ECHO_T}no, using $LN_S" >&6 +fi + +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.make <<\_ACEOF +all: + @echo 'ac_maketemp="$(MAKE)"' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftest.make +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + SET_MAKE= +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + +for ac_prog in perl +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_PERL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + ;; +esac +fi +PERL=$ac_cv_path_PERL + +if test -n "$PERL"; then + echo "$as_me:$LINENO: result: $PERL" >&5 +echo "${ECHO_T}$PERL" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$PERL" && break +done +test -n "$PERL" || PERL="perl" + +# Check whether --enable-shared or --disable-shared was given. +if test "${enable_shared+set}" = set; then + enableval="$enable_shared" + p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi; + +# Check whether --enable-static or --disable-static was given. +if test "${enable_static+set}" = set; then + enableval="$enable_static" + p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi; + +# Check whether --enable-fast-install or --disable-fast-install was given. +if test "${enable_fast_install+set}" = set; then + enableval="$enable_fast_install" + p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi; + +# Make sure we can run config.sub. +$ac_config_sub sun4 >/dev/null 2>&1 || + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 +echo "$as_me: error: cannot run $ac_config_sub" >&2;} + { (exit 1); exit 1; }; } + +echo "$as_me:$LINENO: checking build system type" >&5 +echo $ECHO_N "checking build system type... $ECHO_C" >&6 +if test "${ac_cv_build+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_build_alias=$build_alias +test -z "$ac_cv_build_alias" && + ac_cv_build_alias=`$ac_config_guess` +test -z "$ac_cv_build_alias" && + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;} + { (exit 1); exit 1; }; } +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +echo "$as_me:$LINENO: result: $ac_cv_build" >&5 +echo "${ECHO_T}$ac_cv_build" >&6 +build=$ac_cv_build +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + + +echo "$as_me:$LINENO: checking host system type" >&5 +echo $ECHO_N "checking host system type... $ECHO_C" >&6 +if test "${ac_cv_host+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_host_alias=$host_alias +test -z "$ac_cv_host_alias" && + ac_cv_host_alias=$ac_cv_build_alias +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +echo "$as_me:$LINENO: result: $ac_cv_host" >&5 +echo "${ECHO_T}$ac_cv_host" >&6 +host=$ac_cv_host +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + + +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 +if test "${lt_cv_path_SED+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done + +fi + +SED=$lt_cv_path_SED +echo "$as_me:$LINENO: result: $SED" >&5 +echo "${ECHO_T}$SED" >&6 + +echo "$as_me:$LINENO: checking for egrep" >&5 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6 +if test "${ac_cv_prog_egrep+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if echo a | (grep -E '(a|b)') >/dev/null 2>&1 + then ac_cv_prog_egrep='grep -E' + else ac_cv_prog_egrep='egrep' + fi +fi +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6 + EGREP=$ac_cv_prog_egrep + + + +# Check whether --with-gnu-ld or --without-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then + withval="$with_gnu_ld" + test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi; +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + echo "$as_me:$LINENO: checking for ld used by $CC" >&5 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + echo "$as_me:$LINENO: checking for GNU ld" >&5 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 +else + echo "$as_me:$LINENO: checking for non-GNU ld" >&5 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 +fi +if test "${lt_cv_path_LD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +echo "${ECHO_T}$LD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} + { (exit 1); exit 1; }; } +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 +if test "${lt_cv_prog_gnu_ld+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 +with_gnu_ld=$lt_cv_prog_gnu_ld + + +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 +if test "${lt_cv_ld_reload_flag+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_ld_reload_flag='-r' +fi +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + darwin*) + if test "$GCC" = yes; then + reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 +if test "${lt_cv_path_NM+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/${ac_tool_prefix}nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + esac + fi + done + IFS="$lt_save_ifs" + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi +fi +echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 +echo "${ECHO_T}$lt_cv_path_NM" >&6 +NM="$lt_cv_path_NM" + +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 +if test "${lt_cv_deplibs_check_method+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix4* | aix5*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump'. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | kfreebsd*-gnu | dragonfly*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +nto-qnx*) + lt_cv_deplibs_check_method=unknown + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +sco3.2v5*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check whether --enable-libtool-lock or --disable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then + enableval="$enable_libtool_lock" + +fi; +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line 4898 "configure"' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 +if test "${lt_cv_cc_needs_belf+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + lt_cv_cc_needs_belf=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +lt_cv_cc_needs_belf=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; + +esac + +need_locks="$enable_libtool_lock" + + + +echo "$as_me:$LINENO: checking for ANSI C header files" >&5 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 +if test "${ac_cv_header_stdc+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_header_stdc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_header_stdc=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then + : +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then + : +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then + : +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + exit(2); + exit (0); +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +ac_cv_header_stdc=no +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 +echo "${ECHO_T}$ac_cv_header_stdc" >&6 +if test $ac_cv_header_stdc = yes; then + +cat >>confdefs.h <<\_ACEOF +#define STDC_HEADERS 1 +_ACEOF + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. + + + + + + + + + +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_Header=no" +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + +for ac_header in dlfcn.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ------------------------------------------ ## +## Report this to the AC_PACKAGE_NAME lists. ## +## ------------------------------------------ ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 +if test -z "$CXXCPP"; then + if test "${ac_cv_prog_CXXCPP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +echo "$as_me:$LINENO: result: $CXXCPP" >&5 +echo "${ECHO_T}$CXXCPP" >&6 +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + : +else + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details." >&5 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi + + +ac_ext=f +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_f77_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_F77+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$F77"; then + ac_cv_prog_F77="$F77" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_F77="$ac_tool_prefix$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +F77=$ac_cv_prog_F77 +if test -n "$F77"; then + echo "$as_me:$LINENO: result: $F77" >&5 +echo "${ECHO_T}$F77" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$F77" && break + done +fi +if test -z "$F77"; then + ac_ct_F77=$F77 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_F77"; then + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_F77="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_F77=$ac_cv_prog_ac_ct_F77 +if test -n "$ac_ct_F77"; then + echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 +echo "${ECHO_T}$ac_ct_F77" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$ac_ct_F77" && break +done + + F77=$ac_ct_F77 +fi + + +# Provide some information about the compiler. +echo "$as_me:5779:" \ + "checking for Fortran 77 compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +rm -f a.out + +# If we don't use `.F' as extension, the preprocessor is not run on the +# input file. (Note that this only needs to work for GNU compilers.) +ac_save_ext=$ac_ext +ac_ext=F +echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 +if test "${ac_cv_f77_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF + program main +#ifndef __GNUC__ + choke me +#endif + + end +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_f77_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_compiler_gnu=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_f77_compiler_gnu=$ac_compiler_gnu + +fi +echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 +ac_ext=$ac_save_ext +ac_test_FFLAGS=${FFLAGS+set} +ac_save_FFLAGS=$FFLAGS +FFLAGS= +echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_f77_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + FFLAGS=-g +cat >conftest.$ac_ext <<_ACEOF + program main + + end +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_f77_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_f77_g=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_prog_f77_g=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 +if test "$ac_test_FFLAGS" = set; then + FFLAGS=$ac_save_FFLAGS +elif test $ac_cv_prog_f77_g = yes; then + if test "x$ac_cv_f77_compiler_gnu" = xyes; then + FFLAGS="-g -O2" + else + FFLAGS="-g" + fi +else + if test "x$ac_cv_f77_compiler_gnu" = xyes; then + FFLAGS="-O2" + else + FFLAGS= + fi +fi + +G77=`test $ac_compiler_gnu = yes && echo yes` +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! + +# find the maximum length of command line arguments +echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 +if test "${lt_cv_sys_max_cmd_len+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + *) + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ + = "XX$teststring") >/dev/null 2>&1 && + new_result=`expr "X$teststring" : ".*" 2>&1` && + lt_cv_sys_max_cmd_len=$new_result && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + teststring= + # Add a significant safety factor because C++ compilers can tack on massive + # amounts of additional arguments before passing them to the linker. + # It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 +else + echo "$as_me:$LINENO: result: none" >&5 +echo "${ECHO_T}none" >&6 +fi + + + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32*) + symcode='[ABCDGISTW]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +linux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDGIRSTW]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris* | sysv5*) + symcode='[BDRT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -f conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + echo "$as_me:$LINENO: result: failed" >&5 +echo "${ECHO_T}failed" >&6 +else + echo "$as_me:$LINENO: result: ok" >&5 +echo "${ECHO_T}ok" >&6 +fi + +echo "$as_me:$LINENO: checking for objdir" >&5 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6 +if test "${lt_cv_objdir+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 +echo "${ECHO_T}$lt_cv_objdir" >&6 +objdir=$lt_cv_objdir + + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_AR+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + echo "$as_me:$LINENO: result: $AR" >&5 +echo "${ECHO_T}$AR" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="ar" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 +echo "${ECHO_T}$ac_ct_AR" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + AR=$ac_ct_AR +else + AR="$ac_cv_prog_AR" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + echo "$as_me:$LINENO: result: $RANLIB" >&5 +echo "${ECHO_T}$RANLIB" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 +echo "${ECHO_T}$ac_ct_RANLIB" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + RANLIB=$ac_ct_RANLIB +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + echo "$as_me:$LINENO: result: $STRIP" >&5 +echo "${ECHO_T}$STRIP" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 +echo "${ECHO_T}$ac_ct_STRIP" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + STRIP=$ac_ct_STRIP +else + STRIP="$ac_cv_prog_STRIP" +fi + + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$SED" && SED=sed +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" + ;; + *) + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 +echo "${ECHO_T}$MAGIC_CMD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + echo "$as_me:$LINENO: checking for file" >&5 +echo $ECHO_N "checking for file... $ECHO_C" >&6 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 +echo "${ECHO_T}$MAGIC_CMD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +enable_dlopen=no +enable_win32_dll=no + +# Check whether --enable-libtool-lock or --disable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then + enableval="$enable_libtool_lock" + +fi; +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + + +# Check whether --with-pic or --without-pic was given. +if test "${with_pic+set}" = set; then + withval="$with_pic" + pic_mode="$withval" +else + pic_mode=default +fi; +test -z "$pic_mode" && pic_mode=default + +# Use C for the default configuration in the libtool script +tagname= +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}\n' + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* + + +# +# Check for any special shared library compilation flags. +# +lt_prog_cc_shlib= +if test "$GCC" = no; then + case $host_os in + sco3.2v5*) + lt_prog_cc_shlib='-belf' + ;; + esac +fi +if test -n "$lt_prog_cc_shlib"; then + { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 +echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} + if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : + else + { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 +echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} + lt_cv_prog_cc_can_build_shared=no + fi +fi + + +# +# Check to make sure the static flag actually works. +# +echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 +echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 +if test "${lt_prog_compiler_static_works+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_prog_compiler_static" + printf "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_prog_compiler_static_works=yes + fi + else + lt_prog_compiler_static_works=yes + fi + fi + $rm conftest* + LDFLAGS="$save_LDFLAGS" + +fi +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 + +if test x"$lt_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + lt_prog_compiler_no_builtin_flag=' -fno-builtin' + + +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:6877: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:6881: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + +lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic='-qnocommon' + lt_prog_compiler_wl='-Wl,' + ;; + esac + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + linux*) + case $cc_basename in + icc* | ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + esac + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + sco3.2v5*) + lt_prog_compiler_pic='-Kpic' + lt_prog_compiler_static='-dn' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6 + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 +if test "${lt_prog_compiler_pic_works+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:7139: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:7143: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + lt_prog_compiler_pic_works=yes + fi + fi + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 + +if test x"$lt_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_prog_compiler_c_o=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:7201: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:7205: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp + $SED '/^$/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + echo "$as_me:$LINENO: result: $hard_links" >&5 +echo "${ECHO_T}$hard_links" >&6 + if test "$hard_links" = no; then + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 + + runpath_var= + allow_undefined_flag= + enable_shared_with_static_runtimes=no + archive_cmds= + archive_expsym_cmds= + old_archive_From_new_cmds= + old_archive_from_expsyms_cmds= + export_dynamic_flag_spec= + whole_archive_flag_spec= + thread_safe_flag_spec= + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld= + hardcode_libdir_separator= + hardcode_direct=no + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + link_all_deplibs=unknown + hardcode_automatic=no + module_cmds= + module_expsym_cmds= + always_export_symbols=no + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms="_GLOBAL_OFFSET_TABLE_" + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + ld_shlibs=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + ld_shlibs=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + ld_shlibs=no + fi + ;; + + linux*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + ld_shlibs=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix5*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct=yes + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + always_export_symbols=yes + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec=' ' + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_From_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes=yes + ;; + + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[012]) + allow_undefined_flag='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + whole_archive_flag_spec='' + link_all_deplibs=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs=no + ;; + esac + fi + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + freebsd1*) + ld_shlibs=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | kfreebsd*-gnu | dragonfly*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10* | hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*|ia64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*|ia64*) + archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' + ;; + *) + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld='+b $libdir' + hardcode_libdir_separator=: + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + ia64*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=no + hardcode_shlibpath_var=no + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + *) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_ld='-rpath $libdir' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + link_all_deplibs=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + openbsd*) + hardcode_direct=yes + hardcode_shlibpath_var=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + + sco3.2v5*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ;; + + solaris*) + no_undefined_flag=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine linker options so we + # cannot just pass the convience library names through + # without $wl, iff we do not link with $LD. + # Luckily, gcc supports the same syntax we need for Sun Studio. + # Supported since Solaris 2.6 (maybe 2.5.1?) + case $wlarc in + '') + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; + *) + whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; + esac ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4.2uw2*) + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=no + hardcode_shlibpath_var=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) + no_undefined_flag='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv5*) + no_undefined_flag=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec= + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + fi + +echo "$as_me:$LINENO: result: $ld_shlibs" >&5 +echo "${ECHO_T}$ld_shlibs" >&6 +test "$ld_shlibs" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 + $rm conftest* + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + then + archive_cmds_need_lc=no + else + archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 +echo "${ECHO_T}$archive_cmds_need_lc" >&6 + ;; + esac + fi + ;; +esac + +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` + else + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' + fi + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + *) # from 3.2 on + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # find out which ABI we are using + libsuff= + case "$host_cpu" in + x86_64*|s390x*|powerpc64*) + echo '#line 8595 "configure"' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.$ac_objext` in + *64-bit*) + libsuff=64 + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" + ;; + esac + fi + rm -rf conftest* + ;; + esac + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +knetbsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +echo "$as_me:$LINENO: result: $dynamic_linker" >&5 +echo "${ECHO_T}$dynamic_linker" >&6 +test "$dynamic_linker" = no && can_build_shared=no + +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || \ + test -n "$runpath_var" || \ + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existant directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +echo "$as_me:$LINENO: result: $hardcode_action" >&5 +echo "${ECHO_T}$hardcode_action" >&6 + +if test "$hardcode_action" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +striplib= +old_striplib= +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + ;; + *) + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + ;; + esac +fi + +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dl_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dl_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 +if test $ac_cv_lib_dl_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + echo "$as_me:$LINENO: checking for shl_load" >&5 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 +if test "${ac_cv_func_shl_load+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define shl_load to an innocuous variant, in case declares shl_load. + For example, HP-UX 11i declares gettimeofday. */ +#define shl_load innocuous_shl_load + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shl_load (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef shl_load + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shl_load (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shl_load) || defined (__stub___shl_load) +choke me +#else +char (*f) () = shl_load; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != shl_load; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_shl_load=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_shl_load=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6 +if test $ac_cv_func_shl_load = yes; then + lt_cv_dlopen="shl_load" +else + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shl_load (); +int +main () +{ +shl_load (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dld_shl_load=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dld_shl_load=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 +if test $ac_cv_lib_dld_shl_load = yes; then + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" +else + echo "$as_me:$LINENO: checking for dlopen" >&5 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 +if test "${ac_cv_func_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define dlopen to an innocuous variant, in case declares dlopen. + For example, HP-UX 11i declares gettimeofday. */ +#define dlopen innocuous_dlopen + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char dlopen (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef dlopen + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_dlopen) || defined (__stub___dlopen) +choke me +#else +char (*f) () = dlopen; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != dlopen; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6 +if test $ac_cv_func_dlopen = yes; then + lt_cv_dlopen="dlopen" +else + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dl_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dl_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 +if test $ac_cv_lib_dl_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_svld_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_svld_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 +if test $ac_cv_lib_svld_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dld_link (); +int +main () +{ +dld_link (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dld_dld_link=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dld_dld_link=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 +if test $ac_cv_lib_dld_dld_link = yes; then + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 +if test "${lt_cv_dlopen_self+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +} +EOF + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_unknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6 + + if test "x$lt_cv_dlopen_self" = xyes; then + LDFLAGS="$LDFLAGS $link_static_flag" + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 +if test "${lt_cv_dlopen_self_static+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +} +EOF + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + +# Report which librarie types wil actually be built +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 +echo "$as_me:$LINENO: result: $can_build_shared" >&5 +echo "${ECHO_T}$can_build_shared" >&6 + +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix4* | aix5*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +echo "$as_me:$LINENO: result: $enable_shared" >&5 +echo "${ECHO_T}$enable_shared" >&6 + +echo "$as_me:$LINENO: checking whether to build static libraries" >&5 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +echo "$as_me:$LINENO: result: $enable_static" >&5 +echo "${ECHO_T}$enable_static" >&6 + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler \ + CC \ + LD \ + lt_prog_compiler_wl \ + lt_prog_compiler_pic \ + lt_prog_compiler_static \ + lt_prog_compiler_no_builtin_flag \ + export_dynamic_flag_spec \ + thread_safe_flag_spec \ + whole_archive_flag_spec \ + enable_shared_with_static_runtimes \ + old_archive_cmds \ + old_archive_from_new_cmds \ + predep_objects \ + postdep_objects \ + predeps \ + postdeps \ + compiler_lib_search_path \ + archive_cmds \ + archive_expsym_cmds \ + postinstall_cmds \ + postuninstall_cmds \ + old_archive_from_expsyms_cmds \ + allow_undefined_flag \ + no_undefined_flag \ + export_symbols_cmds \ + hardcode_libdir_flag_spec \ + hardcode_libdir_flag_spec_ld \ + hardcode_libdir_separator \ + hardcode_automatic \ + module_cmds \ + module_expsym_cmds \ + lt_cv_prog_compiler_c_o \ + exclude_expsyms \ + include_expsyms; do + + case $var in + old_archive_cmds | \ + old_archive_from_new_cmds | \ + archive_cmds | \ + archive_expsym_cmds | \ + module_cmds | \ + module_expsym_cmds | \ + old_archive_from_expsyms_cmds | \ + export_symbols_cmds | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="${ofile}T" + trap "$rm \"$cfgfile\"; exit 1" 1 2 15 + $rm -f "$cfgfile" + { echo "$as_me:$LINENO: creating $ofile" >&5 +echo "$as_me: creating $ofile" >&6;} + + cat <<__EOF__ >> "$cfgfile" +#! $SHELL + +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. +# +# This file is part of GNU Libtool: +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e 1s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# The names of the tagged configurations supported by this script. +available_tags= + +# ### BEGIN LIBTOOL CONFIG + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU C compiler? +with_gcc=$GCC + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# ### END LIBTOOL CONFIG + +__EOF__ + + + case $host_os in + aix3*) + cat <<\EOF >> "$cfgfile" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || \ + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + +# Check whether --with-tags or --without-tags was given. +if test "${with_tags+set}" = set; then + withval="$with_tags" + tagnames="$withval" +fi; + +if test -f "$ltmain" && test -n "$tagnames"; then + if test ! -f "${ofile}"; then + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} + fi + + if test -z "$LTCC"; then + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" + if test -z "$LTCC"; then + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} + else + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} + fi + fi + + # Extract list of available tagged configurations in $ofile. + # Note that this assumes the entire list is on one line. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for tagname in $tagnames; do + IFS="$lt_save_ifs" + # Check whether tagname contains only valid characters + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in + "") ;; + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 +echo "$as_me: error: invalid tag name: $tagname" >&2;} + { (exit 1); exit 1; }; } + ;; + esac + + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null + then + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} + { (exit 1); exit 1; }; } + fi + + # Update the list of available tags. + if test -n "$tagname"; then + echo appending configuration tag \"$tagname\" to $ofile + + case $tagname in + CXX) + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_flag_spec_ld_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_automatic_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(int, char *) { return(0); }\n' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* + + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_LD=$LD +lt_save_GCC=$GCC +GCC=$GXX +lt_save_with_gnu_ld=$with_gnu_ld +lt_save_path_LD=$lt_cv_path_LD +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx +else + unset lt_cv_prog_gnu_ld +fi +if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX +else + unset lt_cv_path_LD +fi +test -z "${LDCXX+set}" || LD=$LDCXX +CC=${CXX-"c++"} +compiler=$CC +compiler_CXX=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# We don't want -fno-exception wen compiling C++ code, so set the +# no_builtin_flag separately +if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' +else + lt_prog_compiler_no_builtin_flag_CXX= +fi + +if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + +# Check whether --with-gnu-ld or --without-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then + withval="$with_gnu_ld" + test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi; +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + echo "$as_me:$LINENO: checking for ld used by $CC" >&5 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + echo "$as_me:$LINENO: checking for GNU ld" >&5 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 +else + echo "$as_me:$LINENO: checking for non-GNU ld" >&5 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 +fi +if test "${lt_cv_path_LD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +echo "${ECHO_T}$LD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} + { (exit 1); exit 1; }; } +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 +if test "${lt_cv_prog_gnu_ld+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ + grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + +else + GXX=no + with_gnu_ld=no + wlarc= +fi + +# PORTME: fill in a description of your system's C++ link characteristics +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 +ld_shlibs_CXX=yes +case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix5*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct_CXX=yes + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + always_export_symbols_CXX=yes + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX=' ' + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + ld_shlibs_CXX=no + fi + ;; + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[012]) + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + whole_archive_flag_spec_CXX='' + link_all_deplibs_CXX=yes + + if test "$GXX" = yes ; then + lt_int_apple_cc_single_mod=no + output_verbose_link_cmd='echo' + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then + lt_int_apple_cc_single_mod=yes + fi + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + else + archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + fi + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs_CXX=no + ;; + esac + fi + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + freebsd[12]*) + # C++ shared libraries reported to be fairly broken before switch to ELF + ld_shlibs_CXX=no + ;; + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + freebsd* | kfreebsd*-gnu | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + gnu*) + ;; + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld_CXX='+b $libdir' + hardcode_libdir_separator_CXX=: + ;; + ia64*) + hardcode_libdir_flag_spec_CXX='-L$libdir' + ;; + *) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + *) + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*|ia64*) + archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + ia64*|hppa*64*) + archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + ;; + linux*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc*) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC*) + # Portland Group C++ compiler + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + openbsd*) + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd='echo' + ;; + osf3*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ + $rm $lib.exp' + + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + sco*) + archive_cmds_need_lc_CXX=no + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The C++ compiler is used as linker so we must use $wl + # flag to pass the commands to the underlying system + # linker. We must also pass each convience library through + # to the system linker between allextract/defaultextract. + # The C++ compiler will combine linker options so we + # cannot just pass the convience library names through + # without $wl. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | grep -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + fi + ;; + esac + ;; + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) + archive_cmds_need_lc_CXX=no + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; +esac +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 +echo "${ECHO_T}$ld_shlibs_CXX" >&6 +test "$ld_shlibs_CXX" = no && can_build_shared=no + +GCC_CXX="$GXX" +LD_CXX="$LD" + + +cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + # The `*' in the case matches for architectures that use `case' in + # $output_verbose_cmd can trigger glob expansion during the loop + # eval without this substitution. + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` + + for p in `eval $output_verbose_link_cmd`; do + case $p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" \ + || test $p = "-R"; then + prev=$p + continue + else + prev= + fi + + if test "$pre_test_object_deps_done" = no; then + case $p in + -L* | -R*) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + ;; + + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$rm -f confest.$objext + +# PORTME: override above test on systems where it is broken +case $host_os in +solaris*) + case $cc_basename in + CC*) + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + postdeps_CXX='-lCstd -lCrun' + ;; + esac +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + +lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | os2* | pw32*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix4* | aix5*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic_CXX='-qnocommon' + lt_prog_compiler_wl_CXX='-Wl,' + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | kfreebsd*-gnu | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux*) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + icpc* | ecpc*) + # Intel C++ + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC*) + # Portland Group C++ compiler. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + sco*) + case $cc_basename in + CC*) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + *) + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + unixware*) + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:11823: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:11827: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + lt_prog_compiler_pic_works_CXX=yes + fi + fi + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 + +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac + +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:11885: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:11889: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp + $SED '/^$/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + echo "$as_me:$LINENO: result: $hard_links" >&5 +echo "${ECHO_T}$hard_links" >&6 + if test "$hard_links" = no; then + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix4* | aix5*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 +echo "${ECHO_T}$ld_shlibs_CXX" >&6 +test "$ld_shlibs_CXX" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 + $rm conftest* + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + then + archive_cmds_need_lc_CXX=no + else + archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 + ;; + esac + fi + ;; +esac + +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` + else + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' + fi + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + *) # from 3.2 on + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # find out which ABI we are using + libsuff= + case "$host_cpu" in + x86_64*|s390x*|powerpc64*) + echo '#line 12408 "configure"' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.$ac_objext` in + *64-bit*) + libsuff=64 + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" + ;; + esac + fi + rm -rf conftest* + ;; + esac + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +knetbsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +echo "$as_me:$LINENO: result: $dynamic_linker" >&5 +echo "${ECHO_T}$dynamic_linker" >&6 +test "$dynamic_linker" = no && can_build_shared=no + +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || \ + test -n "$runpath_var_CXX" || \ + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existant directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 +echo "${ECHO_T}$hardcode_action_CXX" >&6 + +if test "$hardcode_action_CXX" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +striplib= +old_striplib= +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + ;; + *) + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + ;; + esac +fi + +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dl_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dl_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 +if test $ac_cv_lib_dl_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + echo "$as_me:$LINENO: checking for shl_load" >&5 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 +if test "${ac_cv_func_shl_load+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define shl_load to an innocuous variant, in case declares shl_load. + For example, HP-UX 11i declares gettimeofday. */ +#define shl_load innocuous_shl_load + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shl_load (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef shl_load + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shl_load (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shl_load) || defined (__stub___shl_load) +choke me +#else +char (*f) () = shl_load; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != shl_load; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_shl_load=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_shl_load=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6 +if test $ac_cv_func_shl_load = yes; then + lt_cv_dlopen="shl_load" +else + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shl_load (); +int +main () +{ +shl_load (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dld_shl_load=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dld_shl_load=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 +if test $ac_cv_lib_dld_shl_load = yes; then + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" +else + echo "$as_me:$LINENO: checking for dlopen" >&5 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 +if test "${ac_cv_func_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define dlopen to an innocuous variant, in case declares dlopen. + For example, HP-UX 11i declares gettimeofday. */ +#define dlopen innocuous_dlopen + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char dlopen (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef dlopen + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_dlopen) || defined (__stub___dlopen) +choke me +#else +char (*f) () = dlopen; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != dlopen; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6 +if test $ac_cv_func_dlopen = yes; then + lt_cv_dlopen="dlopen" +else + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dl_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dl_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 +if test $ac_cv_lib_dl_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_svld_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_svld_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 +if test $ac_cv_lib_svld_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dld_link (); +int +main () +{ +dld_link (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dld_dld_link=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dld_dld_link=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 +if test $ac_cv_lib_dld_dld_link = yes; then + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 +if test "${lt_cv_dlopen_self+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +} +EOF + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_unknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6 + + if test "x$lt_cv_dlopen_self" = xyes; then + LDFLAGS="$LDFLAGS $link_static_flag" + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 +if test "${lt_cv_dlopen_self_static+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +} +EOF + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler_CXX \ + CC_CXX \ + LD_CXX \ + lt_prog_compiler_wl_CXX \ + lt_prog_compiler_pic_CXX \ + lt_prog_compiler_static_CXX \ + lt_prog_compiler_no_builtin_flag_CXX \ + export_dynamic_flag_spec_CXX \ + thread_safe_flag_spec_CXX \ + whole_archive_flag_spec_CXX \ + enable_shared_with_static_runtimes_CXX \ + old_archive_cmds_CXX \ + old_archive_from_new_cmds_CXX \ + predep_objects_CXX \ + postdep_objects_CXX \ + predeps_CXX \ + postdeps_CXX \ + compiler_lib_search_path_CXX \ + archive_cmds_CXX \ + archive_expsym_cmds_CXX \ + postinstall_cmds_CXX \ + postuninstall_cmds_CXX \ + old_archive_from_expsyms_cmds_CXX \ + allow_undefined_flag_CXX \ + no_undefined_flag_CXX \ + export_symbols_cmds_CXX \ + hardcode_libdir_flag_spec_CXX \ + hardcode_libdir_flag_spec_ld_CXX \ + hardcode_libdir_separator_CXX \ + hardcode_automatic_CXX \ + module_cmds_CXX \ + module_expsym_cmds_CXX \ + lt_cv_prog_compiler_c_o_CXX \ + exclude_expsyms_CXX \ + include_expsyms_CXX; do + + case $var in + old_archive_cmds_CXX | \ + old_archive_from_new_cmds_CXX | \ + archive_cmds_CXX | \ + archive_expsym_cmds_CXX | \ + module_cmds_CXX | \ + module_expsym_cmds_CXX | \ + old_archive_from_expsyms_cmds_CXX | \ + export_symbols_cmds_CXX | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="$ofile" + + cat <<__EOF__ >> "$cfgfile" +# ### BEGIN LIBTOOL TAG CONFIG: $tagname + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU C compiler? +with_gcc=$GCC_CXX + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds_CXX +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects_CXX + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects_CXX + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps_CXX + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path_CXX" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# ### END LIBTOOL TAG CONFIG: $tagname + +__EOF__ + + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC=$lt_save_CC +LDCXX=$LD +LD=$lt_save_LD +GCC=$lt_save_GCC +with_gnu_ldcxx=$with_gnu_ld +with_gnu_ld=$lt_save_with_gnu_ld +lt_cv_path_LDCXX=$lt_cv_path_LD +lt_cv_path_LD=$lt_save_path_LD +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld + + else + tagname="" + fi + ;; + + F77) + if test -n "$F77" && test "X$F77" != "Xno"; then + +ac_ext=f +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_f77_compiler_gnu + + +archive_cmds_need_lc_F77=no +allow_undefined_flag_F77= +always_export_symbols_F77=no +archive_expsym_cmds_F77= +export_dynamic_flag_spec_F77= +hardcode_direct_F77=no +hardcode_libdir_flag_spec_F77= +hardcode_libdir_flag_spec_ld_F77= +hardcode_libdir_separator_F77= +hardcode_minus_L_F77=no +hardcode_automatic_F77=no +module_cmds_F77= +module_expsym_cmds_F77= +link_all_deplibs_F77=unknown +old_archive_cmds_F77=$old_archive_cmds +no_undefined_flag_F77= +whole_archive_flag_spec_F77= +enable_shared_with_static_runtimes_F77=no + +# Source file extension for f77 test sources. +ac_ext=f + +# Object file extension for compiled f77 test sources. +objext=o +objext_F77=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code=" subroutine t\n return\n end\n" + +# Code to be used in simple link tests +lt_simple_link_test_code=" program t\n end\n" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* + + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${F77-"f77"} +compiler=$CC +compiler_F77=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 +echo "$as_me:$LINENO: result: $can_build_shared" >&5 +echo "${ECHO_T}$can_build_shared" >&6 + +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; +aix4* | aix5*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +echo "$as_me:$LINENO: result: $enable_shared" >&5 +echo "${ECHO_T}$enable_shared" >&6 + +echo "$as_me:$LINENO: checking whether to build static libraries" >&5 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +echo "$as_me:$LINENO: result: $enable_static" >&5 +echo "${ECHO_T}$enable_static" >&6 + +test "$ld_shlibs_F77" = no && can_build_shared=no + +GCC_F77="$G77" +LD_F77="$LD" + +lt_prog_compiler_wl_F77= +lt_prog_compiler_pic_F77= +lt_prog_compiler_static_F77= + +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 + + if test "$GCC" = yes; then + lt_prog_compiler_wl_F77='-Wl,' + lt_prog_compiler_static_F77='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_F77='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_F77='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_F77='-fno-common' + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared_F77=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_F77=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_F77='-fPIC' + ;; + esac + ;; + + *) + lt_prog_compiler_pic_F77='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl_F77='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_F77='-Bstatic' + else + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic_F77='-qnocommon' + lt_prog_compiler_wl_F77='-Wl,' + ;; + esac + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_F77='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl_F77='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_F77='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static_F77='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl_F77='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static_F77='-non_shared' + ;; + + newsos6) + lt_prog_compiler_pic_F77='-KPIC' + lt_prog_compiler_static_F77='-Bstatic' + ;; + + linux*) + case $cc_basename in + icc* | ecc*) + lt_prog_compiler_wl_F77='-Wl,' + lt_prog_compiler_pic_F77='-KPIC' + lt_prog_compiler_static_F77='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl_F77='-Wl,' + lt_prog_compiler_pic_F77='-fpic' + lt_prog_compiler_static_F77='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl_F77='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static_F77='-non_shared' + ;; + esac + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl_F77='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static_F77='-non_shared' + ;; + + sco3.2v5*) + lt_prog_compiler_pic_F77='-Kpic' + lt_prog_compiler_static_F77='-dn' + ;; + + solaris*) + lt_prog_compiler_pic_F77='-KPIC' + lt_prog_compiler_static_F77='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl_F77='-Qoption ld ';; + *) + lt_prog_compiler_wl_F77='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl_F77='-Qoption ld ' + lt_prog_compiler_pic_F77='-PIC' + lt_prog_compiler_static_F77='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + lt_prog_compiler_wl_F77='-Wl,' + lt_prog_compiler_pic_F77='-KPIC' + lt_prog_compiler_static_F77='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic_F77='-Kconform_pic' + lt_prog_compiler_static_F77='-Bstatic' + fi + ;; + + unicos*) + lt_prog_compiler_wl_F77='-Wl,' + lt_prog_compiler_can_build_shared_F77=no + ;; + + uts4*) + lt_prog_compiler_pic_F77='-pic' + lt_prog_compiler_static_F77='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared_F77=no + ;; + esac + fi + +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_F77"; then + +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_prog_compiler_pic_works_F77=no + ac_outfile=conftest.$ac_objext + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_F77" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:14266: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:14270: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + lt_prog_compiler_pic_works_F77=yes + fi + fi + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 + +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then + case $lt_prog_compiler_pic_F77 in + "" | " "*) ;; + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; + esac +else + lt_prog_compiler_pic_F77= + lt_prog_compiler_can_build_shared_F77=no +fi + +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_F77= + ;; + *) + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" + ;; +esac + +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_prog_compiler_c_o_F77=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:14328: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:14332: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp + $SED '/^$/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_F77=yes + fi + fi + chmod u+w . 2>&5 + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + echo "$as_me:$LINENO: result: $hard_links" >&5 +echo "${ECHO_T}$hard_links" >&6 + if test "$hard_links" = no; then + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 + + runpath_var= + allow_undefined_flag_F77= + enable_shared_with_static_runtimes_F77=no + archive_cmds_F77= + archive_expsym_cmds_F77= + old_archive_From_new_cmds_F77= + old_archive_from_expsyms_cmds_F77= + export_dynamic_flag_spec_F77= + whole_archive_flag_spec_F77= + thread_safe_flag_spec_F77= + hardcode_libdir_flag_spec_F77= + hardcode_libdir_flag_spec_ld_F77= + hardcode_libdir_separator_F77= + hardcode_direct_F77=no + hardcode_minus_L_F77=no + hardcode_shlibpath_var_F77=unsupported + link_all_deplibs_F77=unknown + hardcode_automatic_F77=no + module_cmds_F77= + module_expsym_cmds_F77= + always_export_symbols_F77=no + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms_F77= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + ld_shlibs_F77=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_F77='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_F77= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs_F77=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_minus_L_F77=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + ld_shlibs_F77=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_F77=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_F77=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_F77='-L$libdir' + allow_undefined_flag_F77=unsupported + always_export_symbols_F77=no + enable_shared_with_static_runtimes_F77=yes + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + ld_shlibs_F77=no + fi + ;; + + linux*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + ld_shlibs_F77=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs_F77=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs_F77=no + fi + ;; + + sunos4*) + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct_F77=yes + hardcode_shlibpath_var_F77=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs_F77=no + fi + ;; + esac + + if test "$ld_shlibs_F77" = no; then + runpath_var= + hardcode_libdir_flag_spec_F77= + export_dynamic_flag_spec_F77= + whole_archive_flag_spec_F77= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag_F77=unsupported + always_export_symbols_F77=yes + archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L_F77=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct_F77=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix5*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_F77='' + hardcode_direct_F77=yes + hardcode_libdir_separator_F77=':' + link_all_deplibs_F77=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct_F77=yes + else + # We have old collect2 + hardcode_direct_F77=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_F77=yes + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_libdir_separator_F77= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols_F77=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_F77='-berok' + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF + program main + + end +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_f77_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_F77="-z nodefs" + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF + program main + + end +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_f77_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_F77=' ${wl}-bernotok' + allow_undefined_flag_F77=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + always_export_symbols_F77=yes + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_F77=' ' + archive_cmds_need_lc_F77=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_minus_L_F77=yes + # see comment about different semantics on the GNU ld section + ld_shlibs_F77=no + ;; + + bsdi[45]*) + export_dynamic_flag_spec_F77=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_F77=' ' + allow_undefined_flag_F77=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_From_new_cmds_F77='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path_F77='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes_F77=yes + ;; + + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[012]) + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + archive_cmds_need_lc_F77=no + hardcode_direct_F77=no + hardcode_automatic_F77=yes + hardcode_shlibpath_var_F77=unsupported + whole_archive_flag_spec_F77='' + link_all_deplibs_F77=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs_F77=no + ;; + esac + fi + ;; + + dgux*) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_shlibpath_var_F77=no + ;; + + freebsd1*) + ld_shlibs_F77=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec_F77='-R$libdir' + hardcode_direct_F77=yes + hardcode_shlibpath_var_F77=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_F77=yes + hardcode_minus_L_F77=yes + hardcode_shlibpath_var_F77=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | kfreebsd*-gnu | dragonfly*) + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec_F77='-R$libdir' + hardcode_direct_F77=yes + hardcode_shlibpath_var_F77=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_F77=: + hardcode_direct_F77=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L_F77=yes + export_dynamic_flag_spec_F77='${wl}-E' + ;; + + hpux10* | hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*|ia64*) + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*|ia64*) + archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' + ;; + *) + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld_F77='+b $libdir' + hardcode_libdir_separator_F77=: + hardcode_direct_F77=no + hardcode_shlibpath_var_F77=no + ;; + ia64*) + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_direct_F77=no + hardcode_shlibpath_var_F77=no + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L_F77=yes + ;; + *) + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_F77=: + hardcode_direct_F77=yes + export_dynamic_flag_spec_F77='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L_F77=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' + fi + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_F77=: + link_all_deplibs_F77=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec_F77='-R$libdir' + hardcode_direct_F77=yes + hardcode_shlibpath_var_F77=no + ;; + + newsos6) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_F77=yes + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_F77=: + hardcode_shlibpath_var_F77=no + ;; + + openbsd*) + hardcode_direct_F77=yes + hardcode_shlibpath_var_F77=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' + export_dynamic_flag_spec_F77='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec_F77='-R$libdir' + ;; + *) + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + + os2*) + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_minus_L_F77=yes + allow_undefined_flag_F77=unsupported + archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag_F77=' -expect_unresolved \*' + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_F77=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag_F77=' -expect_unresolved \*' + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec_F77='-rpath $libdir' + fi + hardcode_libdir_separator_F77=: + ;; + + sco3.2v5*) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var_F77=no + export_dynamic_flag_spec_F77='${wl}-Bexport' + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ;; + + solaris*) + no_undefined_flag_F77=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + hardcode_libdir_flag_spec_F77='-R$libdir' + hardcode_shlibpath_var_F77=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine linker options so we + # cannot just pass the convience library names through + # without $wl, iff we do not link with $LD. + # Luckily, gcc supports the same syntax we need for Sun Studio. + # Supported since Solaris 2.6 (maybe 2.5.1?) + case $wlarc in + '') + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; + *) + whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; + esac ;; + esac + link_all_deplibs_F77=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_direct_F77=yes + hardcode_minus_L_F77=yes + hardcode_shlibpath_var_F77=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_F77=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds_F77='$CC -r -o $output$reload_objs' + hardcode_direct_F77=no + ;; + motorola) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var_F77=no + ;; + + sysv4.3*) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var_F77=no + export_dynamic_flag_spec_F77='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var_F77=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs_F77=yes + fi + ;; + + sysv4.2uw2*) + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_F77=yes + hardcode_minus_L_F77=no + hardcode_shlibpath_var_F77=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) + no_undefined_flag_F77='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var_F77=no + ;; + + sysv5*) + no_undefined_flag_F77=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec_F77= + hardcode_shlibpath_var_F77=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_shlibpath_var_F77=no + ;; + + *) + ld_shlibs_F77=no + ;; + esac + fi + +echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 +echo "${ECHO_T}$ld_shlibs_F77" >&6 +test "$ld_shlibs_F77" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_F77" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_F77=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_F77 in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 + $rm conftest* + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_F77 + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_F77 + allow_undefined_flag_F77= + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + then + archive_cmds_need_lc_F77=no + else + archive_cmds_need_lc_F77=yes + fi + allow_undefined_flag_F77=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 + ;; + esac + fi + ;; +esac + +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` + else + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' + fi + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + *) # from 3.2 on + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # find out which ABI we are using + libsuff= + case "$host_cpu" in + x86_64*|s390x*|powerpc64*) + echo '#line 15702 "configure"' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.$ac_objext` in + *64-bit*) + libsuff=64 + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" + ;; + esac + fi + rm -rf conftest* + ;; + esac + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +knetbsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +echo "$as_me:$LINENO: result: $dynamic_linker" >&5 +echo "${ECHO_T}$dynamic_linker" >&6 +test "$dynamic_linker" = no && can_build_shared=no + +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 +hardcode_action_F77= +if test -n "$hardcode_libdir_flag_spec_F77" || \ + test -n "$runpath_var_F77" || \ + test "X$hardcode_automatic_F77" = "Xyes" ; then + + # We can hardcode non-existant directories. + if test "$hardcode_direct_F77" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && + test "$hardcode_minus_L_F77" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_F77=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_F77=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_F77=unsupported +fi +echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 +echo "${ECHO_T}$hardcode_action_F77" >&6 + +if test "$hardcode_action_F77" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +striplib= +old_striplib= +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + ;; + *) + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + ;; + esac +fi + + + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler_F77 \ + CC_F77 \ + LD_F77 \ + lt_prog_compiler_wl_F77 \ + lt_prog_compiler_pic_F77 \ + lt_prog_compiler_static_F77 \ + lt_prog_compiler_no_builtin_flag_F77 \ + export_dynamic_flag_spec_F77 \ + thread_safe_flag_spec_F77 \ + whole_archive_flag_spec_F77 \ + enable_shared_with_static_runtimes_F77 \ + old_archive_cmds_F77 \ + old_archive_from_new_cmds_F77 \ + predep_objects_F77 \ + postdep_objects_F77 \ + predeps_F77 \ + postdeps_F77 \ + compiler_lib_search_path_F77 \ + archive_cmds_F77 \ + archive_expsym_cmds_F77 \ + postinstall_cmds_F77 \ + postuninstall_cmds_F77 \ + old_archive_from_expsyms_cmds_F77 \ + allow_undefined_flag_F77 \ + no_undefined_flag_F77 \ + export_symbols_cmds_F77 \ + hardcode_libdir_flag_spec_F77 \ + hardcode_libdir_flag_spec_ld_F77 \ + hardcode_libdir_separator_F77 \ + hardcode_automatic_F77 \ + module_cmds_F77 \ + module_expsym_cmds_F77 \ + lt_cv_prog_compiler_c_o_F77 \ + exclude_expsyms_F77 \ + include_expsyms_F77; do + + case $var in + old_archive_cmds_F77 | \ + old_archive_from_new_cmds_F77 | \ + archive_cmds_F77 | \ + archive_expsym_cmds_F77 | \ + module_cmds_F77 | \ + module_expsym_cmds_F77 | \ + old_archive_from_expsyms_cmds_F77 | \ + export_symbols_cmds_F77 | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="$ofile" + + cat <<__EOF__ >> "$cfgfile" +# ### BEGIN LIBTOOL TAG CONFIG: $tagname + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_F77 + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_compiler_F77 + +# Is the compiler the GNU C compiler? +with_gcc=$GCC_F77 + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD_F77 + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_F77 + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_F77 +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_F77 + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds_F77 +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds_F77 +archive_expsym_cmds=$lt_archive_expsym_cmds_F77 +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds_F77 +module_expsym_cmds=$lt_module_expsym_cmds_F77 + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects_F77 + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects_F77 + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps_F77 + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps_F77 + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_F77 + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_F77 + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_F77 + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_F77 + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct_F77 + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L_F77 + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic_F77 + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_F77 + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path_F77" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols_F77 + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_F77 + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_F77 + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_F77 + +# ### END LIBTOOL TAG CONFIG: $tagname + +__EOF__ + + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + else + tagname="" + fi + ;; + + GCJ) + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then + + + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +objext_GCJ=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* + + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${GCJ-"gcj"} +compiler=$CC +compiler_GCJ=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +archive_cmds_need_lc_GCJ=no + +old_archive_cmds_GCJ=$old_archive_cmds + + +lt_prog_compiler_no_builtin_flag_GCJ= + +if test "$GCC" = yes; then + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' + + +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:16479: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:16483: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" +else + : +fi + +fi + +lt_prog_compiler_wl_GCJ= +lt_prog_compiler_pic_GCJ= +lt_prog_compiler_static_GCJ= + +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 + + if test "$GCC" = yes; then + lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_static_GCJ='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_GCJ='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_GCJ='-fno-common' + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared_GCJ=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_GCJ=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_GCJ='-fPIC' + ;; + esac + ;; + + *) + lt_prog_compiler_pic_GCJ='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl_GCJ='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_GCJ='-Bstatic' + else + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic_GCJ='-qnocommon' + lt_prog_compiler_wl_GCJ='-Wl,' + ;; + esac + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl_GCJ='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_GCJ='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl_GCJ='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static_GCJ='-non_shared' + ;; + + newsos6) + lt_prog_compiler_pic_GCJ='-KPIC' + lt_prog_compiler_static_GCJ='-Bstatic' + ;; + + linux*) + case $cc_basename in + icc* | ecc*) + lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_pic_GCJ='-KPIC' + lt_prog_compiler_static_GCJ='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_pic_GCJ='-fpic' + lt_prog_compiler_static_GCJ='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl_GCJ='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static_GCJ='-non_shared' + ;; + esac + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl_GCJ='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static_GCJ='-non_shared' + ;; + + sco3.2v5*) + lt_prog_compiler_pic_GCJ='-Kpic' + lt_prog_compiler_static_GCJ='-dn' + ;; + + solaris*) + lt_prog_compiler_pic_GCJ='-KPIC' + lt_prog_compiler_static_GCJ='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl_GCJ='-Qoption ld ';; + *) + lt_prog_compiler_wl_GCJ='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl_GCJ='-Qoption ld ' + lt_prog_compiler_pic_GCJ='-PIC' + lt_prog_compiler_static_GCJ='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_pic_GCJ='-KPIC' + lt_prog_compiler_static_GCJ='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic_GCJ='-Kconform_pic' + lt_prog_compiler_static_GCJ='-Bstatic' + fi + ;; + + unicos*) + lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_can_build_shared_GCJ=no + ;; + + uts4*) + lt_prog_compiler_pic_GCJ='-pic' + lt_prog_compiler_static_GCJ='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared_GCJ=no + ;; + esac + fi + +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_GCJ"; then + +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_prog_compiler_pic_works_GCJ=no + ac_outfile=conftest.$ac_objext + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_GCJ" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:16741: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:16745: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + lt_prog_compiler_pic_works_GCJ=yes + fi + fi + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 + +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then + case $lt_prog_compiler_pic_GCJ in + "" | " "*) ;; + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; + esac +else + lt_prog_compiler_pic_GCJ= + lt_prog_compiler_can_build_shared_GCJ=no +fi + +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_GCJ= + ;; + *) + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" + ;; +esac + +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_prog_compiler_c_o_GCJ=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:16803: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:16807: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp + $SED '/^$/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_GCJ=yes + fi + fi + chmod u+w . 2>&5 + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + echo "$as_me:$LINENO: result: $hard_links" >&5 +echo "${ECHO_T}$hard_links" >&6 + if test "$hard_links" = no; then + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 + + runpath_var= + allow_undefined_flag_GCJ= + enable_shared_with_static_runtimes_GCJ=no + archive_cmds_GCJ= + archive_expsym_cmds_GCJ= + old_archive_From_new_cmds_GCJ= + old_archive_from_expsyms_cmds_GCJ= + export_dynamic_flag_spec_GCJ= + whole_archive_flag_spec_GCJ= + thread_safe_flag_spec_GCJ= + hardcode_libdir_flag_spec_GCJ= + hardcode_libdir_flag_spec_ld_GCJ= + hardcode_libdir_separator_GCJ= + hardcode_direct_GCJ=no + hardcode_minus_L_GCJ=no + hardcode_shlibpath_var_GCJ=unsupported + link_all_deplibs_GCJ=unknown + hardcode_automatic_GCJ=no + module_cmds_GCJ= + module_expsym_cmds_GCJ= + always_export_symbols_GCJ=no + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms_GCJ= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + ld_shlibs_GCJ=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_GCJ= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs_GCJ=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_minus_L_GCJ=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + ld_shlibs_GCJ=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_GCJ=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_GCJ=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_GCJ='-L$libdir' + allow_undefined_flag_GCJ=unsupported + always_export_symbols_GCJ=no + enable_shared_with_static_runtimes_GCJ=yes + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + ld_shlibs_GCJ=no + fi + ;; + + linux*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + ld_shlibs_GCJ=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs_GCJ=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs_GCJ=no + fi + ;; + + sunos4*) + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct_GCJ=yes + hardcode_shlibpath_var_GCJ=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs_GCJ=no + fi + ;; + esac + + if test "$ld_shlibs_GCJ" = no; then + runpath_var= + hardcode_libdir_flag_spec_GCJ= + export_dynamic_flag_spec_GCJ= + whole_archive_flag_spec_GCJ= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag_GCJ=unsupported + always_export_symbols_GCJ=yes + archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L_GCJ=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct_GCJ=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix5*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_GCJ='' + hardcode_direct_GCJ=yes + hardcode_libdir_separator_GCJ=':' + link_all_deplibs_GCJ=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct_GCJ=yes + else + # We have old collect2 + hardcode_direct_GCJ=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_GCJ=yes + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_libdir_separator_GCJ= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols_GCJ=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_GCJ='-berok' + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_GCJ="-z nodefs" + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_GCJ=' ${wl}-bernotok' + allow_undefined_flag_GCJ=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + always_export_symbols_GCJ=yes + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_GCJ=' ' + archive_cmds_need_lc_GCJ=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_minus_L_GCJ=yes + # see comment about different semantics on the GNU ld section + ld_shlibs_GCJ=no + ;; + + bsdi[45]*) + export_dynamic_flag_spec_GCJ=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_GCJ=' ' + allow_undefined_flag_GCJ=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_From_new_cmds_GCJ='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes_GCJ=yes + ;; + + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[012]) + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + archive_cmds_need_lc_GCJ=no + hardcode_direct_GCJ=no + hardcode_automatic_GCJ=yes + hardcode_shlibpath_var_GCJ=unsupported + whole_archive_flag_spec_GCJ='' + link_all_deplibs_GCJ=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs_GCJ=no + ;; + esac + fi + ;; + + dgux*) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_shlibpath_var_GCJ=no + ;; + + freebsd1*) + ld_shlibs_GCJ=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec_GCJ='-R$libdir' + hardcode_direct_GCJ=yes + hardcode_shlibpath_var_GCJ=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_GCJ=yes + hardcode_minus_L_GCJ=yes + hardcode_shlibpath_var_GCJ=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | kfreebsd*-gnu | dragonfly*) + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec_GCJ='-R$libdir' + hardcode_direct_GCJ=yes + hardcode_shlibpath_var_GCJ=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_GCJ=: + hardcode_direct_GCJ=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L_GCJ=yes + export_dynamic_flag_spec_GCJ='${wl}-E' + ;; + + hpux10* | hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*|ia64*) + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*|ia64*) + archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' + ;; + *) + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' + hardcode_libdir_separator_GCJ=: + hardcode_direct_GCJ=no + hardcode_shlibpath_var_GCJ=no + ;; + ia64*) + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_direct_GCJ=no + hardcode_shlibpath_var_GCJ=no + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L_GCJ=yes + ;; + *) + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_GCJ=: + hardcode_direct_GCJ=yes + export_dynamic_flag_spec_GCJ='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L_GCJ=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' + fi + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_GCJ=: + link_all_deplibs_GCJ=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec_GCJ='-R$libdir' + hardcode_direct_GCJ=yes + hardcode_shlibpath_var_GCJ=no + ;; + + newsos6) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_GCJ=yes + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_GCJ=: + hardcode_shlibpath_var_GCJ=no + ;; + + openbsd*) + hardcode_direct_GCJ=yes + hardcode_shlibpath_var_GCJ=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' + export_dynamic_flag_spec_GCJ='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec_GCJ='-R$libdir' + ;; + *) + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + + os2*) + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_minus_L_GCJ=yes + allow_undefined_flag_GCJ=unsupported + archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag_GCJ=' -expect_unresolved \*' + archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_GCJ=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag_GCJ=' -expect_unresolved \*' + archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec_GCJ='-rpath $libdir' + fi + hardcode_libdir_separator_GCJ=: + ;; + + sco3.2v5*) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var_GCJ=no + export_dynamic_flag_spec_GCJ='${wl}-Bexport' + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ;; + + solaris*) + no_undefined_flag_GCJ=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + hardcode_libdir_flag_spec_GCJ='-R$libdir' + hardcode_shlibpath_var_GCJ=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine linker options so we + # cannot just pass the convience library names through + # without $wl, iff we do not link with $LD. + # Luckily, gcc supports the same syntax we need for Sun Studio. + # Supported since Solaris 2.6 (maybe 2.5.1?) + case $wlarc in + '') + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; + *) + whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; + esac ;; + esac + link_all_deplibs_GCJ=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_direct_GCJ=yes + hardcode_minus_L_GCJ=yes + hardcode_shlibpath_var_GCJ=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_GCJ=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds_GCJ='$CC -r -o $output$reload_objs' + hardcode_direct_GCJ=no + ;; + motorola) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var_GCJ=no + ;; + + sysv4.3*) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var_GCJ=no + export_dynamic_flag_spec_GCJ='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var_GCJ=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs_GCJ=yes + fi + ;; + + sysv4.2uw2*) + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_GCJ=yes + hardcode_minus_L_GCJ=no + hardcode_shlibpath_var_GCJ=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) + no_undefined_flag_GCJ='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var_GCJ=no + ;; + + sysv5*) + no_undefined_flag_GCJ=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec_GCJ= + hardcode_shlibpath_var_GCJ=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_shlibpath_var_GCJ=no + ;; + + *) + ld_shlibs_GCJ=no + ;; + esac + fi + +echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 +echo "${ECHO_T}$ld_shlibs_GCJ" >&6 +test "$ld_shlibs_GCJ" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_GCJ" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_GCJ=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_GCJ in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 + $rm conftest* + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_GCJ + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ + allow_undefined_flag_GCJ= + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + then + archive_cmds_need_lc_GCJ=no + else + archive_cmds_need_lc_GCJ=yes + fi + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 + ;; + esac + fi + ;; +esac + +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` + else + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' + fi + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + *) # from 3.2 on + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # find out which ABI we are using + libsuff= + case "$host_cpu" in + x86_64*|s390x*|powerpc64*) + echo '#line 18197 "configure"' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.$ac_objext` in + *64-bit*) + libsuff=64 + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" + ;; + esac + fi + rm -rf conftest* + ;; + esac + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +knetbsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +echo "$as_me:$LINENO: result: $dynamic_linker" >&5 +echo "${ECHO_T}$dynamic_linker" >&6 +test "$dynamic_linker" = no && can_build_shared=no + +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 +hardcode_action_GCJ= +if test -n "$hardcode_libdir_flag_spec_GCJ" || \ + test -n "$runpath_var_GCJ" || \ + test "X$hardcode_automatic_GCJ" = "Xyes" ; then + + # We can hardcode non-existant directories. + if test "$hardcode_direct_GCJ" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && + test "$hardcode_minus_L_GCJ" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_GCJ=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_GCJ=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_GCJ=unsupported +fi +echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 +echo "${ECHO_T}$hardcode_action_GCJ" >&6 + +if test "$hardcode_action_GCJ" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +striplib= +old_striplib= +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + ;; + *) + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + ;; + esac +fi + +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dl_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dl_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 +if test $ac_cv_lib_dl_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + echo "$as_me:$LINENO: checking for shl_load" >&5 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 +if test "${ac_cv_func_shl_load+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define shl_load to an innocuous variant, in case declares shl_load. + For example, HP-UX 11i declares gettimeofday. */ +#define shl_load innocuous_shl_load + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shl_load (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef shl_load + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shl_load (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shl_load) || defined (__stub___shl_load) +choke me +#else +char (*f) () = shl_load; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != shl_load; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_shl_load=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_shl_load=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6 +if test $ac_cv_func_shl_load = yes; then + lt_cv_dlopen="shl_load" +else + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shl_load (); +int +main () +{ +shl_load (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dld_shl_load=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dld_shl_load=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 +if test $ac_cv_lib_dld_shl_load = yes; then + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" +else + echo "$as_me:$LINENO: checking for dlopen" >&5 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 +if test "${ac_cv_func_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define dlopen to an innocuous variant, in case declares dlopen. + For example, HP-UX 11i declares gettimeofday. */ +#define dlopen innocuous_dlopen + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char dlopen (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef dlopen + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_dlopen) || defined (__stub___dlopen) +choke me +#else +char (*f) () = dlopen; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != dlopen; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6 +if test $ac_cv_func_dlopen = yes; then + lt_cv_dlopen="dlopen" +else + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dl_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dl_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 +if test $ac_cv_lib_dl_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_svld_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_svld_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 +if test $ac_cv_lib_svld_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dld_link (); +int +main () +{ +dld_link (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dld_dld_link=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dld_dld_link=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 +if test $ac_cv_lib_dld_dld_link = yes; then + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 +if test "${lt_cv_dlopen_self+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +} +EOF + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_unknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6 + + if test "x$lt_cv_dlopen_self" = xyes; then + LDFLAGS="$LDFLAGS $link_static_flag" + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 +if test "${lt_cv_dlopen_self_static+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +} +EOF + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler_GCJ \ + CC_GCJ \ + LD_GCJ \ + lt_prog_compiler_wl_GCJ \ + lt_prog_compiler_pic_GCJ \ + lt_prog_compiler_static_GCJ \ + lt_prog_compiler_no_builtin_flag_GCJ \ + export_dynamic_flag_spec_GCJ \ + thread_safe_flag_spec_GCJ \ + whole_archive_flag_spec_GCJ \ + enable_shared_with_static_runtimes_GCJ \ + old_archive_cmds_GCJ \ + old_archive_from_new_cmds_GCJ \ + predep_objects_GCJ \ + postdep_objects_GCJ \ + predeps_GCJ \ + postdeps_GCJ \ + compiler_lib_search_path_GCJ \ + archive_cmds_GCJ \ + archive_expsym_cmds_GCJ \ + postinstall_cmds_GCJ \ + postuninstall_cmds_GCJ \ + old_archive_from_expsyms_cmds_GCJ \ + allow_undefined_flag_GCJ \ + no_undefined_flag_GCJ \ + export_symbols_cmds_GCJ \ + hardcode_libdir_flag_spec_GCJ \ + hardcode_libdir_flag_spec_ld_GCJ \ + hardcode_libdir_separator_GCJ \ + hardcode_automatic_GCJ \ + module_cmds_GCJ \ + module_expsym_cmds_GCJ \ + lt_cv_prog_compiler_c_o_GCJ \ + exclude_expsyms_GCJ \ + include_expsyms_GCJ; do + + case $var in + old_archive_cmds_GCJ | \ + old_archive_from_new_cmds_GCJ | \ + archive_cmds_GCJ | \ + archive_expsym_cmds_GCJ | \ + module_cmds_GCJ | \ + module_expsym_cmds_GCJ | \ + old_archive_from_expsyms_cmds_GCJ | \ + export_symbols_cmds_GCJ | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="$ofile" + + cat <<__EOF__ >> "$cfgfile" +# ### BEGIN LIBTOOL TAG CONFIG: $tagname + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_GCJ + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_compiler_GCJ + +# Is the compiler the GNU C compiler? +with_gcc=$GCC_GCJ + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD_GCJ + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_GCJ + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_GCJ +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_GCJ + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds_GCJ +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds_GCJ +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds_GCJ +module_expsym_cmds=$lt_module_expsym_cmds_GCJ + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects_GCJ + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects_GCJ + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps_GCJ + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps_GCJ + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_GCJ + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_GCJ + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_GCJ + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct_GCJ + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L_GCJ + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic_GCJ + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_GCJ + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path_GCJ" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols_GCJ + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_GCJ + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_GCJ + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_GCJ + +# ### END LIBTOOL TAG CONFIG: $tagname + +__EOF__ + + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + else + tagname="" + fi + ;; + + RC) + + + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +objext_RC=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' + +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* + + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${RC-"windres"} +compiler=$CC +compiler_RC=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + +lt_cv_prog_compiler_c_o_RC=yes + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler_RC \ + CC_RC \ + LD_RC \ + lt_prog_compiler_wl_RC \ + lt_prog_compiler_pic_RC \ + lt_prog_compiler_static_RC \ + lt_prog_compiler_no_builtin_flag_RC \ + export_dynamic_flag_spec_RC \ + thread_safe_flag_spec_RC \ + whole_archive_flag_spec_RC \ + enable_shared_with_static_runtimes_RC \ + old_archive_cmds_RC \ + old_archive_from_new_cmds_RC \ + predep_objects_RC \ + postdep_objects_RC \ + predeps_RC \ + postdeps_RC \ + compiler_lib_search_path_RC \ + archive_cmds_RC \ + archive_expsym_cmds_RC \ + postinstall_cmds_RC \ + postuninstall_cmds_RC \ + old_archive_from_expsyms_cmds_RC \ + allow_undefined_flag_RC \ + no_undefined_flag_RC \ + export_symbols_cmds_RC \ + hardcode_libdir_flag_spec_RC \ + hardcode_libdir_flag_spec_ld_RC \ + hardcode_libdir_separator_RC \ + hardcode_automatic_RC \ + module_cmds_RC \ + module_expsym_cmds_RC \ + lt_cv_prog_compiler_c_o_RC \ + exclude_expsyms_RC \ + include_expsyms_RC; do + + case $var in + old_archive_cmds_RC | \ + old_archive_from_new_cmds_RC | \ + archive_cmds_RC | \ + archive_expsym_cmds_RC | \ + module_cmds_RC | \ + module_expsym_cmds_RC | \ + old_archive_from_expsyms_cmds_RC | \ + export_symbols_cmds_RC | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="$ofile" + + cat <<__EOF__ >> "$cfgfile" +# ### BEGIN LIBTOOL TAG CONFIG: $tagname + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_RC + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_compiler_RC + +# Is the compiler the GNU C compiler? +with_gcc=$GCC_RC + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD_RC + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_RC + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_RC +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_RC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds_RC +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds_RC +archive_expsym_cmds=$lt_archive_expsym_cmds_RC +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds_RC +module_expsym_cmds=$lt_module_expsym_cmds_RC + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects_RC + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects_RC + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps_RC + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps_RC + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_RC + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_RC + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_RC + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_RC + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct_RC + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L_RC + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic_RC + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_RC + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path_RC" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols_RC + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_RC + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_RC + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_RC + +# ### END LIBTOOL TAG CONFIG: $tagname + +__EOF__ + + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + ;; + + *) + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 +echo "$as_me: error: Unsupported tag name: $tagname" >&2;} + { (exit 1); exit 1; }; } + ;; + esac + + # Append the new tag name to the list of available tags. + if test -n "$tagname" ; then + available_tags="$available_tags $tagname" + fi + fi + done + IFS="$lt_save_ifs" + + # Now substitute the updated list of available tags. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then + mv "${ofile}T" "$ofile" + chmod +x "$ofile" + else + rm -f "${ofile}T" + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 +echo "$as_me: error: unable to update list of available tagged configurations." >&2;} + { (exit 1); exit 1; }; } + fi +fi + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + +# Prevent multiple expansion + + + + + + + + + + + + + + + + + + + + + +echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 +echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 +if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_create (); +int +main () +{ +pthread_create (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_pthread_pthread_create=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_pthread_pthread_create=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 +echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 +if test $ac_cv_lib_pthread_pthread_create = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPTHREAD 1 +_ACEOF + + LIBS="-lpthread $LIBS" + +else + +echo "$as_me:$LINENO: checking for cthread_fork in -lthreads" >&5 +echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6 +if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lthreads $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char cthread_fork (); +int +main () +{ +cthread_fork (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_threads_cthread_fork=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_threads_cthread_fork=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_threads_cthread_fork" >&5 +echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6 +if test $ac_cv_lib_threads_cthread_fork = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBTHREADS 1 +_ACEOF + + LIBS="-lthreads $LIBS" + +fi + +fi + + + + + MKINSTALLDIRS= + if test -n "$ac_aux_dir"; then + case "$ac_aux_dir" in + /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; + *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; + esac + fi + if test -z "$MKINSTALLDIRS"; then + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" + fi + + + + echo "$as_me:$LINENO: checking whether NLS is requested" >&5 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 + # Check whether --enable-nls or --disable-nls was given. +if test "${enable_nls+set}" = set; then + enableval="$enable_nls" + USE_NLS=$enableval +else + USE_NLS=yes +fi; + echo "$as_me:$LINENO: result: $USE_NLS" >&5 +echo "${ECHO_T}$USE_NLS" >&6 + + + + + + +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then + ac_executable_p="test -x" +else + ac_executable_p="test -f" +fi +rm -f conf$$.file + +# Extract the first word of "msgfmt", so it can be a program name with args. +set dummy msgfmt; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_MSGFMT+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case "$MSGFMT" in + [\\/]* | ?:[\\/]*) + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. + ;; + *) + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$ac_save_IFS" + test -z "$ac_dir" && ac_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then + echo "$as_me: trying $ac_dir/$ac_word..." >&5 + if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && + (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" + break 2 + fi + fi + done + done + IFS="$ac_save_IFS" + test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" + ;; +esac +fi +MSGFMT="$ac_cv_path_MSGFMT" +if test "$MSGFMT" != ":"; then + echo "$as_me:$LINENO: result: $MSGFMT" >&5 +echo "${ECHO_T}$MSGFMT" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + # Extract the first word of "gmsgfmt", so it can be a program name with args. +set dummy gmsgfmt; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_GMSGFMT+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $GMSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" + ;; +esac +fi +GMSGFMT=$ac_cv_path_GMSGFMT + +if test -n "$GMSGFMT"; then + echo "$as_me:$LINENO: result: $GMSGFMT" >&5 +echo "${ECHO_T}$GMSGFMT" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + + +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then + ac_executable_p="test -x" +else + ac_executable_p="test -f" +fi +rm -f conf$$.file + +# Extract the first word of "xgettext", so it can be a program name with args. +set dummy xgettext; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_XGETTEXT+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case "$XGETTEXT" in + [\\/]* | ?:[\\/]*) + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. + ;; + *) + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$ac_save_IFS" + test -z "$ac_dir" && ac_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then + echo "$as_me: trying $ac_dir/$ac_word..." >&5 + if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && + (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" + break 2 + fi + fi + done + done + IFS="$ac_save_IFS" + test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" + ;; +esac +fi +XGETTEXT="$ac_cv_path_XGETTEXT" +if test "$XGETTEXT" != ":"; then + echo "$as_me:$LINENO: result: $XGETTEXT" >&5 +echo "${ECHO_T}$XGETTEXT" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + rm -f messages.po + + +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then + ac_executable_p="test -x" +else + ac_executable_p="test -f" +fi +rm -f conf$$.file + +# Extract the first word of "msgmerge", so it can be a program name with args. +set dummy msgmerge; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_MSGMERGE+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case "$MSGMERGE" in + [\\/]* | ?:[\\/]*) + ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. + ;; + *) + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$ac_save_IFS" + test -z "$ac_dir" && ac_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then + echo "$as_me: trying $ac_dir/$ac_word..." >&5 + if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then + ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" + break 2 + fi + fi + done + done + IFS="$ac_save_IFS" + test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" + ;; +esac +fi +MSGMERGE="$ac_cv_path_MSGMERGE" +if test "$MSGMERGE" != ":"; then + echo "$as_me:$LINENO: result: $MSGMERGE" >&5 +echo "${ECHO_T}$MSGMERGE" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + + if test "$GMSGFMT" != ":"; then + if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && + (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + : ; + else + GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` + echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 +echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 + GMSGFMT=":" + fi + fi + + if test "$XGETTEXT" != ":"; then + if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && + (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + : ; + else + echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 +echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 + XGETTEXT=":" + fi + rm -f messages.po + fi + + ac_config_commands="$ac_config_commands default-1" + + + + echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5 +echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6 +if test "${ac_cv_gnu_library_2+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ >= 2) + Lucky GNU user + #endif +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then + ac_cv_gnu_library_2=yes +else + ac_cv_gnu_library_2=no +fi +rm -f conftest* + + + +fi +echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5 +echo "${ECHO_T}$ac_cv_gnu_library_2" >&6 + + GLIBC2="$ac_cv_gnu_library_2" + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + echo "$as_me:$LINENO: result: $RANLIB" >&5 +echo "${ECHO_T}$RANLIB" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 +echo "${ECHO_T}$ac_ct_RANLIB" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + RANLIB=$ac_ct_RANLIB +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +echo "$as_me:$LINENO: checking for library containing strerror" >&5 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 +if test "${ac_cv_search_strerror+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_func_search_save_LIBS=$LIBS +ac_cv_search_strerror=no +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strerror (); +int +main () +{ +strerror (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_search_strerror="none required" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test "$ac_cv_search_strerror" = no; then + for ac_lib in cposix; do + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strerror (); +int +main () +{ +strerror (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_search_strerror="-l$ac_lib" +break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + done +fi +LIBS=$ac_func_search_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 +echo "${ECHO_T}$ac_cv_search_strerror" >&6 +if test "$ac_cv_search_strerror" != no; then + test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" + +fi + +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 +if test "${ac_cv_c_const+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +/* FIXME: Include the comments suggested by Paul. */ +#ifndef __cplusplus + /* Ultrix mips cc rejects this. */ + typedef int charset[2]; + const charset x; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *ccp; + char **p; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + ccp = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++ccp; + p = (char**) ccp; + ccp = (char const *const *) p; + { /* SCO 3.2v4 cc rejects this. */ + char *t; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; }; + struct s *b; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + } +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_c_const=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_c_const=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 +echo "${ECHO_T}$ac_cv_c_const" >&6 +if test $ac_cv_c_const = no; then + +cat >>confdefs.h <<\_ACEOF +#define const +_ACEOF + +fi + + + echo "$as_me:$LINENO: checking for signed" >&5 +echo $ECHO_N "checking for signed... $ECHO_C" >&6 +if test "${bh_cv_c_signed+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +signed char x; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + bh_cv_c_signed=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +bh_cv_c_signed=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 +echo "${ECHO_T}$bh_cv_c_signed" >&6 + if test $bh_cv_c_signed = no; then + +cat >>confdefs.h <<\_ACEOF +#define signed +_ACEOF + + fi + +echo "$as_me:$LINENO: checking for inline" >&5 +echo $ECHO_N "checking for inline... $ECHO_C" >&6 +if test "${ac_cv_c_inline+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_c_inline=$ac_kw; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done + +fi +echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 +echo "${ECHO_T}$ac_cv_c_inline" >&6 + + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + +echo "$as_me:$LINENO: checking for off_t" >&5 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6 +if test "${ac_cv_type_off_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +if ((off_t *) 0) + return 0; +if (sizeof (off_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_off_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_off_t=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 +echo "${ECHO_T}$ac_cv_type_off_t" >&6 +if test $ac_cv_type_off_t = yes; then + : +else + +cat >>confdefs.h <<_ACEOF +#define off_t long +_ACEOF + +fi + +echo "$as_me:$LINENO: checking for size_t" >&5 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6 +if test "${ac_cv_type_size_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +if ((size_t *) 0) + return 0; +if (sizeof (size_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_size_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_size_t=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 +echo "${ECHO_T}$ac_cv_type_size_t" >&6 +if test $ac_cv_type_size_t = yes; then + : +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned +_ACEOF + +fi + + + echo "$as_me:$LINENO: checking for long long" >&5 +echo $ECHO_N "checking for long long... $ECHO_C" >&6 +if test "${ac_cv_type_long_long+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +long long ll = 1LL; int i = 63; +int +main () +{ +long long llmax = (long long) -1; + return ll << i | ll >> i | llmax / ll | llmax % ll; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_long_long=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_long_long=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 +echo "${ECHO_T}$ac_cv_type_long_long" >&6 + if test $ac_cv_type_long_long = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_LONG_LONG 1 +_ACEOF + + fi + + + echo "$as_me:$LINENO: checking for long double" >&5 +echo $ECHO_N "checking for long double... $ECHO_C" >&6 +if test "${gt_cv_c_long_double+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$GCC" = yes; then + gt_cv_c_long_double=yes + else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + /* The Stardent Vistra knows sizeof(long double), but does not support it. */ + long double foo = 0.0; + /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ + int array [2*(sizeof(long double) >= sizeof(double)) - 1]; + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_c_long_double=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_c_long_double=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + fi +fi +echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 +echo "${ECHO_T}$gt_cv_c_long_double" >&6 + if test $gt_cv_c_long_double = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_LONG_DOUBLE 1 +_ACEOF + + fi + + + echo "$as_me:$LINENO: checking for wchar_t" >&5 +echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 +if test "${gt_cv_c_wchar_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + wchar_t foo = (wchar_t)'\0'; +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_c_wchar_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_c_wchar_t=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 +echo "${ECHO_T}$gt_cv_c_wchar_t" >&6 + if test $gt_cv_c_wchar_t = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_WCHAR_T 1 +_ACEOF + + fi + + + echo "$as_me:$LINENO: checking for wint_t" >&5 +echo $ECHO_N "checking for wint_t... $ECHO_C" >&6 +if test "${gt_cv_c_wint_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + wint_t foo = (wchar_t)'\0'; +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_c_wint_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_c_wint_t=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 +echo "${ECHO_T}$gt_cv_c_wint_t" >&6 + if test $gt_cv_c_wint_t = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_WINT_T 1 +_ACEOF + + fi + + + echo "$as_me:$LINENO: checking for inttypes.h" >&5 +echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 +if test "${gl_cv_header_inttypes_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +int +main () +{ +uintmax_t i = (uintmax_t) -1; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gl_cv_header_inttypes_h=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gl_cv_header_inttypes_h=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 +echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6 + if test $gl_cv_header_inttypes_h = yes; then + +cat >>confdefs.h <<_ACEOF +#define HAVE_INTTYPES_H_WITH_UINTMAX 1 +_ACEOF + + fi + + + echo "$as_me:$LINENO: checking for stdint.h" >&5 +echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 +if test "${gl_cv_header_stdint_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +int +main () +{ +uintmax_t i = (uintmax_t) -1; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gl_cv_header_stdint_h=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gl_cv_header_stdint_h=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 +echo "${ECHO_T}$gl_cv_header_stdint_h" >&6 + if test $gl_cv_header_stdint_h = yes; then + +cat >>confdefs.h <<_ACEOF +#define HAVE_STDINT_H_WITH_UINTMAX 1 +_ACEOF + + fi + + + + + echo "$as_me:$LINENO: checking for intmax_t" >&5 +echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 +if test "${gt_cv_c_intmax_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include +#if HAVE_STDINT_H_WITH_UINTMAX +#include +#endif +#if HAVE_INTTYPES_H_WITH_UINTMAX +#include +#endif + +int +main () +{ +intmax_t x = -1; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_c_intmax_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_c_intmax_t=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 +echo "${ECHO_T}$gt_cv_c_intmax_t" >&6 + if test $gt_cv_c_intmax_t = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_INTMAX_T 1 +_ACEOF + + fi + + + + echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 +echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6 +if test "${gt_cv_func_printf_posix+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test "$cross_compiling" = yes; then + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ + notposix +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "notposix" >/dev/null 2>&1; then + gt_cv_func_printf_posix="guessing no" +else + gt_cv_func_printf_posix="guessing yes" +fi +rm -f conftest* + + +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include +/* The string "%2$d %1$d", with dollar characters protected from the shell's + dollar expansion (possibly an autoconf bug). */ +static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; +static char buf[100]; +int main () +{ + sprintf (buf, format, 33, 55); + return (strcmp (buf, "55 33") != 0); +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_func_printf_posix=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +gt_cv_func_printf_posix=no +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + +fi +echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 +echo "${ECHO_T}$gt_cv_func_printf_posix" >&6 + case $gt_cv_func_printf_posix in + *yes) + +cat >>confdefs.h <<\_ACEOF +#define HAVE_POSIX_PRINTF 1 +_ACEOF + + ;; + esac + +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +echo "$as_me:$LINENO: checking for working alloca.h" >&5 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 +if test "${ac_cv_working_alloca_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_working_alloca_h=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_working_alloca_h=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 +if test $ac_cv_working_alloca_h = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_ALLOCA_H 1 +_ACEOF + +fi + +echo "$as_me:$LINENO: checking for alloca" >&5 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6 +if test "${ac_cv_func_alloca_works+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# if HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +# endif +#endif + +int +main () +{ +char *p = (char *) alloca (1); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_alloca_works=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_alloca_works=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 + +if test $ac_cv_func_alloca_works = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_ALLOCA 1 +_ACEOF + +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. + +ALLOCA=alloca.$ac_objext + +cat >>confdefs.h <<\_ACEOF +#define C_ALLOCA 1 +_ACEOF + + +echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 +if test "${ac_cv_os_cray+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#if defined(CRAY) && ! defined(CRAY2) +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* + +fi +echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 +echo "${ECHO_T}$ac_cv_os_cray" >&6 +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + + break +fi + + done +fi + +echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 +if test "${ac_cv_c_stack_direction+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + ac_cv_c_stack_direction=0 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +int +find_stack_direction () +{ + static char *addr = 0; + auto char dummy; + if (addr == 0) + { + addr = &dummy; + return find_stack_direction (); + } + else + return (&dummy > addr) ? 1 : -1; +} + +int +main () +{ + exit (find_stack_direction () < 0); +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_c_stack_direction=1 +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +ac_cv_c_stack_direction=-1 +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 + +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF + + +fi + + + +for ac_header in stdlib.h unistd.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ------------------------------------------ ## +## Report this to the AC_PACKAGE_NAME lists. ## +## ------------------------------------------ ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_func in getpagesize +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +echo "$as_me:$LINENO: checking for working mmap" >&5 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + ac_cv_func_mmap_fixed_mapped=no +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +/* malloc might have been renamed as rpl_malloc. */ +#undef malloc + +/* Thanks to Mike Haertel and Jim Avera for this test. + Here is a matrix of mmap possibilities: + mmap private not fixed + mmap private fixed at somewhere currently unmapped + mmap private fixed at somewhere already mapped + mmap shared not fixed + mmap shared fixed at somewhere currently unmapped + mmap shared fixed at somewhere already mapped + For private mappings, we should verify that changes cannot be read() + back from the file, nor mmap's back from the file at a different + address. (There have been systems where private was not correctly + implemented like the infamous i386 svr4.0, and systems where the + VM page cache was not coherent with the file system buffer cache + like early versions of FreeBSD and possibly contemporary NetBSD.) + For shared mappings, we should conversely verify that changes get + propagated back to all the places they're supposed to be. + + Grep wants private fixed already mapped. + The main things grep needs to know about mmap are: + * does it exist and is it safe to write into the mmap'd area + * how to use it (BSD variants) */ + +#include +#include + +#if !STDC_HEADERS && !HAVE_STDLIB_H +char *malloc (); +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#if !HAVE_GETPAGESIZE +/* Assume that all systems that can run configure have sys/param.h. */ +# if !HAVE_SYS_PARAM_H +# define HAVE_SYS_PARAM_H 1 +# endif + +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# if HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +int +main () +{ + char *data, *data2, *data3; + int i, pagesize; + int fd; + + pagesize = getpagesize (); + + /* First, make a file with some known garbage in it. */ + data = (char *) malloc (pagesize); + if (!data) + exit (1); + for (i = 0; i < pagesize; ++i) + *(data + i) = rand (); + umask (0); + fd = creat ("conftest.mmap", 0600); + if (fd < 0) + exit (1); + if (write (fd, data, pagesize) != pagesize) + exit (1); + close (fd); + + /* Next, try to mmap the file at a fixed address which already has + something else allocated at it. If we can, also make sure that + we see the same garbage. */ + fd = open ("conftest.mmap", O_RDWR); + if (fd < 0) + exit (1); + data2 = (char *) malloc (2 * pagesize); + if (!data2) + exit (1); + data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + exit (1); + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + exit (1); + + /* Finally, make sure that changes to the mapped area do not + percolate back to the file as seen by read(). (This is a bug on + some variants of i386 svr4.0.) */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = (char *) malloc (pagesize); + if (!data3) + exit (1); + if (read (fd, data3, pagesize) != pagesize) + exit (1); + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + exit (1); + close (fd); + exit (0); +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_mmap_fixed_mapped=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +ac_cv_func_mmap_fixed_mapped=no +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 +if test $ac_cv_func_mmap_fixed_mapped = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_MMAP 1 +_ACEOF + +fi +rm -f conftest.mmap + + + echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 +echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 +if test "${ac_cv_gnu_library_2_1+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) + Lucky GNU user + #endif +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then + ac_cv_gnu_library_2_1=yes +else + ac_cv_gnu_library_2_1=no +fi +rm -f conftest* + + + +fi +echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 +echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 + + GLIBC21="$ac_cv_gnu_library_2_1" + + + + + echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 +echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 +if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test "$cross_compiling" = yes; then + + # Guess based on the CPU. + case "$host_cpu" in + alpha* | i3456786 | m68k | s390*) + gt_cv_int_divbyzero_sigfpe="guessing yes";; + *) + gt_cv_int_divbyzero_sigfpe="guessing no";; + esac + +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include + +static void +#ifdef __cplusplus +sigfpe_handler (int sig) +#else +sigfpe_handler (sig) int sig; +#endif +{ + /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ + exit (sig != SIGFPE); +} + +int x = 1; +int y = 0; +int z; +int nan; + +int main () +{ + signal (SIGFPE, sigfpe_handler); +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) + signal (SIGTRAP, sigfpe_handler); +#endif +/* Linux/SPARC yields signal SIGILL. */ +#if defined (__sparc__) && defined (__linux__) + signal (SIGILL, sigfpe_handler); +#endif + + z = x / y; + nan = y / y; + exit (1); +} + +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_int_divbyzero_sigfpe=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +gt_cv_int_divbyzero_sigfpe=no +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + +fi +echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 +echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 + case "$gt_cv_int_divbyzero_sigfpe" in + *yes) value=1;; + *) value=0;; + esac + +cat >>confdefs.h <<_ACEOF +#define INTDIV0_RAISES_SIGFPE $value +_ACEOF + + + + echo "$as_me:$LINENO: checking for unsigned long long" >&5 +echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 +if test "${ac_cv_type_unsigned_long_long+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +unsigned long long ull = 1ULL; int i = 63; +int +main () +{ +unsigned long long ullmax = (unsigned long long) -1; + return ull << i | ull >> i | ullmax / ull | ullmax % ull; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_unsigned_long_long=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_unsigned_long_long=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 +echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 + if test $ac_cv_type_unsigned_long_long = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_UNSIGNED_LONG_LONG 1 +_ACEOF + + fi + + + + + if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then + + test $ac_cv_type_unsigned_long_long = yes \ + && ac_type='unsigned long long' \ + || ac_type='unsigned long' + +cat >>confdefs.h <<_ACEOF +#define uintmax_t $ac_type +_ACEOF + + else + +cat >>confdefs.h <<\_ACEOF +#define HAVE_UINTMAX_T 1 +_ACEOF + + fi + + + echo "$as_me:$LINENO: checking for inttypes.h" >&5 +echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 +if test "${gt_cv_header_inttypes_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_header_inttypes_h=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_header_inttypes_h=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 +echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 + if test $gt_cv_header_inttypes_h = yes; then + +cat >>confdefs.h <<_ACEOF +#define HAVE_INTTYPES_H 1 +_ACEOF + + fi + + + + if test $gt_cv_header_inttypes_h = yes; then + echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 +echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 +if test "${gt_cv_inttypes_pri_broken+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#ifdef PRId32 +char *p = PRId32; +#endif + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_inttypes_pri_broken=no +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_inttypes_pri_broken=yes +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 +echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 + fi + if test "$gt_cv_inttypes_pri_broken" = yes; then + +cat >>confdefs.h <<_ACEOF +#define PRI_MACROS_BROKEN 1 +_ACEOF + + fi + + + +for ac_header in stdint.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ------------------------------------------ ## +## Report this to the AC_PACKAGE_NAME lists. ## +## ------------------------------------------ ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 +echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 + result= + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#if HAVE_STDINT_H +#include +#endif +#ifdef SIZE_MAX +Found it +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Found it" >/dev/null 2>&1; then + result=yes +fi +rm -f conftest* + + if test -z "$result"; then + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo= ac_hi= +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr '(' $ac_mid ')' + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) res_hi=$ac_lo;; +'') result=? ;; +esac +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +long longval () { return ~(size_t)0 / 10; } +unsigned long ulongval () { return ~(size_t)0 / 10; } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if ((~(size_t)0 / 10) < 0) + { + long i = longval (); + if (i != (~(size_t)0 / 10)) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != (~(size_t)0 / 10)) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + res_hi=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +result=? +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo= ac_hi= +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr '(' $ac_mid ')' + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) res_lo=$ac_lo;; +'') result=? ;; +esac +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +long longval () { return ~(size_t)0 % 10; } +unsigned long ulongval () { return ~(size_t)0 % 10; } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if ((~(size_t)0 % 10) < 0) + { + long i = longval (); + if (i != (~(size_t)0 % 10)) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != (~(size_t)0 % 10)) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + res_lo=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +result=? +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo= ac_hi= +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr '(' $ac_mid ')' + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) fits_in_uint=$ac_lo;; +'') result=? ;; +esac +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +long longval () { return sizeof (size_t) <= sizeof (unsigned int); } +unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) + { + long i = longval (); + if (i != (sizeof (size_t) <= sizeof (unsigned int))) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != (sizeof (size_t) <= sizeof (unsigned int))) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + fits_in_uint=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +result=? +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val + if test "$fits_in_uint" = 1; then + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + extern size_t foo; + extern unsigned long foo; + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + fits_in_uint=0 +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test -z "$result"; then + if test "$fits_in_uint" = 1; then + result="$res_hi$res_lo"U + else + result="$res_hi$res_lo"UL + fi + else + result='~(size_t)0' + fi + fi + echo "$as_me:$LINENO: result: $result" >&5 +echo "${ECHO_T}$result" >&6 + if test "$result" != yes; then + +cat >>confdefs.h <<_ACEOF +#define SIZE_MAX $result +_ACEOF + + fi + + + + + +for ac_header in stdint.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ------------------------------------------ ## +## Report this to the AC_PACKAGE_NAME lists. ## +## ------------------------------------------ ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 +echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6 +if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" + gt_save_LIBS="$LIBS" + LIBS="$LIBS -framework CoreFoundation" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +CFPreferencesCopyAppValue(NULL, NULL) + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_func_CFPreferencesCopyAppValue=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_func_CFPreferencesCopyAppValue=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS" +fi +echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 +echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6 + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 +_ACEOF + + fi + echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 +echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6 +if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" + gt_save_LIBS="$LIBS" + LIBS="$LIBS -framework CoreFoundation" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +CFLocaleCopyCurrent(); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_func_CFLocaleCopyCurrent=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_func_CFLocaleCopyCurrent=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS" +fi +echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 +echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6 + if test $gt_cv_func_CFLocaleCopyCurrent = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_CFLOCALECOPYCURRENT 1 +_ACEOF + + fi + INTL_MACOSX_LIBS= + if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + fi + + + + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" + + +# Check whether --with-gnu-ld or --without-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then + withval="$with_gnu_ld" + test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi; +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + echo "$as_me:$LINENO: checking for ld used by GCC" >&5 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | [A-Za-z]:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + echo "$as_me:$LINENO: checking for GNU ld" >&5 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 +else + echo "$as_me:$LINENO: checking for non-GNU ld" >&5 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 +fi +if test "${acl_cv_path_LD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break ;; + *) + test "$with_gnu_ld" != yes && break ;; + esac + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi +fi + +LD="$acl_cv_path_LD" +if test -n "$LD"; then + echo "$as_me:$LINENO: result: $LD" >&5 +echo "${ECHO_T}$LD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} + { (exit 1); exit 1; }; } +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 +if test "${acl_cv_prog_gnu_ld+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 &5 +echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 +with_gnu_ld=$acl_cv_prog_gnu_ld + + + + + echo "$as_me:$LINENO: checking for shared library run path origin" >&5 +echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 +if test "${acl_cv_rpath+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + +fi +echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 +echo "${ECHO_T}$acl_cv_rpath" >&6 + wl="$acl_cv_wl" + libext="$acl_cv_libext" + shlibext="$acl_cv_shlibext" + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + hardcode_direct="$acl_cv_hardcode_direct" + hardcode_minus_L="$acl_cv_hardcode_minus_L" + # Check whether --enable-rpath or --disable-rpath was given. +if test "${enable_rpath+set}" = set; then + enableval="$enable_rpath" + : +else + enable_rpath=yes +fi; + + + + + + + + use_additional=yes + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + +# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. +if test "${with_libiconv_prefix+set}" = set; then + withval="$with_libiconv_prefix" + + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi + +fi; + LIBICONV= + LTLIBICONV= + INCICONV= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='iconv ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + if test $use_additional = yes; then + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then + found_dir="$additional_libdir" + found_so="$additional_libdir/lib$name.$shlibext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + else + if test -f "$additional_libdir/lib$name.$libext"; then + found_dir="$additional_libdir" + found_a="$additional_libdir/lib$name.$libext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then + found_dir="$dir" + found_so="$dir/lib$name.$shlibext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + else + if test -f "$dir/lib$name.$libext"; then + found_dir="$dir" + found_a="$dir/lib$name.$libext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$hardcode_direct" = yes; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + else + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" + fi + if test "$hardcode_minus_L" != no; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + else + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" + else + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */lib | */lib/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" + ;; + esac + done + fi + else + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" + done + fi + + + + + + + + + echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 +echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 +if test "${ac_cv_type_ptrdiff_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +if ((ptrdiff_t *) 0) + return 0; +if (sizeof (ptrdiff_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_ptrdiff_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_ptrdiff_t=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 +echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 +if test $ac_cv_type_ptrdiff_t = yes; then + : +else + +cat >>confdefs.h <<\_ACEOF +#define ptrdiff_t long +_ACEOF + + +fi + + + + + + + + + + + +for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ +stdlib.h string.h unistd.h sys/param.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ------------------------------------------ ## +## Report this to the AC_PACKAGE_NAME lists. ## +## ------------------------------------------ ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + + + + + + + + + + + + + + + + + + + +for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ +mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ +strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ +__fsetlocking +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 +echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6 +if test "${ac_cv_have_decl__snprintf+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + +#ifndef _snprintf + char *p = (char *) _snprintf; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_have_decl__snprintf=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_have_decl__snprintf=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 +echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6 + if test $ac_cv_have_decl__snprintf = yes; then + gt_value=1 + else + gt_value=0 + fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL__SNPRINTF $gt_value +_ACEOF + + + + echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 +echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6 +if test "${ac_cv_have_decl__snwprintf+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + +#ifndef _snwprintf + char *p = (char *) _snwprintf; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_have_decl__snwprintf=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_have_decl__snwprintf=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 +echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6 + if test $ac_cv_have_decl__snwprintf = yes; then + gt_value=1 + else + gt_value=0 + fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL__SNWPRINTF $gt_value +_ACEOF + + + + + echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 +echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 +if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + +#ifndef feof_unlocked + char *p = (char *) feof_unlocked; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_have_decl_feof_unlocked=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_have_decl_feof_unlocked=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 +echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 + if test $ac_cv_have_decl_feof_unlocked = yes; then + gt_value=1 + else + gt_value=0 + fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FEOF_UNLOCKED $gt_value +_ACEOF + + + + echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 +echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 +if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + +#ifndef fgets_unlocked + char *p = (char *) fgets_unlocked; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_have_decl_fgets_unlocked=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_have_decl_fgets_unlocked=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 +echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 + if test $ac_cv_have_decl_fgets_unlocked = yes; then + gt_value=1 + else + gt_value=0 + fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FGETS_UNLOCKED $gt_value +_ACEOF + + + + echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 +echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 +if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + +#ifndef getc_unlocked + char *p = (char *) getc_unlocked; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_have_decl_getc_unlocked=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_have_decl_getc_unlocked=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 +echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 + if test $ac_cv_have_decl_getc_unlocked = yes; then + gt_value=1 + else + gt_value=0 + fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETC_UNLOCKED $gt_value +_ACEOF + + + + case $gt_cv_func_printf_posix in + *yes) HAVE_POSIX_PRINTF=1 ;; + *) HAVE_POSIX_PRINTF=0 ;; + esac + + if test "$ac_cv_func_asprintf" = yes; then + HAVE_ASPRINTF=1 + else + HAVE_ASPRINTF=0 + fi + + if test "$ac_cv_func_snprintf" = yes; then + HAVE_SNPRINTF=1 + else + HAVE_SNPRINTF=0 + fi + + if test "$ac_cv_func_wprintf" = yes; then + HAVE_WPRINTF=1 + else + HAVE_WPRINTF=0 + fi + + + + + + + + am_save_CPPFLAGS="$CPPFLAGS" + + for element in $INCICONV; do + haveit= + for x in $CPPFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done + + + echo "$as_me:$LINENO: checking for iconv" >&5 +echo $ECHO_N "checking for iconv... $ECHO_C" >&6 +if test "${am_cv_func_iconv+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + am_cv_func_iconv="no, consider installing GNU libiconv" + am_cv_lib_iconv=no + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +int +main () +{ +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + am_cv_func_iconv=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$am_cv_func_iconv" != yes; then + am_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +int +main () +{ +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + am_cv_lib_iconv=yes + am_cv_func_iconv=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$am_save_LIBS" + fi + +fi +echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 +echo "${ECHO_T}$am_cv_func_iconv" >&6 + if test "$am_cv_func_iconv" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_ICONV 1 +_ACEOF + + fi + if test "$am_cv_lib_iconv" = yes; then + echo "$as_me:$LINENO: checking how to link with libiconv" >&5 +echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 + echo "$as_me:$LINENO: result: $LIBICONV" >&5 +echo "${ECHO_T}$LIBICONV" >&6 + else + CPPFLAGS="$am_save_CPPFLAGS" + LIBICONV= + LTLIBICONV= + fi + + + + if test "$am_cv_func_iconv" = yes; then + echo "$as_me:$LINENO: checking for iconv declaration" >&5 +echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 + if test "${am_cv_proto_iconv+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(__cplusplus) +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); +#else +size_t iconv(); +#endif + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + am_cv_proto_iconv_arg1="" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +am_cv_proto_iconv_arg1="const" +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" +fi + + am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` + echo "$as_me:$LINENO: result: ${ac_t:- + }$am_cv_proto_iconv" >&5 +echo "${ECHO_T}${ac_t:- + }$am_cv_proto_iconv" >&6 + +cat >>confdefs.h <<_ACEOF +#define ICONV_CONST $am_cv_proto_iconv_arg1 +_ACEOF + + fi + + + echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 +echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 +if test "${am_cv_langinfo_codeset+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +char* cs = nl_langinfo(CODESET); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + am_cv_langinfo_codeset=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +am_cv_langinfo_codeset=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi +echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 +echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 + if test $am_cv_langinfo_codeset = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_LANGINFO_CODESET 1 +_ACEOF + + fi + + if test $ac_cv_header_locale_h = yes; then + + echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 +if test "${gt_cv_val_LC_MESSAGES+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +return LC_MESSAGES + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_val_LC_MESSAGES=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_val_LC_MESSAGES=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5 +echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6 + if test $gt_cv_val_LC_MESSAGES = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_LC_MESSAGES 1 +_ACEOF + + fi + + fi + + if test -n "$INTL_MACOSX_LIBS"; then + CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" + fi + + for ac_prog in bison +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_INTLBISON+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$INTLBISON"; then + ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_INTLBISON="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +INTLBISON=$ac_cv_prog_INTLBISON +if test -n "$INTLBISON"; then + echo "$as_me:$LINENO: result: $INTLBISON" >&5 +echo "${ECHO_T}$INTLBISON" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$INTLBISON" && break +done + + if test -z "$INTLBISON"; then + ac_verc_fail=yes + else + echo "$as_me:$LINENO: checking version of bison" >&5 +echo $ECHO_N "checking version of bison... $ECHO_C" >&6 + ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` + case $ac_prog_version in + '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; + 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) + ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; + *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; + esac + echo "$as_me:$LINENO: result: $ac_prog_version" >&5 +echo "${ECHO_T}$ac_prog_version" >&6 + fi + if test $ac_verc_fail = yes; then + INTLBISON=: + fi + + + + + + + + + + + + + + + + + echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 +echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6 +if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" + gt_save_LIBS="$LIBS" + LIBS="$LIBS -framework CoreFoundation" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +CFPreferencesCopyAppValue(NULL, NULL) + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_func_CFPreferencesCopyAppValue=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_func_CFPreferencesCopyAppValue=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS" +fi +echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 +echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6 + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 +_ACEOF + + fi + echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 +echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6 +if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" + gt_save_LIBS="$LIBS" + LIBS="$LIBS -framework CoreFoundation" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +CFLocaleCopyCurrent(); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_func_CFLocaleCopyCurrent=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_func_CFLocaleCopyCurrent=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS" +fi +echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 +echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6 + if test $gt_cv_func_CFLocaleCopyCurrent = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_CFLOCALECOPYCURRENT 1 +_ACEOF + + fi + INTL_MACOSX_LIBS= + if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + fi + + + + + echo "$as_me:$LINENO: checking whether NLS is requested" >&5 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 + # Check whether --enable-nls or --disable-nls was given. +if test "${enable_nls+set}" = set; then + enableval="$enable_nls" + USE_NLS=$enableval +else + USE_NLS=yes +fi; + echo "$as_me:$LINENO: result: $USE_NLS" >&5 +echo "${ECHO_T}$USE_NLS" >&6 + + + + + BUILD_INCLUDED_LIBINTL=no + USE_INCLUDED_LIBINTL=no + + LIBINTL= + LTLIBINTL= + POSUB= + + if test "$USE_NLS" = "yes"; then + gt_use_preinstalled_gnugettext=no + + echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 +echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 + +# Check whether --with-included-gettext or --without-included-gettext was given. +if test "${with_included_gettext+set}" = set; then + withval="$with_included_gettext" + nls_cv_force_use_gnu_gettext=$withval +else + nls_cv_force_use_gnu_gettext=no +fi; + echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 +echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 + + nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" + if test "$nls_cv_force_use_gnu_gettext" != "yes"; then + + + + + + + echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 +echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 +if test "${gt_cv_func_gnugettext1_libc+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +extern int _nl_msg_cat_cntr; +extern int *_nl_domain_bindings; +int +main () +{ +bindtextdomain ("", ""); +return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_func_gnugettext1_libc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_func_gnugettext1_libc=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 +echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 + + if test "$gt_cv_func_gnugettext1_libc" != "yes"; then + + + + use_additional=yes + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + +# Check whether --with-libintl-prefix or --without-libintl-prefix was given. +if test "${with_libintl_prefix+set}" = set; then + withval="$with_libintl_prefix" + + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi + +fi; + LIBINTL= + LTLIBINTL= + INCINTL= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='intl ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + if test $use_additional = yes; then + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then + found_dir="$additional_libdir" + found_so="$additional_libdir/lib$name.$shlibext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + else + if test -f "$additional_libdir/lib$name.$libext"; then + found_dir="$additional_libdir" + found_a="$additional_libdir/lib$name.$libext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then + found_dir="$dir" + found_so="$dir/lib$name.$shlibext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + else + if test -f "$dir/lib$name.$libext"; then + found_dir="$dir" + found_a="$dir/lib$name.$libext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$hardcode_direct" = yes; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + else + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" + fi + if test "$hardcode_minus_L" != no; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + else + LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" + else + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */lib | */lib/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" + ;; + esac + done + fi + else + LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" + done + fi + + echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 +echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 +if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCINTL" + gt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBINTL" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *); +int +main () +{ +bindtextdomain ("", ""); +return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gt_cv_func_gnugettext1_libintl=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +gt_cv_func_gnugettext1_libintl=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then + LIBS="$LIBS $LIBICONV" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *); +int +main () +{ +bindtextdomain ("", ""); +return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + LIBINTL="$LIBINTL $LIBICONV" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + gt_cv_func_gnugettext1_libintl=yes + +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS" +fi +echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 +echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 + fi + + if test "$gt_cv_func_gnugettext1_libc" = "yes" \ + || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ + && test "$PACKAGE" != gettext-runtime \ + && test "$PACKAGE" != gettext-tools; }; then + gt_use_preinstalled_gnugettext=yes + else + LIBINTL= + LTLIBINTL= + INCINTL= + fi + + + if test "$gt_use_preinstalled_gnugettext" != "yes"; then + nls_cv_use_gnu_gettext=yes + fi + fi + + if test "$nls_cv_use_gnu_gettext" = "yes"; then + BUILD_INCLUDED_LIBINTL=yes + USE_INCLUDED_LIBINTL=yes + LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" + LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" + LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` + fi + + CATOBJEXT= + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + CATOBJEXT=.gmo + fi + + + if test -n "$INTL_MACOSX_LIBS"; then + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" + LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" + fi + fi + + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + +cat >>confdefs.h <<\_ACEOF +#define ENABLE_NLS 1 +_ACEOF + + else + USE_NLS=no + fi + fi + + echo "$as_me:$LINENO: checking whether to use NLS" >&5 +echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 + echo "$as_me:$LINENO: result: $USE_NLS" >&5 +echo "${ECHO_T}$USE_NLS" >&6 + if test "$USE_NLS" = "yes"; then + echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 +echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then + gt_source="external libintl" + else + gt_source="libc" + fi + else + gt_source="included intl directory" + fi + echo "$as_me:$LINENO: result: $gt_source" >&5 +echo "${ECHO_T}$gt_source" >&6 + fi + + if test "$USE_NLS" = "yes"; then + + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then + echo "$as_me:$LINENO: checking how to link with libintl" >&5 +echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 + echo "$as_me:$LINENO: result: $LIBINTL" >&5 +echo "${ECHO_T}$LIBINTL" >&6 + + for element in $INCINTL; do + haveit= + for x in $CPPFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done + + fi + + +cat >>confdefs.h <<\_ACEOF +#define HAVE_GETTEXT 1 +_ACEOF + + +cat >>confdefs.h <<\_ACEOF +#define HAVE_DCGETTEXT 1 +_ACEOF + + fi + + POSUB=po + fi + + + if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then + BUILD_INCLUDED_LIBINTL=yes + fi + + + + + + nls_cv_header_intl= + nls_cv_header_libgt= + + DATADIRNAME=share + + + INSTOBJEXT=.mo + + + GENCAT=gencat + + + INTLOBJS= + if test "$USE_INCLUDED_LIBINTL" = yes; then + INTLOBJS="\$(GETTOBJS)" + fi + + + INTL_LIBTOOL_SUFFIX_PREFIX= + + + + INTLLIBS="$LIBINTL" + + + + + + + + +for ac_header in locale.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ------------------------------------------ ## +## Report this to the AC_PACKAGE_NAME lists. ## +## ------------------------------------------ ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + ac_expanded=`( + test "x$prefix" = xNONE && prefix="$ac_default_prefix" + test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" + eval echo \""$datadir/locale"\" + )` + +cat >>confdefs.h <<_ACEOF +#define SP_LOCALE_DIR "$ac_expanded" +_ACEOF + + +SP_MESSAGE_DOMAIN="sp$SP_LIBOSP_CUR" + +cat >>confdefs.h <<_ACEOF +#define SP_MESSAGE_DOMAIN "$SP_MESSAGE_DOMAIN" +_ACEOF + + + +echo "$as_me:$LINENO: checking for ANSI C header files" >&5 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 +if test "${ac_cv_header_stdc+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_header_stdc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_header_stdc=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then + : +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then + : +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then + : +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + exit(2); + exit (0); +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +ac_cv_header_stdc=no +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 +echo "${ECHO_T}$ac_cv_header_stdc" >&6 +if test $ac_cv_header_stdc = yes; then + +cat >>confdefs.h <<\_ACEOF +#define STDC_HEADERS 1 +_ACEOF + +fi + + + + + +for ac_header in limits.h unistd.h io.h osfcn.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ------------------------------------------ ## +## Report this to the AC_PACKAGE_NAME lists. ## +## ------------------------------------------ ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + +for ac_header in new cassert +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ------------------------------------------ ## +## Report this to the AC_PACKAGE_NAME lists. ## +## ------------------------------------------ ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 +echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 +if test "${ac_cv_c_bigendian+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # See if sys/param.h defines the BYTE_ORDER macro. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include + +int +main () +{ +#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN + bogus endian macros +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + # It does; now see whether it defined to BIG_ENDIAN or not. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include + +int +main () +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_c_bigendian=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_c_bigendian=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +# It does not; compile a test program. +if test "$cross_compiling" = yes; then + # try to guess the endianness by grepping values into an object file + ac_cv_c_bigendian=unknown + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; +short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; +void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } +short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; +short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; +void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } +int +main () +{ + _ascii (); _ebcdic (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then + ac_cv_c_bigendian=yes +fi +if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi +fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +int +main () +{ + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long l; + char c[sizeof (long)]; + } u; + u.l = 1; + exit (u.c[sizeof (long) - 1] == 1); +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_c_bigendian=no +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +ac_cv_c_bigendian=yes +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 +echo "${ECHO_T}$ac_cv_c_bigendian" >&6 +case $ac_cv_c_bigendian in + yes) + +cat >>confdefs.h <<\_ACEOF +#define WORDS_BIGENDIAN 1 +_ACEOF + ;; + no) + ;; + *) + { { echo "$as_me:$LINENO: error: unknown endianness +presetting ac_cv_c_bigendian=no (or yes) will help" >&5 +echo "$as_me: error: unknown endianness +presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} + { (exit 1); exit 1; }; } ;; +esac + +echo "$as_me:$LINENO: checking for size_t" >&5 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6 +if test "${ac_cv_type_size_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +if ((size_t *) 0) + return 0; +if (sizeof (size_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_size_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_size_t=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 +echo "${ECHO_T}$ac_cv_type_size_t" >&6 +if test $ac_cv_type_size_t = yes; then + : +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned +_ACEOF + +fi + + +echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 +echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 +if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static struct stat ac_aggr; +if (ac_aggr.st_blksize) +return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_member_struct_stat_st_blksize=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static struct stat ac_aggr; +if (sizeof ac_aggr.st_blksize) +return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_member_struct_stat_st_blksize=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_member_struct_stat_st_blksize=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 +echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 +if test $ac_cv_member_struct_stat_st_blksize = yes; then + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 +_ACEOF + + +cat >>confdefs.h <<\_ACEOF +#define HAVE_ST_BLKSIZE 1 +_ACEOF + +fi + + +echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5 +echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6 +if test "${ac_cv_have_sig_atomic_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +sig_atomic_t x; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_have_sig_atomic_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_have_sig_atomic_t=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5 +echo "${ECHO_T}$ac_cv_have_sig_atomic_t" >&6 +if test "$ac_cv_have_sig_atomic_t" = "no" +then + echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 +echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 +if test "${ac_cv_type_sig_atomic_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +if ((sig_atomic_t *) 0) + return 0; +if (sizeof (sig_atomic_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_sig_atomic_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_sig_atomic_t=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 +echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 +if test $ac_cv_type_sig_atomic_t = yes; then + : +else + +cat >>confdefs.h <<_ACEOF +#define sig_atomic_t int +_ACEOF + +fi + +fi +echo "$as_me:$LINENO: checking for size_t" >&5 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6 +if test "${ac_cv_type_size_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +if ((size_t *) 0) + return 0; +if (sizeof (size_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_size_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_size_t=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 +echo "${ECHO_T}$ac_cv_type_size_t" >&6 + +echo "$as_me:$LINENO: checking size of size_t" >&5 +echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 +if test "${ac_cv_sizeof_size_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$ac_cv_type_size_t" = yes; then + # The cast to unsigned long works around a bug in the HP C Compiler + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. + # This bug is HP SR number 8606223364. + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo= ac_hi= +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr '(' $ac_mid ')' + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_size_t=$ac_lo;; +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (size_t), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } ;; +esac +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +long longval () { return (long) (sizeof (size_t)); } +unsigned long ulongval () { return (long) (sizeof (size_t)); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if (((long) (sizeof (size_t))) < 0) + { + long i = longval (); + if (i != ((long) (sizeof (size_t)))) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != ((long) (sizeof (size_t)))) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_size_t=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (size_t), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val +else + ac_cv_sizeof_size_t=0 +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 +echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t +_ACEOF + + +echo "$as_me:$LINENO: checking for unsigned int" >&5 +echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6 +if test "${ac_cv_type_unsigned_int+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +if ((unsigned int *) 0) + return 0; +if (sizeof (unsigned int)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_unsigned_int=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_unsigned_int=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5 +echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6 + +echo "$as_me:$LINENO: checking size of unsigned int" >&5 +echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6 +if test "${ac_cv_sizeof_unsigned_int+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$ac_cv_type_unsigned_int" = yes; then + # The cast to unsigned long works around a bug in the HP C Compiler + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. + # This bug is HP SR number 8606223364. + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo= ac_hi= +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr '(' $ac_mid ')' + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_unsigned_int=$ac_lo;; +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (unsigned int), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } ;; +esac +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +long longval () { return (long) (sizeof (unsigned int)); } +unsigned long ulongval () { return (long) (sizeof (unsigned int)); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if (((long) (sizeof (unsigned int))) < 0) + { + long i = longval (); + if (i != ((long) (sizeof (unsigned int)))) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != ((long) (sizeof (unsigned int)))) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_unsigned_int=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (unsigned int), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val +else + ac_cv_sizeof_unsigned_int=0 +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5 +echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6 +cat >>confdefs.h <<_ACEOF +#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int +_ACEOF + + +echo "$as_me:$LINENO: checking for unsigned short" >&5 +echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6 +if test "${ac_cv_type_unsigned_short+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +if ((unsigned short *) 0) + return 0; +if (sizeof (unsigned short)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_unsigned_short=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_unsigned_short=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5 +echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6 + +echo "$as_me:$LINENO: checking size of unsigned short" >&5 +echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6 +if test "${ac_cv_sizeof_unsigned_short+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$ac_cv_type_unsigned_short" = yes; then + # The cast to unsigned long works around a bug in the HP C Compiler + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. + # This bug is HP SR number 8606223364. + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo= ac_hi= +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr '(' $ac_mid ')' + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_unsigned_short=$ac_lo;; +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (unsigned short), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } ;; +esac +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +long longval () { return (long) (sizeof (unsigned short)); } +unsigned long ulongval () { return (long) (sizeof (unsigned short)); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if (((long) (sizeof (unsigned short))) < 0) + { + long i = longval (); + if (i != ((long) (sizeof (unsigned short)))) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != ((long) (sizeof (unsigned short)))) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_unsigned_short=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (unsigned short), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val +else + ac_cv_sizeof_unsigned_short=0 +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5 +echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6 +cat >>confdefs.h <<_ACEOF +#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short +_ACEOF + + +echo "$as_me:$LINENO: checking for wchar_t" >&5 +echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 +if test "${ac_cv_type_wchar_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + #include + #include + +int +main () +{ +if ((wchar_t *) 0) + return 0; +if (sizeof (wchar_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_wchar_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_wchar_t=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 +echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 + +echo "$as_me:$LINENO: checking size of wchar_t" >&5 +echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 +if test "${ac_cv_sizeof_wchar_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$ac_cv_type_wchar_t" = yes; then + # The cast to unsigned long works around a bug in the HP C Compiler + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. + # This bug is HP SR number 8606223364. + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + #include + #include + +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + #include + #include + +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + #include + #include + +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + #include + #include + +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo= ac_hi= +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + #include + #include + +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr '(' $ac_mid ')' + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_wchar_t=$ac_lo;; +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (wchar_t), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } ;; +esac +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + #include + #include + +long longval () { return (long) (sizeof (wchar_t)); } +unsigned long ulongval () { return (long) (sizeof (wchar_t)); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if (((long) (sizeof (wchar_t))) < 0) + { + long i = longval (); + if (i != ((long) (sizeof (wchar_t)))) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != ((long) (sizeof (wchar_t)))) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_wchar_t=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (wchar_t), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val +else + ac_cv_sizeof_wchar_t=0 +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 +echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 +cat >>confdefs.h <<_ACEOF +#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t +_ACEOF + + +echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5 +echo $ECHO_N "checking whether the compiler recognizes bool as a built-in type... $ECHO_C" >&6 +if test "${ac_cv_cxx_bool+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int f(int x){return 1;} +int f(char x){return 1;} +int f(bool x){return 1;} + +int +main () +{ +bool b = true; return f(b); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_cxx_bool=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_cxx_bool=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_bool" >&5 +echo "${ECHO_T}$ac_cv_cxx_bool" >&6 +if test "$ac_cv_cxx_bool" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_BOOL +_ACEOF + +fi + +if test "$ac_cv_cxx_bool" = yes; then + echo "$as_me:$LINENO: checking for bool" >&5 +echo $ECHO_N "checking for bool... $ECHO_C" >&6 +if test "${ac_cv_type_bool+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +if ((bool *) 0) + return 0; +if (sizeof (bool)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_bool=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_bool=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5 +echo "${ECHO_T}$ac_cv_type_bool" >&6 + +echo "$as_me:$LINENO: checking size of bool" >&5 +echo $ECHO_N "checking size of bool... $ECHO_C" >&6 +if test "${ac_cv_sizeof_bool+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$ac_cv_type_bool" = yes; then + # The cast to unsigned long works around a bug in the HP C Compiler + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. + # This bug is HP SR number 8606223364. + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (bool))) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo= ac_hi= +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo=`expr '(' $ac_mid ')' + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_bool=$ac_lo;; +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (bool), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } ;; +esac +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +long longval () { return (long) (sizeof (bool)); } +unsigned long ulongval () { return (long) (sizeof (bool)); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if (((long) (sizeof (bool))) < 0) + { + long i = longval (); + if (i != ((long) (sizeof (bool)))) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != ((long) (sizeof (bool)))) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_bool=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (bool), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (bool), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val +else + ac_cv_sizeof_bool=0 +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_sizeof_bool" >&5 +echo "${ECHO_T}$ac_cv_sizeof_bool" >&6 +cat >>confdefs.h <<_ACEOF +#define SIZEOF_BOOL $ac_cv_sizeof_bool +_ACEOF + + +fi +echo "$as_me:$LINENO: checking whether the compiler supports the mutable keyword" >&5 +echo $ECHO_N "checking whether the compiler supports the mutable keyword... $ECHO_C" >&6 +if test "${ac_cv_cxx_mutable+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +class A { mutable int i; + public: + int f (int n) const { i = n; return i; } + }; + +int +main () +{ +A a; return a.f (1); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_cxx_mutable=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_cxx_mutable=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_mutable" >&5 +echo "${ECHO_T}$ac_cv_cxx_mutable" >&6 +if test "$ac_cv_cxx_mutable" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_MUTABLE +_ACEOF + +fi + +echo "$as_me:$LINENO: checking whether the compiler recognizes typename" >&5 +echo $ECHO_N "checking whether the compiler recognizes typename... $ECHO_C" >&6 +if test "${ac_cv_cxx_typename+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +templateclass X {public:X(){}}; +int +main () +{ +X z; return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_cxx_typename=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_cxx_typename=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_typename" >&5 +echo "${ECHO_T}$ac_cv_cxx_typename" >&6 +if test "$ac_cv_cxx_typename" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_TYPENAME +_ACEOF + +fi + +echo "$as_me:$LINENO: checking whether the compiler accepts the new for scoping rules" >&5 +echo $ECHO_N "checking whether the compiler accepts the new for scoping rules... $ECHO_C" >&6 +if test "${ac_cv_cxx_new_for_scoping+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + int z = 0; + for (int i = 0; i < 10; ++i) + z = z + i; + for (int i = 0; i < 10; ++i) + z = z - i; + return z; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_cxx_new_for_scoping=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_cxx_new_for_scoping=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_new_for_scoping" >&5 +echo "${ECHO_T}$ac_cv_cxx_new_for_scoping" >&6 +if test "$ac_cv_cxx_new_for_scoping" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_NEW_FOR_SCOPING +_ACEOF + +fi + +echo "$as_me:$LINENO: checking whether the compiler supports placement operator delete" >&5 +echo $ECHO_N "checking whether the compiler supports placement operator delete... $ECHO_C" >&6 +if test "${ac_cv_cxx_placement_operator_delete+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +class Thing { + public: + Thing() { }; + void *operator new(size_t,bool) { }; + void operator delete(size_t,void*) { }; + }; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_cxx_placement_operator_delete=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_cxx_placement_operator_delete=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_placement_operator_delete" >&5 +echo "${ECHO_T}$ac_cv_cxx_placement_operator_delete" >&6 +if test "$ac_cv_cxx_placement_operator_delete" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_PLACEMENT_OPERATOR_DELETE +_ACEOF + +fi + +echo "$as_me:$LINENO: checking whether the compiler supports dynamic_cast<>" >&5 +echo $ECHO_N "checking whether the compiler supports dynamic_cast<>... $ECHO_C" >&6 +if test "${ac_cv_cxx_dynamic_cast+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +class Base { public : Base () {} virtual void f () = 0;}; +class Derived : public Base { public : Derived () {} virtual void f () {} }; +int +main () +{ + +Derived d; Base& b=d; return dynamic_cast(&b) ? 0 : 1; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_cxx_dynamic_cast=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_cxx_dynamic_cast=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_dynamic_cast" >&5 +echo "${ECHO_T}$ac_cv_cxx_dynamic_cast" >&6 +if test "$ac_cv_cxx_dynamic_cast" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_DYNAMIC_CAST +_ACEOF + +fi + +echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 +echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 +if test "${ac_cv_cxx_namespaces+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +namespace Outer { namespace Inner { int i = 0; }} +int +main () +{ +using namespace Outer::Inner; return i; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_cxx_namespaces=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_cxx_namespaces=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 +echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 +if test "$ac_cv_cxx_namespaces" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_NAMESPACES +_ACEOF + +fi + +echo "$as_me:$LINENO: checking whether the compiler supports explicit instantiations" >&5 +echo $ECHO_N "checking whether the compiler supports explicit instantiations... $ECHO_C" >&6 +if test "${ac_cv_cxx_explinst+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +template class A { T t; }; template class A; +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_cxx_explinst=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_cxx_explinst=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_explinst" >&5 +echo "${ECHO_T}$ac_cv_cxx_explinst" >&6 +if test "$ac_cv_cxx_explinst" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_INSTANTIATIONS +_ACEOF + +fi + +echo "$as_me:$LINENO: checking for placement operator new" >&5 +echo $ECHO_N "checking for placement operator new... $ECHO_C" >&6 +if test "${ac_cv_cxx_placement_operator_new+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#ifdef HAVE_NEW +#include +#else +#include +#endif +class A { +public: + A() {}; +}; +A* foo() +{ + void *x; + A *bar = new (x) A; + return bar; +}; +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_cxx_placement_operator_new=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_cxx_placement_operator_new=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_placement_operator_new" >&5 +echo "${ECHO_T}$ac_cv_cxx_placement_operator_new" >&6 +if test "$ac_cv_cxx_placement_operator_new" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_PLACEMENT_OPERATOR_NEW 1 +_ACEOF + +fi +echo "$as_me:$LINENO: checking whether the C++ compiler supports the std namespace" >&5 +echo $ECHO_N "checking whether the C++ compiler supports the std namespace... $ECHO_C" >&6 +if test "${ac_cv_cxx_namespace_std+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#ifdef HAVE_NEW +#include +#else +#include +#endif +int +main () +{ + +std::set_new_handler(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_cxx_namespace_std=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_cxx_namespace_std=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_namespace_std" >&5 +echo "${ECHO_T}$ac_cv_cxx_namespace_std" >&6 +if test "$ac_cv_cxx_namespace_std" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_NAMESPACE_STD 1 +_ACEOF + +fi +if test "$GXX"; then + echo "$as_me:$LINENO: checking whether GNU C++ supports automatic template instantiation" >&5 +echo $ECHO_N "checking whether GNU C++ supports automatic template instantiation... $ECHO_C" >&6 +if test "${ac_cv_c_gnu_automatic_templates+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 8) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then + ac_cv_c_gnu_automatic_templates=yes +else + ac_cv_c_gnu_automatic_templates=no +fi +rm -f conftest* + + +fi +echo "$as_me:$LINENO: result: $ac_cv_c_gnu_automatic_templates" >&5 +echo "${ECHO_T}$ac_cv_c_gnu_automatic_templates" >&6 + if test "$ac_cv_c_gnu_automatic_templates" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define SP_DEFINE_TEMPLATES 1 +_ACEOF + + else + +cat >>confdefs.h <<\_ACEOF +#define SP_MANUAL_INST 1 +_ACEOF + + CXXFLAGS="$CXXFLAGS -fno-implicit-templates" + fi + echo "$as_me:$LINENO: checking whether GNU C++ links with libg++ if we include new.h" >&5 +echo $ECHO_N "checking whether GNU C++ links with libg++ if we include new.h... $ECHO_C" >&6 +if test "${ac_cv_cxx_gnu_avoid_new_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#if (__GNUC__ == 2 && __GNUC_MINOR__ < 8) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then + ac_cv_cxx_gnu_avoid_new_h=yes +else + ac_cv_cxx_gnu_avoid_new_h=no +fi +rm -f conftest* + + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_gnu_avoid_new_h" >&5 +echo "${ECHO_T}$ac_cv_cxx_gnu_avoid_new_h" >&6 + if test "$ac_cv_cxx_gnu_avoid_new_h" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define SP_NEW_H_MISSING 1 +_ACEOF + + echo "$as_me:$LINENO: checking whether to declare set_new_handler extern \"C\"" >&5 +echo $ECHO_N "checking whether to declare set_new_handler extern \"C\"... $ECHO_C" >&6 +if test "${ac_cv_cxx_new_handler_extern_c+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +typedef void (*new_handler)(); +new_handler set_new_handler(new_handler); +int +main () +{ + +set_new_handler(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_cxx_new_handler_extern_c=no +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_cxx_new_handler_extern_c=yes +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_new_handler_extern_c" >&5 +echo "${ECHO_T}$ac_cv_cxx_new_handler_extern_c" >&6 + if test "$ac_cv_cxx_new_handler_extern_c" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define SP_SET_NEW_HANDLER_EXTERN_C 1 +_ACEOF + + fi + fi +fi +echo "$as_me:$LINENO: checking whether new_handler accepts size_t and returns int" >&5 +echo $ECHO_N "checking whether new_handler accepts size_t and returns int... $ECHO_C" >&6 +if test "${ac_cv_cxx_fancy_new_handler+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include +int oom(size_t) { } +int +main () +{ +set_new_handler(oom); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_cxx_fancy_new_handler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_cxx_fancy_new_handler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_fancy_new_handler" >&5 +echo "${ECHO_T}$ac_cv_cxx_fancy_new_handler" >&6 +if test "$ac_cv_cxx_fancy_new_handler" = yes; then + +cat >>confdefs.h <<\_ACEOF +#define SP_FANCY_NEW_HANDLER 1 +_ACEOF + +fi + + + + + +for ac_func in memmove memcmp strerror strtoul +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +else + case $LIBOBJS in + "$ac_func.$ac_objext" | \ + *" $ac_func.$ac_objext" | \ + "$ac_func.$ac_objext "* | \ + *" $ac_func.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; +esac + +fi +done + + + +for ac_func in setlocale +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +echo "$as_me:$LINENO: checking for Windows and DOS and OS/2 style pathnames" >&5 +echo $ECHO_N "checking for Windows and DOS and OS/2 style pathnames... $ECHO_C" >&6 +if test "${acx_cv_pathname_style_dos+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + +acx_cv_pathname_style_dos="no" +case ${host_os} in + *djgpp | *mingw32 | *emx*) acx_cv_pathname_style_dos="yes" ;; +esac + +fi + +echo "$as_me:$LINENO: result: $acx_cv_pathname_style_dos" >&5 +echo "${ECHO_T}$acx_cv_pathname_style_dos" >&6 +if test $acx_cv_pathname_style_dos = "yes"; then + cat >>confdefs.h <<\_ACEOF +#define HAVE_PATHNAME_STYLE_DOS 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define PATH_SEPARATOR ';' +_ACEOF + +else + cat >>confdefs.h <<\_ACEOF +#define PATH_SEPARATOR ':' +_ACEOF + +fi + + +echo "$as_me:$LINENO: checking whether to include support for http" >&5 +echo $ECHO_N "checking whether to include support for http... $ECHO_C" >&6 +# Check whether --enable-http or --disable-http was given. +if test "${enable_http+set}" = set; then + enableval="$enable_http" + if test $enableval + then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\_ACEOF +#define SP_HAVE_SOCKET 1 +_ACEOF + + echo "$as_me:$LINENO: checking for main in -lnsl" >&5 +echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6 +if test "${ac_cv_lib_nsl_main+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + +int +main () +{ +main (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_nsl_main=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_nsl_main=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5 +echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6 +if test $ac_cv_lib_nsl_main = yes; then + LIBS="$LIBS -lnsl" +fi + + echo "$as_me:$LINENO: checking for main in -lsocket" >&5 +echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6 +if test "${ac_cv_lib_socket_main+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + +int +main () +{ +main (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_socket_main=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_socket_main=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5 +echo "${ECHO_T}$ac_cv_lib_socket_main" >&6 +if test $ac_cv_lib_socket_main = yes; then + LIBS="$LIBS -lsocket" +fi + + echo "$as_me:$LINENO: checking h_errno in netdb.h" >&5 +echo $ECHO_N "checking h_errno in netdb.h... $ECHO_C" >&6 + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "h_errno" >/dev/null 2>&1; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else + +cat >>confdefs.h <<\_ACEOF +#define SP_DECLARE_H_ERRNO 1 +_ACEOF + + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi +rm -f conftest* + + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + fi +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi; +echo "$as_me:$LINENO: checking for default catalog" >&5 +echo $ECHO_N "checking for default catalog... $ECHO_C" >&6 +# Check whether --enable-default-catalog or --disable-default-catalog was given. +if test "${enable_default_catalog+set}" = set; then + enableval="$enable_default_catalog" + if test $enableval + then + echo "$as_me:$LINENO: result: $enableval" >&5 +echo "${ECHO_T}$enableval" >&6 + +cat >>confdefs.h <<_ACEOF +#define SGML_CATALOG_FILES_DEFAULT "$enableval" +_ACEOF + + else + echo "$as_me:$LINENO: result: none" >&5 +echo "${ECHO_T}none" >&6 + fi +else + echo "$as_me:$LINENO: result: none" >&5 +echo "${ECHO_T}none" >&6 +fi; +echo "$as_me:$LINENO: checking for default search path" >&5 +echo $ECHO_N "checking for default search path... $ECHO_C" >&6 +# Check whether --enable-default-search-path or --disable-default-search-path was given. +if test "${enable_default_search_path+set}" = set; then + enableval="$enable_default_search_path" + if test $enableval + then + echo "$as_me:$LINENO: result: $enableval" >&5 +echo "${ECHO_T}$enableval" >&6 + +cat >>confdefs.h <<_ACEOF +#define SGML_SEARCH_PATH_DEFAULT "$enableval" +_ACEOF + + else + echo "$as_me:$LINENO: result: none" >&5 +echo "${ECHO_T}none" >&6 + fi +else + echo "$as_me:$LINENO: result: none" >&5 +echo "${ECHO_T}none" >&6 +fi; +echo "$as_me:$LINENO: checking whether to include support for XML Formatted Messages" >&5 +echo $ECHO_N "checking whether to include support for XML Formatted Messages... $ECHO_C" >&6 +# Check whether --enable-xml-messages or --disable-xml-messages was given. +if test "${enable_xml_messages+set}" = set; then + enableval="$enable_xml_messages" + if test $enableval + then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\_ACEOF +#define SP_XML 1 +_ACEOF + + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + fi +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi; +DTDDECL=yes +echo "$as_me:$LINENO: checking whether to include DTDDECL support" >&5 +echo $ECHO_N "checking whether to include DTDDECL support... $ECHO_C" >&6 +# Check whether --enable-dtddecl or --disable-dtddecl was given. +if test "${enable_dtddecl+set}" = set; then + enableval="$enable_dtddecl" + if test "$enableval" = "no" + then + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + DTDDECL=no + else + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + fi +else + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +fi; +if test "$DTDDECL" = "yes" +then + +cat >>confdefs.h <<\_ACEOF +#define SP_DTDDECL 1 +_ACEOF + + + +if true; then + DTDDECL_TRUE= + DTDDECL_FALSE='#' +else + DTDDECL_TRUE='#' + DTDDECL_FALSE= +fi + +else + + +if false; then + DTDDECL_TRUE= + DTDDECL_FALSE='#' +else + DTDDECL_TRUE='#' + DTDDECL_FALSE= +fi + +fi + + ac_config_files="$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 +echo "$as_me:$LINENO: checking whether to build docs (man and html)" >&5 +echo $ECHO_N "checking whether to build docs (man and html)... $ECHO_C" >&6 +# Check whether --enable-doc-build or --disable-doc-build was given. +if test "${enable_doc_build+set}" = set; then + enableval="$enable_doc_build" + if test "$enableval" = "no" + then + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + BUILDDOCS=no + else + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + fi +else + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +fi; + +if test "$BUILDDOCS" = "yes" +then + # Extract the first word of "xmlto", so it can be a program name with args. +set dummy xmlto; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_XMLTO+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $XMLTO in + [\\/]* | ?:[\\/]*) + ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + ;; +esac +fi +XMLTO=$ac_cv_path_XMLTO + +if test -n "$XMLTO"; then + echo "$as_me:$LINENO: result: $XMLTO" >&5 +echo "${ECHO_T}$XMLTO" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + if test -z "$XMLTO" + then { { echo "$as_me:$LINENO: error: could not find xmlto; set XMLTO or consider --disable-doc-build" >&5 +echo "$as_me: error: could not find xmlto; set XMLTO or consider --disable-doc-build" >&2;} + { (exit 1); exit 1; }; } + fi + DOCSRC=docsrc + + ac_config_files="$ac_config_files docsrc/Makefile" + +fi + +BUILDFULLDOCS=no +echo "$as_me:$LINENO: checking whether to build all docs (man, html, pdf, ps)" >&5 +echo $ECHO_N "checking whether to build all docs (man, html, pdf, ps)... $ECHO_C" >&6 +# Check whether --enable-full-doc-build or --disable-full-doc-build was given. +if test "${enable_full_doc_build+set}" = set; then + enableval="$enable_full_doc_build" + if test "$enableval" = "yes" + then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + BUILDFULLDOCS=yes + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + fi +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi; + +if test "$BUILDFULLDOCS" = "yes" +then + # Extract the first word of "pdf2ps", so it can be a program name with args. +set dummy pdf2ps; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_PDF2PS+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $PDF2PS in + [\\/]* | ?:[\\/]*) + ac_cv_path_PDF2PS="$PDF2PS" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PDF2PS="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + ;; +esac +fi +PDF2PS=$ac_cv_path_PDF2PS + +if test -n "$PDF2PS"; then + echo "$as_me:$LINENO: result: $PDF2PS" >&5 +echo "${ECHO_T}$PDF2PS" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + if test -z "$PDF2PS" + then { { echo "$as_me:$LINENO: error: could not find pdf2ps; set PDF2PS or consider --disable-doc-build" >&5 +echo "$as_me: error: could not find pdf2ps; set PDF2PS or consider --disable-doc-build" >&2;} + { (exit 1); exit 1; }; } + fi + # Extract the first word of "openjade jade", so it can be a program name with args. +set dummy openjade jade; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_JADE+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $JADE in + [\\/]* | ?:[\\/]*) + ac_cv_path_JADE="$JADE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_JADE="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + ;; +esac +fi +JADE=$ac_cv_path_JADE + +if test -n "$JADE"; then + echo "$as_me:$LINENO: result: $JADE" >&5 +echo "${ECHO_T}$JADE" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + if test -z "$JADE" + then + { { echo "$as_me:$LINENO: error: could not find openjade or jade; set JADE or consider --disable-doc-build" >&5 +echo "$as_me: error: could not find openjade or jade; set JADE or consider --disable-doc-build" >&2;} + { (exit 1); exit 1; }; } + fi + # Extract the first word of "jadetex", so it can be a program name with args. +set dummy jadetex; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_JADETEX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $JADETEX in + [\\/]* | ?:[\\/]*) + ac_cv_path_JADETEX="$JADETEX" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_JADETEX="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + ;; +esac +fi +JADETEX=$ac_cv_path_JADETEX + +if test -n "$JADETEX"; then + echo "$as_me:$LINENO: result: $JADETEX" >&5 +echo "${ECHO_T}$JADETEX" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + if test -z "$JADETEX" + then + { { echo "$as_me:$LINENO: error: could not find jadetex; set JADETEX or consider --disable-doc-build" >&5 +echo "$as_me: error: could not find jadetex; set JADETEX or consider --disable-doc-build" >&2;} + { (exit 1); exit 1; }; } + fi + # Extract the first word of "pdfjadetex", so it can be a program name with args. +set dummy pdfjadetex; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_PDFJADETEX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $PDFJADETEX in + [\\/]* | ?:[\\/]*) + ac_cv_path_PDFJADETEX="$PDFJADETEX" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PDFJADETEX="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + ;; +esac +fi +PDFJADETEX=$ac_cv_path_PDFJADETEX + +if test -n "$PDFJADETEX"; then + echo "$as_me:$LINENO: result: $PDFJADETEX" >&5 +echo "${ECHO_T}$PDFJADETEX" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + if test -z "$PDFJADETEX" + then + { { echo "$as_me:$LINENO: error: could not find pdfjadetex; set PDFJADETEX or consider --disable-doc-build" >&5 +echo "$as_me: error: could not find pdfjadetex; set PDFJADETEX or consider --disable-doc-build" >&2;} + { (exit 1); exit 1; }; } + fi + EXTRADOCS="releasenotes.pdf releasenotes.ps" + +fi + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +{ + (set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} | + sed ' + t clear + : clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + : end' >>confcache +if diff $cache_file confcache >/dev/null 2>&1; then :; else + if test -w $cache_file; then + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" + cat confcache >$cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=]*=[ ]*\):*/\1/; +s/:*$//; +s/^[^=]*=[ ]*$//; +}' +fi + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_i=`echo "$ac_i" | + sed 's/\$U\././;s/\.o$//;s/\.obj$//'` + # 2. Add them. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${DTDDECL_TRUE}" && test -z "${DTDDECL_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"DTDDECL\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"DTDDECL\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${DTDDECL_TRUE}" && test -z "${DTDDECL_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"DTDDECL\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"DTDDECL\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi + +: ${CONFIG_STATUS=./config.status} +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false +SHELL=\${CONFIG_SHELL-$SHELL} +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi +DUALCASE=1; export DUALCASE # for MKS sh + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# Work around bugs in pre-3.0 UWIN ksh. +$as_unset ENV MAIL MAILPATH +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + $as_unset $as_var + fi +done + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + + +# Name of the executable. +as_me=`$as_basename "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)$' \| \ + . : '\(.\)' 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } + /^X\/\(\/\/\)$/{ s//\1/; q; } + /^X\/\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + + +# PATH needs CR, and LINENO needs CR and PATH. +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" || { + # Find who we are. Look in the path if we contain no path at all + # relative or not. + case $0 in + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +done + + ;; + esac + # We did not find ourselves, most probably we were run as `sh COMMAND' + # in which case we are not to be found in the path. + if test "x$as_myself" = x; then + as_myself=$0 + fi + if test ! -f "$as_myself"; then + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} + { (exit 1); exit 1; }; } + fi + case $CONFIG_SHELL in + '') + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for as_base in sh bash ksh sh5; do + case $as_dir in + /*) + if ("$as_dir/$as_base" -c ' + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } + CONFIG_SHELL=$as_dir/$as_base + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$0" ${1+"$@"} + fi;; + esac + done +done +;; + esac + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line before each line; the second 'sed' does the real + # work. The second script uses 'N' to pair each line-number line + # with the numbered line, and appends trailing '-' during + # substitution so that $LINENO is not a special case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) + sed '=' <$as_myself | + sed ' + N + s,$,-, + : loop + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, + t loop + s,-$,, + s,^['$as_cr_digits']*\n,, + ' >$as_me.lineno && + chmod +x $as_me.lineno || + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensible to this). + . ./$as_me.lineno + # Exit status is that of the last command. + exit +} + + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_executable_p="test -f" + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH + +exec 6>&1 + +# Open the log real soon, to keep \$[0] and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. Logging --version etc. is OK. +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX +} >&5 +cat >&5 <<_CSEOF + +This file was extended by $as_me, which was +generated by GNU Autoconf 2.59. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +_CSEOF +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 +echo >&5 +_ACEOF + +# Files that config.status was made for. +if test -n "$ac_config_files"; then + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_headers"; then + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_links"; then + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_commands"; then + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS +fi + +cat >>$CONFIG_STATUS <<\_ACEOF + +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTIONS] [FILE]... + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to ." +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF +ac_cs_version="\\ +config.status +configured by $0, generated by GNU Autoconf 2.59, + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" + +Copyright (C) 2003 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." +srcdir=$srcdir +INSTALL="$INSTALL" +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "x$1" : 'x\([^=]*\)='` + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` + ac_shift=: + ;; + -*) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + *) # This is not an option, so the user has probably given explicit + # arguments. + ac_option=$1 + ac_need_defaults=false;; + esac + + case $ac_option in + # Handling of the options. +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --vers* | -V ) + echo "$ac_cs_version"; exit 0 ;; + --he | --h) + # Conflict between --help and --header + { { echo "$as_me:$LINENO: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + echo "$ac_cs_usage"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + CONFIG_FILES="$CONFIG_FILES $ac_optarg" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" + ac_need_defaults=false;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; } ;; + + *) ac_config_targets="$ac_config_targets $1" ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF +if \$ac_cs_recheck; then + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion +fi + +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF +# +# INIT-COMMANDS section. +# + +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" +# Capture the value of obsolete ALL_LINGUAS because we need it to compute + # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it + # from automake. + eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' + # Capture the value of LINGUAS because we need it to compute CATALOGS. + LINGUAS="${LINGUAS-%UNSET%}" + + +_ACEOF + + + +cat >>$CONFIG_STATUS <<\_ACEOF +for ac_config_target in $ac_config_targets +do + case "$ac_config_target" in + # Handling of arguments. + "${PACKAGE}-${VERSION}.spec" ) CONFIG_FILES="$CONFIG_FILES ${PACKAGE}-${VERSION}.spec:spec.in" ;; + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "msggen.pl" ) CONFIG_FILES="$CONFIG_FILES msggen.pl" ;; + "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; + "nsgmls/Makefile" ) CONFIG_FILES="$CONFIG_FILES nsgmls/Makefile" ;; + "spent/Makefile" ) CONFIG_FILES="$CONFIG_FILES spent/Makefile" ;; + "spam/Makefile" ) CONFIG_FILES="$CONFIG_FILES spam/Makefile" ;; + "sgmlnorm/Makefile" ) CONFIG_FILES="$CONFIG_FILES sgmlnorm/Makefile" ;; + "sx/Makefile" ) CONFIG_FILES="$CONFIG_FILES sx/Makefile" ;; + "spcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES spcat/Makefile" ;; + "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; + "include/config.h.old" ) CONFIG_FILES="$CONFIG_FILES include/config.h.old" ;; + "generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES generic/Makefile" ;; + "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "pubtext/Makefile" ) CONFIG_FILES="$CONFIG_FILES pubtext/Makefile" ;; + "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; + "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;; + "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; + "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; + "docsrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES docsrc/Makefile" ;; + "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + esac +done + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason to put it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./confstat$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in ." >&2 + { (exit 1); exit 1; } +} + +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF + +# +# CONFIG_FILES section. +# + +# No need to generate the scripts if there are no CONFIG_FILES. +# This happens for instance when ./config.status config.h +if test -n "\$CONFIG_FILES"; then + # Protect against being on the right side of a sed subst in config.status. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF +s,@SHELL@,$SHELL,;t t +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t +s,@exec_prefix@,$exec_prefix,;t t +s,@prefix@,$prefix,;t t +s,@program_transform_name@,$program_transform_name,;t t +s,@bindir@,$bindir,;t t +s,@sbindir@,$sbindir,;t t +s,@libexecdir@,$libexecdir,;t t +s,@datadir@,$datadir,;t t +s,@sysconfdir@,$sysconfdir,;t t +s,@sharedstatedir@,$sharedstatedir,;t t +s,@localstatedir@,$localstatedir,;t t +s,@libdir@,$libdir,;t t +s,@includedir@,$includedir,;t t +s,@oldincludedir@,$oldincludedir,;t t +s,@infodir@,$infodir,;t t +s,@mandir@,$mandir,;t t +s,@build_alias@,$build_alias,;t t +s,@host_alias@,$host_alias,;t t +s,@target_alias@,$target_alias,;t t +s,@DEFS@,$DEFS,;t t +s,@ECHO_C@,$ECHO_C,;t t +s,@ECHO_N@,$ECHO_N,;t t +s,@ECHO_T@,$ECHO_T,;t t +s,@LIBS@,$LIBS,;t t +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t +s,@INSTALL_DATA@,$INSTALL_DATA,;t t +s,@CYGPATH_W@,$CYGPATH_W,;t t +s,@PACKAGE@,$PACKAGE,;t t +s,@VERSION@,$VERSION,;t t +s,@ACLOCAL@,$ACLOCAL,;t t +s,@AUTOCONF@,$AUTOCONF,;t t +s,@AUTOMAKE@,$AUTOMAKE,;t t +s,@AUTOHEADER@,$AUTOHEADER,;t t +s,@MAKEINFO@,$MAKEINFO,;t t +s,@install_sh@,$install_sh,;t t +s,@STRIP@,$STRIP,;t t +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t +s,@mkdir_p@,$mkdir_p,;t t +s,@AWK@,$AWK,;t t +s,@SET_MAKE@,$SET_MAKE,;t t +s,@am__leading_dot@,$am__leading_dot,;t t +s,@AMTAR@,$AMTAR,;t t +s,@am__tar@,$am__tar,;t t +s,@am__untar@,$am__untar,;t t +s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t +s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t +s,@MAINT@,$MAINT,;t t +s,@SP_LIBOSP_CUR@,$SP_LIBOSP_CUR,;t t +s,@SP_LIBOSP_REV@,$SP_LIBOSP_REV,;t t +s,@SP_LIBOSP_AGE@,$SP_LIBOSP_AGE,;t t +s,@CC@,$CC,;t t +s,@CFLAGS@,$CFLAGS,;t t +s,@LDFLAGS@,$LDFLAGS,;t t +s,@CPPFLAGS@,$CPPFLAGS,;t t +s,@ac_ct_CC@,$ac_ct_CC,;t t +s,@EXEEXT@,$EXEEXT,;t t +s,@OBJEXT@,$OBJEXT,;t t +s,@DEPDIR@,$DEPDIR,;t t +s,@am__include@,$am__include,;t t +s,@am__quote@,$am__quote,;t t +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t +s,@CCDEPMODE@,$CCDEPMODE,;t t +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t +s,@CPP@,$CPP,;t t +s,@CXX@,$CXX,;t t +s,@CXXFLAGS@,$CXXFLAGS,;t t +s,@ac_ct_CXX@,$ac_ct_CXX,;t t +s,@CXXDEPMODE@,$CXXDEPMODE,;t t +s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t +s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t +s,@CXXCPP@,$CXXCPP,;t t +s,@LN_S@,$LN_S,;t t +s,@PERL@,$PERL,;t t +s,@build@,$build,;t t +s,@build_cpu@,$build_cpu,;t t +s,@build_vendor@,$build_vendor,;t t +s,@build_os@,$build_os,;t t +s,@host@,$host,;t t +s,@host_cpu@,$host_cpu,;t t +s,@host_vendor@,$host_vendor,;t t +s,@host_os@,$host_os,;t t +s,@EGREP@,$EGREP,;t t +s,@ECHO@,$ECHO,;t t +s,@AR@,$AR,;t t +s,@ac_ct_AR@,$ac_ct_AR,;t t +s,@RANLIB@,$RANLIB,;t t +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t +s,@F77@,$F77,;t t +s,@FFLAGS@,$FFLAGS,;t t +s,@ac_ct_F77@,$ac_ct_F77,;t t +s,@LIBTOOL@,$LIBTOOL,;t t +s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t +s,@USE_NLS@,$USE_NLS,;t t +s,@MSGFMT@,$MSGFMT,;t t +s,@GMSGFMT@,$GMSGFMT,;t t +s,@XGETTEXT@,$XGETTEXT,;t t +s,@MSGMERGE@,$MSGMERGE,;t t +s,@GLIBC2@,$GLIBC2,;t t +s,@ALLOCA@,$ALLOCA,;t t +s,@GLIBC21@,$GLIBC21,;t t +s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t +s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t +s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t +s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t +s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t +s,@LIBICONV@,$LIBICONV,;t t +s,@LTLIBICONV@,$LTLIBICONV,;t t +s,@INTLBISON@,$INTLBISON,;t t +s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t +s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t +s,@CATOBJEXT@,$CATOBJEXT,;t t +s,@DATADIRNAME@,$DATADIRNAME,;t t +s,@INSTOBJEXT@,$INSTOBJEXT,;t t +s,@GENCAT@,$GENCAT,;t t +s,@INTLOBJS@,$INTLOBJS,;t t +s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t +s,@INTLLIBS@,$INTLLIBS,;t t +s,@LIBINTL@,$LIBINTL,;t t +s,@LTLIBINTL@,$LTLIBINTL,;t t +s,@POSUB@,$POSUB,;t t +s,@SP_MESSAGE_DOMAIN@,$SP_MESSAGE_DOMAIN,;t t +s,@LIBOBJS@,$LIBOBJS,;t t +s,@DTDDECL_TRUE@,$DTDDECL_TRUE,;t t +s,@DTDDECL_FALSE@,$DTDDECL_FALSE,;t t +s,@XMLTO@,$XMLTO,;t t +s,@DOCSRC@,$DOCSRC,;t t +s,@PDF2PS@,$PDF2PS,;t t +s,@JADE@,$JADE,;t t +s,@JADETEX@,$JADETEX,;t t +s,@PDFJADETEX@,$PDFJADETEX,;t t +s,@EXTRADOCS@,$EXTRADOCS,;t t +s,@LTLIBOBJS@,$LTLIBOBJS,;t t +CEOF + +_ACEOF + + cat >>$CONFIG_STATUS <<\_ACEOF + # Split the substitutions into bite-sized pieces for seds with + # small command number limits, like on Digital OSF/1 and HP-UX. + ac_max_sed_lines=48 + ac_sed_frag=1 # Number of current file. + ac_beg=1 # First line for current file. + ac_end=$ac_max_sed_lines # Line after last line for current file. + ac_more_lines=: + ac_sed_cmds= + while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + else + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + fi + if test ! -s $tmp/subs.frag; then + ac_more_lines=false + else + # The purpose of the label and of the branching condition is to + # speed up the sed processing (if there are no `@' at all, there + # is no need to browse any of the substitutions). + # These are the two extra sed commands mentioned above. + (echo ':t + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" + else + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" + fi + ac_sed_frag=`expr $ac_sed_frag + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_lines` + fi + done + if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat + fi +fi # test -n "$CONFIG_FILES" + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; + esac + + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. + ac_dir=`(dirname "$ac_file") 2>/dev/null || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p "$ac_dir" + else + as_dir="$ac_dir" + as_dirs= + while test ! -d "$as_dir"; do + as_dirs="$as_dir $as_dirs" + as_dir=`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} + { (exit 1); exit 1; }; }; } + + ac_builddir=. + +if test "$ac_dir" != .; then + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix= ac_top_builddir= +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_builddir$srcdir ;; +esac + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; +*) + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_builddir=${ac_top_builddir}.;; +*) + case ${ac_top_builddir}. in + .) ac_abs_top_builddir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_srcdir=$ac_srcdir;; +*) + case $ac_srcdir in + .) ac_abs_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_srcdir=$ac_top_srcdir;; +*) + case $ac_top_srcdir in + .) ac_abs_top_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; + esac;; +esac + + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_builddir$INSTALL ;; + esac + + if test x"$ac_file" != x-; then + { echo "$as_me:$LINENO: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + rm -f "$ac_file" + fi + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + if test x"$ac_file" = x-; then + configure_input= + else + configure_input="$ac_file. " + fi + configure_input=$configure_input"Generated from `echo $ac_file_in | + sed 's,.*/,,'` by configure." + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo "$f";; + *) # Relative + if test -f "$f"; then + # Build tree + echo "$f" + elif test -f "$srcdir/$f"; then + # Source tree + echo "$srcdir/$f" + else + # /dev/null tree + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF + sed "$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s,@configure_input@,$configure_input,;t t +s,@srcdir@,$ac_srcdir,;t t +s,@abs_srcdir@,$ac_abs_srcdir,;t t +s,@top_srcdir@,$ac_top_srcdir,;t t +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t +s,@builddir@,$ac_builddir,;t t +s,@abs_builddir@,$ac_abs_builddir,;t t +s,@top_builddir@,$ac_top_builddir,;t t +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t +s,@INSTALL@,$ac_INSTALL,;t t +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out + rm -f $tmp/stdin + if test x"$ac_file" != x-; then + mv $tmp/out $ac_file + else + cat $tmp/out + rm -f $tmp/out + fi + +done +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF + +# +# CONFIG_HEADER section. +# + +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where +# NAME is the cpp macro being defined and VALUE is the value it is being given. +# +# ac_d sets the value in "#define NAME VALUE" lines. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' +ac_dB='[ ].*$,\1#\2' +ac_dC=' ' +ac_dD=',;t' +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_uB='$,\1#\2define\3' +ac_uC=' ' +ac_uD=',;t' + +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; + esac + + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + # Do quote $f, to prevent DOS paths from being IFS'd. + echo "$f";; + *) # Relative + if test -f "$f"; then + # Build tree + echo "$f" + elif test -f "$srcdir/$f"; then + # Source tree + echo "$srcdir/$f" + else + # /dev/null tree + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } + # Remove the trailing spaces. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in + +_ACEOF + +# Transform confdefs.h into two sed scripts, `conftest.defines' and +# `conftest.undefs', that substitutes the proper values into +# config.h.in to produce config.h. The first handles `#define' +# templates, and the second `#undef' templates. +# And first: Protect against being on the right side of a sed subst in +# config.status. Protect against being in an unquoted here document +# in config.status. +rm -f conftest.defines conftest.undefs +# Using a here document instead of a string reduces the quoting nightmare. +# Putting comments in sed scripts is not portable. +# +# `end' is used to avoid that the second main sed command (meant for +# 0-ary CPP macros) applies to n-ary macro definitions. +# See the Autoconf documentation for `clear'. +cat >confdef2sed.sed <<\_ACEOF +s/[\\&,]/\\&/g +s,[\\$`],\\&,g +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp +t end +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp +: end +_ACEOF +# If some macros were called several times there might be several times +# the same #defines, which is useless. Nevertheless, we may not want to +# sort them, since we want the *last* AC-DEFINE to be honored. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs +rm -f confdef2sed.sed + +# This sed command replaces #undef with comments. This is necessary, for +# example, in the case of _POSIX_SOURCE, which is predefined and required +# on some systems where configure will not decide to define it. +cat >>conftest.undefs <<\_ACEOF +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, +_ACEOF + +# Break up conftest.defines because some shells have a limit on the size +# of here documents, and old seds have small limits too (100 cmds). +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS +echo ' :' >>$CONFIG_STATUS +rm -f conftest.tail +while grep . conftest.defines >/dev/null +do + # Write a limited-size here document to $tmp/defines.sed. + echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#define' lines. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS + echo 'CEOF + sed -f $tmp/defines.sed $tmp/in >$tmp/out + rm -f $tmp/in + mv $tmp/out $tmp/in +' >>$CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail + rm -f conftest.defines + mv conftest.tail conftest.defines +done +rm -f conftest.defines +echo ' fi # grep' >>$CONFIG_STATUS +echo >>$CONFIG_STATUS + +# Break up conftest.undefs because some shells have a limit on the size +# of here documents, and old seds have small limits too (100 cmds). +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS +rm -f conftest.tail +while grep . conftest.undefs >/dev/null +do + # Write a limited-size here document to $tmp/undefs.sed. + echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#undef' + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS + echo 'CEOF + sed -f $tmp/undefs.sed $tmp/in >$tmp/out + rm -f $tmp/in + mv $tmp/out $tmp/in +' >>$CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail + rm -f conftest.undefs + mv conftest.tail conftest.undefs +done +rm -f conftest.undefs + +cat >>$CONFIG_STATUS <<\_ACEOF + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + if test x"$ac_file" = x-; then + echo "/* Generated by configure. */" >$tmp/config.h + else + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h + fi + cat $tmp/in >>$tmp/config.h + rm -f $tmp/in + if test x"$ac_file" != x-; then + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 +echo "$as_me: $ac_file is unchanged" >&6;} + else + ac_dir=`(dirname "$ac_file") 2>/dev/null || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p "$ac_dir" + else + as_dir="$ac_dir" + as_dirs= + while test ! -d "$as_dir"; do + as_dirs="$as_dir $as_dirs" + as_dir=`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} + { (exit 1); exit 1; }; }; } + + rm -f $ac_file + mv $tmp/config.h $ac_file + fi + else + cat $tmp/config.h + rm -f $tmp/config.h + fi +# Compute $ac_file's index in $config_headers. +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $ac_file | $ac_file:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X$ac_file : 'X\(//\)[^/]' \| \ + X$ac_file : 'X\(//\)$' \| \ + X$ac_file : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X$ac_file | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'`/stamp-h$_am_stamp_count +done +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF + +# +# CONFIG_COMMANDS section. +# +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue + ac_dest=`echo "$ac_file" | sed 's,:.*,,'` + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_dir=`(dirname "$ac_dest") 2>/dev/null || +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_dest" : 'X\(//\)[^/]' \| \ + X"$ac_dest" : 'X\(//\)$' \| \ + X"$ac_dest" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_dest" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p "$ac_dir" + else + as_dir="$ac_dir" + as_dirs= + while test ! -d "$as_dir"; do + as_dirs="$as_dir $as_dirs" + as_dir=`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} + { (exit 1); exit 1; }; }; } + + ac_builddir=. + +if test "$ac_dir" != .; then + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix= ac_top_builddir= +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_builddir$srcdir ;; +esac + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; +*) + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_builddir=${ac_top_builddir}.;; +*) + case ${ac_top_builddir}. in + .) ac_abs_top_builddir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_srcdir=$ac_srcdir;; +*) + case $ac_srcdir in + .) ac_abs_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_srcdir=$ac_top_srcdir;; +*) + case $ac_top_srcdir in + .) ac_abs_top_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; + esac;; +esac + + + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 +echo "$as_me: executing $ac_dest commands" >&6;} + case $ac_dest in + depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # So let's grep whole file. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then + dirpart=`(dirname "$mf") 2>/dev/null || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`(dirname "$file") 2>/dev/null || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p $dirpart/$fdir + else + as_dir=$dirpart/$fdir + as_dirs= + while test ! -d "$as_dir"; do + as_dirs="$as_dir $as_dirs" + as_dir=`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} + { (exit 1); exit 1; }; }; } + + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done + ;; + default-1 ) + for ac_file in $CONFIG_FILES; do + # Support "outfile[:infile[:infile...]]" + case "$ac_file" in + *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + esac + # PO directories have a Makefile.in generated from Makefile.in.in. + case "$ac_file" in */Makefile.in) + # Adjust a relative srcdir. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` + # In autoconf-2.13 it is called $ac_given_srcdir. + # In autoconf-2.50 it is called $srcdir. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" + case "$ac_given_srcdir" in + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; + /*) top_srcdir="$ac_given_srcdir" ;; + *) top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + # Treat a directory as a PO directory if and only if it has a + # POTFILES.in file. This allows packages to have multiple PO + # directories under different names or in different locations. + if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then + rm -f "$ac_dir/POTFILES" + test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" + cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" + POMAKEFILEDEPS="POTFILES.in" + # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend + # on $ac_dir but don't depend on user-specified configuration + # parameters. + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then + # The LINGUAS file contains the set of available languages. + if test -n "$OBSOLETE_ALL_LINGUAS"; then + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" + fi + ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` + # Hide the ALL_LINGUAS assigment from automake. + eval 'ALL_LINGUAS''=$ALL_LINGUAS_' + POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" + else + # The set of available languages was given in configure.in. + eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' + fi + # Compute POFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) + # Compute UPDATEPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) + # Compute DUMMYPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) + # Compute GMOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) + case "$ac_given_srcdir" in + .) srcdirpre= ;; + *) srcdirpre='$(srcdir)/' ;; + esac + POFILES= + UPDATEPOFILES= + DUMMYPOFILES= + GMOFILES= + for lang in $ALL_LINGUAS; do + POFILES="$POFILES $srcdirpre$lang.po" + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" + DUMMYPOFILES="$DUMMYPOFILES $lang.nop" + GMOFILES="$GMOFILES $srcdirpre$lang.gmo" + done + # CATALOGS depends on both $ac_dir and the user's LINGUAS + # environment variable. + INST_LINGUAS= + if test -n "$ALL_LINGUAS"; then + for presentlang in $ALL_LINGUAS; do + useit=no + if test "%UNSET%" != "$LINGUAS"; then + desiredlanguages="$LINGUAS" + else + desiredlanguages="$ALL_LINGUAS" + fi + for desiredlang in $desiredlanguages; do + # Use the presentlang catalog if desiredlang is + # a. equal to presentlang, or + # b. a variant of presentlang (because in this case, + # presentlang can be used as a fallback for messages + # which are not translated in the desiredlang catalog). + case "$desiredlang" in + "$presentlang"*) useit=yes;; + esac + done + if test $useit = yes; then + INST_LINGUAS="$INST_LINGUAS $presentlang" + fi + done + fi + CATALOGS= + if test -n "$INST_LINGUAS"; then + for lang in $INST_LINGUAS; do + CATALOGS="$CATALOGS $lang.gmo" + done + fi + test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" + sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" + for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do + if test -f "$f"; then + case "$f" in + *.orig | *.bak | *~) ;; + *) cat "$f" >> "$ac_dir/Makefile" ;; + esac + fi + done + fi + ;; + esac + done ;; + esac +done +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF + +{ (exit 0); exit 0; } +_ACEOF +chmod +x $CONFIG_STATUS +ac_clean_files=$ac_clean_files_save + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || { (exit 1); exit 1; } +fi + diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..22b5fde --- /dev/null +++ b/configure.in @@ -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/depcomp b/depcomp new file mode 100755 index 0000000..04701da --- /dev/null +++ b/depcomp @@ -0,0 +1,530 @@ +#! /bin/sh +# depcomp - compile a program generating dependencies as side-effects + +scriptversion=2005-07-09.11 + +# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva . + +case $1 in + '') + echo "$0: No command. Try \`$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: depcomp [--help] [--version] PROGRAM [ARGS] + +Run PROGRAMS ARGS to compile a file, generating dependencies +as side-effects. + +Environment variables: + depmode Dependency tracking mode. + source Source file read by `PROGRAMS ARGS'. + object Object file output by `PROGRAMS ARGS'. + DEPDIR directory where to store dependencies. + depfile Dependency file to output. + tmpdepfile Temporary file to use when outputing dependencies. + libtool Whether libtool is used (yes/no). + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "depcomp $scriptversion" + exit $? + ;; +esac + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi + +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. +depfile=${depfile-`echo "$object" | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then + # HP compiler uses -M and no extra arg. + gccflag=-M + depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz +## The second -e expression handles DOS-style file names with drive letters. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the `deleted header file' problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. + tr ' ' ' +' < "$tmpdepfile" | +## Some versions of gcc put a space before the `:'. On the theory +## that the space means something, we add a space to the output as +## well. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like `#:fec' to the end of the + # dependency line. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ + tr ' +' ' ' >> $depfile + echo >> $depfile + + # The second pass generates a dummy entry for each header file. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> $depfile + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. In older versions, this file always lives in the + # current directory. Also, the AIX compiler puts `$object:' at the + # start of each line; $object doesn't have directory information. + # Version 6 uses the directory in both cases. + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` + tmpdepfile="$stripped.u" + if test "$libtool" = yes; then + "$@" -Wc,-M + else + "$@" -M + fi + stat=$? + + if test -f "$tmpdepfile"; then : + else + stripped=`echo "$stripped" | sed 's,^.*/,,'` + tmpdepfile="$stripped.u" + fi + + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + + if test -f "$tmpdepfile"; then + outname="$stripped.o" + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +icc) + # Intel's C compiler understands `-MD -MF file'. However on + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c + # ICC 7.0 will fill foo.d with something like + # foo.o: sub/foo.c + # foo.o: sub/foo.h + # which is wrong. We want: + # sub/foo.o: sub/foo.c + # sub/foo.o: sub/foo.h + # sub/foo.c: + # sub/foo.h: + # ICC 7.1 will output + # foo.o: sub/foo.c sub/foo.h + # and will wrap long lines using \ : + # foo.o: sub/foo.c ... \ + # sub/foo.h ... \ + # ... + + "$@" -MD -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form `foo.o: dependent.h', + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | + sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in `foo.d' instead, so we check for that too. + # Subdirectories are respected. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + + if test "$libtool" = yes; then + # With Tru64 cc, shared objects can also be used to make a + # static library. This mecanism is used in libtool 1.4 series to + # handle both shared and static libraries in a single compilation. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. + # + # With libtool 1.5 this exception was removed, and libtool now + # generates 2 separate objects for the 2 libraries. These two + # compilations output dependencies in in $dir.libs/$base.o.d and + # in $dir$base.o.d. We have to check for both files, because + # one of the two compilations can be disabled. We should prefer + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is + # automatically cleaned when .libs/ is deleted, while ignoring + # the former would cause a distcleancheck panic. + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 + tmpdepfile2=$dir$base.o.d # libtool 1.5 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 + "$@" -Wc,-MD + else + tmpdepfile1=$dir$base.o.d + tmpdepfile2=$dir$base.d + tmpdepfile3=$dir$base.d + tmpdepfile4=$dir$base.d + "$@" -MD + fi + + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a tab and a space in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=-M + # Require at least two characters before searching for `:' + # in the target name. This is to cope with DOS-style filenames: + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. + "$@" $dashmflag | + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + tr ' ' ' +' < "$tmpdepfile" | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # Remove any Libtool call + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=no + for arg in "$@"; do + case $cleared in + no) + set ""; shift + cleared=yes ;; + esac + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + # Strip any option that makedepend may not understand. Remove + # the object too, otherwise makedepend will parse it as a source file. + -*|$object) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix="`echo $object | sed 's/^.*\././'`" + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + sed '1,2d' "$tmpdepfile" | tr ' ' ' +' | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E | + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | + sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o, + # because we must use -o when running libtool. + "$@" || exit $? + IFS=" " + for arg + do + case "$arg" in + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" + echo " " >> "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/doc/.cvsignore b/doc/.cvsignore new file mode 100644 index 0000000..3dda729 --- /dev/null +++ b/doc/.cvsignore @@ -0,0 +1,2 @@ +Makefile.in +Makefile diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..142baf1 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,19 @@ +## Process this file with automake to produce Makefile.in + +docdir = $(datadir)/doc +pkgdocdir = $(docdir)/@PACKAGE@ +pkgdochtmldir = $(pkgdocdir)/doc + +MAINTAINERCLEANFILES = Makefile.in + +pkgdochtml_DATA = archform.htm build.htm catalog.htm charset.htm \ + features.htm generic.htm ideas.htm index.htm new.htm nsgmls.htm \ + sgmldecl.htm sgmlnorm.htm sgmlsout.htm spam.htm spcat.htm \ + spent.htm sx.htm sysdecl.htm sysid.htm xml.htm xmlwarn.htm \ + autoconf.htm + +EXTRA_DIST = archform.htm build.htm catalog.htm charset.htm \ + features.htm generic.htm ideas.htm index.htm new.htm nsgmls.htm \ + sgmldecl.htm sgmlnorm.htm sgmlsout.htm spam.htm spcat.htm \ + spent.htm sx.htm sysdecl.htm sysid.htm xml.htm xmlwarn.htm \ + autoconf.htm catalog .cvsignore diff --git a/doc/Makefile.in b/doc/Makefile.in new file mode 100644 index 0000000..8320877 --- /dev/null +++ b/doc/Makefile.in @@ -0,0 +1,417 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = doc +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pkgdochtmldir)" +pkgdochtmlDATA_INSTALL = $(INSTALL_DATA) +DATA = $(pkgdochtml_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +docdir = $(datadir)/doc +pkgdocdir = $(docdir)/@PACKAGE@ +pkgdochtmldir = $(pkgdocdir)/doc +MAINTAINERCLEANFILES = Makefile.in +pkgdochtml_DATA = archform.htm build.htm catalog.htm charset.htm \ + features.htm generic.htm ideas.htm index.htm new.htm nsgmls.htm \ + sgmldecl.htm sgmlnorm.htm sgmlsout.htm spam.htm spcat.htm \ + spent.htm sx.htm sysdecl.htm sysid.htm xml.htm xmlwarn.htm \ + autoconf.htm + +EXTRA_DIST = archform.htm build.htm catalog.htm charset.htm \ + features.htm generic.htm ideas.htm index.htm new.htm nsgmls.htm \ + sgmldecl.htm sgmlnorm.htm sgmlsout.htm spam.htm spcat.htm \ + spent.htm sx.htm sysdecl.htm sysid.htm xml.htm xmlwarn.htm \ + autoconf.htm catalog .cvsignore + +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +install-pkgdochtmlDATA: $(pkgdochtml_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkgdochtmldir)" || $(mkdir_p) "$(DESTDIR)$(pkgdochtmldir)" + @list='$(pkgdochtml_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(pkgdochtmlDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdochtmldir)/$$f'"; \ + $(pkgdochtmlDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdochtmldir)/$$f"; \ + done + +uninstall-pkgdochtmlDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgdochtml_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pkgdochtmldir)/$$f'"; \ + rm -f "$(DESTDIR)$(pkgdochtmldir)/$$f"; \ + done +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(pkgdochtmldir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-libtool + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pkgdochtmlDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-pkgdochtmlDATA + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man \ + install-pkgdochtmlDATA install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ + uninstall-info-am uninstall-pkgdochtmlDATA + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/doc/archform.htm b/doc/archform.htm new file mode 100644 index 0000000..9fa9520 --- /dev/null +++ b/doc/archform.htm @@ -0,0 +1,358 @@ + + + +Architectural Form Processing + + +

Architectural Form Processing

+

+The Hytime standard (ISO/IEC 10744) introduced the concept of +architectural forms. This document assumes you are already familiar +with this concept. HyTime 2nd Edition generalizes this, and makes it +possible to have an architecture engine which can perform +architectural form processing for arbitrary architectures. OpenSP +includes such an architecture engine. +

+Non-markup sensitive applications built using OpenSP now support +architectural form processing using the -A +archname option. When this option is specified, the +document will be validated against all declared base architectures, +and the output will be for the architectural document for that +architecture: the element types, notations and attributes will be +those defined in the meta-DTD. +

+Although spam does not support the -A option because it +works with the markup of your document, sgmlnorm does. + +

Architectural Support Attributes

+

+To use the -A option with a document, you must add +

    +
  • +an architecture base declaration for archname, +
  • +a notation declaration and associated attribute definition list +declaration for archname; +this is called the architecture notation declaration. +
+

+An architecture base declaration is a processing instruction of the form: +

+<?IS10744 ArcBase archname>
+
+

+The processing instruction is recognized either in the DTD or in an +active LPD. +

+The architecture notation declaration and associated attribute +definition list declaration serve to declare a number of architectural +support attributes which control the architecture engine. The value +for each architecture support attribute is taken from the default +value, if any, specified for that attribute in the attribute +definition list declaration. It is an error to declare an +architecture support attribute as #REQUIRED. +

+The following architectural support attributes are recognized: +

+
+ArcDTD +
+The name of an external entity that contains the meta-DTD. +This attribute is required. +If the name starts with the PERO delimiter %, +the entity is a parameter entity, +otherwise it is a general entity. +
+ArcQuant +
+A list of tokens that looks like what follows QUANTITY SGMLREF +in the quantity set section of an SGML declaration. +The quantities used for parsing the meta-DTD +and validating the architectural document +will be the maximum of the quantities in the document's concrete syntax +and the quantities specified here. +
+ArcDocF +
+The name of the document element type in the meta-DTD. +This would be HyDoc for HyTime. +This defaults to archname. +
+ArcFormA +
+The name of the attribute that elements use to specify the +corresponding element type, if any, in the meta-DTD. +Data entities also use this attribute to specify the corresponding +notation in the meta-DTD. +This would be HyTime for HyTime. +This defaults to archname. +
+ArcNamrA +
+The name of the attribute that elements use to specify substitutes for +the names of attributes in the meta-DTD. A value of +#DEFAULT is allowed for a substitute name; this inhibits +mapping of an attribute to an architectural attribute, but specifies +that the value of the architectural attribute should be defaulted +rather than taken from the value of another attribute in the document. +For HyTime the value of this attribute would be HyNames. +By default no attribute name substitutition is done. +
+ArcSuprA +
+The name of an attribute that elements may use to suppress processing +of their descendants. This attribute is not recognized for data +entities. The value of the attribute must be one of the following +tokens: +
+
+sArcAll +
+Completely suppress all architectural processing of descendants. +It is not possible to restore architectural processing +for a descendant. +
+sArcForm +
+Suppress processing of the ArcFormA attribute of all +descendants of this element, except for those elements that have a +non-implied ArcSuprA attribute. +
+sArcNone +
+Don't suppress architectural processing for the descendants of +this element. +
+

+The value may also be implied, in which case the state of +architectural processing is inherited. +

+If an element has an ArcSuprA attribute that was processed, its +ArcFormA attribute will always be processed. Otherwise its ArcFormA +attribute will be processed unless its closest ancestor that has a +non-implied value for the ArcSuprA attribute suppressed processing of +the ArcFormA attribute. An element whose ArcFormA attribute is +processed will not be treated as architectural if it has an implied +value for the ArcFormA attribute. +

+ArcSuprF +
+The name of the element type in the meta-DTD that suppresses +architectural processing in the same manner as does the +sHyTime form in HyTime. By default, no element type +does. This behaves like an element with an +ArcSuprA attribute of sArcForm. The element +type should be declared in the meta-DTD. You should not specify a +value for this attribute if you specified a value for the +ArcSuprA attribute. +

+This is a non-standardized extension. +

+ArcIgnDA +
+The name of an attribute that elements may use to control whether +data is ignored. +The value of the attribute must be one of the following values: +
+
+nArcIgnD +
+Data is not ignored. +It is an error if data occurs where not allowed by the meta-DTD. +
+cArcIgnD +
+Data is conditionally ignored. +Data will be ignored only when it occurs where the meta-DTD +does not allow it. +
+ArcIgnD +
+Data is always ignored. +
+

+The value may also be implied, in which case the state of +architectural processing is inherited. +If no the document element has no value specified, +cArcIgnD will be used. +

+ArcBridF +
+The name of a default element type declared in a meta-DTD, +to which elements in the document should be automatically mapped +if they have an ID and would not otherwise be considered +architectural. +This would be HyBrid for HyTime. +If your meta-DTD declares IDREF attributes, it will +usually be appropriate to specify a value for +ArcBridF, and to declare an ID attribute +for that form in your meta-DTD. +
+ArcDataF +
+The name of a default notation declared in the meta-DTD, +to which the external data entities in the document +should be automatically mapped if they would +not otherwise be considered architectural. +If this attribute is defined, +then general entities will be automatically architectural: +any external data entity whose notation cannot otherwise be mapped +into a notation in the meta-DTD will be automatically treated +as an instance of the ArcDataF notation. +This would be data for HyTime. +If your meta-DTD declares entity attributes, it will usually +be appropriate to specify a value for ArcDataF +even if your meta-DTD declares no data attributes for the +notation. +
+ArcAuto +
+This must have one of the following values: +
+
+ArcAuto +
+If an element does not have an ArcFormA attribute and the +meta-DTD defines an element type with the same name as the element's +type, the element will be automatically treated as being an instance +of the meta-type. This rule does not apply to the +document element type; this is automatically treated as being an +instance of the meta-DTD's document element type. +Note that this automatic mapping is prevented if +the element has an ArcFormA attribute with an implied +value. It is also prevented if processing of the +ArcFormA attribute is suppressed. This applies equally +to the notations of external data entities. +The default element or notation specified with the +ArcBridF or ArcDfltN attribute +is only considered after the mapping specified by ArcAuto. +
+nArcAuto +
+Automatic mapping is not performed. +
+

+The default value is ArcAuto. +

+ArcOptSA +
+A list of names of architectural support attributes, +each of which is interpreted as a list of parameter entities +to be defined with a replacement text of INCLUDE +when parsing the meta-DTD. +The default value is ArcOpt. +
+

Meta-DTDs

+

+A meta-DTD is allowed to use the following extensions: +

    +
  • +a single element type or notation is allowed to be an associated +element type or associated notation name for multiple attribute +definition lists. +
  • +#ALL can be used as an associated element type +or associated notation name in an attribute definition list +to define attributes for all element types or notations +in the meta-DTD +
+

+Before any of these extensions can be used, the meta-DTD must include a +declaration +

+<!AFDR "ISO/IEC 10744:1997">
+
+

+This declaration should only be included if the extensions are used. +

+In all other respects a meta-DTD must be a valid SGML DTD. +

+A declared value of ENTITY for an attribute in a meta-DTD means that +the value of the attribute must be an entity declared in +the (non-meta) DTD that is architectural. +An external data entity is architectural only if its notation can be +mapped into a notation in the meta-DTD. +All other kinds of data entities and subdoc entities are automatically +architectural. +

+An IDREF attribute in the meta-document must have a corresponding ID +in the meta-document. An attribute with a declared value of ID in the +document will be automatically mapped to an attribute with a declared +value of ID in the meta-DTD. +

+A declared value of NOTATION in the meta-DTD means that the value of +the attribute must have one the values specified in the name group and +that it must be a notation in the meta-DTD. +(Perhaps if the attribute also has a declared value of NOTATION +in the non-meta-DTD, the value should be mapped in a similar +way to the notation of an external data entity.) + +

Differences from HyTime

+

+There are a number of differences from how architectural processing is +defined in the pre-Corringendum version of the HyTime standard. +

    +
  • +The ArcNamrA and ArcFormA attributes are not +part of the meta-DTD. Rather they are used by the architecture engine +in deriving the meta-document that is validated against the meta-DTD. +
  • +The use: conventional comment is not recognized. Instead +a single element type is allowed to be an associated element type for +multiple attribute definition lists. +
  • +The notation and data attributes of an external data entity are +treated just like the element type and attributes of an element. The +notation of an external data entity is mapped into a notation in the +meta-DTD and the data attributes of the entity are mapped onto +attributes defined for the meta-DTD notation. +
  • +#FIXED has the same meaning in a meta-DTD that it does in +a regular DTD: the value of the attribute must be the same as the +default value of the attribute specified in the meta-DTD. +
+ +

Specifying architectural processing with an LPD

+

+Link attributes defined by an implicit link process are treated in the +same way as non-link attributes. The only complication is that SGML +allows link attributes to have the same name as non-link attributes. +If there is a link attribute and a non-link attribute with the same +name, the architecture engine will only look at the link attribute, +even if the value of the link attribute is implied. The only +exception is the ArcNamrA attribute: the architecture +engine will use both the link attribute and the non-link attribute, +but the substitute names in the value of the non-link attribute cannot +refer to link attribute names. +

+The -A archname option automatically activates +any link type archname. +

+The architecture notation declaration and associated attribute +definition list declaration are allowed in the LPD. Although the +productions of ISO 8879 do not allow a notation declaration in a link +type declaration subset, it is clearly the intent of the standard that +they be allowed. You can use a -wlpd-notation option to +disallow them. + +

Derived architectures

+

+A meta-DTD can have one or more base architectures in the same way as +a normal DTD. Multiple -A options can be used to exploit +this. For example, +

+-A arch1 -A arch2
+
+

+will perform architectural processing on the source document to +produce an architectural document conforming to the architecture +arch1 declared in the source document, and +will then perform architectural processing on this architectural +document to produce an architectural document conforming to the +arch2 architecture declared in +arch1's meta-DTD. +

+A document that is validated against a meta-DTD will automatically +be validated against any base architectures of that meta-DTD. + + diff --git a/doc/autoconf.htm b/doc/autoconf.htm new file mode 100644 index 0000000..c7fe4ce --- /dev/null +++ b/doc/autoconf.htm @@ -0,0 +1,101 @@ + + +OpenSP autoconf support + +

OpenSP autoconf support

+ +

We have dropped the old SP Makefiles in favour of the GNU +configuration tools automake, autoconf and libtool. If building +OpenSP doesn't work out of the box on your system, we'd like to +receive feedback and patches for your operating system. +

+ +

Usage

+ +
+% ./configure; make; make install
+
+ +

configure options

+ +
+ +
--help
+ +
Print a full list of options. This document only deals with the +non-standard options.
+ +
--enable-http +
Include support for HTTP.
+ +
--enable-default-catalog=pathlist +
Provide one or more default catalog files or sysids.
+ +
--enable-default-search-path=pathlist +
Provide a default value for SGML_SEARCH_PATH.
+ +
+ +

Local defines

+ +

If you have some extra additions to OpenSP, you can set +CFLAGS/CXXFLAGS and/or LDFLAGS/LIBS at configure time:

+ +
+CXXFLAGS=-Dmyhacks LDFLAGS=-L/opt/myhacks LIBS=-lmyhacks ./configure
+
+ +

Check the invocation of ld in Makefile for the exact semantics +of LDFLAGS and LIBS.

+ +

Tested platforms

+ +
    +
  • RedHat Linux 5.2 (egcs 1.0.3, glibc 2.0.7)
  • +
  • RedHat Linux 6.0 (gcc 2.95.1, glibc 2.1.1)
  • +
  • SuSE Linux 5.3 (gcc 2.7.2.1, libc 5.5.46)
  • +
  • Solaris 2.6 (gcc 2.8.1)
  • +
+ +

Shared library support

+ +

By default, ./configure attempts to build shared +libraries and link against them. This is done via the +libtool utility, a utility that knows how to build shared +libraries on a number of platforms.

+ +

By default, only shared libraries are built. If you have +difficulties building shared libraries, or you want to build static +versions, you can use the +--{enable,disable}-{shared,static} options to configure +libtool to your likings.

+ +

According to the libtool 1.2 docs, shared libraries work on:

+
    +
  • AIX 3.x (*-*-aix3*)
  • +
  • AIX 4.x (*-*-aix4*)
  • +
  • AmigaOS (*-*-amigaos*)
  • +
  • Digital/UNIX 3.x, 4.x, a.k.a. OSF/1 (*-*-osf3*, *-*-osf4*)
  • +
  • FreeBSD 2.x, 3.x (*-*-freebsd2*, *-*-freebsd3*)
  • +
  • GNU/Linux ELF (*-*-linux-gnu*, except aout, coff, and oldld)
  • +
  • HP-UX 9.x, 10.x (*-*-hpux9*, *-*-hpux10*) [see note]
  • +
  • IRIX 5.x, 6.x (*-*-irix5*, *-*-irix6*)
  • +
  • NetBSD 1.x (*-*-netbsd*)
  • +
  • OpenBSD 2.x (*-*-openbsd*)
  • +
  • OS/2 using EMX (*-*-os2*)
  • +
  • SCO OpenServer 5.x (*-*-sco3.2v5*)
  • +
  • Solaris 2.x (*-*-solaris2*)
  • +
  • SunOS 4.x, a.k.a. Solaris 1.x (*-*-sunos4*)
  • +
  • UnixWare 2.x (*-*-sysv4.2uw2*)
  • +
  • UTS 4.x (*-*-uts4*)
  • +
  • All ELF targets that use both the GNU C compiler (gcc) and GNU ld
  • +
+ +

One more note from the libtool documentation: the HP/UX sed seems +to be badly broken, install GNU sed before attempting to build - +libtool depends on a working sed.

+ +

Note: shared libraries seem to be broken on +HP-UX 10.* with gcc-2.95.2. Use --disable-shared.

+ + diff --git a/doc/build.htm b/doc/build.htm new file mode 100644 index 0000000..8b1a502 --- /dev/null +++ b/doc/build.htm @@ -0,0 +1,55 @@ + + + +Building OpenSP + + +

Building OpenSP

+

+

Win32

+

+Only Microsoft Visual C++ 6.0 is supported. Also, Perl 5 is required; the +executable must be on your PATH. +

+

+To build on the command line, ensure that the directories +containing msdev and nmake are in your path, +typically by executing +the command: +

+path C:/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin;
+    C:/Program Files/Microsoft Visual Studio/VC98/Bin;%path%
+
+

+(all in one long line) then run the command: + +

+build-win32.bat
+
+

+To build using the Visual +Studio GUI, open the workspace SP.dsw and build the +Win32 Release configuration of the all +project. You must first do a command-line build, however, to get +the perl-generated files. +

+

Localized Win32 builds

+

+The messages issued by the OpenSP programs have been translated +(currently German and Swedish are supported). Although it is not +yet possible to select the language at runtime under Windows, it +is possible to select the language at build time. To do so, you +have to set the variable LANG in +sp-generate.mak to one of the following values: +

+
    +
  • en for English (default) +
  • de for German +
  • sv for Swedish +
+

After that you have to regenerate all .rc files.

+

Unix

+

+Use the autoconf support. + + diff --git a/doc/catalog b/doc/catalog new file mode 100644 index 0000000..1d53793 --- /dev/null +++ b/doc/catalog @@ -0,0 +1 @@ +CATALOG ../pubtext/html.soc diff --git a/doc/catalog.htm b/doc/catalog.htm new file mode 100644 index 0000000..ca0de1c --- /dev/null +++ b/doc/catalog.htm @@ -0,0 +1,183 @@ + + + +OpenSP - Catalogs + + +

Catalogs

+

+The entity manager generates a system identifier for every external +entity using catalog entry files in the format defined by SGML Open +Technical Resolution TR9401:1997. The entity manager will give an +error if it is unable to generate a system identifier for an external +entity. Normally if the external identifier for an entity includes a +system identifier then the entity manager will use that as the +effective system identifier for the entity; this behaviour can be +changed using OVERRIDE or SYSTEM entries in +a catalog entry file. +

+A catalog entry file contains a sequence of entries in one of the +following forms: +

+
+PUBLIC pubid sysid +
+This specifies that sysid should be used as +the effective system identifier if the public identifier is +pubid. Sysid is a +system identifier as defined in ISO 8879 and +pubid is a public identifier as defined in ISO +8879. +
+ENTITY name sysid +
+This specifies that sysid should be used as the effective +system identifier if the entity is a general entity whose name is +name. +
+ENTITY %name sysid +
+This specifies that sysid should be used as +the effective system identifier if the entity is a parameter entity +whose name is name. Note that there is no space between +the % and the name. +
+DOCTYPE name sysid +
+This specifies that sysid should be used as +the effective system identifier if the entity is an entity declared in +a document type declaration whose document type name is name. +
+LINKTYPE name sysid +
+This specifies that sysid should be used as the +effective system identifier if the entity is an entity declared in a +link type declaration whose link type name is name. +
+NOTATION name sysid +
+This specifies that sysid should be used as +the effective system identifier for a notation whose name is +name. +This is relevant only with the -n option. +
+OVERRIDE bool +
+bool may be YES or +NO. This sets the overriding mode for entries up to the +next occurrence of OVERRIDE or the end of the catalog entry file. At +the beginning of a catalog entry file the overriding mode will be NO. +A PUBLIC, ENTITY, DOCTYPE, LINKTYPE or NOTATION entry with an +overriding mode of YES will be used whether or not the external +identifier has an explicit system identifier; those with an overriding +mode of NO will be ignored if external identifier has an explicit +system identifier. +
+SYSTEM sysid1 sysid2 +
+This specifies that sysid2 should be used as the effective +system identifier if the system identifier specified in the external +identifier was sysid1. +sysid2 should always be quoted to +ensure that it is not misinterpreted when parsed by a system that does +not support this extension. +
+SGMLDECL sysid +
+This specifies that if the document does not contain an SGML declaration, +the SGML declaration in sysid should be implied. +
+DTDDECL pubid sysid +
+This specifies that if the document does not contain an SGML declaration +and uses a doctype declaration with public identifier +pubid, the SGML declaration in +sysid should be implied. +
+DOCUMENT sysid +
+This specifies that the document entity is sysid. +This entry is used only with the -C option. +
+CATALOG sysid +
+This specifies that sysid is the system +identifier of an additional catalog entry file to be read after this +one. Multiple CATALOG entries are allowed and will be +read in order. +
+BASE sysid +
+This specifies that relative storage object identifiers in system +identifiers in the catalog entry file following this entry should be +resolved using first storage object identifier in +sysid as the base, instead of the storage +object identifiers of the storage objects comprising the catalog entry +file. +Note that the sysid must exist. +
+DELEGATE pubid-prefix sysid +
+This specifies that entities with a public identifier that has +pubid-prefix as a prefix should be resolved +using a catalog whose system identfier is +sysid. For more details, see A Proposal for +Delegating SGML Open Catalogs. +
+SGML name sysid +
+This specifies that the SGML declaration body in sysid +should be used when the document starts with a reference to an SGML +declaration named name. This is an OpenSP-specific +extension of the SGML Open catalog format. SGML declaration references +are defined in +Annex K of ISO 8879. +
+

+The delimiters can be omitted from the sysid +provided it does not contain any white space. Comments are allowed +between parameters delimited by -- as in SGML. +

+The entity manager will look for catalog entry files as follows: +

    +
  1. +a file called catalog in the same directory as the +document entity, unless the environment variable +SP_USE_DOCUMENT_CATALOG has the value NO or +0; +
  2. +any catalog entry files specified using the -c option; +
  3. +a list of files specified by the environment variable +SGML_CATALOG_FILES; the list is separated by colons under +Unix and by semi-colons under MS-DOS and Windows; if this environment +variable is not set, then a system dependent list of catalog entry +files will be used. +
+

+In fact catalog entry files are not restricted to being files: the +name of a catalog entry file is interpreted as a system identifier. +

+A match in one catalog entry file will take precedence over any match +in a later catalog entry file. A more specific matching entry in one +catalog entry file will take priority over a less specific matching +entry in the same catalog entry file. For this purpose, the order of +specificity is (most specific first): +

    +
  • +SYSTEM entries; +
  • +PUBLIC entries; +
  • +DELEGATE entries ordered by the length of the prefix, +longest first; +
  • +ENTITY, DOCTYPE, LINKTYPE, +NOTATION and SGML entries. +
+

For the purpose of implying an SGML declaration, DTDDECL +entries are more specific than SGMLDECL entries. + + diff --git a/doc/charset.htm b/doc/charset.htm new file mode 100644 index 0000000..eb7e29e --- /dev/null +++ b/doc/charset.htm @@ -0,0 +1,302 @@ + + + +OpenSP - Character sets + + +

Handling of character sets in OpenSP

+

+The following description applies only to the multi-byte version of +OpenSP. In the single-byte version of OpenSP, each character is represented +both internally and in storage objects by a single byte equal to the +number of the character in the document character set. +

+OpenSP's entity manager converts the bytes comprising a storage object +into a sequence of characters. +This conversion is determined by the encoding associated with +the storage object. +

+An encoding may be specified using the name of a mapping from +sequences of characters to sequences of bytes. +

+An encoding can also be specified relative to the document character +set. This kind of an encoding maps a sequence of characters in the +repertoire of the document character set into a sequence of bytes by +

    +
  1. +mapping each character to its bit +combination in the document character set, and then +
  2. +applying a transformation that maps sequences of bit combinations +to sequences of bytes. +
+

+The transformation applied in the second step is called a bit +combination transformation format (BCTF). +A document character set relative encoding is specified by giving +the name of a BCTF. +

+An application receives characters from OpenSP represented as non-negative +integers. +The mapping from characters to integers is determined by OpenSP's internal +character set. +OpenSP can operate in a mode in which the internal character set is the +same as the document character set. +(Versions of SP up to 1.1.1 always operated in this mode.) + +The multibyte version of OpenSP can also operate in a mode in which the +internal character set does not vary with the document character set, +but is always a fixed character set, known as the system character set; +this mode of operation is called fixed character set mode. + +

Environment

+

+SP's character set handling is controlled by the following +environment variables: +

+
+SP_CHARSET_FIXED +
+If this variable is 1 or YES, then OpenSP will operate in fixed character set mode. +
+SP_SYSTEM_CHARSET +
+This identifies the system character set. When in fixed character set +mode, this character set is used as the internal character set. When +not in fixed character set mode this character set is used as the +internal character set until the document character set has been read, +at which point the document character set is used as the internal +character set. +

+The only currently recognized value for this is JIS. +This refers to a character set which combines JIS X 0201, JIS X 0208 +and JIS X 0212 by adding 0x8080 to the codes of characters in JIS X +0208 and 0x8000 to the codes of characters in JIS X 0212. +

+The default system character set is Unicode 2.0. +

+SP_ENCODING +
+This specifies the default encoding when operating in fixed character set mode. +The value must be the name of an available encoding. +The default encoding cannot be document character set relative +when operating in fixed character set mode. +
+SP_BCTF +
+This specifies the default encoding when not operating in fixed character set mode. +The value must be the name of an available BCTF. +When not operating in fixed character set mode, the default encoding is +the document character set relative encoding with this BCTF. +The default encoding is required to be document character set relative +when not operating in fixed character set mode. +
+

+The default encoding is used for file input and output, and, except +under Windows 95 and Windows NT, for all other interfaces with the +operating system including filenames, environment varable names, +environment variable values and command line arguments. +

+Under Windows 95 and Windows NT there are no restrictions on the +default encoding. Note that in order for non-ASCII characters to be +correctly displayed on your console you must select a TrueType font, +such as Lucida Console, as your console font. (This seems to work +only on Windows NT.) +

+Under other operating systems, the default encoding must be one in +which ASCII characters are represented by a single byte. +

+Applications built with OpenSP may require fixed character set mode and a +particular system character set; such applications will ignore the +SP_SYSTEM_CHARSET and SP_CHARSET_FIXED environment variables. + +

Available encodings

+

+Encoding names are case insensitive. +The following named encodings are available: +

+
+utf-8 +
+Each character is represented by a variable number of bytes +according to UCS Transformation Format 8 defined in Annex P to be +added by the first proposed drafted amendment (PDAM 1) to ISO/IEC +10646-1:1993. +
+utf-16 +
+Each character is represented by a variable number of bytes +according to UCS Transformation Format 16 defined in Annex O to be +added by the first proposed drafted amendment (PDAM 1) to ISO/IEC +10646-1:1993. +
+ucs-2 +
+iso-10646-ucs-2 +
+This is ISO/IEC 10646 with the UCS-2 transformation format. +Each character is represented by 2 bytes. +No special treatment is given to the byte order mark character. +
+ucs-4 +
+iso-10646-ucs-4 +
+utf-32 +
+This is ISO/IEC 10646 with the UCS-4 transformation format. +Each character is represented by 4 bytes. +
+unicode +
+Each character is represented according to the utf-16 encoding. +The bytes representing the entire storage object may be preceded by a pair of +bytes representing the byte order mark character (0xFEFF). The bytes +representing each character are in the system byte order, unless +the byte order mark character is present, in which case the order of +its bytes determines the byte order. When the storage object is read, +any byte order mark character is discarded. +
+euc-jp +
+This is equivalent to +the Extended_UNIX_Code_Packed_Format_for_Japanese Internet charset. +Each character is encoded by a variable length sequence of octets. +
+euc-kr +
+This is ASCII and KSC 5601 encoded with the EUC encoding +as defined by KS C 5861-1992. +
+euc-cn +
+cn-gb +
+gb2312 +
+This is ASCII and GB 2312-80 encoded with the EUC encoding. +It is equivalent to the CN-GB MIME charset defined in RFC 1922. +
+sjis +
+shift_jis +
+This is equivalent to the Shift_JIS Internet charset. +Each character is encoded by a variable length sequence of octets. +This is Microsoft's standard encoding for Japanese. +
+big5 +
+cn-big5 +
+This is equivalent to the CN-Big5 MIME charset defined in RFC 1922. +
+is8859-n +
+iso-8859-n +
+n can be any single digit other than 0. Each +character in the repertoire of ISO 8859-n is represented +by a single byte. +
+koi8-r +
+koi8 +
+The koi8-r encoding as defined in RFC 1489. +
+xml +
+On input, this uses XML's rules to determine the encoding. +On output, this uses UTF-8. +
+

+The following additional encodings are supported under Windows 95 +and Windows NT: +

+
+windows +
+Specify this encoding when a storage object is encoded using your +system's default Windows character set. +This uses the so-called ANSI code page. +
+wunicode +
+This uses the unicode encoding if the storage object starts +with a byte order mark and otherwise the windows encoding. +If you are working with Unicode, this is probably the best value +for SP_ENCODING. +
+ms-dos +
+Specify this encoding when a storage object (file) uses the OEM code page. +The OEM code-page for a particular +machine is the code-page used by FAT file-systems on that machine and +is the default code-page for MS-DOS consoles. +
+ +

Available BCTFs

+

+The following BCTFs are available: +

+
+identity +
+Each bit combination is represented by a single byte. +
+fixed-2 +
+Each bit combination is represented by exactly 2 bytes, +with the more significant byte first. +
+fixed-4 +
+Each bit combination is represented by exactly 4 bytes, +with the more significant byte first. +
+utf-8 +
+Each bit combination is represented by a variable number of bytes +according to UCS Transformation Format 8 defined in Annex P to be +added by the first proposed drafted amendment (PDAM 1) to ISO/IEC +10646-1:1993. +
+euc +
+Each bit combination is represented by a variable number of bytes +depending on the values of the 0x80 and 0x8000 bits: +
    +
  • +if neither bits are set, then the bit combination is +represented by a single byte equal to the bit combination; +
  • +bit combinations with both bits set, are represented by the MSB of the +bit combination followed by the LSB of the bit combination; +
  • +bit combinations with just the 0x80 bit set are represented +by 0x8E followed by a byte equal to the bit combination; +
  • +bit combinations with just the 0x8000 bit set are represented +by 0x8F followed by the MSB of the bit combination followed +by the LSB of the bit combination. +
+
+sjis +
+A bit combination between 0 and 127 or between 161 and +223 is encoded as a single byte with the same value as the bit combination. +A bit combination with the 0x8000 and 0x80 bits set is encoded by the +sequence of bytes with which the SJIS encoding encodes the character +whose number in JIS X 0208 added to 0x8080 is equal to the bit +combination. +
+big5 +
+A bit combination less than 0x80 is encoded as a single byte. +A bit combination with the 0x8000 bit set is encoded as two bytes, +the MSB of the bit combination followed by the LSB of the bit +combination. +
+ + diff --git a/doc/features.htm b/doc/features.htm new file mode 100644 index 0000000..2458b67 --- /dev/null +++ b/doc/features.htm @@ -0,0 +1,132 @@ + + + +OpenSP - Features Summary + +

+SP +

+

+A free, object-oriented toolkit for SGML parsing and entity management +

+

+Features summary +

+
    +
  • +Includes onsgmls +
      +
    • +Compatible with sgmls +
    • +Also generates RAST (ISO/IEC 13673) +
    +
  • +Provides access to all information about SGML document +
      +
    • +Access to DTD and SGML declaration as well as document instance +
    • +Access to markup as well as abstract document +
    • +Sufficient to recreate character-for-character identical +copy of any SGML document +
    +
  • +Supports almost all optional SGML features +
      +
    • +Arbitrary concrete syntaxes +
    • +SHORTTAG, OMITTAG, RANK +
    • +SUBDOC +
    • +LINK (SIMPLE, IMPLICIT and EXPLICIT) +
    • +Only DATATAG not supported +
    +
  • +Sophisticated entity manager +
      +
    • +Supports ISO/IEC 10744 Formal System Identifiers +
    • +Supports SGML Open catalogs +
    • +Supports WWW +
    • +Can be used independently of parser +
    +
  • +Supports multi-byte character sets +
      +
    • +Parser can use 32-bit characters internally +
    • +32-bit characters can be used in tag names and other markup +
    • +Supports ISO/IEC 10646 (Unicode) using UTF-8, UTF-16 and UTF-32 +
    • +Supports Japanese character sets (Shift-JIS, EUC) +
    +
  • +Object-oriented +
  • +Written in C++ from scratch +
      +
    • +Not a modified version of a parser originally written in C +
    • +Reentrant +
    • +Sophisticated architecture +
    +
  • +Fast +
      +
    • +Up to twice as fast as sgmls on large documents +
    +
  • +Portable +
      +
    • +All major Unix variants +
    • +MS-DOS +
    • +Win32: Windows 95/Windows NT +
    • +OS/2 +
    +
  • +Production quality +
      +
    • +Version 1.0 recently released, after a year of test releases +
    • +Tested using several SGML test suites +
    • +Already used in several new commercial products +
    • +Written by James Clark, previously responsible for turning arcsgml into sgmls +
    +
  • +Free +
      +
    • +Includes source code +
    • +No restrictions on commercial use +
    +
  • +Disadvantages +
      +
    • +Programmer-level documentation only for generic API +and not for native API. +
    +
+ + diff --git a/doc/generic.htm b/doc/generic.htm new file mode 100644 index 0000000..925c520 --- /dev/null +++ b/doc/generic.htm @@ -0,0 +1,1088 @@ + + + +The generic API to OpenSP + + +

The generic API to OpenSP

+

+OpenSP provides a generic API in addition to its native API. The generic +interface is much simpler than the native interface. It is generic in +the sense that it could be easily implemented using parsers other than +OpenSP. It provides all ESIS information as well as some other +information about the instance that is commonly needed by +applications. However, it doesn't provide access to all information +available from OpenSP; in particular, it doesn't provide information about +the DTD. It is also slightly less efficient than the native +interface. +

+The interface uses two related abstract classes. An +SGMLApplication is an object that can handle a number of +different kinds of event which correspond to information in an SGML +document. An EventGenerator is an object that can +generate a sequence of events of the kinds handled by an +SGMLApplication. The +ParserEventGeneratorKit class makes an +EventGenerator that generates events using OpenSP. + +

Types

+

+SGMLApplication has a number of local types that are used +in several contexts: +

+
+Char +
+This typedef is an unsigned integral type that represents a single bit +combination (character). It is unsigned short if +SP_MULTI_BYTE is defined and unsigned char +otherwise. +
+CharString +
+This struct represents a string of Char. +It has the following members: +
+
+const Char *ptr +
+A pointer to the Chars of the string. +
+size_t len +
+The number of Chars in the string. +
+
+Location +
+This struct holds information about a location in the entity structure +of a document. It is constucted using an OpenEntityPtr +and a Position. The CharStrings in it will +remain valid as long as the OpenEntity that is pointed to +by the OpenEntityPtr that was used to construct it +remains valid. +

+It has the following members: +

+
+unsigned long lineNumber +
+The line number. +(unsigned long)-1 if invalid. +
+unsigned long columnNumber +
+The column number. +Note that tabs are not treated specially. +(unsigned long)-1 if invalid. +
+unsigned long byteOffset +
+The number of bytes in the storage object preceding the location. +(unsigned long)-1 if invalid. +
+unsigned long entityOffset +
+The number of bit combinations in the entity preceding the location. +(unsigned long)-1 if invalid. +
+CharString entityName +
+The name of the external entity containing the location. +An empty string if invalid. +
+CharString filename +
+The name of the file containing the location. +An empty string if invalid. +
+const void *other +
+Other implementation-dependent information about the location. In the +OpenSP implementation it will be a pointer to a StorageObjectSpec. 0 if +invalid. +
+

+When a location is in an internal entity, the location of the reference +to the entity will be used instead. +

+OpenEntity +
+This class represents a currently open entity. The only use for an +OpenEntity is, in conjunction with a +Position, to create a Location. An +OpenEntity is accessed using an +OpenEntityPtr. +
+OpenEntityPtr +
+This class is a reference-counted pointer to an OpenEntity. +
+Position +
+This is an integral type that represents a position in an open entity. +The meaning of a Position is completely determined by the +OpenEntity object with which it is associated. The only +use for an Position is, in conjunction with an +OpenEntity, to create a Location. +
+ExternalId +
+This struct represents an external identifier. It has the following +members: +
+
+bool haveSystemId +
+True iff the external identifier included an explicit system identifier. +
+CharString systemId +
+The system identifier included in the external identifier. +Valid only if havePublicId is true. +
+bool havePublicId +
+True iff the external identifier included an explicit public identifier. +
+CharString publicId +
+The public identifier included in the external identifier. +Valid only if havePublicId is true. +
+bool haveGeneratedSystemId +
+True iff a system identifier was generated for the external identifier. +
+
+CharString generatedSystemId +
+The system identifier generated for the external identifier. +Valid only if haveGeneratedSystemId is true. +
+
+Notation +
+This struct represents a notation. +It has the following members: +
+
+CharString name +
+The name of the notation. +
+ExternalId externalId +
+The external identifier of the notation. +
+
+Entity +
+This struct represents an entity. +It has the following members. +
+
+CharString name +
+The name of the entity. +
+Entity::DataType dataType +
+The type of the data of the entity. +

+Entity::DataType is a local enum with the following possible +values: +

+
+Entity::sgml +
+
+Entity::cdata +
+
+Entity::sdata +
+
+Entity::ndata +
+
+Entity::subdoc +
+
+Entity::pi +
+
+
+Entity::DeclType declType +
+The type of the declaration of the entity. +

+Entity::DeclType is a local enum with the following possible +values: +

+
+Entity::general +
+The entity is a general entity. +
+Entity::parameter +
+The entity is a parameter entity. +
+Entity::doctype +
+The entity was declared in a doctype declaration. +
+Entity::linktype +
+The entity was declared in a linktype declaration. +
+
+bool isInternal +
+True iff the entity is internal rather than external. +
+CharString text +
+The replacement text of the entity. +Valid only if isInternal is true. +
+ExternalId externalId +
+The external identifier of the entity. +Valid only if isInternal is false. +
+const Attribute *attributes +
+Pointer to the data attributes of the entity. +Valid only if isInternal is false. +
+size_t nAttributes +
+The number of data attributes of the entity. +Valid only if isInternal is false. +
+Notation notation +
+The entity's notation. +An empty string if the entity has no notation. +Valid only if isInternal is false. +
+
+Attribute +
+This struct represents an attribute. More precisely it represents the +assignment of an attribute value to an attribute name. +It has the following members: +
+
+CharString name +
+The attribute name. +
+Attribute::Type type +
+An enumeration describing the type of the attribute. +

+Attribute::Type is a local type with the following possible +values: +

+
Attribute::invalid +
+The attribute is invalid. +
Attribute::implied +
+The attribute is an impliable attribute for which +no value was specified. +
Attribute::cdata +
+The attribute is a CDATA attribute. +
Attribute::tokenized +
+The attribute is a tokenized attribute. +
+
+Attribute::Defaulted defaulted +
+An enumeration specifying whether the entity was defaulted, and, if +so, how. +This is non-ESIS information. +

+Attribute::Defaulted is a local enum with the following +possible values: +

+
+Attribute::specified +
+The value was explicitly specified. +
+Attribute::definition +
+The value was defaulted from the attribute definition. +
+Attribute::current +
+The value was defaulted using the CURRENT value of the attribute. +
+
+size_t nCdataChunks +
+The number of Attribute::CdataChunks comprising the value +of the attribute. Valid only if type is +cdata. +
+const Attribute::CdataChunk *cdataChunks +
+The Attribute::CdataChunks comprising the value of this attribute. +Valid only if type is cdata. +

+Attribute::CdataChunk is a local struct with the +following members: +

+
+bool isSdata +
+True iff this chunk is the replacement text of an internal SDATA entity. +
+CharString data +
+The data of this chunk. +
+CharString entityName +
+The name of the internal SDATA entity that this chunk is the +replacement text of. Valid only if isSdata is true. +This is non-ESIS information. +
+
+CharString tokens +
+Valid only if type is Attribute::tokenized. +
+bool isId +
+True iff the declared value is ID. +This is non-ESIS information. +
+size_t nEntities +
+The number of entities associated with this attribute. +This will be zero unless the declared value is ENTITY or ENTITIES. +
+const Entity *entities +
+The entities associated with this attribute. +
+Notation notation +
+The notation associated with this attribute. +If the declared value of the attribute is not NOTATION, +then the name member will be an empty string. +
+
+

Events

+

+For each event xyzEvent handled by +SGMLApplication, there is a virtual function of +SGMLApplication named xyz to +handle the event, and a local struct of SGMLApplication +named XyzEvent. +

+Pointers within an event xyzEvent are valid +only during the call to xyz. None of the +structs in events have copy constructors or assignment operators +defined. It is up to the event handling function to make a copy of +any data that it needs to preserve after the function returns. +

+Except as otherwise stated, +the information in events is ESIS information. +All position information is non-ESIS information. +

+There are the following types of event: +

+
+AppinfoEvent +
+Generated for the APPINFO section of the SGML declaration. +The event has the following members: +
+
Position pos +
+The position of APPINFO parameter of the SGML declaration. +
bool none +
+True iff APPINFO NONE was specified. +
CharString string +
+The interpreted value of the minimum literal specified +in the appinfo parameter of the SGML declaration. +Valid only if none is false. +
+
+PiEvent +
+Generated for a processing instruction. +The event has the following members: +
+
+Position pos +
+The position of the processing instruction. +
+CharString data +
+The system data of the processing instuction. +
+CharString entityName +
+If the processing instruction was the result of the +reference to a PI entity, the name of the entity. +If not, an empty string. +This is non-ESIS information. +
+
+StartElementEvent +
+Generated for the start of an element. +The event has the following members: +
+
+Position pos +
+The position of the start of the element. +
+CharString gi +
+The generic identifier of the element. +
+Element::ContentType contentType +
+The type of the element's content. +This is non-ESIS information. +

+Element::ContentType is an enum with the following +possible values: +

+
+Element::empty +
+The element has empty content, either because it was +declared as EMPTY or because there was a #CONREF attribute. +
+Element::cdata +
+The element has CDATA content. +
+Element::rcdata +
+The element has RCDATA content. +
+Element::mixed +
+The element has mixed content. +
+Element::element +
+The element has element content. +
+
+bool included +
+True iff the element was an included subelement +(rather than a proper subelement). +This is non-ESIS information. +
+size_t nAttributes +
+The number of attributes of this element. +
+const Attribute *attributes +
+A pointer to the attributes for this element. +
+
+EndElementEvent +
+Generated for the end of an elemenet. +The event has the following members: +
+
+Position pos +
+The position of the end of the element. +
+CharString gi +
+The generic identifier of the element. +
+
+DataEvent +
+Generated for character data. +Separate data events may be generated for consecutive data characters. +Applications should make no assumptions about how character data is split +into DataEvents. +The event has the following members: +
+
+Position pos +
+The position of the first character of the data. +
+CharString data +
+The data. +
+
+SdataEvent +
+Generated for a reference to an internal sdata entity in content. +The event has the following members: +
+
+Position pos +
+The position of the entity reference. +
+CharString text +
+The replacement text of the entity. +
+CharString entityName +
+The entity name. +This is non-ESIS information. +
+
+ExternalDataEntityRefEvent +
+Generated for a reference to an external data entity. +The event has the following members: +
+
+Position pos +
+The position of the entity reference. +
+Entity entity +
+The referenced entity. +
+
+SubdocEntityRefEvent +
+Generated for a reference to a subdoc entity. +The event has the following members: +
+
+Position pos +
+The position of the entity reference. +
+Entity entity +
+The referenced entity. +
+
+StartDtdEvent +
+Generated at the start of a document type declaration. +This is non-ESIS information. +The event has the following members: +
+
+Position pos +
+The position of the start of the document type declaration. +
+CharString name +
+The document type name. +
+bool haveExternalId +
+The external identifier for the entity declared in the document type +declaration. +
+ExternalId externalId +
+Valid iff haveExternalId is true. +
+
+EndDtdEvent +
+Generated at the end of a document type declaration. +This is non-ESIS information. +The event has the following members: +
+
+Position pos +
+The position of the end of the DTD. +
+CharString name +
+
+
+EndPrologEvent +
+Generated at the end of the prolog. +The event has the following members: +
+
+Position pos +
+The position of the start of the instance. +
+
+GeneralEntityEvent +
+Generated for each general entity in the name space of the governing +doctype, but only if the +ParserEventGeneratorKit::outputGeneralEntities option is +enabled. This is non-ESIS information. The event has the following +members: +
+
+Entity entity +
+The entity. +
+

+No event will be generated for the declaration of the +#default entity; instead an event will be generated when +an entity reference uses the #default entity if that is +the first time on which an entity with that name is used. This means +that GeneralEntityEvent can occur after the end of the +prolog. +

+CommentDeclEvent +
+Generated for each comment declaration in the instance, but only if +ParserEventGeneratorKit::outputCommentDecls option is +enabled. This is non-ESIS information. The event has the following +members: +
+
+Position pos +
+The position of the start of the comment declaration. +
+size_t nComments +
+The number of comments in the comment declaration. +
+const CharString *comments +
+The content of each comment in the declaration. +This excludes the com delimiters. +
+const CharString *seps +
+The separator following each comment in the declaration. +
+
+MarkedSectionStartEvent +
+Generated for the start of a marked section in the instance, +but only if the ParserEventGeneratorKit::outputMarkedSections +option is enabled. +This is non-ESIS information. +The event has the following members: +
+
+Position pos +
+The position of the start of the marked section declaration. +
+MarkedSectionStartEvent::Status status +
+The effective status of the marked section. +

+MarkedSectionStartEvent::Status is a local enum with the +following possible values: +

    +
  • MarkedSectionStartEvent::include +
  • MarkedSectionStartEvent::rcdata +
  • MarkedSectionStartEvent::cdata +
  • MarkedSectionStartEvent::ignore +
+
+size_t nParams +
+The number of top-level parameters in the status keyword specification. +
+const MarkedSectionStartEvent::Param *params +
+The top-level parameters in the status keyword specification. +

+Param is a local struct with the following members: +

+
+MarkedSectionStartEvent::Param::Type type +
+The type of top-level parameter: +

+MarkedSectionStartEvent::Param::Type is a local enum with the +following possible values: +

+
+MarkedSectionStartEvent::Param::temp +
+MarkedSectionStartEvent::Param::include +
+MarkedSectionStartEvent::Param::rcdata +
+MarkedSectionStartEvent::Param::cdata +
+MarkedSectionStartEvent::Param::ignore +
+The parameter is the corresponding keyword. +
+MarkedSectionStartEvent::Param::entityRef +
+The parameter is an entity reference. +
+
+CharString entityName +
+Valid when type is +MarkedSectionStartEvent::Param::entityRef. +
+
+
+MarkedSectionEndEvent +
+Generated for the end of a marked section in the instance, but only if +the ParserEventGeneratorKit::outputMarkedSections option is +enabled. This is non-ESIS information. The event has the following +members: +
+
+Position pos +
+The position of the end of the marked section declaration. +
+MarkedSectionEndEvent::Status status +
+The effective status of the marked section. +

+MarkedSectionEndEvent::Status is a local enum with the +following possible values: +

    +
  • MarkedSectionEndEvent::include +
  • MarkedSectionEndEvent::rcdata +
  • MarkedSectionEndEvent::cdata +
  • MarkedSectionEndEvent::ignore +
+
+
+IgnoredCharsEvent +
+Generated for a sequence of characters in an ignored marked section in +the instance, but only if the +ParserEventGeneratorKit::outputMarkedSections option is +enabled. This is non-ESIS information. The event has the following +members: +
+
+Position pos +
+The position of the first of the ignored characters. +
+CharString data +
+The ignored characters. +
+
+ErrorEvent +
+Generated for each error detected by the parser, +and also for any other cases where the parser produces a message. +This is non-ESIS information. +It has the following members: +
+
+Position pos +
+The position at which the error was detected. +
+ErrorEvent::Type type +
+The type of error. +

+ErrorEvent::Type is a local enum with the following possible +values: +

+
+ErrorEvent::quantity +
+Exceeding a quantity limit. +
+ErrorEvent::idref +
+An IDREF to a non-existent ID. +
+ErrorEvent::capacity +
+Exceeding a capacity limit. +
+ErrorEvent::otherError +
+Any other kind of error. +
+ErrorEvent::warning +
+A warning. Not actually an error. +
+ErrorEvent::info +
+An informational message. Not actually an error. +
+
+CharString message +
+The message produced by the parser. +If messages are not disabled, this will be the same as the message +printed to standard error. +
+
+

+SGMLApplication also has a virtual function +

+void openEntityChange(const OpenEntityPtr &);
+
+

+which is similar to an event. An application that wishes to makes use +of position information must maintain a variable of type +OpenEntityPtr representing the current open entity, and +must provide an implementation of the openEntityChange +function that updates this variable. It can then use the value of +this variable in conjunction with a Position to obtain a +Location; this can be relatively slow. Unlike events, an +OpenEntityPtr has copy constructors and assignment +operators defined. + +

EventGenerator

+

+The EventGenerator interface provides the following +functions: +

+
+unsigned run(SGMLApplication &app) +
+Generate the sequence of events, calling the corresponding member of +app for each event. Returns the number of +errors. This must not be called more than once for any +EventGeneratorobject. +
+ +EventGenerator *makeSubdocEventGenerator(const SGMLApplication::Char *s, size_t n) + +
+Makes a new EventGenerator for a subdocument of the +current document. s and n together specify the +system identifier of the subdocument entity. These should usually be +obtained from the generatedSystemId member of the +externalId member of the Entity object for +the subdocument entity. This function can only be called after +run has been called; the call to run need +not have returned, but the SGMLApplication + +must have been passed events from the prolog or instance (ie the SGML +declaration must have been parsed). +
+void inhibitMessages(bool b) +
+If b is true, disables error and warning messages, +otherwise enables them. Initially errors and warnings are enabled. +This function may be called at any time, including while +run() is executing. +
+void halt() +
+Halt the generation of events by run(). +This can be at any point during the execution of run(). +It is safe to call this function from a different thread from that which +called run(). +
+

ParserEventGeneratorKit

+

+The ParserEventGeneratorKit class is used to create an +EventGenerator that generate events using OpenSP. It +provides the following members: +

+
+EventGenerator *makeEventGenerator(int nFiles, char *const *files) +
+This returns a new EventGenerator that will generate events +for the SGML document whose document entity is contained in the +files. +The returned EventGenerator should be deleted when it +is no longer needed. +makeEventGenerator may be called more than once. +
+void setOption(ParserEventGeneratorKit::Option opt) +
+This can be called any time before makeEventGenerator() is called. +

+ParserEventGeneratorKit::Option is a local enum with the following possible +values: +

+
+ParserEventGeneratorKit::showOpenEntities +
+This corresponds to the -e option of nsgmls. +
+ParserEventGeneratorKit::showOpenElements +
+This corresponds to the -g option of nsgmls. +
+ParserEventGeneratorKit::outputCommentDecls +
+This will cause CommentDeclEvents to be generated. +
+ParserEventGeneratorKit::outputMarkedSections +
+This will cause +MarkedSectionStartEvents, +MarkedSectionStartEvents +and IgnoredCharsEvents +to be generated. +
+ParserEventGeneratorKit::outputGeneralEntities +
+This will cause GeneralEntityEvents to be generated. +
+ParserEventGeneratorKit::showErrorNumbers +
+This corresponds to the -n option of nsgmls. +
+
+ +void setOption(ParserEventGeneratorKit::OptionWithArg opt, const char *arg) + +
+This can be called any time before makeEventGenerator() is called. +

+ParserEventGeneratorKit::OptionWithArg is a local enum with the following possible +values: +

+
+ParserEventGeneratorKit::addCatalog +
+This corresponds to the -m option of nsgmls. +
+ParserEventGeneratorKit::includeParam +
+This corresponds to the -i option of nsgmls. +
+ParserEventGeneratorKit::enableWarning +
+This corresponds to the -w option of nsgmls. +
+ParserEventGeneratorKit::addSearchDir +
+This corresponds to the -D option of nsgmls. +
+
+ +

Using the interface

+

+Creating an application with this interface involves the following steps: +

    +
  • +Derive a class from SGMLApplication, +called, say, MyApplication. +
  • +For each kind of event FooEvent that the application +needs information from, define a member of MyApplication +void MyApplication::foo(const FooEvent &). +
  • +Declare an object of type ParserEventGeneratorKit. +
  • +Optionally set options for the ParserEventGeneratorKit using +ParserEventGeneratorKit::setOption. +
  • +Create an EventGenerator using +ParserEventGeneratorKit::makeEventGenerator. +
  • +Create an instance of MyApplication +(usually on the stack). +
  • +Call EventGenerator::run passing it a reference to +the instance of MyApplication. +
  • +Delete the EventGenerator. +
+

+The application must include the ParserEventGeneratorKit.h +file (which in turn includes EventGenerator.h and +SGMLApplication.h), which is in the generic +directory. If your compiler does not support the standard C++ +bool type, you must ensure that bool is +defined as a typedef for int, before including this. One +way to do this is to include config.h and then +Boolean.h from the lib subdirectory of the OpenSP +distribution. +

+On Unix, the application must be linked with the +lib/libsp.a library. + +

Example

+

+Here's a simple example of an application that uses this interface. +The application prints an outline of the element structure of a +document, using indentation to represent nesting. +

+// The next two lines are only to ensure bool gets defined appropriately.
+#include "config.h"
+#include "Boolean.h"
+
+#include "ParserEventGeneratorKit.h"
+#include <iostream.h>
+
+ostream &operator<<(ostream &os, SGMLApplication::CharString s)
+{
+  for (size_t i = 0; i < s.len; i++)
+    os << char(s.ptr[i]);
+  return os;
+}
+
+class OutlineApplication : public SGMLApplication {
+public:
+  OutlineApplication() : depth_(0) { }
+  void startElement(const StartElementEvent &event) {
+    for (unsigned i = 0; i < depth_; i++)
+      cout << "    ";
+    cout << event.gi << '\n';
+    depth_++;
+  }
+  void endElement(const EndElementEvent &) { depth_--; }
+private:
+  unsigned depth_;
+};
+
+int main(int argc, char **argv)
+{
+  ParserEventGeneratorKit parserKit;
+  // Use all the arguments after argv[0] as filenames.
+  EventGenerator *egp = parserKit.makeEventGenerator(argc - 1, argv + 1);
+  OutlineApplication app;
+  unsigned nErrors = egp->run(app);
+  delete egp;
+  return nErrors > 0;
+}
+
+

+This example will only work for the non-multibyte version of OpenSP; +for the multibyte version you will need to use the standard C++ library's +facilities for wide character output, or roll your own equivalents +(like the OutputCharStream used by OpenSP applications). +

+There's a bigger example in the osgmlnorm directory in the OpenSP +distribution. +This uses the SGMLApplication interface, but it doesn't +use the ParserEventGeneratorKit interface. + + diff --git a/doc/ideas.htm b/doc/ideas.htm new file mode 100644 index 0000000..932aa1c --- /dev/null +++ b/doc/ideas.htm @@ -0,0 +1,515 @@ + + + +Ideas for improving SP + + +

Ideas for improving SP

+

+Parser +

+

+When !internalCharsetIsDocCharset, need to check that every +significant character is an SGML character. +

+Treat "ISO Registration Number NNN//" public ids specially. Warn if +they use designating sequence inconsistently. +

+Pass non-declared attributes through to application. +

+Avoid expensive overflow test in stringToNumber when length of number +is less then something guaranteed not to overflow. +

+Allow external character set to be complete character set description. +

+Maybe distinguish non-SGML characters as separate event even when +internalCharsetIsDocCharset. +

+Supporting caching across multiple runs of parser in single +process. +

+Make Dtd copiable. +

+?Subdoc parser needs character set for system id (should be system +character set). +

+Recover better from non-existent documents or subdocuments. +

+Think about entity declarations/references in inactive LPDs. +

+Don't allow name groups in parameter entity references in document +type specifications in start-/end-tags. +

+With link, don't do a pass 2 unless we replace a referenced entity +(what about default entity?). +

+Options to warn about things that HTML disallows: marked sections in +instance, explicit subsets. +

+Option to warn about MDCs in comments in comment declarations. +

+Option to warn about omitted REFC. +

+Check that names of added functions are valid names in concrete syntax +(both characters and lengths). Also need to do upper-case +substitution on them? +

+Recover from nested doctype declaration intelligently. +

+Recover from missing doctype declaration intelligently. +

+Could optimize parsing of attribute literals using technique similar +to extendData(). +

+attributeValueLength error should give actual length of value. +

+Recover better from entity reference with name group in literal. +

+At start of pass 2 clear everything in pass1LPDs except entity sets. +

+Give an error if EXPLICIT > 1 and LPDs don't chain as required by +436:5-7 and 436:18-20. +

+Handle quantity errors by reporting at the end of the prolog and the +end of the instance any quantities that need to be increased. +

+Make noSuchReservedName error more helpful. +

+Function characters should perform their function even when markup +recognition is suppressed. (I think I've handled this.) +

+Give a warning for notation attribute that is #CONREF. +

+Try to separate out Parser::compileModes(). +

+In CompiledModelGroup have vector that gives an index for each element type +that occurs in the model group. Then in each leaf content token have a +vector that maps this index to a LeafContentToken *, if there +is a simple transition (no and groups involved) to that element type. +

+MatchState::minAndDepth and MatchState::AndInfo should be separated +off info object pointed to from MatchState; pointer would be null for +elements with no AND groups. +

+What to do if we encounter USELINK or USEMAP declaration after DTD in +prolog? Should stop prolog and start DTD. If we have SCOPE INSTANCE +then if we get an unknown declaration type in prolog, don't give +error, but unget token and start instance. +

+?Have separate version of reportNonSgml() for case where datachar is allowed. +

+Implement CONCUR. +

+AttributeDefinition constructors should have Owner<DeclaredValue> &, +arguments to avoid storage leaks when exceptions are thrown. +

+Create a list like IList but which keeps track of length. Then +combine tagLevel into openElement stack, and inputLevel into +inputStack. +

+AttributeDefinition::makeValue should return +ConstResourcePointer<AttributeValue>. +

+Syntax member functions should use reference for result. +

+Have a LocationKey data structure that can be used to determine the +relative order of locations in possibly different concurrent +instances. Contains: offset in document instance; is it a replacement +of named character reference; for each entity and numeric character +reference: location in entity and index of dtd in which instance is +declared. +

+On systems with fixed stacks, avoid unlimited stack growth: hard +limits on number of SUBDOCS and GRPLVL. +

+With extendData and extendS don't extend more than some fixed amount +(eg 1024), otherwise could overrun InputSource buffer on 16-bit +system. +

+Have a location in ElementType saying where the first mention of the +element name was. Useful for giving warnings about undefined +elements. +

+How to detect 310:8-10? +

+AttributeSemantics should return const pointers rather than ResourcePointer's +

+Rename Parser -> ParserImpl SgmlParser -> Parser +Syntax::isB -> Syntax::isBlank +

+What mode should be used for parsing other prolog after document element? +

+Flag out of context data. +

+Provide mechanism to allow character names to be mapped onto universal +character numbers. +

+Provide mechanism to allow specification of wbat characters are +control characters (for the purposes of SHUNCHAR controls). +

+With SCOPE INSTANCE, which syntax should be used for delimiters in +bracketed text entities? +

+Better error messages for ambiguous delimiters. +

+Do we need both EndLpd and ComplexLink/SimpleLink events? +

+What to do about 457:19-21? +

+Rename lpd_ to activeLpd_; allLpd_ to lpd_. +

+Test for validity of character numbers in syn ref charset (perhaps +unnecessary, because bad numbers won't be translateable into doc +charset). +

+Option to read bootstrap character set from entity. +

+In AttributeDefinitionList have a flag that is true if any checking of +unspecified values in attribute list is needed (ie CURRENT, REQUIRED, +non-implied ENTITY, non-implied NOTATION). In this case can avoid +running over attributes in AttributeList::finish, by computing value +only when user calls Attribute::value(). +

+Construct link attributes from definition if no applicable link rule. +(RAST maybe doesn't want this. Make it a separate method in LinkProcess and +use in SgmlsEventHandler. Very useful with ArcEngine.) +

+Shouldn't have OpenElementInfo in Message. Instead use RTTI. +

+noSuchAttribute: include gi in message; if element is undefined, don't +give error at all +

+noSuchAttributeToken: say what element or entity +

+nonExistentEntityRef should say document/link type +

+Distinguish errors that are totally recoverable. +

+Find better way to unpack entity information in entity attribute. + +

+Entity Manager +

+

+Build document<->internal translation tables once per document not +once per entity. +

+Avoid document<->internal translations when one is the subset of the other +(or something like that). +

+In cases where it won't cause problems, don't translate +non-SGML/unrepresentable characters when doing document<->internal +translations, so that user gets better error message. +

+Recover better from unknown document character sets (shouldn't report +them as non-SGML characters). +

+Maybe need to keep track of set of SGML characters as numbers in document +character set. +

+Optimize TranslateDecoder where underlying codingSystem is identity by +using simple lookup table. +

+Make use of charset parameter in MIME header for HTTP. Also generate +AcceptCharsets line in request. +

+Implement .mim files (if extension of file is same as environment variable +SP_MIME_EXT assume it has a MIME header). +

+Avoid using TranslateCodingSystem when translation is a no-op. +

+Make SP_CONVERT when !SP_MULTI_BYTE. +

+Avoid requiring that BASE sysid exist. +

+When FSI has only a single storage manager and that is a literal, +return an InternalInputSource. +

+Allow user of InputSource to specify what bit combinations they +want to see for RS and RE. +

+Have environment variable SP_INPUT_BCTF that overrides SP_BCTF for +input. +

+Avoid using numeric character references for all characters in storage +object identifier of literal storage manager in effective system +identifier. +

+Instead of registering coding system pass CodingSystemKit that can create +that can create coding systems. +

+Need BCTF entry in catalog that specifies default BCTF. +

+Allow encodings to be externally specified (eg in a catalog) as a +combination of a BCTF and a character set. +

+An SOEntityCatalog should consist of a Vector<ConstPtr<EntityCatalog> +> which can be shared between several catalogs. This would facilitate +> caching. +

+Maybe need to be able to specify two types of catalog entry file: one +used for all documents; one used for this document alone. +

+Allow end-tags in FSIs. Support alternative SOSs. +

+Character sets in the catalog need rethinking. Also character set of +ParsedSystemId::Map::publicId. +

+Allow for HTTP proxy. +

+Cache catalogs. +

+Use Microsoft ActiveX (formerly Sweeper) DLL on Win95 or NT. +

+Support FILE URLs. +

+Perhaps don't want to do searching for catalog files (and perhaps +command line files). +

+Provide mechanism for specifying when (if at all) base dir is searched +relative to other dirs. +

+Provide extension to catalog format to distinguish entities declared +in non-base DTDs. Perhaps precede entity name by document type name +surrounded by GRPO/GRPC delimiters. +

+URLStorageManager should use a DescriptorManager shared with +PosixStorageManager. +

+URLStorageManager::resolveRelative should delete "xxx/../" and "./" +components. Might also be a good idea to resolve host names. +

+Implement JIS encoding system (what should be done with half-width yen +and overbar in JIS-Roman? translate to Unicode). +

+ExternalInfoImpl::convertOffset: when the position is the character +past the last character and the last character was a newline, line +number should be number of lines + 1. +

+Try harder to rewind in StdioStorageObject. + +

+Generic +

+

+Provide mechanism to access data entities using generated system id. +

+Support IMPLICIT/SIMPLE LINK. +

+Character set information. +

+Need to know space character that separates token. Alternatively +provide broken down view of tokens. +

+Need to know IDREF (and other declared values)? + +

+nsgmls +

+

+Problem with "\#n;" escape sequence is that it might get used other +than in data. Probably should get rid of this feature, and give +a warning when there's an unencodable character. + +

+Internal +

+

+Make sure all files use #pragma i/i. +

+Get rid of assumption that Vector<T>::size_type, String<T>::size_type +is size_t. +

+Maybe align Owner with auto_ptr. +

+Get rid of uses of string as identifier. +

+?Maybe support non-const copy constructors for NCVector/Owner. +

+Get rid of asEntityOrigin (as far as possible). Make +InputSourceOrigin::defLocation virtual on origin. Avoid excessive use +of asInputSourceOrigin. +

+Hash should define Hash(String<unsigned char>), +Hash(String<unsigned short>) etc. +

+Invert sense of SP_HAVE_BOOL define. +

+Get rid of OutputCharStream::open. Instead have +OutputCharStream::setEncoding. (Perhaps make a friend so we can use +ostream if we're not interested in encodings.) Allow use of ostream +instead of OutputCharStream. Change ParserToolkit::errorStream_'s coding +system when we change the coding system. +

+Support 32-bit Char. Need to fix XcharMap and SubstTable. +Detemplatize SubstTable. Then support UTF-16. +

+Have a common version of Ptr for things that have a virtual +destructor. +

+Have a common version of Owner for all things that have a virtual +destructor. +

+Inheritance in AttributeSemantics unnecesary. +

+Rename ISet -> RangeSet. +

+ISet and RangeMap should use binary search. +

+Better hash function for wide characters. +

+OutputCharStream should canonically use RS/RE and translate to system +newline char with raw option that prevents this. +

+Avoid having Entity.h depend on ParserState, perhaps by double +dispatching. +

+Add uses of explicit keyword. +

+When generating message.h file; if we don't have .cxx file and +namespaces are supported, use anonymous namespace. + +

+Application framework +

+

+Only use static programName for outOfMemory message. +

+Need to use AppChar *const * not AppChar ** in CmdLineApp. +

+When reporting message with MessageEventHandler need to be able to +update error count. +

+Option argument names need to be internationalized. +

+Support response files for DOS. +

+Sort options in usage message. +

+StringMessageArg should be associated with a character set (in +particular, need to distinguish parser character sets from +StorageManager character sets). +

+Should translate StringMessageArg from document character set to +system character set. Have MessageReporter::setDocumentCharacter +function. +

+In MessageReporter, maybe distinguish messages coming from the parser. +

+Don't ever give a non-existent file as a location in a error message. +

+Text of messages should be able to specify that an open quote or close +quote should be inserted at a particular point. +

+When outputting a StringMessageArg translate \r to \n. +

+Make sure wild cards work in VC++ and MS-DOS. + +

+Win32 +

+

+Remove path and extension from program name in error messages. +

+Compilers can typically eliminate unused templates. Reengineer Vector +to reduce code size with such compilers. +

+Store messages in resources; requires numeric tags for messages. +

+Should automatically register all available code pages. +

+Make use of IsTextUnicode() API. +

+Have StorageManager that uses Win32 API directly. Would avoid limits +on number of open files. Also use flag that says file is being +accessed sequentially. +

+Allow DTDs to be compiled into binary by having storage manager that +uses resource ids. + +

+Architecture engine +

+

+Should give an error with -A if the specified arch does not exist. +

+Interpret APPINFO parameter, and automatically enable architectural +processing based on this. +

+Handle derived architecture support attributes. +

+When doing architectural processing in link type, not possible to have +notation declaration, so need some other way to specify public +identifier for architecture. +

+Allow DOCTYPE to be declared inline (as with CONCUR or EXPLICIT LINK). +

+Grok conventional comments. +

+Make work automatically with EventHandlers that process subdoc. Make +references to subdocs architectural. +

+Support different SGML declaration for meta-DTD. +

+Maybe should map internal sdata/cdata entities to copies in meta-DTD. +

+Perhaps when getting open element info should indicate that gis are +architectural. +

+Think about references to SDATA entities in default values in meta-DTD. +

+Add default entity from real DTD to meta-DTD. +

+Tokenize ArcForm attribute appropriately. +

+Make special case for parsing DTD when entity can't be accessed. +

+Try to provide extension that would allow architecture elements be +asynchronous with actual elements? This would provide CONCUR +functionality. + +

+sgmlnorm +

+

+Avoid bogus newline from invalid empty document. +

+Avoid always escaping >. +

+Option to say whether to use character references for 8-bit characters. +

+Option to output implied attributes. +

+Option to output all non-implied attributes. +

+Option to omit attribute name with name tokens. +

+Protect against recognition of short references. +

+Option to preserve CDATA entity references. +

+Option to output general entity declarations in DTD subset +(but what about data attributes)? + +

+spam +

+

+Option to normalize names. +

+Add comments round expanded entities to prevent false delimiter +recognition. +

+Add newline at the end if last thing was omitted tag. +

+Option to warn about changes in internal entities when not expanding. + +

+Documentation +

+

+Error message format. +

+<catalog> FSI tag. + + diff --git a/doc/index.htm b/doc/index.htm new file mode 100644 index 0000000..2391d7c --- /dev/null +++ b/doc/index.htm @@ -0,0 +1,103 @@ + + + +OpenSP + + +

OpenSP

+

+An SGML System Conforming to International Standard ISO 8879 -- +Standard Generalized Markup Language +

+

+An SGML Extended Facilities system conforming to +Annex A of International Standard ISO/IEC 10744 -- +Hypermedia/Time-based Structuring Language +

+

+The following documents are available: +

+

+

+There is a mailing list for discussions of OpenJade and OpenSP. Mail to openjade-devel-request@lists.sourceforge.net +(with "help" in the body) or click here http://lists.sourceforge.net/lists/listinfo/openjade-devel +for subscription information. Messages for the list should go to openjade-devel@lists.sourceforge.net. +

+For information about SGML, see +

+

+We would like to hear +about any bugs you find in OpenSP. +When reporting a bug, please always include a complete self-contained file +that will enable us to reproduce the bug. We are also interested in receiving +suggestions for improvements to OpenSP no matter how small. + + diff --git a/doc/new.htm b/doc/new.htm new file mode 100644 index 0000000..f8848ad --- /dev/null +++ b/doc/new.htm @@ -0,0 +1,141 @@ + + + + What's new in SP? + + + +

+What's new?

+This document describes user-visible changes in SP up to 1.3. Bug fixes are +not described. +

+Version 1.3

+Better support for XML based on the Web SGML Adaptations +Annex to ISO 8879. +

New SX application that converts SGML to XML. +

The architecture engine has been updated to match HyTime 2nd Edition +(This means that you must use +<?IS10744 ArcBase arch> +rather than +<?ArcBase arch>.) +

+Version 1.2

+The Extended Naming Rules TC is supported. The extensions supported in +external concrete syntaxes have been changed for compatibility with this. +

The handling of character sets in the multi-byte version is more sophisticated. +The character sets HTML page gives more information. +

SP has built-in knowledge of many more +base character sets. +

nsgmls will report empty elements if the -oempty option is +used. +

DTD-less parsing is possible, by using the -wno-valid option +to allow undefined elements and attributes. This allows parsing of well-formed +XML documents, whether or not valid. +

+Version 1.1

+There is now generalized support for architectural +form processing. +

Documentation is now in HTML format. +

A BASE catalog entry can be used to specify a base system identifier +for resolving relative storage object identifiers occurring in the catalog. +

A LITERAL storage manager is now provided. +

Programs have a -E option that sets the maximum number of errors. +

A DELEGATE catalog entry allows distributed resolution of public identifiers. +

nsgmls has a -B (batch mode) option that allows you to parse multiple +documents with a single invocation of nsgmls. +

In nsgmls the -c option now specifies a catalog as it does in spam and +sgmlnorm, in addition to the -m option that previously did this. +

The -n option has been replaced by a +-onotation-sysid +which applies to nsgmls only, and a +-wnotation-sysid which applies +generally. +

SP can be built as a DLL under Win32. +

+Version 1.0

+The syntax of system identifiers has completely changed. The new syntax +is based on the syntax of formal system identifiers defined in ISO/IEC +10744 (HyTime) Technical Corrigendum 1, Annex D. +

The NSGMLS_CODE environment variable has been renamed to SP_BCTF. nsgmls +has a -b option to specify the bit combination transformation format to +be used for output. +

A list of directories in which files specified in system identifiers +should be searched for can be specified using the environment variable +SGML_SEARCH_PATH or the option -D. +

Individual SYSTEM identifiers in external identifiers can be overridden +using SYSTEM entries in the catalog. +

The OVERRIDE catalog entry now takes a YES/NO argument. (This change +was required for conformance to the SGML Open TR.) It applies to each entry +individually rather than to the entire catalog. +

The -w options of nsgmls and spam have been enhanced. In spam, the -w +option takes an argument as with nsgmls. There are new warnings for minimized +start and end tags (-wunclosed, -wempty, -wnet and -wmin-tag); for unused +short reference maps (-wunused-maps); for unused parameter entities (-wunused-param). +-wall now doesn't include those warnings that are about conditions that, +in the opinion of the author, there is no reason to avoid. A warning can +be turned off by using its name prefixed by no-; thus -wmin-tag -wno-net +is equivalent to -wunclosed -wempty. The -w option is also used to turn +off errors: -wno-idref replaces the -x option; -wno-significant replaces +the -X option. +

In the output of nsgmls, characters that cannot be represented in the +encoding translation specified by the NSGMLS_BCTF environment variable +are represented using an escape sequence of the form \#N; when N is a decimal +integer. +

In the multi-byte versions of nsgmls there are new BCTFs is8859-N for +N = 1,...,9. +

There is a -o option to nsgmls which makes it output additional information: +-oentity outputs information about all entities; -oid distinguish attributes +with a declared value of id; -oincluded distinguishes included subelements. +

nsgmls now automatically searches for a catalog entry file called "catalog" +in the same place as the document entity. Note that when the document entity +is specified with a URL, this matches the behaviour of Panorama. +

A catalog entry file can contain CATALOG entries specifying additional +catalog entry files. This matches the behaviour of Panorama. +

The parser can now make available to an application complete information +about the markup of prologs and SGML declarations. It would now be possible, +for example, to use SP to write a DTD editor. spam exploits this to a limited +extent: if the -p option is specified twice, then parameter entity references +between declarations will be expanded; the -mreserved option puts all reserved +names in upper-case; with the -mshortref option short reference use declarations +and short reference mapping declarations will be removed; attribute specification +lists in data attribute specifications in entity declarations can be normalized +like attribute specification lists in start-tags; with -mms it resolves +IGNORE/INCLUDE marked sections. +

nsgmls has a -C option which causes the command line filenames to be +treated as a catalog whose DOCUMENT entry specifies the document entity. +

nsgmls has a -n option which causes it to generate system identifiers +for notations in the same way as it does for entities. +

spam now has a -f option like nsgmls. +

The interface between the parser and entity manager has been redesigned +so that the entity manager can be used independently of the parser. This +is exploited by a new program called spent that prints an entity with a +specified system identifier on the standard output. +

In most cases, a Control-Z occurring as the last byte in a file will +be stripped. This is controlled by the zapeof attribute in formal system +identifiers. +

+Version 0.4

+External concrete syntaxes, character sets and capacity sets are supported +using PUBLIC entries in catalog files. The multicode code core and reference +syntaxes are no longer built-in. Only a few character sets are now built-in. +

Within external concrete syntaxes, various useful extensions are permitted. +In particular, an ellipsis syntax is allowed for the specification of name +characters and single character short references. It is now practical to +specify tens of thousands of additional name characters. +

The default SGML declaration is more permissive. +

nsgmls has a -x option that inhibits checking of idrefs. +

nsgmls has a -w option that can enable additional warnings. In particular, +-wmixed will warn about mixed content models that do not allow #pcdata +everywhere. +

The meaning of the f command in the output of nsgmls has changed slightly. +It now gives the effective system identifier of the entity. +

The functionality of the rast program has been merged into the nsgmls +program and the rast program has been removed. The -t option makes nsgmls +generate a RAST result. +

spam has a -l option that uses lower-case for added names that were +subject to upper-case substitution. +

spam has a -mcurrent option that adds omitted attribute specifications +for current attributes. + + diff --git a/doc/nsgmls.htm b/doc/nsgmls.htm new file mode 100644 index 0000000..cc9c78a --- /dev/null +++ b/doc/nsgmls.htm @@ -0,0 +1,587 @@ + + + + ONSGMLS + + + +

ONSGMLS

+ +

+An SGML System Conforming to International Standard ISO 8879 -- +Standard Generalized Markup Language

+ +

+An SGML Extended Facilities system conforming to Annex A of International +Standard ISO/IEC 10744 -- Hypermedia/Time-based Structuring Language

+ +

+SYNOPSIS

+onsgmls [ option... ] sysid... +

+DESCRIPTION

+Onsgmls parses and validates the SGML document whose document entity is +specified by the +system identifiers sysid... +and prints on the standard output a simple text representation of its Element +Structure Information Set. (This is the information set which a structure-controlled +conforming SGML application should act upon.) If more than one system identifier +is specified, then the corresponding entities will be concatenated to form +the document entity. Thus the document entity may be spread amongst several +files; for example, the SGML declaration, prolog and document instance +set could each be in a separate file. If no system identifiers are specified, +then nsgmls will read the document entity from the standard input. A command +line system identifier of +- can be used to refer to the standard +input. (Normally in a system identifier, +<osfd>0 is used to +refer to standard input.) +

+OPTIONS

+The following options are available: +
+
-aname, --activate=name
+ +
+Make link type or doctype name active. Not all ESIS +information is output in this case: the active LPDs are not explicitly +reported, although each link attribute is qualified with its link type name; there is no information +about result elements; when there are multiple link rules applicable to +the current element, nsgmls always chooses the first. You cannot mix +active link types and doctypes. Only one active doctype can be specified.
+ +
-bname, --bctf=name
+
-bname, --encoding=name
+ +
+This determines the encoding used for output. If in fixed +character set mode it specifies the name of an encoding; if not, it +specifies the name of a BCTF.
+ +
-B, --batch-mode
+ +
+Batch mode. Parse each sysid... specified on the command +line separately, rather than concatenating them. This is useful mainly +with -s. +


If -tfilename is also specified, then the specified +filename will be prefixed to the sysid +to make the filename for the RAST result for each sysid.

+ +
-csysid, --catalog=sysid
+ +
+Map public identifiers and entity names to system identifiers using the +catalog entry file whose system identifier is +sysid. Multiple +-c +options are allowed. If there is a catalog entry file called +catalog +in the same place as the document entity, it will be searched for immediately +after those specified by +-c.
+ +
-C, --catalogs
+ +
+The filename... arguments specify catalog files rather +than the document entity. The document entity is specified by the first +DOCUMENT +entry in the catalog files.
+ +
-Ddirectory, --directory=directory
+ +
+Search directory for files specified in system identifiers. +Multiple -D options are allowed. See the description of the +osfile storage manager for more information about file searching.
+ +
-e, --open-entities
+ +
+Describe open entities in error messages. Error messages always include +the position of the most recently opened external entity.
+ +
-Enumber, --max-errors=number
+ +
+Onsgmls will exit after number errors. If number +is 0, there is no limit on the number of errors. The default is 200.
+ +
-ffile, --error-file=file
+ +
+Redirect errors to file. This is useful mainly with shells +that do not support redirection of stderr.
+ +
-g, --open-elements
+ +
+Show the generic identifiers of open elements in error messages.
+ +
-h, --help
+ +
+Show a help message and exit. + +
+-iname, --include=name
+ +
+Pretend that + +
<!ENTITY % name "INCLUDE">
+occurs at the start of the document type declaration subset in the SGML +document entity. Since repeated definitions of an entity are ignored, this +definition will take precedence over any other definitions of this entity +in the document type declaration. Multiple -i options are allowed. +If the SGML declaration replaces the reserved name INCLUDE then +the new reserved name will be the replacement text of the entity. Typically +the document type declaration will contain +
<!ENTITY % name "IGNORE">
+and will use %name; in the status keyword specification +of a marked section declaration. In this case the effect of the option +will be to cause the marked section not to be ignored.
+ +
-n, --error-numbers
+ +
+Show message numbers in error messages.
+ +
-ooption, --option=option
+ +
+Output additional information according to +option: + +
+
+entity
+ +
+Output definitions of all general entities not just for data or subdoc +entities that are referenced or named in an ENTITY or ENTITIES attribute.
+ +
+id
+ +
+Distinguish attributes whose declared value is ID.
+ +
+line
+ +
+Output +L commands giving the current line number and filename.
+ +
+included
+ +
+Output an +i command for included subelements.
+ +
+empty
+ +
+Output an e command for elements which are not allowed to have +an end-tag, that is those with a declared content of empty or with a content +reference attribute.
+ +
+notation-sysid
+ +
+Output an f command before an N command, if a system +identifier could be generated for that notation.
+ +
+nonsgml
+ +
+In fixed character set mode, output \% +escape sequences for non-SGML data characters. Non-SGML data characters +can result from numeric character references.
+ +
+data-attribute
+ +
+Output the notation name and attributes for DATA attributes. Otherwise, +DATA attributes are treated like CDATA attributes. For more details, see clause +4.4.3 of Annex K +of ISO 8879.
+ +
+comment
+ +
+Output an _ command with the contents of a comment. Multiple comments +in a single comment declaration will result in multiple distinct _ +commands, just as if the comments were each in a separate comment +declaration.
+ +
+omitted
+ +
+ +Output an o command before a command which was implied by the input +document, but omitted from the actual markup. This currently affects +(, ), and A commands.
+ +
+tagomit
+ +
+As omitted, but only for ( and ) commands.
+ +
+attromit
+ +
+As omitted, but only for A commands.
+
+Multiple +-o options are allowed.
+ +
-p, --only-prolog
+ +
+Parse only the prolog. Onsgmls will exit after parsing the document type +declaration. Implies -s.
+ +
-R, --restricted
+ +
+Restrict file reading. This option is intended for use with onsgmls-based +Web tools (e.g., CGI scripts) to prevent reading of arbitrary +files on the Web server. With this option enabled, onsgmls will not +read any local files unless they are located in a directory (or +subdirectory) specified by the -D option or included in the +SGML_SEARCH_PATH environment variable. As a further security +precaution, this option limits filenames to the characters +A-Z, a-z, 0-9, '/', '.', '_', '-' and does not allow filenames +containing "..".
+ +
-s, --no-output
+ +
+Suppress output. Error messages will still be printed.
+ +
-tfile, --rast-file=file
+ +
+Output to file the RAST result as defined by ISO/IEC 13673:1995 +(actually this isn't quite an IS yet; this implements the Intermediate +Editor's Draft of 1994/08/29, with changes to implement ISO/IEC JTC1/SC18/WG8 +N1777). The normal output is not produced.
+ +
-v, --version
+ +
+Print the version number.
+ +
-wtype, --warning=type
+ +
+Control warnings and errors. Multiple -w options are allowed. +The following values of type enable warnings: + +
+
+xml
+ +
+Warn about constructs that are not allowed by XML. +The warnings can be enabled individually.
+ +
+mixed
+ +
+Warn about mixed content models that do not allow #PCDATA anywhere.
+ +
+sgmldecl
+ +
+Warn about various dubious constructions in the SGML declaration.
+ +
+should
+ +
+Warn about various recommendations made in ISO 8879 that the document does +not comply with. (Recommendations are expressed with ``should'', as distinct +from requirements which are usually expressed with ``shall''.)
+ +
+default
+ +
+Warn about defaulted references.
+ +
+duplicate
+ +
+Warn about duplicate entity declarations.
+ +
+undefined
+ +
+Warn about undefined elements: elements used in the DTD but not defined.
+ +
+unclosed
+ +
+Warn about unclosed start and end-tags.
+ +
+empty
+ +
+Warn about empty start and end-tags.
+ +
+net
+ +
+Warn about net-enabling start-tags and null end-tags.
+ +
+min-tag
+ +
+Warn about minimized start and end-tags. Equivalent to combination of +unclosed, empty and net warnings.
+ +
+unused-map
+ +
+Warn about unused short reference maps: maps that are declared with a short +reference mapping declaration but never used in a short reference use +declaration in the DTD.
+ +
+unused-param
+ +
+Warn about parameter entities that are defined but not used in a DTD. Unused +internal parameter entities whose text is INCLUDE or IGNORE +won't get the warning.
+ +
+notation-sysid
+ +
+Warn about notations for which no system identifier could be generated.
+ +
+all
+ +
+Warn about conditions that should usually be avoided (in the opinion of +the author). Equivalent to: +mixed, +should, +default, +undefined, +sgmldecl, +unused-map, +unused-param, +empty +and +unclosed.
+ +
+immediate-recursion
+ +
+Warn about immediately recursive elements. For more details, see clause +2.2.5 of Annex K +of ISO 8879.
+ +
+fully-declared
+ +
+Warn if the document instance fails to be fully-declared. +This has the effect of changing the SGML declaration to specify +IMPLYDEF ATTLIST NO ELEMENT NO ENTITY NO NOTATION NO. +For more details, see clause 2.2.1 of +Annex K +of ISO 8879.
+ +
+fully-tagged
+ +
+Warn if the document instance fails to be fully-tagged. +This has the effect of changing the SGML declaration to specify +DATATAG NO, RANK NO, OMITTAG NO, +SHORTTAG STARTTAG EMPTY NO and +SHORTTAG ATTRIB OMITNAME NO. +For more details, see clause 2.2.2 of +Annex K +of ISO 8879.
+ +
+amply-tagged, amply-tagged-recursive
+ +
+Warn if the document instance fails to be amply-tagged. Implicitly defined +elements may be immediately recursive if -recursive is specified. +This has the effect of changing the SGML declaration to specify +DATATAG NO, RANK NO, OMITTAG NO, +SHORTTAG ATTRIB OMITNAME NO and either +IMPLYDEF ELEMENT ANYOTHER or +IMPLYDEF ELEMENT YES. +For more details, see clause 2.2.4 of +Annex K +of ISO 8879.
+ +
+type-valid
+ +
+Warn if the document instance fails to be type-valid. +This has the effect of changing the SGML declaration to specify +VALIDITY YES. +For more details, see clause 2.2.3 of +Annex K +of ISO 8879.
+ +
+entity-ref
+ +
+Warn about references to non-predefined entities. +This has the effect of changing the SGML declaration to specify +ENTITIES REF NONE. +For more details, see clause 2.3.2 of +Annex K +of ISO 8879.
+ +
+external-entity-ref
+ +
+Warn about references to external entities. This includes references to an +external DTD subset. +This has the effect of changing the SGML declaration to specify +ENTITIES REF INTERNAL. +For more details, see clause 2.3.3 of +Annex K +of ISO 8879.
+ +
+integral
+ +
+Warn if the document instance is not integrally stored. i +This has the effect of changing the SGML declaration to specify +ENTITIES INTEGRAL YES. +For more details, see clause 2.3.1 of +Annex K +of ISO 8879.
+
+A warning can be disabled by using its name prefixed with +no-. +Thus +-wall -wno-duplicate will enable all warnings except those +about duplicate entity declarations. +

The following values for +warning_type disable errors: +

+
+no-idref
+ +
+Do not give an error for an ID reference value which no element has as +its ID. The effect will be as if each attribute declared as an ID reference +value had been declared as a name.
+ +
+no-significant
+ +
+Do not give an error when a character that is not a significant character +in the reference concrete syntax occurs in a literal in the SGML declaration. +This may be useful in conjunction with certain buggy test suites.
+ +
+no-valid
+ +
+Do not require the document to be type-valid. This has the effect of changing +the SGML declaration to specify VALIDITY NOASSERT and IMPLYDEF +ATTLIST YES ELEMENT YES ENTITY YES NOTATION YES. An option of +-wvalid has the effect +of changing the SGML declaration to specify VALIDITY TYPE and +IMPLYDEF ATTLIST NO ELEMENT NO ENTITY NO NOTATION NO. +If neither -wvalid nor +-wno-valid are specified, then the VALIDITY and IMPLYDEF +specified in the SGML declaration will be used.
+ +
+no-afdr
+ +
+Do not give errors when AFDR meta-DTD notation features are used in the +DTD. These errors are normally produced when parsing the DTD, but suppressed +when parsing meta-DTDs.
+
+ +
-x, --references
+ +
+Show information about relevant clauses (from ISO 8879:1986) in error messages.
+ +
+The following options are also supported for backwards compatibility with +sgmls: +
+
+-d
+ +
+Same as +-wduplicate.
+ +
+-l
+ +
+Same as +-oline.
+ +
+-msysid
+ +
+Same as -c.
+ +
+-r
+ +
+Same as +-wdefault.
+ +
+-u
+ +
+Same as +-wundef.
+
+ + + diff --git a/doc/sgmldecl.htm b/doc/sgmldecl.htm new file mode 100644 index 0000000..7a7229e --- /dev/null +++ b/doc/sgmldecl.htm @@ -0,0 +1,296 @@ + + + +OpenSP - SGML declaration + + +

Handling of the SGML declaration in OpenSP

+

Extended Naming Rules

+

+OpenSP supports the Extended Naming Rules as specified in Annex J +of ISO 8879:1986 (added by the 1996 technical corrigendum). +

Web SGML Adaptations

+

+OpenSP supports most of the Web SGML Adaptations as specified in +Annex K of ISO 8879:1996 (added by the second technical corrigendum, 1998) +

Default SGML declaration

+

+If the SGML declaration is omitted +and there is no applicable +SGMLDECL +or DTDDECL +entry in a catalog, +the following declaration will be implied: +

+		    <!SGML "ISO 8879:1986"
+			    CHARSET
+BASESET  "ISO 646-1983//CHARSET
+	  International Reference Version (IRV)//ESC 2/5 4/0"
+DESCSET    0  9 UNUSED
+	   9  2  9
+	  11  2 UNUSED
+	  13  1 13
+	  14 18 UNUSED
+	  32 95 32
+	 127  1 UNUSED
+CAPACITY PUBLIC    "ISO 8879:1986//CAPACITY Reference//EN"
+SCOPE    DOCUMENT
+SYNTAX
+SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
+	 18 19 20 21 22 23 24 25 26 27 28 29 30 31 127 255
+BASESET  "ISO 646-1983//CHARSET International Reference Version
+	  (IRV)//ESC 2/5 4/0"
+DESCSET  0 128 0
+FUNCTION RE                    13
+	 RS                    10
+	 SPACE                 32
+	 TAB       SEPCHAR     9
+NAMING   LCNMSTRT  ""
+	 UCNMSTRT  ""
+	 LCNMCHAR  "-."
+	 UCNMCHAR  "-."
+	 NAMECASE  GENERAL     YES
+		   ENTITY      NO
+DELIM    GENERAL   SGMLREF
+	 SHORTREF  SGMLREF
+NAMES    SGMLREF
+QUANTITY SGMLREF
+	 ATTCNT    99999999
+	 ATTSPLEN  99999999
+	 DTEMPLEN  24000
+	 ENTLVL    99999999
+	 GRPCNT    99999999
+	 GRPGTCNT  99999999
+	 GRPLVL    99999999
+	 LITLEN    24000
+	 NAMELEN   99999999
+	 PILEN     24000
+	 TAGLEN    99999999
+	 TAGLVL    99999999
+			   FEATURES
+MINIMIZE DATATAG   NO
+	 OMITTAG   YES
+	 RANK      YES
+	 SHORTTAG  YES
+LINK     SIMPLE    YES 1000
+	 IMPLICIT  YES
+	 EXPLICIT  YES 1
+OTHER    CONCUR    NO
+	 SUBDOC    YES 99999999
+	 FORMAL    YES
+			  APPINFO NONE>
+
+

+with the exception that all characters that are neither significant +nor shunned will be assigned to DATACHAR. +

Character sets

+

+A character in a base character set is described either by giving its +number in a universal character set, or by specifying a minimum +literal. +The first 65536 character numbers in the universal character +set are assumed to be the same as in Unicode 2.0 (ISO/IEC 10646). +The remaining character numbers can be assigned in any way convenient. +

+The public identifier of a base character set can be associated +with an entity that describes it by using a +PUBLIC +entry in the catalog entry file. +The entity must be a fragment +of an SGML declaration +consisting of the +portion of a character set description, +following the DESCSET keyword, +that is, it must be a sequence of character descriptions, +where each character description specifies a described character +number, the number of characters and +either a character number in the universal character set, a minimum literal +or the keyword +UNUSED. +Character numbers in the universal character set can be as big as +99999999. +

+In addition OpenSP has built in knowledge of many character sets. +These are identified using the designating sequence in the +public identifier. The following designating sequences are +recognized: +

+
+ESC 2/5 4/0 +
+The full set of ISO 646 IRV. +This is not a registered character set, +but is recommended by ISO 8879 (clause 10.2.2.4). +
+ESC 2/8 4/0 +
+G0 set of ISO 646 IRV, +ISO Registration Number 2. +
+ESC 2/8 4/2 +
+G0 set of ASCII, +ISO Registration Number 6. +
+ESC 2/1 4/0 +
+C0 set of ISO 646, +ISO Registration Number 1. +
+ESC 2/13 4/1 +
+G1 set of ISO 8859-1 +
+ESC 2/13 4/2 +
+G1 set of ISO 8859-2 +
+ESC 2/13 4/3 +
+G1 set of ISO 8859-3 +
+ESC 2/13 4/4 +
+G1 set of ISO 8859-4 +
+ESC 2/13 4/12 +
+G1 set of ISO 8859-5 +
+ESC 2/13 4/7 +
+G1 set of ISO 8859-6 +
+ESC 2/13 4/6 +
+G1 set of ISO 8859-7 +
+ESC 2/13 4/8 +
+G1 set of ISO 8859-8 +
+ESC 2/13 4/13 +
+G1 set of ISO 8859-9 +
+ESC 2/8 4/10 +
+Roman set from JIS-X-0202. +JIS version of ISO 646. +ISO Registration Number 14. +
+ESC 2/8 4/9 +
+Katakana set from JIS X 0201. +ISO Registration Number 13. +
+ESC 2/4 4/2 +
+ESC 2/6 4/0 ESC 2/4 4/2 +
+JIS X 0208-1990. +ISO Registration Numbers 87 and 168. +
+ESC 2/4 2/8 4/4 +
+JIS X 0212-1990. +ISO Registration Number 159. +
+ESC 2/4 4/1 +
+GB 2312-80. +ISO Registration Number 58. +
+ESC 2/4 2/8 4/3 +
+KS C 5601-1992. +ISO Registration Number 149. +
+ESC 2/5 2/15 4/0 +
+ESC 2/5 2/15 4/3 +
+ESC 2/5 2/15 4/5 +
+ISO/IEC 10646 UCS-2 +
+ESC 2/5 2/15 4/1 +
+ESC 2/5 2/15 4/4 +
+ESC 2/5 2/15 4/6 +
+ISO/IEC 10646 UCS-4 +
+ +

Concrete syntaxes

+

+The public identifier for a public concrete syntax can be associated +with an entity that describes using a +PUBLIC +entry in the catalog entry file. +The entity must be a fragment of an SGML declaration +consisting of a concrete syntax description +starting with the +SHUNCHAR +keyword +as in an SGML declaration. +The entity can also make use of the following extensions: +

    +
  • +The Extended Naming Rules extensions can be used regardless of the minimum +literal used in the SGML declaration. +
  • +An +added function +can be expressed as a parameter literal +instead of a name. +
  • +The replacement for a reference reserved name +can be expressed as a parameter literal instead of a name. +
  • +The total number of characters specified for +UCNMCHAR +or +UCNMSTRT +may exceed the total number of characters specified for +LCNMCHAR +or +LCNMSTRT +respectively. +Each character in +UCNMCHAR +or +UCNMSTRT +which does not have a corresponding character in the same position in +LCNMCHAR +or +LCNMSTRT +is simply assigned to UCNMCHAR or UCNMSTRT +without making it the upper-case form of any character. +
  • +Within the specification of the short reference delimiters, +a parameter literal containing exactly one character +may be followed by the delimiter - +and another parameter literal containing exactly one character. +This has the same meaning as a sequence of parameter literals +one for each character number that is greater than or equal +to the number of the character in the first parameter literal +and less than or equal to the number of the character in the +second parameter literal. +
  • +A number may be used as a delimiter in the +DELIM +section with the same meaning as a parameter literal +containing just a numeric character reference with that number. +
+

Capacity sets

+

+The public identifier for a public capacity set can be associated +with an entity that describes using a +PUBLIC +entry in the catalog entry file. +The entity must be a fragment of an SGML declaration +consisting of a sequence of capacity names and numbers. + + diff --git a/doc/sgmlnorm.htm b/doc/sgmlnorm.htm new file mode 100644 index 0000000..41f00ec --- /dev/null +++ b/doc/sgmlnorm.htm @@ -0,0 +1,147 @@ + + + +OSGMLNORM + + +

OSGMLNORM

+

+An SGML System Conforming to International Standard ISO 8879 -- +Standard Generalized Markup Language +

+

+An SGML Extended Facilities system conforming to +Annex A of International Standard ISO/IEC 10744 -- +Hypermedia/Time-based Structuring Language +

+

SYNOPSIS

+

+osgmlnorm [ option... ] sysid... + +

DESCRIPTION

+

+Osgmlnorm prints on the standard output a normalized document instance +for the SGML document contained in the concatenation of the entities +with system identifiers +sysid.... +

+When the normalized instance is prefixed with the original SGML declaration +and prolog, it will have the same ESIS as the original SGML document, +with the following exceptions: +

    +
  • +The output of osgmlnorm does not protect against the recognition of +short reference delimiters, so any USEMAP declarations +must be removed from the DTD. +
  • +The normalized instance will use the reference delimiters, even if the +original instance did not. +
  • +If marked sections are included in the output using the +-m option, the reference reserved names will be used for +the status keywords even if the original instance did not. +
  • +Any ESIS information relating to the SGML LINK feature will be lost. +
+

+The normalized instance will not use any markup minimization features +except that: +

    +
  • +Any attributes that were not specified in the original instance +will not be included in the normalized instance. +(Current attributes will be included.) +
  • +If the declared value of an attribute was a name token group, +and a value was specified that was the same as the name of +the attribute, then the attribute name and value indicator will be +omitted. +For example, with HTML osgmlnorm would output <DL COMPACT> +rather than <DL COMPACT="COMPACT"> +
+

OPTIONS

+

+The following options are available: +

+
+-bname, +--bctf=name +
+Use the BCTF name for output. +
+-csysid, +--catalog=sysid +
+Map public identifiers and entity names to system identifiers +using the catalog entry file whose system identifier is sysid. +This has the same effect as in onsgmls. +
+-C, +--catalogs +
+This has the same effect as in onsgmls. +
+-d, +--dtd +
+Output a document type declaration with the same external +identifier as the input document, and with no +internal declaration subset. +No check is performed that the document instance is valid +with respect to this DTD. +
+-Ddirectory, +--directory=directory +
+Search +directory +for files specified in system identifiers. +This has the same effect as in onsgmls. +
+-e, +--open-entities +
+Describe open entities in error messages. +
+-iname, +--include=name +
+This has the same effect as in onsgmls. +
+-m, +--marked-sections +
+Output any marked sections that were in the input document instance. +
+-n, +--comments +
+Output any comments that were in the input document instance. +
+-r, +--raw +
+Raw output. +Don't perform any conversion on RSs and REs when printing the entity. +The entity would typically have the storage manager attribute +records=asis. +
+-R, +--restricted +
+This has the same effect as in onsgmls. +
+-v, +--version +
+Print the version number. +
+-wtype, +--warning=type +
+Control warnings and errors according to +type. +This has the same effect as in onsgmls. +
+ + diff --git a/doc/sgmlsout.htm b/doc/sgmlsout.htm new file mode 100644 index 0000000..bb7453f --- /dev/null +++ b/doc/sgmlsout.htm @@ -0,0 +1,470 @@ + + + +Onsgmls Output Format + + +

Onsgmls Output Format

+

+The output is a series of lines. +Lines can be arbitrarily long. +Each line consists of an initial command character +and one or more arguments. +Arguments are separated by a single space, +but when a command takes a fixed number of arguments +the last argument can contain spaces. +There is no space between the command character and the first argument. +Arguments can contain the following escape sequences: +

+
+\\ +
+A +\. +
+\n +
+A record end character. +
+\| +
+Internal SDATA entities are bracketed by these. +
+\nnn +
+The character whose code is +nnn +octal. +

+A record start character will be represented by +\012. +Most applications will need to ignore +\012 +and translate +\n +into newline. +

+\#n; +
+The character whose number is +n +decimal in the internal character set. +n +can have any number of digits. +This is used for characters that are not representable by the +encoding used for output. +This will only occur with the multibyte version of nsgmls. +
+\%n; +
+The character whose number is +n +decimal in the document character set. +n +can have any number of digits. +This is used for data characters resulting from numeric +character references to non-SGML characters +in fixed character set mode. +
+

+The possible command characters and arguments are as follows: +

+
+(gi +
+The start of an element whose generic identifier is +gi. +Any attributes for this element +will have been specified with +A +commands. +
+)gi +
+The end of an element whose generic identifier is +gi. +
+-data +
+Data. +
+&name +
+A reference to an external data entity +name; +name +will have been defined using an +E +command. +
+?pi +
+A processing instruction with data +pi. +
+Aname val +
+The next element to start has an attribute +name +with value +val +which takes one of the following forms: +
+
+IMPLIED +
+The value of the attribute is implied. +
+CDATA data +
+The attribute is character data. +This is used for attributes whose declared value is +CDATA. +
+NOTATION nname +
+The attribute is a notation name; +nname +will have been defined using a +N +command. +This is used for attributes whose declared value is +NOTATION. +
+ENTITY name... +
+The attribute is a list of general entity names. +Each entity name will have been defined using an +I, +E +or +S +command. +This is used for attributes whose declared value is +ENTITY +or +ENTITIES. +
+TOKEN token... +
+The attribute is a list of tokens. +This is used for attributes whose declared value is anything else. +
+ID token +
+The attribute is an ID value. +This will be output only if the +-oid +option is specified. +Otherwise +TOKEN +will be used for ID values. + +
+DATA nname data +
+The attribute is character data with an associated notation. +The definition of the notation and any applicable attributes of the notation +will be given using subsequent Dname val +lines. This is used for attributes whose declared value is DATA. +It will be output only if the -odata-attribute +option is specified. Otherwise CDATA will be used for DATA values. +
+ +
+
+Dename name val +
+This is the same as the +A +command, except that it specifies a data attribute for an +external entity named +ename. +Any +D +commands will come after the +E +command that defines the entity to which they apply, but +before any +& +or +A +commands that reference the entity. +
+atype name val +
+The next element to start has a link attribute with link type +type, +name +name, +and value +val, +which takes the same form as with the +A +command. +
+Nnname +
+Define a notation nname. +This command will be preceded by a +p +command if the notation was declared with a public identifier, +and by a +s +command if the notation was declared with a system identifier. +If the +-onotation-sysid +option was specified, +this command will also be preceded by an +f +command giving the system identifier generated by the entity manager +(unless it was unable to generate one). +A notation will only be defined if it is to be referenced +in an +E +command or in an +A +command for an attribute with a declared value of +NOTATION. +
+Eename typ nname +
+Define an external data entity named +ename +with type +typ +(CDATA, NDATA or SDATA) +and notation not. +Thiscommand will be preceded by an +f +command giving the system identifier generated by the entity manager +(unless it was unable to generate one), +by a +p +command if a public identifier was declared for the entity, +and by a +s +command if a system identifier was declared for the entity. +not +will have been defined using a +N +command. +Data attributes may be specified for the entity using +D +commands. +If the +-oentity +option is not specified, +an external data entity will only be defined if it is to be referenced in a +& +command or in an +A +command for an attribute whose declared value is +ENTITY +or +ENTITIES. +
+Iename typ text +
+Define an internal data entity named +ename +with type +typ +and entity text +text. +The +typ +will be +CDATA +or +SDATA +unless the +-oentity +option was specified, +in which case it can also be +PI +or +TEXT +(for an SGML text entity). +If the +-oentity +option is not specified, +an internal data entity will only be defined if it is referenced in an +A +command for an attribute whose declared value is +ENTITY +or +ENTITIES. +
+Sename +
+Define a subdocument entity named +ename. +This command will be preceded by an +f +command giving the system identifier generated by the entity manager +(unless it was unable to generate one), +by a +p +command if a public identifier was declared for the entity, +and by a +s +command if a system identifier was declared for the entity. +If the +-oentity +option is not specified, +a subdocument entity will only be defined if it is referenced +in a +{ +command +or in an +A +command for an attribute whose declared value is +ENTITY +or +ENTITIES. +
+Tename +
+Define an external SGML text entity named +ename. +This command will be preceded by an +f +command giving the system identifier generated by the entity manager +(unless it was unable to generate one), +by a +p +command if a public identifier was declared for the entity, +and by a +s +command if a system identifier was declared for the entity. +This command will be output only if the +-oentity +option is specified. +
+ssysid +
+This command applies to the next +E, +S, +T +or +N +command and specifies the associated system identifier. +
+ppubid +
+This command applies to the next +E, +S, +T +or +N +command and specifies the associated public identifier. +
+fsysid +
+This command applies to the next +E, +S, +T +or, if the +-onotation-sysid +option was specified, +N +command and specifies the system identifier +generated by the entity manager from the specified external identifier +and other information about the entity or notation. +
+{ename +
+The start of the SGML subdocument entity +ename; +ename +will have been defined using a +S +command. +
+}ename +
+The end of the SGML subdocument entity +ename. +
+Llineno file +
+Llineno +
+Set the current line number and filename. +The +file +argument will be omitted if only the line number has changed. +This will be output only if the +-l +option has been given. +
+#text +
+An APPINFO parameter of +text +was specified in the SGML declaration. +This is not strictly part of the ESIS, but a structure-controlled +application is permitted to act on it. +No +# +command will be output if +APPINFO NONE +was specified. +A +# +command will occur at most once, +and may be preceded only by a single +L +command. +
+C +
+This command indicates that the document was a conforming SGML document. +If this command is output, it will be the last command. +An SGML document is not conforming if it references a subdocument entity +that is not conforming. +
+i +
+The next element to start is an included subelement. +This will be output only if the +-oincluded +option is specified. +
+e +
+The next element to start has a declared content of EMPTY or a content +reference attribute, and so its end-tag must be omitted. +This will be output only if the +-oempty +option is specified. +
+_comment +
+A comment with data +comment. +This will be output only if the +-ocomment +option is specified. +
+o +
+The actual markup for the next +(, +), +or +A +command was omitted from the input. +This will be output only if one of the +-oomitted, +-otagomit, +or +-oattromit +options is specified. +
+ + diff --git a/doc/spam.htm b/doc/spam.htm new file mode 100644 index 0000000..827dcf4 --- /dev/null +++ b/doc/spam.htm @@ -0,0 +1,256 @@ + + + +OSPAM + + +

OSPAM

+

+An SGML System Conforming to International Standard ISO 8879 -- +Standard Generalized Markup Language +

+

+An SGML Extended Facilities system conforming to +Annex A of International Standard ISO/IEC 10744 -- +Hypermedia/Time-based Structuring Language +

+

+SYNOPSIS +

+

+ospam [ option... ] sysid... +

DESCRIPTION

+

+Ospam (SP Add Markup) is an SGML markup stream editor implemented using the +OpenSP parser. Ospam parses the SGML document contained in +sysid... and copies to the standard output the portion +of the document entity containing the document instance, adding or changing +markup as specified by the -m options. The -p option +can be used to include the SGML declaration and prolog in the output. The +-o option can be used to output other entities. The +-x option can be used to expand entity references. +

OPTIONS

+

+The following options are available: +

+
+-csysid, +--catalog=sysid, +
+Use the catalog entry file sysid. +
+-C, +--catalogs +
+This has the same effect as in onsgmls. +
+-Ddirectory, +--directory=directory +
+Search directory for files specified in system +identifiers. This has the same effect as in +onsgmls. +
+-e, +--open-entities +
+Describe open entities in error messages. +
+-ffile, +--error-file=file +
+Redirect errors to file. +This is useful mainly with shells that do not support redirection +of stderr. +
+--help +
Show a help message and exit. +
+-h, +--hoist-omitted-tags +
+Hoist omitted tags out from the start of internal entities. +If the text at the beginning of an internal entity causes +a tag to be implied, the tag will usually be treated as being in that +internal entity; this option will instead cause it to be treated as +being in the entity that referenced the internal entity. +This option makes a difference in conjunction with +-momittag +or +-x -x. +
+-iname, +--include=name +
+This has the same effect as in onsgmls. +
+-l, +--lowercase +
+Prefer lower-case. +Added names that were subject to upper-case substitution +will be converted to lower-case. +
+-moption, +--markup-option=option +
+Change the markup in the output according to the value +of option as follows: +
+
+omittag +
+Add tags that were omitted using omitted tag minimization. +End tags that were omitted because the element has +a declared content of EMPTY +or an explicit content reference +will not be added. +
+shortref +
+Replace short references by named entity references. +
+net +
+Change null end-tags +into unminimized end-tags, +and change net-enabling start-tags +into unminimized start-tags. +
+emptytag +
+Change empty tags into unminimized tags. +
+unclosed +
+Change unclosed tags into unminimized tags. +
+attname +
+Add omitted attribute names and +vis. +
+attvalue +
+Add literal delimiters omitted from attribute values. +
+attspec +
+Add omitted attribute specifications. +
+current +
+Add omitted attribute specifications for current attributes. +This option is implied by the +attspec +option. +
+shorttag +
+Equivalent to combination of +net, +emptytag, +unclosed, +attname, +attvalue +and +attspec +options. +
+rank +
+Add omitted rank suffixes. +
+reserved +
+Put reserved names in upper-case. +
+ms +
+Remove marked section declarations whose effective status +is IGNORE, and replace each marked section declaration +whose effective status is INCLUDE by its marked section. +In the document instance, empty comments will be added +before or after the marked section declaration to ensure +that ignored record ends remain ignored. +
+

+Multiple +-m +options are allowed. +

+-oname, +--output-entity=name +
+Output the general entity name instead of +the document entity. The output will correspond to the first time +that the entity is referenced in content. +
+-p, +-output-prolog +
+Output the part of the document entity containing the SGML declaration +(if it was explicitly present in the document entity) +and the prolog before anything else. +If this option is specified two or more times, +then all entity references occurring between declarations +in the prolog will be expanded; +this includes the implicit reference to the entity +containing the external subset of the DTD, if there is one. +Note that the SGML declaration will not be included if it was +specified by an SGMLDECL entry in a catalog. +
+-r, +--raw +
+Don't perform any conversion on RSs and REs when outputting the entity. +The entity would typically have the storage manager attribute +records=asis. +
+-R, +--restricted +
+This has the same effect as in onsgmls. +
+-v, +--version +
+Print the version number. +
+-wtype, +--warning=type +
+Control warnings and errors according to +type. +This has the same effect as in onsgmls. +
+-x, +--expand-references +
+Expand references to entities that are changed. +If this option is specified two or more times, +then all references to entities that contain tags +will be expanded. +
+ +

BUGS

+

+Omitted tags are added at the point where they are +implied by the SGML parser (except as modified +by the +-h +option); this is often not quite where they are wanted. +

+The case of general delimiters is not preserved. +

+Incorrect results may be produced if a variant concrete syntax is used +which is such that there are delimiters in markup to be added that have a +prefix that is a proper suffix of some other delimiter. +

+If an entity reference in a default value uses the default entity and +an entity with that name is subsequently defined and that default +value is added to the document instance, then the resulting document +may not be equivalent to the original document. +Ospam will give a warning when the first two conditions are met. + + diff --git a/doc/spcat.htm b/doc/spcat.htm new file mode 100644 index 0000000..fec9627 --- /dev/null +++ b/doc/spcat.htm @@ -0,0 +1,104 @@ + + + +OSPCAT + + +

OSPCAT

+

SYNOPSIS

+

+ospcat [ option... ] +

DESCRIPTION

+

+Ospcat (SGML print catalog) +prints effective system identifiers found in the catalogs +on the standard output. It doesn't check that the system identifiers +correspond to actual files. The return value is 0 if the last system +identifier was successfully created and 1 otherwise. +

OPTIONS

+

+The following options are available: +

+
+-C, +--catalogs +
+-bname, +--bctf=name +
+-ffile, +--error-file=file
+
+-csysid, +--catalog=sysid, +
+-Ddirectory, +--directory=directory +
+-R, +--restricted +
+These options have the same effect as in onsgmls. +
+-v, +--version +
+Print the version number. +
+-h, +--help +
+Print a help message and exit. +
+-Pliteral, +--public-id=literal +
+Print the effective system identifier for the public identifier +literal. +
+-Sliteral, +-system_id=literal +
+Print the effective system identifier for the system identifier +literal. +
+-pname, +--parameter-entity=name +
+Print the effective system identifier for the parameter entity +name. +
+-dname, +--doctype=name +
+Print the effective system identifier for the declaration of the +document type name. +
+-lname, +--linktype=name +
+Print the effective system identifier for the declaration of the +link type name. +
+-ename, +--entity=name +
+Print the effective system identifier for the general entity +name. +
+-nname, +--notation=name +
+Print the effective system identifier for the notation +name. +
+-sname, +--declaration=name +
+Print the effective system identifier for the SGML declaration +associated with the document type name. +This currently ignores DTDDECL catalog entries and +just returns the value of the SGMLDECL entry. +
+ + diff --git a/doc/spent.htm b/doc/spent.htm new file mode 100644 index 0000000..4aaef7d --- /dev/null +++ b/doc/spent.htm @@ -0,0 +1,80 @@ + + + +OSPENT + + +

OSPENT

+

SYNOPSIS

+

+ospent [ option... ] sysid... + +

DESCRIPTION

+

+Ospent (SGML print entity) prints the concatenation of the entities with +system identifiers sysid... +on the standard output. + +

OPTIONS

+

+The following options are available: +

+
+-bname, +--bctf=name +
+Use the BCTF name for output. +
+-csysid, +--catalog=sysid +
+Map public identifiers and entity names to system identifiers +using the catalog entry file whose system identifier is sysid. +This has the same effect as in onsgmls. +
+-C, +--catalogs +
+This has the same effect as in onsgmls. +
+-Ddirectory, +--directory=directory +
+Search +directory +for files specified in system identifiers. +This has the same effect as in onsgmls. +
+-h, +--help +
Show a help message and exit. +
+-n, +--non-sgml +
+The entity is a non-SGML data entity. +This option forces the octets in the storage objects comprising the entity +to be copied exactly without any of the conversions that are done for +text entities. +Implies -r. +
+-r, +--raw +
+Raw output. +Don't perform any conversion on RSs and REs when printing the entity. +The entity would typically have the storage manager attribute +records=asis. +
+-R, +--restricted +
+This has the same effect as in onsgmls. +
+-v, +--version +
+Print the version number. +
+ + diff --git a/doc/sx.htm b/doc/sx.htm new file mode 100644 index 0000000..4053d17 --- /dev/null +++ b/doc/sx.htm @@ -0,0 +1,222 @@ + + + +OSX + + +

OSX

+

+An SGML System Conforming to International Standard ISO 8879 -- +Standard Generalized Markup Language +

+

+An SGML Extended Facilities system conforming to +Annex A of International Standard ISO/IEC 10744 -- +Hypermedia/Time-based Structuring Language +

+

+SYNOPSIS +

+

+osx [ option... ] sysid... +

DESCRIPTION

+

+Osx converts SGML to XML. +Osx parses and validates the SGML document contained in +sysid... +and writes an equivalent XML document to the standard output. +Osx will warn about SGML constructs which have no XML equivalent. +

OPTIONS

+

+The following options are available: +

+
+-bname, +--encoding=name +
+Use the BCTF name for output. +By default osx uses UTF-8. +
+-csysid, +--catalog=sysid +
+Map public identifiers and entity names to system identifiers +using the catalog entry file whose system identifier is sysid. +This has the same effect as in onsgmls. +
+-C, +--catalogs +
+This has the same effect as in onsgmls. +
+-ddirectory +
+Place output files in +directory. +
+-Ddirectory, +--directory=directory +
+Search +directory +for files specified in system identifiers. +This has the same effect as in onsgmls. +
+-e, +--open-entities +
+Describe open entities in error messages. +
+-ffile, +--error-file=file +
+Redirect errors to +file. +This is useful mainly with shells that do not support redirection +of stderr. +
+-iname, +--include=name +
+This has the same effect as in onsgmls. +
+-ldtd_file +
+Specify that the resulting XML file should conform to the DTD in +dtd_file. +
+-R, +--restricted +
+This has the same effect as in onsgmls. +
+-v, +--version +
+Print the version number. +
+-wtype, +--warning=type +
+Control warnings and errors according to +type. +This has the same effect as in onsgmls. +
+-xoption, +--xml-output-option=option +
+Control the XML output according to the value of +option as follows: +
+
+no-nl-in-tag +
+Don't use newlines inside start-tags. +Usually osx uses newlines inside start-tags so as to reduce the +probability of excessively long lines. +
+id +
+Output attribute declarations for ID attributes. +
+notation +
+Output declarations for notations. +
+ndata +
+Output declarations for external data entities. +XML requires these to be NDATA. +Osx will warn about CDATA and SDATA external data entities and +output them as NDATA entities. +
+cdata +
+Use XML CDATA sections for CDATA marked sections and for elements with a +declared content of CDATA. +
+comment +
+Output comment declarations. Comment declarations in the DTD will not +be output. +
+lower +
+Prefer lower case. +Names that were subjected to upper-case substitution by SGML will be folded +to lower case. +This does not include reserved names; XML requires these to be in upper-case. +
+pi-escape +
+Escape &<> in the contents of processing +instructions using the amp, lt and +gt entities. This allows processing instructions to +contain the string >?, but requires that applications +handle the escapes. +
+empty +
+Use the <e/> syntax for element types +e declared as EMPTY. +
+attlist +
+Output a ATTLIST declaration for every element specifying the type of +all attributes. The default will always be #IMPLIED. +
+report-input-sources +
+Output a processing instruction to report when an input source other +than the main file is opened or closed in the instance. Do not report +any input source changes in the DTD. +
+report-entities +
+Output a processing instruction to report when an external entity +reference has been resolved in the instance. Do not report any entity +resolutions in the DTD. +
+no-expand-external +
+Preserve external entities (producing a new output file for each input file processed), write a declaration driver file named "extEntities.dtf", and include that file in the instance's internal subset. +
+no-expand-internal +
+Preserve internal entities, write a declaration driver file named "intEntities.dtf", and include that file in the instance's internal subset. +
+preserve-case +
+Preserve casing as specified in the DTD for element names; attribute names; attribute values which are token lists. +
+no-external-decl +
+Do not include the external entities declaration driver file in the instance's internal subset. +
+no-internal-decl +
+Do not include the internal entities declaration driver file in the instance's internal subset. +
+sdata-as-pis +
+When translating SDATA entities (whether expanding them or providing a +definition for them in the output's internal subset), express them as +processing instructions instead of as general internal entities. +
+no-output-outside-outdir +
+When preserving external entities, do not write output files outside the specified output directory ("." by default). In other words, if an external entity's system identifier includes enough instances of ".." to cause osx to write a file outside (above) the output directory, exit. (By default, osx will issue a warning but will write the file and continue.) +
+no-overwrite +
+When preserving internal or external entities, multiple output files will be written. +If this option is specified, do not overwrite existing files; instead, attempt to append a number to the end of the original filename to create a unique filename. +Exit with an error if too many (100) such files already exist. +
+

+Multiple +-x +options are allowed. +

+ + diff --git a/doc/sysdecl.htm b/doc/sysdecl.htm new file mode 100644 index 0000000..8adacbe --- /dev/null +++ b/doc/sysdecl.htm @@ -0,0 +1,34 @@ + + + + OpenSP - System declaration + + + +

+OpenSP System Declaration

+The system declaration for OpenSP is as follows: +
                        <!SYSTEM "ISO 8879:1986"
+                                CHARSET
+BASESET  "ISO 646-1983//CHARSET
+          International Reference Version (IRV)//ESC 2/5 4/0"
+DESCSET  0 128 0
+CAPACITY PUBLIC  "ISO 8879:1986//CAPACITY Reference//EN"
+                               FEATURES
+MINIMIZE DATATAG NO        OMITTAG  YES     RANK     YES   SHORTTAG YES
+LINK     SIMPLE  YES 65535 IMPLICIT YES     EXPLICIT YES 1
+OTHER    CONCUR  YES 100   SUBDOC   YES 100 FORMAL   YES
+SCOPE    DOCUMENT
+SYNTAX   PUBLIC  "ISO 8879:1986//SYNTAX Reference//EN"
+SYNTAX   PUBLIC  "ISO 8879:1986//SYNTAX Core//EN"
+                               VALIDATE
+         GENERAL  YES      MODEL     YES     EXCLUDE  YES   CAPACITY NO
+         NONSGML  YES      SGML      YES     FORMAL   YES
+                                 SDIF
+         PACK     NO       UNPACK   NO
+                                 AFDR
+         VALIDATE YES      CONSTRUCT YES>
+The limits for the SUBDOC and CONCUR parameters are memory dependent. +

Any legal concrete syntax may be used. + + diff --git a/doc/sysid.htm b/doc/sysid.htm new file mode 100644 index 0000000..fb09b99 --- /dev/null +++ b/doc/sysid.htm @@ -0,0 +1,259 @@ + + + +OpenSP - System identifiers + + +

System identifiers

+

+There are two kinds of system identifier: formal system identifiers +and simple system identifiers. A system identifier that does not +start with < will always be interpreted as a simple +system identifier. A simple system identifier will always be +interpreted either as a filename or as a URL. + +

Formal system identifiers

+

+Formal system identifiers are based on the +System Identifier facility defined in ISO/IEC 10744 (HyTime) Technical +Corrigendum 1, Annex D. +A system identifier that is a formal system +identifier consists of a sequence of one or more storage object +specifications. The objects specified by the storage object +specifications are concatenated to form the entity. A storage object +specification consists of an SGML start-tag in the reference concrete +syntax followed by character data content. The generic identifier of +the start-tag is the name of a storage manager. The content is a +storage object identifier which identifies the storage object in a +manner dependent on the storage manager. The start-tag can also +specify attributes giving additional information about the storage +object. Numeric character references are recognized in storage object +identifiers and attribute value literals in the start-tag. Record +ends are ignored in the storage object identifier as with SGML. A +system identifier will be interpreted as a formal system identifier if +it starts with a < followed by a storage manager name, +followed by either > or white-space; otherwise it will be +interpreted as a simple system identifier. A storage object +identifier extends until the end of the system identifier or until the +first occurrence of < followed by a storage manager +name, followed by either > or white-space. +

+The following storage managers are available: +

+
+osfile +
+The storage object identifier is a filename. If the filename is +relative it is resolved using a base filename. Normally the base +filename is the name of the file in which the storage object +identifier was specified, but this can be changed using the +base attribute. The filename will be searched for first +in the directory of the base filename. If it is not found there, then +it will be searched for in directories specified with the +-D option in the order in which they were specified on +the command line, and then in the list of directories specified by the +environment variable SGML_SEARCH_PATH. The list +is separated by colons under Unix and by semi-colons under MSDOS. +
+osfd +
+The storage object identifier is an integer specifying a file +descriptor. Thus a system identifier of <osfd>0 will +refer to the standard input (STDIN), 1 to standard output +(STDOUT), and 2 to standard error +(STDERR). Arbitrary file descriptors may be used so you +could say <osfd>3 to get an extra input or output +stream independant of the usual three. This is useful, e.g., for +generating catalog entries or SGML declarations on the fly. You can +use an osfd storage object anywhere you can use a sysid, including on +the command line. +
+url +
+The storage object identifier is a URL. Only the http +scheme is currently supported and not on all systems. +
+neutral +
+The storage manager is the storage manager of storage object in which +the system identifier was specified (the underlying storage +manager). However if the underlying storage manager does not +support named storage objects (ie it is osfd), then the +storage manager will be osfile. The storage object +identifier is treated as a relative, hierarchical name separated by +slashes (/) and will be transformed as appropriate for +the underlying storage manager. +
+literal +
+The bit combinations of the storage object identifier are +the contents of the storage object. +
+

+The following attributes are supported: +

+
+records +
+This describes how records are delimited in the storage object: +
+
cr +
+Records are terminated by a carriage return. +
+lf +
+Records are terminated by a line feed. +
+crlf +
+Records are terminated by a carriage return followed by a line feed. +
+find +
+Records are terminated by whichever of +cr, +lf +or +crlf +is first encountered in the storage object. +
+asis +
+No recognition of records is performed. +
+

+The default is find except for NDATA entities for which +the default is asis. This attribute is not applicable to +the literal storage manager. +

+When records are recognized in a storage object, a record start is +inserted at the beginning of each record, and a record end at the end +of each record. If there is a partial record (a record that doesn't +end with the record terminator) at the end of the entity, then a +record start will be inserted before it but no record end will be +inserted after it. +

+The attribute name and = can be omitted for this attribute. +

+zapeof +
+This specifies whether a Control-Z character that occurs as the final byte +in the storage object should be stripped. +The following values are allowed: +
+
zapeof +
+A final Control-Z should be stripped. +
nozapeof +
+A final Control-Z should not be stripped. +
+

+The default is zapeof except for NDATA entities, entities +declared in storage objects with zapeof=nozapeof and +storage objects with records=asis. This attribute is not +applicable to the literal storage manager. +

+The attribute name and = can be omitted for this +attribute. +

+encoding +
+The encoding attribute specifies the encoding of the storage object. +This attribute is used when the encoding is independent of the +document character set. +The value must be the name of an encoding. +This attribute is not applicable to the +literal storage manager. +
+bctf +
+The BCTF attribute specifies that the encoding of the storage +object. +This attribute is used when the encoding is +document character set dependent. +The value must be the name of a BCTF. +This attribute is not applicable to the +literal storage manager. +
+tracking +
+This specifies whether line boundaries should be tracked for this +object: a value of track specifies that they should; a +value of notrack specifies that they should not. The +default value is track. Keeping track of where line +boundaries occur in a storage object requires approximately one byte +of storage per line and it may be desirable to disable this for very +large storage objects. +

+The attribute name and += +can be omitted for this attribute. +

+base +
+When the storage object identifier specified in the content of the +storage object specification is relative, this specifies the base +storage object identifier relative to which that storage object +identifier should be resolved. +When not specified a storage object identifier is interpreted +relative to the storage object in which it is specified, +provided that this has the same storage manager. +This applies both to system identifiers specified in SGML +documents and to system identifiers specified in the catalog entry +files. +
+smcrd +
+The value is a single character that will be recognized in storage +object identifiers (both in the content of storage object +specifications and in the value of base attributes) as a +storage manager character reference delimiter when followed by a +digit. A storage manager character reference is like an SGML numeric +character reference except that the number is interpreted as a +character number in the inherent character set of the storage manager +rather than the document character set. The default is for no +character to be recognized as a storage manager character reference +delimiter. Numeric character references cannot be used to prevent +recognition of storage manager character reference delimiters. +
+fold +
+This applies only to the neutral storage manager. It +specifies whether the storage object identifier should be folded to +the customary case of the underlying storage manager if storage object +identifiers for the underlying storage manager are case sensitive. +The following values are allowed: +
+
fold +
+The storage object identifier will be folded. +
+nofold +
+The storage object identifier will not be folded. +
+

+The default value is fold. The attribute name and += can be omitted for this attribute. +

+For example, on Unix filenames are case-sensitive and the customary +case is lower-case. So if the underlying storage manager were +osfile and the system was a Unix system, then +<neutral>FOO.SGM would be equivalent to +<osfile>foo.sgm. +

+

Simple system identfiers

+

+A simple system identifier is interpreted as a storage object +identifier with a storage manager that depends on where the system +identifier was specified: if it was specified in a storage object +whose storage manager was url or if the system identifier +looks like an absolute URL in a supported scheme, the storage manager +will be url; otherwise the storage manager will be +osfile. The storage manager attributes are defaulted as +for a formal system identifier. Numeric character references are not +recognized in simple system identifiers. + + diff --git a/doc/xml.htm b/doc/xml.htm new file mode 100644 index 0000000..6ac41a5 --- /dev/null +++ b/doc/xml.htm @@ -0,0 +1,64 @@ + + + +OpenSP - XML support + + +

XML support

+

Using OpenSP to parse XML

+

+To enable OpenSP's support for XML 1.0: +

    +
  • +Set the SP_CHARSET_FIXED environment variable to YES. +
  • +Set the SP_ENCODING environment variable to XML. +
  • +Set the SGML_CATALOG_FILES environment variable to +point to the file pubtext/xml.soc. +
  • +Use the -wxml option. +
  • +If the document is not supposed to be valid, use -wno-valid +option. +
+ +

Limitations

+

+OpenSP does not enforce the following XML constraints: +

    +
  • +XML constrains processing instructions +with a target matching [Xx][Mm][Ll], +both in terms of where they can occur and their content. +
  • +XML does not allow a parameter separator that is adjacent to a +delimiter to be omitted. +
  • +XML has constraints on the use of & in parameter +literals. In SGML terms, XML says that the ero delimiter is +recognized in a parameter literal, and that it must be followed by an +entity reference, but the entity reference is not expanded. +
+

+Line ends are normalized using SGML conventions to a CR/LF character +pair rather than using the XML convention of a single LF character. +

+OpenSP does not enforce XML's rules on not continuing normal processing +after an error. Applications can enforce these if they choose. + +

Web SGML Adaptations Annex

+

+OpenSP's support for XML is based on Annex K of ISO +8879 (the Web SGML Adaptations Annex). +The following features of Annex K are not yet implemented: +

    +
  • +#IMPLIED document type name +
  • +#ALL and #IMPLICIT in model groups and exceptions +
+ + diff --git a/doc/xmlwarn.htm b/doc/xmlwarn.htm new file mode 100644 index 0000000..a38c1a0 --- /dev/null +++ b/doc/xmlwarn.htm @@ -0,0 +1,217 @@ + + + +XML warnings + + +
+
+inclusion +
+Warn about inclusions in element type declarations. +
+exclusion +
+Warn about exclusions in element type declarations. +
+rcdata-content +
+Warn about RCDATA declared content in element type declarations. +
+cdata-content +
+Warn about CDATA declared content in element type declarations. +
+ps-comment +
+Warn about comments in parameter separators. +
+attlist-group-decl +
+Warn about name groups in attribute declarations. +
+element-group-decl +
+Warn about name groups in element type declarations. +
+pi-entity +
+Warn about PI entities. +
+internal-sdata-entity +
+Warn about internal SDATA entities. +
+internal-cdata-entity +
+Warn about internal CDATA entities. +
+external-sdata-entity +
+Warn about external SDATA entities. +
+external-cdata-entity +
+Warn about external CDATA entities. +
+bracket-entity +
+Warn about bracketed text entities. +
+data-atts +
+Warn about attribute definition list declarations for notations. +
+missing-system-id +
+Warn about external identifiers without system identifiers. +
+conref +
+Warn about content reference attributes. +
+current +
+Warn about current attributes. +
+nutoken-decl-value +
+Warn about attributes with a declared value of NUTOKEN or NUTOKENS. +
+number-decl-value +
+Warn about attributes with a declared value of NUMBER or NUMBERS. +
+name-decl-value +
+Warn about attributes with a declared value of NAME or NAMES. +
+named-char-ref +
+Warn about named character references. +
+refc +
+Warn about ommitted refc delimiters. +
+temp-ms +
+Warn about TEMP marked sections. +
+rcdata-ms +
+Warn about RCDATA marked sections. +
+instance-include-ms +
+Warn about INCLUDE marked sections in the document instance. +
+instance-ignore-ms +
+Warn about IGNORE marked sections in the document instance. +
+and-group +
+Warn about AND connectors in model groups. +
+rank +
+Warn about ranked elements. +
+empty-comment-decl +
+Warn about empty comment declarations. +
+att-value-not-literal +
+Warn about attribute values which are not literals. +
+missing-att-name +
+Warn about ommitted attribute names in start tags. +
+comment-decl-s +
+Warn about spaces before the MDC in comment declarations. +
+comment-decl-multiple +
+Warn about comment declarations containing multiple comments. +
+missing-status-keyword +
+Warn about marked sections without a status keyword. +
+multiple-status-keyword +
+Warn about marked sections with multiple status keywords. +
+instance-param-entity +
+Warn about parameter entities in the document instance. +
+min-param +
+Warn about minimization parameters in element type declarations. +
+mixed-content-xml +
+Warn about cases of mixed content which are not allowed in XML. +
+name-group-not-or +
+Warn about name groups with a connector different from OR. +
+pi-missing-name +
+Warn about processing instructions which don't start with a name. +
+instance-status-keyword-s +
+Warn about spaces between DSO and status keyword in marked sections. +
+external-data-entity-ref +
+Warn about references to external data entities in the content. +
+att-value-external-entity-ref +
+Warn about references to external data entities in attribute values. +
+data-delim +
+Warn about occurances of `<' and `&' as data. +
+explicit-sgml-decl +
+Warn about an explicit SGML declaration. +
+internal-subset-ms +
+Warn about marked sections in the internal subset. +
+default-entity +
+Warn about a default entity declaration. +
+non-sgml-char-ref +
+Warn about numeric character references to non-SGML characters. +
+internal-subset-ps-param-entity +
+Warn about parameter entity references in parameter separators in the +internal subset. +
+internal-subset-ts-param-entity +
+Warn about parameter entity references in token separators in the +internal subset. +
+internal-subset-literal-param-entity +
+Warn about parameter entity references in parameter literals in the +internal subset. +
+ + diff --git a/docsrc/Makefile.am b/docsrc/Makefile.am new file mode 100644 index 0000000..da96eb8 --- /dev/null +++ b/docsrc/Makefile.am @@ -0,0 +1,58 @@ +MAX_TEX_RECURSION=4 +XMLTO=@XMLTO@ +JADE=@JADE@ +JADETEX=@JADETEX@ +PDF2PS=@PDF2PS@ +PDFJADETEX=@PDFJADETEX@ +XMLDCL=$(top_srcdir)/pubtext/xml.dcl + + +docdir = $(datadir)/doc +pkgdocdir = $(docdir)/@PACKAGE@ + +man_MANS = onsgmls.1 osgmlnorm.1 ospent.1 ospam.1 osx.1 ospcat.1 +BUILT_SOURCES = $(man_MANS) +pkgdoc_DATA = releasenotes.html @EXTRADOCS@ + +MAINTAINERCLEANFILES = Makefile.in + +EXTRA_DIST = $(patsubst %.1, %.xml, $(man_MANS)) releasenotes.xml releasenotes.dsl logo.png + +%.tex: $(srcdir)/%.xml $(srcdir)/%.dsl + $(JADE) -o $@ -v -t tex -V tex-backend -V '(define %openjade-logo% "$(srcdir)/logo.png")' -d $(srcdir)/$*.dsl#print $(XMLDCL) $(srcdir)/$*.xml + +%.pdf: %.tex + $(PDFJADETEX) $< + if ! cmp $(shell basename $< .tex).aux prior.aux 2>/dev/null && \ + expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION); then \ + cp -pf $(shell basename $< .tex).aux prior.aux ; \ + rm -f $@ ; \ + $(MAKE) $@ ; \ + fi + rm -f prior.aux + +%.dvi: %.tex + $(JADETEX) $< + if ! cmp $(shell basename $< .tex).aux prior.aux 2>/dev/null && \ + expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION); then \ + cp -pf $(shell basename $< .tex).aux prior.aux ; \ + rm -f $@ ; \ + $(MAKE) $@ ; \ + fi + rm -f prior.aux + +%.ps: %.pdf + $(PDF2PS) $< $@ + +%.html: $(srcdir)/%.xml $(srcdir)/%.dsl +# $(JADE) -v -t sgml -i html -V nochunks -V rootchunk -V "%root-filename%=$*" -V "%html-ext%=.html" -d $(srcdir)/$*.dsl#html $(XMLDCL) $(srcdir)/$*.xml + $(XMLTO) html-nochunks $(srcdir)/$*.xml + +%.1: $(srcdir)/%.xml + $(XMLTO) man $< + +mostlyclean-local: + -rm -f *.out *.aux *.log *.dvi *.tex + +clean-local: mostlyclean + -rm -f *.1 *.html *.pdf *.ps diff --git a/docsrc/Makefile.in b/docsrc/Makefile.in new file mode 100644 index 0000000..03ebd0c --- /dev/null +++ b/docsrc/Makefile.in @@ -0,0 +1,505 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = docsrc +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +man1dir = $(mandir)/man1 +am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgdocdir)" +NROFF = nroff +MANS = $(man_MANS) +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +pkgdocDATA_INSTALL = $(INSTALL_DATA) +DATA = $(pkgdoc_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +MAX_TEX_RECURSION = 4 +XMLDCL = $(top_srcdir)/pubtext/xml.dcl +docdir = $(datadir)/doc +pkgdocdir = $(docdir)/@PACKAGE@ +man_MANS = onsgmls.1 osgmlnorm.1 ospent.1 ospam.1 osx.1 ospcat.1 +BUILT_SOURCES = $(man_MANS) +pkgdoc_DATA = releasenotes.html @EXTRADOCS@ +MAINTAINERCLEANFILES = Makefile.in +EXTRA_DIST = $(patsubst %.1, %.xml, $(man_MANS)) releasenotes.xml releasenotes.dsl logo.png +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docsrc/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu docsrc/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +install-man1: $(man1_MANS) $(man_MANS) + @$(NORMAL_INSTALL) + test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" + @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.1*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ + else file=$$i; fi; \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 1*) ;; \ + *) ext='1' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ + done +uninstall-man1: + @$(NORMAL_UNINSTALL) + @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.1*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 1*) ;; \ + *) ext='1' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ + rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ + done +install-pkgdocDATA: $(pkgdoc_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkgdocdir)" || $(mkdir_p) "$(DESTDIR)$(pkgdocdir)" + @list='$(pkgdoc_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(pkgdocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdocdir)/$$f'"; \ + $(pkgdocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdocdir)/$$f"; \ + done + +uninstall-pkgdocDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgdoc_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pkgdocdir)/$$f'"; \ + rm -f "$(DESTDIR)$(pkgdocdir)/$$f"; \ + done +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am +all-am: Makefile $(MANS) $(DATA) +installdirs: + for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgdocdir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-libtool + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-man install-pkgdocDATA + +install-exec-am: + +install-info: install-info-am + +install-man: install-man1 + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool \ + mostlyclean-local + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-man uninstall-pkgdocDATA + +uninstall-man: uninstall-man1 + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + clean-local distclean distclean-generic distclean-libtool \ + distdir dvi dvi-am html html-am info info-am install \ + install-am install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-man1 install-pkgdocDATA install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool mostlyclean-local pdf pdf-am ps ps-am \ + uninstall uninstall-am uninstall-info-am uninstall-man \ + uninstall-man1 uninstall-pkgdocDATA + + +%.tex: $(srcdir)/%.xml $(srcdir)/%.dsl + $(JADE) -o $@ -v -t tex -V tex-backend -V '(define %openjade-logo% "$(srcdir)/logo.png")' -d $(srcdir)/$*.dsl#print $(XMLDCL) $(srcdir)/$*.xml + +%.pdf: %.tex + $(PDFJADETEX) $< + if ! cmp $(shell basename $< .tex).aux prior.aux 2>/dev/null && \ + expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION); then \ + cp -pf $(shell basename $< .tex).aux prior.aux ; \ + rm -f $@ ; \ + $(MAKE) $@ ; \ + fi + rm -f prior.aux + +%.dvi: %.tex + $(JADETEX) $< + if ! cmp $(shell basename $< .tex).aux prior.aux 2>/dev/null && \ + expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION); then \ + cp -pf $(shell basename $< .tex).aux prior.aux ; \ + rm -f $@ ; \ + $(MAKE) $@ ; \ + fi + rm -f prior.aux + +%.ps: %.pdf + $(PDF2PS) $< $@ + +%.html: $(srcdir)/%.xml $(srcdir)/%.dsl +# $(JADE) -v -t sgml -i html -V nochunks -V rootchunk -V "%root-filename%=$*" -V "%html-ext%=.html" -d $(srcdir)/$*.dsl#html $(XMLDCL) $(srcdir)/$*.xml + $(XMLTO) html-nochunks $(srcdir)/$*.xml + +%.1: $(srcdir)/%.xml + $(XMLTO) man $< + +mostlyclean-local: + -rm -f *.out *.aux *.log *.dvi *.tex + +clean-local: mostlyclean + -rm -f *.1 *.html *.pdf *.ps +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/docsrc/logo.png b/docsrc/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..378fb8fce9150022d94da781ba8c3c1cffd52cbe GIT binary patch literal 1703 zcmV;Y23YxtP)%xKL7v#9dt!lbW?9;ba!ELWdKJ`RUk)bZ*z2WV{&P5bRab@H8AD-iGBX!zWPod#d_AZ_JY#&AT(a4SE@ zfU=+Dyt9iV{O;T__)q83_c_KVt0eCrA^>Fr=XoxR7GvznF@&;n*}j@H04%CQ*;mU~ z#WKR57h?lJTu?ngt{!08$U~Ni=#aOXWKbx`65?YBPgIW~B<{-gcEw7GjU`5ah&UZQ zR5?fhg)GrHGLDMf9^nyiSL&cd6TzeU@)=&Tgd#wHPff%WGh93nRof<9eP( zq@)^vOT}=Fpo+ZJFESRwzW?6aI}4gj2_-3};OGPL>h(@kvW+6ZxW(_z`32lNOW=JR0=hxz=G z^L|$10Srnn-ve^@vR`K$fqQ5P3nChG{<$j^P;zTkGICF-URiA{ASUMy^O?ng&dBGF z`MkyRM0QxFrUX~?VR3K|hL`8lW4M);0Ki=-v<6Evcn{Yq0e~*+X4YEVjX;yDuEa~z zHJf2_E>{!)2ppjbY=enY4A5fz&<_;Q(~@1OSMLN}BZ{^SL}? zc`@S{^u>UH8*A*k+%w%+BW$G|kdDH(JzgtdIm>jioXu)6W0~DsY4eL}=HxgL)z_4i zk*a}{)d@UqN^mFytlXLX)UrK20{W^THvL1V)E4>oWrtu%5Fx}x z>>M|_e}xzmT>&Wf61i1clmHmkN!bECk@*l6PnyXL0)kJxs>R;FDuW%C{98@?NemD2RNL?PV@O%W1NsW|!sI-V zu56Z7v{IneNv1P1cvS<-o%e{hq-*00{#iPt?dY z2Y?YGcg+Ax{g=KU_`wqTs#Jj_QD%87P1#6ZQ5R}^V|XhzD1Eo~!mi>LT-Yoxw{0-tQZ4vFTfPDY}002ovPDHLkV1nFq5KjOA literal 0 HcmV?d00001 diff --git a/docsrc/onsgmls.xml b/docsrc/onsgmls.xml new file mode 100644 index 0000000..d7ec32b --- /dev/null +++ b/docsrc/onsgmls.xml @@ -0,0 +1,564 @@ + + +
+ + onsgmls + + James + Clark + + + Ian + Castle +
ian.castle@openjade.org
+
+ + + 2002 + OpenJade Project + +
+ +
+ Reference + + + + onsgmls + November 2002 + OpenSP + + + + onsgmls + 1 + + + + onsgmls + An SGML/XML parser and validator + + + + + onsgmls + + + + + + + + + + + + + + + + + + + + Description + + onsgmls parses and validates the SGML document whose document entity is + specified by the system identifiers sysid and prints on the + standard output a simple text representation of its Element Structure + Information Set. (This is the information set which a + structure-controlled conforming SGML application should act upon.) If + more than one system identifier is specified, then the corresponding + entities will be concatenated to form the document entity. Thus the + document entity may be spread among several files; for example, the + SGML declaration, prolog and document instance set could each be in a + separate file. If no system identifiers are specified, then onsgmls + will read the document entity from the standard input. A command line + system identifier of - can be used to refer to the standard input. + (Normally in a system identifier, <OSFD>0 is used to refer to standard + input.) + + Part of an SGML System Conforming to International Standard ISO 8879 -- Standard Generalized Markup Language. An SGML Extended Facilities system conforming to Annex A of Internal Standard ISO/IEC 10744 -- Hypermedia/Time-based Structuring Language + + The following options are available: + + + + + + + Make link type linktype active. Not all ESIS information is + output in this case: the active LPDs are not explicitly + reported, although each link attribute is qualified with its + link type name; there is no information about result elements; + when there are multiple link rules applicable to the current + element, onsgmls always chooses the first. + + + + + + + + Parse with respect to architecture architecture. + + + + + + + + + + This determines the encoding used for output. If in fixed + character set mode it specifies the name of an encoding; if + not, it specifies the name of a BCTF. + + + + + + + + Batch mode. Parse each specified on the command line + separately, rather than concatenating them. This is useful + mainly with . + + If is also specified, then the specified filename + will be prefixed to the sysid to make the filename for the RAST + result for each sysid. + + + + + + + + Map public identifiers and entity names to system identifiers + using the catalog entry file whose system identifier is sysid. + Multiple options are allowed. + If there is a catalog entry + file called catalog in the same place as the document entity, + it will be searched for immediately after those specified by + . + + + + + + + + The arguments specify catalog files rather than the + document entity. The document entity is specified by the first + DOCUMENT entry in the catalog files. + + + + + + + + Search directory for files specified in system identifiers. + Multiple options are allowed. + See the description of the + osfile storage manager for more information about file + searching. + + + + + + + + Describe open entities in error messages. Error messages always + include the position of the most recently opened external + entity. + + + + + + + + onsgmls will exit after max_errors errors. If max_errors is 0, + there is no limit on the number of errors. The default is 200. + + + + + + + + Redirect errors to file. This is useful mainly with shells that + do not support redirection of stderr. + + + + + + + + Show the generic identifiers of open elements in error + messages. + + + + + + + + Show a help message and exit. + + + + + + + + Pretend that + + +<!ENTITY % name "INCLUDE"> + + occurs at the start of the document type declaration subset in + the SGML document entity. Since repeated definitions of an + entity are ignored, this definition will take precedence over + any other definitions of this entity in the document type + declaration. Multiple -i options are allowed. If the SGML + declaration replaces the reserved name INCLUDE then the new + reserved name will be the replacement text of the entity. + Typically the document type declaration will contain + + +<!ENTITY % name "IGNORE"> + + and will use %name; in the status keyword specification of a + marked section declaration. In this case the effect of the + option will be to cause the marked section not to be ignored. + + + + + + + + Show message numbers in error messages. + + + + + + + + Output additional information according to output_option: + Output definitions of all general entities not just for + data or subdoc entities that are referenced or named in + an ENTITY or ENTITIES attribute. + Distinguish attributes whose declared value is ID. + + Output L commands giving the current line number and + filename. + + + Output an i command for included sub-elements. + + Output an e command for elements which are not allowed to + have an end-tag, that is those with a declared content of + empty or with a content reference attribute. + + Output an f command before an N command, if a system + identifier could be generated for that notation. + + In fixed character set mode, output \% escape + sequences for non-SGML data characters. Non-SGML data + characters can result from numeric character references. + + Output the notation name and attributes for DATA attributes. + Otherwise, DATA attributes are treated like CDATA attributes. + For more details see clause 4.4.3 of Annex K of ISO 8879. + + Output an _ command with the contents of a comment. + Multiple comments in a single comment declaration will result + in multiple distinct _ commands, just as if the comments + were each in a separate comment declaration. + + Output an o command before a command which was implied by the + input document, but omitted from the actual markup. + This currently affects (,), and A commands. + + As , but only for ( and ) commands. + + As , but only for A commands. + + + Multiple options are allowed. + + + + + + + Parse only the prolog. onsgmls will exit after parsing the + document type declaration. Implies . + + + + + + + + Restrict file reading. This option is intended for use with + onsgmls-based Web tools (e.g. CGI scripts) to prevent reading of + arbitrary files on the Web server. With this option enabled, + onsgmls will not read any local files unless + they are located in a directory (or subdirectory) specified by + the option or included in the SGML_SEARCH_PATH + environment variable. As a further security precaution, this + option limits filesnames to the characters A-Z, a-z, 0-9, '?', '.', + '_', '-' and does not allow filenames containing "..". On systems + with MS-DOS file names ':' and '\' are also allowed. + + + + + + + Suppress output. Error messages will still be printed. + + + + + + + Output to file the RAST result as defined by ISO/IEC 13673:1995 + (actually this isn't quite an IS yet; this implements the + Intermediate Editor's Draft of 1994/08/29, with changes to + implement ISO/IEC JTC1/SC18/WG8 N1777). The normal output is + not produced. + + + + + + + Print the version number. + + + + + + + + Control warnings and errors. Multiple options are allowed. + The following values of type enable warnings: + + + Warn about constructs that are not allowed by XML. + + + Warn about mixed content models that do not allow #PCDATA + anywhere. + + + Warn about various dubious constructions in the SGML + declaration. + + + Warn about various recommendations made in ISO 8879 that + the document does not comply with. (Recommendations are + expressed with "should", as distinct from requirements + which are usually expressed with "shall".) + + + Warn about defaulted references. + + + Warn about duplicate entity declarations. + + + Warn about undefined elements: elements used in the DTD + but not defined. + + + Warn about unclosed start and end-tags. + + + Warn about empty start and end-tags. + + + Warn about net-enabling start-tags and null end-tags. + + + Warn about minimized start and end-tags. Equivalent to + combination of unclosed, empty and net warnings. + + + Warn about unused short reference maps: maps that are + declared with a short reference mapping declaration but + never used in a short reference use declaration in the + DTD. + + + Warn about parameter entities that are defined but not + used in a DTD. Unused internal parameter entities whose + text is INCLUDE or IGNORE won't get the warning. + + + Warn about notations for which no system identifier could + be generated. + + + Warn about conditions that should usually be avoided (in + the opinion of the author). Equivalent to: mixed, should, + default, undefined, sgmldecl, unused-map, unused-param, + empty and unclosed. + + Warn about immediately recursive elements. For more detais + see clause 2.2.5 of Annex K of ISO 8879. + + Warn if the document instance fails to be fully declared. + This has the effect of changing the SGML declaration to + specify IMPLYDEF ATTLIST NO ELEMENT NO ENTITY NO NOTATION NO. + For more details see clause 2.2.1 of Annex K of ISO 8879. + + Warn if the document instance fails to be fully-tagged. + This has the effect of changing the SGML declaration to + specify DATATAG NO, RANK NO, OMITTAG NO, SHORTTAG STARTTAG + EMPTY NO and SHORTTAG ATTRIB OMITNAME NO. For more details + see clause 2.2.2 of Annex K of ISO 8879. + + Warn if the doucment instance fails to be amply-tagged. + Implicitly defined elements may be immediately recurisve if + is specified. + This has the effect of changing the SGML declaration to + specify DATATAG NO, RANK NO, OMITTAG NO, SHORTTAG ATTRIB + OMITNAME NO and either IMPLYDEF ELEMENT ANYOTHER or + IMPLYDEF ELEMENT YES. For more details see clause 2.2.4 of + Annex K of ISO 8879. + + + Warn if the document instance fails to be type-valid. + This has the effect of changing the SGML declaration to + specify VALIDITY YES. For more details see clause 2.2.3 + of Annex K of ISO 8879. + + + Warn about references to non-predefined entities. This + has the effect of changing the SGML declaration to + specify ENTITIES REF NONE. For more details see clause + 2.3.2 of Annex K of ISO 8879. + + + Warn about references to external entities. This includes + references to an external DTD subset. This has the effect + of changing the SGML declaration to specify ENTITIES REF + INTERNAL. For more details see clause 2.3.3 of Annex K + of ISO 8879. + + + Warn if the document instance is not integrally stored. + This has the effect of changing the SGML declaration to + specify ENTITIES INTEGRAL YES. For more details see clause + 2.3.1 of Annex K of ISO 8879. + + A warning can be disabled by using its name prefixed with no-. + Thus will enable all warnings except those + about duplicate entity declarations. + + The following values for warning_type disable errors: + + + Do not give an error for an ID reference value which no + element has as its ID. The effect will be as if each + attribute declared as an ID reference value had been + declared as a name. + + + Do not give an error when a character that is not a + significant character in the reference concrete syntax + occurs in a literal in the SGML declaration. This may be + useful in conjunction with certain buggy test suites. + + + Do not require the document to be type-valid. This has + the effect of changing the SGML declaration to specify + VALIDITY NOASSERT and IMPLYDEF ATTLIST YES ELEMENT YES. + An option of has the effect of changing the SGML + declaration to specify VALIDITY TYPE and IMPLYDEF ATTLIST + NO ELEMENT NO. If neither nor are + specified, then the VALIDITY and IMPLYDEF specified in + the SGML declaration will be used. + + + Do not give errors when AFDR meta-DTD notation features are + used in the DTD. These errors are normally produced when + parsing the DTD, but suppressed when parsing meta-DTDs. + + + + + + + + Show information about relevant clauses + (from ISO 8879:1986) in error messages. + + + + + + The following options are also supported for backward compatibility + with sgmls: + + + + + Same as . + + + + + + Same as . + + + + + + + Same as . + + + + + + + Same as . + + + + + + + Same as . + + + + + + + + See Also + ospent(1), ospam(1), + onsgmlnorm(1), osx(1) + + + +
+
+ diff --git a/docsrc/osgmlnorm.xml b/docsrc/osgmlnorm.xml new file mode 100644 index 0000000..79f7ad6 --- /dev/null +++ b/docsrc/osgmlnorm.xml @@ -0,0 +1,253 @@ + + +
+ + osgmlnorm + + James + Clark + + + Ian + Castle +
ian.castle@openjade.org
+
+ + 2002 + OpenJade Project + +
+ +
+ Reference + + + + osgmlnorm + January 2002 + OpenJade + + + + osgmlnorm + 1 + + + + osgmlnorm + An SGML/XML document normalizer + + + + + osgmlnorm + + + + + + + + + + + sysid + + + + + + + Description + + osgmlnorm prints on the standard output a normalized document instance + for the SGML document contained in the concatenation of the entities + with system identifiers sysid. + + When the normalized instance is prefixed with the original SGML + declaration and prolog, it will have the same ESIS as the original + SGML document, with the following exceptions: +* The output of osgmlnorm does not protect against the recognition of + short reference delimiters, so any USEMAP declarations must be + removed from the DTD. + * The normalized instance will use the reference delimiters, even if + the original instance did not. + * If marked sections are included in the output using the -m option, + the reference reserved names will be used for the status keywords + even if the original instance did not. + * Any ESIS information relating to the SGML LINK feature will be + lost. + + The normalized instance will not use any markup minimization features + except that: +* Any attributes that were not specified in the original instance + will not be included in the normalized instance. (Current + attributes will be included.) + * If the declared value of an attribute was a name token group, and + a value was specified that was the same as the name of the + attribute, then the attribute name and value indicator will be + omitted. For example, with HTML osgmlnorm would output <DL COMPACT> + rather than <DL COMPACT="COMPACT"> + + Part of an SGML System Conforming to International Standard ISO 8879 -- Standard Generalized Markup Language. An SGML Extended Facilities system conforming to Annex A of International Standard ISO/IEC 10744 -- Hypermedia/Time-based Structuring Language. + The following options are available: + + + + + + + Make doctype or linktype name active. + + + + + + + + Parse with respect to architecture architecture. + + + + + + + + Use the BCTF with name bctf for output. + + + + + + + + Map public identifiers and entity names to system identifiers + using the catalog entry file whose system identifier is + sysid. + + + + + + + + This has the same effect as in onsgmls(1). + + + + + + + + Output a document type declaration with the same external + identifier as the input document, and with no internal + declaration subset. No check is performed that the document + instance is valid with respect to this DTD. + + + + + + + + Search directory for files specified in system identifiers. + This has the same effect as in onsgmls(1). + + + + + + + + Describe open entities in error messages. + + + + + + + Show error numbers in error messages. + + + + + + + + Display a help text and exit. + + + + + + + + This has the same effect as in onsgmls(1). + + + + + + + + Output any marked sections that were in the input document + instance. + + + + + + + + Output any comments that were in the input document instance. + + + + + + + + Raw output. Don't perform any conversion on RSs and REs when + printing the entity. The entity would typically have the + storage manager attribute records=asis. + + + + + + + + This has the same effect as in onsgmls(1). + + + + + + + + Print the version number. + + + + + + + Control warnings and errors according to type. This has the + same effect as in onsgmls(1). + + + + + + + See Also + onsgmls(1), ospam(1), + ospent(1), osx(1) + + +
+
diff --git a/docsrc/ospam.xml b/docsrc/ospam.xml new file mode 100644 index 0000000..5217f2e --- /dev/null +++ b/docsrc/ospam.xml @@ -0,0 +1,362 @@ + + +
+ + ospam + + James + Clark + + + Ian + Castle +
ian.castle@openjade.org
+
+ + + 2002 + OpenJade Project + +
+ + +
+ Reference + + + + ospam + November 2002 + OpenJade + + + + ospam + 1 + + + + ospam + An SGML/XML markup stream editor + + + + + ospam + + + + + + + + + + + sysid + + + + + + Description + + ospam (OpenSP Add Markup) is an SGML markup stream editor implemented using + the OpenSP parser. ospam parses the SGML document contained in sysid and + copies to the standard output the portion of the document entity + containing the document instance, adding or changing markup as + specified by the options. The option can be used to include the + SGML declaration and prolog in the output. The option can be used + to output other entities. The option can be used to expand entity + references. + + Part of an SGML System Conforming to International Standard ISO 8879 -- Standard Generalized Markup Language. An SGML Extended Facilities system conforming to Annex A of Internation Standard ISO/IEC 10744 -- Hypermedia/Time-based Structuring Language. + + The following options are available: + + + + + + + Make doctype or linktype name active. + + + + + + + + Parse with respect to architecture architecture. + + + + + + + + Use bctf bctf for output. + + + + + + + + Use the catalog entry file sysid. + + + + + + + + This has the same effect as in onsgmls(1). + + + + + + + + Search directory for files specified in system identifiers. + This has the same effect as in onsgmls(1). + + + + + + + Describe open entities in error messages. + + + + + + + + Exit after max_errors errors are encountered. + + + + + + + Redirect errors to file. + This is useful mainly with shells that do not support redirection + of stderr. + + + + + + + Hoist omitted tags out from the start of internal entities. If + the text at the beginning of an internal entity causes a tag to + be implied, the tag will usually be treated as being in that + internal entity; this option will instead cause it to be + treated as being in the entity that referenced the internal + entity. This option makes a difference in conjunction with + or . + + + + + + + Display a help text and exit. + + + + + + + + This has the same effect as in onsgmls(1). + + + + + + + + Prefer lower-case. Added names that were subject to upper-case + substitution will be converted to lower-case. + + + + + + + + Change the markup in the output according to the value of + markup_option as follows: + + + Add tags that were omitted using omitted tag + minimization. End tags that were omitted because the + element has a declared content of EMPTY or an explicit + content reference will not be added. + + + Replace short references by named entity references. + + + Change null end-tags into unminimized end-tags, and + change net-enabling start-tags into unminimized + start-tags. + + + Change empty tags into unminimized tags. + + + Change unclosed tags into unminimized tags. + + + Add omitted attribute names and vis. + + + Add literal delimiters omitted from attribute values. + + + Add omitted attribute specifications. + + + Add omitted attribute specifications for current + attributes. This option is implied by the attspec option. + + + Equivalent to combination of net, emptytag, unclosed, + attname, attvalue and attspec options. + + + Add omitted rank suffixes. + + + Put reserved names in upper-case. + + + Remove marked section declarations whose effective status + is IGNORE, and replace each marked section declaration + whose effective status is INCLUDE by its marked section. + In the document instance, empty comments will be added + before or after the marked section declaration to ensure + that ignored record ends remain ignored. + + Multiple -m options are allowed. + + + + + + + + Show error numbers in error messages. + + + + + + + + Output the general entity name instead of the document entity. + The output will correspond to the first time that the entity is + referenced in content. + + + + + + + + Output the part of the document entity containing the SGML + declaration (if it was explicitly present in the document + entity) and the prolog before anything else. If this option is + specified two or more times, then all entity references + occurring between declarations in the prolog will be expanded; + this includes the implicit reference to the entity containing + the external subset of the DTD, if there is one. Note that the + SGML declaration will not be included if it was specified by an + SGMLDECL entry in a catalog. + + + + + + + + Don't perform any conversion on RSs and REs when outputting the + entity. The entity would typically have the storage manager + attribute records=asis. + + + + + + + + This as the same effect as in onsgmls(1) + + + + + + + + Print the version number. + + + + + + + + Control warnings and errors according to type. This has the + same effect as in onsgmls(1). + + + + + + + + Expand references to entities that are changed. If this option + is specified two or more times, then all references to entities + that contain tags will be expanded. + + + + + + + Bugs + + Omitted tags are added at the point where they are implied by the SGML + parser (except as modified by the option); this is often not quite + where they are wanted. + + The case of general delimiters is not preserved. + + Incorrect results may be produced if a variant concrete syntax is used + which is such that there are delimiters in markup to be added that + have a prefix that is a proper suffix of some other delimiter. + + If an entity reference in a default value uses the default entity and + an entity with that name is subsequently defined and that default + value is added to the document instance, then the resulting document + may not be equivalent to the original document. ospam will give a + warning when the first two conditions are met. + + + + See Also + onsgmls(1), ospent(1), + onsgmlnorm(1), osx(1) + + +
+
diff --git a/docsrc/ospcat.xml b/docsrc/ospcat.xml new file mode 100644 index 0000000..abc8677 --- /dev/null +++ b/docsrc/ospcat.xml @@ -0,0 +1,195 @@ + + +
+ +ospcat +IanCastle +
ian.castle@openjade.org
+
+ +2003OpenJade Project + +
+ +
+Reference + + + + ospcat + September 2003 + OpenSP + + + + ospcat + 1 + + + + ospcat + + +SGML print catalog + + + + + +ospcat + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Description +ospcat prints effective system identifiers found in the catalogs +on the standard output. It doesn't check that the system identifiers +correspond to actual files. The return value is 0 if the last system +identifier was successfully created and 1 otherwise. + + + +Options +The following options are available: + + + + + +Use bctf name for output. + + + + + +Append error messages to file file. + + + + + +Display the program version. + + + + + +Show this help text. + + + + + +Use catalog sysid. + + + + + +Arguments are catalogs, use DOCUMENT entry. + + + + + +Search files in directory directory. + + + + + +Restrict file reading (for use in Web apps). + + + + + +Print the effective system id for the public id literal. + + + + + +Print the effective system id for system id literal. + + + + + +Print the effective system id for parameter entity name. + + + + + +Print the effective system id for the doctype name. + + + + + +Print the effective system id for the linktype name. + + + + + +Print the effective system id for entity name. + + + + + +Print the effective system id for notation name. + + + + + +Print the effective system id for the SGML declaration for doctype name. + + + + + + + +See Also +onsgmls(1), ospam(1), +onsgmlnorm(1), ospent(1) + + +
+
diff --git a/docsrc/ospent.xml b/docsrc/ospent.xml new file mode 100644 index 0000000..575b4ee --- /dev/null +++ b/docsrc/ospent.xml @@ -0,0 +1,166 @@ + + +
+ + ospent + + James + Clark + + + Ian + Castle +
ian.castle@openjade.org
+
+ + + 2002 + OpenJade Project + +
+ + +
+ Reference + + + + ospent + November 2002 + OpenJade + + + + ospent + 1 + + + + ospent + Concatenates entities in an SGML/XML document + + + + + ospent + + + + + + sysid + + + + + + Description + + ospent (OpenSP print entity) prints the concatenation of the entities + with system identifiers sysid on the standard output. + + The following options are available: + + + + + + + Use the BCTF with name bctf for output. + + + + + + + + Map public identifiers and entity names to system identifiers + using the catalog entry file whose system identifier is + sysid. + + + + + + + This has the same effect as in onsgmls(1). + + + + + + + + Search directory for files specified in system identifiers. + This has the same effect as in onsgmls(1). + + + + + + + + Redirect error messages to file. + + + + + + + + Display a help text and exit. + + + + + + + + The entity is a non-SGML data entity. This option forces the + octets in the storage objects comprising the entity to be + copied exactly without any of the conversions that are done for + text entities. Implies . + + + + + + + + Raw output. Don't perform any conversion on RSs and REs when + printing the entity. The entity would typically have the + storage manager attribute records=asis. + + + + + + + + This has the same effect as in onsgmls(1). + + + + + + + + Print the version number. + + + + + + + + See Also + onsgmls(1), ospam(1), + onsgmlnorm(1), osx(1) + + + +
+
diff --git a/docsrc/osx.xml b/docsrc/osx.xml new file mode 100644 index 0000000..3ef2d33 --- /dev/null +++ b/docsrc/osx.xml @@ -0,0 +1,403 @@ + + +
+ + osx + + James + Clark + + + Ian + Castle +
ian.castle@openjade.org
+
+ + + 2002 + OpenJade Project + +
+ +
+ Reference + + + + osx + November 2002 + OpenJade + + + + osx + 1 + + + + osx + An SGML to XML converter + + + + + + osx + + + + + + + + + + + + + + + + + + + Description + + osx converts SGML to XML. osx parses and validates the SGML document + contained in and writes an equivalent XML document to the + standard output. osx will warn about SGML constructs which have no XML + equivalent. + + + Part of an SGML System Conforming to International Standard ISO 8879 -- Standard Generalized Markup Language. An SGML Extended Facilities system conforming to Annex A of International Standard ISO/IEC 10744 -- Hypermedia/Time-based Structuring Language. + + + + Options + + The following options are available: + + + + + + + + Make doctype or linkname name active. + + + + + + + + + + Parse with respect to architecture name. + + + + + + + + + + Use the BCTF encoding for output. By default osx uses UTF-8. + + + + + + + + + + Map public identifiers and entity names to system identifiers using + the catalog entry file whose system identifier is + sysid. + + + + + + + + + + This has the same effect as in onsgmls(1). + + + + + + + + + Place output files in directory. + + + + + + + + + Search directory for files specified in system identifiers. + This has the same effect as in onsgmls(1). + + + + + + + + + + Describe open entities in error messages. + + + + + + + + + + Give up after max_errors errors. + + + + + + + + + + Redirect errors to file. + This is useful mainly with shells that do not support redirection + of stderr. + + + + + + + + + + Describe open elements in error messages. + + + + + + + + + + Display a help text and exit. + + + + + + + + + + This has the same effect as in onsgmls(1). + + + + + + + + + + Specify that the resulting XML file should conform to the DTD in + dtd-file. + + + + + + + + + + Show error numbers in error messages. + + + + + + + + + Show references in error messages. + + + + + + + + + + This has the same effect as in onsgmls(1). + + + + + + + + + + Print the version number and exit. + + + + + + + + + Control warnings and errors according to type. This has the + same effect as in onsgmls(1). + + + + + + + + + Control the XML output according to the value of + xml_output_option as follows: + + + Don't use newlines inside start-tags. + Usually osx uses + newlines inside start-tags so as to reduce the + probability of excessively long lines. + + + Output attribute declarations for ID attributes. + + + Output declarations for notations. + + + Output declarations for external data entities. + XML requires these to be NDATA. + osx will warn about CDATA and + SDATA external data entities and output them as NDATA + entities. + + + Use XML CDATA sections for CDATA marked sections and for + elements with a declared content of CDATA. + + + Output comment declarations. Comment declarations in the + DTD will not be output. + + Prefer lower case. Names that were subjected to + upper-case substitution by SGML will be folded to lower + case. This does not include reserved names; XML requires + these to be in upper-case. + + + Escape &<> in the contents of processing instructions + using the amp, lt and gt entities. This allows processing + instructions to contain the string >?, but requires that + applications handle the escapes. + + + Use the <e/> syntax for element types e declared as EMPTY. + + + Output an ATTLIST declaration for every element specifying + the type of all attributes. The default will always be + #IMPLIED. + + + + Output a processing instruction to report when an input + source other than the main file is opened or closed in the + instance. Do not report any input source changes in + the DTD. + + + Output a processing instruction to report when an external + entity reference has been resolved in the instance. + Do not report any entity resolutions in the DTD. + + + Preserve external entities, write a declaration driver + file named "extEntities.dtf", and include that file + in the instance's internal subset. + + + Preserve internal entities, write a declaration driver file + named "intEntities.dtf", and include that file in the + instance's internal subset. + + + Do not include the external entities declaration driver file + in the instance's internal subset. + + + Do not include the internal entities declaration driver file + in the instance's internal subset. + + + When preserving external entities, do not write output files + outside the specified output directory ("." by default). + In other words, if an external entity's system identifier + includes enough instances of ".." to cause osx to write + a file outside (above) the output directory, exit (by default + osx will issue a warning but will write the file and + continue. + + + When preserving internal or external entities, multiple + output files will be written. If this option is specified, + do not overwrite existing files; instead, attempt to append + a number to the end of the original filename to create a + unique filename. Exit with an error if too many (100) + such files already exist. + + + Preserve casing as specified in the DTD for element names; + attribute names; attribute values which are token lists. + + + When translating SDATA entities (whether expanding them or + providing a definition for them in the output's internal + subset), express them as processing instructions instead + of as general internal entities. + + Multiple options are allowed. + + + + + + + + See Also + onsgmls(1), ospam(1), + onsgmlnorm(1), ospent(1) + + +
+
+ diff --git a/docsrc/releasenotes.dsl b/docsrc/releasenotes.dsl new file mode 100644 index 0000000..22598f8 --- /dev/null +++ b/docsrc/releasenotes.dsl @@ -0,0 +1,240 @@ + + +]> + + + + +;; This draws in version 1.74b of the module docbook DSSSL stylesheets +;; together with sourceforge patch #502637 + +;; customize the print stylesheet + +(define %hsize-bump-factor% 1.1) + +(define %chapter-autolabel% + ;; Are chapters enumerated? + #f) + +(define %two-side% #t) + +;; +;; We are targeting pdfjadetex - and converting from PDF to postscript +;; We need to make sure that .pdf images (actually .epdf) are preferred +;; over others + +(define %graphic-extensions% +;; List of graphic filename extensions +'("pdf" "eps" "epsf" "gif" "tif" "tiff" "jpg" "jpeg" "png")) + + +(define preferred-mediaobject-notations + (list "PDF" "EPS" "PS" "JPG" "JPEG" "PNG" "linespecific")) + +(define preferred-mediaobject-extensions + (list "pdf" "eps" "ps" "jpg" "jpeg" "png")) + +(define %titlepage-in-info-order% #f) + +;; Fix bug in numbering of the preface +;; +;; ISC: 23/11/02 - I think this is in version 1.76 of the stylesheets +;; but I will leave it here for now + + (define ($component$) + (make simple-page-sequence + page-n-columns: %page-n-columns% + page-number-restart?: (or %page-number-restart% + (first-chapter?)) + page-number-format: ($page-number-format$) + use: default-text-style + left-header: ($left-header$) + center-header: ($center-header$) + right-header: ($right-header$) + left-footer: ($left-footer$) + center-footer: ($center-footer$) + right-footer: ($right-footer$) + start-indent: %body-start-indent% + input-whitespace-treatment: 'collapse + quadding: %default-quadding% + (make sequence + ($component-title$) + (process-children)) + (make-endnotes))) + +;; Customise the title page +;; +;; We want to choose the items to go on the page, the placement of them +;; and the font. We want a logo in the bottom right hand corner +;; And a nice thick rule above the title. +;; +(element book + (let* ((bookinfo (select-elements (children (current-node)) + (normalize "bookinfo"))) + (dedication (select-elements (children (current-node)) + (normalize "dedication"))) + (nl (titlepage-info-elements (current-node) bookinfo))) + (make sequence + (if %generate-book-titlepage% + (make simple-page-sequence + page-n-columns: %titlepage-n-columns% + input-whitespace-treatment: 'collapse + use: default-text-style + bottom-margin: 144pt + right-footer: ($title-right-footer$) + (book-titlepage nl 'recto) + (make display-group + break-before: 'page + (book-titlepage nl 'verso))) + (empty-sosofo)) + + (if (node-list-empty? dedication) + (empty-sosofo) + (with-mode dedication-page-mode + (process-node-list dedication))) + + (if (not (generate-toc-in-front)) + (process-children) + (empty-sosofo)) + + (if %generate-book-toc% + (make simple-page-sequence + page-n-columns: %page-n-columns% + page-number-format: ($page-number-format$ (normalize "toc")) + use: default-text-style + left-header: ($left-header$ (normalize "toc")) + center-header: ($center-header$ (normalize "toc")) + right-header: ($right-header$ (normalize "toc")) + left-footer: ($left-footer$ (normalize "toc")) + center-footer: ($center-footer$ (normalize "toc")) + right-footer: ($right-footer$ (normalize "toc")) + input-whitespace-treatment: 'collapse + (build-toc (current-node) + (toc-depth (current-node)))) + (empty-sosofo)) + + (let loop ((gilist ($generate-book-lot-list$))) + (if (null? gilist) + (empty-sosofo) + (if (not (node-list-empty? + (select-elements (descendants (current-node)) + (car gilist)))) + (make simple-page-sequence + page-n-columns: %page-n-columns% + page-number-format: ($page-number-format$ (normalize "lot")) + use: default-text-style + left-header: ($left-header$ (normalize "lot")) + center-header: ($center-header$ (normalize "lot")) + right-header: ($right-header$ (normalize "lot")) + left-footer: ($left-footer$ (normalize "lot")) + center-footer: ($center-footer$ (normalize "lot")) + right-footer: ($right-footer$ (normalize "lot")) + input-whitespace-treatment: 'collapse + (build-lot (current-node) (car gilist)) + (loop (cdr gilist))) + (loop (cdr gilist))))) + + (if (generate-toc-in-front) + (process-children) + (empty-sosofo))))) + +(define %openjade-logo% + ;; The openjade logo + "logo.png" ) + +(define ($title-right-footer$) + (if-first-page + (make external-graphic + scale: 1.0 + entity-system-id: %openjade-logo% + notation-system-id: "PDF" + display?: #f) + (empty-sosofo))) + +(define (book-titlepage-recto-elements) + (list (normalize "corpauthor") + (normalize "subtitle") + (normalize "title") + (normalize "graphic"))) + +(define (book-titlepage-verso-elements) + (list (normalize "legalnotice") + (normalize "copyright") + (normalize "edition") + (normalize "pubdate") + (normalize "abstract") + (normalize "revhistory"))) + +(define (book-titlepage-before node side) +(empty-sosofo) + ) + +(mode book-titlepage-recto-mode + + (element graphic + (make display-group + (make external-graphic + entity-system-id: (attribute-string "fileref") + display?: #t + ) + ) + ) + (element title + (make paragraph + font-size: 36pt + font-family-name: "Palatino" + font-weight: 'bold + space-before: 12pt + line-spacing: 36pt + (make rule + space-after: 4pt + line-thickness: 1pt) + (process-children) + ) + ) + (element subtitle + (make paragraph + font-size: 24pt + line-spacing: 24pt + font-family-name: "Palatino" + font-weight: 'bold + (process-children) + ) + ) + (element corpauthor + (make paragraph + font-size: 24pt + line-spacing: 24pt + space-after: 6pt + font-family-name: "Palatino" + font-weight: 'normal + (process-children) + ) + ) +) + + + + + + + + +;; customize the html stylesheet + + +;; customize the html stylesheet +(define %body-attr% + ;; What attributes should be hung off of BODY? + (list + (list "BGCOLOR" "#FFFFFF") + (list "TEXT" "#000000"))) + + + + + + diff --git a/docsrc/releasenotes.xml b/docsrc/releasenotes.xml new file mode 100644 index 0000000..48a4a70 --- /dev/null +++ b/docsrc/releasenotes.xml @@ -0,0 +1,1047 @@ + + + + + OpenSP 1.5.2 + Release Notes + OpenJade Project + Release 1.5.2 + September 2005 + + 2002 + 2003 + 2005 + OpenJade Project + + + + OpenSP 1.5.2 Release Notes + + The OpenJade project provides a suite of tools and libraries for +validating, processing and applying DSSSL (Document Style Semantics and +Specification Language) style sheets to SGML and XML documents. + OpenJade is a project undertaken by the community to maintain and +extend James Clark's Jade, as well as the related SP suite of SGML/XML +processing tools. OpenJade and OpenSP are distributed under the same license +as Jade. + OpenSP is written in C++ and provides a class library, libosp, which +can be used as a basis for either open source or commerical projects. The +library can be built as either a dynamic or static library. + + Applications of OpenSP + The OpenSP library has been used in a number of projects. The +World Wide Web consortium on-line HTML and XHTML validator is based on the +OpenSP library. In addition to the OpenSP library a set of command line tools +are provided to support the validation and transformation of SGML files. In +particular onsgmls can validate both XML and SGML documents +held on a local file system or accessed remotely via a web server using the +HTTP protocol with standard URI notation; osx will convert +SGML to XML to allow a library of SGML documents to be processed with XML +tools. + + + Obtaining OpenSP + OpenSP is a project hosted at sourceforge.net and is available +from the OpenJade web site at http://openjade.sourceforge.net or directly from +the OpenJade project page at http://sourceforge.net/projects/openjade + OpenSP is provided in source code form. However, see for information on how to obtain pre-compiled +binary packages. + + Supported Platforms + OpenSP is intended to be as portable as possible. It should be +possible to compile and build on most contemporary UNIX type platforms. In +addition OpenSP should also build on Microsoft's Win32 based operating +systems. + + OpenSP is known to compile with both the GNU gcc c++ compiler and +Microsoft Visual C++. Other compilers have not been extensively tested. + OpenSP 1.5.2 should build with the GNU gcc c++ compiler from +version 2.95 up to version 4.0. + OpenSP has been built on a number of architectures including Intel +i386 and ia64, Alpha AXP, Sparc, PPC and S/390. + The following table details known successful builds + Platforms on which OpenSP +1.5 is known to build + + + + + + + + Arch. + OS + Compiler + Notes + + + + + alpha + Debian 3.1 + GNU gcc 4.0 + + + + arm + Debian 3.1 + GNU gcc 4.0 + + + + hppa + Debian 3.1 + GNU gcc 4.0 + + + + i386 + Debian 3.1 + GNU gcc 4.0 + + + + Red Hat Linux 7.3 + Red Hat gcc 2.96 + + + + Red Hat Linux 7.3 + GNU gcc 3.2 + + + + SuSE Linux 8.1 + GNU gcc 3.2 + + + + ia64 + Debian 3.1 + GNU gcc 4.0 + + + + m68k + Debian 3.1 + GNU gcc 4.0 + + + + mips, mipsel + Debian 3.1 + GNU gcc 4.0 + + + + powerpc + Debian 3.1 + GNU gcc 4.0 + + + + s390 + Debian 3.1 + GNU gcc 4.0 + + + + sparc + Debian 3.1 + GNU gcc 4.0 + + + + sparc + Solaris 8/SunOS 5.8 + GNU gcc 4.0 + + + + +
+ Please report any successful builds not mentioned above to +openjade-devel@lists.sourceforge.net, including any +diffs/patches you have used. +
+ Building OpenSP from Source + OpenSP requires 20Mb to 50Mb of disk space to build. An +installation will require around 10Mb to 20Mb depending on +architecture. + On UNIX platforms, OpenSP makes use of the GNU software +configuration tools (autoconf, libtool, automake etc). The GNU C++ compiler +and make utility should also be used. The steps required to build the OpenSP +tools (onsgmls, osgmlnorm, +ospam, ospcat, +ospent, osx) and libraries are as +follows: +gzip -d OpenSP-1.5.2.tar.gz | tar xvf - +cd OpenSP-1.5.2 +./configure +make You may need to switch to the super user +root to complete the installation +make install +The configure script supports many options. These +can be displayed using the command +./configure --help +In addition to the standard options, the following table describes options +specific to OpenSP. + OpenSP specific configure +options + + + + + + + Option + Default + Explanation + + + + + + No http support + Include support for http. This allows the OpenSP tools to +be used to validate or process SGML or XML documents directly from the World +Wide Web. Example: onsgmls -s http://www.example.com + + + + Not enabled + Provide one or more default catalog files or sysids, e.g. +/usr/local/lib/sgml/catalog + + + + Not enabled + Provide a default value for +SGML_SEARCH_PATH + + + + Not enabled + Include support for XML Formatted Messages + + + + Enabled + Do not build docs (man pages and release notes) + + + + Enabled + Do not include support for DTDDECL + + + +
+ Please refer to the system documentation for details on building +on the Win32 platform. +
+ Binary Distributions + In addition to binary packages availble from the project, OpenSP +has been a part of many software distributions, including the major Linux +distributions as well as FreeBSD. Expect pre-compiled and packaged versions of +the latest version of OpenSP to be available from your distributor in due +course. + + Installation + In addition to the OpenSP executables and libraries you will also +need various DTDs and declaration files. Some DTDs and associated files +(entity definitions) are available in the pubtext +directory of the distribution. However, more authoritative sources should be +referenced to ensure that up-to-date versions are used. If you wish to process +XML files, then suitable SGML declarations for valid XML documents should be +used. Again, a sample set of declarations (xml.dcl) is +provided in the pubtext, but more complete or recent +versions may be available from other sources. + OpenSP supports the standard SGML catalog facility; it is +recommended that you set up and use such a catalog system. + + + Support + If, after reading the documentation, you still have a problem, +then you may require some additional help. The OpenJade project is a volunteer +effort and as such does not provide any formal support. Instead, you should +look to the community for support. Once part of the community, you, in turn, +will be able to play your part in helping those that come after you. Here are +some pointers to obtaining help: + + + + If you obtained your OpenSP distribution in binary form from +your operating system distributor and you have a build related problem - such +as onsgmls crashing, then your first port of call should be +your distributor. + + + + If you have a problem with the usage of the OpenSP tools, then +you should try the openjade-users mailing list, see +http://sf.net/projects/openjade/ for details. + + + + If you have a patch or bug fix for OpenJade, or are trying to +use the OpenSP API then the openjade-devel mailing list is the appropriate +forum. + + + + + Please choose only one mailing list to post to, as cross-posting +is generally frowned upon. The various mailing lists are archived and +searchable. It is always worth searching for your problem first, as it is +often the case that someone has had the same problem before. + + + Version 1.5.2 + Released December 2005. + The release contains a number of enhancements together with +support for version 4.0 of the GNU C++ compiler. + + The following table details the major improvements in OpenSP +1.5.2 + Changes for release +1.5.2 + + + + + + Item 1 + Added doc building and config option + + + + + Contributors + Terje Bless, Neil Roeth + + + Category + Enhancement + + + Description + Enable creation of release notes and man pages as +part of the standard build process. Added option --disable-doc-build; this +step requires several additional software packages, so a user who chooses not +to install those tools or otherwise has problems building the docs can skip +this step. + + + + + + + + + Item 2 + Updated local gettext + + + + + Contributor + Terje Bless + + + Category + Enhancement + + + Description + A local gettext is provided for those platforms + that have an old or broken gettext. This has been updated to + version 0.14.5. + + + + + + + + + Item 3 + Added config option to turn off DTDDECL support + + + + + Contributor + Neil Roeth + + + Category + Enhancement + + + Description + Added option --disable-dtddecl to disable DTDDECL +support. The combination of DTDDECL support and enabling a default catalog +and default SGML search path can cause poor performance. Using this option +allows you to use a default catalog and search path and still get good +performance if DTDDECL support is not needed. + + + + + + + + + Item 4 + Updated/added translations + + + + + Contributor + Karl Eichwalder + + + Category + Enhancement + + + Description + Updated German and French translations, added +Turkish translation. + + + +
+
+ + Version 1.5.1 + Released October 2003. + The release contains a number of new features together with +support for version 3.3 for the GNU C++ compiler. + + The following table details the major improvements in OpenSP +1.5.1 + Changes for release +1.5.1 + + + + + + Item 1 + Runtime selection of message format + + + + + Contributor + Nick Kew + + + Category + Enhancement + + + Description + Enable run time selection of message format with +SP_MESSAGE_FORMAT environment variable. Value is one of +XML, NONE, +TRADITIONAL. + + + + + + + + + Item 2 + Support for HTTP redirection + + + + + Contributor + Nick Kew + + + Category + Enhancement + + + Description + When validating/parseing a document using http, +OpenSP will now follow any redirects headers/requests from the +server + + + + + + + + + Item 3 + Specification of http user agent header + + + + + Contributor + Nick Kew + + + Category + Enhancement + + + Description + The environment variable +SP_HTTP_USER_AGENT can be used to specify a UserAgent: +header. + + + + + + + + + Item 4 + Specification of http Accept: headers + + + + + Contributor + Nick Kew + + + Category + Enhancement + + + Description + The environment variable +SP_HTTP_ACCEPT can be used to specify Accept: +headers. + + + + + + + + + Item 5 + Enhancements to osx + + + + + Contributor + Jessica Perry Hekman + + + Category + Enhancement + + + Description + A number of enhancements have been made to the +osx tool: security fixes in the handling of output files; +addition of the "preserve case option". + + + + + + + + + Item 6 + Addition of a test suite + + + + + Contributor + Karl Eichwalder + + + Category + Enhancement + + + Description + A testing framework together with some initial +tests have been added. Currently there are 22 tests. 6 of which +fail. + + + + + + + + + Item 7 + Sundry build improvments + + + + + Contributor + Neil Roeth, Peter O'Gorman et al + + + Category + Enhancement/Fixes + + + Description + Support for Mac OS/X, Darwin has been improved. +Build infrastructure and localisation fixes and enhancements. Improved +compiler support + + + +
+
+ + Version 1.5 + Released November 2002. + In addition to many new features this version also supports the +latest GNU C++ compiler: gcc 3.2 at the time of writing. + + The following table details the major improvements in OpenSP +1.5 + + Changes for release +1.5.1 + + + + + + Item 1 + "--restricted" option + + + + + Contributor + Liam Quinn + + + Category + Security Enhancement + + + Description + This new option restricts parsing of web based +documents to local files. This can be classed as a security fix and is +especially useful when using OpenSP within a CGI (Common Gateway Interface) +application on a web server. + + + + + + + + + Item 2 + UNIX on-line manual pages + + + + + Contributor + Ian Castle + + + Category + Documentation Bug + + + Description + on-line manual (man) pages for the commands +included in the OpenSP package are now available for UNIX +platforms + + + + + + + + + Item 3 + Upgrade GNU source configuration tools + + + + + Contributor + Various + + + Category + Software Bug + + + Description + If you wish to create the various autoconf files +then newer versions are required (autoconf 2.52 and later). As a result of the +upgrades more platforms are potentially supported. + + + + + + + + + Item 4 + "-x" option to osx and other +enhancements + + + + + Contributor + Jessica Hekman + + + Category + Software Enhancement + + + Description + The "-x" command line option enables SDATA entities +to be transformed into PIs or treated like normal entities (the +default). + + + + + + + + + Item 5 + New Translations + + + + + Contributors + Various + + + Category + Documentation Bug + + + Description + New and updated translations are available for +"ja", "fr", "de" and "sv" languages. + + + + + + + + + + Item 6 + Enhanced Message Handling + + + + + Contributor + Epremis Corporation (Peter Newcomb) + + + Category + Software Enhancement + + + Description + Improvement in message handling within the library. +This allows Windows (Win32) applications which make use of the OpenSP DLL to +include other DLLs which can also make use of the message handling +facility. + + + + + + + + + Item 7 + Error Messages formatted as XML + + + + + Contributor + Nick Kew + + + Category + Software Enhancement + + + Description + A build time option to allow error messages to be +output in XML format as opposed to plain old ASCII. Specify with the +./configure option --enable-xml-messages + + + + + + + + + Item 8 + New syntax for PI based architecture +declarations + + + + + Contributor + Epremis Corporation (Peter Newcomb) + + + Category + Software Enhancement + + + Description + Added support for the PI-based architecture using +declaration syntax defined by Amendment 1 to ISO/IEC 10744:1997 (HyTime). This +makes it possible to specify architectural support attributes when using +architectures with XML, and is generally simpler than the original syntax. See +http://www.ornl.gov/sgml/wg8/document/1985.htm for details. + + + + + + + + + Item 9 + Support name based virtual hosts when parsing a +URI + + + + + Contributor + Liam Quinn (and others) + + + Category + Software Enhancement + + + Description + Adds an HTTP/1.0 host header to HTTP requests. This +makes it possible to parse and fetch DTDs specified in SYSTEM identifiers when +the DTD resides on a name-based "Virutal Host". + + + + + + + + + Item 10 + 64 Bit Platform Support + + + + + Category + Software Enhancements + + + Description + Remove 32-bit assumptions so that 64 bit platforms +such as Alpha, IA64, UltraSparc are supported. + + + + + + + + + Item 11 + New output options: comment, omitted, tagomit, +attromit + + + + + Contributor + Robert Braddock + + + Category + Software Enhancement + + + Description + Support for new output options: this allows +comments and implied elements and/or attributes to be produced. + + + + + + + + + Item 12 + Enhanced Support for Annex K of ISO 8879 + + + + + Category + Software Enhancement + + + Description + More of Annex K is now supported. Common data +attributes can now be specified in external entity +declarations. + + + + + + + + + Item 13 + Support for GCC 3.2 + + + + + Category + Software Enhancement + + + Description + GCC 3.2 is now supported. + + + + + + + + + Item 14 + Enhance Unicode support + + + + + Category + Software Enhancement + + + Description + The multibyte version of OpenSP now uses 32 bit +characters and supports the full UTF-16 range 0x000000-0x10ffff + + + +
+
+ + Version 1.4 + Released February 2000 + Version 1.4 added many improvements. Changes +included: + + + + Support for the koi8-r (RFC 1489) encoding. + + + + OpenSP now supports long (GNU Style) command line +options. + + + + OpenSP is internationalized + + + + New option -h or --help shows a list of all available options +with descriptions. + + + + New option -n and -x to see message numbers/relevant clauses +with messages. + + + + More of Annex K of ISO 8879 supported: SGML declarations on +subdocs, DATA declared value for attribures, DTD data entities and DTD +notations for doctypes, complete IMPLYDEF support, ENTITIES REF constraints, +URN parsing. Many new -w flags. + + + + DTDDECL support + + + + New spcat command line interface to the catalog +manager. + + + + Version 1.3.4 + Released October 1999 + The second release from the OpenJade project. This version was +distributed as part of OpenJade 1.3 + + + Changes in OpenJade 1.3.4 + + + + +Added the Entity classes to the public interface of the library/DLL. + + + + + + Version 1.3.3 + The first release from the OpenJade project + +
+
diff --git a/generic/.cvsignore b/generic/.cvsignore new file mode 100644 index 0000000..282522d --- /dev/null +++ b/generic/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/generic/EventGenerator.h b/generic/EventGenerator.h new file mode 100644 index 0000000..49f8b17 --- /dev/null +++ b/generic/EventGenerator.h @@ -0,0 +1,29 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef EventGenerator_INCLUDED +#define EventGenerator_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "SGMLApplication.h" + +class SP_API EventGenerator { +public: + virtual ~EventGenerator(); + // Can be called at most once for any object. + // Returns number of errors. + virtual unsigned run(SGMLApplication &) = 0; + // may be called at any time + virtual void inhibitMessages(bool); + // may be called at any time, even from another thread + virtual void halt() = 0; + // called after run + virtual EventGenerator * + makeSubdocEventGenerator(const SGMLApplication::Char *systemId, + size_t systemIdLength); +}; + +#endif /* not EventGenerator_INCLUDED */ diff --git a/generic/Makefile.am b/generic/Makefile.am new file mode 100644 index 0000000..df42690 --- /dev/null +++ b/generic/Makefile.am @@ -0,0 +1,8 @@ +## Process this file with automake to produce Makefile.in + +pkginclude_HEADERS = ParserEventGeneratorKit.h EventGenerator.h \ + SGMLApplication.h + +EXTRA_DIST = .cvsignore + +MAINTAINERCLEANFILES = Makefile.in diff --git a/generic/Makefile.in b/generic/Makefile.in new file mode 100644 index 0000000..670c4ad --- /dev/null +++ b/generic/Makefile.in @@ -0,0 +1,453 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = generic +DIST_COMMON = $(pkginclude_HEADERS) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pkgincludedir)" +pkgincludeHEADERS_INSTALL = $(INSTALL_HEADER) +HEADERS = $(pkginclude_HEADERS) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +pkginclude_HEADERS = ParserEventGeneratorKit.h EventGenerator.h \ + SGMLApplication.h + +EXTRA_DIST = .cvsignore +MAINTAINERCLEANFILES = Makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu generic/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu generic/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +install-pkgincludeHEADERS: $(pkginclude_HEADERS) + @$(NORMAL_INSTALL) + test -z "$(pkgincludedir)" || $(mkdir_p) "$(DESTDIR)$(pkgincludedir)" + @list='$(pkginclude_HEADERS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(pkgincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgincludedir)/$$f'"; \ + $(pkgincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgincludedir)/$$f"; \ + done + +uninstall-pkgincludeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(pkginclude_HEADERS)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pkgincludedir)/$$f'"; \ + rm -f "$(DESTDIR)$(pkgincludedir)/$$f"; \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(HEADERS) +installdirs: + for dir in "$(DESTDIR)$(pkgincludedir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-libtool \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pkgincludeHEADERS + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-pkgincludeHEADERS + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool ctags distclean distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-exec install-exec-am install-info \ + install-info-am install-man install-pkgincludeHEADERS \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-info-am \ + uninstall-pkgincludeHEADERS + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/generic/ParserEventGeneratorKit.h b/generic/ParserEventGeneratorKit.h new file mode 100644 index 0000000..c85b52b --- /dev/null +++ b/generic/ParserEventGeneratorKit.h @@ -0,0 +1,54 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef ParserEventGeneratorKit_INCLUDED +#define ParserEventGeneratorKit_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "EventGenerator.h" + +class ParserEventGeneratorKitImpl; + +class SP_API ParserEventGeneratorKit { +public: + ParserEventGeneratorKit(); + ~ParserEventGeneratorKit(); + enum Option { + showOpenEntities, + showOpenElements, + outputCommentDecls, + outputMarkedSections, + outputGeneralEntities, + mapCatalogDocument, + restrictFileReading, + showErrorNumbers + }; + enum OptionWithArg { + addCatalog, + includeParam, + enableWarning, + addSearchDir, + activateLink, + architecture // not implemented + }; + void setOption(Option); +#ifdef SP_WIDE_SYSTEM + void setProgramName(const wchar_t *); + void setOption(OptionWithArg, const wchar_t *); + EventGenerator *makeEventGenerator(int nFiles, wchar_t *const *files); +#else + void setProgramName(const char *); + void setOption(OptionWithArg, const char *); + EventGenerator *makeEventGenerator(int nFiles, char *const *files); +#endif +private: + ParserEventGeneratorKit(const ParserEventGeneratorKit &); // undefined + void operator=(const ParserEventGeneratorKit &); // undefined + + ParserEventGeneratorKitImpl *impl_; +}; + +#endif /* not ParserEventGeneratorKit_INCLUDED */ diff --git a/generic/SGMLApplication.h b/generic/SGMLApplication.h new file mode 100644 index 0000000..b7fb6ca --- /dev/null +++ b/generic/SGMLApplication.h @@ -0,0 +1,313 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef SGMLApplication_INCLUDED +#define SGMLApplication_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include +#include + +#ifndef SP_API +#define SP_API /* as nothing */ +#endif + +class SP_API SGMLApplication { +public: +#ifdef SP_MULTI_BYTE +#if UINT_MAX >= 0xffffffffL /* 2^32 - 1 */ + typedef unsigned int Char; +#else + typedef unsigned long Char; +#endif +#else + typedef unsigned char Char; +#endif + // A Position represents a position in an OpenEntity. + // The meaning of a Position depends on the + // particular implementation of OpenEntity. + // It might be a line number or it might be + // an offset in the entity. The only thing + // that can be done with Position is to use + // it with an OpenEntityPtr to get a Location. + typedef unsigned long Position; + struct CharString { + const Char *ptr; + size_t len; + }; + struct ExternalId { + bool haveSystemId; + bool havePublicId; + bool haveGeneratedSystemId; + CharString systemId; // valid only if haveSystemId is true + CharString publicId; // valid only if havePublicId is true + CharString generatedSystemId; // valid if haveGeneratedSystemId is true + }; + struct Notation { + CharString name; + ExternalId externalId; + }; + struct Attribute; + struct Entity { + CharString name; + enum DataType { sgml, cdata, sdata, ndata, subdoc, pi }; + enum DeclType { general, parameter, doctype, linktype }; + DataType dataType; + DeclType declType; + bool isInternal; + // Following valid if isInternal is true + CharString text; + // Following valid if isInternal is false + ExternalId externalId; + size_t nAttributes; + const Attribute *attributes; + Notation notation; + }; + struct Attribute { + CharString name; + enum Type { + invalid, + implied, + cdata, + tokenized + }; + Type type; + enum Defaulted { + specified, // not defaulted + definition, // defaulted from definition + current // defaulted from current value + }; + Defaulted defaulted; // non-ESIS; valid only if type != implied + struct CdataChunk { + bool isSdata; + // This rather awkward representation of non-SGML characters was chosen + // for backwards compatibility. + bool isNonSgml; // valid only if !isSdata + Char nonSgmlChar; // valid only if isNonSgml + CharString data; // always valid; empty if isNonSgml + CharString entityName; // non-ESIS; optional for SDATA chunks + }; + // Following valid if type == cdata + size_t nCdataChunks; + const CdataChunk *cdataChunks; // valid if type == cdata + // Following valid if type == tokenized + CharString tokens; // separated by spaces + bool isId; // non-ESIS (probably) + bool isGroup; // non-ESIS + size_t nEntities; + const Entity *entities; + // length of notation.name will be 0 if no notation + Notation notation; + }; + struct PiEvent { + Position pos; + CharString data; + CharString entityName; // non-ESIS; optional for PI entities + }; + struct StartElementEvent { + Position pos; + enum ContentType { + empty, // declared EMPTY or with CONREF attribute + cdata, + rcdata, + mixed, + element + }; + CharString gi; + ContentType contentType; // non-ESIS + bool included; // non-ESIS + size_t nAttributes; + const Attribute *attributes; + }; + + struct EndElementEvent { + Position pos; + CharString gi; + }; + struct DataEvent { + Position pos; + CharString data; + }; + struct SdataEvent { + Position pos; + CharString text; + CharString entityName; // non-ESIS; optional + }; + struct ExternalDataEntityRefEvent { + Position pos; + Entity entity; + }; + struct SubdocEntityRefEvent { + Position pos; + Entity entity; + }; + struct NonSgmlCharEvent { + Position pos; + Char c; + }; + struct ErrorEvent { + Position pos; + enum Type { + info, // not an error + warning, // not an error + quantity, + idref, + capacity, + otherError + }; + Type type; + CharString message; + }; + struct AppinfoEvent { + Position pos; + bool none; + CharString string; + }; + struct StartDtdEvent { + Position pos; + CharString name; + bool haveExternalId; + ExternalId externalId; + }; + struct EndDtdEvent { + Position pos; + CharString name; + }; + struct EndPrologEvent { + Position pos; + }; + // non-ESIS + struct GeneralEntityEvent { + // no position + Entity entity; + }; + // non-ESIS + struct CommentDeclEvent { + Position pos; + size_t nComments; + const CharString *comments; + const CharString *seps; + }; + // non-ESIS + struct MarkedSectionStartEvent { + Position pos; + enum Status { + include, + rcdata, + cdata, + ignore + }; + Status status; + struct Param { + enum Type { + temp, + include, + rcdata, + cdata, + ignore, + entityRef + }; + Type type; + CharString entityName; + }; + size_t nParams; + const Param *params; + }; + // non-ESIS + struct MarkedSectionEndEvent { + Position pos; + enum Status { + include, + rcdata, + cdata, + ignore + }; + Status status; + }; + struct IgnoredCharsEvent { + Position pos; + CharString data; + }; + class OpenEntityPtr; + struct SP_API Location { + Location(); + Location(const OpenEntityPtr &, Position); + void init(); + + unsigned long lineNumber; + unsigned long columnNumber; + unsigned long byteOffset; + unsigned long entityOffset; + CharString entityName; + CharString filename; + const void *other; + }; + class OpenEntity; + class SP_API OpenEntityPtr { + public: + OpenEntityPtr(); + OpenEntityPtr(const OpenEntityPtr &); + void operator=(const OpenEntityPtr &); + void operator=(OpenEntity *); + ~OpenEntityPtr(); + const OpenEntity *operator->() const; + operator int() const; + private: + OpenEntity *ptr_; + }; + class SP_API OpenEntity { + public: + OpenEntity(); + virtual ~OpenEntity(); + virtual Location location(Position) const = 0; + private: + OpenEntity(const OpenEntity &); // undefined + void operator=(const OpenEntity &); // undefined + unsigned count_; + friend class OpenEntityPtr; + }; + virtual ~SGMLApplication(); + virtual void appinfo(const AppinfoEvent &); + virtual void startDtd(const StartDtdEvent &); + virtual void endDtd(const EndDtdEvent &); + virtual void endProlog(const EndPrologEvent &); + virtual void startElement(const StartElementEvent &); + virtual void endElement(const EndElementEvent &); + virtual void data(const DataEvent &); + virtual void sdata(const SdataEvent &); + virtual void pi(const PiEvent &); + virtual void externalDataEntityRef(const ExternalDataEntityRefEvent &); + virtual void subdocEntityRef(const SubdocEntityRefEvent &); + virtual void nonSgmlChar(const NonSgmlCharEvent &); + virtual void commentDecl(const CommentDeclEvent &); + virtual void markedSectionStart(const MarkedSectionStartEvent &); + virtual void markedSectionEnd(const MarkedSectionEndEvent &); + virtual void ignoredChars(const IgnoredCharsEvent &); + virtual void generalEntity(const GeneralEntityEvent &); + virtual void error(const ErrorEvent &); + virtual void openEntityChange(const OpenEntityPtr &); +}; + +inline +const SGMLApplication::OpenEntity * +SGMLApplication::OpenEntityPtr::operator->() const +{ + return ptr_; +} + +inline +void SGMLApplication::OpenEntityPtr::operator=(const OpenEntityPtr &ptr) +{ + *this = ptr.ptr_; +} + +inline +SGMLApplication::OpenEntityPtr::operator int() const +{ + return ptr_ != 0; +} + +#endif /* not SGMLApplication_INCLUDED */ diff --git a/include/.cvsignore b/include/.cvsignore new file mode 100644 index 0000000..282522d --- /dev/null +++ b/include/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/include/Allocator.h b/include/Allocator.h new file mode 100644 index 0000000..adcef08 --- /dev/null +++ b/include/Allocator.h @@ -0,0 +1,67 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Allocator_INCLUDED +#define Allocator_INCLUDED 1 + +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API Allocator { +public: + Allocator(size_t maxSize, unsigned blocksPerSegment); + ~Allocator(); + void *alloc(size_t); + static void *allocSimple(size_t); + static void free(void *); + + // It would be nice to make these private, but some compilers have problems. + union ForceAlign { + unsigned long n; + struct SP_API { + char c; + } s; + char *cp; + long *lp; + }; + struct SegmentHeader; + union BlockHeader; + friend union BlockHeader; + union BlockHeader { + SegmentHeader *seg; + ForceAlign align; + }; + struct Block; + friend struct Block; + struct SP_API Block { + BlockHeader header; + Block *next; + }; + friend struct SegmentHeader; + struct SP_API SegmentHeader { + union { + Block **freeList; + ForceAlign align; + }; + unsigned liveCount; + SegmentHeader *next; + }; +private: + Allocator(const Allocator &); // undefined + Allocator &operator=(const Allocator &); // undefined + Block *freeList_; + size_t objectSize_; + unsigned blocksPerSegment_; + SegmentHeader *segments_; + void *alloc1(); + void tooBig(size_t); +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Allocator_INCLUDED */ diff --git a/include/ArcEngine.h b/include/ArcEngine.h new file mode 100644 index 0000000..716fcae --- /dev/null +++ b/include/ArcEngine.h @@ -0,0 +1,57 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef ArcEngine_INCLUDED +#define ArcEngine_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Event.h" +#include "Vector.h" +#include "SgmlParser.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API ArcDirector { +public: + virtual EventHandler *arcEventHandler(const StringC *arcPublicId, + const Notation *, + const Vector &, + const SubstTable *) = 0; +}; + +class SP_API SelectOneArcDirector : public ArcDirector, public Messenger { +public: + SelectOneArcDirector(const Vector &select, EventHandler &eh) + : select_(select), eh_(&eh) { } + EventHandler *arcEventHandler(const StringC *, + const Notation *, + const Vector &, + const SubstTable *); + void dispatchMessage(const Message &); + void dispatchMessage(Message &); +private: + Vector select_; + EventHandler *eh_; +}; + +class SP_API ArcEngine { +public: + static void parseAll(SgmlParser &, + Messenger &, + ArcDirector &, + const volatile sig_atomic_t *cancelPtr = 0); +private: + ArcEngine(); +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ArcEngine_INCLUDED */ diff --git a/include/Attribute.h b/include/Attribute.h new file mode 100644 index 0000000..1c4b261 --- /dev/null +++ b/include/Attribute.h @@ -0,0 +1,980 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Attribute_INCLUDED +#define Attribute_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include +#include "Resource.h" +#include "Owner.h" +#include "StringC.h" +#include "Vector.h" +#include "CopyOwner.h" +#include "Boolean.h" +#include "Text.h" +#include "Ptr.h" +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Entity; +class Notation; +class DeclaredValue; +class AttributeValue; +class TokenizedAttributeValue; +class AttributeSemantics; +class AttributeContext; +class Syntax; + + class SP_API AttributeValue : public Resource { + public: + enum Type { + implied, + cdata, + tokenized + }; + AttributeValue(); + virtual ~AttributeValue(); + virtual AttributeSemantics *makeSemantics(const DeclaredValue *, + AttributeContext &, + const StringC &, + unsigned &, + unsigned &) const; + virtual Type info(const Text *&, const StringC *&) const = 0; + virtual const Text *text() const; + virtual Boolean recoverUnquoted(const StringC &, const Location &, + AttributeContext &, const StringC &); + static Boolean handleAsUnterminated(const Text &, AttributeContext &); + }; + +class SP_API AttributeDefinitionDesc { +public: + AttributeDefinitionDesc() { } + enum DeclaredValue { + cdata, + name, + number, + nmtoken, + nutoken, + entity, + idref, + names, + numbers, + nmtokens, + nutokens, + entities, + idrefs, + id, + notation, + nameTokenGroup + }; + DeclaredValue declaredValue; + enum DefaultValueType { + required, + current, + implied, + conref, + defaulted, + fixed + }; + DefaultValueType defaultValueType; + ConstPtr defaultValue; + Vector allowedValues; + Vector origAllowedValues; + // Attribute definitions whose default value type is current and + // which have the same currentIndex share current values. + size_t currentIndex; +private: + AttributeDefinitionDesc(const AttributeDefinitionDesc &); // undefined + void operator=(const AttributeDefinitionDesc &); // undefined +}; + +class DeclaredValue { +public: + DeclaredValue(); + virtual ~DeclaredValue(); + // This performs syntactic checking on the value. + virtual AttributeValue *makeValue(Text &, AttributeContext &, + const StringC &name, + unsigned &specLength) const = 0; + // This is used to avoid unnecessary syntactic checking in the + // case where the attribute name and vi have been omitted. + virtual AttributeValue *makeValueFromToken(Text &, + AttributeContext &, + const StringC &name, + unsigned &specLength) const; + // This performs semantic checking on the value. + virtual AttributeSemantics *makeSemantics(const TokenizedAttributeValue &, + AttributeContext &, + const StringC &, + unsigned &nIdrefs, + unsigned &nEntityNames) const; + virtual Boolean containsToken(const StringC &) const; + virtual Boolean tokenized() const = 0; + virtual Boolean isNotation() const; + virtual Boolean isEntity() const; + virtual Boolean isId() const; + virtual Boolean isIdref() const; + virtual const Vector *getTokens() const; + virtual const Vector *getOrigTokens() const; + virtual void buildDesc(AttributeDefinitionDesc &) const = 0; + virtual DeclaredValue *copy() const = 0; +}; + +class CdataDeclaredValue : public DeclaredValue { +public: + CdataDeclaredValue(); + Boolean tokenized() const; + AttributeValue *makeValue(Text &, AttributeContext &, const StringC &, + unsigned &) const; + void buildDesc(AttributeDefinitionDesc &) const; + DeclaredValue *copy() const; +protected: + void checkNormalizedLength(Text &, AttributeContext &, unsigned &) const; +}; + + +class TokenizedDeclaredValue : public DeclaredValue { +public: + // must be in same order as AttributeDefinitionDesc + enum TokenType { + name, + number, + nameToken, + numberToken, + entityName + }; + TokenizedDeclaredValue(TokenType type, Boolean isList); + AttributeValue *makeValue(Text &, AttributeContext &, const StringC &, + unsigned &) const; + TokenizedAttributeValue *makeTokenizedValue(Text &, AttributeContext &, + const StringC &, unsigned &) const; + Boolean tokenized() const; + void buildDesc(AttributeDefinitionDesc &) const; + DeclaredValue *copy() const; +private: + TokenType type_; + Boolean isList_; + unsigned initialCategories_; + unsigned subsequentCategories_; +}; + +class GroupDeclaredValue : public TokenizedDeclaredValue { +public: + GroupDeclaredValue(TokenType, Vector &); + Boolean containsToken(const StringC &) const; + AttributeValue *makeValue(Text &, AttributeContext &, const StringC &, + unsigned &) const; + AttributeValue *makeValueFromToken(Text &, + AttributeContext &, + const StringC &name, + unsigned &) const; + const Vector *getTokens() const; + const Vector *getOrigTokens() const; + void buildDesc(AttributeDefinitionDesc &) const; + DeclaredValue *copy() const; + void setOrigAllowedValues(Vector &origAllowedValues); + +private: + Vector allowedValues_; + Vector origAllowedValues_; +}; + +class NameTokenGroupDeclaredValue : public GroupDeclaredValue { +public: + NameTokenGroupDeclaredValue(Vector &); + void buildDesc(AttributeDefinitionDesc &) const; + DeclaredValue *copy() const; +}; + +class NotationDeclaredValue : public GroupDeclaredValue { +public: + NotationDeclaredValue(Vector &); + AttributeSemantics *makeSemantics(const TokenizedAttributeValue &, + AttributeContext &, + const StringC &, + unsigned &nIdrefs, + unsigned &nEntityNames) const; + Boolean isNotation() const; + void buildDesc(AttributeDefinitionDesc &) const; + DeclaredValue *copy() const; +}; + +class EntityDeclaredValue : public TokenizedDeclaredValue { +public: + EntityDeclaredValue(Boolean isList); + AttributeSemantics *makeSemantics(const TokenizedAttributeValue &, + AttributeContext &, + const StringC &, + unsigned &nIdrefs, + unsigned &nEntityNames) const; + Boolean isEntity() const; + DeclaredValue *copy() const; +}; + +class IdDeclaredValue : public TokenizedDeclaredValue { +public: + IdDeclaredValue(); + AttributeSemantics *makeSemantics(const TokenizedAttributeValue &, + AttributeContext &, + const StringC &, + unsigned &nIdrefs, + unsigned &nEntityNames) const; + Boolean isId() const; + void buildDesc(AttributeDefinitionDesc &) const; + DeclaredValue *copy() const; +}; + +class IdrefDeclaredValue : public TokenizedDeclaredValue { +public: + IdrefDeclaredValue(Boolean isList); + AttributeSemantics *makeSemantics(const TokenizedAttributeValue &, + AttributeContext &, + const StringC &, + unsigned &nIdrefs, + unsigned &nEntityNames) const; + Boolean isIdref() const; + void buildDesc(AttributeDefinitionDesc &) const; + DeclaredValue *copy() const; +}; + +class SP_API AttributeDefinition { +public: + AttributeDefinition(const StringC &, DeclaredValue *); + virtual ~AttributeDefinition(); + virtual ConstPtr + makeMissingValue(AttributeContext &) const = 0; + virtual Boolean missingValueWouldMatch(const Text &, + const AttributeContext &) const; + virtual const AttributeValue * + defaultValue(const AttributeValue *impliedValue) const; + AttributeValue *makeValue(Text &, AttributeContext &, unsigned &) const; + AttributeValue *makeValueFromToken(Text &, + AttributeContext &, + unsigned &) const; + + virtual Boolean isConref() const; + virtual Boolean isCurrent() const; + virtual Boolean isFixed() const; + AttributeSemantics *makeSemantics(const AttributeValue *, + AttributeContext &, + unsigned &nIdrefs, + unsigned &nEntityNames) const; + Boolean tokenized() const; + const StringC &name() const; + const StringC &origName() const; + Boolean containsToken(const StringC &) const; + Boolean isNotation() const; + Boolean isEntity() const; + Boolean isId() const; + Boolean isIdref() const; + void getDesc(AttributeDefinitionDesc &) const; + const Vector *getTokens() const; + const Vector *getOrigTokens() const; + virtual AttributeDefinition *copy() const = 0; + void setDeclaredValue(DeclaredValue *); + void setSpecified(Boolean implicit); + Boolean isSpecified(Boolean &implicit); + void setOrigName(StringC &origName); +private: + virtual void buildDesc(AttributeDefinitionDesc &) const = 0; + virtual AttributeValue *checkValue(AttributeValue *, AttributeContext &) const; + PackedBoolean implicit_; + PackedBoolean all_; + StringC name_; + StringC origName_; + CopyOwner declaredValue_; +}; + +class RequiredAttributeDefinition : public AttributeDefinition { +public: + RequiredAttributeDefinition(const StringC &, DeclaredValue *); + ConstPtr makeMissingValue(AttributeContext &) const; + void buildDesc(AttributeDefinitionDesc &) const; + AttributeDefinition *copy() const; +}; + +class CurrentAttributeDefinition : public AttributeDefinition { +public: + CurrentAttributeDefinition(const StringC &, DeclaredValue *, size_t index); + ConstPtr makeMissingValue(AttributeContext &) const; + Boolean missingValueWouldMatch(const Text &, const AttributeContext &) const; + AttributeValue *checkValue(AttributeValue *, AttributeContext &) const; + void buildDesc(AttributeDefinitionDesc &) const; + Boolean isCurrent() const; + AttributeDefinition *copy() const; +private: + size_t currentIndex_; +}; + +class ImpliedAttributeDefinition : public AttributeDefinition { +public: + ImpliedAttributeDefinition(const StringC &, DeclaredValue *); + ConstPtr makeMissingValue(AttributeContext &) const; + const AttributeValue *defaultValue(const AttributeValue *) const; + void buildDesc(AttributeDefinitionDesc &) const; + AttributeDefinition *copy() const; +}; + +class ConrefAttributeDefinition : public ImpliedAttributeDefinition { +public: + ConrefAttributeDefinition(const StringC &, DeclaredValue *); + Boolean isConref() const; + void buildDesc(AttributeDefinitionDesc &) const; + AttributeDefinition *copy() const; +}; + +class DefaultAttributeDefinition : public AttributeDefinition { +public: + DefaultAttributeDefinition(const StringC &, DeclaredValue *, + AttributeValue *); + ConstPtr makeMissingValue(AttributeContext &) const; + Boolean missingValueWouldMatch(const Text &, const AttributeContext &) const; + void buildDesc(AttributeDefinitionDesc &) const; + AttributeDefinition *copy() const; + const AttributeValue *defaultValue(const AttributeValue *) const; +private: + ConstPtr value_; +}; + +class FixedAttributeDefinition : public DefaultAttributeDefinition { +public: + FixedAttributeDefinition(const StringC &, DeclaredValue *, + AttributeValue *); + // check that it's equal to the default + AttributeValue *checkValue(AttributeValue *, AttributeContext &) const; + void buildDesc(AttributeDefinitionDesc &) const; + Boolean isFixed() const; + AttributeDefinition *copy() const; +}; + +class SP_API AttributeDefinitionList : public Resource { +public: + AttributeDefinitionList(Vector > &, + size_t listIndex, + Boolean anyCurrent = 0, + size_t idIndex = size_t(-1), + size_t notationIndex = size_t(-1)); + AttributeDefinitionList(const ConstPtr &); + ~AttributeDefinitionList(); + size_t size() const; + AttributeDefinition *def(size_t); + const AttributeDefinition *def(size_t) const; + Boolean tokenIndex(const StringC &, unsigned &) const; + Boolean tokenIndexUnique(const StringC &, unsigned) const; + Boolean attributeIndex(const StringC &, unsigned &) const; + size_t index() const; + size_t idIndex() const; + size_t notationIndex() const; + Boolean anyCurrent() const; + void setIndex(size_t); + void append(AttributeDefinition *); +private: + Vector > defs_; + size_t index_; + size_t idIndex_; // -1 if no ID attribute + size_t notationIndex_; // -1 if no notation attribute + Boolean anyCurrent_; + ConstPtr prev_; +}; + +class AttributeSemantics { +public: + AttributeSemantics(); + virtual ~AttributeSemantics(); + virtual size_t nEntities() const; + virtual ConstPtr entity(size_t) const; + virtual ConstPtr notation() const; + virtual AttributeSemantics *copy() const = 0; +}; + +class EntityAttributeSemantics : public AttributeSemantics { +public: + EntityAttributeSemantics(Vector > &); + size_t nEntities() const; + ConstPtr entity(size_t) const; + AttributeSemantics *copy() const; +private: + Vector > entity_; +}; + +class NotationAttributeSemantics : public AttributeSemantics { +public: + NotationAttributeSemantics(const ConstPtr &); + ConstPtr notation() const; + AttributeSemantics *copy() const; +private: + ConstPtr notation_; +}; + +class SP_API ImpliedAttributeValue : public AttributeValue { +public: + ImpliedAttributeValue(); + Type info(const Text *&, const StringC *&) const; +}; + +class CdataAttributeValue : public AttributeValue { +public: + CdataAttributeValue(Text &); + Type info(const Text *&, const StringC *&) const; + const Text *text() const; + Boolean recoverUnquoted(const StringC &, const Location &, + AttributeContext &, const StringC &); + virtual const Notation *notation() const; +private: + Text text_; +}; + + +class TokenizedAttributeValue : public AttributeValue { +public: + TokenizedAttributeValue(Text &, const Vector &); + size_t nTokens() const; + AttributeSemantics *makeSemantics(const DeclaredValue *, + AttributeContext &, + const StringC &, + unsigned &, + unsigned &) const; + Type info(const Text *&, const StringC *&) const; + const Text *text() const; + const StringC &string() const; + StringC token(size_t) const; + void token(size_t, const Char *&, size_t &) const; + Location tokenLocation(size_t) const; + Boolean tokenLocation(size_t, const ConstPtr *&, Index &) const; + Boolean recoverUnquoted(const StringC &, const Location &, + AttributeContext &, const StringC &); +private: + TokenizedAttributeValue(const TokenizedAttributeValue &); // undefined + void operator=(const TokenizedAttributeValue &); // undefined + Text text_; + // index into value of each space + // length is number of tokens - 1 + Vector spaceIndex_; +}; + +class SP_API Attribute { +public: + Attribute(); + Attribute(const Attribute&); + ~Attribute(); + Attribute& operator=(const Attribute&); + Boolean specified() const; + size_t specIndex() const; + const AttributeValue *value() const; + const ConstPtr &valuePointer() const; + const AttributeSemantics *semantics() const; + void setSpec(size_t); + void setValue(const ConstPtr &); + void setSemantics(AttributeSemantics *); + void clear(); +private: + size_t specIndexPlus_; + ConstPtr value_; + CopyOwner semantics_; +}; + +class SP_API AttributeList { +public: + AttributeList(); + AttributeList(const ConstPtr &); + inline ~AttributeList() {} + void init(const ConstPtr &); + // was a conref attribute specified? + Boolean conref() const; + size_t size() const; + const StringC &name(unsigned) const; + const AttributeValue *value(unsigned) const; + size_t specIndex(size_t) const; + const ConstPtr &valuePointer(unsigned) const; + const AttributeSemantics *semantics(unsigned) const; + Boolean tokenized(unsigned index) const; + Boolean tokenIndex(const StringC &, unsigned &) const; + Boolean tokenIndexUnique(const StringC &, unsigned) const; + Boolean attributeIndex(const StringC &, unsigned &) const; + void finish(AttributeContext &); + Boolean setValue(unsigned index, Text &, AttributeContext &, + unsigned &specLength); + void setValueToken(unsigned index, Text &, AttributeContext &, + unsigned &specLength); + void setSpec(unsigned index, AttributeContext &); + Boolean recoverUnquoted(const StringC &, const Location &, + AttributeContext &); + Boolean handleAsUnterminated(AttributeContext &context); + void swap(AttributeList &); + size_t nSpec() const; + size_t defIndex() const; + // is the attribute #current + Boolean current(unsigned) const; + Boolean anyCurrent() const; + Boolean specified(unsigned) const; + Boolean id(unsigned) const; + Boolean idref(unsigned) const; + const Vector *getAllowedTokens(unsigned) const; + const StringC *getId() const; // null if none + Boolean idIndex(unsigned &) const; + void noteInvalidSpec(); + void changeDef(const ConstPtr &); + const ConstPtr &def() const; +private: + const AttributeDefinition *def(size_t) const; + PackedBoolean conref_; + unsigned nIdrefs_; + unsigned nEntityNames_; + size_t nSpec_; + Vector vec_; + ConstPtr def_; +}; + +class DataDeclaredValue : public CdataDeclaredValue { +public: + DataDeclaredValue(const ConstPtr &, AttributeList &); + AttributeValue *makeValue(Text &, AttributeContext &, const StringC &, + unsigned &) const; + DeclaredValue *copy() const; +private: + ConstPtr notation_; + AttributeList attributes_; +}; + +class SP_API DataAttributeValue : public CdataAttributeValue { +public: + DataAttributeValue(Text &, const ConstPtr &, const AttributeList &); + const AttributeList &attributes() const; + const Notation *notation() const; +private: + const ConstPtr notation_; + const AttributeList *attributes_; +}; + +class SP_API AttributeContext : public Messenger { +public: + AttributeContext(); + virtual ~AttributeContext(); + virtual Boolean defineId(const StringC &, const Location &, Location &); + virtual void noteIdref(const StringC &, const Location &); + virtual void noteCurrentAttribute(size_t, AttributeValue *); + virtual ConstPtr getCurrentAttribute(size_t) const; + virtual ConstPtr getAttributeEntity(const StringC &, + const Location &); + virtual ConstPtr getAttributeNotation(const StringC &, + const Location &); + virtual const Syntax &attributeSyntax() const = 0; + + ConstPtr makeImpliedAttributeValue(); + Boolean mayDefaultAttribute() const; + Boolean validate() const; +protected: + Boolean mayDefaultAttribute_; + Boolean validate_; +private: + ConstPtr impliedAttributeValue_; +}; + +inline +Boolean AttributeDefinition::tokenized() const +{ + return declaredValue_->tokenized(); +} + +inline +Boolean AttributeDefinition::isNotation() const +{ + return declaredValue_->isNotation(); +} + +inline +Boolean AttributeDefinition::isEntity() const +{ + return declaredValue_->isEntity(); +} + +inline +Boolean AttributeDefinition::isId() const +{ + return declaredValue_->isId(); +} + +inline +Boolean AttributeDefinition::isIdref() const +{ + return declaredValue_->isIdref(); +} + +inline +const Vector *AttributeDefinition::getTokens() const +{ + return declaredValue_->getTokens(); +} + +inline +const Vector *AttributeDefinition::getOrigTokens() const +{ + return declaredValue_->getOrigTokens(); +} + +inline +AttributeSemantics * +AttributeDefinition::makeSemantics(const AttributeValue *value, + AttributeContext &context, + unsigned &nIdrefs, + unsigned &nEntityNames) const +{ + return value->makeSemantics(declaredValue_.pointer(), context, name_, + nIdrefs, nEntityNames); +} + +inline +AttributeValue *AttributeDefinition::makeValue(Text &text, + AttributeContext &context, + unsigned &specLength) const +{ + return checkValue(declaredValue_->makeValue(text, context, name_, + specLength), + context); +} + +inline +AttributeValue * +AttributeDefinition::makeValueFromToken(Text &text, + AttributeContext &context, + unsigned &specLength) const +{ + return checkValue(declaredValue_->makeValueFromToken(text, context, + name_, specLength), + context); +} + +inline +Boolean AttributeDefinition::containsToken(const StringC &token) const +{ + return declaredValue_->containsToken(token); +} + +inline +const StringC &AttributeDefinition::name() const +{ + return name_; +} + +inline +const StringC &AttributeDefinition::origName() const +{ + return origName_; +} + +inline +void AttributeDefinition::setDeclaredValue(DeclaredValue *declaredValue) +{ + declaredValue_ = declaredValue; +} + +inline +size_t AttributeDefinitionList::size() const +{ + return defs_.size(); +} + +inline +size_t AttributeDefinitionList::index() const +{ + return index_; +} + +inline +void AttributeDefinitionList::setIndex(size_t index) +{ + index_ = index; +} + +inline +size_t AttributeDefinitionList::idIndex() const +{ + return idIndex_; +} + +inline +size_t AttributeDefinitionList::notationIndex() const +{ + return notationIndex_; +} + +inline +Boolean AttributeDefinitionList::anyCurrent() const +{ + return anyCurrent_; +} + +inline +AttributeDefinition *AttributeDefinitionList::def(size_t i) +{ + return defs_[i].pointer(); +} + +inline +const AttributeDefinition *AttributeDefinitionList::def(size_t i) const +{ + return defs_[i].pointer(); +} + +inline +size_t TokenizedAttributeValue::nTokens() const +{ + return spaceIndex_.size() + 1; +} + +inline +const StringC &TokenizedAttributeValue::string() const +{ + return text_.string(); +} + +inline +void TokenizedAttributeValue::token(size_t i, + const Char *&ptr, size_t &len) const +{ + size_t startIndex = i == 0 ? 0 : spaceIndex_[i - 1] + 1; + ptr = text_.string().data() + startIndex; + len = (i == spaceIndex_.size() ? text_.size() : spaceIndex_[i]) - startIndex; +} + +inline +StringC TokenizedAttributeValue::token(size_t i) const +{ + const Char *ptr; + size_t len; + token(i, ptr, len); + return StringC(ptr, len); +} + + +inline +Location TokenizedAttributeValue::tokenLocation(size_t i) const +{ + return text_.charLocation(i == 0 ? 0 : spaceIndex_[i - 1] + 1); +} + +inline +Boolean TokenizedAttributeValue::tokenLocation(size_t i, + const ConstPtr *&origin, + Index &index) const +{ + return text_.charLocation(i == 0 ? 0 : spaceIndex_[i - 1] + 1, origin, index); +} + +inline +size_t Attribute::specIndex() const +{ + return specIndexPlus_ - 1; +} + +inline +Boolean Attribute::specified() const +{ + return specIndexPlus_ != 0; +} + +inline +const AttributeValue *Attribute::value() const +{ + return value_.pointer(); +} + +inline +const ConstPtr &Attribute::valuePointer() const +{ + return value_; +} + +inline +const AttributeSemantics *Attribute::semantics() const +{ + return semantics_.pointer(); +} + +inline +void Attribute::setSpec(size_t index) +{ + specIndexPlus_ = index + 1; +} + +inline +void Attribute::setValue(const ConstPtr &value) +{ + value_ = value; +} + +inline +void Attribute::setSemantics(AttributeSemantics *semantics) +{ + semantics_ = semantics; +} + +inline +size_t AttributeList::size() const +{ + return vec_.size(); +} + +inline +const AttributeDefinition *AttributeList::def(size_t i) const +{ + return def_->def(i); +} + +inline +const ConstPtr &AttributeList::def() const +{ + return def_; +} + +inline +Boolean AttributeList::tokenized(unsigned i) const +{ + return def(i)->tokenized(); +} + +inline +Boolean AttributeList::tokenIndex(const StringC &name, unsigned &index) const +{ + return !def_.isNull() && def_->tokenIndex(name, index); +} + +inline +Boolean AttributeList::tokenIndexUnique(const StringC &name, unsigned index) const +{ + return def_->tokenIndexUnique(name, index); +} + +inline +Boolean AttributeList::attributeIndex(const StringC &name, unsigned &index) const +{ + return !def_.isNull() && def_->attributeIndex(name, index); +} + +inline +const StringC &AttributeList::name(unsigned i) const +{ + return def(i)->name(); +} + +inline +const Vector *AttributeList::getAllowedTokens(unsigned i) const +{ + return def(i)->getTokens(); +} + +inline +const AttributeValue *AttributeList::value(unsigned i) const +{ + return vec_[i].value(); +} + +inline +const ConstPtr &AttributeList::valuePointer(unsigned i) + const +{ + return vec_[i].valuePointer(); +} + +inline +const AttributeSemantics *AttributeList::semantics(unsigned i) const +{ + return vec_[i].semantics(); +} + +inline +size_t AttributeList::specIndex(size_t i) const +{ + return vec_[i].specIndex(); +} + +inline +size_t AttributeList::nSpec() const +{ + return nSpec_; +} + +inline +Boolean AttributeList::conref() const +{ + return conref_; +} + +inline +size_t AttributeList::defIndex() const +{ + return def_.isNull() ? size_t(-1) : def_->index(); +} + +inline +Boolean AttributeList::current(unsigned i) const +{ + return def(i)->isCurrent(); +} + +inline +Boolean AttributeList::anyCurrent() const +{ + return !def_.isNull() && def_->anyCurrent(); +} + +inline +const AttributeValue * +DefaultAttributeDefinition::defaultValue(const AttributeValue *) + const +{ + return value_.pointer(); +} + +inline +Boolean AttributeList::idIndex(unsigned &ind) const +{ + if (def_.isNull() || def_->idIndex() == size_t(-1)) + return 0; + else { + ind = def_->idIndex(); + return 1; + } +} + +inline +Boolean AttributeList::id(unsigned i) const +{ + return def(i)->isId(); +} + +inline +Boolean AttributeList::idref(unsigned i) const +{ + return def(i)->isIdref(); +} + +inline +Boolean AttributeList::specified(unsigned i) const +{ + return vec_[i].specified(); +} + +inline +Boolean AttributeContext::mayDefaultAttribute() const +{ + return mayDefaultAttribute_; +} + +inline +Boolean AttributeContext::validate() const +{ + return validate_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Attribute_INCLUDED */ diff --git a/include/Attributed.h b/include/Attributed.h new file mode 100644 index 0000000..1c149ed --- /dev/null +++ b/include/Attributed.h @@ -0,0 +1,57 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Attributed_INCLUDED +#define Attributed_INCLUDED 1 + +#include "Ptr.h" +#include "Attribute.h" + +// This is used for things that have attribute definitions +// that notations and elements. + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API Attributed { +public: + Attributed() { } + ConstPtr attributeDef() const; + const AttributeDefinitionList *attributeDefTemp() const; + Ptr attributeDef(); + void setAttributeDef(const Ptr &); +private: + Ptr attributeDef_; + +}; + +inline +ConstPtr Attributed::attributeDef() const +{ + return attributeDef_; +} + +inline +const AttributeDefinitionList *Attributed::attributeDefTemp() const +{ + return attributeDef_.pointer(); +} + +inline +Ptr Attributed::attributeDef() +{ + return attributeDef_; +} + +inline +void Attributed::setAttributeDef(const Ptr &def) +{ + attributeDef_ = def; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Attributed_INCLUDED */ diff --git a/include/Big5CodingSystem.h b/include/Big5CodingSystem.h new file mode 100644 index 0000000..95298a5 --- /dev/null +++ b/include/Big5CodingSystem.h @@ -0,0 +1,23 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef Big5CodingSystem_INCLUDED +#define Big5CodingSystem_INCLUDED 1 + +#include "CodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API Big5CodingSystem : public CodingSystem { +public: + Decoder *makeDecoder() const; + Encoder *makeEncoder() const; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Big5CodingSystem_INCLUDED */ diff --git a/include/Boolean.h b/include/Boolean.h new file mode 100644 index 0000000..9c282cd --- /dev/null +++ b/include/Boolean.h @@ -0,0 +1,40 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Boolean_INCLUDED +#define Boolean_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#ifdef SP_HAVE_BOOL + +typedef bool Boolean; +#ifdef SP_SIZEOF_BOOL_1 +typedef bool PackedBoolean; +#else +typedef char PackedBoolean; +#endif + +#else /* not SP_HAVE_BOOL */ + +typedef int Boolean; +typedef char PackedBoolean; + +#endif /* not SP_HAVE_BOOL */ + +#ifdef SP_NAMESPACE +} +#endif + +#ifndef SP_HAVE_BOOL + +typedef int bool; + +const int true = 1; +const int false = 0; + +#endif /* not SP_HAVE_BOOL */ + +#endif /* not Boolean_INCLUDED */ diff --git a/include/CharMap.cxx b/include/CharMap.cxx new file mode 100644 index 0000000..e59ea80 --- /dev/null +++ b/include/CharMap.cxx @@ -0,0 +1,390 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef CharMap_DEF_INCLUDED +#define CharMap_DEF_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#ifdef SP_MULTI_BYTE + +template +CharMap::CharMap() +{ +} + +template +CharMap::CharMap(T dflt) +{ + for (size_t i = 0; i < 256; i++) + lo_[i] = dflt; + for (size_t i = 0; i < CharMapBits::planes; i++) + values_[i].value = dflt; +} + +template +void CharMap::setAll(T val) +{ + for (size_t i = 0; i < 256; i++) + lo_[i] = val; + for (size_t i = 0; i < CharMapBits::planes; i++) { + values_[i].value = val; + delete [] values_[i].values; + values_[i].values = 0; + } +} + +template +void CharMap::swap(CharMap &map) +{ + for (size_t i = 0; i < 256; i++) { + T tem(lo_[i]); + lo_[i] = map.lo_[i]; + map.lo_[i] = tem; + } + for (size_t i = 0; i < CharMapBits::planes; i++) + values_[i].swap(map.values_[i]); +} + +template +void CharMap::setChar(Char c, T val) +{ + if (c < 256) { + lo_[c] = val; + return; + } + CharMapPlane &pl = values_[CharMapBits::planeIndex(c)]; + if (pl.values) { + CharMapPage &pg = pl.values[CharMapBits::pageIndex(c)]; + if (pg.values) { + CharMapColumn &column = pg.values[CharMapBits::columnIndex(c)]; + if (column.values) + column.values[CharMapBits::cellIndex(c)] = val; + else if (val != column.value) { + column.values = new T[CharMapBits::columnSize]; + for (size_t i = 0; i < CharMapBits::columnSize; i++) + column.values[i] = column.value; + column.values[CharMapBits::cellIndex(c)] = val; + } + } + else if (val != pg.value) { + pg.values = new CharMapColumn[CharMapBits::columnsPerPage]; + for (size_t i = 0; i < CharMapBits::columnsPerPage; i++) + pg.values[i].value = pg.value; + CharMapColumn &column = pg.values[CharMapBits::columnIndex(c)]; + column.values = new T[CharMapBits::cellsPerColumn]; + for (size_t i = 0; i < CharMapBits::cellsPerColumn; i++) + column.values[i] = column.value; + column.values[CharMapBits::cellIndex(c)] = val; + } + } + else if (val != pl.value) { + pl.values = new CharMapPage[CharMapBits::pagesPerPlane]; + for (size_t i = 0; i < CharMapBits::pagesPerPlane; i++) + pl.values[i].value = pl.value; + CharMapPage &page = pl.values[CharMapBits::pageIndex(c)]; + page.values = new CharMapColumn[CharMapBits::columnsPerPage]; + for (size_t i = 0; i < CharMapBits::columnsPerPage; i++) + page.values[i].value = page.value; + CharMapColumn &column = page.values[CharMapBits::columnIndex(c)]; + column.values = new T[CharMapBits::cellsPerColumn]; + for (size_t i = 0; i < CharMapBits::cellsPerColumn; i++) + column.values[i] = column.value; + column.values[CharMapBits::cellIndex(c)] = val; + } +} + +template +void CharMap::setRange(Char from, Char to, T val) +{ + for (; from < 256; from++) { + lo_[from] = val; + if (from == to) + return; + } + do { + if ((from & (CharMapBits::columnSize - 1)) == 0 + && to - from >= CharMapBits::columnSize - 1) { + if ((from & (CharMapBits::pageSize - 1)) == 0 + && to - from >= CharMapBits::pageSize - 1) { + if ((from & (CharMapBits::planeSize - 1)) == 0 + && to - from >= CharMapBits::planeSize - 1) { + // Set a complete plane. + CharMapPlane &pl = values_[CharMapBits::planeIndex(from)]; + pl.value = val; + delete [] pl.values; + pl.values = 0; + from += CharMapBits::planeSize - 1; + } + else { + // Set a complete page. + CharMapPlane &pl = values_[CharMapBits::planeIndex(from)]; + if (pl.values) { + CharMapPage &pg = pl.values[CharMapBits::pageIndex(from)]; + pg.value = val; + delete [] pg.values; + pg.values = 0; + } + else if (val != pl.value) { + // split the plane + pl.values = new CharMapPage[CharMapBits::pagesPerPlane]; + for (size_t i = 0; i < CharMapBits::pagesPerPlane; i++) + pl.values[i].value = pl.value; + CharMapPage &page = pl.values[CharMapBits::pageIndex(from)]; + page.value = val; + } + from += CharMapBits::pageSize - 1; + } + } + else { + // Set a complete column. + CharMapPlane &pl = values_[CharMapBits::planeIndex(from)]; + if (pl.values) { + CharMapPage &pg = pl.values[CharMapBits::pageIndex(from)]; + if (pg.values) { + CharMapColumn &column = pg.values[CharMapBits::columnIndex(from)]; + column.value = val; + delete [] column.values; + column.values = 0; + } + else if (val != pg.value) { + // split the page + pg.values = new CharMapColumn[CharMapBits::columnsPerPage]; + for (size_t i = 0; i < CharMapBits::columnsPerPage; i++) + pg.values[i].value = pg.value; + CharMapColumn &column = pg.values[CharMapBits::columnIndex(from)]; + column.value = val; + } + } + else if (val != pl.value) { + // split the plane + pl.values = new CharMapPage[CharMapBits::pagesPerPlane]; + for (size_t i = 0; i < CharMapBits::pagesPerPlane; i++) + pl.values[i].value = pl.value; + CharMapPage &pg = pl.values[CharMapBits::pageIndex(from)]; + pg.value = val; + // split the page + pg.values = new CharMapColumn[CharMapBits::columnsPerPage]; + for (size_t i = 0; i < CharMapBits::columnsPerPage; i++) + pg.values[i].value = pg.value; + CharMapColumn &column = pg.values[CharMapBits::columnIndex(from)]; + column.value = val; + } + from += CharMapBits::columnSize - 1; + } + } + else + setChar(from, val); + } while (from++ != to); +} + +template +CharMapPlane::CharMapPlane() +: values(0) +{ +} + +template +CharMapPlane::CharMapPlane(const CharMapPlane &pl) +{ + if (pl.values) { + values = new CharMapPage[CharMapBits::pagesPerPlane]; + for (size_t i = 0; i < CharMapBits::pagesPerPlane; i++) + values[i] = pl.values[i]; + } + else { + value = pl.value; + values = 0; + } +} + +template +void CharMapPlane::operator=(const CharMapPlane &pl) +{ + if (pl.values) { + if (!values) + values = new CharMapPage[CharMapBits::pagesPerPlane]; + for (size_t i = 0; i < CharMapBits::pagesPerPlane; i++) + values[i] = pl.values[i]; + } + else { + if (values) { + delete [] values; + values = 0; + } + value = pl.value; + } +} + +template +CharMapPlane::~CharMapPlane() +{ + delete [] values; +} + +template +void CharMapPlane::swap(CharMapPlane &pl) +{ + { + CharMapPage *tem = values; + values = pl.values; + pl.values = tem; + } + { + T tem(value); + value = pl.value; + pl.value = tem; + } +} + +template +CharMapPage::CharMapPage() +: values(0) +{ +} + +template +CharMapPage::CharMapPage(const CharMapPage &pg) +{ + if (pg.values) { + values = new CharMapColumn[CharMapBits::columnsPerPage]; + for (size_t i = 0; i < CharMapBits::columnsPerPage; i++) + values[i] = pg.values[i]; + } + else { + value = pg.value; + values = 0; + } +} + +template +void CharMapPage::operator=(const CharMapPage &pg) +{ + if (pg.values) { + if (!values) + values = new CharMapColumn[CharMapBits::columnsPerPage]; + for (size_t i = 0; i < CharMapBits::columnsPerPage; i++) + values[i] = pg.values[i]; + } + else { + if (values) { + delete [] values; + values = 0; + } + value = pg.value; + } +} + +template +CharMapPage::~CharMapPage() +{ + delete [] values; +} + +template +void CharMapPage::swap(CharMapPage &pg) +{ + { + CharMapColumn *tem = values; + values = pg.values; + pg.values = tem; + } + { + T tem(value); + value = pg.value; + pg.value = tem; + } +} + +template +CharMapColumn::CharMapColumn() +: values(0) +{ +} + +template +CharMapColumn::CharMapColumn(const CharMapColumn &col) +{ + if (col.values) { + values = new T[CharMapBits::cellsPerColumn]; + for (size_t i = 0; i < CharMapBits::cellsPerColumn; i++) + values[i] = col.values[i]; + } + else { + values = 0; + value = col.value; + } +} + +template +void CharMapColumn::operator=(const CharMapColumn &col) +{ + if (col.values) { + if (!values) + values = new T[CharMapBits::cellsPerColumn]; + for (size_t i = 0; i < CharMapBits::cellsPerColumn; i++) + values[i] = col.values[i]; + } + else { + if (values) { + delete [] values; + values = 0; + } + value = col.value; + } +} + +template +CharMapColumn::~CharMapColumn() +{ + delete [] values; +} + +#else /* not SP_MULTI_BYTE */ + +template +CharMap::CharMap() +{ +} + +template +CharMap::CharMap(T dflt) +{ + for (int i = 0; i < 256; i++) + values_[i] = dflt; +} + +template +void CharMap::setAll(T val) +{ + for (size_t i = 0; i < 256; i++) + values_[i] = val; +} + +template +void CharMap::setRange(Char from, Char to, T val) +{ + do { + values_[from] = val; + } while (from++ != to); +} + +template +void CharMap::swap(CharMap &map) +{ + for (size_t i = 0; i < 256; i++) { + T tem(values_[i]); + values_[i] = map.values_[i]; + map.values_[i] = tem; + } +} + +#endif /* not SP_MULTI_BYTE */ + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not CharMap_DEF_INCLUDED */ diff --git a/include/CharMap.h b/include/CharMap.h new file mode 100644 index 0000000..3d03901 --- /dev/null +++ b/include/CharMap.h @@ -0,0 +1,229 @@ +// Copyright (c) 1997 James Clark, 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef CharMap_INCLUDED +#define CharMap_INCLUDED 1 + +#include "types.h" +#include "Resource.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#ifdef SP_MULTI_BYTE + +class CharMapBits { +public: + // 21 bits are enough for the UTF-16 range + enum { level0 = 5, level1 = 8, level2 = 4, level3 = 4 }; + + enum { + planes = (1 << CharMapBits::level0) , + pagesPerPlane = (1 << CharMapBits::level1), + columnsPerPage = (1 << CharMapBits::level2), + cellsPerColumn = (1 << CharMapBits::level3), + planeSize = (1 << (CharMapBits::level1 + CharMapBits::level2 + CharMapBits::level3)), + pageSize = (1 << (CharMapBits::level2 + CharMapBits::level3)), + columnSize = (1 << CharMapBits::level3) + }; + + static size_t planeIndex(size_t c) { + return (c >> (CharMapBits::level1 + CharMapBits::level2 + CharMapBits::level3)); + } + static size_t pageIndex(size_t c) { + return ((c >> (CharMapBits::level2 + CharMapBits::level3)) & (pagesPerPlane - 1)); + } + static size_t columnIndex(size_t c) { + return ((c >> CharMapBits::level3) & (columnsPerPage - 1)); + } + static size_t cellIndex(size_t c) { + return (c & (cellsPerColumn - 1)); + } + static size_t maxInPlane(size_t c) { + return (c | (planeSize - 1)); + } + static size_t maxInPage(size_t c) { + return (c | (pageSize - 1)); + } + static size_t maxInColumn(size_t c) { + return (c | (columnSize - 1)); + } +}; + +#if 0 +// These are defines rather than static member functions of CharMapBits, +// since gcc chokes on them in array allocations. +#define planes (1 << CharMapBits::level0) +#define pagesPerPlane (1 << CharMapBits::level1) +#define columnsPerPage (1 << CharMapBits::level2) +#define cellsPerColumn (1 << CharMapBits::level3) +#define planeSize (1 << (CharMapBits::level1 + CharMapBits::level2 + CharMapBits::level3)) +#define pageSize (1 << (CharMapBits::level2 + CharMapBits::level3)) +#define columnSize (1 << CharMapBits::level3) +#define planeIndex(c) ((c) >> (CharMapBits::level1 + CharMapBits::level2 + CharMapBits::level3)) +#define pageIndex(c) (((c) >> (CharMapBits::level2 + CharMapBits::level3)) & (pagesPerPlane - 1)) +#define columnIndex(c) (((c) >> CharMapBits::level3) & (columnsPerPage - 1)) +#define cellIndex(c) ((c) & (cellsPerColumn - 1)) +#define maxInPlane(c) ((c) | (planeSize - 1)) +#define maxInPage(c) ((c) | (pageSize - 1)) +#define maxInColumn(c) ((c) | (columnSize - 1)) +#endif + +template +class CharMapColumn { +public: + CharMapColumn(); + CharMapColumn(const CharMapColumn &); + void operator=(const CharMapColumn &); + ~CharMapColumn(); + T *values; + T value; +}; + +template +class CharMapPage { +public: + CharMapPage(); + CharMapPage(const CharMapPage &); + void operator=(const CharMapPage &); + ~CharMapPage(); + void swap(CharMapPage &); + CharMapColumn *values; + T value; +}; + +template +class CharMapPlane { +public: + CharMapPlane(); + CharMapPlane(const CharMapPlane &); + void operator=(const CharMapPlane &); + ~CharMapPlane(); + void swap(CharMapPlane &); + CharMapPage *values; + T value; +}; +#endif /* SP_MULTI_BYTE */ + +template +class CharMap { +public: + CharMap(); + CharMap(T); + T operator[](Char) const; + T getRange(Char from, Char &to) const; + void swap(CharMap &); + void setChar(Char, T); + void setRange(Char from, Char to, T val); + void setAll(T); +private: +#ifdef SP_MULTI_BYTE + + CharMapPlane values_[CharMapBits::planes]; + T lo_[256]; +#else + T values_[256]; +#endif +}; + +template +class CharMapResource : public CharMap, public Resource { +public: + CharMapResource() { } + CharMapResource(T t) : CharMap(t) { } +}; + +#ifdef SP_MULTI_BYTE + +template +inline +T CharMap::operator[](Char c) const +{ + if (c < 256) + return lo_[c]; + const CharMapPlane &pl = values_[CharMapBits::planeIndex(c)]; + if (pl.values) { + const CharMapPage &pg = pl.values[CharMapBits::pageIndex(c)]; + if (pg.values) { + const CharMapColumn &column = pg.values[CharMapBits::columnIndex(c)]; + if (column.values) + return column.values[CharMapBits::cellIndex(c)]; + else + return column.value; + } + else + return pg.value; + } + else + return pl.value; +} + +template +inline +T CharMap::getRange(Char c, Char &max) const +{ + if (c < 256) { + max = c; + return lo_[c]; + } + const CharMapPlane &pl = values_[CharMapBits::planeIndex(c)]; + if (pl.values) { + const CharMapPage &pg = pl.values[CharMapBits::pageIndex(c)]; + if (pg.values) { + const CharMapColumn &column = pg.values[CharMapBits::columnIndex(c)]; + if (column.values) { + max = c; + return column.values[CharMapBits::cellIndex(c)]; + } + else { + max = CharMapBits::maxInColumn(c); + return column.value; + } + } + else { + max = CharMapBits::maxInPage(c); + return pg.value; + } + } + else { + max = CharMapBits::maxInPlane(c); + return pl.value; + } +} + +#else + +template +inline +T CharMap::operator[](Char c) const +{ + return values_[c]; +} + +template +inline +T CharMap::getRange(Char c, Char &max) const +{ + max = c; + return values_[c]; +} + +template +inline +void CharMap::setChar(Char c, T val) +{ + values_[c] = val; +} + +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not CharMap_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "CharMap.cxx" +#endif diff --git a/include/CharsetDecl.h b/include/CharsetDecl.h new file mode 100644 index 0000000..c412bb5 --- /dev/null +++ b/include/CharsetDecl.h @@ -0,0 +1,142 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef CharsetDecl_INCLUDED +#define CharsetDecl_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "Vector.h" +#include "ExternalId.h" +#include "ISet.h" +#include "Boolean.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API CharsetDeclRange { +public: + enum Type { + number, + string, + unused + }; + CharsetDeclRange(); + ~CharsetDeclRange(); + CharsetDeclRange(WideChar, Number, WideChar); + CharsetDeclRange(WideChar, Number); + CharsetDeclRange(WideChar, Number, const StringC &); + void rangeDeclared(WideChar min, Number count, + ISet &declared) const; + void usedSet(ISet &) const; + Boolean getCharInfo(WideChar fromChar, + CharsetDeclRange::Type &type, + Number &n, + StringC &str, + Number &count) const; + void stringToChar(const StringC &str, ISet &to) const; + void numberToChar(Number n, ISet &to, Number &count) const; +private: + WideChar descMin_; + Number count_; + WideChar baseMin_; + Type type_; + StringC str_; +}; + +class SP_API CharsetDeclSection { +public: + CharsetDeclSection(); + ~CharsetDeclSection() {} + void setPublicId(const PublicId &); + void addRange(const CharsetDeclRange &); + void rangeDeclared(WideChar min, Number count, + ISet &declared) const; + void usedSet(ISet &) const; + Boolean getCharInfo(WideChar fromChar, + const PublicId *&id, + CharsetDeclRange::Type &type, + Number &n, + StringC &str, + Number &cout) const; + void stringToChar(const StringC &str, ISet &to) const; + void numberToChar(const PublicId *id, Number n, + ISet &to, Number &count) const; +private: + PublicId baseset_; + Vector ranges_; +}; + +class SP_API CharsetDecl { +public: + CharsetDecl(); + void addSection(const PublicId &); + void swap(CharsetDecl &); + void clear(); + void usedSet(ISet &) const; + void declaredSet(ISet &set) const; + Boolean charDeclared(WideChar) const; + void rangeDeclared(WideChar min, Number count, + ISet &declared) const; + void addRange(WideChar, Number, WideChar); + void addRange(WideChar, Number); + void addRange(WideChar, Number, const StringC &); + Boolean getCharInfo(WideChar fromChar, + const PublicId *&id, + CharsetDeclRange::Type &type, + Number &n, + StringC &str) const; + Boolean getCharInfo(WideChar fromChar, + const PublicId *&id, + CharsetDeclRange::Type &type, + Number &n, + StringC &str, + Number &count) const; + void stringToChar(const StringC &str, ISet &to) const; + void numberToChar(const PublicId *id, Number n, + ISet &to, Number &count) const; + void numberToChar(const PublicId *id, Number n, ISet &to) const; +private: + Vector sections_; + ISet declaredSet_; +}; + +inline +Boolean CharsetDecl::getCharInfo(WideChar fromChar, + const PublicId *&id, + CharsetDeclRange::Type &type, + Number &n, + StringC &str) const +{ + Number tem; + return getCharInfo(fromChar, id, type, n, str, tem); +} + +inline +void CharsetDecl::numberToChar(const PublicId *id, Number n, + ISet &to) const +{ + Number tem; + numberToChar(id, n, to, tem); +} + +inline +void CharsetDecl::declaredSet(ISet &set) const +{ + set = declaredSet_; +} + +inline +Boolean CharsetDecl::charDeclared(WideChar c) const +{ + return declaredSet_.contains(c); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not CharsetDecl_INCLUDED */ diff --git a/include/CharsetInfo.h b/include/CharsetInfo.h new file mode 100644 index 0000000..04086c5 --- /dev/null +++ b/include/CharsetInfo.h @@ -0,0 +1,121 @@ +// Copyright (c) 1994, 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef CharsetInfo_INCLUDED +#define CharsetInfo_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include +#include "UnivCharsetDesc.h" +#include "Boolean.h" +#include "types.h" +#include "StringC.h" +#include "ISet.h" +#include "CharMap.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API CharsetInfo { +public: + CharsetInfo(); + CharsetInfo(const UnivCharsetDesc &); + inline ~CharsetInfo() {} + void set(const UnivCharsetDesc &); + // Use only for characters guaranteed to me in the C basic execution + // character set and which have been verified to be in this + // character set. + Char execToDesc(char) const; + StringC execToDesc(const char *s) const; + Boolean descToUniv(WideChar from, UnivChar &to) const; + Boolean descToUniv(WideChar from, UnivChar &to, WideChar &alsoMax) const; + // Return 0 for no matches, 1 for 1, 2 for more than 1 + // to gets the first character; toSet gets all the characters + // if there's more than 1. + unsigned univToDesc(UnivChar from, WideChar &to, ISet &toSet) + const; + unsigned univToDesc(UnivChar from, WideChar &to, ISet &toSet, + WideChar &count) + const; + void getDescSet(ISet &) const; + int digitWeight(Char) const; + int hexDigitWeight(Char) const; + const UnivCharsetDesc &desc() const; +private: + void init(); + UnivCharsetDesc desc_; + CharMap inverse_; + Char execToDesc_[UCHAR_MAX + 1]; +}; + +inline +unsigned CharsetInfo::univToDesc(UnivChar from, WideChar &to, + ISet &toSet) + const +{ + if (from <= charMax) { + Unsigned32 n = inverse_[from]; + if (n == Unsigned32(-1)) + return 0; + if (n != Unsigned32(-2)) { + to = ((n + from) & ((Unsigned32(1) << 31) - 1)); + return 1; + } + } + return desc_.univToDesc(from, to, toSet); +} + +inline +unsigned CharsetInfo::univToDesc(UnivChar from, WideChar &to, + ISet &toSet, WideChar &count) + const +{ + if (from <= charMax) { + Char fromMax; + Unsigned32 n = inverse_.getRange(from, fromMax); + if (n == Unsigned32(-1)) { + count = (fromMax - from) + 1; + return 0; + } + if (n != Unsigned32(-2)) { + to = ((n + from) & ((Unsigned32(1) << 31) - 1)); + count = (fromMax - from) + 1; + return 1; + } + } + return desc_.univToDesc(from, to, toSet, count); +} + +inline +Boolean CharsetInfo::descToUniv(UnivChar from, WideChar &to) const +{ + return desc_.descToUniv(from, to); +} + +inline +Char CharsetInfo::execToDesc(char c) const +{ + return execToDesc_[(unsigned char)c]; +} + +inline +Boolean CharsetInfo::descToUniv(WideChar from, UnivChar &to, + WideChar &alsoMax) const +{ + return desc_.descToUniv(from, to, alsoMax); +} + +inline +const UnivCharsetDesc &CharsetInfo::desc() const +{ + return desc_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not CharsetInfo_INCLUDED */ diff --git a/include/CharsetRegistry.h b/include/CharsetRegistry.h new file mode 100644 index 0000000..35ded36 --- /dev/null +++ b/include/CharsetRegistry.h @@ -0,0 +1,60 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef CharsetRegistry_INCLUDED +#define CharsetRegistry_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Boolean.h" +#include "types.h" +#include "StringC.h" +#include "CharsetInfo.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API CharsetRegistry { +public: + class SP_API Iter { + public: + virtual ~Iter(); + virtual Boolean next(WideChar &min, WideChar &max, UnivChar &) = 0; + }; + enum ISORegistrationNumber { + UNREGISTERED = 0, + ISO646_ASCII_G0 = 6, + ISO646_C0 = 1, + ISO6429 = 77, + ISO8859_1 = 100, + ISO8859_2 = 101, + ISO8859_3 = 109, + ISO8859_4 = 110, + ISO8859_5 = 144, + ISO8859_6 = 127, + ISO8859_7 = 126, + ISO8859_8 = 138, + ISO8859_9 = 148, + ISO646_JIS_G0 = 14, + JIS0201 = 13, + JIS0208 = 168, + JIS0212 = 159, + KSC5601 = 149, + GB2312 = 58, + ISO10646_UCS2 = 176, + ISO10646_UCS4 = 177, + KOI8_R = 65534, // not registered + BIG5 = 65535 // not registered + }; + static ISORegistrationNumber getRegistrationNumber(const StringC &desig, + const CharsetInfo &); + static Iter *makeIter(ISORegistrationNumber); +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not CharsetRegistry_INCLUDED */ diff --git a/include/CmdLineApp.h b/include/CmdLineApp.h new file mode 100644 index 0000000..629429a --- /dev/null +++ b/include/CmdLineApp.h @@ -0,0 +1,133 @@ +// Copyright (c) 1996 James Clark, 1999 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef CmdLineApp_INCLUDED +#define CmdLineApp_INCLUDED 1 + +#ifdef SP_XML +#define SP_REPORTER_CLASS XMLMessageReporter +#else +#define SP_REPORTER_CLASS MessageReporter +#endif + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "MessageReporter.h" +#include "Vector.h" +#include "StringOf.h" +#include "Boolean.h" +#include "CodingSystem.h" +#include "OutputByteStream.h" +#include "OutputCharStream.h" +#include "CodingSystemKit.h" +#include "Options.h" + +#ifdef SP_WIDE_SYSTEM +// for wchar_t +#include +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API CmdLineApp : public SP_REPORTER_CLASS { +public: +#ifdef SP_WIDE_SYSTEM + typedef wchar_t AppChar; +#else + typedef char AppChar; +#endif + CmdLineApp(const char *requiredInternalCode = 0); + int run(int argc, AppChar **argv); + virtual int processOptions(int argc, AppChar **argv, int &nextArg); + virtual void processOption(AppChar opt, const AppChar *arg); + virtual int processArguments(int argc, AppChar **files) = 0; + static const MessageType2 &openFileErrorMessage(); + static const MessageType2 &closeFileErrorMessage(); + void usage(); + const CodingSystem *codingSystem(); + const CodingSystem *outputCodingSystem(); + const CharsetInfo &systemCharset(); + ConstPtr inputCodingSystemKit(); + StringC convertInput(const AppChar *s); + OutputCharStream *makeStdOut(); + OutputCharStream *makeStdErr(); +protected: + virtual void registerOption(AppChar c, const AppChar *name, + const MessageType1 &doc); + virtual void registerOption(AppChar c, const AppChar *name, + const MessageFragment &arg, + const MessageType1 &doc); + virtual void changeOptionRegistration(AppChar oldc, AppChar newc); + virtual void registerUsage(const MessageType1 &u); + virtual void registerInfo(const MessageType1 &i, bool pre = 0); + // This is for backwards compability. Note that the second argument is the */ + // argument name and not the long option name as above. + virtual void registerOption(AppChar c, const AppChar* argName =0); + virtual int init(int argc, AppChar **argv); + void resetCodingSystemKit(); + static Boolean stringMatches(const AppChar *s, const char *key); + const AppChar *errorFile_; + const CodingSystem *outputCodingSystem_; + Vector > opts_; + Vector optDocs_; + Vector optArgs_; + Vector usages_; + Vector preInfos_; + Vector infos_; + Boolean internalCharsetIsDocCharset_; + Ptr codingSystemKit_; + enum { + normalAction, + usageAction + }; + int action_; +private: + Boolean getMessageText(const MessageFragment &, StringC &); + void initCodingSystem(const char *requiredInternalCode); + const CodingSystem *lookupCodingSystem(const AppChar *codingName); + const CodingSystem *codingSystem_; +}; + +#ifdef SP_WIDE_SYSTEM +#define SP_DEFINE_APP(CLASS) \ + extern "C" \ + wmain(int argc, wchar_t **argv) { CLASS app; return app.run(argc, argv); } +#else +#define SP_DEFINE_APP(CLASS) \ + extern "C" \ + int main(int argc, char **argv) { CLASS app; return app.run(argc, argv); } +#endif + +inline +const CodingSystem *CmdLineApp::codingSystem() +{ + return codingSystem_; +} + +inline +const CodingSystem *CmdLineApp::outputCodingSystem() +{ + return outputCodingSystem_; +} + +inline +ConstPtr CmdLineApp::inputCodingSystemKit() +{ + return codingSystemKit_.pointer(); +} + +inline +const CharsetInfo &CmdLineApp::systemCharset() +{ + return codingSystemKit_->systemCharset(); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not CmdLineApp_INCLUDED */ diff --git a/include/CodingSystem.h b/include/CodingSystem.h new file mode 100644 index 0000000..9d24dd6 --- /dev/null +++ b/include/CodingSystem.h @@ -0,0 +1,97 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef CodingSystem_INCLUDED +#define CodingSystem_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "Boolean.h" +#include "StringC.h" +#include "OutputByteStream.h" + +#include + + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API Decoder { +public: + Decoder(unsigned minBytesPerChar = 1); + virtual ~Decoder(); + virtual size_t decode(Char *, const char *, size_t, const char **) = 0; + virtual Boolean convertOffset(unsigned long &offset) const; + // Decoder assumes that for every decoded Char there must be at least + // minBytesPerChar bytes + unsigned minBytesPerChar() const; +protected: + unsigned minBytesPerChar_; +}; + + +class SP_API Encoder { +public: + class SP_API Handler { + public: + virtual ~Handler(); + virtual void handleUnencodable(Char, OutputByteStream *) = 0; + }; + Encoder(); + virtual ~Encoder(); + virtual void output(const Char *, size_t, OutputByteStream *) = 0; + // This outputs a byte order mark with Unicode. + virtual void startFile(OutputByteStream *); + virtual void output(Char *, size_t, OutputByteStream *); + virtual void setUnencodableHandler(Handler *); + virtual void handleUnencodable(Char, OutputByteStream *); +}; + +class SP_API RecoveringEncoder : public Encoder { +public: + RecoveringEncoder(); + void setUnencodableHandler(Handler *); + void handleUnencodable(Char, OutputByteStream *); +private: + Handler *unencodableHandler_; +}; + +class SP_API InputCodingSystem { +public: + virtual ~InputCodingSystem(); + // one of these has to be overwritten + virtual Decoder *makeDecoder() const { return makeDecoder(1); } + virtual Decoder *makeDecoder(Boolean lsbFirst) const { return makeDecoder(lsbFirst,1); } + virtual Decoder *makeDecoder(Boolean lsbFirst, Boolean lswFirst) const { return makeDecoder(); } + StringC convertIn(const char *) const; + virtual Boolean isIdentity() const; +}; + +class SP_API OutputCodingSystem { +public: + virtual ~OutputCodingSystem(); + virtual Encoder *makeEncoder() const = 0; + virtual unsigned fixedBytesPerChar() const; + String convertOut(const StringC &) const; +}; + +class SP_API CodingSystem : public InputCodingSystem, public OutputCodingSystem { +public: + inline ~CodingSystem() {} +}; + +inline +unsigned Decoder::minBytesPerChar() const +{ + return minBytesPerChar_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not CodingSystem_INCLUDED */ diff --git a/include/CodingSystemKit.h b/include/CodingSystemKit.h new file mode 100644 index 0000000..c1e11e0 --- /dev/null +++ b/include/CodingSystemKit.h @@ -0,0 +1,59 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef CodingSystemKit_INCLUDED +#define CodingSystemKit_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Boolean.h" +#include "StringC.h" +#include "CodingSystem.h" +#include "Resource.h" +#include "CharsetInfo.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API InputCodingSystemKit : public Resource { +public: + virtual ~InputCodingSystemKit(); + // Returned InputCodingSystem lives at least as long as the Kit. + virtual const InputCodingSystem * + identityInputCodingSystem() const = 0; + virtual const InputCodingSystem * + makeInputCodingSystem(const StringC &, + const CharsetInfo &, + Boolean isBctf, + const char *&staticName) const = 0; + virtual Char replacementChar() const = 0; + const CharsetInfo &systemCharset() const; +protected: + CharsetInfo systemCharset_; +}; + +class SP_API CodingSystemKit : public InputCodingSystemKit { +public: + virtual ~CodingSystemKit() = 0; + virtual CodingSystemKit *copy() const = 0; + virtual const CodingSystem * + identityCodingSystem() const = 0; + virtual const CodingSystem * + makeCodingSystem(const char *, Boolean isBctf) const = 0; + static CodingSystemKit *make(const char *); +}; + +inline +const CharsetInfo &InputCodingSystemKit::systemCharset() const +{ + return systemCharset_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not CodingSystemKit_INCLUDED */ diff --git a/include/ConsoleOutput.h b/include/ConsoleOutput.h new file mode 100644 index 0000000..4bf1da0 --- /dev/null +++ b/include/ConsoleOutput.h @@ -0,0 +1,27 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef ConsoleOutput_INCLUDED +#define ConsoleOutput_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "OutputCharStream.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API ConsoleOutput { +public: + // Returns null if fd is not a console. + static OutputCharStream *makeOutputCharStream(int fd); +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ConsoleOutput_INCLUDED */ diff --git a/include/ContentState.h b/include/ContentState.h new file mode 100644 index 0000000..5788ff8 --- /dev/null +++ b/include/ContentState.h @@ -0,0 +1,119 @@ +// Copyright (c) 1994, 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef ContentState_INCLUDED +#define ContentState_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include +#include "OpenElement.h" +#include "IList.h" +#include "Vector.h" +#include "Message.h" +#include "Dtd.h" +#include "Mode.h" +#include "Boolean.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API ContentState { +public: + ContentState(); + void startContent(const Dtd &); + void pushElement(OpenElement *); + OpenElement *popSaveElement(); + void popElement(); + OpenElement ¤tElement(); + const OpenElement ¤tElement() const; + void getOpenElementInfo(Vector &, + const StringC &rniPcdata) const; + unsigned tagLevel() const; + Boolean elementIsIncluded(const ElementType *) const; + Boolean elementIsExcluded(const ElementType *) const; + Boolean elementIsOpen(const ElementType *) const; + Boolean afterDocumentElement() const; + const ElementType *lastEndedElementType() const; + Mode contentMode() const; + ElementType *lookupCreateUndefinedElement(const StringC &, + const Location &, + Dtd &, + Boolean allowImmediateRecursion = 1); + Boolean checkImplyLoop(unsigned); + static const ShortReferenceMap theEmptyMap; +private: + IList openElements_; + Vector openElementCount_; + Vector includeCount_; + Vector excludeCount_; + unsigned totalExcludeCount_; + unsigned tagLevel_; + unsigned netEnablingCount_; + unsigned long nextIndex_; + const ElementType *lastEndedElementType_; + ElementType documentElementContainer_; +}; + +inline +OpenElement &ContentState::currentElement() +{ + return *openElements_.head(); +} + +inline +const OpenElement &ContentState::currentElement() const +{ + return *openElements_.head(); +} + +inline +Boolean ContentState::elementIsOpen(const ElementType *e) const +{ + return openElementCount_[e->index()] != 0; +} + +inline +Boolean ContentState::elementIsIncluded(const ElementType *e) const +{ + return includeCount_[e->index()] != 0 && excludeCount_[e->index()] == 0; +} + +inline +Boolean ContentState::elementIsExcluded(const ElementType *e) const +{ + return excludeCount_[e->index()] != 0; +} + +inline +const ElementType *ContentState::lastEndedElementType() const +{ + return lastEndedElementType_; +} + +inline +unsigned ContentState::tagLevel() const +{ + return tagLevel_; +} + +inline +Boolean ContentState::afterDocumentElement() const +{ + return tagLevel() == 0 && currentElement().isFinished(); +} + +inline +Mode ContentState::contentMode() const +{ + return openElements_.head()->mode(netEnablingCount_ > 0); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ContentState_INCLUDED */ diff --git a/include/ContentToken.h b/include/ContentToken.h new file mode 100644 index 0000000..89ac3ef --- /dev/null +++ b/include/ContentToken.h @@ -0,0 +1,636 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef ContentToken_INCLUDED +#define ContentToken_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Owner.h" +#include "Text.h" +#include "Vector.h" +#include "NCVector.h" +#include "Boolean.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class LeafContentToken; + +struct SP_API Transition { + ~Transition(); + enum { invalidIndex = -1 }; + // When performing this transition, reset all andState with index >= this. + unsigned clearAndStateStartIndex; + // This transition is possible only if all AND groups whose AND depth + // is >= this (and contains the LeafContentToken that this transition is + // from) have had all their non-nullable members matched. + unsigned andDepth; + // If this is 1, then this transition requires that the AND group + // whose AND depth is andDepth - 1 have a non-nullable member unmatched, + // and thus this transition is not ambiguous with a transition whose + // AND depth is < andDepth. + PackedBoolean isolated; + // Index in andState that must be clear for this transition to be + // allowed. + unsigned requireClear; + // Index in andState that is to be set after performing this transition. + unsigned toSet; +}; + +class SP_API FirstSet { +public: + FirstSet(); + void init(LeafContentToken *); + void append(const FirstSet &); + size_t size() const; + LeafContentToken *token(size_t i) const; + size_t requiredIndex() const; + void setNotRequired(); +private: + Vector v_; + // index of contextually required token or -1 if none + size_t requiredIndex_; +}; + +class SP_API LastSet : public Vector { +public: + LastSet() { } + LastSet(size_t n) : Vector(n) { } + void append(const LastSet &); +}; + +class ElementType; +class AndModelGroup; +struct GroupInfo; + +struct SP_API ContentModelAmbiguity { + inline ~ContentModelAmbiguity() {} + const LeafContentToken *from; + const LeafContentToken *to1; + const LeafContentToken *to2; + unsigned andDepth; +}; + +class ModelGroup; + +class SP_API ContentToken { +public: + enum OccurrenceIndicator { none = 0, opt = 01, plus = 02, rep = 03 }; + ContentToken(OccurrenceIndicator); + virtual ~ContentToken(); + OccurrenceIndicator occurrenceIndicator() const; + Boolean inherentlyOptional() const; + static unsigned andDepth(const AndModelGroup *); + static unsigned andIndex(const AndModelGroup *); + void analyze(GroupInfo &, const AndModelGroup *, unsigned, + FirstSet &, LastSet &); + static void addTransitions(const LastSet &from, + const FirstSet &to, + Boolean maybeRequired, + unsigned andClearIndex, + unsigned andDepth, + Boolean isolated = 0, + unsigned requireClear + = (unsigned)Transition::invalidIndex, + unsigned toSet + = (unsigned)Transition::invalidIndex); + virtual void finish(Vector &minAndDepth, + Vector &elementTransition, + Vector &, + Boolean &pcdataUnreachable) = 0; + virtual unsigned long grpgtcnt() const; + virtual void setOrGroupMember(); + unsigned andGroupIndex() const; + virtual const ModelGroup *asModelGroup() const; + virtual const LeafContentToken *asLeafContentToken() const; +protected: + PackedBoolean inherentlyOptional_; +private: + ContentToken(const ContentToken &); // undefined + void operator=(const ContentToken &); // undefined + virtual void analyze1(GroupInfo &, const AndModelGroup *, unsigned, + FirstSet &, LastSet &) = 0; + OccurrenceIndicator occurrenceIndicator_; +}; + +class SP_API ModelGroup : public ContentToken { +public: + enum Connector { andConnector, orConnector, seqConnector }; + ModelGroup(NCVector > &, OccurrenceIndicator); + inline virtual ~ModelGroup() {}; + virtual Connector connector() const = 0; + unsigned nMembers() const; + void finish(Vector &minAndDepth, + Vector &elementTransition, + Vector &, + Boolean &pcdataUnreachable); + ContentToken &member(unsigned i); + const ContentToken &member(unsigned i) const; + unsigned long grpgtcnt() const; + const ModelGroup *asModelGroup() const; +protected: + void setOrGroup(); +private: + ModelGroup(const ModelGroup &); // undefined + void operator=(const ModelGroup &); // undefined + NCVector > members_; +}; + +class AndModelGroup : public ModelGroup { +public: + AndModelGroup(NCVector > &, OccurrenceIndicator); + Connector connector() const; + unsigned andDepth() const; + unsigned andIndex() const; + unsigned andGroupIndex() const; + const AndModelGroup *andAncestor() const; +private: + AndModelGroup(const AndModelGroup &); // undefined + void operator=(const AndModelGroup &); // undefined + unsigned andDepth_; // number of and groups that contain this + unsigned andIndex_; + unsigned andGroupIndex_; + const AndModelGroup *andAncestor_; + void analyze1(GroupInfo &, const AndModelGroup *, unsigned, + FirstSet &, LastSet &); +}; + +class OrModelGroup : public ModelGroup { +public: + OrModelGroup(NCVector > &, OccurrenceIndicator); + Connector connector() const; +private: + OrModelGroup(const OrModelGroup &); // undefined + void operator=(const OrModelGroup &); // undefined + void analyze1(GroupInfo &, const AndModelGroup *, unsigned, + FirstSet &, LastSet &); +}; + +class SeqModelGroup : public ModelGroup { +public: + SeqModelGroup(NCVector > &, OccurrenceIndicator); + Connector connector() const; +private: + SeqModelGroup(const SeqModelGroup &); // undefined + void operator=(const SeqModelGroup &); // undefined + void analyze1(GroupInfo &, const AndModelGroup *, unsigned, + FirstSet &, LastSet &); +}; + +class AndState; + +class SP_API AndInfo { +public: + AndInfo() { } + inline ~AndInfo() { } + const AndModelGroup *andAncestor; + unsigned andGroupIndex; + Vector follow; +private: + AndInfo(const AndInfo &); // undefined + void operator=(const AndInfo &); // undefined +}; + +// A LeafContentToken is not quite the same as a primitive content token. +// A data tag group is a primitive content token but not a LeafContentToken. + +class SP_API LeafContentToken : public ContentToken { +public: + LeafContentToken(const ElementType *, OccurrenceIndicator); + inline virtual ~LeafContentToken() {}; + unsigned index() const; + unsigned typeIndex() const; + const ElementType *elementType() const; + virtual Boolean isInitial() const; + void addTransitions(const FirstSet &to, + Boolean maybeRequired, + unsigned andClearIndex, + unsigned andDepth, + Boolean isolated, + unsigned requireClear, + unsigned toSet); + void setFinal(); + void finish(Vector &minAndDepth, + Vector &elementTransition, + Vector &, + Boolean &pcdataUnreachable); + Boolean isFinal() const; + Boolean tryTransition(const ElementType *, AndState &, + unsigned &minAndDepth, + const LeafContentToken *&newpos) const; + Boolean tryTransitionPcdata(AndState &, unsigned &minAndDepth, + const LeafContentToken *&newpos) const; + void possibleTransitions(const AndState &, unsigned minAndDepth, Vector &) const; + const LeafContentToken *impliedStartTag(const AndState &andpos, + unsigned minAndDepth) const; + const LeafContentToken *transitionToken(const ElementType *to, + const AndState &andState, + unsigned minAndDepth) const; + void doRequiredTransition(AndState &andState, + unsigned &minAndDepth, + const LeafContentToken *&newpos) const; + unsigned computeMinAndDepth(const AndState&) const; + Boolean orGroupMember() const; + void setOrGroupMember(); + const AndModelGroup *andAncestor() const; + unsigned andDepth() const; + const LeafContentToken *asLeafContentToken() const; +protected: + void analyze1(GroupInfo &, const AndModelGroup *, unsigned, + FirstSet &, LastSet &); + const ElementType *element_; +private: + LeafContentToken(const LeafContentToken &); // undefined + void operator=(const LeafContentToken &); // undefined + void andFinish(Vector &minAndDepth, + Vector &elementTransition, + Vector &, + Boolean &pcdataUnreachable); + unsigned computeMinAndDepth1(const AndState&) const; + unsigned leafIndex_; + unsigned typeIndex_; + Vector follow_; + PackedBoolean isFinal_; + PackedBoolean orGroupMember_; + // 0 none, 1 yes - simple, 2 - compled + char pcdataTransitionType_; + const LeafContentToken *simplePcdataTransition_; + size_t requiredIndex_; + Owner andInfo_; +}; + +class PcdataToken : public LeafContentToken { +public: + PcdataToken(); + void analyze1(GroupInfo &, const AndModelGroup *, unsigned, + FirstSet &, LastSet &); +private: + PcdataToken(const PcdataToken &); // undefined + void operator=(const PcdataToken &); // undefined +}; + +class InitialPseudoToken : public LeafContentToken { +public: + InitialPseudoToken(); + Boolean isInitial() const; +private: + InitialPseudoToken(const InitialPseudoToken &); // undefined + void operator=(const InitialPseudoToken &); // undefined +}; + +class ElementToken : public LeafContentToken { +public: + ElementToken(const ElementType *, OccurrenceIndicator); +private: + ElementToken(const ElementToken &); // undefined + void operator=(const ElementToken &); // undefined +}; + +class DataTagGroup : public SeqModelGroup { +public: + // first content token is a DataTagElementToken, second is PcdataToken + DataTagGroup(NCVector > &, OccurrenceIndicator); +private: + DataTagGroup(const DataTagGroup &); // undefined + void operator=(const DataTagGroup &); // undefined +}; + +class DataTagElementToken : public ElementToken { +public: + DataTagElementToken(const ElementType *, Vector &templates); + DataTagElementToken(const ElementType *, Vector &templates, + Text &paddingTemplate); +private: + DataTagElementToken(const DataTagElementToken &); // undefined + void operator=(const DataTagElementToken &); // undefined + Vector templates_; + Boolean havePaddingTemplate_; + Text paddingTemplate_; +}; + +class SP_API CompiledModelGroup { +public: + CompiledModelGroup(Owner &); + inline ~CompiledModelGroup() {}; + void compile(size_t nElementTypeIndex, + Vector &, + Boolean &pcdataUnreachable); + CompiledModelGroup *copy() const; + const LeafContentToken *initial() const; + unsigned andStateSize() const; + Boolean containsPcdata() const; + const ModelGroup *modelGroup() const; +private: + CompiledModelGroup(const CompiledModelGroup &); // undefined + void operator=(const CompiledModelGroup &); // undefined + Owner modelGroup_; + Owner initial_; + unsigned andStateSize_; + Boolean containsPcdata_; +}; + +class SP_API AndState { +public: + AndState(unsigned); + Boolean isClear(unsigned) const; + void clearFrom(unsigned); + void set(unsigned); + Boolean operator==(const AndState &) const; + Boolean operator!=(const AndState &) const; +private: + void clearFrom1(unsigned); + unsigned clearFrom_; + Vector v_; +}; + +class SP_API MatchState { +public: + MatchState(); + MatchState(const CompiledModelGroup *); // may be 0 + Boolean tryTransition(const ElementType *); + Boolean tryTransitionPcdata(); + void possibleTransitions(Vector &) const; + Boolean isFinished() const; + const LeafContentToken *impliedStartTag() const; + const LeafContentToken *invalidExclusion(const ElementType *) const; + void doRequiredTransition(); + const LeafContentToken *currentPosition() const; + Boolean operator==(const MatchState &) const; + Boolean operator!=(const MatchState &) const; +private: + const LeafContentToken *pos_; + AndState andState_; + unsigned minAndDepth_; +}; + +inline +ContentToken::OccurrenceIndicator ContentToken::occurrenceIndicator() const +{ + return occurrenceIndicator_; +} + +inline +unsigned LeafContentToken::index() const +{ + return leafIndex_; +} + +inline +unsigned LeafContentToken::typeIndex() const +{ + return typeIndex_; +} + +inline +Boolean ContentToken::inherentlyOptional() const +{ + return inherentlyOptional_; +} + +inline +const ElementType *LeafContentToken::elementType() const +{ + return element_; +} + +inline +unsigned AndModelGroup::andDepth() const +{ + return andDepth_; +} + +inline +unsigned AndModelGroup::andIndex() const +{ + return andIndex_; +} + +inline +unsigned ModelGroup::nMembers() const +{ + return members_.size(); +} + +inline +unsigned ContentToken::andDepth(const AndModelGroup *andAncestor) +{ + return andAncestor ? andAncestor->andDepth() + 1 : 0; +} + +inline +unsigned ContentToken::andIndex(const AndModelGroup *andAncestor) +{ + return (andAncestor + ? andAncestor->andIndex() + andAncestor->nMembers() + : 0); +} + +inline +ContentToken &ModelGroup::member(unsigned i) +{ + return *members_[i]; +} + +inline +const ContentToken &ModelGroup::member(unsigned i) const +{ + return *members_[i]; +} + +inline +void LeafContentToken::setFinal() +{ + isFinal_ = 1; +} + +inline +Boolean LeafContentToken::isFinal() const +{ + return isFinal_; +} + +inline +Boolean LeafContentToken::orGroupMember() const +{ + return orGroupMember_; +} + +inline +unsigned CompiledModelGroup::andStateSize() const +{ + return andStateSize_; +} + +inline +Boolean CompiledModelGroup::containsPcdata() const +{ + return containsPcdata_; +} + +inline +const AndModelGroup *AndModelGroup::andAncestor() const +{ + return andAncestor_; +} + +inline +unsigned AndModelGroup::andGroupIndex() const +{ + return andGroupIndex_; +} + +inline +const LeafContentToken *CompiledModelGroup::initial() const +{ + return initial_.pointer(); +} + +inline +const ModelGroup *CompiledModelGroup::modelGroup() const +{ + return modelGroup_.pointer(); +} + +inline +const AndModelGroup *LeafContentToken::andAncestor() const +{ + return andInfo_ ? andInfo_->andAncestor : 0; +} + +inline +unsigned LeafContentToken::andDepth() const +{ + return andInfo_ ? ContentToken::andDepth(andInfo_->andAncestor) : 0; +} + +inline +unsigned LeafContentToken::computeMinAndDepth(const AndState &andState) const +{ + return andInfo_ ? computeMinAndDepth1(andState) : 0; +} + +inline +Boolean LeafContentToken::tryTransitionPcdata(AndState &andState, + unsigned &minAndDepth, + const LeafContentToken *&newpos) + const +{ + if (pcdataTransitionType_ == 1) { + newpos = simplePcdataTransition_; + return 1; + } + else if (pcdataTransitionType_ == 0) + return 0; + else + return tryTransition(0, andState, minAndDepth, newpos); +} + +inline +Boolean MatchState::tryTransition(const ElementType *to) +{ + return pos_->tryTransition(to, andState_, minAndDepth_, pos_); +} + +inline +Boolean MatchState::tryTransitionPcdata() +{ + return pos_->tryTransitionPcdata(andState_, minAndDepth_, pos_); +} + +inline +void MatchState::possibleTransitions(Vector &v) const +{ + pos_->possibleTransitions(andState_, minAndDepth_, v); +} + +inline +Boolean MatchState::isFinished() const +{ + return pos_->isFinal() && minAndDepth_ == 0; +} + +inline +const LeafContentToken * +MatchState::impliedStartTag() const +{ + return pos_->impliedStartTag(andState_, minAndDepth_); +} + +inline +void MatchState::doRequiredTransition() +{ + pos_->doRequiredTransition(andState_, minAndDepth_, pos_); +} + +inline +const LeafContentToken *MatchState::currentPosition() const +{ + return pos_; +} + +inline +Boolean MatchState::operator!=(const MatchState &state) const +{ + return !(*this == state); +} + +inline +Boolean AndState::isClear(unsigned i) const +{ + return v_[i] == 0; +} + +inline +void AndState::set(unsigned i) +{ + v_[i] = 1; + if (i >= clearFrom_) + clearFrom_ = i + 1; +} + +inline +void AndState::clearFrom(unsigned i) +{ + if (i < clearFrom_) + clearFrom1(i); +} + +inline +Boolean AndState::operator!=(const AndState &state) const +{ + return !(*this == state); +} + + +inline +size_t FirstSet::size() const +{ + return v_.size(); +} + +inline +LeafContentToken *FirstSet::token(size_t i) const +{ + return v_[i]; +} + +inline +size_t FirstSet::requiredIndex() const +{ + return requiredIndex_; +} + +inline +void FirstSet::setNotRequired() +{ + requiredIndex_ = size_t(-1); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ContentToken_INCLUDED */ diff --git a/include/CopyOwner.cxx b/include/CopyOwner.cxx new file mode 100644 index 0000000..df62ab3 --- /dev/null +++ b/include/CopyOwner.cxx @@ -0,0 +1,27 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef CopyOwner_DEF_INCLUDED +#define CopyOwner_DEF_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +CopyOwner::CopyOwner(const CopyOwner &o) +: Owner(o.pointer() ? o.pointer()->copy() : 0) +{ +} + +template +void CopyOwner::operator=(const CopyOwner &o) +{ + Owner::operator=(o.pointer() ? o.pointer()->copy() : 0); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not CopyOwner_DEF_INCLUDED */ diff --git a/include/CopyOwner.h b/include/CopyOwner.h new file mode 100644 index 0000000..bc0671b --- /dev/null +++ b/include/CopyOwner.h @@ -0,0 +1,31 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef CopyOwner_INCLUDED +#define CopyOwner_INCLUDED 1 + +#include "Owner.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class CopyOwner : public Owner { +public: + CopyOwner() { } + CopyOwner(T *p) : Owner(p) { } + CopyOwner(const CopyOwner &); + void operator=(const CopyOwner &o); + void operator=(T *p) { Owner::operator=(p); } +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not CopyOwner_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "CopyOwner.cxx" +#endif diff --git a/include/DescriptorManager.h b/include/DescriptorManager.h new file mode 100644 index 0000000..d753231 --- /dev/null +++ b/include/DescriptorManager.h @@ -0,0 +1,50 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef DescriptorManager_INCLUDED +#define DescriptorManager_INCLUDED 1 + +#include "Boolean.h" +#include "List.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class DescriptorManager; + +class SP_API DescriptorUser { +public: + DescriptorUser(DescriptorManager *); + virtual ~DescriptorUser(); + virtual Boolean suspend(); + void managerDeleted(); + void acquireD(); + void releaseD(); + DescriptorManager *manager() const; +private: + DescriptorManager *manager_; +}; + +class SP_API DescriptorManager { +public: + DescriptorManager(int maxD); + ~DescriptorManager(); + void acquireD(); + void releaseD(); + void addUser(DescriptorUser *); + void removeUser(DescriptorUser *); +private: + DescriptorManager(const DescriptorManager &); // undefined + void operator=(const DescriptorManager &); // undefined + + int usedD_; + int maxD_; + List users_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not DescriptorManager_INCLUDED */ diff --git a/include/Dtd.h b/include/Dtd.h new file mode 100644 index 0000000..e4a3440 --- /dev/null +++ b/include/Dtd.h @@ -0,0 +1,486 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Dtd_INCLUDED +#define Dtd_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "NamedTable.h" +#include "NamedResourceTable.h" +#include "ElementType.h" +#include "Notation.h" +#include "Entity.h" +#include "ShortReferenceMap.h" +#include "Resource.h" +#include "StringC.h" +#include "StringResource.h" +#include "Boolean.h" +#include "Vector.h" +#include "HashTable.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Syntax; +class ParserState; + +class SP_API Dtd : public Resource { +public: + typedef NamedTableIter ElementTypeIter; + typedef ConstNamedTableIter ConstElementTypeIter; + typedef NamedTableIter RankStemIter; + typedef ConstNamedTableIter ConstRankStemIter; + typedef NamedTableIter ShortReferenceMapIter; + typedef ConstNamedResourceTableIter ConstNotationIter; + typedef NamedResourceTableIter NotationIter; + typedef ConstNamedResourceTableIter ConstEntityIter; + typedef NamedResourceTableIter EntityIter; + Dtd(const StringC &name, Boolean isBase); + ~Dtd(); + ConstPtr lookupEntity(Boolean isParameter, const StringC &) const; + const Entity *lookupEntityTemp(Boolean isParameter, const StringC &) const; + Ptr lookupEntity(Boolean isParameter, const StringC &); + Ptr insertEntity(const Ptr &, Boolean replace = 0); + Ptr removeEntity(Boolean isParameter, const StringC &); + ConstEntityIter generalEntityIter() const; + EntityIter generalEntityIter(); + ConstEntityIter parameterEntityIter() const; + EntityIter parameterEntityIter(); + + ConstPtr defaultEntity() const; + const Entity *defaultEntityTemp() const; + void setDefaultEntity(const Ptr &, ParserState &); + const ConstPtr > &namePointer() const; + const StringC &name() const; + + const ElementType *lookupElementType(const StringC &) const; + ElementType *lookupElementType(const StringC &); + ElementType *removeElementType(const StringC &); + ElementType *insertElementType(ElementType *); + size_t nElementTypeIndex() const; + size_t allocElementTypeIndex(); + ConstElementTypeIter elementTypeIter() const; + ElementTypeIter elementTypeIter(); + + const RankStem *lookupRankStem(const StringC &) const; + RankStem *lookupRankStem(const StringC &); + RankStem *insertRankStem(RankStem *); + size_t nRankStem() const; + ConstRankStemIter rankStemIter() const; + RankStemIter rankStemIter(); + + const ShortReferenceMap *lookupShortReferenceMap(const StringC &) const; + ShortReferenceMap *lookupShortReferenceMap(const StringC &); + ShortReferenceMap *insertShortReferenceMap(ShortReferenceMap *); + ShortReferenceMapIter shortReferenceMapIter(); + + Boolean shortrefIndex(const StringC &, const Syntax &, size_t &index); + size_t nShortref() const; + const StringC &shortref(size_t i) const; + void addNeededShortref(const StringC &); + + ConstPtr lookupNotation(const StringC &) const; + const Notation *lookupNotationTemp(const StringC &) const; + Ptr lookupNotation(const StringC &); + Ptr insertNotation(const Ptr &); + Ptr removeNotation(const StringC &); + ConstNotationIter notationIter() const; + NotationIter notationIter(); + + size_t allocCurrentAttributeIndex(); + size_t nCurrentAttribute() const; + size_t allocElementDefinitionIndex(); + size_t nElementDefinition() const; + size_t allocAttributeDefinitionListIndex(); + size_t nAttributeDefinitionList() const; + const ElementType *documentElementType() const; + Boolean isBase() const; + Boolean isInstantiated() const; + void instantiate(); + + Ptr &implicitElementAttributeDef(); + void setImplicitElementAttributeDef(const Ptr &); + Ptr &implicitNotationAttributeDef(); + void setImplicitNotationAttributeDef(const Ptr &); +private: + Dtd(const Dtd &); // undefined + void operator=(const Dtd &); // undefined + NamedResourceTable generalEntityTable_; + NamedResourceTable parameterEntityTable_; + ConstPtr defaultEntity_; + ConstPtr > name_; + NamedTable elementTypeTable_; + NamedTable rankStemTable_; + NamedTable shortReferenceMapTable_; + NamedResourceTable notationTable_; + size_t nCurrentAttribute_; + size_t nElementDefinition_; + size_t nAttributeDefinitionList_; + size_t nElementType_; + ElementType *documentElementType_; + Vector shortrefs_; + HashTable shortrefTable_; + Boolean isBase_; + Boolean isInstantitated_; + Ptr implicitElementAttributeDef_; + Ptr implicitNotationAttributeDef_; +}; + +inline +ConstPtr Dtd::lookupEntity(Boolean isParameter, const StringC &name) + const +{ + return (isParameter + ? ¶meterEntityTable_ + : &generalEntityTable_)->lookupConst(name); +} + +inline +const Entity *Dtd::lookupEntityTemp(Boolean isParameter, const StringC &name) + const +{ + return (isParameter + ? ¶meterEntityTable_ + : &generalEntityTable_)->lookupTemp(name); +} + +inline +Ptr Dtd::lookupEntity(Boolean isParameter, const StringC &name) +{ + return (isParameter + ? ¶meterEntityTable_ + : &generalEntityTable_)->lookup(name); +} + +inline +Ptr +Dtd::insertEntity(const Ptr &entity, Boolean replace) +{ + return ((entity->declType() == Entity::parameterEntity + || entity->declType() == Entity::doctype) + ? ¶meterEntityTable_ + : &generalEntityTable_)->insert(entity, replace); +} + +inline +Ptr Dtd::removeEntity(Boolean isParameter, const StringC &name) +{ + return (isParameter + ? ¶meterEntityTable_ + : &generalEntityTable_)->remove(name); +} + +inline +Dtd::ConstEntityIter Dtd::generalEntityIter() const +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return ConstNamedResourceTableIter(generalEntityTable_); +} + +inline +Dtd::EntityIter Dtd::generalEntityIter() +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return NamedResourceTableIter(generalEntityTable_); +} + +inline +Dtd::ConstEntityIter Dtd::parameterEntityIter() const +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return ConstNamedResourceTableIter(parameterEntityTable_); +} + +inline +Dtd::EntityIter Dtd::parameterEntityIter() +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return NamedResourceTableIter(parameterEntityTable_); +} + +inline +ConstPtr Dtd::defaultEntity() const +{ + return defaultEntity_; +} + +inline +const Entity *Dtd::defaultEntityTemp() const +{ + return defaultEntity_.pointer(); +} + +inline +const ConstPtr > &Dtd::namePointer() const +{ + return name_; +} + +inline +const StringC &Dtd::name() const +{ + return *name_; +} + +inline +size_t Dtd::allocCurrentAttributeIndex() +{ + return nCurrentAttribute_++; +} + +inline +size_t Dtd::nCurrentAttribute() const +{ + return nCurrentAttribute_; +} + +inline +size_t Dtd::allocElementDefinitionIndex() +{ + return nElementDefinition_++; +} + +inline +size_t Dtd::nElementDefinition() const +{ + return nElementDefinition_; +} + +inline +size_t Dtd::allocAttributeDefinitionListIndex() +{ + return nAttributeDefinitionList_++; +} + +inline +size_t Dtd::nAttributeDefinitionList() const +{ + return nAttributeDefinitionList_; +} + +inline +const ElementType *Dtd::lookupElementType(const StringC &name) const +{ + return elementTypeTable_.lookup(name); +} + +inline +ElementType *Dtd::lookupElementType(const StringC &name) +{ + return elementTypeTable_.lookup(name); +} + +inline +ElementType *Dtd::insertElementType(ElementType *e) +{ + return elementTypeTable_.insert(e); +} + +inline +Dtd::ElementTypeIter Dtd::elementTypeIter() +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return NamedTableIter(elementTypeTable_); +} + +inline +Dtd::ConstElementTypeIter Dtd::elementTypeIter() const +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return ConstNamedTableIter(elementTypeTable_); +} + +inline +Dtd::RankStemIter Dtd::rankStemIter() +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return NamedTableIter(rankStemTable_); +} + +inline +Dtd::ConstRankStemIter Dtd::rankStemIter() const +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return ConstNamedTableIter(rankStemTable_); +} + +inline +ElementType *Dtd::removeElementType(const StringC &name) +{ + return elementTypeTable_.remove(name); +} + +inline +size_t Dtd::nElementTypeIndex() const +{ + // index 0 is reserved for #pcdata + return 1 + nElementType_; +} + +inline +size_t Dtd::allocElementTypeIndex() +{ + return 1 + nElementType_++; +} + +inline +const RankStem *Dtd::lookupRankStem(const StringC &name) const +{ + return rankStemTable_.lookup(name); +} + +inline +RankStem *Dtd::lookupRankStem(const StringC &name) +{ + return rankStemTable_.lookup(name); +} + +inline +RankStem *Dtd::insertRankStem(RankStem *e) +{ + return rankStemTable_.insert(e); +} + +inline +size_t Dtd::nRankStem() const +{ + return rankStemTable_.count(); +} + +inline +ConstPtr Dtd::lookupNotation(const StringC &name) const +{ + return notationTable_.lookupConst(name); +} + +inline +const Notation *Dtd::lookupNotationTemp(const StringC &name) const +{ + return notationTable_.lookupTemp(name); +} + +inline +Ptr Dtd::lookupNotation(const StringC &name) +{ + return notationTable_.lookup(name); +} + +inline +Ptr Dtd::insertNotation(const Ptr &nt) +{ + return notationTable_.insert(nt); +} + +inline +Dtd::ConstNotationIter Dtd::notationIter() const +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return ConstNamedResourceTableIter(notationTable_); +} + +inline +Dtd::NotationIter Dtd::notationIter() +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return NamedResourceTableIter(notationTable_); +} + +inline +Ptr Dtd::removeNotation(const StringC &name) +{ + return notationTable_.remove(name); +} + +inline +const ElementType *Dtd::documentElementType() const +{ + return documentElementType_; +} + +inline +const ShortReferenceMap *Dtd::lookupShortReferenceMap(const StringC &name) const +{ + return shortReferenceMapTable_.lookup(name); +} + +inline +ShortReferenceMap *Dtd::lookupShortReferenceMap(const StringC &name) +{ + return shortReferenceMapTable_.lookup(name); +} + +inline +ShortReferenceMap *Dtd::insertShortReferenceMap(ShortReferenceMap *map) +{ + return shortReferenceMapTable_.insert(map); +} + +inline +Dtd::ShortReferenceMapIter Dtd::shortReferenceMapIter() +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return NamedTableIter(shortReferenceMapTable_); +} + +inline +Boolean Dtd::isBase() const +{ + return isBase_; +} + +inline +size_t Dtd::nShortref() const +{ + return shortrefs_.size(); +} + +inline +const StringC &Dtd::shortref(size_t i) const +{ + return shortrefs_[i]; +} + +inline +Ptr &Dtd::implicitElementAttributeDef() +{ + return implicitElementAttributeDef_; +} + +inline +void Dtd::setImplicitElementAttributeDef(const Ptr &def) +{ + implicitElementAttributeDef_ = def; +} + +inline +Ptr &Dtd::implicitNotationAttributeDef() +{ + return implicitNotationAttributeDef_; +} + +inline +void Dtd::setImplicitNotationAttributeDef(const Ptr &def) +{ + implicitNotationAttributeDef_ = def; +} + +inline +Boolean Dtd::isInstantiated() const +{ + return isInstantitated_; +} + +inline +void Dtd::instantiate() +{ + isInstantitated_ = 1; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Dtd_INCLUDED */ diff --git a/include/EUCJPCodingSystem.h b/include/EUCJPCodingSystem.h new file mode 100644 index 0000000..842e4b6 --- /dev/null +++ b/include/EUCJPCodingSystem.h @@ -0,0 +1,23 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef EUCJPCodingSystem_INCLUDED +#define EUCJPCodingSystem_INCLUDED 1 + +#include "CodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API EUCJPCodingSystem : public CodingSystem { +public: + Decoder *makeDecoder() const; + Encoder *makeEncoder() const; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not EUCJPCodingSystem_INCLUDED */ diff --git a/include/ElementType.h b/include/ElementType.h new file mode 100644 index 0000000..c08c926 --- /dev/null +++ b/include/ElementType.h @@ -0,0 +1,327 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef ElementType_INCLUDED +#define ElementType_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include +#include "Boolean.h" +#include "Vector.h" +#include "Owner.h" +#include "Location.h" +#include "Ptr.h" +#include "Named.h" +#include "Vector.h" +#include "Attributed.h" +#include "Mode.h" +#include "ContentToken.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class ElementType; +class ShortReferenceMap; +class RankStem; + +class SP_API ElementDefinition : public Resource { +public: + enum DeclaredContent { modelGroup, any, cdata, rcdata, empty }; + enum OmitFlags { omitStart = 01, omitEnd = 02, omitSpec = 04 }; + enum { undefinedIndex = -1 }; + ElementDefinition(const Location &location, + size_t index, + unsigned char omitFlags, + DeclaredContent declaredContent, + Boolean allowImmediateRecursion = 1); + ElementDefinition(const Location &location, + size_t index, + unsigned char omitFlags, + DeclaredContent declaredContent, + Owner &modelGroup); + ~ElementDefinition(); + const CompiledModelGroup *compiledModelGroup() const; + DeclaredContent declaredContent() const; + // Was the omitted tag minimization specified? + Boolean omittedTagSpec() const; + Boolean canOmitStartTag() const; + Boolean canOmitEndTag() const; + size_t nRankStems() const; + const RankStem *rankStem(size_t i) const; + const StringC &rankSuffix() const; + size_t nInclusions() const; + const ElementType *inclusion(size_t) const; + size_t nExclusions() const; + const ElementType *exclusion(size_t) const; + Boolean undefined() const; + Boolean allowImmediateRecursion() const; + void setInclusions(Vector &inclusions); + void setExclusions(Vector &exclusions); + void setRank(StringC &suffix, Vector &rankStems); + Mode mode(Boolean netEnabled) const; + const Location &location() const; +private: + ElementDefinition(const ElementDefinition &); // undefined + void operator=(const ElementDefinition &); // undefined + void computeMode(); + + Location location_; + size_t index_; + unsigned char omitFlags_; + DeclaredContent declaredContent_; + Boolean allowImmediateRecursion_; + Owner modelGroup_; + Vector inclusions_; + Vector exclusions_; + // rankStems_ contains all the rank stems in the ranked group in this + // definition. + Vector rankStems_; + StringC rankSuffix_; + Mode mode_; + Mode netMode_; +}; + +class SP_API RankStem : public Named { +public: + RankStem(const StringC &, size_t); + size_t index() const; + void addDefinition(const ConstPtr &); + size_t nDefinitions() const; + const ElementDefinition *definition(size_t) const; +private: + RankStem(const RankStem &); // undefined + void operator=(const RankStem &); // undefined + size_t index_; + Vector > def_; +}; + +class SP_API ElementType : public Named, public Attributed { +public: + ElementType(const StringC &, size_t); + void setElementDefinition(const ConstPtr &, + size_t defIndex); + void setMap(const ShortReferenceMap *); + void setRankStem(RankStem *); + Boolean undefined() const; + void setOrigName(StringC &origName); + const ElementDefinition *definition() const; + Boolean isRankedElement() const; + const RankStem *rankedElementRankStem() const; + size_t index() const; + const ShortReferenceMap *map() const; + void swap(ElementType &); + const StringC &origName() const; +private: + StringC origName_; + ElementType(const ElementType &); // undefined + void operator=(const ElementType &); // undefined + size_t index_; + size_t defIndex_; // index in the group having same definition + ConstPtr def_; + const ShortReferenceMap *map_; +}; + +inline +const CompiledModelGroup *ElementDefinition::compiledModelGroup() const +{ + return modelGroup_.pointer(); +} + +inline +ElementDefinition::DeclaredContent ElementDefinition::declaredContent() const +{ + return declaredContent_; +} + +inline +Boolean ElementDefinition::canOmitStartTag() const +{ + return (omitFlags_ & omitStart) != 0; +} + +inline +Boolean ElementDefinition::canOmitEndTag() const +{ + return (omitFlags_ & omitEnd) != 0; +} + +inline +Boolean ElementDefinition::omittedTagSpec() const +{ + return (omitFlags_ & omitSpec) != 0; +} + +inline +size_t ElementDefinition::nRankStems() const +{ + return rankStems_.size(); +} + +inline +const StringC &ElementDefinition::rankSuffix() const +{ + return rankSuffix_; +} + +inline +const RankStem *ElementDefinition::rankStem(size_t i) const +{ + return rankStems_[i]; +} + +inline +const ElementType *ElementDefinition::inclusion(size_t i) const +{ + return inclusions_[i]; +} + +inline +size_t ElementDefinition::nInclusions() const +{ + return inclusions_.size(); +} + +inline +const ElementType *ElementDefinition::exclusion(size_t i) const +{ + return exclusions_[i]; +} + +inline +size_t ElementDefinition::nExclusions() const +{ + return exclusions_.size(); +} + +inline +Boolean ElementDefinition::undefined() const +{ + return index_ == size_t(undefinedIndex); +} + +inline +Boolean ElementDefinition::allowImmediateRecursion() const +{ + return allowImmediateRecursion_; +} + +inline +const Location &ElementDefinition::location() const +{ + return location_; +} + +inline +void ElementDefinition::setInclusions(Vector &inclusions) +{ + inclusions.swap(inclusions_); +} + +inline +void ElementDefinition::setExclusions(Vector &exclusions) +{ + exclusions.swap(exclusions_); +} + +inline +void ElementDefinition::setRank(StringC &rankSuffix, + Vector &rankStems) +{ + rankStems.swap(rankStems_); + rankSuffix.swap(rankSuffix_); +} + +inline +void ElementType::setOrigName(StringC &origName) +{ + origName.swap(origName_); +} + +inline +Boolean ElementType::undefined() const +{ + return def_->undefined(); +} + +inline +Boolean ElementType::isRankedElement() const +{ + return def_->nRankStems() > 0; +} + +inline +const ElementDefinition *ElementType::definition() const +{ + return def_.pointer(); +} + +inline +void ElementType::setElementDefinition(const ConstPtr &def, + size_t defIndex) +{ + def_ = def; + defIndex_ = defIndex; +} + +inline +size_t ElementType::index() const +{ + return index_; +} + +inline +const RankStem *ElementType::rankedElementRankStem() const +{ + return def_->rankStem(defIndex_); +} + +inline +void ElementType::setMap(const ShortReferenceMap *map) +{ + map_ = map; +} + +inline +const StringC &ElementType::origName() const +{ + return origName_; +} + +inline +const ShortReferenceMap *ElementType::map() const +{ + return map_; +} + +inline +size_t RankStem::index() const +{ + return index_; +} + +inline +size_t RankStem::nDefinitions() const +{ + return def_.size(); +} + +inline +const ElementDefinition *RankStem::definition(size_t i) const +{ + return def_[i].pointer(); +} + +inline +Mode ElementDefinition::mode(Boolean netEnabled) const +{ + return netEnabled ? netMode_ : mode_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ElementType_INCLUDED */ diff --git a/include/Entity.h b/include/Entity.h new file mode 100644 index 0000000..fc75698 --- /dev/null +++ b/include/Entity.h @@ -0,0 +1,352 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Entity_INCLUDED +#define Entity_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "StringC.h" +#include "NamedResource.h" +#include "Location.h" +#include "Owner.h" +#include "Attribute.h" +#include "ExternalId.h" +#include "Text.h" +#include "SubstTable.h" +#include "StringResource.h" +#include "Allocator.h" +#include "EntityDecl.h" +#include "Markup.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Messenger; +class InputSource; +class EntityOrigin; +class ParserState; +class ExternalEntity; +class ExternalDataEntity; +class SubdocEntity; +class InternalEntity; +class Notation; + +class SP_API Entity : public EntityDecl { +public: + Entity(const StringC &name, DeclType declType, DataType dataType, + const Location &defLocation); + // reference in a literal + virtual void litReference(Text &, ParserState &, + const Ptr &, + Boolean squeezeSpaces) + const; + // reference in a declaration + virtual void declReference(ParserState &, + const Ptr &) + const; + // reference in a declaration subset + virtual void dsReference(ParserState &, + const Ptr &) + const; + // reference in content + virtual void contentReference(ParserState &, + const Ptr &) + const; + // reference in rcdata + virtual void rcdataReference(ParserState &, + const Ptr &) + const; + // for entity name attribute checking + virtual Boolean isDataOrSubdoc() const; + // for determining whether we need to validate as character data + virtual Boolean isCharacterData() const; + virtual const ExternalDataEntity *asExternalDataEntity() const; + virtual const SubdocEntity *asSubdocEntity() const; + virtual const InternalEntity *asInternalEntity() const; + virtual const ExternalEntity *asExternalEntity() const; + // needed for default entity + virtual Entity *copy() const = 0; + virtual void generateSystemId(ParserState &); + void setUsed(); + Boolean used() const; + void setDefaulted(); + Boolean defaulted() const; +protected: + virtual void checkRef(ParserState &) const; + static void checkEntlvl(ParserState &); + Boolean checkNotOpen(ParserState &) const; +private: + virtual void normalReference(ParserState &, + const Ptr &, + Boolean generateEvent) const = 0; + PackedBoolean used_; + PackedBoolean defaulted_; +}; + +class SP_API InternalEntity : public Entity { +public: + InternalEntity(const StringC &, DeclType declType, DataType dataType, + const Location &, Text &); + const StringC &string() const; + const Text &text() const; + const InternalEntity *asInternalEntity() const; +protected: + void checkRef(ParserState &) const; + Text text_; +}; + +class SP_API PiEntity : public InternalEntity { +public: + PiEntity(const StringC &, DeclType, const Location &, Text &); + void litReference(Text &, ParserState &, + const Ptr &, + Boolean) const; + void normalReference(ParserState &, + const Ptr &, + Boolean) const; + void declReference(ParserState &, + const Ptr &) const; + void rcdataReference(ParserState &, + const Ptr &) const; + Entity *copy() const; +}; + +class SP_API InternalDataEntity : public InternalEntity { +public: + InternalDataEntity(const StringC &, DataType, const Location &, Text &); + void declReference(ParserState &, + const Ptr &) const; + Boolean isDataOrSubdoc() const; +}; + +class SP_API InternalCdataEntity : public InternalDataEntity { +public: + InternalCdataEntity(const StringC &, const Location &, Text &); + void normalReference(ParserState &, + const Ptr &, + Boolean) const; + void litReference(Text &, ParserState &, + const Ptr &, + Boolean) const; + Entity *copy() const; + Boolean isCharacterData() const; +}; + +class SP_API PredefinedEntity : public InternalCdataEntity { +public: + PredefinedEntity(const StringC &s, const Location &l, Text &t) + : InternalCdataEntity(s,l,t) { } +protected: + void checkRef(ParserState &) const; +}; + +class SP_API InternalSdataEntity : public InternalDataEntity { +public: + InternalSdataEntity(const StringC &, const Location &, Text &); + void normalReference(ParserState &, + const Ptr &, + Boolean) const; + void litReference(Text &, ParserState &, + const Ptr &, + Boolean) const; + Entity *copy() const; + Boolean isCharacterData() const; +}; + +class SP_API InternalTextEntity : public InternalEntity { +public: + enum Bracketed { + none, + starttag, + endtag, + ms, + md + }; + InternalTextEntity(const StringC &, DeclType, const Location &, Text &, + Bracketed); + Entity *copy() const; +private: + void normalReference(ParserState &, + const Ptr &, + Boolean) const; + void litReference(Text &, ParserState &, + const Ptr &, + Boolean) const; + Bracketed bracketed_; +}; + +class SP_API ExternalEntity : public Entity { +public: + ExternalEntity(const StringC &, DeclType, DataType, const Location &, + const ExternalId &); + const ExternalId &externalId() const; + const ExternalEntity *asExternalEntity() const; + void generateSystemId(ParserState &); + const StringC *systemIdPointer() const; + const StringC *effectiveSystemIdPointer() const; + const StringC *publicIdPointer() const; +protected: + void checkRef(ParserState &) const; +private: + ExternalId externalId_; +}; + +class SP_API ExternalTextEntity : public ExternalEntity { +public: + ExternalTextEntity(const StringC &, DeclType, const Location &, + const ExternalId &); + Entity *copy() const; +private: + void normalReference(ParserState &, + const Ptr &, + Boolean) const; + void litReference(Text &, ParserState &, + const Ptr &, + Boolean) const; +}; + +class SP_API ExternalNonTextEntity : public ExternalEntity { +public: + ExternalNonTextEntity(const StringC &, DeclType, DataType, + const Location &, const ExternalId &); + Boolean isDataOrSubdoc() const; + void litReference(Text &, ParserState &, + const Ptr &, + Boolean) const; + void rcdataReference(ParserState &, + const Ptr &) const; + void normalReference(ParserState &, + const Ptr &, + Boolean) const; + void dsReference(ParserState &, + const Ptr &) const; + Boolean isCharacterData() const; +}; + +class SP_API ExternalDataEntity : public ExternalNonTextEntity { +public: + ExternalDataEntity(const StringC &, DataType, const Location &, + const ExternalId &, const ConstPtr &, + AttributeList &, DeclType = generalEntity); + const AttributeList &attributes() const; + const Notation *notation() const; + const ExternalDataEntity *asExternalDataEntity() const; + Entity *copy() const; + void contentReference(ParserState &, + const Ptr &) const; + void setNotation(const ConstPtr &, AttributeList &); +private: + ConstPtr notation_; + AttributeList attributes_; +}; + +class SP_API SubdocEntity : public ExternalNonTextEntity { +public: + SubdocEntity(const StringC &, const Location &, const ExternalId &); + const SubdocEntity *asSubdocEntity() const; + Entity *copy() const; + void contentReference(ParserState &, + const Ptr &) const; +private: +}; + +class SP_API IgnoredEntity : public Entity { +public: + IgnoredEntity(const StringC &, DeclType declType); + Entity *copy() const; + void litReference(Text &, ParserState &, + const Ptr &, + Boolean squeezeSpaces) const; + void declReference(ParserState &, + const Ptr &) const; +private: + void normalReference(ParserState &, + const Ptr &, + Boolean generateEvent) const; +}; + +class SP_API EntityOrigin : public InputSourceOrigin { +public: + virtual ~EntityOrigin(); + static EntityOrigin *make(Allocator &, const ConstPtr &); + static EntityOrigin *make(Allocator &, + const ConstPtr &, + const Location &refLocation); + static EntityOrigin *make(Allocator &, + const ConstPtr &, + const Location &refLocation, + Index refLength, + Owner &markup); + static EntityOrigin *make(const ConstPtr &, + const Location &refLocation, + Index refLength, + Owner &markup); + static EntityOrigin *make(const ConstPtr &, + const Location &refLocation); + static const size_t allocSize; +}; + +inline +Boolean Entity::used() const +{ + return used_; +} + +inline +void Entity::setUsed() +{ + used_ = 1; +} + +inline +Boolean Entity::defaulted() const +{ + return defaulted_; +} + +inline +void Entity::setDefaulted() +{ + defaulted_ = 1; +} + +inline +const StringC &InternalEntity::string() const +{ + return text_.string(); +} + +inline +const Text &InternalEntity::text() const +{ + return text_; +} + +inline +const ExternalId &ExternalEntity::externalId() const +{ + return externalId_; +} + +inline +const AttributeList &ExternalDataEntity::attributes() const +{ + return attributes_; +} + +inline +const Notation *ExternalDataEntity::notation() const +{ + return notation_.pointer(); +} + + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Entity_INCLUDED */ diff --git a/include/EntityApp.h b/include/EntityApp.h new file mode 100644 index 0000000..639901a --- /dev/null +++ b/include/EntityApp.h @@ -0,0 +1,49 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef EntityApp_INCLUDED +#define EntityApp_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "CmdLineApp.h" +#include "CharsetInfo.h" +#include "Boolean.h" +#include "ExtendEntityManager.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API EntityApp : public CmdLineApp { +public: + EntityApp(const char *requiredInternalCode = 0); + void processOption(AppChar opt, const AppChar *arg); + virtual int processSysid(const StringC &) = 0; + int processArguments(int argc, AppChar **files); + Boolean makeSystemId(int nFiles, AppChar *const *files, StringC &result); + Ptr &entityManager(); +protected: + void clearEntityManager(); +private: + Vector searchDirs_; + Vector catalogSysids_; + Boolean mapCatalogDocument_; + Boolean restrictFileReading_; + Ptr entityManager_; +}; + +inline +void EntityApp::clearEntityManager() +{ + resetCodingSystemKit(); + entityManager_.clear(); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not EntityApp_INCLUDED */ diff --git a/include/EntityCatalog.h b/include/EntityCatalog.h new file mode 100644 index 0000000..aa285a7 --- /dev/null +++ b/include/EntityCatalog.h @@ -0,0 +1,57 @@ +#ifndef EntityCatalog_INCLUDED +#define EntityCatalog_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "StringC.h" +#include "Resource.h" +#include "SubstTable.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Messenger; +class CharsetInfo; +class EntityDecl; + +class SP_API EntityCatalog : public Resource { +public: + class SP_API Syntax { + public: + virtual Boolean namecaseGeneral() const = 0; + virtual Boolean namecaseEntity() const = 0; + virtual const SubstTable &upperSubstTable() const = 0; + virtual const StringC &peroDelim() const = 0; + virtual ~Syntax() = 0; + }; + virtual ~EntityCatalog(); + virtual Boolean sgmlDecl(const CharsetInfo &, + Messenger &, + const StringC &, + StringC &) const; + virtual Boolean lookup(const EntityDecl &, + const Syntax &, + const CharsetInfo &, + Messenger &, + StringC &) const; + virtual Boolean lookupPublic(const StringC &, + const CharsetInfo &, + Messenger &, + StringC &) const; + // This is for a character described by a minimum literal + // in the SGML declaration. + virtual Boolean lookupChar(const StringC &, + const CharsetInfo &, + Messenger &, + UnivChar &) const; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not EntityCatalog_INCLUDED */ diff --git a/include/EntityDecl.h b/include/EntityDecl.h new file mode 100644 index 0000000..3888288 --- /dev/null +++ b/include/EntityDecl.h @@ -0,0 +1,107 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef EntityDecl_INCLUDED +#define EntityDecl_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "NamedResource.h" +#include "Ptr.h" +#include "StringResource.h" +#include "Location.h" +#include "types.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API EntityDecl : public NamedResource { +public: + enum DeclType { generalEntity, parameterEntity, doctype, linktype, + notation, sgml }; + enum DataType { sgmlText, pi, cdata, sdata, ndata, subdoc }; + EntityDecl(const StringC &, DeclType declType, DataType dataType, + const Location &defLocation); + DataType dataType() const; + DeclType declType() const; + const Location &defLocation() const; + Boolean declInDtdIsBase() const; + Boolean declInActiveLpd() const; + const StringC *declInDtdNamePointer() const; + const StringC *declInLpdNamePointer() const; + void setDeclIn(const ConstPtr > &dtdName, + Boolean dtdIsBase, + const ConstPtr > &lpdName, + Boolean lpdIsActive); + void setDeclIn(const ConstPtr > &dtdName, + Boolean dtdIsBase); + void setDefLocation(const Location &); + virtual const StringC *systemIdPointer() const; + virtual const StringC *publicIdPointer() const; + virtual const StringC *effectiveSystemIdPointer() const; +private: + DeclType declType_; + DataType dataType_; + PackedBoolean dtdIsBase_; + PackedBoolean lpdIsActive_; + Location defLocation_; + ConstPtr > dtdName_; + ConstPtr > lpdName_; +}; + +inline +const Location &EntityDecl::defLocation() const +{ + return defLocation_; +} + +inline +EntityDecl::DeclType EntityDecl::declType() const +{ + return declType_; +} + +inline +EntityDecl::DataType EntityDecl::dataType() const +{ + return dataType_; +} + +inline +const StringC *EntityDecl::declInDtdNamePointer() const +{ + return dtdName_.pointer(); +} + +inline +const StringC *EntityDecl::declInLpdNamePointer() const +{ + return lpdName_.pointer(); +} + +inline +Boolean EntityDecl::declInDtdIsBase() const +{ + return dtdIsBase_; +} + +inline +Boolean EntityDecl::declInActiveLpd() const +{ + return lpdIsActive_; +} + +inline +void EntityDecl::setDefLocation(const Location &loc) +{ + defLocation_ = loc; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not EntityDecl_INCLUDED */ diff --git a/include/EntityManager.h b/include/EntityManager.h new file mode 100644 index 0000000..a5ece76 --- /dev/null +++ b/include/EntityManager.h @@ -0,0 +1,49 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef EntityManager_INCLUDED +#define EntityManager_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "StringC.h" +#include "Resource.h" +#include "EntityCatalog.h" +#include "Ptr.h" +#include "Boolean.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Messenger; +class InputSourceOrigin; +class CharsetInfo; +class InputSource; + +class SP_API EntityManager : public Resource { +public: + enum { mayRewind = 01, maySetDocCharset = 02 }; + virtual ~EntityManager(); + virtual Boolean internalCharsetIsDocCharset() const = 0; + virtual const CharsetInfo &charset() const = 0; + virtual InputSource *open(const StringC &sysid, + const CharsetInfo &docCharset, + InputSourceOrigin *, + unsigned flags, + Messenger &) = 0; + // Make a catalog for a document or subdocument with specified + // system identifier. + // The catalog can cause the system identifier to be replaced. + virtual ConstPtr + makeCatalog(StringC &systemId, const CharsetInfo &, Messenger &) = 0; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not EntityManager_INCLUDED */ diff --git a/include/ErrnoMessageArg.h b/include/ErrnoMessageArg.h new file mode 100644 index 0000000..6333ee8 --- /dev/null +++ b/include/ErrnoMessageArg.h @@ -0,0 +1,35 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef ErrnoMessageArg_INCLUDED +#define ErrnoMessageArg_INCLUDED 1 + +#include "MessageArg.h" +#include "rtti.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API ErrnoMessageArg : public OtherMessageArg { + RTTI_CLASS +public: + ErrnoMessageArg(int errnum) : errno_(errnum) { } + MessageArg *copy() const; + // errno might be a macro so we must use a different name + int errnum() const; +private: + int errno_; +}; + +inline +int ErrnoMessageArg::errnum() const +{ + return errno_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ErrnoMessageArg_INCLUDED */ diff --git a/include/ErrorCountEventHandler.h b/include/ErrorCountEventHandler.h new file mode 100644 index 0000000..e5911f6 --- /dev/null +++ b/include/ErrorCountEventHandler.h @@ -0,0 +1,68 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef ErrorCountEventHandler_INCLUDED +#define ErrorCountEventHandler_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include +#include "Event.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API ErrorCountEventHandler : public EventHandler { +public: + ErrorCountEventHandler(unsigned errorLimit = 0); + void setErrorLimit(unsigned maxErrors); + const sig_atomic_t *cancelPtr() const; + void cancel(); + Boolean cancelled() const; + unsigned errorCount() const; + void message(MessageEvent *); + void noteMessage(const Message &); +private: + unsigned maxErrors_; + unsigned errorCount_; + sig_atomic_t cancel_; +}; + +inline +unsigned ErrorCountEventHandler::errorCount() const +{ + return errorCount_; +} + +inline +const sig_atomic_t *ErrorCountEventHandler::cancelPtr() const +{ + return &cancel_; +} + +inline +void ErrorCountEventHandler::cancel() +{ + cancel_ = 1; +} + +inline +void ErrorCountEventHandler::setErrorLimit(unsigned maxErrors) +{ + maxErrors_ = maxErrors; +} + +inline +Boolean ErrorCountEventHandler::cancelled() const +{ + return cancel_ != 0; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ErrorCountEventHandler_INCLUDED */ diff --git a/include/Event.h b/include/Event.h new file mode 100644 index 0000000..39b8af1 --- /dev/null +++ b/include/Event.h @@ -0,0 +1,1368 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Event_INCLUDED +#define Event_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Link.h" +#include "Allocator.h" +#include "Location.h" +#include "Vector.h" +#include "Owner.h" +#include "Boolean.h" +#include "types.h" +#include "Ptr.h" +#include "StringC.h" +#include "Notation.h" +#include "Sd.h" +#include "Syntax.h" +#include "Dtd.h" +#include "ElementType.h" +#include "Text.h" +#include "Lpd.h" +#include "Message.h" +#include "Markup.h" +#include "ShortReferenceMap.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class EventHandler; + +class SP_API Event : public Link { +public: + enum Type { + message, + characterData, + startElement, + endElement, + pi, + sdataEntity, + externalDataEntity, + subdocEntity, + nonSgmlChar, + appinfo, + startDtd, + endDtd, + startLpd, + endLpd, + endProlog, + sgmlDecl, + uselink, + usemap, + commentDecl, + sSep, + ignoredRs, + ignoredRe, + reOrigin, + ignoredChars, + markedSectionStart, + markedSectionEnd, + entityStart, + entityEnd, + notationDecl, + entityDecl, + elementDecl, + attlistDecl, // not #NOTATION and not in LPD + attlistNotationDecl, + linkAttlistDecl, + linkDecl, + idLinkDecl, + shortrefDecl, + ignoredMarkup, + entityDefaulted, + sgmlDeclEntity + }; + Event(Type); + virtual ~Event(); + virtual void handle(EventHandler &) = 0; + virtual void copyData(); + void *operator new(size_t sz, Allocator &alloc) { return alloc.alloc(sz); } + void *operator new(size_t sz) { return Allocator::allocSimple(sz); } + void operator delete(void *p) { Allocator::free(p); } +#ifdef SP_HAVE_PLACEMENT_OPERATOR_DELETE + void operator delete(void *p, Allocator &) { Allocator::free(p); } +#endif + Type type() const; +private: + Event(const Event &); // undefined + void operator=(const Event &); // undefined + Type type_; +}; + +class LocatedEvent : public Event { +public: + LocatedEvent(Type type, const Location &); + const Location &location() const; +private: + LocatedEvent(const LocatedEvent &); // undefined + void operator=(const LocatedEvent &); // undefined + Location location_; +}; + +class MarkupEvent : public LocatedEvent { +public: + MarkupEvent(Type type); + MarkupEvent(Type type, const Location &, Markup *); + const Markup &markup() const; +private: + MarkupEvent(const MarkupEvent &); // undefined + void operator=(const MarkupEvent &); // undefined + Markup markup_; +}; + +class SP_API MessageEvent : public Event { +public: + MessageEvent(Message &); + MessageEvent(const Message &); + ~MessageEvent(); + const Message &message() const; + void handle(EventHandler &); +private: + MessageEvent(const MessageEvent &); // undefined + void operator=(const MessageEvent &); // undefined + Message message_; +}; + +class AttributeList; + +class StartElementEvent : public LocatedEvent { +public: + StartElementEvent(const ElementType *, + const ConstPtr &, + AttributeList *, + const Location &, + Markup *); + ~StartElementEvent(); + void handle(EventHandler &); + Boolean mustOmitEnd() const; + void setIncluded(); + Boolean included() const; + const StringC &name() const; + const ElementType *elementType() const; + const Markup *markupPtr() const; + const AttributeList &attributes() const; + void copyData(); +private: + StartElementEvent(const StartElementEvent &); // undefined + void operator=(const StartElementEvent &); // undefined + const ElementType *elementType_; + ConstPtr dtd_; + PackedBoolean included_; + PackedBoolean copied_; // has copyData() been called + Markup *markup_; + AttributeList *attributes_; +}; + +class EndElementEvent : public LocatedEvent { +public: + EndElementEvent(const ElementType *, + const ConstPtr &, + const Location &, + Markup *); + ~EndElementEvent(); + void handle(EventHandler &); + void setIncluded(); + Boolean included() const; + const StringC &name() const; + const ElementType *elementType() const; + const Markup *markupPtr() const; + void copyData(); +private: + EndElementEvent(const EndElementEvent &); // undefined + void operator=(const EndElementEvent &); // undefined + const ElementType *elementType_; + ConstPtr dtd_; + PackedBoolean included_; + PackedBoolean copied_; // has copyData() been called + Markup *markup_; +}; + +class DataEvent : public LocatedEvent { +public: + DataEvent(Type, const Char *, size_t, const Location &); + void handle(EventHandler &); + const Char *data() const; + size_t dataLength() const; + virtual Boolean isRe(unsigned long &serial) const; + virtual const Entity *entity() const; +protected: + const Char *p_; + size_t length_; +private: + DataEvent(const DataEvent &); // undefined + void operator=(const DataEvent &); // undefined +}; + +class ImmediateDataEvent : public DataEvent { +public: + ImmediateDataEvent(Type type, const Char *, size_t, const Location &, + Boolean copy); + ~ImmediateDataEvent(); + void copyData(); +private: + ImmediateDataEvent(const ImmediateDataEvent &); // undefined + void operator=(const ImmediateDataEvent &); // undefined + Char *alloc_; +}; + +class InternalDataEntity; + +class DataEntityEvent : public DataEvent { +public: + DataEntityEvent(Type type, const InternalEntity *, + const ConstPtr &); + const Entity *entity() const; +private: + DataEntityEvent(const DataEntityEvent &); // undefined + void operator=(const DataEntityEvent &); // undefined +}; + +class InternalCdataEntity; + +class CdataEntityEvent : public DataEntityEvent { +public: + CdataEntityEvent(const InternalEntity *, + const ConstPtr &); +private: + CdataEntityEvent(const CdataEntityEvent &); // undefined + void operator=(const CdataEntityEvent &); // undefined +}; + +class InternalSdataEntity; + +class SdataEntityEvent : public DataEntityEvent { +public: + SdataEntityEvent(const InternalEntity *, + const ConstPtr &); + void handle(EventHandler &); +private: + SdataEntityEvent(const SdataEntityEvent &); // undefined + void operator=(const SdataEntityEvent &); // undefined +}; + +class PiEntity; + +class PiEvent : public LocatedEvent { +public: + PiEvent(const Char *, size_t, const Location &); + const Char *data() const; + size_t dataLength() const; + virtual const Entity *entity() const; + void handle(EventHandler &); +private: + PiEvent(const PiEvent &); // undefined + void operator=(const PiEvent &); // undefined + const Char *data_; + size_t dataLength_; +}; + +class ImmediatePiEvent : public PiEvent { +public: + ImmediatePiEvent(StringC &, const Location &); +private: + ImmediatePiEvent(const ImmediatePiEvent &); // undefined + void operator=(const ImmediatePiEvent &); // undefined + StringC string_; +}; + +class PiEntityEvent : public PiEvent { +public: + PiEntityEvent(const PiEntity *entity, + const ConstPtr &origin); + const Entity *entity() const; +private: + PiEntityEvent(const PiEntityEvent &); // undefined + void operator=(const PiEntityEvent &); // undefined +}; + +class ExternalNonTextEntity; +class ExternalDataEntity; +class SubdocEntity; + +class ExternalEntityEvent : public Event { +public: + ExternalEntityEvent(Type type, + const ConstPtr &); + const ConstPtr &entityOrigin() const; + const Location &location() const; +private: + ExternalEntityEvent(const ExternalEntityEvent &); // undefined + void operator=(const ExternalEntityEvent &); // undefined + ConstPtr origin_; +}; + +class ExternalDataEntityEvent : public ExternalEntityEvent { +public: + ExternalDataEntityEvent(const ExternalDataEntity *, + const ConstPtr &); + void handle(EventHandler &); + const ExternalDataEntity *entity() const; +private: + ExternalDataEntityEvent(const ExternalDataEntityEvent &); // undefined + void operator=(const ExternalDataEntityEvent &); // undefined + const ExternalDataEntity *dataEntity_; +}; + +class SubdocEntityEvent : public ExternalEntityEvent { +public: + SubdocEntityEvent(const SubdocEntity *, + const ConstPtr &); + void handle(EventHandler &); + const SubdocEntity *entity() const; +private: + SubdocEntityEvent(const SubdocEntityEvent &); // undefined + void operator=(const SubdocEntityEvent &); // undefined + const SubdocEntity *subdocEntity_; +}; + +class NonSgmlCharEvent : public LocatedEvent { +public: + NonSgmlCharEvent(Char c, const Location &); + Char character() const; + void handle(EventHandler &); +private: + NonSgmlCharEvent(const NonSgmlCharEvent &); // undefined + void operator=(const NonSgmlCharEvent &); // undefined + Char c_; +}; + +class AppinfoEvent : public LocatedEvent { +public: + AppinfoEvent(const Location &); + AppinfoEvent(const Text &, const Location &); + void handle(EventHandler &); + Boolean literal(const StringC *&) const; +private: + AppinfoEvent(const AppinfoEvent &); // undefined + void operator=(const AppinfoEvent &); // undefined + Boolean appinfoNone_; + Text appinfo_; +}; + +class UselinkEvent : public MarkupEvent { +public: + UselinkEvent(const ConstPtr &, + const LinkSet *, + Boolean restore, + const Location &, + Markup *); + void handle(EventHandler &); + const ConstPtr &lpd() const; + const LinkSet *linkSet() const; + Boolean restore() const; +private: + UselinkEvent(const UselinkEvent &); // undefined + void operator=(const UselinkEvent &); // undefined + ConstPtr lpd_; + const LinkSet *linkSet_; + Boolean restore_; +}; + +class UsemapEvent : public MarkupEvent { +public: + UsemapEvent(const ShortReferenceMap *, + Vector &, + const ConstPtr &, + const Location &, + Markup *); + void handle(EventHandler &); + const ShortReferenceMap *map() const; + const Vector &elements() const; +private: + UsemapEvent(const UsemapEvent &); // undefined + void operator=(const UsemapEvent &); // undefined + ConstPtr dtd_; + Vector elements_; + const ShortReferenceMap *map_; +}; + +class StartSubsetEvent : public MarkupEvent { +public: + StartSubsetEvent(Type, + const StringC &, + const ConstPtr &entity, + Boolean hasInternalSubset, + const Location &, + Markup *); + const StringC &name() const; + const ConstPtr &entity() const; + Boolean hasInternalSubset() const; +private: + StartSubsetEvent(const StartSubsetEvent &); // undefined + void operator=(const StartSubsetEvent &); // undefined + StringC name_; + ConstPtr entity_; + Boolean hasInternalSubset_; +}; + +class StartDtdEvent : public StartSubsetEvent { +public: + StartDtdEvent(const StringC &, + const ConstPtr &entity, + Boolean hasInternalSubset, + const Location &, + Markup *); + void handle(EventHandler &); +private: + StartDtdEvent(const StartDtdEvent &); // undefined + void operator=(const StartDtdEvent &); // undefined +}; + +class StartLpdEvent : public StartSubsetEvent { +public: + StartLpdEvent(Boolean active, + const StringC &, + const ConstPtr &entity, + Boolean hasInternalSubset, + const Location &, + Markup *); + void handle(EventHandler &); + Boolean active() const; +private: + StartLpdEvent(const StartLpdEvent &); // undefined + void operator=(const StartLpdEvent &); // undefined + Boolean active_; +}; + +class EndDtdEvent : public MarkupEvent { +public: + EndDtdEvent(const ConstPtr &, const Location &, + Markup *); + void handle(EventHandler &); + const Dtd &dtd() const; + const ConstPtr &dtdPointer() const; +private: + EndDtdEvent(const EndDtdEvent &); // undefined + void operator=(const EndDtdEvent &); // undefined + ConstPtr dtd_; +}; + +class EndLpdEvent : public MarkupEvent { +public: + EndLpdEvent(const ConstPtr &, const Location &, + Markup *); + void handle(EventHandler &); + const Lpd &lpd() const; + const ConstPtr &lpdPointer() const; +private: + EndLpdEvent(const EndLpdEvent &); // undefined + void operator=(const EndLpdEvent &); // undefined + ConstPtr lpd_; +}; + +class EndPrologEvent : public LocatedEvent { +public: + EndPrologEvent(const ConstPtr &dtd, + const ConstPtr &lpd, + Vector &simpleLinkNames, + Vector &simpleLinkAttributes, + const Location &); + EndPrologEvent(const ConstPtr &dtd, + const Location &); + void handle(EventHandler &); + const Dtd &dtd() const; + const ConstPtr &dtdPointer() const; + const ConstPtr &lpdPointer() const; + const Vector &simpleLinkNames() const; + const Vector &simpleLinkAttributes() const; +private: + EndPrologEvent(const EndPrologEvent &); // undefined + void operator=(const EndPrologEvent &); // undefined + ConstPtr dtd_; + ConstPtr lpd_; + Vector simpleLinkNames_; + Vector simpleLinkAttributes_; +}; + +class SgmlDeclEvent : public MarkupEvent { +public: + // for an implied SGML declaration + SgmlDeclEvent(const ConstPtr &, + const ConstPtr &syntax); + // for an explicit SGML declaration + SgmlDeclEvent(const ConstPtr &, + const ConstPtr &syntax, + const ConstPtr &instanceSyntax, + const ConstPtr &refSd, + const ConstPtr &refSyntax, + Index nextIndex, + const StringC &implySystemId, + const Location &, + Markup *); + void handle(EventHandler &); + const Sd &sd() const; + const ConstPtr &sdPointer() const; + const Syntax &prologSyntax() const; + const ConstPtr &prologSyntaxPointer() const; + const Syntax &instanceSyntax() const; + const ConstPtr &instanceSyntaxPointer() const; + const ConstPtr &refSdPointer() const; + const ConstPtr &refSyntaxPointer() const; + const StringC &implySystemId() const; +private: + SgmlDeclEvent(const SgmlDeclEvent &); // undefined + void operator=(const SgmlDeclEvent &); // undefined + ConstPtr sd_; + ConstPtr prologSyntax_; + ConstPtr instanceSyntax_; + ConstPtr refSd_; + ConstPtr refSyntax_; + Index nextIndex_; + StringC implySystemId_; +}; + +class CommentDeclEvent : public MarkupEvent { +public: + CommentDeclEvent(const Location &, Markup *); + void handle(EventHandler &); +private: + CommentDeclEvent(const CommentDeclEvent &); // undefined + void operator=(const CommentDeclEvent &); // undefined +}; + +class SSepEvent : public ImmediateDataEvent { +public: + SSepEvent(const Char *, size_t, const Location &, Boolean copy); + void handle(EventHandler &); +private: + SSepEvent(const SSepEvent &); // undefined + void operator=(const SSepEvent &); // undefined +}; + +class IgnoredRsEvent : public LocatedEvent { +public: + IgnoredRsEvent(Char c, const Location &); + void handle(EventHandler &); + Char rs() const; +private: + IgnoredRsEvent(const IgnoredRsEvent &); // undefined + void operator=(const IgnoredRsEvent &); // undefined + Char c_; +}; + +class IgnoredReEvent : public LocatedEvent { +public: + IgnoredReEvent(Char c, const Location &, unsigned long serial); + void handle(EventHandler &); + Char re() const; + unsigned long serial() const; +private: + IgnoredReEvent(const IgnoredReEvent &); // undefined + void operator=(const IgnoredReEvent &); // undefined + unsigned long serial_; + Char c_; +}; + +class ReEvent : public ImmediateDataEvent { +public: + ReEvent(const Char *, const Location &, unsigned long serial); + Boolean isRe(unsigned long &serial) const; +private: + ReEvent(const ReEvent &); // undefined + void operator=(const ReEvent &); // undefined + unsigned long serial_; +}; + +class ReOriginEvent : public LocatedEvent { +public: + ReOriginEvent(Char c, const Location &, unsigned long serial); + void handle(EventHandler &); + Char re() const; + unsigned long serial() const; +private: + ReOriginEvent(const ReOriginEvent &); // undefined + void operator=(const ReOriginEvent &); // undefined + unsigned long serial_; + Char c_; +}; + +class IgnoredCharsEvent : public ImmediateDataEvent { +public: + IgnoredCharsEvent(const Char *, size_t, const Location &, Boolean copy); + void handle(EventHandler &); +private: + IgnoredCharsEvent(const IgnoredCharsEvent &); // undefined + void operator=(const IgnoredCharsEvent &); // undefined +}; + +class MarkedSectionEvent : public MarkupEvent { +public: + enum Status { include, rcdata, cdata, ignore }; // in priority order + MarkedSectionEvent(Type, Status, const Location &, Markup *); + Status status() const; +private: + MarkedSectionEvent(const MarkedSectionEvent &); // undefined + void operator=(const MarkedSectionEvent &); // undefined + Status status_; +}; + +class MarkedSectionStartEvent : public MarkedSectionEvent { +public: + MarkedSectionStartEvent(Status, const Location &, Markup *); + void handle(EventHandler &); +private: + MarkedSectionStartEvent(const MarkedSectionStartEvent &); // undefined + void operator=(const MarkedSectionStartEvent &); // undefined +}; + +class MarkedSectionEndEvent : public MarkedSectionEvent { +public: + MarkedSectionEndEvent(Status, const Location &, Markup *); + void handle(EventHandler &); +private: + MarkedSectionEndEvent(const MarkedSectionEndEvent &); // undefined + void operator=(const MarkedSectionEndEvent &); // undefined +}; + +class EntityStartEvent : public Event { +public: + EntityStartEvent(const ConstPtr &origin); + void handle(EventHandler &); + const Entity *entity() const; + const ConstPtr &entityOrigin() const; +private: + EntityStartEvent(const EntityStartEvent &); // undefined + void operator=(const EntityStartEvent &); // undefined + + ConstPtr origin_; +}; + +class EntityEndEvent : public LocatedEvent { +public: + EntityEndEvent(const Location &); + void handle(EventHandler &); +private: + EntityEndEvent(const EntityEndEvent &); // undefined + void operator=(const EntityEndEvent &); // undefined +}; + +class EntityDeclEvent : public MarkupEvent { +public: + EntityDeclEvent(const ConstPtr &, + Boolean ignored, + const Location &, + Markup *); + void handle(EventHandler &); + const Entity &entity() const; + const ConstPtr &entityPointer() const; + Boolean ignored() const; + // The name of the entity will be empty if this is the default entity. +private: + Boolean ignored_; + // This will actually point to an external entity. + ConstPtr entity_; +}; + +class NotationDeclEvent : public MarkupEvent { +public: + NotationDeclEvent(const ConstPtr &, + const Location &, + Markup *); + void handle(EventHandler &); + const Notation ¬ation() const; + const ConstPtr ¬ationPointer() const; +private: + NotationDeclEvent(const NotationDeclEvent &); // undefined + void operator=(const NotationDeclEvent &); // undefined + ConstPtr notation_; +}; + +class ElementDeclEvent : public MarkupEvent { +public: + ElementDeclEvent(Vector &elements, + const ConstPtr &, + const Location &, + Markup *); + void handle(EventHandler &); + const Vector &elements() const; +private: + ElementDeclEvent(const ElementDeclEvent &); // undefined + void operator=(const ElementDeclEvent &); // undefined + Vector elements_; + ConstPtr dtd_; +}; + +class AttlistDeclEvent : public MarkupEvent { +public: + AttlistDeclEvent(Vector &elements, + const ConstPtr &, + const Location &, + Markup *); + void handle(EventHandler &); + const Vector &elements() const; +private: + AttlistDeclEvent(const AttlistDeclEvent &); // undefined + void operator=(const AttlistDeclEvent &); // undefined + Vector elements_; + ConstPtr dtd_; +}; + +class AttlistNotationDeclEvent : public MarkupEvent { +public: + AttlistNotationDeclEvent(Vector > ¬ations, + const Location &, + Markup *); + void handle(EventHandler &); + const Vector > ¬ations() const; +private: + AttlistNotationDeclEvent(const AttlistNotationDeclEvent &); // undefined + void operator=(const AttlistDeclEvent &); // undefined + Vector > notations_; +}; + +class LinkAttlistDeclEvent : public MarkupEvent { +public: + LinkAttlistDeclEvent(Vector &elements, + const ConstPtr &, + const Location &, + Markup *); + void handle(EventHandler &); + const Vector &elements() const; + const Lpd &lpd() const; +private: + LinkAttlistDeclEvent(const LinkAttlistDeclEvent &); // undefined + void operator=(const LinkAttlistDeclEvent &); // undefined + Vector elements_; + ConstPtr lpd_; +}; + +class LinkDeclEvent : public MarkupEvent { +public: + LinkDeclEvent(const LinkSet *linkSet, + const ConstPtr &, + const Location &, + Markup *); + void handle(EventHandler &); + const LinkSet *linkSet() const; + const ComplexLpd &lpd() const; +private: + LinkDeclEvent(const LinkDeclEvent &); // undefined + void operator=(const LinkDeclEvent &); // undefined + const LinkSet *linkSet_; + ConstPtr lpd_; +}; + +class IdLinkDeclEvent : public MarkupEvent { +public: + IdLinkDeclEvent(const ConstPtr &, + const Location &, + Markup *); + void handle(EventHandler &); + const ComplexLpd &lpd() const; +private: + IdLinkDeclEvent(const IdLinkDeclEvent &); // undefined + void operator=(const IdLinkDeclEvent &); // undefined + ConstPtr lpd_; +}; + +class ShortrefDeclEvent : public MarkupEvent { +public: + ShortrefDeclEvent(const ShortReferenceMap *, + const ConstPtr &, + const Location &, + Markup *); + void handle(EventHandler &); + const ShortReferenceMap *map() const; +private: + ShortrefDeclEvent(const ShortrefDeclEvent &); // undefined + void operator=(const ShortrefDeclEvent &); // undefined + const ShortReferenceMap *map_; + ConstPtr dtd_; +}; + +class IgnoredMarkupEvent : public MarkupEvent { +public: + IgnoredMarkupEvent(const Location &, Markup *); + void handle(EventHandler &); +private: + IgnoredMarkupEvent(const IgnoredMarkupEvent &); // undefined + void operator=(const IgnoredMarkupEvent &); // undefined +}; + +// This is for an undeclared entity whose first occurrence +// is in the instance, when there is a default entity: +// ie it extends the namespace of general entities after +// the end of the prolog. + +class EntityDefaultedEvent : public LocatedEvent { +public: + EntityDefaultedEvent(const ConstPtr &, + const Location &); + void handle(EventHandler &); + const Entity &entity() const; + const ConstPtr &entityPointer() const; +private: + EntityDefaultedEvent(const EntityDefaultedEvent &); // undefined + void operator=(const EntityDefaultedEvent &); // undefined + ConstPtr entity_; +}; + +class SgmlDeclEntityEvent : public LocatedEvent { +public: + SgmlDeclEntityEvent(const PublicId &publicId, + PublicId::TextClass entityType, + const StringC &effectiveSystemId, + const Location &); + void handle(EventHandler &); + const PublicId &publicId() const; + PublicId::TextClass entityType() const; + const StringC &effectiveSystemId() const; +private: + SgmlDeclEntityEvent(const SgmlDeclEntityEvent &); // undefined + void operator=(const SgmlDeclEntityEvent &); // undefined + PublicId publicId_; + PublicId::TextClass entityType_; + StringC effectiveSystemId_; +}; + +class SP_API EventHandler { +public: + virtual ~EventHandler(); + virtual void message(MessageEvent *) = 0; + virtual void data(DataEvent *); + virtual void startElement(StartElementEvent *); + virtual void endElement(EndElementEvent *); + virtual void pi(PiEvent *); + virtual void sdataEntity(SdataEntityEvent *); + virtual void externalDataEntity(ExternalDataEntityEvent *); + virtual void subdocEntity(SubdocEntityEvent *); + virtual void nonSgmlChar(NonSgmlCharEvent *); + virtual void appinfo(AppinfoEvent *); + virtual void uselink(UselinkEvent *); + virtual void usemap(UsemapEvent *); + virtual void startDtd(StartDtdEvent *); + virtual void endDtd(EndDtdEvent *); + virtual void startLpd(StartLpdEvent *); + virtual void endLpd(EndLpdEvent *); + virtual void endProlog(EndPrologEvent *); + virtual void sgmlDecl(SgmlDeclEvent *); + virtual void commentDecl(CommentDeclEvent *); + virtual void sSep(SSepEvent *); + virtual void ignoredRs(IgnoredRsEvent *); + virtual void ignoredRe(IgnoredReEvent *); + virtual void reOrigin(ReOriginEvent *); + virtual void ignoredChars(IgnoredCharsEvent *); + virtual void markedSectionStart(MarkedSectionStartEvent *); + virtual void markedSectionEnd(MarkedSectionEndEvent *); + virtual void entityStart(EntityStartEvent *); + virtual void entityEnd(EntityEndEvent *); + virtual void notationDecl(NotationDeclEvent *); + virtual void entityDecl(EntityDeclEvent *); + virtual void elementDecl(ElementDeclEvent *); + virtual void attlistDecl(AttlistDeclEvent *); + virtual void linkAttlistDecl(LinkAttlistDeclEvent *); + virtual void attlistNotationDecl(AttlistNotationDeclEvent *); + virtual void linkDecl(LinkDeclEvent *); + virtual void idLinkDecl(IdLinkDeclEvent *); + virtual void shortrefDecl(ShortrefDeclEvent *); + virtual void ignoredMarkup(IgnoredMarkupEvent *); + virtual void entityDefaulted(EntityDefaultedEvent *); + virtual void inputClosed(InputSource *in); + virtual void inputOpened(InputSource *in); + virtual void sgmlDeclEntity(SgmlDeclEntityEvent *); +}; + +inline +Event::Event(Type type) +: type_(type) +{ +} + +inline +Event::~Event() +{ +} + +inline +Event::Type Event::type() const +{ + return type_; +} + +inline +const Location &LocatedEvent::location() const +{ + return location_; +} + +inline +const Markup &MarkupEvent::markup() const +{ + return markup_; +} + +inline +const Message &MessageEvent::message() const +{ + return message_; +} + +inline +const ElementType *StartElementEvent::elementType() const +{ + return elementType_; +} + +inline +const StringC &StartElementEvent::name() const +{ + return elementType_->name(); +} + +inline +void StartElementEvent::setIncluded() +{ + included_ = 1; +} + +inline +Boolean StartElementEvent::included() const +{ + return included_; +} + +inline +const Markup *StartElementEvent::markupPtr() const +{ + return markup_; +} + +inline +const AttributeList &StartElementEvent::attributes() const +{ + return *attributes_; +} + +inline +Boolean StartElementEvent::mustOmitEnd() const +{ + return ((elementType()->definition()->declaredContent() + == ElementDefinition::empty) + || attributes_->conref()); +} + +inline +const ElementType *EndElementEvent::elementType() const +{ + return elementType_; +} + +inline +const StringC &EndElementEvent::name() const +{ + return elementType_->name(); +} + +inline +void EndElementEvent::setIncluded() +{ + included_ = 1; +} + +inline +Boolean EndElementEvent::included() const +{ + return included_; +} + +inline +const Markup *EndElementEvent::markupPtr() const +{ + return markup_; +} + +inline +const Char *DataEvent::data() const +{ + return p_; +} + +inline +size_t DataEvent::dataLength() const +{ + return length_; +} + +inline +const Char *PiEvent::data() const +{ + return data_; +} + +inline +size_t PiEvent::dataLength() const +{ + return dataLength_; +} + +inline +const ConstPtr & +ExternalEntityEvent::entityOrigin() const +{ + return origin_; +} + +inline +const Location &ExternalEntityEvent::location() const +{ + return origin_->parent(); +} + +inline +const ExternalDataEntity *ExternalDataEntityEvent::entity() const +{ + return dataEntity_; +} + +inline +const SubdocEntity *SubdocEntityEvent::entity() const +{ + return subdocEntity_; +} + +inline +Char NonSgmlCharEvent::character() const +{ + return c_; +} + +inline +Boolean AppinfoEvent::literal(const StringC *&p) const +{ + if (appinfoNone_) + return 0; + p = &appinfo_.string(); + return 1; +} + +inline +const ConstPtr &UselinkEvent::lpd() const +{ + return lpd_; +} + +inline +const LinkSet *UselinkEvent::linkSet() const +{ + return linkSet_; +} + +inline +Boolean UselinkEvent::restore() const +{ + return restore_; +} + +inline +const ShortReferenceMap *UsemapEvent::map() const +{ + return map_; +} + +inline +const StringC &StartSubsetEvent::name() const +{ + return name_; +} + +inline +const ConstPtr &StartSubsetEvent::entity() const +{ + return entity_; +} + +inline +Boolean StartSubsetEvent::hasInternalSubset() const +{ + return hasInternalSubset_; +} + +inline +Boolean StartLpdEvent::active() const +{ + return active_; +} + +inline +const Dtd &EndDtdEvent::dtd() const +{ + return *dtd_; +} + +inline +const ConstPtr &EndDtdEvent::dtdPointer() const +{ + return dtd_; +} + +inline +const Lpd &EndLpdEvent::lpd() const +{ + return *lpd_; +} + +inline +const ConstPtr &EndLpdEvent::lpdPointer() const +{ + return lpd_; +} + +inline +const Dtd &EndPrologEvent::dtd() const +{ + return *dtd_; +} + +inline +const ConstPtr &EndPrologEvent::dtdPointer() const +{ + return dtd_; +} + +inline +const ConstPtr &EndPrologEvent::lpdPointer() const +{ + return lpd_; +} + +inline +const Vector &EndPrologEvent::simpleLinkNames() const +{ + return simpleLinkNames_; +} + +inline +const Vector &EndPrologEvent::simpleLinkAttributes() const +{ + return simpleLinkAttributes_; +} + +inline +const Sd &SgmlDeclEvent::sd() const +{ + return *sd_; +} + +inline +const ConstPtr &SgmlDeclEvent::sdPointer() const +{ + return sd_; +} + +inline +const ConstPtr &SgmlDeclEvent::refSdPointer() const +{ + return refSd_; +} + +inline +const Syntax &SgmlDeclEvent::prologSyntax() const +{ + return *prologSyntax_; +} + +inline +const ConstPtr &SgmlDeclEvent::prologSyntaxPointer() const +{ + return prologSyntax_; +} + +inline +const Syntax &SgmlDeclEvent::instanceSyntax() const +{ + return *instanceSyntax_; +} + +inline +const ConstPtr &SgmlDeclEvent::instanceSyntaxPointer() const +{ + return instanceSyntax_; +} + +inline +const ConstPtr &SgmlDeclEvent::refSyntaxPointer() const +{ + return refSyntax_; +} + +inline +const StringC &SgmlDeclEvent::implySystemId() const +{ + return implySystemId_; +} + +inline +Char IgnoredRsEvent::rs() const +{ + return c_; +} + +inline +Char IgnoredReEvent::re() const +{ + return c_; +} + +inline +unsigned long IgnoredReEvent::serial() const +{ + return serial_; +} + +inline +Char ReOriginEvent::re() const +{ + return c_; +} + +inline +unsigned long ReOriginEvent::serial() const +{ + return serial_; +} + +inline +MarkedSectionEvent::Status MarkedSectionEvent::status() const +{ + return status_; +} + +inline +const Entity *EntityStartEvent::entity() const +{ + return origin_->entity(); +} + +inline +const ConstPtr & +EntityStartEvent::entityOrigin() const +{ + return origin_; +} + +inline +const ConstPtr &EntityDeclEvent::entityPointer() const +{ + return entity_; +} + +inline +const Entity &EntityDeclEvent::entity() const +{ + return *entity_; +} + +inline +Boolean EntityDeclEvent::ignored() const +{ + return ignored_; +} + +inline +const Notation &NotationDeclEvent::notation() const +{ + return *notation_; +} + +inline +const ConstPtr &NotationDeclEvent::notationPointer() const +{ + return notation_; +} + +inline +const Vector &ElementDeclEvent::elements() const +{ + return elements_; +} + +inline +const Vector &AttlistDeclEvent::elements() const +{ + return elements_; +} + +inline +const Vector &LinkAttlistDeclEvent::elements() const +{ + return elements_; +} + +inline +const Lpd &LinkAttlistDeclEvent::lpd() const +{ + return *lpd_; +} + +inline +const LinkSet *LinkDeclEvent::linkSet() const +{ + return linkSet_; +} + +inline +const ComplexLpd &LinkDeclEvent::lpd() const +{ + return *lpd_; +} + +inline +const ComplexLpd &IdLinkDeclEvent::lpd() const +{ + return *lpd_; +} + +inline +const Vector > & +AttlistNotationDeclEvent::notations() const +{ + return notations_; +} + +inline +const ShortReferenceMap *ShortrefDeclEvent::map() const +{ + return map_; +} + +inline +const Entity &EntityDefaultedEvent::entity() const +{ + return *entity_; +} + +inline +const ConstPtr &EntityDefaultedEvent::entityPointer() + const +{ + return entity_; +} + +inline +const PublicId &SgmlDeclEntityEvent::publicId() const +{ + return publicId_; +} + +inline +PublicId::TextClass SgmlDeclEntityEvent::entityType() const +{ + return entityType_; +} + +inline +const StringC &SgmlDeclEntityEvent::effectiveSystemId() const +{ + return effectiveSystemId_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Event_INCLUDED */ diff --git a/include/EventsWanted.h b/include/EventsWanted.h new file mode 100644 index 0000000..a89bc3d --- /dev/null +++ b/include/EventsWanted.h @@ -0,0 +1,91 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef EventsWanted_INCLUDED +#define EventsWanted_INCLUDED 1 + +#include "Boolean.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API EventsWanted { +public: + EventsWanted(); + Boolean wantInstanceMarkup() const; + Boolean wantCommentDecls() const; // in instance + Boolean wantMarkedSections() const; // in instance + Boolean wantPrologMarkup() const; + void addInstanceMarkup(); + void addCommentDecls(); + void addMarkedSections(); + void addPrologMarkup(); +private: + PackedBoolean instanceMarkup_; + PackedBoolean commentDecls_; + PackedBoolean markedSections_; + PackedBoolean prologMarkup_; +}; + +inline +EventsWanted::EventsWanted() +: instanceMarkup_(0), commentDecls_(0), markedSections_(0), prologMarkup_(0) +{ +} + +inline +Boolean EventsWanted::wantInstanceMarkup() const +{ + return instanceMarkup_; +} + +inline +void EventsWanted::addInstanceMarkup() +{ + instanceMarkup_ = 1; + commentDecls_ = 1; + markedSections_ = 1; +} + +inline +Boolean EventsWanted::wantCommentDecls() const +{ + return commentDecls_; +} + +inline +void EventsWanted::addCommentDecls() +{ + commentDecls_ = 1; +} + +inline +Boolean EventsWanted::wantMarkedSections() const +{ + return markedSections_; +} + +inline +void EventsWanted::addMarkedSections() +{ + markedSections_ = 1; +} + +inline +Boolean EventsWanted::wantPrologMarkup() const +{ + return prologMarkup_; +} + +inline +void EventsWanted::addPrologMarkup() +{ + prologMarkup_ = 1; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not EventsWanted_INCLUDED */ diff --git a/include/ExtendEntityManager.h b/include/ExtendEntityManager.h new file mode 100644 index 0000000..1eb215b --- /dev/null +++ b/include/ExtendEntityManager.h @@ -0,0 +1,137 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef ExtendEntityManager_INCLUDED +#define ExtendEntityManager_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "EntityManager.h" +#include "CharsetInfo.h" +#include "types.h" +#include "Boolean.h" +#include "StringC.h" +#include "types.h" +#include "Vector.h" +#include "Location.h" +#include "CodingSystemKit.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class StorageManager; +class InputCodingSystem; +class Messenger; + +struct SP_API StorageObjectSpec { + StorageObjectSpec(); + ~StorageObjectSpec(); + StorageObjectSpec(const StorageObjectSpec&); + StorageObjectSpec& operator=(const StorageObjectSpec&); + StorageManager *storageManager; + const char *codingSystemName; + const InputCodingSystem *codingSystem; + StringC specId; // specified id + StringC baseId; // id that specified id is relative to + enum Records { + find, + cr, + lf, + crlf, + asis + }; + Records records; + PackedBoolean notrack; + PackedBoolean zapEof; // zap a final Ctrl-Z + PackedBoolean search; + enum { + encoding, + bctf, + special + }; + char codingSystemType; +}; + + +struct SP_API ParsedSystemId : public Vector { + ParsedSystemId(); + void unparse(const CharsetInfo &resultCharset, Boolean isNdata, StringC &result) const; + struct SP_API Map { + enum Type { + catalogDocument, + catalogPublic + }; + Type type; + StringC publicId; + Map(); + Map(const Map&); + ~Map(); + Map& operator=(const Map&); + }; + Vector maps; +}; + +struct SP_API StorageObjectLocation { + const StorageObjectSpec *storageObjectSpec; + StringC actualStorageId; + unsigned long lineNumber; + unsigned long columnNumber; + unsigned long byteIndex; + unsigned long storageObjectOffset; +}; + +class SP_API ExtendEntityManager : public EntityManager { +public: + virtual ~ExtendEntityManager(); + class SP_API CatalogManager { + public: + virtual ~CatalogManager(); + virtual ConstPtr + makeCatalog(StringC &systemId, + const CharsetInfo &docCharset, + ExtendEntityManager *, + Messenger &) const = 0; + virtual Boolean mapCatalog(ParsedSystemId &systemId, + ExtendEntityManager *em, + Messenger &mgr) const = 0; + }; + // Additional flags for open. + enum { mayNotExist = 0100, isNdata = 0200 }; + virtual void registerStorageManager(StorageManager *) = 0; + virtual void setCatalogManager(CatalogManager *) = 0; + virtual Boolean expandSystemId(const StringC &, + const Location &, + Boolean isNdata, + const CharsetInfo &, + const StringC *mapCatalogPublic, + Messenger &, + StringC &) = 0; + virtual Boolean mergeSystemIds(const Vector &sysids, + Boolean mapCatalogDocument, + const CharsetInfo &, + Messenger &mgr, + StringC &) const = 0; + virtual Boolean parseSystemId(const StringC &str, + const CharsetInfo &docCharset, + Boolean isNdata, + const StorageObjectLocation *defLoc, + Messenger &mgr, + ParsedSystemId &parsedSysid) const = 0; + static const ParsedSystemId *externalInfoParsedSystemId(const ExternalInfo *); + static Boolean externalize(const ExternalInfo *, + Offset, + StorageObjectLocation &); + static ExtendEntityManager *make(StorageManager *, + const InputCodingSystem *, + const ConstPtr &, + Boolean internalCharsetIsDocCharset); +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ExtendEntityManager_INCLUDED */ diff --git a/include/ExternalId.h b/include/ExternalId.h new file mode 100644 index 0000000..ed07e56 --- /dev/null +++ b/include/ExternalId.h @@ -0,0 +1,194 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef ExternalId_INCLUDED +#define ExternalId_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Boolean.h" +#include "StringC.h" +#include "Text.h" +#include "types.h" +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class CharsetInfo; + +class SP_API PublicId { +public: + enum Type { + informal, + fpi, + urn + }; + enum TextClass { + CAPACITY, + CHARSET, + DOCUMENT, + DTD, + ELEMENTS, + ENTITIES, + LPD, + NONSGML, + NOTATION, + SD, + SHORTREF, + SUBDOC, + SYNTAX, + TEXT + }; + enum OwnerType { + ISO, + registered, + unregistered + }; + PublicId(); + // FPI parts + Boolean getOwnerType(OwnerType &) const; + Boolean getOwner(StringC &) const; + Boolean getTextClass(TextClass &) const; + Boolean getUnavailable(Boolean &) const; + Boolean getDescription(StringC &) const; + Boolean getLanguage(StringC &) const; + Boolean getDesignatingSequence(StringC &) const; + Boolean getDisplayVersion(StringC &) const; + // URN parts + Boolean getNamespaceIdentifier(StringC &) const; + Boolean getNamespaceSpecificString(StringC &) const; + // The return value describes what has been successfully parsed + // charset describes the character set to use for parsing the + // id. + Type init(Text &, const CharsetInfo &, Char space, + const MessageType1 *&fpierror, + const MessageType1 *&urnerror); + const StringC &string() const; + const Text &text() const; + const Type type() const { return type_; } +private: + Boolean initFpi(const StringC &, const CharsetInfo &, Char, + const MessageType1 *&); + Boolean initUrn(const StringC &, const CharsetInfo &, Char, + const MessageType1 *&); + static Boolean nextField(Char solidus, + const Char *&next, + const Char *lim, + const Char *&fieldStart, + size_t &fieldLength, + Boolean dup = 1); + static Boolean lookupTextClass(const StringC &, const CharsetInfo &, + TextClass &); + static const char *const textClasses[]; + + Type type_; + OwnerType ownerType_; + StringC owner_; + TextClass textClass_; + PackedBoolean unavailable_; + StringC description_; + StringC languageOrDesignatingSequence_; + PackedBoolean haveDisplayVersion_; + StringC displayVersion_; + Text text_; + StringC nid_; + StringC nss_; +}; + +class SP_API ExternalId { +public: + ExternalId(); + const StringC *systemIdString() const; + const StringC *publicIdString() const; + const StringC &effectiveSystemId() const; + const Text *systemIdText() const; + const Text *publicIdText() const; + const PublicId *publicId() const; + void setSystem(Text &); + void setEffectiveSystem(StringC &); + // The return value tells what has been successfully parsed. + // charset describes the character set to use for parsing the + // id. + PublicId::Type setPublic(Text &, const CharsetInfo &, Char space, + const MessageType1 *&fpierror, + const MessageType1 *&urnerror); + void setLocation(const Location &); + // location of keyword + const Location &location() const; +private: + PackedBoolean haveSystem_; + PackedBoolean havePublic_; + Text system_; + PublicId public_; + Location loc_; + StringC effectiveSystem_; +}; + +inline +const StringC &PublicId::string() const +{ + return text_.string(); +} + +inline +const Text &PublicId::text() const +{ + return text_; +} + +inline +const StringC *ExternalId::systemIdString() const +{ + return haveSystem_ ? &system_.string() : 0; +} + +inline +const StringC *ExternalId::publicIdString() const +{ + return havePublic_ ? &public_.string() : 0; +} + +inline +const Text *ExternalId::systemIdText() const +{ + return haveSystem_ ? &system_ : 0; +} + +inline +const Text *ExternalId::publicIdText() const +{ + return havePublic_ ? &public_.text() : 0; +} + +inline +const PublicId *ExternalId::publicId() const +{ + return havePublic_ ? &public_ : 0; +} + +inline +const Location &ExternalId::location() const +{ + return loc_; +} + +inline +const StringC &ExternalId::effectiveSystemId() const +{ + return effectiveSystem_; +} + +inline +void ExternalId::setEffectiveSystem(StringC &str) +{ + str.swap(effectiveSystem_); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ExternalId_INCLUDED */ diff --git a/include/Fixed2CodingSystem.h b/include/Fixed2CodingSystem.h new file mode 100644 index 0000000..16d2282 --- /dev/null +++ b/include/Fixed2CodingSystem.h @@ -0,0 +1,24 @@ +// Copyright (c) 1994 James Clark, 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef Fixed2CodingSystem_INCLUDED +#define Fixed2CodingSystem_INCLUDED 1 + +#include "CodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API Fixed2CodingSystem : public CodingSystem { +public: + Decoder *makeDecoder(Boolean lsbFirst) const; + Encoder *makeEncoder() const; + unsigned fixedBytesPerChar() const; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Fixed2CodingSystem_INCLUDED */ diff --git a/include/Fixed4CodingSystem.h b/include/Fixed4CodingSystem.h new file mode 100644 index 0000000..c59ad50 --- /dev/null +++ b/include/Fixed4CodingSystem.h @@ -0,0 +1,24 @@ +// Copyright (c) 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef Fixed4CodingSystem_INCLUDED +#define Fixed4CodingSystem_INCLUDED 1 + +#include "CodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API Fixed4CodingSystem : public CodingSystem { +public: + Decoder *makeDecoder(Boolean lsbFirst, Boolean lswFirst) const; + Encoder *makeEncoder() const; + unsigned fixedBytesPerChar() const; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Fixed4CodingSystem_INCLUDED */ diff --git a/include/GenericEventHandler.h b/include/GenericEventHandler.h new file mode 100644 index 0000000..43401c9 --- /dev/null +++ b/include/GenericEventHandler.h @@ -0,0 +1,127 @@ +// Copyright (c) 1995, 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef GenericEventHandler_INCLUDED +#define GenericEventHandler_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +// Must include Boolean.h before SGMLApplication.h. + +#include "Boolean.h" +#include "SGMLApplication.h" +#include "Event.h" +#include "MessageReporter.h" +#include "ErrorCountEventHandler.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API GenericEventHandler : public ErrorCountEventHandler { +public: + GenericEventHandler(SGMLApplication &, bool generalEntities); + ~GenericEventHandler(); + void message(MessageEvent *); + void appinfo(AppinfoEvent *); + void startDtd(StartDtdEvent *); + void endDtd(EndDtdEvent *); + void endProlog(EndPrologEvent *); + void entityDefaulted(EntityDefaultedEvent *); + void startElement(StartElementEvent *); + void endElement(EndElementEvent *); + void data(DataEvent *); + void pi(PiEvent *); + void sdataEntity(SdataEntityEvent *); + void externalDataEntity(ExternalDataEntityEvent *); + void subdocEntity(SubdocEntityEvent *); + void nonSgmlChar(NonSgmlCharEvent *); + void commentDecl(CommentDeclEvent *); + void ignoredChars(IgnoredCharsEvent *); + void markedSectionStart(MarkedSectionStartEvent *); + void markedSectionEnd(MarkedSectionEndEvent *); + void *allocate(size_t); + void freeAll(); + void freeAll1(); + + struct Block { + Block *next; + char *mem; + size_t size; + }; + static void setString(SGMLApplication::CharString &, const StringC &); + static void clearString(SGMLApplication::CharString &); + virtual void reportMessage(const Message &msg, StringC &) = 0; +private: + GenericEventHandler(const GenericEventHandler &); // undefined + void operator=(const GenericEventHandler &); // undefined + void setLocation(SGMLApplication::Position &, const Location &); + void setLocation1(SGMLApplication::Position &, const Location &); + void setAttributes(const SGMLApplication::Attribute *&attributes, + const AttributeList &attributeList); + void setExternalId(SGMLApplication::ExternalId &to, + const ExternalId &from); + void setEntity(SGMLApplication::Entity &to, const Entity &from); + void setNotation(SGMLApplication::Notation &, const Notation ¬ation); + static void clearNotation(SGMLApplication::Notation &); + static void clearExternalId(SGMLApplication::ExternalId &); + ConstPtr lastOrigin_; + SGMLApplication::OpenEntityPtr openEntityPtr_; + size_t firstBlockUsed_; + size_t firstBlockSpare_; + Block *freeBlocks_; + Block *allocBlocks_; + bool generalEntities_; + SGMLApplication *app_; +}; + +class SP_API MsgGenericEventHandler : public GenericEventHandler { +public: + MsgGenericEventHandler(SGMLApplication &, + bool generalEntities, + MessageReporter &reporter, + const bool *messagesInhibitedPtr); + void reportMessage(const Message &msg, StringC &); +private: + MsgGenericEventHandler(const MsgGenericEventHandler &); // undefined + void operator=(const MsgGenericEventHandler &); // undefined + struct WrapReporter { + WrapReporter(MessageReporter *r) : reporter(r), origStream(0) { + origStream = reporter->releaseMessageStream(); + reporter->setMessageStream(&strStream); + } + ~WrapReporter() { + if (origStream) { + reporter->releaseMessageStream(); + reporter->setMessageStream(origStream); + } + } + MessageReporter *reporter; + OutputCharStream *origStream; + StrOutputCharStream strStream; + }; + const bool *messagesInhibitedPtr_; + MessageReporter *reporter_; +}; + +inline void +GenericEventHandler::setString(SGMLApplication::CharString &to, + const StringC &from) +{ + to.ptr = from.data(); + to.len = from.size(); +} + +inline +void GenericEventHandler::clearString(SGMLApplication::CharString &to) +{ + to.len = 0; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not GenericEventHandler_INCLUDED */ diff --git a/include/Hash.h b/include/Hash.h new file mode 100644 index 0000000..c8d7a00 --- /dev/null +++ b/include/Hash.h @@ -0,0 +1,25 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Hash_INCLUDED +#define Hash_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "StringC.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API Hash { +public: + static unsigned long hash(const StringC &); +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Hash_INCLUDED */ diff --git a/include/HashTable.cxx b/include/HashTable.cxx new file mode 100644 index 0000000..0e49612 --- /dev/null +++ b/include/HashTable.cxx @@ -0,0 +1,41 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef HashTable_DEF_INCLUDED +#define HashTable_DEF_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +void HashTable::insert(const K &key, const V &value, Boolean replace) +{ + HashTableItem *newItem = new HashTableItem(key, value); + HashTableItem *tem = (HashTableItem *)table_.insert(newItem); + if (tem) { + delete newItem; + if (replace) { + tem->key = key; + tem->value = value; + } + } +} + +template +HashTableItem::HashTableItem(const K &k, const V &v) +: HashTableItemBase(k), value(v) +{ +} + +template +HashTableItemBase *HashTableItem::copy() const +{ + return new HashTableItem(*this); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not HashTable_DEF_INCLUDED */ diff --git a/include/HashTable.h b/include/HashTable.h new file mode 100644 index 0000000..e202071 --- /dev/null +++ b/include/HashTable.h @@ -0,0 +1,68 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef HashTable_INCLUDED +#define HashTable_INCLUDED 1 + +#include +#include "OwnerTable.h" +#include "Hash.h" +#include "Boolean.h" +#include "HashTableItemBase.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class HashTableItem : public HashTableItemBase { +public: + HashTableItem(const K &k, const V &v); + HashTableItemBase *copy() const; + V value; +}; + +template class HashTableIter; + +template +class HashTable { +public: + HashTable() { } + void insert(const K &key, const V &value, Boolean replace = 1); + const V *lookup(const K &key) const { + HashTableItem *tem = (HashTableItem *)table_.lookup(key); + return tem ? &tem->value : 0; + } + size_t count() const { return table_.count(); } +private: + CopyOwnerTable, K, Hash, HashTableKeyFunction > table_; +friend class HashTableIter; +}; + +template +class HashTableIter { +public: + HashTableIter(const HashTable &table) : iter_(table.table_) { } + Boolean next(const K *&key, const V *&value) { + HashTableItem *p = (HashTableItem *)iter_.next(); + if (p) { + key = &p->key; + value = &p->value; + return 1; + } + else + return 0; + } +private: + OwnerTableIter, K, Hash, HashTableKeyFunction > iter_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not HashTable_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "HashTable.cxx" +#endif diff --git a/include/HashTableItemBase.cxx b/include/HashTableItemBase.cxx new file mode 100644 index 0000000..f2516eb --- /dev/null +++ b/include/HashTableItemBase.cxx @@ -0,0 +1,26 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef HashTableItemBase_DEF_INCLUDED +#define HashTableItemBase_DEF_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +HashTableItemBase::~HashTableItemBase() +{ +} + +template +HashTableItemBase::HashTableItemBase(const K &k) : key(k) +{ +} + + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not HashTableItemBase_DEF_INCLUDED */ diff --git a/include/HashTableItemBase.h b/include/HashTableItemBase.h new file mode 100644 index 0000000..a7ee8e0 --- /dev/null +++ b/include/HashTableItemBase.h @@ -0,0 +1,38 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef HashTableItemBase_INCLUDED +#define HashTableItemBase_INCLUDED 1 + +// All hash tables with the same type of key share object code. +// The cost of this is a virtual dtor in HashTableItemBase. + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class HashTableItemBase { +public: + HashTableItemBase(const K &k); + virtual ~HashTableItemBase(); + virtual HashTableItemBase *copy() const = 0; + K key; +}; + +template +struct HashTableKeyFunction { + static inline const K &key(const HashTableItemBase &obj) { + return obj.key; + } +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not HashTableItemBase_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "HashTableItemBase.cxx" +#endif diff --git a/include/IList.h b/include/IList.h new file mode 100644 index 0000000..e66cd00 --- /dev/null +++ b/include/IList.h @@ -0,0 +1,41 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef IList_INCLUDED +#define IList_INCLUDED 1 + +#include "IListBase.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template class IListIter; + +// This owns the objects that are put in it. + +template +class IList : private IListBase { +public: + IList() { } + IList(T *p) : IListBase(p) { } + ~IList() { clear(); } + void append(T *p) { IListBase::append(p); } + void insert(T *p) { IListBase::insert(p); } + void remove(T *p) { IListBase::remove(p); } + void swap(IList &list) { IListBase::swap(list); } + T *head() const { return (T *)IListBase::head(); } + T *get() { return (T *)IListBase::get(); } + IListBase::clear; + IListBase::empty; +friend class IListIter; +private: + IList(const IList &); // undefined + IList &operator=(const IList &); // undefined +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not IList_INCLUDED */ diff --git a/include/IListBase.h b/include/IListBase.h new file mode 100644 index 0000000..5e4abc2 --- /dev/null +++ b/include/IListBase.h @@ -0,0 +1,80 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef IListBase_INCLUDED +#define IListBase_INCLUDED 1 + +#include "Link.h" +#include "Boolean.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API IListBase { +public: + IListBase(); + IListBase(Link *); + void append(Link *); + void insert(Link *); + Link *head() const; + Boolean empty() const; + Link *get(); + void remove(Link *); + void swap(IListBase &); + void clear(); +private: + Link *head_; +friend class IListIterBase; +}; + +inline +IListBase::IListBase() : head_(0) +{ +} + +inline +IListBase::IListBase(Link *head) : head_(head) +{ +} + +inline +void IListBase::insert(Link *p) +{ + p->next_ = head_; + head_ = p; +} + +inline +Link *IListBase::head() const +{ + return head_; +} + +inline +Boolean IListBase::empty() const +{ + return head_ == 0; +} + +inline +Link *IListBase::get() +{ + Link *tem = head_; + head_ = head_->next_; + return tem; +} + +inline +void IListBase::swap(IListBase &list) +{ + Link *tem = head_; + head_ = list.head_; + list.head_ = tem; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not IListBase_INCLUDED */ diff --git a/include/IListIter.h b/include/IListIter.h new file mode 100644 index 0000000..74e1bd6 --- /dev/null +++ b/include/IListIter.h @@ -0,0 +1,28 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef IListIter_INCLUDED +#define IListIter_INCLUDED 1 + +#include "IListIterBase.h" +#include "IList.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class IListIter : private IListIterBase { +public: + IListIter(const IList &list) : IListIterBase(list) { } + T *cur() const { return (T *)IListIterBase::cur(); } + + IListIterBase::next; + IListIterBase::done; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not IListIter_INCLUDED */ diff --git a/include/IListIterBase.h b/include/IListIterBase.h new file mode 100644 index 0000000..53bed71 --- /dev/null +++ b/include/IListIterBase.h @@ -0,0 +1,51 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef IListIterBase_INCLUDED +#define IListIterBase_INCLUDED 1 + +#include "Link.h" +#include "IListBase.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API IListIterBase { +public: + IListIterBase(const IListBase &); + int done() const; + Link *cur() const; + void next(); +private: + Link *p_; +}; + +inline +IListIterBase::IListIterBase(const IListBase &list) : p_(list.head_) +{ +} + +inline +int IListIterBase::done() const +{ + return p_ == 0; +} + +inline +Link *IListIterBase::cur() const +{ + return p_; +} + +inline +void IListIterBase::next() +{ + p_ = p_->next_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not IListIterBase_INCLUDED */ diff --git a/include/IQueue.cxx b/include/IQueue.cxx new file mode 100644 index 0000000..307c38c --- /dev/null +++ b/include/IQueue.cxx @@ -0,0 +1,22 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef IQueue_DEF_INCLUDED +#define IQueue_DEF_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +void IQueue::clear() +{ + while (!empty()) + delete get(); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not IQueue_DEF_INCLUDED */ diff --git a/include/IQueue.h b/include/IQueue.h new file mode 100644 index 0000000..90dc1a9 --- /dev/null +++ b/include/IQueue.h @@ -0,0 +1,65 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef IQueue_INCLUDED +#define IQueue_INCLUDED 1 + +#include "Boolean.h" +#include "Link.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class IQueueBase { +public: + IQueueBase() : last_(0) { } + ~IQueueBase() { } + Boolean empty() const { return last_ == 0; } + Link *get() { + Link *tem = last_->next_; + if (tem == last_) + last_ = 0; + else + last_->next_ = tem->next_; + return tem; + } + void append(Link *p) { + if (last_) { + p->next_ = last_->next_; + last_ = last_->next_ = p; + } + else + last_ = p->next_ = p; + } + void swap(IQueueBase &with) { + Link *tem = last_; + last_ = with.last_; + with.last_ = tem; + } +private: + Link *last_; + +}; + +template +class IQueue : private IQueueBase { +public: + IQueue() { } + ~IQueue() { clear(); } + void clear(); + T *get() { return (T *)IQueueBase::get(); } + void append(T *p) { IQueueBase::append(p); } + Boolean empty() const { return IQueueBase::empty(); } + void swap(IQueue &to) { IQueueBase::swap(to); } +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not IQueue_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "IQueue.cxx" +#endif diff --git a/include/ISet.cxx b/include/ISet.cxx new file mode 100644 index 0000000..8818b34 --- /dev/null +++ b/include/ISet.cxx @@ -0,0 +1,130 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef ISet_DEF_INCLUDED +#define ISet_DEF_INCLUDED 1 + +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +ISet::ISet() +{ +} + +template +ISet::~ISet() +{ +} + +template +ISet::ISet(const T *v, size_t n) +{ + for (size_t i = 0; i < n; i++) + add(v[i]); +} + +template +Boolean ISet::contains(T x) const +{ + for (size_t i = 0; i < r_.size(); i++) + if (r_[i].max >= x) + return r_[i].min <= x ? 1 : 0; + return 0; +} + +template +void ISet::addRange(T min, T max) +{ + size_t i; + if (min == 0) + i = 0; + else { + for (i = r_.size(); i > 0 && min - 1 <= r_[i - 1].max; i--) + ; + } + // r_[i - 1].max < min - 1 <= r_[i].max + if (i < r_.size() && (r_[i].min == 0 || max >= r_[i].min - 1)) { + // we can coelesce + if (min < r_[i].min) + r_[i].min = min; + if (max > r_[i].max) { + r_[i].max = max; + size_t j; + for (j = i + 1; j < r_.size() && r_[i].max >= r_[j].min - 1; j++) + r_[i].max = r_[j].max; + // get rid of i + 1 ... j - 1 + if (j > i + 1) { + for (size_t k = j; k < r_.size(); k++) + r_[k - (j - i - 1)] = r_[k]; + r_.resize(r_.size() - (j - i - 1)); + } + } + } + else { + // r_[i - 1].max < min - 1 + // max + 1 < r_[i].min + r_.resize(r_.size() + 1); + for (size_t j = r_.size() - 1; j > i; j--) + r_[j] = r_[j - 1]; + r_[i].max = max; + r_[i].min = min; + } +} + +template +void ISet::remove(T c) +{ + for (size_t i = 0; i < r_.size(); i++) + if (r_[i].max >= c) { + if (r_[i].min <= c) { + if (r_[i].min == r_[i].max) { + while (++i < r_.size()) + r_[i - 1] = r_[i]; + r_.resize(r_.size() - 1); + } + else if (c == r_[i].min) + r_[i].min += 1; + else if (c == r_[i].max) + r_[i].max -= 1; + else { + r_.resize(r_.size() + 1); + // split the range + // subtracting 2 is safe since we know that the length is >= 2 + for (size_t j = r_.size() - 2; j > i; j--) + r_[j + 1] = r_[j]; + r_[i + 1].max = r_[i].max; + r_[i + 1].min = c + 1; + r_[i].max = c - 1; + } + } + break; + } +} + +template +void ISet::check() +{ + for (size_t i = 0; i < r_.size(); i++) { + if (r_[i].min > r_[i].max) + abort(); + // adjacent ranges must be coalesced + if (i > 0 && r_[i].min - 1 <= r_[i - 1].max) + abort(); + } +} + +template +void ISet::clear() +{ + r_.resize(0); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ISet_DEF_INCLUDED */ diff --git a/include/ISet.h b/include/ISet.h new file mode 100644 index 0000000..0181286 --- /dev/null +++ b/include/ISet.h @@ -0,0 +1,58 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef ISet_INCLUDED +#define ISet_INCLUDED + + +#include +#include "Vector.h" +#include "Boolean.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template class ISetIter; + +template +struct ISetRange { + T min; + T max; +}; + +template +class ISet { +public: + ISet(); + ISet(const T *, size_t); + ~ISet(); + Boolean contains(T) const; + void remove(T); + void add(T x) { addRange(x, x); } + void addRange(T, T); +#if 0 + void add(const ISet &); +#endif + void check(); + void operator+=(T x) { addRange(x, x); } + void clear(); + Boolean isSingleton() const { + return r_.size() == 1 && r_[0].min == r_[0].max; + } + Boolean isEmpty() const { return r_.size() == 0; } + void swap(ISet &x) { r_.swap(x.r_); } +friend class ISetIter; +private: + Vector > r_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ISet_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "ISet.cxx" +#endif diff --git a/include/ISetIter.h b/include/ISetIter.h new file mode 100644 index 0000000..7ff1d72 --- /dev/null +++ b/include/ISetIter.h @@ -0,0 +1,40 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef ISetIter_INCLUDED +#define ISetIter_INCLUDED + +#include +#include "ISet.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class ISetIter { +public: + ISetIter(const ISet &s) : p_(&s), i_(0) { } + // min and max are not changed if 0 is returned. + int next(T &min, T &max) + { + if (i_ < p_->r_.size()) { + min = p_->r_[i_].min; + max = p_->r_[i_].max; + i_++; + return 1; + } + else + return 0; + } + +private: + const ISet *p_; + size_t i_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* ISetIter_INCLUDED */ diff --git a/include/IdentityCodingSystem.h b/include/IdentityCodingSystem.h new file mode 100644 index 0000000..14900bd --- /dev/null +++ b/include/IdentityCodingSystem.h @@ -0,0 +1,25 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef IdentityCodingSystem_INCLUDED +#define IdentityCodingSystem_INCLUDED 1 + +#include "CodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API IdentityCodingSystem : public CodingSystem { +public: + IdentityCodingSystem(); + Decoder *makeDecoder() const; + Encoder *makeEncoder() const; + Boolean isIdentity() const; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not IdentityCodingSystem_INCLUDED */ diff --git a/include/InputSource.h b/include/InputSource.h new file mode 100644 index 0000000..0b03a93 --- /dev/null +++ b/include/InputSource.h @@ -0,0 +1,289 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef InputSource_INCLUDED +#define InputSource_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "Link.h" +#include "Ptr.h" +#include "Location.h" +#include "XcharMap.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Messenger; +class NamedCharRef; +class CharsetInfo; +class InternalInputSource; + +class SP_API InputSource : public Link { +public: + enum { eE = -1 }; // end of entity signal + + virtual ~InputSource(); + Xchar get(Messenger &); + virtual void pushCharRef(Char ch, const NamedCharRef &) = 0; + const Location ¤tLocation() const; + const Char *currentTokenStart() const; + size_t currentTokenLength() const; + const Char *currentTokenEnd() const; + Index nextIndex() const; + // Discard all but the last character of the current token. + void discardInitial(); + void startToken(); + void startTokenNoMulticode(); + void endToken(size_t length); + Xchar tokenChar(Messenger &); + Xchar tokenCharInBuffer(Messenger &); + void ungetToken(); + void setMarkupScanTable(const XcharMap &); + Boolean scanSuppress() const; + void extendToBufferEnd(); + virtual void willNotRewind(); + virtual Boolean rewind(Messenger &) = 0; + Boolean accessError() const; + virtual void setDocCharset(const CharsetInfo &docCharset, + const CharsetInfo &emCharset); + virtual void willNotSetDocCharset(); + virtual InternalInputSource *asInternalInputSource(); +protected: + InputSource(InputSourceOrigin *origin, const Char *start, const Char *end); + void reset(const Char *start, const Char *end); + InputSourceOrigin *inputSourceOrigin(); + void noteCharRef(Index replacementIndex, const NamedCharRef &); + const Char *cur(); + const Char *start(); + const Char *end(); + Index startIndex(); + void changeBuffer(const Char *newBase, const Char *oldBase); + void advanceEnd(const Char *newEnd); + void moveLeft(); + void moveStart(const Char *newStart); + Char nextChar(); + void setAccessError(); +private: + InputSource(const InputSource &); // undefined + void operator=(const InputSource &); // undefined + virtual Xchar fill(Messenger &) = 0; + void advanceStart(const Char *to); + void advanceStartMulticode(const Char *to); + + const Char *cur_; + const Char *start_; + const Char *end_; + Location startLocation_; + Ptr origin_; + Boolean accessError_; + Boolean scanSuppress_; + Boolean scanSuppressSingle_; + Index scanSuppressIndex_; + Boolean multicode_; + XcharMap markupScanTable_; +}; + +inline +void InputSource::advanceStart(const Char *to) +{ + if (multicode_) + advanceStartMulticode(to); + else { + startLocation_ += to - start_; + start_ = to; + } +} + +inline +Xchar InputSource::get(Messenger &mgr) +{ + advanceStart(cur_); + return cur_ < end_ ? *cur_++ : fill(mgr); +} + +inline +void InputSource::startTokenNoMulticode() +{ + startLocation_ += cur_ - start_; + start_ = cur_; +} + +inline +void InputSource::startToken() +{ + advanceStart(cur_); +} + +inline +void InputSource::endToken(size_t length) +{ + cur_ = start_ + length; +} + +inline +Xchar InputSource::tokenChar(Messenger &mgr) +{ + return cur_ < end_ ? *cur_++ : fill(mgr); +} + +inline +Xchar InputSource::tokenCharInBuffer(Messenger &mgr) +{ + return cur_ < end_ ? (Xchar)*cur_++ : eE; +} + +inline +void InputSource::extendToBufferEnd() +{ + cur_ = end_; +} + +inline +const Char *InputSource::cur() +{ + return cur_; +} + +inline +const Char *InputSource::start() +{ + return start_; +} + +inline +const Char *InputSource::end() +{ + return end_; +} + +inline +void InputSource::changeBuffer(const Char *newBase, const Char *oldBase) +{ + cur_ = newBase + (cur_ - oldBase); + start_ = newBase + (start_ - oldBase); + end_ = newBase + (end_ - oldBase); +} + +inline +void InputSource::moveStart(const Char *newStart) +{ + cur_ = newStart + (cur_ - start_); + end_ = newStart + (end_ - start_); + start_ = newStart; +} + +inline +void InputSource::advanceEnd(const Char *newEnd) +{ + end_ = newEnd; +} + +inline +Char InputSource::nextChar() +{ + return *cur_++; +} + +inline +Index InputSource::startIndex() +{ + return startLocation_.index(); +} + +inline +void InputSource::moveLeft() +{ + start_--; + cur_--; +} + +inline +void InputSource::noteCharRef(Index replacementIndex, const NamedCharRef &ref) +{ + origin_->noteCharRef(replacementIndex, ref); +} + +inline +const Location &InputSource::currentLocation() const +{ + return startLocation_; +} + +inline +const Char *InputSource::currentTokenStart() const +{ + return start_; +} + +inline +size_t InputSource::currentTokenLength() const +{ + return cur_ - start_; +} + +inline +Index InputSource::nextIndex() const +{ + return startLocation_.index() + (cur_ - start_); +} + +inline +const Char *InputSource::currentTokenEnd() const +{ + return cur_; +} + +inline +void InputSource::discardInitial() +{ + advanceStart(cur_ - 1); +} + +inline +void InputSource::ungetToken() +{ + cur_ = start_; +} + +inline +void InputSource::setMarkupScanTable(const XcharMap &table) +{ + markupScanTable_ = table; + multicode_ = 1; +} + +inline +Boolean InputSource::scanSuppress() const +{ + return scanSuppress_ && (!scanSuppressSingle_ + || startLocation_.index() == scanSuppressIndex_); +} + +inline +InputSourceOrigin *InputSource::inputSourceOrigin() +{ + return origin_.pointer(); +} + +inline +void InputSource::setAccessError() +{ + accessError_ = 1; +} + +inline +Boolean InputSource::accessError() const +{ + return accessError_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not InputSource_INCLUDED */ diff --git a/include/InternalInputSource.h b/include/InternalInputSource.h new file mode 100644 index 0000000..9e19fa7 --- /dev/null +++ b/include/InternalInputSource.h @@ -0,0 +1,50 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef InternalInputSource_INCLUDED +#define InternalInputSource_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include +#include "InputSource.h" +#include "Allocator.h" +#include "StringC.h" +#include "types.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class InputSourceOrigin; +class Messenger; +class NamedCharRef; + +class SP_API InternalInputSource : public InputSource { +public: + void *operator new(size_t sz, Allocator &alloc) { return alloc.alloc(sz); } + void *operator new(size_t sz) { return Allocator::allocSimple(sz); } + void operator delete(void *p) { Allocator::free(p); } +#ifdef SP_HAVE_PLACEMENT_OPERATOR_DELETE + void operator delete(void *p, Allocator &) { Allocator::free(p); } +#endif + InternalInputSource(const StringC &, InputSourceOrigin *); + Xchar fill(Messenger &); + void pushCharRef(Char ch, const NamedCharRef &); + Boolean rewind(Messenger &); + const StringC *contents(); + InternalInputSource *asInternalInputSource(); + ~InternalInputSource(); +private: + InternalInputSource(const InternalInputSource &); // undefined + void operator=(const InternalInputSource &); // undefined + Char *buf_; + const StringC *contents_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not InternalInputSource_INCLUDED */ diff --git a/include/Link.h b/include/Link.h new file mode 100644 index 0000000..27c43fb --- /dev/null +++ b/include/Link.h @@ -0,0 +1,38 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Link_INCLUDED +#define Link_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API Link { +public: + Link(); + Link(Link *); + virtual ~Link(); +private: + Link *next_; + +friend class IListBase; +friend class IListIterBase; +friend class IQueueBase; +}; + +inline +Link::Link() : next_(0) +{ +} + +inline +Link::Link(Link *next) : next_(next) +{ +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Link_INCLUDED */ diff --git a/include/LinkProcess.h b/include/LinkProcess.h new file mode 100644 index 0000000..45c1e0b --- /dev/null +++ b/include/LinkProcess.h @@ -0,0 +1,81 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef LinkProcess_INCLUDED +#define LinkProcess_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Lpd.h" +#include "IList.h" +#include "Link.h" +#include "Vector.h" +#include "Vector.h" +#include "Ptr.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Messenger; + +struct SP_API LinkProcessOpenElement : public Link { + LinkProcessOpenElement(const LinkSet *current, const SourceLinkRule &); + LinkProcessOpenElement(const LinkSet *current); + const LinkSet *current; + const LinkSet *restore; + const LinkSet *post; + Boolean postRestore; +}; + +class SP_API LinkProcess { +public: + LinkProcess(); + void init(const ConstPtr &lpd); + Boolean startElement(const ElementType *, + const AttributeList &attributes, + const Location &location, + Messenger &, + const AttributeList *&linkAttributes, + const ResultElementSpec *&resultElementSpec); + void endElement(); + void uselink(const LinkSet *linkSet, + Boolean restore, + const Lpd *); + virtual Boolean selectLinkRule(const Vector &, + const Location &location, + size_t &selected); + size_t nImpliedLinkRules() const; + const ResultElementSpec &impliedLinkRule(size_t) const; + const StringC &name() const; + Boolean isExplicit() const; + void clear(); + void swap(LinkProcess &); +private: + LinkProcess(const LinkProcess &); // undefined + void operator=(const LinkProcess &); // undefined + + IList open_; + ConstPtr lpd_; + Vector > activeLpds_; + Vector linkAttributes_; +}; + +inline +const StringC &LinkProcess::name() const +{ + return lpd_->name(); +} + +inline +Boolean LinkProcess::isExplicit() const +{ + return lpd_->type() == Lpd::explicitLink; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not LinkProcess_INCLUDED */ diff --git a/include/List.cxx b/include/List.cxx new file mode 100644 index 0000000..2f10c9e --- /dev/null +++ b/include/List.cxx @@ -0,0 +1,37 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef List_DEF_INCLUDED +#define List_DEF_INCLUDED 1 + +#include "IListIter.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +void List::remove(const T &value) +{ + for (IListIter > iter(list_); !iter.done(); iter.next()) + if (iter.cur()->value == value) { + list_.remove(iter.cur()); + delete iter.cur(); + break; + } +} + +template +T List::get() +{ + ListItem *p = list_.get(); + T temp(p->value); + delete p; + return temp; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not List_DEF_INCLUDED */ diff --git a/include/List.h b/include/List.h new file mode 100644 index 0000000..663c9e4 --- /dev/null +++ b/include/List.h @@ -0,0 +1,49 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef List_INCLUDED +#define List_INCLUDED 1 + +#include "IList.h" +#include "Link.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class ListItem : public Link { +public: + ListItem(const T &v) : value(v) { } + T value; +}; + +template class ListIter; + +template +class List { +public: + List() { } + void append(const T &item) { list_.append(new ListItem(item)); } + void insert(const T &item) { list_.insert(new ListItem(item)); } + const T &head() const { return list_.head()->value; } + void remove(const T &); + T get(); + int empty() const { return list_.empty(); } + friend class ListIter; +private: + List(const List &); // undefined + void operator=(const List &); // undefined + + IList > list_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not List_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "List.cxx" +#endif diff --git a/include/ListIter.h b/include/ListIter.h new file mode 100644 index 0000000..29ebc79 --- /dev/null +++ b/include/ListIter.h @@ -0,0 +1,29 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef ListIter_INCLUDED +#define ListIter_INCLUDED 1 + +#include "List.h" +#include "IListIter.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class ListIter { +public: + ListIter(const List &list) : iter_(list.list_) { } + const T &cur() const { return iter_.cur()->value; } + int done() const { return iter_.done(); } + void next() { iter_.next(); } +private: + IListIter > iter_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ListIter_INCLUDED */ diff --git a/include/LiteralStorage.h b/include/LiteralStorage.h new file mode 100644 index 0000000..ce2bb20 --- /dev/null +++ b/include/LiteralStorage.h @@ -0,0 +1,40 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef LiteralStorage_INCLUDED +#define LiteralStorage_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "StorageManager.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API LiteralStorageManager : public StorageManager { +public: + LiteralStorageManager(const char *type); + StorageObject *makeStorageObject(const StringC &id, + const StringC &, + Boolean, + Boolean mayRewind, + Messenger &, + StringC &found); + const InputCodingSystem *requiredCodingSystem() const; + Boolean requiresCr() const; + const char *type() const; + Boolean inheritable() const; +private: + LiteralStorageManager(const LiteralStorageManager &); // undefined + void operator=(const LiteralStorageManager &); // undefined + + const char *type_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not LiteralStorage_INCLUDED */ diff --git a/include/Location.h b/include/Location.h new file mode 100644 index 0000000..f665ac0 --- /dev/null +++ b/include/Location.h @@ -0,0 +1,197 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Location_INCLUDED +#define Location_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "Boolean.h" +#include "Ptr.h" +#include "Resource.h" +#include "Boolean.h" +#include "Vector.h" +#include "Owner.h" +#include "StringC.h" +#include "rtti.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class ExternalInfo; +class EntityOrigin; +class InputSourceOrigin; +class Entity; +class EntityDecl; +class Location; +class Markup; +class Text; +class NamedCharRef; + +class SP_API Origin : public Resource { +public: + virtual ~Origin(); + virtual const EntityOrigin *asEntityOrigin() const; + virtual const InputSourceOrigin *asInputSourceOrigin() const; + virtual const Location &parent() const = 0; + virtual Index refLength() const; + virtual Boolean origChars(const Char *&) const; + virtual Boolean inBracketedTextOpenDelim() const; + virtual Boolean inBracketedTextCloseDelim() const; + virtual Boolean isNumericCharRef(const Markup *&markup) const; + virtual Boolean isNamedCharRef(Index ind, NamedCharRef &ref) const; + virtual const EntityDecl *entityDecl() const; + virtual Boolean defLocation(Offset off, const Origin *&, Index &) const; + virtual const Markup *markup() const; + virtual const Entity *entity() const; + virtual const ExternalInfo *externalInfo() const; + virtual Offset startOffset(Index ind) const; + const StringC *entityName() const; +}; + +class SP_API ProxyOrigin : public Origin { +public: + ProxyOrigin(const Origin *origin); + const EntityOrigin *asEntityOrigin() const; + const InputSourceOrigin *asInputSourceOrigin() const; + const Location &parent() const; + Index refLength() const; + Boolean origChars(const Char *&) const; + Boolean inBracketedTextOpenDelim() const; + Boolean inBracketedTextCloseDelim() const; + Boolean isNumericCharRef(const Markup *&markup) const; + Boolean isNamedCharRef(Index ind, NamedCharRef &ref) const; + const EntityDecl *entityDecl() const; + Boolean defLocation(Offset off, const Origin *&, Index &) const; + const Markup *markup() const; + const Entity *entity() const; + const ExternalInfo *externalInfo() const; + Offset startOffset(Index ind) const; +private: + const Origin *origin_; +}; + +class SP_API Location { +public: + Location(); + Location(const Location&); + Location(Origin *, Index); + Location(ConstPtr, Index); + void operator+=(Index i) { index_ += i; } + void operator-=(Index i) { index_ -= i; } + Index index() const { return index_; } + const ConstPtr &origin() const { return origin_; } + void clear() { origin_.clear(); } + void swap(Location &to) { + origin_.swap(to.origin_); + Index tem = to.index_; + to.index_ = index_; + index_ = tem; + } +private: + ConstPtr origin_; + Index index_; +}; + +class SP_API ExternalInfo { + RTTI_CLASS +public: + virtual ~ExternalInfo(); +}; + +class SP_API NamedCharRef { +public: + enum RefEndType { + endOmitted, + endRE, + endRefc + }; + NamedCharRef(); + NamedCharRef(Index, RefEndType, const StringC &); + Index refStartIndex() const; + RefEndType refEndType() const; + const StringC &origName() const; + void set(Index, RefEndType, const Char *, size_t); +private: + Index refStartIndex_; + RefEndType refEndType_; + StringC origName_; +}; + +struct SP_API InputSourceOriginNamedCharRef { + Index replacementIndex; + size_t origNameOffset; + Index refStartIndex; + NamedCharRef::RefEndType refEndType; +}; + +class SP_API InputSourceOrigin : public Origin { +public: + virtual ~InputSourceOrigin() = 0; + virtual void noteCharRef(Index replacementIndex, const NamedCharRef &) = 0; + virtual void setExternalInfo(ExternalInfo *) = 0; + virtual InputSourceOrigin *copy() const = 0; + static InputSourceOrigin *make(); + static InputSourceOrigin *make(const Location &refLocation); +}; + +// a delimiter specified in bracketed text + +class SP_API BracketOrigin : public Origin { +public: + enum Position { open, close }; + BracketOrigin(const Location &, Position); + const Location &parent() const; + Boolean inBracketedTextOpenDelim() const; + Boolean inBracketedTextCloseDelim() const; +private: + Position pos_; + Location loc_; +}; + +class SP_API ReplacementOrigin : public Origin { +public: + ReplacementOrigin(const Location &, Char origChar); + const Location &parent() const; + Boolean origChars(const Char *&) const; +private: + Location loc_; + Char origChar_; +}; + +class SP_API MultiReplacementOrigin : public Origin { +public: + MultiReplacementOrigin(const Location &, StringC &origChars); + const Location &parent() const; + Boolean origChars(const Char *&) const; +private: + Location loc_; + StringC origChars_; +}; + +inline +Index NamedCharRef::refStartIndex() const +{ + return refStartIndex_; +} + +inline +NamedCharRef::RefEndType NamedCharRef::refEndType() const +{ + return refEndType_; +} + +inline +const StringC &NamedCharRef::origName() const +{ + return origName_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Location_INCLUDED */ diff --git a/include/Lpd.h b/include/Lpd.h new file mode 100644 index 0000000..4ab7e6a --- /dev/null +++ b/include/Lpd.h @@ -0,0 +1,449 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Lpd_INCLUDED +#define Lpd_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Attribute.h" +#include "StringC.h" +#include "Ptr.h" +#include "Resource.h" +#include "Boolean.h" +#include "Named.h" +#include "NamedTable.h" +#include "Syntax.h" +#include "Location.h" +#include "Dtd.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class ElementType; + +struct SP_API ResultElementSpec { + ResultElementSpec(); + const ElementType *elementType; + AttributeList attributeList; + void swap(ResultElementSpec &); +}; + +class SP_API Lpd : public Resource { +public: + enum Type { simpleLink, implicitLink, explicitLink }; + Lpd(const StringC &, Type, const Location &, + const Ptr &sourceDtd); + virtual ~Lpd(); + Type type() const; + const Location &location() const; + const Ptr &sourceDtd(); + ConstPtr sourceDtd() const; + Boolean active() const; + void activate(); + const ConstPtr > &namePointer() const; + const StringC &name() const; +private: + Lpd(const Lpd &); // undefined + void operator=(const Lpd &); // undefined + Type type_; + Location location_; + Boolean active_; + Ptr sourceDtd_; + ConstPtr > name_; +}; + +class SP_API SimpleLpd : public Lpd, public Attributed { +public: + SimpleLpd(const StringC &, const Location &, + const Ptr &sourceDtd); +private: + SimpleLpd(const SimpleLpd &); // undefined + void operator=(const SimpleLpd &); // undefined +}; + +class LinkSet; + +// A link rule whose source element specification is not implied. + +class SP_API SourceLinkRule { +public: + SourceLinkRule(); + void setLinkAttributes(AttributeList &); + void setResult(const ElementType *, AttributeList &); + void setUselink(const LinkSet *); + void setPostlink(const LinkSet *); + void setPostlinkRestore(); + void swap(SourceLinkRule &); + const AttributeList &attributes() const; + const ResultElementSpec &resultElementSpec() const; + const LinkSet *uselink() const; + const LinkSet *postlink() const; + Boolean postlinkRestore() const; +private: + const LinkSet *uselink_; + const LinkSet *postlink_; + Boolean postlinkRestore_; + AttributeList linkAttributes_; + ResultElementSpec resultElementSpec_; +}; + +class SP_API SourceLinkRuleResource : public Resource, public SourceLinkRule { +public: + SourceLinkRuleResource(); + inline ~SourceLinkRuleResource() {} +}; + +class SP_API LinkSet : public Named { +public: + LinkSet(const StringC &, const Dtd *); + virtual ~LinkSet(); + void setDefined(); + Boolean defined() const; + void addImplied(const ElementType *, AttributeList &); + size_t nLinkRules(const ElementType *) const; + const SourceLinkRule &linkRule(const ElementType *, size_t) const; + void addLinkRule(const ElementType *, + const ConstPtr &); + size_t nImpliedLinkRules() const; + const ResultElementSpec &impliedLinkRule(size_t) const; + Boolean impliedResultAttributes(const ElementType *, + const AttributeList *&); +private: + LinkSet(const LinkSet &); // undefined + void operator=(const LinkSet &); // undefined + Boolean defined_; + // indexed by typeIndex of source elements + Vector > > + linkRules_; + Vector impliedSourceLinkRules_; +}; + +class SP_API IdLinkRule : public SourceLinkRule { +public: + IdLinkRule(); + Boolean isAssociatedWith(const ElementType *) const; + void setAssocElementTypes(Vector &); + void swap(IdLinkRule &); +private: + Vector assocElementTypes_; +}; + +// A collection of link rules in a ID link set that are +// assocated with the same name (unique identifier). + +class SP_API IdLinkRuleGroup : public Named { +public: + IdLinkRuleGroup(const StringC &); + size_t nLinkRules() const; + const IdLinkRule &linkRule(size_t) const; + void addLinkRule(IdLinkRule &); +private: + IdLinkRuleGroup(const IdLinkRuleGroup &); // undefined + void operator=(const IdLinkRuleGroup &); // undefined + Vector linkRules_; +}; + +// An implicit or explicit LPD. + +class SP_API ComplexLpd : public Lpd { +public: + typedef ConstNamedTableIter ConstLinkSetIter; + ComplexLpd(const StringC &, Type, + const Location &, + const Syntax &syntax, + const Ptr &sourceDtd, + const Ptr &resultDtd); + virtual ~ComplexLpd(); + size_t allocAttributeDefinitionListIndex(); + size_t nAttributeDefinitionList() const; + LinkSet *initialLinkSet(); + const LinkSet *initialLinkSet() const; + const LinkSet *emptyLinkSet() const; + const LinkSet *lookupLinkSet(const StringC &) const; + const IdLinkRuleGroup *lookupIdLink(const StringC &) const; + IdLinkRuleGroup *lookupCreateIdLink(const StringC &); + void insertIdLink(IdLinkRuleGroup *); + ConstLinkSetIter linkSetIter() const; + Boolean hadIdLinkSet() const; + void setHadIdLinkSet(); + + LinkSet *lookupLinkSet(const StringC &); + LinkSet *insertLinkSet(LinkSet *); + const Ptr &resultDtd(); + ConstPtr resultDtd() const; + const ConstPtr & + attributeDef(const ElementType *) const; + void setAttributeDef(const ElementType *, + const ConstPtr &); +private: + ComplexLpd(const ComplexLpd &); // undefined + void operator=(const ComplexLpd &); // undefined + Ptr resultDtd_; + Vector > linkAttributeDefs_; + NamedTable linkSetTable_; + LinkSet initialLinkSet_; + LinkSet emptyLinkSet_; + Boolean hadIdLinkSet_; + NamedTable idLinkTable_; + size_t nAttributeDefinitionList_; +}; + +inline +Lpd::Type Lpd::type() const +{ + return type_; +} + +inline +const Location &Lpd::location() const +{ + return location_; +} + +inline +Boolean Lpd::active() const +{ + return active_; +} + +inline +void Lpd::activate() +{ + active_ = 1; +} + +inline +ConstPtr Lpd::sourceDtd() const +{ + return sourceDtd_; +} + +inline +const Ptr &Lpd::sourceDtd() +{ + return sourceDtd_; +} + +inline +const ConstPtr > &Lpd::namePointer() const +{ + return name_; +} + +inline +const StringC &Lpd::name() const +{ + return *name_; +} + +inline +void SourceLinkRule::setLinkAttributes(AttributeList &attributes) +{ + attributes.swap(linkAttributes_); +} + +inline +const AttributeList &SourceLinkRule::attributes() const +{ + return linkAttributes_; +} + +inline +void SourceLinkRule::setResult(const ElementType *element, + AttributeList &attributes) +{ + resultElementSpec_.elementType = element; + attributes.swap(resultElementSpec_.attributeList); +} + +inline +const ResultElementSpec &SourceLinkRule::resultElementSpec() const +{ + return resultElementSpec_; +} + +inline +void SourceLinkRule::setUselink(const LinkSet *linkSet) +{ + uselink_ = linkSet; +} + +inline +void SourceLinkRule::setPostlink(const LinkSet *linkSet) +{ + postlink_ = linkSet; +} + +inline +void SourceLinkRule::setPostlinkRestore() +{ + postlinkRestore_ = 1; +} + +inline +const LinkSet *SourceLinkRule::uselink() const +{ + return uselink_; +} + +inline +const LinkSet *SourceLinkRule::postlink() const +{ + return postlink_; +} + +inline +Boolean SourceLinkRule::postlinkRestore() const +{ + return postlinkRestore_; +} + +inline +Boolean LinkSet::defined() const +{ + return defined_; +} + +inline +void LinkSet::setDefined() +{ + defined_ = 1; +} + +inline +const SourceLinkRule &LinkSet::linkRule(const ElementType *e, size_t i) const +{ + return *linkRules_[e->index()][i]; +} + +inline +size_t LinkSet::nImpliedLinkRules() const +{ + return impliedSourceLinkRules_.size(); +} + +inline +const ResultElementSpec &LinkSet::impliedLinkRule(size_t i) const +{ + return impliedSourceLinkRules_[i]; +} + +inline +const Ptr &ComplexLpd::resultDtd() +{ + return resultDtd_; +} + +inline +ConstPtr ComplexLpd::resultDtd() const +{ + return resultDtd_; +} + +inline +LinkSet *ComplexLpd::initialLinkSet() +{ + return &initialLinkSet_; +} + +inline +const LinkSet *ComplexLpd::initialLinkSet() const +{ + return &initialLinkSet_; +} + +inline +const LinkSet *ComplexLpd::emptyLinkSet() const +{ + return &emptyLinkSet_; +} + +inline +const LinkSet *ComplexLpd::lookupLinkSet(const StringC &name) const +{ + return linkSetTable_.lookup(name); +} + +inline +LinkSet *ComplexLpd::lookupLinkSet(const StringC &name) +{ + return linkSetTable_.lookup(name); +} + +inline +LinkSet *ComplexLpd::insertLinkSet(LinkSet *e) +{ + return linkSetTable_.insert(e); +} + +inline +size_t ComplexLpd::nAttributeDefinitionList() const +{ + return nAttributeDefinitionList_; +} + +inline +size_t ComplexLpd::allocAttributeDefinitionListIndex() +{ + return nAttributeDefinitionList_++; +} + +inline +ComplexLpd::ConstLinkSetIter ComplexLpd::linkSetIter() const +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return ConstNamedTableIter(linkSetTable_); +} + +inline +const ConstPtr & +ComplexLpd::attributeDef(const ElementType *e) const +{ + return linkAttributeDefs_[e->index()]; +} + +inline +void ComplexLpd::setAttributeDef(const ElementType *e, + const ConstPtr &attdef) +{ + linkAttributeDefs_[e->index()] = attdef; +} + +inline +Boolean ComplexLpd::hadIdLinkSet() const +{ + return hadIdLinkSet_; +} + +inline +void ComplexLpd::setHadIdLinkSet() +{ + hadIdLinkSet_ = 1; +} + +inline +const IdLinkRuleGroup *ComplexLpd::lookupIdLink(const StringC &id) const +{ + return idLinkTable_.lookup(id); +} + +inline +size_t IdLinkRuleGroup::nLinkRules() const +{ + return linkRules_.size(); +} + +inline +const IdLinkRule &IdLinkRuleGroup::linkRule(size_t i) const +{ + return linkRules_[i]; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Lpd_INCLUDED */ diff --git a/include/Makefile.am b/include/Makefile.am new file mode 100644 index 0000000..31479e4 --- /dev/null +++ b/include/Makefile.am @@ -0,0 +1,40 @@ +## Process this file with automake to produce Makefile.in + +pkginclude_HEADERS = Allocator.h ArcEngine.h Attribute.h Attributed.h \ + Big5CodingSystem.h Boolean.h CharMap.cxx CharMap.h CharsetDecl.h \ + CharsetInfo.h CharsetRegistry.h CmdLineApp.h CodingSystem.h \ + CodingSystemKit.h ConsoleOutput.h ContentState.h ContentToken.h \ + CopyOwner.cxx CopyOwner.h DescriptorManager.h Dtd.h \ + EUCJPCodingSystem.h ElementType.h Entity.h EntityApp.h \ + EntityCatalog.h EntityDecl.h EntityManager.h ErrnoMessageArg.h \ + ErrorCountEventHandler.h Event.h EventsWanted.h ExtendEntityManager.h \ + ExternalId.h Fixed2CodingSystem.h GenericEventHandler.h Hash.h \ + HashTable.cxx HashTable.h HashTableItemBase.cxx HashTableItemBase.h \ + IList.h IListBase.h IListIter.h IListIterBase.h IQueue.cxx IQueue.h \ + ISet.cxx ISet.h ISetIter.h IdentityCodingSystem.h InputSource.h \ + InternalInputSource.h Link.h LinkProcess.h List.cxx List.h ListIter.h \ + LiteralStorage.h Location.h Lpd.h Markup.h Message.h MessageArg.h \ + MessageBuilder.h MessageEventHandler.h MessageFormatter.h \ + MessageModule.h MessageReporter.h MessageTable.h Mode.h NCVector.h \ + Named.h NamedResource.h NamedResourceTable.h NamedTable.h Notation.h \ + NotationStorage.h OpenElement.h Options.cxx Options.h \ + OutputByteStream.h OutputCharStream.h Owner.cxx Owner.h \ + OwnerTable.cxx OwnerTable.h ParserApp.h ParserOptions.h \ + PointerTable.cxx PointerTable.h PosixStorage.h Ptr.cxx Ptr.h \ + RangeMap.cxx RangeMap.h Resource.h RewindStorageObject.h \ + SJISCodingSystem.h SOEntityCatalog.h Sd.h SdText.h \ + SearchResultMessageArg.h SgmlParser.h ShortReferenceMap.h \ + StdioStorage.h StorageManager.h StringC.h StringOf.cxx StringOf.h \ + StringResource.h SubstTable.h Syntax.h Text.h \ + TranslateCodingSystem.h TypeId.h URLStorage.h UTF8CodingSystem.h \ + UnicodeCodingSystem.h UnivCharsetDesc.h Vector.cxx Vector.h \ + XMLCodingSystem.h XcharMap.cxx XcharMap.h constant.h \ + macros.h rtti.h sptchar.h types.h xnew.h \ + UTF16CodingSystem.h Fixed4CodingSystem.h + +## We don't install the windows-only headers on unix systems, but +## we still include it in the distribution +EXTRA_DIST = Win32CodingSystem.h WinApp.h WinInetStorage.h config.h.old \ + .cvsignore + +MAINTAINERCLEANFILES = Makefile.in diff --git a/include/Makefile.in b/include/Makefile.in new file mode 100644 index 0000000..6f4ea96 --- /dev/null +++ b/include/Makefile.in @@ -0,0 +1,486 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = include +DIST_COMMON = $(pkginclude_HEADERS) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(srcdir)/config.h.old.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = config.h.old +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pkgincludedir)" +pkgincludeHEADERS_INSTALL = $(INSTALL_HEADER) +HEADERS = $(pkginclude_HEADERS) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +pkginclude_HEADERS = Allocator.h ArcEngine.h Attribute.h Attributed.h \ + Big5CodingSystem.h Boolean.h CharMap.cxx CharMap.h CharsetDecl.h \ + CharsetInfo.h CharsetRegistry.h CmdLineApp.h CodingSystem.h \ + CodingSystemKit.h ConsoleOutput.h ContentState.h ContentToken.h \ + CopyOwner.cxx CopyOwner.h DescriptorManager.h Dtd.h \ + EUCJPCodingSystem.h ElementType.h Entity.h EntityApp.h \ + EntityCatalog.h EntityDecl.h EntityManager.h ErrnoMessageArg.h \ + ErrorCountEventHandler.h Event.h EventsWanted.h ExtendEntityManager.h \ + ExternalId.h Fixed2CodingSystem.h GenericEventHandler.h Hash.h \ + HashTable.cxx HashTable.h HashTableItemBase.cxx HashTableItemBase.h \ + IList.h IListBase.h IListIter.h IListIterBase.h IQueue.cxx IQueue.h \ + ISet.cxx ISet.h ISetIter.h IdentityCodingSystem.h InputSource.h \ + InternalInputSource.h Link.h LinkProcess.h List.cxx List.h ListIter.h \ + LiteralStorage.h Location.h Lpd.h Markup.h Message.h MessageArg.h \ + MessageBuilder.h MessageEventHandler.h MessageFormatter.h \ + MessageModule.h MessageReporter.h MessageTable.h Mode.h NCVector.h \ + Named.h NamedResource.h NamedResourceTable.h NamedTable.h Notation.h \ + NotationStorage.h OpenElement.h Options.cxx Options.h \ + OutputByteStream.h OutputCharStream.h Owner.cxx Owner.h \ + OwnerTable.cxx OwnerTable.h ParserApp.h ParserOptions.h \ + PointerTable.cxx PointerTable.h PosixStorage.h Ptr.cxx Ptr.h \ + RangeMap.cxx RangeMap.h Resource.h RewindStorageObject.h \ + SJISCodingSystem.h SOEntityCatalog.h Sd.h SdText.h \ + SearchResultMessageArg.h SgmlParser.h ShortReferenceMap.h \ + StdioStorage.h StorageManager.h StringC.h StringOf.cxx StringOf.h \ + StringResource.h SubstTable.h Syntax.h Text.h \ + TranslateCodingSystem.h TypeId.h URLStorage.h UTF8CodingSystem.h \ + UnicodeCodingSystem.h UnivCharsetDesc.h Vector.cxx Vector.h \ + XMLCodingSystem.h XcharMap.cxx XcharMap.h constant.h \ + macros.h rtti.h sptchar.h types.h xnew.h \ + UTF16CodingSystem.h Fixed4CodingSystem.h + +EXTRA_DIST = Win32CodingSystem.h WinApp.h WinInetStorage.h config.h.old \ + .cvsignore + +MAINTAINERCLEANFILES = Makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu include/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +config.h.old: $(top_builddir)/config.status $(srcdir)/config.h.old.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +install-pkgincludeHEADERS: $(pkginclude_HEADERS) + @$(NORMAL_INSTALL) + test -z "$(pkgincludedir)" || $(mkdir_p) "$(DESTDIR)$(pkgincludedir)" + @list='$(pkginclude_HEADERS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(pkgincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgincludedir)/$$f'"; \ + $(pkgincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgincludedir)/$$f"; \ + done + +uninstall-pkgincludeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(pkginclude_HEADERS)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pkgincludedir)/$$f'"; \ + rm -f "$(DESTDIR)$(pkgincludedir)/$$f"; \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(HEADERS) +installdirs: + for dir in "$(DESTDIR)$(pkgincludedir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-libtool \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pkgincludeHEADERS + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-pkgincludeHEADERS + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool ctags distclean distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-exec install-exec-am install-info \ + install-info-am install-man install-pkgincludeHEADERS \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-info-am \ + uninstall-pkgincludeHEADERS + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/include/Markup.h b/include/Markup.h new file mode 100644 index 0000000..74fdf10 --- /dev/null +++ b/include/Markup.h @@ -0,0 +1,204 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef Markup_INCLUDED +#define Markup_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "StringC.h" +#include "Syntax.h" +#include "Sd.h" +#include "Vector.h" +#include "Text.h" +#include "SdText.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class EntityOrigin; + +struct SP_API MarkupItem { + MarkupItem(); + MarkupItem(const MarkupItem &); + ~MarkupItem(); + void operator=(const MarkupItem &); + unsigned char type; + unsigned char index; + union { + size_t nChars; + ConstPtr *origin; // type == entityStart + Text *text; // type == literal + SdText *sdText; // type == sdLiteral + }; +}; + +class InputSource; + +class SP_API Markup { +public: + enum Type { + reservedName, + sdReservedName, + name, + nameToken, + attributeValue, + number, + comment, + s, + shortref, + delimiter, + refEndRe, + entityStart, + entityEnd, + literal, + sdLiteral + }; + Markup(); + ~Markup(); + size_t size() const; + void clear(); + void resize(size_t); + void addDelim(Syntax::DelimGeneral); + void addReservedName(Syntax::ReservedName, const InputSource *); + void addReservedName(Syntax::ReservedName, const StringC &); + void addSdReservedName(Sd::ReservedName, const InputSource *); + void addSdReservedName(Sd::ReservedName, const Char *, size_t); + void addS(Char); + void addS(const InputSource *); + void addRefEndRe(); + void addShortref(const InputSource *); + void addCommentStart(); + void addCommentChar(Char); + void addName(const InputSource *); + void addName(const Char *, size_t); + void addNameToken(const InputSource *); + void addNumber(const InputSource *); + void addAttributeValue(const InputSource *); + void addEntityStart(const Ptr &); + void addEntityEnd(); + void addLiteral(const Text &); + void addSdLiteral(const SdText &); + void changeToAttributeValue(size_t index); + void changeToSdReservedName(size_t index, Sd::ReservedName); + void swap(Markup &); +private: + StringC chars_; + Vector items_; + friend class MarkupIter; +}; + +class Location; + +class SP_API MarkupIter { +public: + MarkupIter(const Markup &); + Markup::Type type() const; + Boolean valid() const; + void advance(); + // This updates a Location. + void advance(Location &, const ConstPtr &); + size_t index() const; + const Char *charsPointer() const; + size_t charsLength() const; + const Text &text() const; + const EntityOrigin *entityOrigin() const; // valid for type == entityStart + const SdText &sdText() const; + Syntax::DelimGeneral delimGeneral() const; + Syntax::ReservedName reservedName() const; + Sd::ReservedName sdReservedName() const; +private: + const Char *chars_; + Vector::const_iterator items_; + size_t nItems_; + size_t index_; + size_t charIndex_; +}; + +inline +void Markup::clear() +{ + chars_.resize(0); + items_.resize(0); +} + +inline +size_t Markup::size() const +{ + return items_.size(); +} + +inline +Boolean MarkupIter::valid() const +{ + return index_ < nItems_; +} + +inline +size_t MarkupIter::index() const +{ + return index_; +} + +inline +Markup::Type MarkupIter::type() const +{ + return Markup::Type(items_[index_].type); +} + +inline +const EntityOrigin *MarkupIter::entityOrigin() const +{ + return (*items_[index_].origin)->asEntityOrigin(); +} + +inline +const Char *MarkupIter::charsPointer() const +{ + return chars_ + charIndex_; +} + +inline +size_t MarkupIter::charsLength() const +{ + return items_[index_].nChars; +} + +inline +const Text &MarkupIter::text() const +{ + return *items_[index_].text; +} + +inline +const SdText &MarkupIter::sdText() const +{ + return *items_[index_].sdText; +} + +inline +Syntax::DelimGeneral MarkupIter::delimGeneral() const +{ + return Syntax::DelimGeneral(items_[index_].index); +} + +inline +Syntax::ReservedName MarkupIter::reservedName() const +{ + return Syntax::ReservedName(items_[index_].index); +} + +inline +Sd::ReservedName MarkupIter::sdReservedName() const +{ + return Sd::ReservedName(items_[index_].index); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Markup_INCLUDED */ diff --git a/include/Message.h b/include/Message.h new file mode 100644 index 0000000..d6aa5f3 --- /dev/null +++ b/include/Message.h @@ -0,0 +1,310 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Message_INCLUDED +#define Message_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include +#include "Location.h" +#include "Vector.h" +#include "CopyOwner.h" +#include "Boolean.h" +#include "StringC.h" +#include "MessageArg.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class MessageModule; + +#ifdef _MSC_VER +extern SP_API MessageModule libModule; +extern SP_API MessageModule appModule; +#else +extern MessageModule libModule; +extern MessageModule appModule; +#endif + +class SP_API MessageFragment { +public: + +#ifdef _MSC_VER + MessageFragment() {}; +#endif + ~MessageFragment(); + + MessageFragment(const MessageModule *module, unsigned number, const char *text = 0); + const MessageModule *module() const; + unsigned number() const; + const char *text() const; +private: + unsigned short number_; + const MessageModule * module_; +protected: + unsigned char spare_; +private: +#ifndef SP_NO_MESSAGE_TEXT + const char *text_; +#endif +}; + +class SP_API MessageType : public MessageFragment { +public: + enum Severity { + info, + warning, + quantityError, + idrefError, + error + }; + MessageType(Severity = info, const MessageModule *module = &libModule, + unsigned number = unsigned(-1), + const char *text = 0, const char *clauses = 0, + const char *auxText = 0); + ~MessageType(); + Severity severity() const; + MessageFragment auxFragment() const; + Boolean isError() const; + const char *clauses() const; +private: +#ifndef SP_NO_MESSAGE_TEXT + const char *clauses_; + const char *auxText_; +#endif +}; + + +class SP_API MessageType0 : public MessageType { +public: + MessageType0(Severity = info, const MessageModule *module = &libModule, + unsigned number = unsigned(-1), const char *text = 0, + const char *clauses = 0); + ~MessageType0(); +}; + +class SP_API MessageType1 : public MessageType { +public: + MessageType1(Severity = info, const MessageModule *module = &libModule, + unsigned number = unsigned(-1), const char *text = 0, + const char *clauses = 0); + ~MessageType1(); +}; + +class SP_API MessageType2 : public MessageType { +public: + MessageType2(Severity = info, const MessageModule *module = &libModule, + unsigned number = unsigned(-1), const char *text = 0, + const char *clauses = 0); + ~MessageType2(); +}; + +class SP_API MessageType3 : public MessageType { +public: + MessageType3(Severity = info, const MessageModule *module = &libModule, + unsigned number = unsigned(-1), const char *text = 0, + const char *clauses = 0); + ~MessageType3(); +}; + +class SP_API MessageType4 : public MessageType { +public: + MessageType4(Severity = info, const MessageModule *module = &libModule, + unsigned number = unsigned(-1), const char *text = 0, + const char *clauses = 0); + ~MessageType4(); +}; + +class SP_API MessageType5 : public MessageType { +public: + MessageType5(Severity = info, const MessageModule *module = &libModule, + unsigned number = unsigned(-1), const char *text = 0, + const char *clauses = 0); + ~MessageType5(); +}; + +class SP_API MessageType6 : public MessageType { +public: + MessageType6(Severity = info, const MessageModule *module = &libModule, + unsigned number = unsigned(-1), const char *text = 0, + const char *clauses = 0); + ~MessageType6(); +}; + +class SP_API MessageType0L : public MessageType { +public: + MessageType0L(Severity = info, const MessageModule *module = &libModule, + unsigned number = unsigned(-1), const char *text = 0, + const char *clauses = 0, const char *auxText = 0); + ~MessageType0L(); +}; + +class SP_API MessageType1L : public MessageType { +public: + MessageType1L(Severity = info, const MessageModule *module = &libModule, + unsigned number = unsigned(-1), const char *text = 0, + const char *clauses = 0, const char *auxText = 0); + ~MessageType1L(); +}; + +class SP_API OpenElementInfo { +public: + OpenElementInfo(); + OpenElementInfo(OpenElementInfo const&); + inline ~OpenElementInfo() {}; + PackedBoolean included; + StringC gi; + StringC matchType; + unsigned matchIndex; +}; + +class SP_API Message { +public: + Message(); + Message(int nArgs); + const MessageType *type; + Location loc; + Location auxLoc; + Vector > args; + Vector openElementInfo; + void swap(Message &); + Boolean isError() const; +}; + +class SP_API Messenger { +public: + Messenger(); + virtual ~Messenger(); + void message(const MessageType0 &); + void message(const MessageType1 &, const MessageArg &); + void message(const MessageType2 &, + const MessageArg &, + const MessageArg &); + void message(const MessageType3 &, + const MessageArg &, + const MessageArg &, + const MessageArg &); + void message(const MessageType4 &, + const MessageArg &, + const MessageArg &, + const MessageArg &, + const MessageArg &); + void message(const MessageType5 &, + const MessageArg &, + const MessageArg &, + const MessageArg &, + const MessageArg &, + const MessageArg &); + void message(const MessageType6 &, + const MessageArg &, + const MessageArg &, + const MessageArg &, + const MessageArg &, + const MessageArg &, + const MessageArg &); + void message(const MessageType0L &, const Location &); + void message(const MessageType1L &, const MessageArg &, const Location &); + void setNextLocation(const Location &); + virtual void initMessage(Message &); + virtual void dispatchMessage(const Message &) = 0; + virtual void dispatchMessage(Message &); +private: + void doInitMessage(Message &); + Boolean haveNextLocation_; + Location nextLocation_; +}; + +class SP_API ForwardingMessenger : public Messenger { +public: + ForwardingMessenger(Messenger &); + void dispatchMessage(const Message &); + void dispatchMessage(Message &); + void initMessage(Message &); +private: + Messenger *to_; +}; + +class SP_API ParentLocationMessenger : public ForwardingMessenger { +public: + ParentLocationMessenger(Messenger &); + void initMessage(Message &); +}; + +class SP_API NullMessenger : public Messenger { +public: + NullMessenger(); + void dispatchMessage(const Message &); +}; + +inline +const MessageModule *MessageFragment::module() const +{ + return module_; +} + +inline +unsigned MessageFragment::number() const +{ + return number_; +} + +inline +const char *MessageFragment::text() const +{ +#ifdef SP_NO_MESSAGE_TEXT + return 0; +#else + return text_; +#endif +} + +inline +MessageType::Severity MessageType::severity() const +{ + return Severity(spare_); +} + +inline +MessageFragment MessageType::auxFragment() const +{ + return MessageFragment(module(), + number() + 1, +#ifdef SP_NO_MESSAGE_TEXT + 0 +#else + auxText_ +#endif + ); +} + +inline +Boolean MessageType::isError() const +{ + return severity() != info && severity() != warning; +} + +inline +const char *MessageType::clauses() const +{ +#ifdef SP_NO_MESSAGE_TEXT + return 0; +#else + return clauses_; +#endif +} + +inline +Boolean Message::isError() const +{ + return type->isError(); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Message_INCLUDED */ diff --git a/include/MessageArg.h b/include/MessageArg.h new file mode 100644 index 0000000..4fe9856 --- /dev/null +++ b/include/MessageArg.h @@ -0,0 +1,76 @@ +// Copyright (c) 1994 James Clark, 1999 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef MessageArg_INCLUDED +#define MessageArg_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "StringC.h" +#include "Vector.h" +#include "rtti.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class MessageBuilder; + +class SP_API MessageArg { +public: + MessageArg(); + virtual ~MessageArg(); + virtual MessageArg *copy() const = 0; + virtual void append(MessageBuilder &) const = 0; +}; + +class SP_API StringMessageArg : public MessageArg { +public: + StringMessageArg(const StringC &); + MessageArg *copy() const; + void append(MessageBuilder &) const; +private: + StringC s_; +}; + +class SP_API NumberMessageArg : public MessageArg { +public: + NumberMessageArg(unsigned long); + MessageArg *copy() const; + void append(MessageBuilder &) const; +private: + unsigned long n_; +}; + +class SP_API OrdinalMessageArg : public MessageArg { +public: + OrdinalMessageArg(unsigned long); + MessageArg *copy() const; + void append(MessageBuilder &) const; +private: + unsigned long n_; +}; + +class SP_API OtherMessageArg : public MessageArg { + RTTI_CLASS +public: + OtherMessageArg(); + void append(MessageBuilder &) const; +}; + +class SP_API StringVectorMessageArg : public MessageArg { +public: + StringVectorMessageArg(const Vector &); + MessageArg *copy() const; + void append(MessageBuilder &) const; +private: + Vector v_; +}; + + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not MessageArg_INCLUDED */ diff --git a/include/MessageBuilder.h b/include/MessageBuilder.h new file mode 100644 index 0000000..3af14aa --- /dev/null +++ b/include/MessageBuilder.h @@ -0,0 +1,31 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef MessageBuilder_INCLUDED +#define MessageBuilder_INCLUDED 1 + +#include +#include "types.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class OtherMessageArg; +class MessageFragment; + +class SP_API MessageBuilder { +public: + inline virtual ~MessageBuilder() {} + virtual void appendNumber(unsigned long) = 0; + virtual void appendOrdinal(unsigned long) = 0; + virtual void appendChars(const Char *, size_t) = 0; + virtual void appendOther(const OtherMessageArg *) = 0; + virtual void appendFragment(const MessageFragment &) = 0; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not MessageBuilder_INCLUDED */ diff --git a/include/MessageEventHandler.h b/include/MessageEventHandler.h new file mode 100644 index 0000000..dff3481 --- /dev/null +++ b/include/MessageEventHandler.h @@ -0,0 +1,39 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef MessageEventHandler_INCLUDED +#define MessageEventHandler_INCLUDED 1 + +#include "Event.h" +#include "ErrorCountEventHandler.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class OutputCharStream; +class SgmlParser; + +class SP_API MessageEventHandler : public ErrorCountEventHandler { +public: + // if parser is non-null then subdocs will be parsed automatically + MessageEventHandler(Messenger *messenger, const SgmlParser *parser = 0); + void message(MessageEvent *); + void subdocEntity(SubdocEntityEvent *); + Messenger *messenger() const; +private: + Messenger *messenger_; + const SgmlParser *parser_; +}; + +inline +Messenger *MessageEventHandler::messenger() const +{ + return messenger_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not MessageEventHandler_INCLUDED */ diff --git a/include/MessageFormatter.h b/include/MessageFormatter.h new file mode 100644 index 0000000..8435b70 --- /dev/null +++ b/include/MessageFormatter.h @@ -0,0 +1,60 @@ +// Copyright (c) 1994, 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef MessageFormatter_INCLUDED +#define MessageFormatter_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "MessageBuilder.h" +#include "Boolean.h" +#include "Message.h" +#include "Location.h" +#include "StringC.h" +#include "OutputCharStream.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API MessageFormatter { +public: + MessageFormatter(); + virtual ~MessageFormatter(); + virtual void formatMessage(const MessageFragment &, + const Vector > &args, + OutputCharStream &, bool noquote = 0); + virtual void formatOpenElements(const Vector &openElementInfo, + OutputCharStream &os); + virtual Boolean getMessageText(const MessageFragment &, StringC &) = 0; + virtual Boolean formatFragment(const MessageFragment &, OutputCharStream &); +private: + MessageFormatter(const MessageFormatter &); // undefined + void operator=(const MessageFormatter &); // undefined +protected: + class Builder : public MessageBuilder { + public: + Builder(MessageFormatter *formatter, OutputCharStream &os, bool b) + : os_(&os), formatter_(formatter), argIsCompleteMessage_(b) { } + virtual ~Builder(); + void appendNumber(unsigned long); + void appendOrdinal(unsigned long); + void appendChars(const Char *, size_t); + void appendOther(const OtherMessageArg *); + void appendFragment(const MessageFragment &); + private: + OutputCharStream &os() { return *os_; } + OutputCharStream *os_; + MessageFormatter *formatter_; + bool argIsCompleteMessage_; + }; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not MessageFormatter_INCLUDED */ diff --git a/include/MessageModule.h b/include/MessageModule.h new file mode 100644 index 0000000..961aafc --- /dev/null +++ b/include/MessageModule.h @@ -0,0 +1,33 @@ +// Copyright (c) 2001 Epremis Corp. +// See the file COPYING for copying permission. + +#ifndef MessageModule_INCLUDED +#define MessageModule_INCLUDED 1 + +#ifdef SP_NO_MESSAGE_TEXT +// Windows only +#define WIN32_LEAN_AND_MEAN +#define STRICT +#include "windows.h" +#endif /* SP_NO_MESSAGE_TEXT */ + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API MessageModule { +public: +#ifdef SP_NO_MESSAGE_TEXT + MessageModule() : dllInstanceHandle( 0) {} + HINSTANCE dllInstanceHandle; +#else + MessageModule() : domain( 0) {} + const char * domain; +#endif +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not MessageModule_INCLUDED */ diff --git a/include/MessageReporter.h b/include/MessageReporter.h new file mode 100644 index 0000000..f7fcc7c --- /dev/null +++ b/include/MessageReporter.h @@ -0,0 +1,110 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef MessageReporter_INCLUDED +#define MessageReporter_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "MessageFormatter.h" +#include "Boolean.h" +#include "OutputCharStream.h" +#include "Message.h" +#include "Location.h" +#include "StringC.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API MessageReporter : public MessageFormatter, public Messenger { +public: + enum Option { + openElements = 01, + openEntities = 02, + messageNumbers = 04, + clauses = 010 + }; + // The OutputCharStream will be deleted by the MessageReporter + MessageReporter(OutputCharStream *); + virtual ~MessageReporter(); + void setMessageStream(OutputCharStream *); + OutputCharStream *releaseMessageStream(); + virtual void dispatchMessage(const Message &); + virtual Boolean getMessageText(const MessageFragment &, StringC &); + void addOption(Option); + void setProgramName(const StringC &); +protected: + +#ifndef _MSC_VER + MessageReporter(const MessageReporter &); // undefined + void operator=(const MessageReporter &); // undefined +#endif + + virtual const ExternalInfo *locationHeader(const Location &, Offset &off); + virtual const ExternalInfo *locationHeader(const Origin *, Index, Offset &off); + virtual void printLocation(const ExternalInfo *info, Offset off); + OutputCharStream &os(); + + OutputCharStream *os_; + unsigned options_; + StringC programName_; +}; +class SP_API XMLMessageReporter : public MessageReporter { + long unsigned int id ; + enum { SP_MESSAGES_NONE, SP_MESSAGES_TRADITIONAL, SP_MESSAGES_XML } msgmode ; +protected: + virtual void printLocation(const ExternalInfo *info, Offset off); +public: + XMLMessageReporter(OutputCharStream * o) ; //: MessageReporter(o), id(0) {} + virtual void dispatchMessage(const Message &); + virtual Boolean XMLformatFragment(const MessageFragment &, OutputCharStream &); + virtual void formatMessage(const MessageFragment &, + const Vector > &args, + OutputCharStream &, bool noquote = 0); + + virtual void formatOpenElements(const Vector &openElementInfo, + OutputCharStream &os); + virtual const ExternalInfo *locationHeader(const Origin *, Index, Offset &off); + virtual void showOpenEntities(const Origin *, Index, Offset &off) ; + virtual void showOpenEntities(const Location &loc, Offset &off) { + showOpenEntities(loc.origin().pointer(), loc.index(), off) ; + } + virtual const ExternalInfo *locationHeader(const Location &loc, Offset &off) { + if ( msgmode == SP_MESSAGES_XML ) + return locationHeader(loc.origin().pointer(), loc.index(), off) ; + else if ( msgmode == SP_MESSAGES_TRADITIONAL ) + return MessageReporter::locationHeader(loc, off) ; + return NULL ; + } + +} ; + +inline +OutputCharStream &MessageReporter::os() +{ + return *os_; +} + +inline +void MessageReporter::setProgramName(const StringC &programName) +{ + programName_ = programName; +} + +inline +OutputCharStream *MessageReporter::releaseMessageStream() +{ + OutputCharStream *tem = os_; + os_ = 0; + return tem; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not MessageReporter_INCLUDED */ diff --git a/include/MessageTable.h b/include/MessageTable.h new file mode 100644 index 0000000..49ca71e --- /dev/null +++ b/include/MessageTable.h @@ -0,0 +1,34 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef MessageTable_INCLUDED +#define MessageTable_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Message.h" +#include "Boolean.h" +#include "StringC.h" +#include "sptchar.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class MessageModule; + +class SP_API MessageTable { +public: + static const MessageTable *instance(); + virtual Boolean getText(const MessageFragment &, + String &) const = 0; + virtual void registerMessageDomain(MessageModule &, char *, char *d = 0) const {}; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not MessageTable_INCLUDED */ diff --git a/include/Mode.h b/include/Mode.h new file mode 100644 index 0000000..ebfb5a6 --- /dev/null +++ b/include/Mode.h @@ -0,0 +1,75 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Mode_INCLUDED +#define Mode_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +enum Mode { + grpMode, // group + alitMode, // attribute value literals starting with LIT + alitaMode, // attribute value literals starting with LITA + aliteMode, // attribute value literals inside entity + talitMode, // tokenized attribute value literal + talitaMode, + taliteMode, + mdMode, // markup declaration + mdMinusMode, // markup declaration, also recognize minus + mdPeroMode, // markup declaration, also recognize pero + sdMode, + comMode, // comment + sdcomMode, // comment in an SGML declaration + piMode, // processing instruction + refMode, // reference + imsMode, // ignored marked section + cmsMode, // cdata marked section + rcmsMode, // rcdata marked section + // These modes are needed only for the prologue. + proMode, // prologue + dsMode, // declaration subset not in marked section + // nor in entity + dsiMode, // declaration subset in marked section or + // in entity + plitMode, // parameter literal starting with LIT + plitaMode, // paramater literal starting with LITA + pliteMode, // parameter literal inside entity + sdplitMode, // parameter literal starting with LIT + // in an SGML declaration + sdplitaMode, // parameter literal starting with LIT + // in an SGML declaration + grpsufMode, // group suffix + mlitMode, // minimum literal starting with LIT + mlitaMode, // minimum literal starting with LITA + asMode, // data/link/result attribute specification + piPasMode, // pi pseudo-attribute specification + slitMode, // system id literal starting with LIT + slitaMode, // system id literal starting with LITA + sdslitMode, // system id literal starting with LIT + // in an SGML declaration + sdslitaMode, // system id literal starting with LITA + // in an SGML declaration + // These modes are needed only for the instance. + cconMode, // CDATA content + rcconMode, // RCDATA content + cconnetMode, // CDATA content, recognize NET + rcconnetMode, // RCDATA content, recognize NET + rcconeMode, // RCDATA content inside entity + tagMode, // start- or end-tag + econMode, // element content + mconMode, // mixed content + econnetMode, // element content, recognize NET + mconnetMode // mixed content, recognize NET + }; + +const int nModes = mconnetMode + 1; + +const int minShortrefMode = econMode; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Mode_INCLUDED */ diff --git a/include/NCVector.h b/include/NCVector.h new file mode 100644 index 0000000..c0230ab --- /dev/null +++ b/include/NCVector.h @@ -0,0 +1,60 @@ +#ifndef NCVector_INCLUDED +#define NCVector_INCLUDED 1 + +#define Vector NCVector +#define NC + +#ifdef SP_DEFINE_TEMPLATES + +#undef SP_DEFINE_TEMPLATES +#ifdef Vector_INCLUDED +#undef Vector_INCLUDED +#include "Vector.h" +#define Vector_INCLUDED 1 +#else +#include "Vector.h" +#undef Vector_INCLUDED +#endif +#define SP_DEFINE_TEMPLATES 1 + +#else /* not SP_DEFINE_TEMPLATES */ + +#ifdef Vector_INCLUDED +#undef Vector_INCLUDED +#include "Vector.h" +#define Vector_INCLUDED 1 +#else +#include "Vector.h" +#undef Vector_INCLUDED +#endif + +#endif /* not SP_DEFINE_TEMPLATES */ + +#undef Vector +#undef NC + +#endif /* not NCVector_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES + +#ifndef NCVector_DEF_INCLUDED +#define NCVector_DEF_INCLUDED 1 + +#define Vector NCVector +#define NC + +#ifdef Vector_DEF_INCLUDED +#undef Vector_DEF_INCLUDED +#include "Vector.cxx" +#define Vector_DEF_INCLUDED 1 +#else +#include "Vector.cxx" +#undef Vector_DEF_INCLUDED +#endif + +#undef Vector +#undef NC + +#endif /* not NCVector_DEF_INCLUDED */ + +#endif /* SP_DEFINE_TEMPLATES */ diff --git a/include/Named.h b/include/Named.h new file mode 100644 index 0000000..1cd3803 --- /dev/null +++ b/include/Named.h @@ -0,0 +1,29 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Named_INCLUDED +#define Named_INCLUDED 1 + +#include "StringC.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API Named { +public: + Named(const StringC &name) : name_(name) { } + virtual ~Named() { } + const StringC &name() const { return name_; } + const StringC *namePointer() const { return &name_; } + void setName(const StringC &name) { name_ = name; } + void swap(Named &to) { name_.swap(to.name_); } +private: + StringC name_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Named_INCLUDED */ diff --git a/include/NamedResource.h b/include/NamedResource.h new file mode 100644 index 0000000..2bbee4c --- /dev/null +++ b/include/NamedResource.h @@ -0,0 +1,23 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef NamedResource_INCLUDED +#define NamedResource_INCLUDED 1 + +#include "Named.h" +#include "Resource.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API NamedResource : public Named, public Resource { +public: + NamedResource(const StringC &str) : Named(str) { } +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not NamedResource_INCLUDED */ diff --git a/include/NamedResourceTable.h b/include/NamedResourceTable.h new file mode 100644 index 0000000..39007ba --- /dev/null +++ b/include/NamedResourceTable.h @@ -0,0 +1,94 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef NamedResourceTable_INCLUDED +#define NamedResourceTable_INCLUDED 1 + +#include "NamedResource.h" +#include "PointerTable.h" +#include "StringC.h" +#include "Hash.h" +#include "Ptr.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct NamedResourceKeyFunction { + static inline + const StringC &key(const NamedResource &p) { + return p.name(); + } +}; + +template class NamedResourceTableIter; +template class ConstNamedResourceTableIter; + +template +class NamedResourceTable { +#ifdef __lucid + struct X { + Ptr _X; // work around lcc bug + }; +#endif +public: + NamedResourceTable() { } + Ptr insert(const Ptr &p, Boolean replace = 0) { + return (T *)table_.insert((NamedResource *)p.pointer(), replace).pointer(); + } + Ptr lookup(const StringC &str) const { + return (T *)table_.lookup(str).pointer(); + } + ConstPtr lookupConst(const StringC &str) const { + return (T *)table_.lookup(str).pointer(); + } + const T *lookupTemp(const StringC &str) const { + return (const T *)table_.lookup(str).pointer(); + } + Ptr remove(const StringC &str) { + return (T *)table_.remove(str).pointer(); + } + size_t count() const { return table_.count(); } + void clear() { table_.clear(); } + void swap(NamedResourceTable &to) { table_.swap(to.table_); } +private: + PointerTable, StringC, Hash, + NamedResourceKeyFunction> table_; + friend class NamedResourceTableIter; + friend class ConstNamedResourceTableIter; +}; + +template +class NamedResourceTableIter { +public: + NamedResourceTableIter(const NamedResourceTable &table) + : iter_(table.table_) { } + Ptr next() { + return (T *)iter_.next().pointer(); + } +private: + PointerTableIter, StringC, Hash, + NamedResourceKeyFunction> iter_; +}; + +template +class ConstNamedResourceTableIter { +public: + ConstNamedResourceTableIter(const NamedResourceTable &table) + : iter_(table.table_) { } + ConstPtr next() { + return (T *)iter_.next().pointer(); + } + const T *nextTemp() { + return (const T *)iter_.next().pointer(); + } +private: + PointerTableIter, StringC, Hash, + NamedResourceKeyFunction> iter_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not NamedResourceTable_INCLUDED */ diff --git a/include/NamedTable.h b/include/NamedTable.h new file mode 100644 index 0000000..9be59de --- /dev/null +++ b/include/NamedTable.h @@ -0,0 +1,65 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef NamedTable_INCLUDED +#define NamedTable_INCLUDED 1 + +#include "Hash.h" +#include "StringC.h" +#include "Named.h" +#include "OwnerTable.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class NamedTableKeyFunction { +public: + static inline const StringC &key(const Named &obj) { return obj.name(); } +}; + +template class NamedTableIter; +template class ConstNamedTableIter; + +template +class NamedTable { +public: + NamedTable() { } + T *insert(T *p) { return (T *)table_.insert(p); } + T *lookup(const StringC &str) const { return (T *)table_.lookup(str); } + T *remove(const StringC &str) { return (T *)table_.remove(str); } + size_t count() const { return table_.count(); } + void clear() { table_.clear(); } + void swap(NamedTable &to) { table_.swap(to.table_); } +private: + NamedTable(const NamedTable &); // undefined + void operator=(const NamedTable &); // undefined + OwnerTable + table_; + friend class NamedTableIter; + friend class ConstNamedTableIter; +}; + +template +class NamedTableIter { +public: + NamedTableIter(const NamedTable &table) : iter_(table.table_) { } + T *next() { return (T *)iter_.next(); } +private: + OwnerTableIter iter_; +}; + +template +class ConstNamedTableIter { +public: + ConstNamedTableIter(const NamedTable &table) : iter_(table.table_) { } + const T *next() { return (T *)iter_.next(); } +private: + OwnerTableIter iter_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not NamedTable_INCLUDED */ diff --git a/include/Notation.h b/include/Notation.h new file mode 100644 index 0000000..847791e --- /dev/null +++ b/include/Notation.h @@ -0,0 +1,62 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Notation_INCLUDED +#define Notation_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Owner.h" +#include "StringC.h" +#include "NamedResource.h" +#include "types.h" +#include "Ptr.h" +#include "ExternalId.h" +#include "Boolean.h" +#include "Attributed.h" +#include "StringResource.h" +#include "EntityDecl.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class ParserState; + +class SP_API Notation : public EntityDecl, public Attributed { +public: + Notation(const StringC &, + const ConstPtr > &dtdName, + Boolean dtdIsBase); + virtual ~Notation(); + void setExternalId(const ExternalId &, const Location &); + const ExternalId &externalId() const; + Boolean defined() const; + void generateSystemId(ParserState &); + const StringC *systemIdPointer() const; + const StringC *publicIdPointer() const; +private: + Notation(const Notation &); // undefined + void operator=(const Notation &); // undefined + PackedBoolean defined_; + ExternalId externalId_; +}; + +inline +const ExternalId &Notation::externalId() const +{ + return externalId_; +} + +inline +Boolean Notation::defined() const +{ + return defined_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Notation_INCLUDED */ diff --git a/include/NotationStorage.h b/include/NotationStorage.h new file mode 100644 index 0000000..a8df589 --- /dev/null +++ b/include/NotationStorage.h @@ -0,0 +1,38 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef NotationStorage_INCLUDED +#define NotationStorage_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "StorageManager.h" +#include "CharsetInfo.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API NotationStorageManager : public StorageManager { +public: + NotationStorageManager(const char *type); + StorageObject *makeStorageObject(const StringC &id, + const StringC &baseId, + Boolean search, + Boolean mayRewind, + Messenger &, + StringC &foundId); + const char *type() const; + Boolean inheritable() const; +private: + NotationStorageManager(const NotationStorageManager &); // undefined + void operator=(const NotationStorageManager &); // undefined + const char *type_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not NotationStorage_INCLUDED */ diff --git a/include/OpenElement.h b/include/OpenElement.h new file mode 100644 index 0000000..3ae5623 --- /dev/null +++ b/include/OpenElement.h @@ -0,0 +1,218 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef OpenElement_INCLUDED +#define OpenElement_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Boolean.h" +#include "ContentToken.h" +#include "ElementType.h" +#include "Link.h" +#include "Mode.h" +#include "Allocator.h" +#include "Location.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API OpenElement : public Link { +public: + inline ~OpenElement() {} + void *operator new(size_t sz, Allocator &alloc) { return alloc.alloc(sz); } + void *operator new(size_t sz) { return Allocator::allocSimple(sz); } + void operator delete(void *p) { Allocator::free(p); } +#ifdef SP_HAVE_PLACEMENT_OPERATOR_DELETE + void operator delete(void *p, Allocator &) { Allocator::free(p); } +#endif + OpenElement(const ElementType *, Boolean net, Boolean included, + const ShortReferenceMap *currentMap, + const Location &startLocation); + Boolean isFinished() const; + Boolean tryTransition(const ElementType *); + const LeafContentToken *invalidExclusion(const ElementType *) const; + // This doesn't handle declared content of EMPTY. + // If this situation can arise must use declaredEmpty(). + Boolean tryTransitionPcdata(); + const LeafContentToken *impliedStartTag() const; + void doRequiredTransition(); + const ElementType *type() const; + Boolean netEnabling() const; + Boolean included() const; + const MatchState &matchState() const; + void setMatchState(const MatchState &); + Mode mode(Boolean netEnabled) const; + const ShortReferenceMap *map() const; + void setMap(const ShortReferenceMap *); + Boolean requiresSpecialParse() const; + const Location &startLocation() const; + const LeafContentToken *currentPosition() const; + Boolean declaredEmpty() const; + void setConref(); + unsigned long index() const; + void setIndex(unsigned long); +private: + OpenElement(const OpenElement &); // undefined + void operator=(const OpenElement &); // undefined + const ElementType *elementType_; + PackedBoolean netEnabling_; // start-tag was net-enabling + PackedBoolean included_; + MatchState matchState_; + ElementDefinition::DeclaredContent declaredContent_; + const ShortReferenceMap *map_; + Location startLocation_; + unsigned long index_; +}; + +inline +const ElementType *OpenElement::type() const +{ + return elementType_; +} + +inline +Boolean OpenElement::netEnabling() const +{ + return netEnabling_; +} + +inline +Boolean OpenElement::included() const +{ + return included_; +} + +inline +const MatchState &OpenElement::matchState() const +{ + return matchState_; +} + +inline +void OpenElement::setMatchState(const MatchState &state) +{ + matchState_ = state; +} + +inline +Boolean OpenElement::isFinished() const +{ + return (declaredContent_ != ElementDefinition::modelGroup + || matchState_.isFinished()); +} + +inline +Boolean OpenElement::tryTransition(const ElementType *e) +{ + switch (declaredContent_) { + case ElementDefinition::modelGroup: + return matchState_.tryTransition(e); + case ElementDefinition::any: + return (e != elementType_) || e->definition()->allowImmediateRecursion(); + default: + return 0; + } +} + +inline +Boolean OpenElement::tryTransitionPcdata() +{ + return (declaredContent_ == ElementDefinition::modelGroup + ? matchState_.tryTransitionPcdata() + : 1); // CDATA, RCDATA, ANY all ok +} + +inline +const LeafContentToken *OpenElement::invalidExclusion(const ElementType *e) + const +{ + return (declaredContent_ == ElementDefinition::modelGroup + ? matchState_.invalidExclusion(e) + : 0); +} + +inline +void OpenElement::doRequiredTransition() +{ + matchState_.doRequiredTransition(); +} + +inline +const LeafContentToken *OpenElement::impliedStartTag() const +{ + return (declaredContent_ == ElementDefinition::modelGroup + ? matchState_.impliedStartTag() + : 0); +} + +inline +const ShortReferenceMap *OpenElement::map() const +{ + return map_; +} + +inline +void OpenElement::setMap(const ShortReferenceMap *map) +{ + map_ = map; +} + +inline +Boolean OpenElement::requiresSpecialParse() const +{ + return (declaredContent_ == ElementDefinition::cdata + || declaredContent_ == ElementDefinition::rcdata); +} + +inline +Mode OpenElement::mode(Boolean netEnabled) const +{ + return elementType_->definition()->mode(netEnabled); +} + +inline +const Location &OpenElement::startLocation() const +{ + return startLocation_; +} + +inline +const LeafContentToken *OpenElement::currentPosition() const +{ + return (declaredContent_ == ElementDefinition::modelGroup + ? matchState_.currentPosition() + : 0); +} + +inline +Boolean OpenElement::declaredEmpty() const +{ + return declaredContent_ == ElementDefinition::empty; +} + +inline +void OpenElement::setConref() +{ + declaredContent_ = ElementDefinition::empty; +} + +inline +unsigned long OpenElement::index() const +{ + return index_; +} + +inline +void OpenElement::setIndex(unsigned long index) +{ + index_ = index; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not OpenElement_INCLUDED */ diff --git a/include/Options.cxx b/include/Options.cxx new file mode 100644 index 0000000..2bf4ef0 --- /dev/null +++ b/include/Options.cxx @@ -0,0 +1,133 @@ +// Derived from comp.sources.unix/volume3/att_getopt. + +#ifndef Options_DEF_INCLUDED +#define Options_DEF_INCLUDED 1 + +#ifndef OPTION_CHAR +#define OPTION_CHAR T('-') +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +Options::Options(int argc, T *const *argv, const Vector > &l) +: argc_(argc), argv_(argv), ind_(1), sp_(1), opts_(l), optInd_(-1) +{ +} + +template +bool Options::search(T c) +{ + for (optInd_ = 0; optInd_ < opts_.size(); optInd_++) + if (opts_[optInd_].key == c) + return 1; + optInd_ = -1; + return 0; +} + +template +bool Options::searchLong(const T *arg) +{ + /* return true if a unique match is found + set sp_ to the char ending the option name ('\0' or '=') + set optInd_ to the index of the first match + */ + optInd_ = -1; + for (size_t i = 0; i < opts_.size(); i++) + if (opts_[i].name) { + const T *t; + for (sp_ = 2, t = opts_[i].name; ; sp_++, t++) { + if ((arg[sp_] == T('\0')) || (arg[sp_] == T('='))) { + if (optInd_ >= 0) + return 0; // ambiguous + else { + optInd_ = i; + if (*t == T('\0')) + return 1; // exact match + else + break; // match, continue with next option + } + } + else if (arg[sp_] != *t) + break; // no match, continue with next option + } + } + return (optInd_ >= 0); +} + +template +bool Options::get(T &c) +{ + if (sp_ == 1) { + if (ind_ >= argc_) + return false; + if ((argv_[ind_][0] != OPTION_CHAR) || argv_[ind_][1] == 0) + return false; + if (argv_[ind_][0] == OPTION_CHAR && argv_[ind_][1] == OPTION_CHAR) { + if (argv_[ind_][2] == 0) { + ind_++; + return false; + } + else { + opt_ = 0; // this marks a long option + if (searchLong(argv_[ind_])) { + c = opts_[optInd_].value; + if (opts_[optInd_].hasArgument) { + if (argv_[ind_][sp_] == T('=')) + arg_ = &argv_[ind_][sp_ + 1]; + else if (ind_ + 1 < argc_) + arg_ = argv_[++ind_]; + else + c = T('?'); // missing argument + } + else if (argv_[ind_][sp_] == T('=')) + c = T('='); // erroneous argument + } + else if (optInd_ >= 0) + c = T('-'); // ambiguous option + else + c = T('?'); // unknown option + ind_++; + sp_ = 1; + return true; + } + } + } + opt_ = c = argv_[ind_][sp_]; + if (!search(c)) { + if (argv_[ind_][++sp_] == 0) { + ind_++; + sp_ = 1; + } + c = T('?'); + return true; + } + if (optInd_ >= 0 && opts_[optInd_].hasArgument) { + if (argv_[ind_][sp_ + 1] != 0) + arg_ = &argv_[ind_++][sp_ + 1]; + else if (++ind_ >= argc_) { + sp_ = 1; + c = T('?'); + return true; + } + else + arg_ = argv_[ind_++]; + sp_ = 1; + } + else { + if (argv_[ind_][++sp_] == 0) { + sp_ = 1; + ind_++; + } + arg_ = 0; + } + return true; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Options_DEF_INCLUDED */ diff --git a/include/Options.h b/include/Options.h new file mode 100644 index 0000000..bbbf960 --- /dev/null +++ b/include/Options.h @@ -0,0 +1,58 @@ +// Copyright (c) 1996 James Clark, 1999 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef Options_INCLUDED +#define Options_INCLUDED 1 + +#include "Boolean.h" +#include "Vector.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +// This is a mildly C++ified version of getopt(). +// (extended to include getopt_long() functionality.) +// It never prints any message. + +template +class LongOption { +public: + const T *name; + T key; + T value; + bool hasArgument; +}; + +template +class Options { +public: + Options(int argc, T *const *, const Vector > &); + // Returns false if there are no more options. + bool get(T &); + T *arg() const { return arg_; } // optarg + T opt() const { return opt_; } // optopt + int ind() const { return ind_; } // optind + int longIndex() const { return optInd_; } // longindex +private: + bool search(T); + bool searchLong(const T *); + T *const *argv_; + int argc_; + int ind_; + T opt_; + T *arg_; + int sp_; + Vector > opts_; + int optInd_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Options_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "Options.cxx" +#endif diff --git a/include/OutputByteStream.h b/include/OutputByteStream.h new file mode 100644 index 0000000..c4aad35 --- /dev/null +++ b/include/OutputByteStream.h @@ -0,0 +1,138 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef OutputByteStream_INCLUDED +#define OutputByteStream_INCLUDED 1 + +#include "Link.h" +#include "StringOf.h" +#include "Boolean.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API OutputByteStream : public Link { +public: + OutputByteStream(); + virtual ~OutputByteStream(); + virtual void flush() = 0; + void sputc(char c); + void sputn(const char *, size_t); + OutputByteStream &operator<<(char); + OutputByteStream &operator<<(unsigned char); + OutputByteStream &operator<<(const char *); + OutputByteStream &operator<<(int); + OutputByteStream &operator<<(unsigned); + OutputByteStream &operator<<(long); + OutputByteStream &operator<<(unsigned long); + OutputByteStream &operator<<(const String &); + char *getBufferPtr() const; + size_t getBufferSize() const; + void usedBuffer(size_t); + virtual void flushBuf(char) = 0; +protected: + char *ptr_; + char *end_; +}; + +inline +char *OutputByteStream::getBufferPtr() const +{ + return ptr_; +} + +inline +size_t OutputByteStream::getBufferSize() const +{ + return end_ - ptr_; +} + +inline +void OutputByteStream::usedBuffer(size_t n) +{ + ptr_ += n; +} + +inline +void OutputByteStream::sputc(char c) +{ + if (ptr_ < end_) + *ptr_++ = c; + else + flushBuf(c); +} + +inline +OutputByteStream &OutputByteStream::operator<<(char c) +{ + sputc(c); + return *this; +} + +inline +OutputByteStream &OutputByteStream::operator<<(unsigned char c) +{ + sputc(char(c)); + return *this; +} + +inline +OutputByteStream &OutputByteStream::operator<<(int n) +{ + return *this << long(n); +} + +inline +OutputByteStream &OutputByteStream::operator<<(unsigned n) +{ + return *this << (unsigned long)n; +} + +inline +OutputByteStream &OutputByteStream::operator<<(const String &s) +{ + sputn(s.data(), s.size()); + return *this; +} + +class SP_API StrOutputByteStream : public OutputByteStream { +public: + StrOutputByteStream(); + virtual ~StrOutputByteStream() { /* no-op */ }; + void extractString(String &); +protected: + StrOutputByteStream(const StrOutputByteStream &); // undefined + void operator=(const StrOutputByteStream &); // undefined + void flush(); + void flushBuf(char); + String buf_; +}; + +class SP_API FileOutputByteStream : public OutputByteStream { +public: + FileOutputByteStream(); + FileOutputByteStream(int fd, Boolean closeFd = 1); + virtual ~FileOutputByteStream(); +#ifdef SP_WIDE_SYSTEM + Boolean open(const wchar_t *); +#else + Boolean open(const char *); +#endif + Boolean attach(int fd, Boolean closeFd = 1); + Boolean close(); +private: + FileOutputByteStream(const FileOutputByteStream &); // undefined + void operator=(const FileOutputByteStream &); // undefined + void flush(); + void flushBuf(char); + String buf_; + int fd_; + Boolean closeFd_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not OutputByteStream_INCLUDED */ diff --git a/include/OutputCharStream.h b/include/OutputCharStream.h new file mode 100644 index 0000000..4819e7f --- /dev/null +++ b/include/OutputCharStream.h @@ -0,0 +1,138 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef OutputCharStream_INCLUDED +#define OutputCharStream_INCLUDED 1 + +#include "types.h" +#include +#include "Link.h" +#include "StringC.h" +#include "Owner.h" +#include "CodingSystem.h" +#include "OutputByteStream.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API OutputCharStream : public Link { +public: + enum Newline { newline }; + typedef void (*Escaper)(OutputCharStream &, Char); + OutputCharStream(); + virtual ~OutputCharStream(); + OutputCharStream &put(Char); + OutputCharStream &write(const Char *, size_t); + virtual void flush() = 0; + virtual void setEscaper(Escaper); + + OutputCharStream &operator<<(char); + OutputCharStream &operator<<(const char *); + OutputCharStream &operator<<(const StringC &); + OutputCharStream &operator<<(unsigned long); + OutputCharStream &operator<<(int); + OutputCharStream &operator<<(Newline); +private: + OutputCharStream(const OutputCharStream &); // undefined + void operator=(const OutputCharStream &); // undefined + + virtual void flushBuf(Char) = 0; +protected: + Char *ptr_; + Char *end_; +}; + +class SP_API EncodeOutputCharStream : public OutputCharStream, + private Encoder::Handler { +public: + EncodeOutputCharStream(); + // the OutputByteStream will not be deleted + EncodeOutputCharStream(OutputByteStream *, const OutputCodingSystem *); + ~EncodeOutputCharStream(); + void open(OutputByteStream *, const OutputCodingSystem *); + void flush(); + void setEscaper(Escaper); +private: + EncodeOutputCharStream(const EncodeOutputCharStream &); // undefined + void operator=(const EncodeOutputCharStream &); // undefined + EncodeOutputCharStream(OutputByteStream *, Encoder *); + void allocBuf(int bytesPerChar); + void flushBuf(Char); + void handleUnencodable(Char c, OutputByteStream *); + Char *buf_; + OutputByteStream *byteStream_; + Encoder *encoder_; + Owner ownedEncoder_; + Escaper escaper_; +}; + +class SP_API StrOutputCharStream : public OutputCharStream { +public: + StrOutputCharStream(); + ~StrOutputCharStream(); + void extractString(StringC &); + void flush(); +private: + void flushBuf(Char); + void sync(size_t); + StrOutputCharStream(const StrOutputCharStream &); // undefined + void operator=(const StrOutputCharStream &); // undefined + Char *buf_; + size_t bufSize_; +}; + +class SP_API RecordOutputCharStream : public OutputCharStream { +public: + RecordOutputCharStream(OutputCharStream *); + ~RecordOutputCharStream(); + void flush(); + void setEscaper(Escaper); +private: + RecordOutputCharStream(const RecordOutputCharStream &); // undefined + void operator=(const RecordOutputCharStream &); // undefined + void flushBuf(Char); + void outputBuf(); + + OutputCharStream *os_; + enum { bufSize_ = 1024 }; + Char buf_[bufSize_]; +}; + +inline +OutputCharStream &OutputCharStream::put(Char c) +{ + if (ptr_ < end_) + *ptr_++ = c; + else + flushBuf(c); + return *this; +} + +inline +OutputCharStream &OutputCharStream::operator<<(char c) +{ + return put(Char(c)); +} + +inline +OutputCharStream &OutputCharStream::operator<<(Newline) +{ + put(Char(SP_LINE_TERM1)); +#ifdef SP_LINE_TERM2 + put(Char(SP_LINE_TERM2)); +#endif + return *this; +} + +inline +OutputCharStream &OutputCharStream::operator<<(const StringC &str) +{ + return write(str.data(), str.size()); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not OutputCharStream_INCLUDED */ diff --git a/include/Owner.cxx b/include/Owner.cxx new file mode 100644 index 0000000..2a28048 --- /dev/null +++ b/include/Owner.cxx @@ -0,0 +1,28 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Owner_DEF_INCLUDED +#define Owner_DEF_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +Owner::~Owner() +{ + if (p_) + delete p_; +} + +template +void Owner::del() +{ + delete p_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Owner_DEF_INCLUDED */ diff --git a/include/Owner.h b/include/Owner.h new file mode 100644 index 0000000..2f9be65 --- /dev/null +++ b/include/Owner.h @@ -0,0 +1,60 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Owner_INCLUDED +#define Owner_INCLUDED 1 + +// A pointer that owns the object pointed to. +// T must be of class type. +// This is coded so that T need not yet have been defined. + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class Owner { +public: + Owner() : p_(0) { } + Owner(T *p) : p_(p) { } + virtual ~Owner(); + void operator=(T *p) { + if (p_) del(); + p_ = p; + } + operator int() const { return p_ != 0; } + T *pointer() const { return p_; } + T *operator->() const { return p_; } + T &operator*() const { return *p_; } + void swap(Owner &x) { + T *tem = p_; + p_ = x.p_; + x.p_ = tem; + } + T *extract() { + T *tem = p_; + p_ = 0; + return tem; + } + void clear() { + if (p_) { + del(); + p_ = 0; + } + } +private: + Owner(const Owner &); // undefined + void operator=(const Owner &o); // undefined + void del(); + T *p_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Owner_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "Owner.cxx" +#endif diff --git a/include/OwnerTable.cxx b/include/OwnerTable.cxx new file mode 100644 index 0000000..49b916d --- /dev/null +++ b/include/OwnerTable.cxx @@ -0,0 +1,44 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef OwnerTable_DEF_INCLUDED +#define OwnerTable_DEF_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +// The uses of "this->" are for HP's compiler. + +template +OwnerTable::~OwnerTable() +{ + for (size_t i = 0; i < this->vec_.size(); i++) + delete this->vec_[i]; +} + +template +void OwnerTable::clear() +{ + for (size_t i = 0; i < this->vec_.size(); i++) + delete this->vec_[i]; + PointerTable::clear(); +} + +template +void +CopyOwnerTable::operator=(const CopyOwnerTable &t) +{ + this->clear(); + PointerTable::operator=(t); + // FIXME This isn't exception safe. + for (size_t i = 0; i < this->vec_.size(); i++) + if (this->vec_[i]) + this->vec_[i] = this->vec_[i]->copy(); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not OwnerTable_DEF_INCLUDED */ diff --git a/include/OwnerTable.h b/include/OwnerTable.h new file mode 100644 index 0000000..1a105d9 --- /dev/null +++ b/include/OwnerTable.h @@ -0,0 +1,50 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef OwnerTable_INCLUDED +#define OwnerTable_INCLUDED 1 + +#include "PointerTable.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class OwnerTable : public PointerTable { +public: + OwnerTable() { } + ~OwnerTable(); + void clear(); + void swap(OwnerTable &x) { + PointerTable::swap(x); + } +private: + OwnerTable(const OwnerTable &); + void operator=(const OwnerTable &); +}; + +template +class OwnerTableIter : public PointerTableIter { +public: + OwnerTableIter(const OwnerTable &table) + : PointerTableIter(table) { } +}; + +template +class CopyOwnerTable : public OwnerTable { +public: + CopyOwnerTable() { } + CopyOwnerTable(const CopyOwnerTable &tab) { *this = tab; } + void operator=(const CopyOwnerTable &tab); +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not OwnerTable_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "OwnerTable.cxx" +#endif diff --git a/include/ParserApp.h b/include/ParserApp.h new file mode 100644 index 0000000..f240629 --- /dev/null +++ b/include/ParserApp.h @@ -0,0 +1,53 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef ParserApp_INCLUDED +#define ParserApp_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "SgmlParser.h" +#include "ParserOptions.h" +#include "EntityApp.h" +#include "StringC.h" +#include "ErrorCountEventHandler.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API ParserApp : public EntityApp { +public: + ParserApp(const char *requiredInternalCode = 0); + void processOption(AppChar opt, const AppChar *arg); + int processSysid(const StringC &); + virtual ErrorCountEventHandler *makeEventHandler() = 0; + Boolean enableWarning(const AppChar *s); + void initParser(const StringC &sysid); + SgmlParser &parser(); + // This calls the ArcEngine if the options have enabled that. + void parseAll(SgmlParser &, EventHandler &, + const volatile sig_atomic_t *cancelPtr); + virtual void allLinkTypesActivated(); +protected: + virtual int generateEvents(ErrorCountEventHandler *); + ParserOptions options_; + SgmlParser parser_; + unsigned errorLimit_; + Vector arcNames_; + Vector activeLinkTypes_; +}; + +inline +SgmlParser &ParserApp::parser() +{ + return parser_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ParserApp_INCLUDED */ diff --git a/include/ParserOptions.h b/include/ParserOptions.h new file mode 100644 index 0000000..2f3a2db --- /dev/null +++ b/include/ParserOptions.h @@ -0,0 +1,142 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef ParserOptions_INCLUDED +#define ParserOptions_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "EventsWanted.h" +#include "Vector.h" +#include "StringC.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct Warnings { + Warnings(); + PackedBoolean warnSgmlDecl; + PackedBoolean warnDuplicateEntity; + PackedBoolean warnShould; + PackedBoolean warnUndefinedElement; + PackedBoolean warnDefaultEntityReference; + PackedBoolean warnMixedContent; + PackedBoolean warnEmptyTag; + PackedBoolean warnUnusedMap; + PackedBoolean warnUnusedParam; + PackedBoolean warnNotationSystemId; + PackedBoolean warnInclusion; + PackedBoolean warnExclusion; + PackedBoolean warnRcdataContent; + PackedBoolean warnCdataContent; + PackedBoolean warnPsComment; + PackedBoolean warnElementGroupDecl; + PackedBoolean warnAttlistGroupDecl; + PackedBoolean warnPiEntity; + PackedBoolean warnInternalSdataEntity; + PackedBoolean warnInternalCdataEntity; + PackedBoolean warnExternalSdataEntity; + PackedBoolean warnExternalCdataEntity; + PackedBoolean warnBracketEntity; + PackedBoolean warnDataAttributes; + PackedBoolean warnMissingSystemId; + PackedBoolean warnConref; + PackedBoolean warnCurrent; + PackedBoolean warnNutokenDeclaredValue; + PackedBoolean warnNumberDeclaredValue; + PackedBoolean warnNameDeclaredValue; + PackedBoolean warnNamedCharRef; + PackedBoolean warnRefc; + PackedBoolean warnTempMarkedSection; + PackedBoolean warnRcdataMarkedSection; + PackedBoolean warnInstanceIncludeMarkedSection; + PackedBoolean warnInstanceIgnoreMarkedSection; + PackedBoolean warnAndGroup; + PackedBoolean warnRank; + PackedBoolean warnEmptyCommentDecl; + PackedBoolean warnAttributeValueNotLiteral; + PackedBoolean warnMissingAttributeName; + PackedBoolean warnCommentDeclS; + PackedBoolean warnCommentDeclMultiple; + PackedBoolean warnMissingStatusKeyword; + PackedBoolean warnMultipleStatusKeyword; + PackedBoolean warnInstanceParamEntityRef; + PackedBoolean warnMinimizationParam; + PackedBoolean warnMixedContentRepOrGroup; + PackedBoolean warnNameGroupNotOr; + PackedBoolean warnPiMissingName; + PackedBoolean warnInstanceStatusKeywordSpecS; + PackedBoolean warnExternalDataEntityRef; + PackedBoolean warnAttributeValueExternalEntityRef; + PackedBoolean warnDataDelim; + PackedBoolean warnExplicitSgmlDecl; + PackedBoolean warnInternalSubsetMarkedSection; + PackedBoolean warnDefaultEntityDecl; + PackedBoolean warnNonSgmlCharRef; + PackedBoolean warnInternalSubsetPsParamEntityRef; + PackedBoolean warnInternalSubsetTsParamEntityRef; + PackedBoolean warnInternalSubsetLiteralParamEntityRef; + PackedBoolean warnImmediateRecursion; +}; + +struct SP_API ParserOptions : public Warnings { + ParserOptions(); + EventsWanted eventsWanted; + PackedBoolean datatag; + PackedBoolean omittag; + PackedBoolean rank; + PackedBoolean shorttag; + PackedBoolean emptynrm; + Number linkSimple; + PackedBoolean linkImplicit; + Number linkExplicit; + Number concur; + Number subdoc; + PackedBoolean formal; + PackedBoolean shortref; + enum { sgmlDeclTypeValid = -1 }; + short typeValid; + enum Quantity { + ATTCNT, + ATTSPLEN, + BSEQLEN, + DTAGLEN, + DTEMPLEN, + ENTLVL, + GRPCNT, + GRPGTCNT, + GRPLVL, + LITLEN, + NAMELEN, + NORMSEP, + PILEN, + TAGLEN, + TAGLVL + }; + enum { nQuantity = TAGLVL + 1 }; + Number quantity[nQuantity]; + PackedBoolean errorIdref; + PackedBoolean errorSignificant; + PackedBoolean errorAfdr; // error if AFDR extensions are used + // These override what was specified in the SGML declaration. + PackedBoolean noUnclosedTag; + PackedBoolean noNet; + PackedBoolean fullyDeclared; + PackedBoolean fullyTagged; + PackedBoolean amplyTagged; + PackedBoolean amplyTaggedAnyother; + PackedBoolean valid; + PackedBoolean entityRef; + PackedBoolean externalEntityRef; + PackedBoolean integral; + Vector includes; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ParserOptions_INCLUDED */ diff --git a/include/PointerTable.cxx b/include/PointerTable.cxx new file mode 100644 index 0000000..556dd67 --- /dev/null +++ b/include/PointerTable.cxx @@ -0,0 +1,146 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef PointerTable_DEF_INCLUDED +#define PointerTable_DEF_INCLUDED 1 + +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +PointerTable::PointerTable() +: used_(0), usedLimit_(0), null_(0) +{ +} + +template +void PointerTable::clear() +{ + vec_.clear(); + used_ = 0; + usedLimit_ = 0; +} + +template +P PointerTable::insert(P p, Boolean replace) +{ + size_t h; + if (vec_.size() == 0) { + vec_.assign(8, P(0)); + usedLimit_ = 4; + h = startIndex(KF::key(*p)); + } + else { + for (h = startIndex(KF::key(*p)); vec_[h] != 0 ; h = nextIndex(h)) + if (KF::key(*vec_[h]) == KF::key(*p)) { + if (replace) { + P tem(vec_[h]); + vec_[h] = p; + return tem; + } + else + return vec_[h]; + } + if (used_ >= usedLimit_) { + if (vec_.size() > size_t(-1)/2) { + if (usedLimit_ == vec_.size() - 1) + abort(); // FIXME throw an exception + else + usedLimit_ = vec_.size() - 1; + } + else { + // rehash + Vector

oldVec(vec_.size()*2, P(0)); + vec_.swap(oldVec); + usedLimit_ = vec_.size() / 2; + for (size_t i = 0; i < oldVec.size(); i++) + if (oldVec[i] != 0) { + size_t j; + for (j = startIndex(KF::key(*oldVec[i])); + vec_[j] != 0; + j = nextIndex(j)) + ; + vec_[j] = oldVec[i]; + } + for (h = startIndex(KF::key(*p)); vec_[h] != 0; h = nextIndex(h)) + ; + } + } + } + used_++; + vec_[h] = p; + return 0; +} + +template +const P &PointerTable::lookup(const K &k) const +{ + if (used_ > 0) { + for (size_t i = startIndex(k); vec_[i] != 0; i = nextIndex(i)) + if (KF::key(*vec_[i]) == k) + return vec_[i]; + } + return null_; +} + +template +P PointerTable::remove(const K &k) +{ + if (used_ > 0) { + for (size_t i = startIndex(k); vec_[i] != 0; i = nextIndex(i)) + if (KF::key(*vec_[i]) == k) { + P p = vec_[i]; + do { + vec_[i] = P(0); + size_t j = i; + size_t r; + do { + i = nextIndex(i); + if (vec_[i] == 0) + break; + r = startIndex(KF::key(*vec_[i])); + } while ((i <= r && r < j) || (r < j && j < i) || (j < i && i <= r)); + vec_[j] = vec_[i]; + } while (vec_[i] != 0); + --used_; + return p; + } + } + return 0; +} + +template +void PointerTable::swap(PointerTable &to) +{ + vec_.swap(to.vec_); + size_t tem = to.used_; + to.used_ = used_; + used_ = tem; + tem = to.usedLimit_; + to.usedLimit_ = usedLimit_; + usedLimit_ = tem; +} + +template +PointerTableIter::PointerTableIter(const PointerTable &table) +: tablePtr_(&table), i_(0) +{ +} + +template +const P &PointerTableIter::next() +{ + for (; i_ < tablePtr_->vec_.size(); i_++) + if (tablePtr_->vec_[i_] != 0) + return tablePtr_->vec_[i_++]; + return tablePtr_->null_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not PointerTable_DEF_INCLUDED */ diff --git a/include/PointerTable.h b/include/PointerTable.h new file mode 100644 index 0000000..42976ed --- /dev/null +++ b/include/PointerTable.h @@ -0,0 +1,68 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef PointerTable_INCLUDED +#define PointerTable_INCLUDED 1 + +#include "Vector.h" +#include "Boolean.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template class PointerTableIter; + +template +class PointerTable { + void constraints() { + P p(0); + const K &key = KF::key(*p); + unsigned long n = HF::hash(key); + n = 0; // prevent warning + } +public: + PointerTable(); + P insert(P, Boolean replace = 0); + // Return a reference so that it is possible to do + // lookups into a table of smart-pointers from multiple threads. + const P &lookup(const K &) const; + P remove(const K &); + size_t count() const { return used_; } + void clear(); + void swap(PointerTable &); +protected: + size_t used_; + size_t usedLimit_; + Vector

vec_; + P null_; + + size_t startIndex(const K &k) const { + return size_t(HF::hash(k) & (vec_.size() - 1)); + } + size_t nextIndex(size_t i) const { + return i == 0 ? vec_.size() - 1 : i - 1; + } + friend class PointerTableIter; +}; + +template +class PointerTableIter { +public: + PointerTableIter(const PointerTable &); + const P &next(); +private: + const PointerTable *tablePtr_; + size_t i_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not PointerTable_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "PointerTable.cxx" +#endif diff --git a/include/PosixStorage.h b/include/PosixStorage.h new file mode 100644 index 0000000..fd0cbe9 --- /dev/null +++ b/include/PosixStorage.h @@ -0,0 +1,85 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef PosixStorage_INCLUDED +#define PosixStorage_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "StorageManager.h" +#include "DescriptorManager.h" +#include "Vector.h" +#include "StringC.h" +#include "CharsetInfo.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Messenger; +class CharsetInfo; +class UnivCharsetDesc; +class Filename; +class OutputCodingSystem; + +class SP_API PosixStorageManager : public IdStorageManager { +public: + PosixStorageManager(const char *type, + const CharsetInfo *filenameCharset, +#ifndef SP_WIDE_SYSTEM + const OutputCodingSystem *filenameCodingSystem, +#endif + int maxFDs, + Boolean restrictFileReading = 0); + StorageObject *makeStorageObject(const StringC &id, + const StringC &baseId, + Boolean search, + Boolean mayRewind, + Messenger &, + StringC &foundId); + Boolean resolveRelative(const StringC &, StringC &, Boolean syntactic = 0) + const; + const char *type() const; + void addSearchDir(const StringC &); + Boolean transformNeutral(StringC &, Boolean fold, Messenger &) const; +private: + Boolean isAbsolute(const StringC &) const; + Boolean isSafe(const StringC &) const; + StringC extractDir(const StringC &) const; + StringC combineDir(const StringC &, const StringC &) const; + PosixStorageManager(const PosixStorageManager &); // undefined + void operator=(const PosixStorageManager &); // undefined + DescriptorManager descriptorManager_; + Boolean restrictFileReading_; +#ifndef SP_WIDE_SYSTEM + const OutputCodingSystem *filenameCodingSystem_; +#endif + const char *type_; + Vector searchDirs_; +}; + +class SP_API PosixFdStorageManager : public IdStorageManager { +public: + PosixFdStorageManager(const char *type, + const CharsetInfo *filenameCharset); + StorageObject *makeStorageObject(const StringC &id, + const StringC &baseId, + Boolean, + Boolean mayRewind, + Messenger &mgr, + StringC &foundId); + const char *type() const; + Boolean inheritable() const; +private: + PosixFdStorageManager(const PosixFdStorageManager &); // undefined + void operator=(const PosixFdStorageManager &); // undefined + const char *type_; + +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not PosixStorage_INCLUDED */ diff --git a/include/Ptr.cxx b/include/Ptr.cxx new file mode 100644 index 0000000..abbd99c --- /dev/null +++ b/include/Ptr.cxx @@ -0,0 +1,72 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Ptr_DEF_INCLUDED +#define Ptr_DEF_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +Ptr::Ptr(T *ptr) : ptr_(ptr) +{ + if (ptr_) + ptr_->ref(); +} + +template +Ptr::~Ptr() +{ + if (ptr_) { + if (ptr_->unref()) + delete ptr_; + ptr_ = 0; + } +} + +template +Ptr::Ptr(const Ptr &p) +: ptr_(p.ptr_) +{ + if (p.ptr_) + p.ptr_->ref(); +} + +template +Ptr &Ptr::operator=(const Ptr &p) +{ + if (p.ptr_) + p.ptr_->ref(); + if (ptr_ && ptr_->unref()) + delete ptr_; + ptr_ = p.ptr_; + return *this; +} + +template +Ptr &Ptr::operator=(T *p) +{ + if (p) + p->ref(); + if (ptr_ && ptr_->unref()) + delete ptr_; + ptr_ = p; + return *this; +} + +template +void Ptr::clear() +{ + if (ptr_) { + if (ptr_->unref()) + delete ptr_; + ptr_ = 0; + } +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Ptr_DEF_INCLUDED */ diff --git a/include/Ptr.h b/include/Ptr.h new file mode 100644 index 0000000..c6b2767 --- /dev/null +++ b/include/Ptr.h @@ -0,0 +1,92 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Ptr_INCLUDED +#define Ptr_INCLUDED 1 + +#include "Boolean.h" + +// T must have Resource as a public base class +// T may be an incomplete type + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class Ptr { +public: + Ptr() : ptr_(0) { } + Ptr(T *ptr); + ~Ptr(); + Ptr(const Ptr &); + Ptr &operator=(const Ptr &); + Ptr &operator=(T *); + T *pointer() const { return ptr_; } + T *operator->() const { return ptr_; } + T &operator*() const { return *ptr_; } + void swap(Ptr &p) { + T *tem = p.ptr_; + p.ptr_ = ptr_; + ptr_ = tem; + } + Boolean isNull() const { return ptr_ == 0; } + // operator const void *() const { return ptr_; } + void clear(); + Boolean operator==(const Ptr &p) const { + return ptr_ == p.ptr_; + } + Boolean operator!=(const Ptr &p) const { + return ptr_ != p.ptr_; + } + Boolean operator==(const T *p) const { + return ptr_ == p; + } + Boolean operator!=(const T *p) const { + return ptr_ != p; + } +private: + T *ptr_; +}; + +template +class ConstPtr : private Ptr { +public: + ConstPtr() { } + ConstPtr(T *ptr) : Ptr(ptr) { } + ConstPtr(const Ptr &p) : Ptr(p) { } + ConstPtr(const ConstPtr &p) : Ptr(p) { } + ConstPtr &operator=(const Ptr &p) { + Ptr::operator=(p); return *this; + } + ConstPtr &operator=(const ConstPtr &p) { + Ptr::operator=(p); return *this; + } + ConstPtr &operator=(T *p) { + Ptr::operator=(p); return *this; + } + const T *pointer() const { return Ptr::pointer(); } + const T *operator->() const { return Ptr::pointer(); } + const T &operator*() const { return *Ptr::pointer(); } + void swap(ConstPtr &p) { Ptr::swap(p); } + Ptr::isNull; + Ptr::clear; + Boolean operator==(const Ptr &p) const { return Ptr::operator==(p); } + Boolean operator!=(const Ptr &p) const { return Ptr::operator!=(p); } + Boolean operator==(const ConstPtr &p) const { + return Ptr::operator==(p); + } + Boolean operator!=(const ConstPtr &p) const { + return Ptr::operator!=(p); + } +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Ptr_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "Ptr.cxx" +#endif diff --git a/include/RangeMap.cxx b/include/RangeMap.cxx new file mode 100644 index 0000000..94515f2 --- /dev/null +++ b/include/RangeMap.cxx @@ -0,0 +1,162 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef RangeMap_DEF_INCLUDED +#define RangeMap_DEF_INCLUDED 1 + +#include "RangeMap.h" +#include "ISet.h" +#include "types.h" +#include "constant.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +RangeMap::RangeMap() +{ +} + +template +Boolean RangeMap::map(From from, To &to, From &alsoMax) const +{ + // FIXME use binary search + for (size_t i = 0; i < ranges_.size(); i++) { + const RangeMapRange &r = ranges_[i]; + if (r.fromMin <= from && from <= r.fromMax) { + to = r.toMin + (from - r.fromMin); + alsoMax = r.fromMax; + return 1; + } + if (r.fromMin > from) { + alsoMax = r.fromMin - 1; + return 0; + } + } + alsoMax = From(-1); + return 0; +} + + +typedef ISet RangeMap_dummy; + +template +unsigned RangeMap::inverseMap(To to, From &from, + ISet &fromSet, + WideChar &count) const +{ + // FIXME use binary search + unsigned ret = 0; + count = wideCharMax; + for (size_t i = 0; i < ranges_.size(); i++) { + const RangeMapRange &r = ranges_[i]; + if (r.toMin <= to && to <= r.toMin + (r.fromMax - r.fromMin)) { + From n = r.fromMin + (to - r.toMin); + WideChar thisCount = r.fromMax - n + 1; + if (ret > 1) { + fromSet.add(n); + if (thisCount < count) + count = thisCount; + } + else if (ret == 1) { + fromSet.add(from); + fromSet.add(n); + ret = 2; + if (thisCount < count) + count = thisCount; + } + else { + count = thisCount; + from = n; + ret = 1; + } + } + else if (ret == 0 && r.toMin > to && (r.toMin - to < count)) + count = r.toMin - to; + } + return ret; +} + +template +RangeMapIter::RangeMapIter(const RangeMap &map) +: count_(map.ranges_.size()), ptr_(map.ranges_.begin()) +{ +} + +// If the new range overlaps an existing one, the new +// one takes precedence. + +template +void RangeMap::addRange(From fromMin, From fromMax, To toMin) +{ + // FIXME use binary search + size_t i; + for (i = ranges_.size(); i > 0; i--) + if (fromMin > ranges_[i - 1].fromMax) + break; + // fromMin <= ranges[i].fromMax + Boolean coalesced = 0; + if (i > 0 + && ranges_[i - 1].fromMax + 1 == fromMin + && ranges_[i - 1].toMin + (fromMin - ranges_[i - 1].fromMin) == toMin) { + // coalesce with previous + ranges_[i - 1].fromMax = fromMax; + i--; + coalesced = 1; + } + else if (i < ranges_.size() && fromMax >= ranges_[i].fromMin - 1) { + // overlap + if (fromMin <= ranges_[i].fromMin) { + if (toMin + (ranges_[i].fromMin - fromMin) == ranges_[i].toMin) { + ranges_[i].fromMin = fromMin; + if (fromMax <= ranges_[i].fromMax) + return; + ranges_[i].fromMax = fromMax; + coalesced = 1; + } + } + else { + // fromMin > ranges_[i].fromMin + if (ranges_[i].toMin + (fromMin - ranges_[i].fromMin) == toMin) { + if (fromMax < ranges_[i].fromMax) + return; + ranges_[i].fromMax = fromMax; + coalesced = 1; + } + } + } + if (!coalesced) { + // insert + ranges_.resize(ranges_.size() + 1); + for (size_t j = ranges_.size() - 1; j > i; j--) + ranges_[j] = ranges_[j - 1]; + ranges_[i].fromMin = fromMin; + ranges_[i].fromMax = fromMax; + ranges_[i].toMin = toMin; + } + // Delete overlapping ranges starting at i + 1. + size_t j; + for (j = i + 1; j < ranges_.size(); j++) { + if (fromMax < ranges_[j].fromMax) { + if (fromMax >= ranges_[j].fromMin) + ranges_[j].fromMin = fromMax + 1; + break; + } + } + if (j > i + 1) { + // delete i + 1 ... j - 1 + // j -> i + 1 + // j - 1 -> i + 2 + size_t count = ranges_.size() - j; + for (size_t k = 0; k < count; k++) + ranges_[i + 1 + count] = ranges_[j + count]; + ranges_.resize(ranges_.size() - (j - (i + 1))); + } +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not RangeMap_DEF_INCLUDED */ diff --git a/include/RangeMap.h b/include/RangeMap.h new file mode 100644 index 0000000..5e1b41b --- /dev/null +++ b/include/RangeMap.h @@ -0,0 +1,68 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef RangeMap_INCLUDED +#define RangeMap_INCLUDED 1 + +#include "Vector.h" +#include "Boolean.h" +#include "ISet.h" +#include "types.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +struct RangeMapRange { + From fromMin; + From fromMax; + To toMin; +}; + +template class RangeMapIter; + +template +class RangeMap { +public: + RangeMap(); + Boolean map(From, To &, From &alsoMax) const; + // Return 0 for no matches, 1 for 1, 2 for more than 1. + unsigned inverseMap(To, From &, ISet &, WideChar &count) const; + void addRange(From, From, To); +private: + Vector > ranges_; + friend class RangeMapIter; +}; + +template +class RangeMapIter { +public: + RangeMapIter(const RangeMap &map); + Boolean next(From &fromMin, From &fromMax, To &toMin) { + if (!count_) + return 0; + else { + fromMin = ptr_->fromMin; + fromMax = ptr_->fromMax; + toMin = ptr_->toMin; + ptr_++; + count_--; + return 1; + } + } +private: + size_t count_; + typename Vector >::const_iterator ptr_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not RangeMap_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "RangeMap.cxx" +#endif diff --git a/include/Resource.h b/include/Resource.h new file mode 100644 index 0000000..a5577e1 --- /dev/null +++ b/include/Resource.h @@ -0,0 +1,56 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Resource_INCLUDED +#define Resource_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API Resource { +public: + Resource(); + Resource(const Resource &); + int unref(); // return 1 if it should be deleted + void ref(); + int count() const; +private: + int count_; +}; + +inline +Resource::Resource() +: count_(0) +{ +} + +inline +Resource::Resource(const Resource &) +: count_(0) +{ +} + +inline +int Resource::count() const +{ + return count_; +} + +inline +int Resource::unref() +{ + return --count_ <= 0; +} + +inline +void Resource::ref() +{ + ++count_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Resource_INCLUDED */ diff --git a/include/RewindStorageObject.h b/include/RewindStorageObject.h new file mode 100644 index 0000000..eb6f2ee --- /dev/null +++ b/include/RewindStorageObject.h @@ -0,0 +1,45 @@ +#ifndef RewindStorageObject_INCLUDED +#define RewindStorageObject_INCLUDED 1 + +#include "StorageManager.h" +#include "Boolean.h" +#include "StringOf.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Messenger; + +class SP_API RewindStorageObject : public StorageObject { +public: + RewindStorageObject(Boolean mayRewind, Boolean canSeek); +protected: + PackedBoolean mayRewind_; + + void saveBytes(const char *, size_t); + Boolean readSaved(char *, size_t, size_t &); + Boolean rewind(Messenger &); + void willNotRewind(); + void unread(const char *s, size_t n); + virtual Boolean seekToStart(Messenger &) = 0; +private: + PackedBoolean savingBytes_; + PackedBoolean readingSaved_; + PackedBoolean canSeek_; + String savedBytes_; + size_t nBytesRead_; +}; + +inline +void RewindStorageObject::saveBytes(const char *s, size_t n) +{ + if (savingBytes_) + savedBytes_.append(s, n); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not RewindStorageObject_INCLUDED */ diff --git a/include/SJISCodingSystem.h b/include/SJISCodingSystem.h new file mode 100644 index 0000000..ae3dfb5 --- /dev/null +++ b/include/SJISCodingSystem.h @@ -0,0 +1,23 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef SJISCodingSystem_INCLUDED +#define SJISCodingSystem_INCLUDED 1 + +#include "CodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API SJISCodingSystem : public CodingSystem { +public: + Decoder *makeDecoder() const; + Encoder *makeEncoder() const; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not SJISCodingSystem_INCLUDED */ diff --git a/include/SOEntityCatalog.h b/include/SOEntityCatalog.h new file mode 100644 index 0000000..95908ee --- /dev/null +++ b/include/SOEntityCatalog.h @@ -0,0 +1,31 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef SOEntityCatalog_INCLUDED +#define SOEntityCatalog_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "ExtendEntityManager.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API SOCatalogManager : public ExtendEntityManager::CatalogManager { +public: + static ExtendEntityManager::CatalogManager * + make(const Vector &sysids, + size_t nSysidsMustExist, + const CharsetInfo *sysidCharset, + const CharsetInfo *catalogCharset, + Boolean useDocCatalog); +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not SOEntityCatalog_INCLUDED */ diff --git a/include/Sd.h b/include/Sd.h new file mode 100644 index 0000000..31594f9 --- /dev/null +++ b/include/Sd.h @@ -0,0 +1,603 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Sd_INCLUDED +#define Sd_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "Boolean.h" +#include "Resource.h" +#include "CharsetInfo.h" +#include "ExternalId.h" +#include "ISet.h" +#include "Syntax.h" +#include "CharsetDecl.h" +#include "HashTable.h" +#include "EntityManager.h" +#include "Ptr.h" + +// Information about the SGML declaration that is not syntax specific. + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API Sd : public Resource { +public: + // These must be in the same order as in the SGML declaration. + enum BooleanFeature { + fDATATAG, + fOMITTAG, + fRANK, + fSTARTTAGEMPTY, + fSTARTTAGUNCLOSED, + fENDTAGEMPTY, + fENDTAGUNCLOSED, + fATTRIBDEFAULT, + fATTRIBOMITNAME, + fATTRIBVALUE, + fEMPTYNRM, + fIMPLYDEFATTLIST, + fIMPLYDEFDOCTYPE, + fIMPLYDEFENTITY, + fIMPLYDEFNOTATION, + fIMPLICIT, + fFORMAL, + fURN, + fKEEPRSRE + }; + enum { + nBooleanFeature = fKEEPRSRE + 1, + fSHORTTAG_FIRST = fSTARTTAGEMPTY, + fSHORTTAG_LAST = fATTRIBVALUE + }; + // These must be in the same order as in the SGML declaration. + enum NumberFeature { + fSIMPLE, + fEXPLICIT, + fCONCUR, + fSUBDOC + }; + enum { nNumberFeature = fSUBDOC + 1 }; + enum NetEnable { + netEnableNo, + netEnableImmednet, + netEnableAll + }; + enum EntityRef { + entityRefAny, + entityRefInternal, + entityRefNone + }; + enum ImplydefElement { + implydefElementNo, + implydefElementYes, + implydefElementAnyother + }; + // These are names used in the SGML declaration. + enum ReservedName { + rALL, + rANY, + rANYOTHER, + rAPPINFO, + rATTLIST, + rATTRIB, + rBASESET, + rCAPACITY, + rCHARSET, + rCONCUR, + rCONTROLS, + rDATATAG, + rDEFAULT, + rDELIM, + rDESCSET, + rDOCTYPE, + rDOCUMENT, + rELEMENT, + rEMPTY, + rEMPTYNRM, + rENDTAG, + rENTITIES, + rENTITY, + rEXPLICIT, + rFEATURES, + rFORMAL, + rFUNCHAR, + rFUNCTION, + rGENERAL, + rIMMEDNET, + rIMPLICIT, + rIMPLYDEF, + rINSTANCE, + rINTEGRAL, + rINTERNAL, + rKEEPRSRE, + rLCNMCHAR, + rLCNMSTRT, + rLINK, + rMINIMIZE, + rMSICHAR, + rMSOCHAR, + rMSSCHAR, + rNAMECASE, + rNAMECHAR, + rNAMES, + rNAMESTRT, + rNAMING, + rNETENABL, + rNO, + rNOASSERT, + rNONE, + rNOTATION, + rOMITNAME, + rOMITTAG, + rOTHER, + rPUBLIC, + rQUANTITY, + rRANK, + rRE, + rREF, + rRS, + rSCOPE, + rSEEALSO, + rSEPCHAR, + rSGML, + rSGMLREF, + rSHORTREF, + rSHORTTAG, + rSHUNCHAR, + rSIMPLE, + rSPACE, + rSTARTTAG, + rSUBDOC, + rSWITCHES, + rSYNTAX, + rSYSTEM, + rTYPE, + rUCNMCHAR, + rUCNMSTRT, + rUNCLOSED, + rUNUSED, + rURN, + rVALIDITY, + rVALUE, + rYES + }; + enum Capacity { + TOTALCAP, + ENTCAP, + ENTCHCAP, + ELEMCAP, + GRPCAP, + EXGRPCAP, + EXNMCAP, + ATTCAP, + ATTCHCAP, + AVGRPCAP, + NOTCAP, + NOTCHCAP, + IDCAP, + IDREFCAP, + MAPCAP, + LKSETCAP, + LKNMCAP + }; + enum { nCapacity = LKNMCAP + 1 }; + Sd(const Ptr &); + ~Sd(); + void setDocCharsetDesc(const UnivCharsetDesc &); + Boolean matchesReservedName(const StringC &, ReservedName) const; + int digitWeight(Char) const; + int hexDigitWeight(Char) const; + Boolean link() const; + Number simpleLink() const; + Boolean implicitLink() const; + Number explicitLink() const; + Boolean startTagEmpty() const; + Boolean startTagUnclosed() const; + NetEnable startTagNetEnable() const; + void setStartTagNetEnable(NetEnable); + Boolean endTagEmpty() const; + Boolean endTagUnclosed() const; + Boolean attributeDefault() const; + Boolean attributeValueNotLiteral() const; + Boolean attributeOmitName() const; + Boolean emptyElementNormal() const; + Boolean implydefAttlist() const; + Boolean implydefDoctype() const; + ImplydefElement implydefElement() const; + void setImplydefElement(ImplydefElement); + Boolean implydefEntity() const; + Boolean implydefNotation() const; + Number concur() const; + Boolean omittag() const; + Boolean rank() const; + Boolean datatag() const; + Boolean formal() const; + Boolean urn() const; + Boolean keeprsre() const; + Number subdoc() const; + StringC reservedName(int) const; + Boolean lookupQuantityName(const StringC &, Syntax::Quantity &) const; + Boolean lookupGeneralDelimiterName(const StringC &, Syntax::DelimGeneral &) + const; + Boolean lookupCapacityName(const StringC &, Sd::Capacity &) const; + StringC quantityName(Syntax::Quantity) const; + Boolean internalCharsetIsDocCharset() const; + const CharsetInfo &internalCharset() const; + const CharsetInfo &docCharset() const; + Char execToInternal(char) const; + StringC execToInternal(const char *) const; + Number capacity(int) const; + void setCapacity(int, Number); + StringC capacityName(int) const; + Boolean scopeInstance() const; + void setScopeInstance(); + void setDocCharsetDecl(CharsetDecl &); + const CharsetDecl &docCharsetDecl() const; + void setBooleanFeature(BooleanFeature, Boolean); + void setShorttag(Boolean); + void setNumberFeature(NumberFeature, Number); + StringC generalDelimiterName(Syntax::DelimGeneral) const; + UnivChar nameToUniv(const StringC &); + Boolean www() const; + void setWww(Boolean); + EntityRef entityRef() const; + void setEntityRef(EntityRef); + Boolean typeValid() const; + void setTypeValid(Boolean); + Boolean integrallyStored() const; + void setIntegrallyStored(Boolean); +private: + PackedBoolean booleanFeature_[nBooleanFeature]; + Number numberFeature_[nNumberFeature]; + Number capacity_[nCapacity]; + PackedBoolean internalCharsetIsDocCharset_; + // if null, use docCharset_ + const CharsetInfo *internalCharsetPtr_; + CharsetInfo docCharset_; + CharsetDecl docCharsetDecl_; + Boolean scopeInstance_; + Boolean www_; + NetEnable netEnable_; + EntityRef entityRef_; + ImplydefElement implydefElement_; + Boolean typeValid_; + Boolean integrallyStored_; + HashTable namedCharTable_; + Ptr entityManager_; + static const char *const reservedName_[]; + static const char *const generalDelimiterName_[]; + static const char *const capacityName_[]; + static const char *const quantityName_[]; +}; + +inline +Boolean Sd::link() const +{ + return (numberFeature_[fSIMPLE] + || booleanFeature_[fIMPLICIT] + || numberFeature_[fEXPLICIT]); +} + +inline +Number Sd::explicitLink() const +{ + return numberFeature_[fEXPLICIT]; +} + +inline +Boolean Sd::implicitLink() const +{ + return booleanFeature_[fIMPLICIT]; +} + +inline +Number Sd::simpleLink() const +{ + return numberFeature_[fSIMPLE]; +} + +inline +Boolean Sd::startTagEmpty() const +{ + return booleanFeature_[fSTARTTAGEMPTY]; +} + +inline +Boolean Sd::startTagUnclosed() const +{ + return booleanFeature_[fSTARTTAGUNCLOSED]; +} + +inline +Sd::NetEnable Sd::startTagNetEnable() const +{ + return netEnable_; +} + +inline +void Sd::setStartTagNetEnable(NetEnable e) +{ + netEnable_ = e; +} + +inline +Boolean Sd::endTagEmpty() const +{ + return booleanFeature_[fENDTAGEMPTY]; +} + +inline +Boolean Sd::endTagUnclosed() const +{ + return booleanFeature_[fENDTAGUNCLOSED]; +} + +inline +Boolean Sd::attributeDefault() const +{ + return booleanFeature_[fATTRIBDEFAULT]; +} + +inline +Boolean Sd::attributeValueNotLiteral() const +{ + return booleanFeature_[fATTRIBVALUE]; +} + +inline +Boolean Sd::attributeOmitName() const +{ + return booleanFeature_[fATTRIBOMITNAME]; +} + +inline +Boolean Sd::emptyElementNormal() const +{ + return booleanFeature_[fEMPTYNRM]; +} + +inline +Boolean Sd::implydefAttlist() const +{ + return booleanFeature_[fIMPLYDEFATTLIST]; +} + +inline +Boolean Sd::implydefDoctype() const +{ + return booleanFeature_[fIMPLYDEFDOCTYPE]; +} + +inline +Sd::ImplydefElement Sd::implydefElement() const +{ + return implydefElement_; +} + +inline +void Sd::setImplydefElement(ImplydefElement i) +{ + implydefElement_ = i; +} + +inline +Boolean Sd::implydefEntity() const +{ + return booleanFeature_[fIMPLYDEFENTITY]; +} + +inline +Boolean Sd::implydefNotation() const +{ + return booleanFeature_[fIMPLYDEFNOTATION]; +} + +inline +Number Sd::concur() const +{ + return numberFeature_[fCONCUR]; +} + +inline +Number Sd::subdoc() const +{ + return numberFeature_[fSUBDOC]; +} + + +inline +Boolean Sd::omittag() const +{ + return booleanFeature_[fOMITTAG]; +} + +inline +Boolean Sd::rank() const +{ + return booleanFeature_[fRANK]; +} + +inline +Boolean Sd::datatag() const +{ + return booleanFeature_[fDATATAG]; +} + +inline +Boolean Sd::formal() const +{ + return booleanFeature_[fFORMAL]; +} + +inline +Boolean Sd::urn() const +{ + return booleanFeature_[fURN]; +} + +inline +Boolean Sd::keeprsre() const +{ + return booleanFeature_[fKEEPRSRE]; +} + +inline +const CharsetInfo &Sd::internalCharset() const +{ + return internalCharsetPtr_ ? *internalCharsetPtr_ : docCharset_; +} + +inline +Char Sd::execToInternal(char c) const +{ + return internalCharset().execToDesc(c); +} + +inline +StringC Sd::execToInternal(const char *s) const +{ + return internalCharset().execToDesc(s); +} + +inline +StringC Sd::reservedName(int i) const +{ + return execToInternal(reservedName_[i]); +} + +inline +Boolean Sd::internalCharsetIsDocCharset() const +{ + return internalCharsetIsDocCharset_; +} + +inline +const CharsetInfo &Sd::docCharset() const +{ + return docCharset_; +} + +inline +int Sd::digitWeight(Char c) const +{ + return internalCharset().digitWeight(c); +} + +inline +int Sd::hexDigitWeight(Char c) const +{ + return internalCharset().hexDigitWeight(c); +} + +inline +Number Sd::capacity(int i) const +{ + return capacity_[i]; +} + +inline +void Sd::setCapacity(int i, Number n) +{ + capacity_[i] = n; +} + +inline +StringC Sd::capacityName(int i) const +{ + return execToInternal(capacityName_[i]); +} + +inline +Boolean Sd::scopeInstance() const +{ + return scopeInstance_; +} + +inline +void Sd::setScopeInstance() +{ + scopeInstance_ = 1; +} + +inline +void Sd::setDocCharsetDecl(CharsetDecl &decl) +{ + decl.swap(docCharsetDecl_); +} + +inline +const CharsetDecl &Sd::docCharsetDecl() const +{ + return docCharsetDecl_; +} + +inline +void Sd::setBooleanFeature(BooleanFeature i, Boolean b) +{ + booleanFeature_[i] = b; +} + +inline +void Sd::setNumberFeature(NumberFeature i, Number n) +{ + numberFeature_[i] = n; +} + +inline +Boolean Sd::www() const +{ + return www_; +} + +inline +void Sd::setWww(Boolean b) +{ + www_ = b; +} + +inline +Sd::EntityRef Sd::entityRef() const +{ + return entityRef_; +} + +inline +void Sd::setEntityRef(EntityRef r) +{ + entityRef_ = r; +} + +inline +Boolean Sd::typeValid() const +{ + return typeValid_; +} + +inline +void Sd::setTypeValid(Boolean b) +{ + typeValid_ = b; +} + +inline +Boolean Sd::integrallyStored() const +{ + return integrallyStored_; +} + +inline +void Sd::setIntegrallyStored(Boolean b) +{ + integrallyStored_ = b; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* Sd_INCLUDED */ diff --git a/include/SdText.h b/include/SdText.h new file mode 100644 index 0000000..af533fd --- /dev/null +++ b/include/SdText.h @@ -0,0 +1,71 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef SdText_INCLUDED +#define SdText_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "StringOf.h" +#include "Vector.h" +#include "Location.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct SP_API SdTextItem { + SdTextItem(); + SdTextItem(const SdTextItem &); + void operator=(const SdTextItem &); + ~SdTextItem(); + Location loc; + size_t index; +}; + +class SP_API SdText { +public: + SdText(); + SdText(const Location &loc, Boolean lita); + void swap(SdText &); + void addChar(SyntaxChar, const Location &); + const String &string() const; + Boolean lita() const; + Location endDelimLocation() const; +private: + Boolean lita_; + String chars_; + Vector items_; + friend class SdTextIter; +}; + +class SP_API SdTextIter { +public: + SdTextIter(const SdText &); + Boolean next(const SyntaxChar *&, size_t &, Location &); +private: + const SdText *ptr_; + size_t itemIndex_; +}; + +inline +Boolean SdText::lita() const +{ + return lita_; +} + +inline +const String &SdText::string() const +{ + return chars_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not SdText_INCLUDED */ diff --git a/include/SearchResultMessageArg.h b/include/SearchResultMessageArg.h new file mode 100644 index 0000000..df48c2a --- /dev/null +++ b/include/SearchResultMessageArg.h @@ -0,0 +1,57 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef SearchResultMessageArg_INCLUDED +#define SearchResultMessageArg_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "MessageArg.h" +#include "StringC.h" +#include "Vector.h" +#include "Vector.h" +#include "rtti.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API SearchResultMessageArg : public OtherMessageArg { + RTTI_CLASS +public: + SearchResultMessageArg(); + void add(StringC &, int); + MessageArg *copy() const; + size_t nTried() const; + const StringC &filename(size_t) const; + int errnum(size_t) const; +private: + Vector filename_; + Vector errno_; +}; + +inline +size_t SearchResultMessageArg::nTried() const +{ + return filename_.size(); +} + +inline +const StringC &SearchResultMessageArg::filename(size_t i) const +{ + return filename_[i]; +} + +inline +int SearchResultMessageArg::errnum(size_t i) const +{ + return errno_[i]; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not SearchResultMessageArg_INCLUDED */ diff --git a/include/SgmlParser.h b/include/SgmlParser.h new file mode 100644 index 0000000..0f7d9cd --- /dev/null +++ b/include/SgmlParser.h @@ -0,0 +1,87 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef SgmlParser_INCLUDED +#define SgmlParser_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "StringC.h" +#include "Ptr.h" +#include "Location.h" +#include "EntityManager.h" + +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Event; +class Parser; +class UnivCharsetDesc; +class EventHandler; +struct ParserOptions; +template class Ptr; +template class ConstPtr; +class InputSourceOrigin; +class Sd; +class Syntax; +class Dtd; + +class SP_API SgmlParser { +public: + struct SP_API Params { + enum EntityType { + document, + subdoc, + dtd + }; + Params(); + EntityType entityType; // defaults to document + StringC sysid; // must be specified + Ptr origin; + Ptr entityManager; + const SgmlParser *parent; + ConstPtr sd; + ConstPtr prologSyntax; + ConstPtr instanceSyntax; + unsigned subdocLevel; + const ParserOptions *options; + PackedBoolean subdocInheritActiveLinkTypes; + // referenced subdocs count against SUBDOC limit in SGML declaration + PackedBoolean subdocReferenced; + StringC doctypeName; + }; + SgmlParser(); // must call init + SgmlParser(const Params ¶ms); + void init(const Params ¶ms); + ~SgmlParser(); + Event *nextEvent(); + void parseAll(EventHandler &, const volatile sig_atomic_t *cancelPtr = 0); + ConstPtr sd() const; + ConstPtr instanceSyntax() const; + ConstPtr prologSyntax() const; + EntityManager &entityManager() const; + const EntityCatalog &entityCatalog() const; + const ParserOptions &options() const; + // Only to be called after the parse has ended. + Ptr baseDtd(); + void activateLinkType(const StringC &); + void allLinkTypesActivated(); + void swap(SgmlParser &); + friend class Parser; + friend class PiAttspecParser; +private: + SgmlParser(const SgmlParser &); + void operator=(const SgmlParser &); + Parser *parser_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not SgmlParser_INCLUDED */ diff --git a/include/ShortReferenceMap.h b/include/ShortReferenceMap.h new file mode 100644 index 0000000..ea7010f --- /dev/null +++ b/include/ShortReferenceMap.h @@ -0,0 +1,105 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef ShortReferenceMap_INCLUDED +#define ShortReferenceMap_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Vector.h" +#include "Vector.h" +#include "StringC.h" +#include "Named.h" +#include "Boolean.h" +#include "Entity.h" +#include "Ptr.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API ShortReferenceMap : public Named { +public: + ShortReferenceMap(); + ShortReferenceMap(const StringC &); + inline ~ShortReferenceMap() {} + Boolean defined() const; + void setNameMap(Vector &map); + void setEntityMap(Vector > &map); + Boolean lookup(int i, const StringC *&) const; + const StringC *entityName(size_t i) const; + const ConstPtr &entity(size_t i) const; + Boolean used() const; + void setUsed(); + const Location &defLocation() const; + void setDefLocation(const Location &); +private: + ShortReferenceMap(const ShortReferenceMap &); // undefined + void operator=(const ShortReferenceMap &); // undefined + Vector nameMap_; + Vector > entityMap_; + ConstPtr nullEntity_; + Boolean used_; + Location defLocation_; +}; + +inline +Boolean ShortReferenceMap::defined() const +{ + return nameMap_.size() > 0; +} + +inline +const StringC *ShortReferenceMap::entityName(size_t i) const +{ + if (i < nameMap_.size() && nameMap_[i].size() != 0) + return &nameMap_[i]; + else + return 0; +} + +inline +const ConstPtr &ShortReferenceMap::entity(size_t i) const +{ + if (i < entityMap_.size()) + return entityMap_[i]; + else + return nullEntity_; +} + +inline +void ShortReferenceMap::setEntityMap(Vector > &map) +{ + map.swap(entityMap_); +} + +inline +Boolean ShortReferenceMap::used() const +{ + return used_; +} + +inline +void ShortReferenceMap::setUsed() +{ + used_ = 1; +} + +inline +void ShortReferenceMap::setDefLocation(const Location &loc) +{ + defLocation_ = loc; +} + +inline +const Location &ShortReferenceMap::defLocation() const +{ + return defLocation_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ShortReferenceMap_INCLUDED */ diff --git a/include/StdioStorage.h b/include/StdioStorage.h new file mode 100644 index 0000000..687c24f --- /dev/null +++ b/include/StdioStorage.h @@ -0,0 +1,47 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef StdioStorage_INCLUDED +#define StdioStorage_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "StorageManager.h" +#include "DescriptorManager.h" +#include "StringC.h" +#include "CharsetInfo.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Messenger; +class CharsetInfo; +class UnivCharsetDesc; +class OutputCodingSystem; + +class SP_API StdioStorageManager : public IdStorageManager { +public: + StdioStorageManager(const char *type, + const CharsetInfo *filenameCharset, + const OutputCodingSystem *filenameCodingSystem); + StorageObject *makeStorageObject(const StringC &id, + const StringC &baseId, + Boolean, + Boolean mayRewind, + Messenger &, + StringC &foundId); + const char *type() const; +private: + StdioStorageManager(const StdioStorageManager &); // undefined + void operator=(const StdioStorageManager &); // undefined + const OutputCodingSystem *filenameCodingSystem_; + const char *type_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not StdioStorage_INCLUDED */ diff --git a/include/StorageManager.h b/include/StorageManager.h new file mode 100644 index 0000000..d9dbc49 --- /dev/null +++ b/include/StorageManager.h @@ -0,0 +1,89 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef StorageManager_INCLUDED +#define StorageManager_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "StringC.h" +#include "types.h" +#include "CharsetInfo.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class StorageManager; +class CharsetInfo; +class Messenger; +class InputCodingSystem; + +class SP_API StorageObject { +public: + StorageObject(); + virtual ~StorageObject(); + virtual Boolean read(char *buf, size_t bufSize, Messenger &, + size_t &nread) = 0; + virtual Boolean rewind(Messenger &) = 0; + virtual void willNotRewind(); + virtual size_t getBlockSize() const; +private: + StorageObject(const StorageObject &); // undefined + void operator=(const StorageObject &); // undefined +}; + +class SP_API StorageManager { +public: + StorageManager(); + virtual StorageObject *makeStorageObject(const StringC &specId, + const StringC &baseId, + Boolean search, + Boolean mayRewind, + Messenger &mgr, + StringC &actualId) = 0; + virtual const char *type() const = 0; + virtual Boolean inheritable() const; + virtual Boolean transformNeutral(StringC &, Boolean fold, Messenger &) const; + // Resolve a possibly relative ID by examining the base and specified IDs. + // Put the resolved ID in specID. + // Return 0 if it cannot be resolved yet becase the specified ID is relative + // and physical searching is required to resolve it and search is true; + // in this case the base will be passed to makeStorageObject. + // Otherwise return 1; in this case the base will be discarded, and the + // resolved ID will be passed to makeStorageObject. + virtual Boolean resolveRelative(const StringC &base, + StringC &specId, + Boolean search) const; + virtual Boolean guessIsId(const StringC &, const CharsetInfo &) const; + virtual const InputCodingSystem *requiredCodingSystem() const; + virtual Boolean requiresCr() const; + virtual ~StorageManager(); + virtual const CharsetInfo *idCharset() const; + virtual const StringC *reString() const; +private: + StorageManager(const StorageManager &); // undefined + void operator=(const StorageManager &); // undefined +}; + +class SP_API IdStorageManager : public StorageManager { +public: + IdStorageManager(const CharsetInfo *idCharset); + const CharsetInfo *idCharset() const; + const StringC *reString() const; +protected: + StringC reString_; +private: + IdStorageManager(const IdStorageManager &); // undefined + void operator=(const IdStorageManager &); // undefined + + const CharsetInfo *idCharset_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not StorageManager_INCLUDED */ diff --git a/include/StringC.h b/include/StringC.h new file mode 100644 index 0000000..287c145 --- /dev/null +++ b/include/StringC.h @@ -0,0 +1,20 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef StringC_INCLUDED +#define StringC_INCLUDED 1 + +#include "types.h" +#include "StringOf.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +typedef String StringC; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not StringC_INCLUDED */ diff --git a/include/StringOf.cxx b/include/StringOf.cxx new file mode 100644 index 0000000..f5a7132 --- /dev/null +++ b/include/StringOf.cxx @@ -0,0 +1,152 @@ +// Copyright (c) 1994, 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef StringOf_DEF_INCLUDED +#define StringOf_DEF_INCLUDED 1 + +#include +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +String::String(const T *ptr, size_t length) +: length_(length), alloc_(length) +{ + if (length) { + ptr_ = new T[length]; + memcpy(ptr_, ptr, length*sizeof(T)); + } + else + ptr_ = 0; +} + +template +String::String() +: ptr_(0), length_(0), alloc_(0) +{ +} + +template +String::String(const String &s) +: length_(s.length_), alloc_(s.length_) +{ + if (length_) { + ptr_ = new T[length_]; + memcpy(ptr_, s.ptr_, length_*sizeof(T)); + } + else + ptr_ = 0; +} + +template +String &String::operator=(const String &s) +{ + if (&s != this) { + if (s.length_ > alloc_) { + T *oldPtr = ptr_; + ptr_ = new T[alloc_ = s.length_]; + if (oldPtr) + delete [] oldPtr; + } + memcpy(ptr_, s.ptr_, s.length_*sizeof(T)); + length_ = s.length_; + } + return *this; +} + +template +String &String::insert(size_t i, const String &s) +{ + if (length_ + s.length_ > alloc_) + grow(s.length_); + for (size_t n = length_ - i; n > 0; n--) + ptr_[i + n - 1 + s.length_] = ptr_[i + n - 1]; + length_ += s.length_; + memcpy(ptr_ + i, s.ptr_, s.length_*sizeof(T)); + return *this; +} + +template +String &String::append(const T *p, size_t length) +{ + if (length_ + length > alloc_) + grow(length); + memcpy(ptr_ + length_, p, length*sizeof(T)); + length_ += length; + return *this; +} + +template +void String::grow(size_t n) +{ + size_t newAlloc = alloc_; + if (alloc_ < n) + newAlloc += n + 16; + else + newAlloc += alloc_; + T *s = new T[newAlloc]; + memcpy(s, ptr_, length_*sizeof(T)); + delete [] ptr_; + ptr_ = s; + alloc_ = newAlloc; +} + +template +void String::swap(String &to) +{ + { + T *tem = to.ptr_; + to.ptr_ = ptr_; + ptr_ = tem; + } + { + size_t tem = to.length_; + to.length_ = length_; + length_ = tem; + } + { + size_t tem = to.alloc_; + to.alloc_ = alloc_; + alloc_ = tem; + } +} + +template +String &String::assign(const T *p, size_t n) +{ + if (alloc_ < n) { + T *oldPtr = ptr_; + ptr_ = new T[n]; + alloc_ = n; + if (oldPtr) + delete [] oldPtr; + } + length_ = n; + for(T *to = ptr_; n > 0; n--, to++, p++) + *to = *p; + return *this; +} + +template +void String::resize(size_t n) +{ + if (alloc_ < n) { + T *oldPtr = ptr_; + ptr_ = new T[n]; + alloc_ = n; + if (length_ > 0) { + memcpy(ptr_, oldPtr, length_*sizeof(T)); + delete [] oldPtr; + } + } + length_ = n; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not StringOf_DEF_INCLUDED */ diff --git a/include/StringOf.h b/include/StringOf.h new file mode 100644 index 0000000..b60a4aa --- /dev/null +++ b/include/StringOf.h @@ -0,0 +1,79 @@ +// Copyright (c) 1994, 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef StringOf_INCLUDED +#define StringOf_INCLUDED 1 + +// The file is called StringOf to distinguish it from string.h on +// case-insensitive file systems. + +// This offers a subset of the interface offered by the standard C++ +// basic_string class as defined in the Jan 96 WP. +// Code in SP currently assumes that size_type is size_t. + +#include +#include +#include "Boolean.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class String { +public: + typedef size_t size_type; + typedef T *iterator; + typedef const T *const_iterator; + String(); + ~String() { if (ptr_) delete [] ptr_; } + String(const T *, size_t); + String(const String &); + String &operator=(const String &); + size_t size() const { return length_; } + String &assign(const T *, size_t); + String &insert(size_t i, const String &s); + void swap(String &str); + T operator[](size_t i) const { return ptr_[i]; } + T &operator[](size_t i) { return ptr_[i]; } + iterator begin() { return ptr_; } + const_iterator begin() const { return ptr_; } + const T *data() const { return ptr_; } + String &operator+=(T c) { + if (length_ >= alloc_) + grow(1); + ptr_[length_++] = c; + return *this; + } + String &operator+=(const String &s) { + append(s.ptr_, s.length_); + return *this; + } + String &append(const T *, size_t); + Boolean operator==(const String &s) const { + return (length_ == s.length_ + && (length_ == 0 + || (*ptr_ == *s.ptr_ + && (memcmp(ptr_ + 1, s.ptr_ + 1, (length_ - 1)*sizeof(T)) + == 0)))); + } + Boolean operator!=(const String &str) const { + return !(*this == str); + } + void resize(size_t n); +private: + void grow(size_t); + T *ptr_; + size_t length_; + size_t alloc_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not StringOf_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "StringOf.cxx" +#endif diff --git a/include/StringResource.h b/include/StringResource.h new file mode 100644 index 0000000..74be9de --- /dev/null +++ b/include/StringResource.h @@ -0,0 +1,24 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef StringResource_INCLUDED +#define StringResource_INCLUDED 1 + +#include "StringOf.h" +#include "Resource.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class StringResource : public String, public Resource { +public: + StringResource(const String &s) : String(s) { } +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not StringResource_INCLUDED */ diff --git a/include/SubstTable.h b/include/SubstTable.h new file mode 100644 index 0000000..c5de5d2 --- /dev/null +++ b/include/SubstTable.h @@ -0,0 +1,64 @@ +// Copyright (c) 1994 James Clark, 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef SubstTable_INCLUDED +#define SubstTable_INCLUDED + +#include "types.h" +#include "StringC.h" +#include "Vector.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API SubstTable { +public: + SubstTable(); + void addSubst(Char from, Char to); + void subst(Char &) const; + void subst(StringC &) const; + Char operator[](Char from) const; + void sort() const; + Char at(Char from) const; + StringC inverse(Char to) const; + void inverseTable(SubstTable &) const; + struct Pair { + Pair() {} + Pair(Char f, Char t) : from(f), to(t) {} + Char from; + Char to; + }; +private: + Char lo_[256]; + mutable Vector map_; + mutable bool isSorted_; +}; + +inline +void SubstTable::subst(StringC &str) const +{ + for (size_t i = 0; i < str.size(); i++) + subst(str[i]); +} + +inline +Char SubstTable::operator[](Char t) const +{ + if (t < 256) + return lo_[t]; + else + return at(t); +} + +inline +void SubstTable::subst(Char &c) const +{ + c = operator[](c); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SubstTable_INCLUDED */ diff --git a/include/Syntax.h b/include/Syntax.h new file mode 100644 index 0000000..d284a7b --- /dev/null +++ b/include/Syntax.h @@ -0,0 +1,530 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Syntax_INCLUDED +#define Syntax_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "Boolean.h" +#include "ISet.h" +#include "StringC.h" +#include "SubstTable.h" +#include "HashTable.h" +#include "Vector.h" +#include "Resource.h" +#include "XcharMap.h" +#include "EntityCatalog.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Sd; +class CharsetInfo; + +class SP_API Syntax : public Resource, public EntityCatalog::Syntax { +public: + enum ReservedName { + rALL, + rANY, + rATTLIST, + rCDATA, + rCONREF, + rCURRENT, + rDATA, + rDEFAULT, + rDOCTYPE, + rELEMENT, + rEMPTY, + rENDTAG, + rENTITIES, + rENTITY, + rFIXED, + rID, + rIDLINK, + rIDREF, + rIDREFS, + rIGNORE, + rIMPLICIT, + rIMPLIED, + rINCLUDE, + rINITIAL, + rLINK, + rLINKTYPE, + rMD, + rMS, + rNAME, + rNAMES, + rNDATA, + rNMTOKEN, + rNMTOKENS, + rNOTATION, + rNUMBER, + rNUMBERS, + rNUTOKEN, + rNUTOKENS, + rO, + rPCDATA, + rPI, + rPOSTLINK, + rPUBLIC, + rRCDATA, + rRE, + rREQUIRED, + rRESTORE, + rRS, + rSDATA, + rSHORTREF, + rSIMPLE, + rSPACE, + rSTARTTAG, + rSUBDOC, + rSYSTEM, + rTEMP, + rUSELINK, + rUSEMAP + }; + enum { nNames = rUSEMAP + 1 }; + enum Quantity { + qATTCNT, + qATTSPLEN, + qBSEQLEN, + qDTAGLEN, + qDTEMPLEN, + qENTLVL, + qGRPCNT, + qGRPGTCNT, + qGRPLVL, + qLITLEN, + qNAMELEN, + qNORMSEP, + qPILEN, + qTAGLEN, + qTAGLVL + }; + enum { nQuantity = qTAGLVL + 1 }; + enum { unlimited = 100000000 }; + enum DelimGeneral { + dAND, + dCOM, + dCRO, + dDSC, + dDSO, + dDTGC, + dDTGO, + dERO, + dETAGO, + dGRPC, + dGRPO, + dHCRO, // WWW TC addition + dLIT, + dLITA, + dMDC, + dMDO, + dMINUS, + dMSC, + dNET, + dNESTC, // WWW TC addition + dOPT, + dOR, + dPERO, + dPIC, + dPIO, + dPLUS, + dREFC, + dREP, + dRNI, + dSEQ, + dSTAGO, + dTAGC, + dVI + }; + enum { nDelimGeneral = dVI + 1 }; + enum StandardFunction { + fRE, + fRS, + fSPACE + }; + enum FunctionClass { + cFUNCHAR, + cSEPCHAR, + cMSOCHAR, + cMSICHAR, + cMSSCHAR + }; + enum Set { + nameStart, + digit, + hexDigit, + nmchar, // LCNMCHAR or UCNMCHAR + s, + blank, + sepchar, + minimumData, + significant, + functionChar, // function character + sgmlChar + }; + enum { nSet = sgmlChar + 1 }; + enum Category { + otherCategory = 0, + sCategory = 01, + nameStartCategory = 02, + digitCategory = 04, + otherNameCategory = 010 + }; + + Syntax(const Sd &); + virtual ~Syntax(); + Boolean lookupFunctionChar(const StringC &, Char *) const; + HashTableIter functionIter() const; + Boolean charFunctionName(Char c, const StringC *&name) const; + Boolean lookupReservedName(const StringC &, ReservedName *) const; + const StringC &reservedName(ReservedName) const; + StringC rniReservedName(ReservedName) const; + Number quantity(Quantity) const; + Char standardFunction(int) const; + Boolean getStandardFunction(int, Char &) const; + const StringC &delim() const; + const ISet *charSet(int i) const; + const SubstTable *generalSubstTable() const; + const SubstTable *entitySubstTable() const; + const SubstTable &upperSubstTable() const; + Boolean namecaseGeneral() const; + Boolean namecaseEntity() const; + const StringC &peroDelim() const; + const StringC &delimGeneral(int) const; + const StringC &delimShortrefComplex(size_t) const; + const ISet &delimShortrefSimple() const; + int nDelimShortrefComplex() const; + Boolean isValidShortref(const StringC &) const; + Boolean hasShortrefs() const; + Boolean isNameCharacter(Xchar) const; + Boolean isNameStartCharacter(Xchar) const; + Boolean isDigit(Xchar) const; + Boolean isHexDigit(Xchar) const; + Boolean isS(Xchar) const; + Boolean isB(Xchar c) const; + Category charCategory(Xchar) const; + Boolean isSgmlChar(Xchar) const; + size_t attcnt() const; + size_t attsplen() const; + size_t namelen() const; + size_t penamelen() const; + size_t litlen() const; + size_t normsep() const; + size_t dtemplen() const; + size_t grpcnt() const; + size_t grpgtcnt() const; + size_t grplvl() const; + size_t taglvl() const; + size_t taglen() const; + size_t entlvl() const; + size_t pilen() const; + Char space() const; + + void setStandardFunction(StandardFunction, Char); + void enterStandardFunctionNames(); + void addFunctionChar(const StringC &, FunctionClass, Char); + void setNamecaseGeneral(Boolean); + void setNamecaseEntity(Boolean); + void setDelimGeneral(int, const StringC &); + void addDelimShortref(const StringC &, const CharsetInfo &); + void addDelimShortrefs(const ISet &shortrefChars, + const CharsetInfo &charset); + void addNameCharacters(const ISet &); + void addNameStartCharacters(const ISet &); + void addSubst(Char lc, Char uc); + void addShunchar(Char); + void setShuncharControls(); + void setQuantity(int, Number); + void setName(int, const StringC &); + void setSgmlChar(const ISet &); + void implySgmlChar(const Sd &); + // :: is for Watcom 10.0a + void checkSgmlChar(const Sd &, + const ::SP_NAMESPACE_SCOPE Syntax *otherSyntax, + Boolean invalidUseDocumentCharset, + ISet &invalid) + const; + static int referenceQuantity(Quantity); + const XcharMap &markupScanTable() const; + Boolean multicode() const; + void addEntity(const StringC &, Char); + size_t nEntities() const; + const StringC &entityName(size_t) const; + Char entityChar(size_t) const; +private: + void subst(Char, Char); + void checkUnivControlChar(UnivChar univChar, + const CharsetInfo &docCharset, + const ::SP_NAMESPACE_SCOPE Syntax *otherSyntax, + ISet &invalid) const; + + ISet shunchar_; + PackedBoolean shuncharControls_; + ISet set_[nSet]; + Char standardFunction_[3]; + PackedBoolean standardFunctionValid_[3]; + Boolean namecaseGeneral_; + Boolean namecaseEntity_; + StringC delimGeneral_[nDelimGeneral]; + Vector delimShortrefComplex_; + ISet delimShortrefSimple_; + StringC names_[nNames]; + Number quantity_[nQuantity]; + HashTable nameTable_; + HashTable functionTable_; + SubstTable upperSubst_; + SubstTable identitySubst_; + const SubstTable *generalSubst_; + const SubstTable *entitySubst_; + XcharMap categoryTable_; + Boolean multicode_; + XcharMap markupScanTable_; + Boolean hasMarkupScanTable_; + Vector entityNames_; + StringC entityChars_; + static const int referenceQuantity_[]; +}; + +inline Number Syntax::quantity(Quantity q) const +{ + return quantity_[q]; +} + +inline void Syntax::setQuantity(int i, Number n) +{ + quantity_[i] = n; +} + +inline const SubstTable *Syntax::generalSubstTable() const +{ + return generalSubst_; +} + +inline const SubstTable *Syntax::entitySubstTable() const +{ + return entitySubst_; +} + +inline int Syntax::nDelimShortrefComplex() const +{ + return int(delimShortrefComplex_.size()); +} + +inline const StringC &Syntax::delimGeneral(int i) const +{ + return delimGeneral_[i]; +} + +inline const StringC &Syntax::delimShortrefComplex(size_t i) const +{ + return delimShortrefComplex_[i]; +} + +inline const ISet &Syntax::delimShortrefSimple() const +{ + return delimShortrefSimple_; +} + +inline Boolean Syntax::hasShortrefs() const +{ + return delimShortrefComplex_.size() > 0 || !delimShortrefSimple_.isEmpty(); +} + +inline Char Syntax::standardFunction(int i) const +{ + return standardFunction_[i]; +} + +inline Boolean Syntax::getStandardFunction(int i, Char &result) const +{ + if (standardFunctionValid_[i]) { + result = standardFunction_[i]; + return 1; + } + else + return 0; +} + +inline const ISet *Syntax::charSet(int i) const +{ + return &set_[i]; +} + +inline Boolean Syntax::isNameCharacter(Xchar c) const +{ + return categoryTable_[c] >= nameStartCategory; +} + +inline Boolean Syntax::isNameStartCharacter(Xchar c) const +{ + return categoryTable_[c] == nameStartCategory; +} + +inline Boolean Syntax::isDigit(Xchar c) const +{ + return categoryTable_[c] == digitCategory; +} + +inline Boolean Syntax::isS(Xchar c) const +{ + return categoryTable_[c] == sCategory; +} + +inline Boolean Syntax::isB(Xchar c) const +{ + return (categoryTable_[c] == sCategory + && !(standardFunctionValid_[fRE] && c == standardFunction_[fRE]) + && !(standardFunctionValid_[fRS] && c == standardFunction_[fRS])); +} + +inline Syntax::Category Syntax::charCategory(Xchar c) const +{ + return Category(categoryTable_[c]); +} + +inline Boolean Syntax::isSgmlChar(Xchar c) const +{ + return c >= 0 && set_[sgmlChar].contains(Char(c)); +} + +inline const StringC &Syntax::reservedName(ReservedName i) const +{ + return names_[i]; +} + +inline size_t Syntax::attcnt() const +{ + return quantity(Syntax::qATTCNT); +} + +inline size_t Syntax::attsplen() const +{ + return quantity(Syntax::qATTSPLEN); +} + +inline size_t Syntax::namelen() const +{ + return quantity(Syntax::qNAMELEN); +} + +inline size_t Syntax::penamelen() const +{ + return quantity(Syntax::qNAMELEN) - delimGeneral(Syntax::dPERO).size(); +} + +inline size_t Syntax::litlen() const +{ + return quantity(Syntax::qLITLEN); +} + +inline size_t Syntax::normsep() const +{ + return quantity(Syntax::qNORMSEP); +} + +inline size_t Syntax::dtemplen() const +{ + return quantity(Syntax::qDTEMPLEN); +} + +inline size_t Syntax::grpcnt() const +{ + return quantity(Syntax::qGRPCNT); +} + +inline size_t Syntax::grpgtcnt() const +{ + return quantity(Syntax::qGRPGTCNT); +} + +inline size_t Syntax::grplvl() const +{ + return quantity(Syntax::qGRPLVL); +} + +inline size_t Syntax::taglvl() const +{ + return quantity(Syntax::qTAGLVL); +} + +inline size_t Syntax::taglen() const +{ + return quantity(Syntax::qTAGLEN); +} + +inline size_t Syntax::entlvl() const +{ + return quantity(Syntax::qENTLVL); +} + +inline size_t Syntax::pilen() const +{ + return quantity(Syntax::qPILEN); +} + +inline Char Syntax::space() const +{ + return standardFunction(Syntax::fSPACE); +} + +inline void Syntax::setSgmlChar(const ISet &set) +{ + set_[sgmlChar] = set; +} + +inline int Syntax::referenceQuantity(Quantity i) +{ + return referenceQuantity_[i]; +} + +inline void Syntax::setShuncharControls() +{ + shuncharControls_ = 1; +} + +inline const XcharMap &Syntax::markupScanTable() const +{ + return markupScanTable_; +} + +inline Boolean Syntax::multicode() const +{ + return multicode_; +} + +inline Boolean Syntax::namecaseGeneral() const +{ + return namecaseGeneral_; +} + +inline Boolean Syntax::namecaseEntity() const +{ + return namecaseEntity_; +} + +inline size_t Syntax::nEntities() const +{ + return entityNames_.size(); +} + +inline const StringC &Syntax::entityName(size_t i) const +{ + return entityNames_[i]; +} + +inline Char Syntax::entityChar(size_t i) const +{ + return entityChars_[i]; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* Syntax_INCLUDED */ diff --git a/include/Text.h b/include/Text.h new file mode 100644 index 0000000..89696e3 --- /dev/null +++ b/include/Text.h @@ -0,0 +1,230 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Text_INCLUDED +#define Text_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "StringC.h" +#include "Vector.h" +#include "Location.h" +#include "SubstTable.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct SP_API TextItem { + TextItem(); + TextItem(const TextItem& x); + ~TextItem(); + enum Type { + data, + cdata, + sdata, + nonSgml, + entityStart, + entityEnd, + startDelim, + endDelim, + endDelimA, + ignore + }; + Type type; + // char that was ignored + Char c; + // location of this item + // data - location of first char + // (c/sdata)entityStart - location of first char of entity + // (c/sdata)entityEnd - location of entity end in entity + // ignore - location of ignored character + // startDelim - location of first char of delimiter + // endDelim(A) - location of first char of delimiter + Location loc; + // index of character in chars_ to which this applies + size_t index; + TextItem& operator=(const TextItem& from); +}; + +// This is used to represent literals and attribute values. + +class SP_API Text { +public: + Text(); +// Dummy Destructor + ~Text(); + void clear(); + void swap(Text &to); + void addChar(Char c, const Location &); + void addChars(const StringC &, const Location &); + void addChars(const Char *, size_t, const Location &); + void insertChars(const StringC &, const Location &); + void ignoreChar(Char, const Location &); + void ignoreLastChar(); + void addNonSgmlChar(Char c, const Location &); + void addEntityStart(const Location &); + void addEntityEnd(const Location &); + void addCdata(const StringC &, const ConstPtr &); + void addSdata(const StringC &, const ConstPtr &); + void addStartDelim(const Location &loc); + void addEndDelim(const Location &loc, Boolean lita); + void subst(const SubstTable &, Char space); + void addCharsTokenize(const Char *, size_t, const Location &loc, Char space); + void addCharsTokenize(const StringC &, const Location &loc, Char space); + void tokenize(Char space, Text &text) const; + Location charLocation(size_t i) const; + Boolean charLocation(size_t, const Origin *&, Index &) const; + Boolean charLocation(size_t i, const ConstPtr *&, Index &) const; + size_t size() const; + Char lastChar() const; + const StringC &string() const; + size_t normalizedLength(size_t normsep) const; + Boolean fixedEqual(const Text &) const; + // Location of first char of start delimiter. + Boolean startDelimLocation(Location &) const; + // Location of first char of end delimiter + Boolean endDelimLocation(Location &) const; + // Is delimiter a lit or lita? + Boolean delimType(Boolean &lita) const; +private: + void addSimple(TextItem::Type, const Location &); + StringC chars_; + Vector items_; + friend class TextIter; +}; + +class SP_API TextIter { +public: + TextIter(const Text &); + void rewind(); + Boolean next(TextItem::Type &, const Char *&, size_t &, + const Location *&); + // Alternative interface to next() + Boolean valid() const; + void advance(); + TextItem::Type type() const; + const Location &location() const; + const Char *chars(size_t &length) const; +private: + const TextItem *ptr_; + const Text *text_; +}; + +inline +size_t Text::size() const +{ + return chars_.size(); +} + +inline +Char Text::lastChar() const +{ + return chars_[chars_.size() - 1]; +} + +inline +const StringC &Text::string() const +{ + return chars_; +} + +inline +void Text::addEntityStart(const Location &loc) +{ + addSimple(TextItem::entityStart, loc); +} + +inline +void Text::addEntityEnd(const Location &loc) +{ + addSimple(TextItem::entityEnd, loc); +} + +inline +void Text::addChars(const StringC &s, const Location &loc) +{ + addChars(s.data(), s.size(), loc); +} + +inline +void Text::addStartDelim(const Location &loc) +{ + addSimple(TextItem::startDelim, loc); +} + +inline +void Text::addEndDelim(const Location &loc, Boolean lita) +{ + addSimple(lita ? TextItem::endDelimA : TextItem::endDelim, + loc); +} + +inline +void Text::addCharsTokenize(const StringC &str, const Location &loc, + Char space) +{ + addCharsTokenize(str.data(), str.size(), loc, space); +} + +inline +Location Text::charLocation(size_t i) const +{ + const ConstPtr *originP; + Index index; + if (charLocation(i, originP, index)) + return Location(*originP, index); + else + return Location(); +} + +inline +Boolean Text::charLocation(size_t i, const Origin *&origin, Index &index) const +{ + const ConstPtr *originP; + if (charLocation(i, originP, index)) { + origin = originP->pointer(); + return 1; + } + else + return 0; +} + +inline +void TextIter::rewind() +{ + ptr_ = text_->items_.begin(); +} + +inline +void TextIter::advance() +{ + ptr_++; +} + +inline +Boolean TextIter::valid() const +{ + return ptr_ != (text_->items_.begin() + text_->items_.size()); +} + +inline +const Location &TextIter::location() const +{ + return ptr_->loc; +} + +inline +TextItem::Type TextIter::type() const +{ + return ptr_->type; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Text_INCLUDED */ diff --git a/include/TranslateCodingSystem.h b/include/TranslateCodingSystem.h new file mode 100644 index 0000000..5da3056 --- /dev/null +++ b/include/TranslateCodingSystem.h @@ -0,0 +1,52 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef TranslateCodingSystem_INCLUDED +#define TranslateCodingSystem_INCLUDED 1 + +#include "CodingSystem.h" +#include "Ptr.h" +#include "CharMap.h" +#include "CharsetRegistry.h" +#include "types.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API TranslateCodingSystem : public CodingSystem { +public: + struct Desc { + CharsetRegistry::ISORegistrationNumber number; + // How much to add to the values in the base set. + Char add; + }; + // codingSystem is the underlying BCTF + // desc describes the meaning of the bit combinations produced by that BCTF + // charset is the system character set + // replacementChar is character in systemCharset that should be used to represent + // characters that do not exist in the systemCharset. + // illegalChar is a code that can never be produced by the underlying BCTF. + TranslateCodingSystem(const CodingSystem *codingSystem, + const Desc *desc, + const CharsetInfo *charset, + Char illegalChar, + Char replacementChar); + Decoder *makeDecoder() const; + Encoder *makeEncoder() const; + unsigned fixedBytesPerChar() const; +private: + ConstPtr > decodeMap_; + ConstPtr > encodeMap_; + const CodingSystem *sub_; + const Desc *desc_; + const CharsetInfo *charset_; + Char illegalChar_; + Char replacementChar_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not TranslateCodingSystem_INCLUDED */ diff --git a/include/TypeId.h b/include/TypeId.h new file mode 100644 index 0000000..bb3ad9f --- /dev/null +++ b/include/TypeId.h @@ -0,0 +1,29 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef TypeId_INCLUDED +#define TypeId_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API TypeId { +public: + TypeId(const void *const *bases) : bases_(bases) { } + // Is this object of type ti? + int isA(TypeId ti) const; + // Can an object with this dynamic type be cast from a static type FROM + // to a static type TO? + int canCast(TypeId to, TypeId from) const; + int operator==(TypeId ti) const { return bases_ == ti.bases_; } + int operator!=(TypeId ti) const { return bases_ != ti.bases_; } +private: + const void *const *bases_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not TypeId_INCLUDED */ diff --git a/include/URLStorage.h b/include/URLStorage.h new file mode 100644 index 0000000..f75376f --- /dev/null +++ b/include/URLStorage.h @@ -0,0 +1,39 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef URLStorage_INCLUDED +#define URLStorage_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "StorageManager.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API URLStorageManager : public IdStorageManager { +public: + URLStorageManager(const char *type); + StorageObject *makeStorageObject(const StringC &id, + const StringC &baseId, + Boolean search, + Boolean mayRewind, + Messenger &, + StringC &found); + const char *type() const; + Boolean guessIsId(const StringC &, const CharsetInfo &) const; + Boolean transformNeutral(StringC &, Boolean fold, Messenger &) const; +private: + Boolean resolveRelative(const StringC &base, StringC &specId, Boolean) const; + URLStorageManager(const URLStorageManager &); // undefined + void operator=(const URLStorageManager &); // undefined + const char *type_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not URLStorage_INCLUDED */ diff --git a/include/UTF16CodingSystem.h b/include/UTF16CodingSystem.h new file mode 100644 index 0000000..ebe6b18 --- /dev/null +++ b/include/UTF16CodingSystem.h @@ -0,0 +1,23 @@ +// Copyright (c) 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef UTF16CodingSystem_INCLUDED +#define UTF16CodingSystem_INCLUDED 1 + +#include "CodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API UTF16CodingSystem : public CodingSystem { +public: + Decoder *makeDecoder(Boolean) const; + Encoder *makeEncoder() const; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not UTF16CodingSystem_INCLUDED */ diff --git a/include/UTF8CodingSystem.h b/include/UTF8CodingSystem.h new file mode 100644 index 0000000..aad8627 --- /dev/null +++ b/include/UTF8CodingSystem.h @@ -0,0 +1,23 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef UTF8CodingSystem_INCLUDED +#define UTF8CodingSystem_INCLUDED 1 + +#include "CodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API UTF8CodingSystem : public CodingSystem { +public: + Decoder *makeDecoder() const; + Encoder *makeEncoder() const; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not UTF8CodingSystem_INCLUDED */ diff --git a/include/UnicodeCodingSystem.h b/include/UnicodeCodingSystem.h new file mode 100644 index 0000000..77bc3fa --- /dev/null +++ b/include/UnicodeCodingSystem.h @@ -0,0 +1,26 @@ +// Copyright (c) 1994 James Clark, 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef UnicodeCodingSystem_INCLUDED +#define UnicodeCodingSystem_INCLUDED 1 + +#include "CodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API UnicodeCodingSystem : public CodingSystem { +public: + UnicodeCodingSystem(const InputCodingSystem *sub = 0); + Decoder *makeDecoder() const; + Encoder *makeEncoder() const; +private: + const InputCodingSystem *sub_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not UnicodeCodingSystem_INCLUDED */ diff --git a/include/UnivCharsetDesc.h b/include/UnivCharsetDesc.h new file mode 100644 index 0000000..be7f52a --- /dev/null +++ b/include/UnivCharsetDesc.h @@ -0,0 +1,150 @@ +// Copyright (c) 1994, 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef UnivCharsetDesc_INCLUDED +#define UnivCharsetDesc_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include +#include "types.h" +#include "constant.h" +#include "CharMap.h" +#include "RangeMap.h" +#include "Boolean.h" +#include "ISet.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API UnivCharsetDesc { +public: + struct SP_API Range { + WideChar descMin; + // Note that this is a count, as in the SGML declaration, + // rather than a maximum. + unsigned long count; + UnivChar univMin; + }; + enum { + zero = 48, + A = 65, + a = 97, + tab = 9, + rs = 10, + re = 13, + space = 32, + exclamation = 33, + lessThan = 60, + greaterThan = 62 + }; + UnivCharsetDesc(); + UnivCharsetDesc(const Range *, size_t); + inline UnivCharsetDesc(const UnivCharsetDesc& x) : + charMap_(x.charMap_), rangeMap_(x.rangeMap_) {} + inline ~UnivCharsetDesc() {} + void set(const Range *, size_t); + Boolean descToUniv(WideChar from, UnivChar &to) const; + Boolean descToUniv(WideChar from, UnivChar &to, WideChar &alsoMax) const; + // Return 0 for no matches, 1 for 1, 2 for more than 1 + unsigned univToDesc(UnivChar from, WideChar &to, ISet &toSet) + const; + unsigned univToDesc(UnivChar from, WideChar &to, ISet &toSet, + WideChar &count) + const; + void addRange(WideChar descMin, WideChar descMax, UnivChar univMin); + void addBaseRange(const UnivCharsetDesc &baseSet, + WideChar descMin, + WideChar descMax, + WideChar baseMin, + ISet &baseMissing); +private: + static Boolean noDesc(Unsigned32 n) { + return (n & (unsigned(1) << 31)); + } + static UnivChar extractChar(Unsigned32 n, Char ch) { + return UnivChar((n + ch) & ((unsigned(1) << 31) - 1)); + } + static Unsigned32 wrapChar(UnivChar univ, Char ch) { + return Unsigned32((univ - ch) & ((unsigned(1) << 31) - 1)); + } + // For characters <= charMax.< + CharMap charMap_; + // For characters > charMax. + RangeMap rangeMap_; + friend class UnivCharsetDescIter; +}; + +class SP_API UnivCharsetDescIter { +public: + UnivCharsetDescIter(const UnivCharsetDesc &); + Boolean next(WideChar &descMin, WideChar &descMax, UnivChar &univMin); + void skipTo(WideChar); +private: + const CharMap *charMap_; + Char nextChar_; + Boolean doneCharMap_; + RangeMapIter rangeMapIter_; +}; + +inline +Boolean UnivCharsetDesc::descToUniv(WideChar from, UnivChar &to) const +{ + if (from > charMax) { + WideChar tem; + return rangeMap_.map(from, to, tem); + } + else { + Unsigned32 tem = charMap_[from]; + if (noDesc(tem)) + return 0; + else { + to = extractChar(tem, from); + return 1; + } + } +} + +inline +Boolean UnivCharsetDesc::descToUniv(WideChar from, UnivChar &to, + WideChar &alsoMax) const +{ + if (from > charMax) + return rangeMap_.map(from, to, alsoMax); + else { + Char max; + Unsigned32 tem = charMap_.getRange(from, max); + alsoMax = max; + if (noDesc(tem)) + return 0; + else { + to = extractChar(tem, from); + return 1; + } + } +} + +inline +unsigned UnivCharsetDesc::univToDesc(UnivChar from, WideChar &to, + ISet &toSet) const +{ + WideChar tem; + return univToDesc(from, to, toSet, tem); +} + +inline +void UnivCharsetDescIter::skipTo(WideChar ch) +{ + if (ch > charMax) + doneCharMap_ = 1; + else + nextChar_ = ch; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not UnivCharsetDesc_INCLUDED */ diff --git a/include/Vector.cxx b/include/Vector.cxx new file mode 100644 index 0000000..635d02d --- /dev/null +++ b/include/Vector.cxx @@ -0,0 +1,160 @@ +// Copyright (c) 1994, 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef Vector_DEF_INCLUDED +#define Vector_DEF_INCLUDED 1 + +#include +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +Vector::~Vector() +{ + if (ptr_) { + erase(ptr_, ptr_ + size_); + ::operator delete((void *)ptr_); + } +} + +#ifndef NC + +template +Vector::Vector(const Vector &v) +: ptr_(0), size_(0), alloc_(0) +{ + insert(ptr_ + size_, v.ptr_, v.ptr_ + v.size_); +} + +template +Vector::Vector(size_t n, const T &t) +: ptr_(0), size_(0), alloc_(0) +{ + insert(ptr_ + size_, n, t); +} + +template +Vector &Vector::operator=(const Vector &v) +{ + if (&v != this) { + size_t n = v.size_; + if (n > size_) { + n = size_; + insert(ptr_ + size_, v.ptr_ + size_, v.ptr_ + v.size_); + } + else if (n < size_) + erase(ptr_ + n, ptr_ + size_); + while (n-- > 0) + ptr_[n] = v.ptr_[n]; + } + return *this; +} + +template +void Vector::assign(size_t n, const T &t) +{ + size_t sz = n; + if (n > size_) { + sz = size_; + insert(ptr_ + size_, n - size_, t); + } + else if (n < size_) + erase(ptr_ + n, ptr_ + size_); + while (sz-- > 0) + ptr_[sz] = t; +} + +template +void Vector::insert(const T *p, size_t n, const T &t) +{ + size_t i = p - ptr_; + reserve(size_ + n); + if (i != size_) + memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T)); + for (T *pp = ptr_ + i; n-- > 0; pp++) { + (void)new (pp) T(t); + size_++; + } +} + +template +void Vector::insert(const T *p, const T *q1, const T *q2) +{ + size_t i = p - ptr_; + size_t n = q2 - q1; + reserve(size_ + n); + if (i != size_) + memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T)); + for (T *pp = ptr_ + i; q1 != q2; q1++, pp++) { + (void)new (pp) T(*q1); + size_++; + } +} + +#endif + +template +void Vector::swap(Vector &v) +{ + { + T *tem = ptr_; + ptr_ = v.ptr_; + v.ptr_ = tem; + } + { + size_t tem = size_; + size_ = v.size_; + v.size_ = tem; + } + { + size_t tem = alloc_; + alloc_ = v.alloc_; + v.alloc_ = tem; + } +} + +template +void Vector::append(size_t n) +{ + reserve(size_ + n); + while (n-- > 0) + (void)new (ptr_ + size_++) T; +} + +template +T *Vector::erase(const T *p1, const T *p2) +{ + typedef T X; + for (const T *p = p1; p != p2; p++) + ((X *)p)->~X(); + if (p2 != ptr_ + size_) + memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T)); + size_ -= p2 - p1; + return (T *)p1; +} + +template +void Vector::reserve1(size_t size) +{ + // Try to preserve a consistent start in the + // event of an out of memory exception. + size_t newAlloc = alloc_*2; + if (size > newAlloc) + newAlloc += size; + void *p = ::operator new(newAlloc * sizeof(T)); + alloc_ = newAlloc; + if (ptr_) { + memcpy(p, ptr_, size_*sizeof(T)); + ::operator delete((void *)ptr_); + } + ptr_ = (T *)p; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Vector_DEF_INCLUDED */ diff --git a/include/Vector.h b/include/Vector.h new file mode 100644 index 0000000..4678da1 --- /dev/null +++ b/include/Vector.h @@ -0,0 +1,78 @@ +// Copyright (c) 1994, 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef Vector_INCLUDED +#define Vector_INCLUDED 1 + +#include +#include "xnew.h" + +// This offers a subset of the interface offered by the standard C++ +// vector class as defined in the Jan 96 WP. +// Code in SP currently assumes that size_type is size_t. + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class Vector { +public: + typedef size_t size_type; + typedef T *iterator; + typedef const T *const_iterator; + Vector() : size_(0), ptr_(0), alloc_(0) { } + Vector(size_t n) : ptr_(0), size_(0), alloc_(0) { append(n); } + virtual ~Vector(); + void resize(size_t n) { + if (n < size_) + erase(ptr_ + n, ptr_ + size_); + else if (n > size_) + append(n - size_); + } +#ifndef NC + Vector(size_t, const T &); + Vector(const Vector &); + Vector &operator=(const Vector &); + void assign(size_t, const T &); + void push_back(const T &t) { + reserve(size_ + 1); + (void)new (ptr_ + size_) T(t); + size_++; + } + void insert(const_iterator p, size_t n, const T &t); + void insert(const_iterator p, const_iterator q1, const_iterator q2); +#endif + void swap(Vector &); + void clear() { erase(ptr_, ptr_ + size_); } + size_t size() const { return size_; } + T &operator[](size_t i) { return ptr_[i]; } + const T &operator[](size_t i) const { return ptr_[i]; } + iterator begin() { return ptr_; } + const_iterator begin() const { return ptr_; } + T &back() { return ptr_[size_ - 1]; } + const T &back() const { return ptr_[size_ - 1]; } + void reserve(size_t n) { if (n > alloc_) reserve1(n); } + iterator erase(const_iterator, const_iterator); +private: +#ifdef NC + Vector(const Vector &); + void operator=(const Vector &); +#endif + void append(size_t); + void reserve1(size_t); + + size_t size_; + T *ptr_; + size_t alloc_; // allocated size +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Vector_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "Vector.cxx" +#endif diff --git a/include/Win32CodingSystem.h b/include/Win32CodingSystem.h new file mode 100644 index 0000000..fb11206 --- /dev/null +++ b/include/Win32CodingSystem.h @@ -0,0 +1,38 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef Win32CodingSystem_INCLUDED +#define Win32CodingSystem_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "CodingSystem.h" +#include "Boolean.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API Win32CodingSystem : public CodingSystem { +public: + enum SpecialCodePage { + codePageOEM, + codePageAnsi + }; + Win32CodingSystem(unsigned int codePage, Char defaultChar = 0xfffd); + Win32CodingSystem(SpecialCodePage, Char defaultChar = 0xfffd); + Boolean isValid() const; + Decoder *makeDecoder() const; + Encoder *makeEncoder() const; +private: + unsigned int codePage_; + Char defaultChar_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Win32CodingSystem_INCLUDED */ diff --git a/include/WinApp.h b/include/WinApp.h new file mode 100644 index 0000000..ce292b2 --- /dev/null +++ b/include/WinApp.h @@ -0,0 +1,105 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef WinApp_INCLUDED +#define WinApp_INCLUDED 1 + +#include "Event.h" +#include "Vector.h" +#include "StringC.h" +#include "CharsetInfo.h" +#include "ParserOptions.h" +#include "SgmlParser.h" +#include "Ptr.h" +#include "CodingSystemKit.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API WinApp { +public: + WinApp(); + ParserOptions options; + Boolean setEncoding(StringC &tem); + const StringC &encoding() const; + Boolean setDefaultEncoding(StringC &tem); + const StringC &defaultEncoding() const; + // These are semi-colon delimited lists of system identifiers. + void setExtraCatalogs(StringC &tem); + const StringC &extraCatalogs() const; + void setDefaultCatalogs(StringC &tem); + const StringC &defaultCatalogs() const; + void setExtraDirectories(StringC &tem); + const StringC &extraDirectories() const; + void setDefaultDirectories(StringC &tem); + const StringC &defaultDirectories() const; + void initParser(const StringC &, SgmlParser &); + void initParser(const StringC &sysid, SgmlParser &, Ptr &); +private: + static void setRegistry(const char *name, const StringC &value); + static Boolean getRegistry(const char *name, StringC &value); + const InputCodingSystem *getCodingSystem(const StringC &name); + + StringC extraCatalogs_; + StringC defaultCatalogs_; + StringC extraDirectories_; + StringC defaultDirectories_; + StringC encoding_; + StringC defaultEncoding_; + ConstPtr codingSystemKit_; +}; + +inline +const StringC &WinApp::encoding() const +{ + return encoding_; +} + +inline +const StringC &WinApp::defaultEncoding() const +{ + return defaultEncoding_; +} + +inline +const StringC &WinApp::extraCatalogs() const +{ + return extraCatalogs_; +} + +inline +void WinApp::setExtraCatalogs(StringC &str) +{ + str.swap(extraCatalogs_); +} + +inline +const StringC &WinApp::defaultCatalogs() const +{ + return defaultCatalogs_; +} + +inline +const StringC &WinApp::extraDirectories() const +{ + return extraDirectories_; +} + +inline +void WinApp::setExtraDirectories(StringC &str) +{ + str.swap(extraDirectories_); +} + +inline +const StringC &WinApp::defaultDirectories() const +{ + return defaultDirectories_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not WinApp_INCLUDED */ diff --git a/include/WinInetStorage.h b/include/WinInetStorage.h new file mode 100644 index 0000000..186dc0e --- /dev/null +++ b/include/WinInetStorage.h @@ -0,0 +1,39 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef WinInetStorage_INCLUDED +#define WinInetStorage_INCLUDED 1 + +#include "StorageManager.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SP_API WinInetStorageManager : public IdStorageManager { +public: + WinInetStorageManager(const char *type); + ~WinInetStorageManager(); + StorageObject *makeStorageObject(const StringC &id, + const StringC &baseId, + Boolean search, + Boolean mayRewind, + Messenger &, + StringC &found); + const char *type() const; + Boolean guessIsId(const StringC &, const CharsetInfo &) const; + Boolean transformNeutral(StringC &, Boolean fold, Messenger &) const; +private: + Boolean resolveRelative(const StringC &base, StringC &specId, Boolean) const; + WinInetStorageManager(const WinInetStorageManager &); // undefined + void operator=(const WinInetStorageManager &); // undefined + Boolean initSession(); + const char *type_; + void *session_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not WinInetStorage_INCLUDED */ diff --git a/include/XMLCodingSystem.h b/include/XMLCodingSystem.h new file mode 100644 index 0000000..0f68cce --- /dev/null +++ b/include/XMLCodingSystem.h @@ -0,0 +1,28 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef XMLCodingSystem_INCLUDED +#define XMLCodingSystem_INCLUDED 1 + +#include "CodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class InputCodingSystemKit; + +class SP_API XMLCodingSystem : public CodingSystem { +public: + XMLCodingSystem(const InputCodingSystemKit *); + Decoder *makeDecoder() const; + Encoder *makeEncoder() const; +private: + const InputCodingSystemKit *kit_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not XMLCodingSystem_INCLUDED */ diff --git a/include/XcharMap.cxx b/include/XcharMap.cxx new file mode 100644 index 0000000..b096e8d --- /dev/null +++ b/include/XcharMap.cxx @@ -0,0 +1,66 @@ +// Copyright (c) 1994 James Clark, 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef XcharMap_DEF_INCLUDED +#define XcharMap_DEF_INCLUDED 1 + +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +SharedXcharMap::SharedXcharMap() +{ +} + +template +SharedXcharMap::SharedXcharMap(T defaultValue) +{ + for (size_t i = 0; i < sizeof(v)/sizeof(v[0]); i++) + v[i] = defaultValue; +} + +template +XcharMap::XcharMap() +: ptr_(0) +{ +} + +template +XcharMap::XcharMap(T defaultValue) +: sharedMap_(new SharedXcharMap(defaultValue)) +#ifdef SP_MULTI_BYTE + , hiMap_(new CharMapResource(defaultValue)) +#endif +{ + ptr_ = sharedMap_->ptr(); +} + +template +void XcharMap::setRange(Char min, Char max, T val) +{ + if (min <= max) { +#ifdef SP_MULTI_BYTE + if (min <= 0xffff) { + Char m = max <= 0xffff ? max : 0xffff; +#else + Char m = max; +#endif + do { + ptr_[min] = val; + } while (min++ != m); +#ifdef SP_MULTI_BYTE + } + if (max >= 0x10000) + hiMap_->setRange(min < 0x10000 ? 0x10000 : min, max, val); +#endif + } +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not XcharMap_DEF_INCLUDED */ diff --git a/include/XcharMap.h b/include/XcharMap.h new file mode 100644 index 0000000..c466c07 --- /dev/null +++ b/include/XcharMap.h @@ -0,0 +1,100 @@ +// Copyright (c) 1994 James Clark, 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef XcharMap_INCLUDED +#define XcharMap_INCLUDED 1 + +#include "types.h" +#include "Resource.h" +#include "Ptr.h" +#include "constant.h" +#include "CharMap.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +template +class SharedXcharMap : public Resource { +public: + SharedXcharMap(); + SharedXcharMap(T defaultValue); + T *ptr() { return v + 1; } +private: +#ifdef SP_MULTI_BYTE + T v[2 + 0xffff]; +#else + T v[2 + 0xff]; +#endif +}; + +template +class XcharMap { +public: + XcharMap(); + XcharMap(T defaultValue); + T operator[](Xchar c) const; + void setRange(Char min, Char max, T val); + void setChar(Char c, T val); + void setEe(T val); + void clear(); +private: + T *ptr_; + Ptr > sharedMap_; +#ifdef SP_MULTI_BYTE + Ptr > hiMap_; +#endif +}; + + +template +inline +T XcharMap::operator[](Xchar c) const +{ +#ifdef SP_MULTI_BYTE + if (c > 0xffff) + return hiMap_->operator[]((Char)c); +#endif + return ptr_[c]; +} + +template +inline +void XcharMap::setChar(Char c, T val) +{ +#ifdef SP_MULTI_BYTE + if (c > 0xffff) { + hiMap_->setChar(c, val); + return; + } +#endif + ptr_[c] = val; +} + +template +inline +void XcharMap::setEe(T val) +{ + ptr_[-1] = val; +} + +template +inline +void XcharMap::clear() +{ + ptr_ = 0; + sharedMap_.clear(); +#ifdef SP_MULTI_BYTE + hiMap_.clear(); +#endif +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not XcharMap_INCLUDED */ + +#ifdef SP_DEFINE_TEMPLATES +#include "XcharMap.cxx" +#endif diff --git a/include/config.h.old.in b/include/config.h.old.in new file mode 100644 index 0000000..15e495e --- /dev/null +++ b/include/config.h.old.in @@ -0,0 +1,315 @@ +// Copyright (c) 1994, 1995, 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef config_INCLUDED +#define config_INCLUDED 1 + +#define SP_INCLUDE_UNISTD_H +#define SP_POSIX_FILENAMES + +#ifdef __GNUG__ +// Ideally, this should be set in configure.in, I think +// It's not missing, but it pulls in libg++ +#define SP_NEW_H_MISSING +// set_new_handler() has to be declared extern "C" +#define SP_SET_NEW_HANDLER_EXTERN_C +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) +#define SP_ANSI_FOR_SCOPE +#endif +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8) +#define SP_ANSI_LIB +#define SP_NO_STD_NAMESPACE +#undef SP_NEW_H_MISSING +#endif +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 9) +#undef SP_NO_STD_NAMESPACE +#endif +#endif /* __GNUG__ */ + +#if defined(sun) || defined(__sun) +// struct stat has st_blksize member +#define SP_STAT_BLKSIZE +#endif + +#if (defined __MACH__) && (! defined __GNU__) +#define SP_MUTEX_MACH +#endif + +#ifdef __EMX__ +// EMX 0.9a for OS/2 +#undef SP_POSIX_FILENAMES +#define SP_MSDOS_FILENAMES +#endif + +#ifdef _MSC_VER +// Microsoft Visual C++ 4.0 +#undef SP_INCLUDE_UNISTD_H +#define SP_INCLUDE_IO_H +#ifndef SP_ANSI_CLASS_INST +#define SP_ANSI_CLASS_INST +#endif +#undef SP_POSIX_FILENAMES +#define SP_MSDOS_FILENAMES +#define SP_SHORT_HEADERS +#pragma warning ( disable : 4660 ) // already instantiated +#pragma warning ( disable : 4661 ) // missing def for decl member +#pragma warning ( disable : 4786 ) // debug symbol truncated (>255 chars) +#pragma warning ( disable : 4018 ) // signed/unsigned mismatch +#pragma warning ( disable : 4251 ) // __declspec(dllexport) +#pragma warning ( disable : 4275 ) +#pragma warning ( disable : 4237 ) // future reserved keyword +#define huge verybig +#if _MSC_VER == 900 +#define SP_DECLARE_PLACEMENT_OPERATOR_NEW +#endif +#define set_new_handler _set_new_handler +// Function passed to set_new_handler() returns int and takes size_t argument. +#define SP_FANCY_NEW_HANDLER + +#if _MSC_VER >= 1100 +// Visual C++ 5.0 +#define SP_HAVE_BOOL +#define SP_SIZEOF_BOOL_1 +#pragma warning ( disable : 4800 ) // forcing value to bool 'true' or + // 'false' (performance warning) +#endif + +#if _MSC_VER >= 1200 +// Visual C++ 6.0 +#define SP_HAVE_PLACEMENT_OPERATOR_DELETE +#define SP_HAVE_TYPENAME +#endif + +#define SP_HAVE_SETMODE +#define SP_DLLEXPORT __declspec(dllexport) +#define SP_DLLIMPORT __declspec(dllimport) + +#if defined(_DLL) || defined(_USRDLL) || defined(_MT) +#define SP_USE_DLL +#endif + +#ifdef SP_USE_DLL +#ifndef BUILD_LIBSP +// It's not possible to export templates using __declspec(dllexport), +// so instead we include the template definitions in the headers, +// which allows Visual C++ to instantiate any needed templates +// in the client. +#define SP_DEFINE_TEMPLATES +#endif +#endif /* SP_USE_DLL */ + +#ifndef SP_MANUAL_INST +#ifndef SP_DEFINE_TEMPLATES +#define SP_MANUAL_INST +#endif +#endif /* not SP_MANUAL_INST */ + +// SP_WIDE_SYSTEM builds will not compile due to missing overloads +// OutputCharStream &operator<<(wchar_t) and +// OutputCharStream &operator<<(unsigned short*) +// which are required by onsgmls; osx has probably similar issues. +// Once these issues are addressed, the following lines should be +// re-activated. + +// #ifdef SP_MULTI_BYTE +// #define SP_WIDE_SYSTEM +// #endif + +// wchar_t's base type is an unsigned short +#define SP_WCHAR_T_USHORT + +// Enable precompiled header support. +#define SP_PCH +// Don't compile in message text. +#define SP_NO_MESSAGE_TEXT +#ifdef _MT +// Use Win32 critical section facilities +#define SP_MUTEX_WIN32 +// Use the new Standard C++ library +#define SP_ANSI_LIB +#if _MSC_VER < 1100 +// Versions prior to 5.0 don't use the std namespace +#define SP_NO_STD_NAMESPACE +#endif +#endif /* _MT */ +#endif /* _MSC_VER */ + +#ifdef __WATCOMC__ +// Watcom C++ 10.0a +#define SP_MANUAL_INST +#undef SP_POSIX_FILENAMES +#define SP_MSDOS_FILENAMES +#undef SP_INCLUDE_UNISTD_H +#define SP_INCLUDE_IO_H +#pragma warning 004 9 +#undef huge +// Cannot handle T::~T in template. +#define SP_QUAL_TEMPLATE_DTOR_BROKEN +#define SP_HAVE_SETMODE +#define _setmode setmode +#if __WATCOMC__ < 1050 +#define _O_BINARY O_BINARY +#endif +#define SP_WCHAR_T_USHORT +#if __WATCOMC__ >= 1100 +#define SP_HAVE_BOOL +// #define SP_SIZEOF_BOOL_1 +#endif +#endif /* __WATCOMC__ */ + +#ifdef __BORLANDC__ +// Borland C++ 5.0 +#define SP_ANSI_FOR_SCOPE +#define SP_HAVE_RTTI +#define SP_HAVE_SETMODE +#undef SP_INCLUDE_UNISTD_H +#define SP_INCLUDE_IO_H +#undef SP_POSIX_FILENAMES +#define SP_MSDOS_FILENAMES +#define SP_HAVE_BOOL +#define SP_SHORT_HEADERS +#define _O_BINARY O_BINARY +#define _setmode setmode +#define SP_ANSI_CLASS_INST +#define SP_MANUAL_INST +// Building as a DLL doesn't work with Borland C++ yet. +#define SP_DLLEXPORT __declspec(dllexport) +#define SP_DLLIMPORT __declspec(dllimport) +#ifdef SP_USE_DLL +#ifndef BUILD_LIBSP +#define SP_DEFINE_TEMPLATES +#endif +#endif /* SP_USE_DLL */ +#define SP_WCHAR_T_USHORT +#endif /* __BORLANDC__ */ + +#ifdef __IBMCPP__ +// IBM CSet++ 2.1 from Horst Szillat . +#undef SP_POSIX_FILENAMES +#define SP_MANUAL_INST +#define SP_SHORT_HEADERS +#define SP_MSDOS_FILENAMES +#undef SP_INCLUDE_UNISTD_H +#define SP_INCLUDE_IO_H +#define S_IFMT (S_IFDIR|S_IFCHR|S_IFREG) +#endif + +#ifdef __xlC__ +// IBM CSet++ 3.1 on AIX 4.1. +// Use CXX=xlC and CC=xlC in the Makefile. +// Note that -g creates massive executables and that -O +// takes ages to compile and creates core dumping executables! +// I havn't tried the socket stuff. +// +#define SP_MANUAL_INST +#define SP_HAVE_LOCALE +#define SP_STAT_BLKSIZE +#endif /* __xlC__ */ + +#ifdef macintosh +// Apple MacOS. Tested only with Metrowerks CW10. +// From Ashley Colin Yakeley +#undef SP_POSIX_FILENAMES +#define SP_MAC_FILENAMES +#define SP_LINE_TERM1 '\r' + +#ifdef __MWERKS__ +// Metrowerks for some platform (MacOS in this case) + +#pragma mpwc_newline off +#define SP_DEFINE_TEMPLATES +// #define SP_USE_DLL -- __declspec doesn't work with classes (yet) +#ifdef SP_USE_DLL +#define SP_DLLEXPORT __declspec(export) +#define SP_DLLIMPORT __declspec(import) +#endif // SP_USE_DLL + +#if __MWERKS__ >= 0x1000 +// bool option only defined for CW10 and later (note __MWERKS__ is BCD) +#if __option(bool) +#define SP_HAVE_BOOL +#endif // __option(bool) +#endif // __MWERKS__ >= 0x1000 +#endif // __MWERKS__ + +#if ('\n' != 10) || ('\r' != 13) +#error "newlines incorrect" +#endif + +#endif /* macintosh */ + +#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 SP_ANSI_FOR_SCOPE +// This simulates the new ANSI "for" scope rules +#define for if (0); else for +#endif + +#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 */ + +// SP_WIDE_SYSTEM says that your OS provides wide character interfaces +// SP_WIDE_SYSTEM currently works only with Visual C++ and Windows NT/95 +// SP_WIDE_SYSTEM implies SP_MULTI_BYTE +#ifdef SP_WIDE_SYSTEM +#ifndef SP_MULTI_BYTE +#define SP_MULTI_BYTE +#endif +#endif + +#ifdef SP_NAMESPACE +#define SP_NAMESPACE_SCOPE SP_NAMESPACE:: +#else +#define SP_NAMESPACE_SCOPE +#endif + +#ifdef SP_MSDOS_FILENAMES +#define PATH_SEPARATOR ';' +#else +#define PATH_SEPARATOR ':' +#endif + + +/* new stuff */ + +#ifndef HAVE_MUTABLE +#define mutable +#endif + +// NOTE: This is processed as a Makefile, not as a header by autoconf. +#define SP_PACKAGE "@PACKAGE@" +#define SP_VERSION "@VERSION@" + +#endif /* not config_INCLUDED */ diff --git a/include/constant.h b/include/constant.h new file mode 100644 index 0000000..7fce217 --- /dev/null +++ b/include/constant.h @@ -0,0 +1,24 @@ +#ifndef constant_INCLUDED +#define constant_INCLUDED 1 + +#include "types.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#ifdef SP_MULTI_BYTE +// restrict Char to the UTF-16 range for now +const Char charMax = 0x10ffff; +#else +const Char charMax = Char(-1); +#endif +const WideChar wideCharMax = WideChar(-1); +const UnivChar univCharMax = UnivChar(-1); +const SyntaxChar syntaxCharMax = SyntaxChar(-1); + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not constant_INCLUDED */ diff --git a/include/macros.h b/include/macros.h new file mode 100644 index 0000000..d8c18b7 --- /dev/null +++ b/include/macros.h @@ -0,0 +1,49 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef macros_INCLUDED +#define macros_INCLUDED 1 + +#ifndef __GNUG__ +#define __attribute__(args) /* as nothing */ +#endif + +#ifdef NDEBUG + +#include +#define ASSERT(expr) ((void)0) +#define CANNOT_HAPPEN() ((void)abort()) + +#else /* not NDEBUG */ + +#ifdef SP_USE_OWN_ASSERT +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif +extern SP_API void assertionFailed(const char *, const char *, int) + __attribute__((noreturn)); +#ifdef SP_NAMESPACE +} +#endif + +#define ASSERT(expr) \ + ((void)((expr) || \ + (::SP_NAMESPACE_SCOPE assertionFailed(# expr, __FILE__, __LINE__), 0))) + +#else /* not SP_USE_OWN_ASSERT */ +#ifdef SP_ANSI_LIB +#include +#else /* not SP_ANSI_LIB */ +#include +#endif + +#define ASSERT(expr) assert(expr) +#endif /* not SP_USE_OWN_ASSERT */ + +#define CANNOT_HAPPEN() ASSERT(0) + +#endif /* not NDEBUG */ + +#define SIZEOF(v) (sizeof(v)/sizeof(v[0])) + +#endif /* not macros_INCLUDED */ diff --git a/include/rtti.h b/include/rtti.h new file mode 100644 index 0000000..e9ad6b7 --- /dev/null +++ b/include/rtti.h @@ -0,0 +1,59 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef rtti_INCLUDED +#define rtti_INCLUDED 1 + +#ifdef SP_HAVE_RTTI + +#define DYNAMIC_CAST_PTR(T, p) dynamic_cast(p) +#define DYNAMIC_CAST_CONST_PTR(T, p) dynamic_cast(p) + +#define RTTI_CLASS + +#define RTTI_DEF0(T) +#define RTTI_DEF1(T, B1) +#define RTTI_DEF2(T, B1, B2) +#define RTTI_DEF3(T, B1, B2, B3) + +#else /* not SP_HAVE_RTTI */ + +#include "TypeId.h" + +#define RTTI_CLASS \ +public: \ + virtual TypeId dynamicType() const; \ + static inline TypeId staticType() { return TypeId(RTTI_bases_); } \ +protected: \ + static const void *RTTI_bases_[]; \ +private: + +#define RTTI_DEF0(T) \ + const void *T::RTTI_bases_[] = { 0 }; \ + TypeId T::dynamicType() const { return staticType(); } + +#define RTTI_DEF1(T, B1) \ + const void *T::RTTI_bases_[] = { B1::RTTI_bases_, 0 }; \ + TypeId T::dynamicType() const { return staticType(); } + +#define RTTI_DEF2(T, B1, B2) \ + const void *T::RTTI_bases_[] = { B1::RTTI_bases_, B2::RTTI_bases_, 0 }; \ + TypeId T::dynamicType() const { return staticType(); } + +#define RTTI_DEF3(T, B1, B2, B3) \ + const void *T::RTTI_bases_[] = { \ + B1::RTTI_bases_, B2::RTTI_bases_, B3::RTTI_bases_, 0 }; \ + TypeId T::dynamicType() const { return staticType(); } + +#define DYNAMIC_CAST_PTR(T, p) \ +((p) && (p)->dynamicType().canCast(T::staticType(), (p)->staticType()) \ + ? (T *)(p) \ + : 0) +#define DYNAMIC_CAST_CONST_PTR(T, p) \ +((p) && (p)->dynamicType().canCast(T::staticType(), (p)->staticType()) \ + ? (const T *)p \ + : 0) + +#endif /* not SP_HAVE_RTTI */ + +#endif /* not rtti_INCLUDED */ diff --git a/include/sptchar.h b/include/sptchar.h new file mode 100644 index 0000000..a32385a --- /dev/null +++ b/include/sptchar.h @@ -0,0 +1,168 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifndef sptchar_INCLUDED +#define sptchar_INCLUDED 1 + +#include +#include +#include +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#ifdef SP_WIDE_SYSTEM + +typedef wchar_t SP_TCHAR; +typedef wchar_t SP_TUCHAR; + +#define SP_T(x) L ## x + +inline +wchar_t *tgetenv(const wchar_t *s) +{ + return _wgetenv(s); +} + +inline +int tcscmp(const wchar_t *s1, const wchar_t *s2) +{ + return wcscmp(s1, s2); +} + +inline +int tcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) +{ + return wcsncmp(s1, s2, n); +} + +inline +unsigned long tcstoul(const wchar_t *s, const wchar_t **sp, int base) +{ + return wcstoul((wchar_t *)s, (wchar_t **)sp, base); +} + +inline +unsigned long tcstoul(wchar_t *s, wchar_t **sp, int base) +{ + return wcstoul(s, sp, base); +} + +inline +const wchar_t *tcschr(const wchar_t *s, wint_t c) +{ + return wcschr(s, c); +} + +inline +wchar_t *tcschr(wchar_t *s, wint_t c) +{ + return wcschr(s, c); +} + +inline +size_t tcslen(const wchar_t *s) +{ + return wcslen(s); +} + +inline +int fputts(const wchar_t *s, FILE *fp) +{ + return fputws(s, fp); +} + +inline +int totupper(wint_t c) +{ + return towupper(c); +} + +inline +bool istalnum(wint_t c) +{ + return iswalnum(c); +} + +#else /* not SP_WIDE_SYSTEM */ + +typedef char SP_TCHAR; +typedef unsigned char SP_TUCHAR; + +#define SP_T(x) x + +inline +char *tgetenv(const char *s) +{ + return getenv(s); +} + +inline +int tcscmp(const char *s1, const char *s2) +{ + return strcmp(s1, s2); +} + +inline +int tcsncmp(const char *s1, const char *s2, size_t n) +{ + return strncmp(s1, s2, n); +} + +inline +unsigned long tcstoul(const char *s, const char **sp, int base) +{ + return strtoul((char *)s, (char **)sp, base); +} + +inline +unsigned long tcstoul(char *s, char **sp, int base) +{ + return strtoul(s, sp, base); +} + +inline +const char *tcschr(const char *s, int c) +{ + return strchr(s, c); +} + +inline +char *tcschr(char *s, int c) +{ + return strchr(s, c); +} + +inline +size_t tcslen(const char *s) +{ + return strlen(s); +} + +inline +int fputts(const char *s, FILE *fp) +{ + return fputs(s, fp); +} + +inline +int totupper(int c) +{ + return toupper(c); +} + +inline +bool istalnum(int c) +{ + return isalnum(c); +} + +#endif /* not SP_WIDE_SYSTEM */ + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not sptchar_INCLUDED */ diff --git a/include/types.h b/include/types.h new file mode 100644 index 0000000..1951dfa --- /dev/null +++ b/include/types.h @@ -0,0 +1,62 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef types_INCLUDED +#define types_INCLUDED 1 + +#include +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#if UINT_MAX >= 0xffffffffL /* 2^32 - 1 */ +typedef unsigned int Unsigned32; +typedef int Signed32; +#else +typedef unsigned long Unsigned32; +typedef long Signed32; +#endif + +// Number holds values between 0 and 99999999 (eight nines). +typedef Unsigned32 Number; +typedef Unsigned32 Offset; +typedef Unsigned32 Index; + +#ifdef SP_MULTI_BYTE + +typedef Unsigned32 Char; +typedef Signed32 Xchar; + +#else /* not SP_MULTI_BYTE */ + +typedef unsigned char Char; +// This holds any value of type Char plus InputSource:eE (= -1). +typedef int Xchar; + +#endif /* not SP_MULTI_BYTE */ + +typedef Unsigned32 UnivChar; +typedef Unsigned32 WideChar; + +// A character in a syntax reference character set. +// We might want to compile with wide syntax reference characters +// (since they're cheap) but not with wide document characters. +typedef Unsigned32 SyntaxChar; + +typedef unsigned short CharClassIndex; + +typedef unsigned Token; + +#ifdef SP_MULTI_BYTE +typedef unsigned short EquivCode; +#else +typedef unsigned char EquivCode; +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not types_INCLUDED */ diff --git a/include/xnew.h b/include/xnew.h new file mode 100644 index 0000000..0db8999 --- /dev/null +++ b/include/xnew.h @@ -0,0 +1,37 @@ +#ifndef xnew_INCLUDED +#define xnew_INCLUDED 1 + +#ifdef SP_NEW_H_MISSING + +typedef void (*VFP)(); + +#ifdef SP_SET_NEW_HANDLER_EXTERN_C +extern "C" +#endif +void set_new_handler(VFP); + +#ifndef SP_DECLARE_PLACEMENT_OPERATOR_NEW +#define SP_DECLARE_PLACEMENT_OPERATOR_NEW +#endif + +#else /* not SP_NEW_H_MISSING */ + +#ifdef SP_ANSI_LIB +#include +#else +#include +#endif + +#endif /* not SP_NEW_H_MISSING */ + +#ifdef SP_DECLARE_PLACEMENT_OPERATOR_NEW + +inline +void *operator new(size_t, void *p) +{ + return p; +} + +#endif /* SP_DECLARE_PLACEMENT_OPERATOR_NEW */ + +#endif /* not xnew_INCLUDED */ diff --git a/install-sh b/install-sh new file mode 100755 index 0000000..4d4a951 --- /dev/null +++ b/install-sh @@ -0,0 +1,323 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2005-05-14.22 + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodprog="${CHMODPROG-chmod}" +chownprog="${CHOWNPROG-chown}" +chgrpprog="${CHGRPPROG-chgrp}" +stripprog="${STRIPPROG-strip}" +rmprog="${RMPROG-rm}" +mkdirprog="${MKDIRPROG-mkdir}" + +chmodcmd="$chmodprog 0755" +chowncmd= +chgrpcmd= +stripcmd= +rmcmd="$rmprog -f" +mvcmd="$mvprog" +src= +dst= +dir_arg= +dstarg= +no_target_directory= + +usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: +-c (ignored) +-d create directories instead of installing files. +-g GROUP $chgrpprog installed files to GROUP. +-m MODE $chmodprog installed files to MODE. +-o USER $chownprog installed files to USER. +-s $stripprog installed files. +-t DIRECTORY install into DIRECTORY. +-T report an error if DSTFILE is a directory. +--help display this help and exit. +--version display version info and exit. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG +" + +while test -n "$1"; do + case $1 in + -c) shift + continue;; + + -d) dir_arg=true + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + --help) echo "$usage"; exit $?;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -s) stripcmd=$stripprog + shift + continue;; + + -t) dstarg=$2 + shift + shift + continue;; + + -T) no_target_directory=true + shift + continue;; + + --version) echo "$0 $scriptversion"; exit $?;; + + *) # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + test -n "$dir_arg$dstarg" && break + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dstarg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dstarg" + shift # fnord + fi + shift # arg + dstarg=$arg + done + break;; + esac +done + +if test -z "$1"; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call `install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +for src +do + # Protect names starting with `-'. + case $src in + -*) src=./$src ;; + esac + + if test -n "$dir_arg"; then + dst=$src + src= + + if test -d "$dst"; then + mkdircmd=: + chmodcmd= + else + mkdircmd=$mkdirprog + fi + else + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dstarg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + + dst=$dstarg + # Protect names starting with `-'. + case $dst in + -*) dst=./$dst ;; + esac + + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test -n "$no_target_directory"; then + echo "$0: $dstarg: Is a directory" >&2 + exit 1 + fi + dst=$dst/`basename "$src"` + fi + fi + + # This sed command emulates the dirname command. + dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` + + # Make sure that the destination directory exists. + + # Skip lots of stat calls in the usual case. + if test ! -d "$dstdir"; then + defaultIFS=' + ' + IFS="${IFS-$defaultIFS}" + + oIFS=$IFS + # Some sh's can't handle IFS=/ for some reason. + IFS='%' + set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` + shift + IFS=$oIFS + + pathcomp= + + while test $# -ne 0 ; do + pathcomp=$pathcomp$1 + shift + if test ! -d "$pathcomp"; then + $mkdirprog "$pathcomp" + # mkdir can fail with a `File exist' error in case several + # install-sh are creating the directory concurrently. This + # is OK. + test -d "$pathcomp" || exit + fi + pathcomp=$pathcomp/ + done + fi + + if test -n "$dir_arg"; then + $doit $mkdircmd "$dst" \ + && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ + && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ + && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } + + else + dstfile=`basename "$dst"` + + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + trap '(exit $?); exit' 1 2 13 15 + + # Copy the file name to the temp name. + $doit $cpprog "$src" "$dsttmp" && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ + && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ + && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && + + # Now rename the file to the real destination. + { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ + || { + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + if test -f "$dstdir/$dstfile"; then + $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ + || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ + || { + echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 + (exit 1); exit 1 + } + else + : + fi + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" + } + } + fi || { (exit 1); exit 1; } +done + +# The final little trick to "correctly" pass the exit status to the exit trap. +{ + (exit 0); exit 0 +} + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/instmac.pl b/instmac.pl new file mode 100755 index 0000000..25ebc0a --- /dev/null +++ b/instmac.pl @@ -0,0 +1,79 @@ +#! /bin/perl -w +# +# Copyright (c) 1999 Avi Kivity +# instmac.pl -- generate template instantiations +# derived from James Clark's instmac.m4 +# + +$index = 0; +$func_index = 0; + +sub header + { + print <<__HEADER__; +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + + +#ifdef SP_NAMESPACE +} +#endif +__HEADER__ + } + +sub instantiate + { + my ($class) = @_; + print <<__INSTANTIATION__; +#ifdef __DECCXX +#pragma define_template $class +#else +#ifdef __xlC__ +#pragma define($class) +#else +#ifdef SP_ANSI_CLASS_INST +template class $class; +#else +typedef $class Dummy_$index; +#endif +#endif +#endif +__INSTANTIATION__ + ++$index; + } + +sub func_instantiate + { + my ($a1, $a2, $a3, $a4) = @_; + print <<__FUNC_INSTANTIATION__; +#ifdef __GNUG__ +template void $a1($a2, $a3, $a4); +#else +static +void func_$func_index ($a2 arg1, $a3 arg2, $a4 arg3) { +(void)$a1(arg1, arg2, arg3); +} +#endif +__FUNC_INSTANTIATION__ + ++$func_index; + } + +header; +while () + { + if (/^__instantiate\((.*)\)\s*$/) + { + $arg = $1; + $arg = $1 if /`(.*)'/; + instantiate $arg; + } + elsif (/^__instantiate\((.*)\)\s*$/) + { + die "instantiate_func3 found!"; + } + else + { + print; + } + } diff --git a/intl/ChangeLog b/intl/ChangeLog new file mode 100644 index 0000000..5229816 --- /dev/null +++ b/intl/ChangeLog @@ -0,0 +1,4 @@ +2005-05-23 GNU + + * Version 0.14.5 released. + diff --git a/intl/Makefile.in b/intl/Makefile.in new file mode 100644 index 0000000..060ef49 --- /dev/null +++ b/intl/Makefile.in @@ -0,0 +1,500 @@ +# Makefile for directory with message catalog handling library of GNU gettext +# Copyright (C) 1995-1998, 2000-2005 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU Library General Public License as published +# by the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. + +PACKAGE = @PACKAGE@ +VERSION = @VERSION@ + +SHELL = /bin/sh + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +top_builddir = .. +VPATH = $(srcdir) + +prefix = @prefix@ +exec_prefix = @exec_prefix@ +transform = @program_transform_name@ +libdir = @libdir@ +includedir = @includedir@ +datadir = @datadir@ +localedir = $(datadir)/locale +gettextsrcdir = $(datadir)/gettext/intl +aliaspath = $(localedir) +subdir = intl + +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) + +l = @INTL_LIBTOOL_SUFFIX_PREFIX@ + +AR = ar +CC = @CC@ +LIBTOOL = @LIBTOOL@ +RANLIB = @RANLIB@ +YACC = @INTLBISON@ -y -d +YFLAGS = --name-prefix=__gettext + +DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ +-DLIBDIR=\"$(libdir)\" -DIN_LIBINTL \ +-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \ +-Dset_relocation_prefix=libintl_set_relocation_prefix \ +-Drelocate=libintl_relocate \ +-DDEPENDS_ON_LIBICONV=1 @DEFS@ +CPPFLAGS = @CPPFLAGS@ +CFLAGS = @CFLAGS@ +LDFLAGS = @LDFLAGS@ +LIBS = @LIBS@ + +COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) + +HEADERS = \ + gmo.h \ + gettextP.h \ + hash-string.h \ + loadinfo.h \ + plural-exp.h \ + eval-plural.h \ + localcharset.h \ + relocatable.h \ + xsize.h \ + printf-args.h printf-args.c \ + printf-parse.h wprintf-parse.h printf-parse.c \ + vasnprintf.h vasnwprintf.h vasnprintf.c \ + os2compat.h \ + libgnuintl.h.in +SOURCES = \ + bindtextdom.c \ + dcgettext.c \ + dgettext.c \ + gettext.c \ + finddomain.c \ + loadmsgcat.c \ + localealias.c \ + textdomain.c \ + l10nflist.c \ + explodename.c \ + dcigettext.c \ + dcngettext.c \ + dngettext.c \ + ngettext.c \ + plural.y \ + plural-exp.c \ + localcharset.c \ + relocatable.c \ + langprefs.c \ + localename.c \ + log.c \ + printf.c \ + osdep.c \ + os2compat.c \ + intl-compat.c +OBJECTS = \ + bindtextdom.$lo \ + dcgettext.$lo \ + dgettext.$lo \ + gettext.$lo \ + finddomain.$lo \ + loadmsgcat.$lo \ + localealias.$lo \ + textdomain.$lo \ + l10nflist.$lo \ + explodename.$lo \ + dcigettext.$lo \ + dcngettext.$lo \ + dngettext.$lo \ + ngettext.$lo \ + plural.$lo \ + plural-exp.$lo \ + localcharset.$lo \ + relocatable.$lo \ + langprefs.$lo \ + localename.$lo \ + log.$lo \ + printf.$lo \ + osdep.$lo \ + intl-compat.$lo +DISTFILES.common = Makefile.in \ +config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES) +DISTFILES.generated = plural.c +DISTFILES.normal = VERSION +DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc \ +libgnuintl.h_vms Makefile.vms \ +libgnuintl.h.msvc-static libgnuintl.h.msvc-shared README.woe32 Makefile.msvc +DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \ +COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h + +all: all-@USE_INCLUDED_LIBINTL@ +all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed +all-no: all-no-@BUILD_INCLUDED_LIBINTL@ +all-no-yes: libgnuintl.$la +all-no-no: + +libintl.a libgnuintl.a: $(OBJECTS) + rm -f $@ + $(AR) cru $@ $(OBJECTS) + $(RANLIB) $@ + +libintl.la libgnuintl.la: $(OBJECTS) + $(LIBTOOL) --mode=link \ + $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \ + $(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) -lc \ + -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ + -rpath $(libdir) \ + -no-undefined + +# Libtool's library version information for libintl. +# Before making a gettext release, the gettext maintainer must change this +# according to the libtool documentation, section "Library interface versions". +# Maintainers of other packages that include the intl directory must *not* +# change these values. +LTV_CURRENT=7 +LTV_REVISION=3 +LTV_AGE=4 + +.SUFFIXES: +.SUFFIXES: .c .y .o .lo .sin .sed + +.c.o: + $(COMPILE) $< + +.y.c: + $(YACC) $(YFLAGS) --output $@ $< + rm -f $*.h + +bindtextdom.lo: $(srcdir)/bindtextdom.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c +dcgettext.lo: $(srcdir)/dcgettext.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c +dgettext.lo: $(srcdir)/dgettext.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c +gettext.lo: $(srcdir)/gettext.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c +finddomain.lo: $(srcdir)/finddomain.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c +loadmsgcat.lo: $(srcdir)/loadmsgcat.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c +localealias.lo: $(srcdir)/localealias.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c +textdomain.lo: $(srcdir)/textdomain.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c +l10nflist.lo: $(srcdir)/l10nflist.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c +explodename.lo: $(srcdir)/explodename.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c +dcigettext.lo: $(srcdir)/dcigettext.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c +dcngettext.lo: $(srcdir)/dcngettext.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c +dngettext.lo: $(srcdir)/dngettext.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c +ngettext.lo: $(srcdir)/ngettext.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c +plural.lo: $(srcdir)/plural.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c +plural-exp.lo: $(srcdir)/plural-exp.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c +localcharset.lo: $(srcdir)/localcharset.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c +relocatable.lo: $(srcdir)/relocatable.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c +langprefs.lo: $(srcdir)/langprefs.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/langprefs.c +localename.lo: $(srcdir)/localename.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c +log.lo: $(srcdir)/log.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c +printf.lo: $(srcdir)/printf.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/printf.c +osdep.lo: $(srcdir)/osdep.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c +intl-compat.lo: $(srcdir)/intl-compat.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c + +ref-add.sed: $(srcdir)/ref-add.sin + sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed + mv t-ref-add.sed ref-add.sed +ref-del.sed: $(srcdir)/ref-del.sin + sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed + mv t-ref-del.sed ref-del.sed + +INCLUDES = -I. -I$(srcdir) -I.. + +libgnuintl.h: $(srcdir)/libgnuintl.h.in + sed -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ + -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ + -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ + -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ + < $(srcdir)/libgnuintl.h.in > libgnuintl.h + +libintl.h: libgnuintl.h + cp libgnuintl.h libintl.h + +charset.alias: $(srcdir)/config.charset + $(SHELL) $(srcdir)/config.charset '@host@' > t-$@ + mv t-$@ $@ + +check: all + +# We must not install the libintl.h/libintl.a files if we are on a +# system which has the GNU gettext() function in its C library or in a +# separate library. +# If you want to use the one which comes with this version of the +# package, you have to use `configure --with-included-gettext'. +install: install-exec install-data +install-exec: all + if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ + && test '@USE_INCLUDED_LIBINTL@' = yes; then \ + $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ + $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \ + $(LIBTOOL) --mode=install \ + $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \ + if test "@RELOCATABLE@" = yes; then \ + dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \ + if test -n "$$dependencies"; then \ + rm -f $(DESTDIR)$(libdir)/libintl.la; \ + fi; \ + fi; \ + else \ + : ; \ + fi + if test "$(PACKAGE)" = "gettext-tools" \ + && test '@USE_INCLUDED_LIBINTL@' = no \ + && test @GLIBC2@ != no; then \ + $(mkinstalldirs) $(DESTDIR)$(libdir); \ + $(LIBTOOL) --mode=install \ + $(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \ + rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \ + $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \ + $(LIBTOOL) --mode=uninstall \ + rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \ + else \ + : ; \ + fi + if test '@USE_INCLUDED_LIBINTL@' = yes; then \ + test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \ + temp=$(DESTDIR)$(libdir)/t-charset.alias; \ + dest=$(DESTDIR)$(libdir)/charset.alias; \ + if test -f $(DESTDIR)$(libdir)/charset.alias; then \ + orig=$(DESTDIR)$(libdir)/charset.alias; \ + sed -f ref-add.sed $$orig > $$temp; \ + $(INSTALL_DATA) $$temp $$dest; \ + rm -f $$temp; \ + else \ + if test @GLIBC21@ = no; then \ + orig=charset.alias; \ + sed -f ref-add.sed $$orig > $$temp; \ + $(INSTALL_DATA) $$temp $$dest; \ + rm -f $$temp; \ + fi; \ + fi; \ + $(mkinstalldirs) $(DESTDIR)$(localedir); \ + test -f $(DESTDIR)$(localedir)/locale.alias \ + && orig=$(DESTDIR)$(localedir)/locale.alias \ + || orig=$(srcdir)/locale.alias; \ + temp=$(DESTDIR)$(localedir)/t-locale.alias; \ + dest=$(DESTDIR)$(localedir)/locale.alias; \ + sed -f ref-add.sed $$orig > $$temp; \ + $(INSTALL_DATA) $$temp $$dest; \ + rm -f $$temp; \ + else \ + : ; \ + fi +install-data: all + if test "$(PACKAGE)" = "gettext-tools"; then \ + $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ + $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \ + $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \ + dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \ + for file in $$dists; do \ + $(INSTALL_DATA) $(srcdir)/$$file \ + $(DESTDIR)$(gettextsrcdir)/$$file; \ + done; \ + chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \ + dists="$(DISTFILES.generated)"; \ + for file in $$dists; do \ + if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ + $(INSTALL_DATA) $$dir/$$file \ + $(DESTDIR)$(gettextsrcdir)/$$file; \ + done; \ + dists="$(DISTFILES.obsolete)"; \ + for file in $$dists; do \ + rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ + done; \ + else \ + : ; \ + fi + +install-strip: install + +installdirs: + if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ + && test '@USE_INCLUDED_LIBINTL@' = yes; then \ + $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ + else \ + : ; \ + fi + if test "$(PACKAGE)" = "gettext-tools" \ + && test '@USE_INCLUDED_LIBINTL@' = no \ + && test @GLIBC2@ != no; then \ + $(mkinstalldirs) $(DESTDIR)$(libdir); \ + else \ + : ; \ + fi + if test '@USE_INCLUDED_LIBINTL@' = yes; then \ + test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \ + $(mkinstalldirs) $(DESTDIR)$(localedir); \ + else \ + : ; \ + fi + if test "$(PACKAGE)" = "gettext-tools"; then \ + $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ + else \ + : ; \ + fi + +# Define this as empty until I found a useful application. +installcheck: + +uninstall: + if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ + && test '@USE_INCLUDED_LIBINTL@' = yes; then \ + rm -f $(DESTDIR)$(includedir)/libintl.h; \ + $(LIBTOOL) --mode=uninstall \ + rm -f $(DESTDIR)$(libdir)/libintl.$la; \ + else \ + : ; \ + fi + if test "$(PACKAGE)" = "gettext-tools" \ + && test '@USE_INCLUDED_LIBINTL@' = no \ + && test @GLIBC2@ != no; then \ + rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \ + else \ + : ; \ + fi + if test '@USE_INCLUDED_LIBINTL@' = yes; then \ + if test -f $(DESTDIR)$(libdir)/charset.alias; then \ + temp=$(DESTDIR)$(libdir)/t-charset.alias; \ + dest=$(DESTDIR)$(libdir)/charset.alias; \ + sed -f ref-del.sed $$dest > $$temp; \ + if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ + rm -f $$dest; \ + else \ + $(INSTALL_DATA) $$temp $$dest; \ + fi; \ + rm -f $$temp; \ + fi; \ + if test -f $(DESTDIR)$(localedir)/locale.alias; then \ + temp=$(DESTDIR)$(localedir)/t-locale.alias; \ + dest=$(DESTDIR)$(localedir)/locale.alias; \ + sed -f ref-del.sed $$dest > $$temp; \ + if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ + rm -f $$dest; \ + else \ + $(INSTALL_DATA) $$temp $$dest; \ + fi; \ + rm -f $$temp; \ + fi; \ + else \ + : ; \ + fi + if test "$(PACKAGE)" = "gettext-tools"; then \ + for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \ + rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ + done; \ + else \ + : ; \ + fi + +info dvi ps pdf html: + +$(OBJECTS): ../config.h libgnuintl.h +bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h +dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h +explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h +dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h +dcigettext.$lo: $(srcdir)/eval-plural.h +localcharset.$lo: $(srcdir)/localcharset.h +localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h +printf.$lo: $(srcdir)/printf-args.h $(srcdir)/printf-args.c $(srcdir)/printf-parse.h $(srcdir)/wprintf-parse.h $(srcdir)/xsize.h $(srcdir)/printf-parse.c $(srcdir)/vasnprintf.h $(srcdir)/vasnwprintf.h $(srcdir)/vasnprintf.c + +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) + here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES) + +ctags: CTAGS + +CTAGS: $(HEADERS) $(SOURCES) + here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES) + +id: ID + +ID: $(HEADERS) $(SOURCES) + here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES) + + +mostlyclean: + rm -f *.a *.la *.o *.obj *.lo core core.* + rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed + rm -f -r .libs _libs + +clean: mostlyclean + +distclean: clean + rm -f Makefile ID TAGS + if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \ + rm -f ChangeLog.inst $(DISTFILES.normal); \ + else \ + : ; \ + fi + +maintainer-clean: distclean + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + + +# GNU gettext needs not contain the file `VERSION' but contains some +# other files which should not be distributed in other packages. +distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) +dist distdir: Makefile + if test "$(PACKAGE)" = "gettext-tools"; then \ + : ; \ + else \ + if test "$(PACKAGE)" = "gettext-runtime"; then \ + additional="$(DISTFILES.gettext)"; \ + else \ + additional="$(DISTFILES.normal)"; \ + fi; \ + $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \ + for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \ + if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ + cp -p $$dir/$$file $(distdir) || test $$file = Makefile.in || exit 1; \ + done; \ + fi + +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status +# This would be more efficient, but doesn't work any more with autoconf-2.57, +# when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used. +# cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status + +# Tell versions [3.59,3.63) of GNU make not to export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/intl/VERSION b/intl/VERSION new file mode 100644 index 0000000..ea89761 --- /dev/null +++ b/intl/VERSION @@ -0,0 +1 @@ +GNU gettext library from gettext-0.14.5 diff --git a/intl/bindtextdom.c b/intl/bindtextdom.c new file mode 100644 index 0000000..7a26062 --- /dev/null +++ b/intl/bindtextdom.c @@ -0,0 +1,363 @@ +/* Implementation of the bindtextdomain(3) function + Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include +#include + +#ifdef _LIBC +# include +#else +# include "libgnuintl.h" +#endif +#include "gettextP.h" + +#ifdef _LIBC +/* We have to handle multi-threaded applications. */ +# include +#else +/* Provide dummy implementation if this is outside glibc. */ +# define __libc_rwlock_define(CLASS, NAME) +# define __libc_rwlock_wrlock(NAME) +# define __libc_rwlock_unlock(NAME) +#endif + +/* The internal variables in the standalone libintl.a must have different + names than the internal variables in GNU libc, otherwise programs + using libintl.a cannot be linked statically. */ +#if !defined _LIBC +# define _nl_default_dirname libintl_nl_default_dirname +# define _nl_domain_bindings libintl_nl_domain_bindings +#endif + +/* Some compilers, like SunOS4 cc, don't have offsetof in . */ +#ifndef offsetof +# define offsetof(type,ident) ((size_t)&(((type*)0)->ident)) +#endif + +/* @@ end of prolog @@ */ + +/* Contains the default location of the message catalogs. */ +extern const char _nl_default_dirname[]; +#ifdef _LIBC +extern const char _nl_default_dirname_internal[] attribute_hidden; +#else +# define INTUSE(name) name +#endif + +/* List with bindings of specific domains. */ +extern struct binding *_nl_domain_bindings; + +/* Lock variable to protect the global data in the gettext implementation. */ +__libc_rwlock_define (extern, _nl_state_lock attribute_hidden) + + +/* Names for the libintl functions are a problem. They must not clash + with existing names and they should follow ANSI C. But this source + code is also used in GNU C Library where the names have a __ + prefix. So we have to make a difference here. */ +#ifdef _LIBC +# define BINDTEXTDOMAIN __bindtextdomain +# define BIND_TEXTDOMAIN_CODESET __bind_textdomain_codeset +# ifndef strdup +# define strdup(str) __strdup (str) +# endif +#else +# define BINDTEXTDOMAIN libintl_bindtextdomain +# define BIND_TEXTDOMAIN_CODESET libintl_bind_textdomain_codeset +#endif + +/* Specifies the directory name *DIRNAMEP and the output codeset *CODESETP + to be used for the DOMAINNAME message catalog. + If *DIRNAMEP or *CODESETP is NULL, the corresponding attribute is not + modified, only the current value is returned. + If DIRNAMEP or CODESETP is NULL, the corresponding attribute is neither + modified nor returned. */ +static void +set_binding_values (const char *domainname, + const char **dirnamep, const char **codesetp) +{ + struct binding *binding; + int modified; + + /* Some sanity checks. */ + if (domainname == NULL || domainname[0] == '\0') + { + if (dirnamep) + *dirnamep = NULL; + if (codesetp) + *codesetp = NULL; + return; + } + + __libc_rwlock_wrlock (_nl_state_lock); + + modified = 0; + + for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) + { + int compare = strcmp (domainname, binding->domainname); + if (compare == 0) + /* We found it! */ + break; + if (compare < 0) + { + /* It is not in the list. */ + binding = NULL; + break; + } + } + + if (binding != NULL) + { + if (dirnamep) + { + const char *dirname = *dirnamep; + + if (dirname == NULL) + /* The current binding has be to returned. */ + *dirnamep = binding->dirname; + else + { + /* The domain is already bound. If the new value and the old + one are equal we simply do nothing. Otherwise replace the + old binding. */ + char *result = binding->dirname; + if (strcmp (dirname, result) != 0) + { + if (strcmp (dirname, INTUSE(_nl_default_dirname)) == 0) + result = (char *) INTUSE(_nl_default_dirname); + else + { +#if defined _LIBC || defined HAVE_STRDUP + result = strdup (dirname); +#else + size_t len = strlen (dirname) + 1; + result = (char *) malloc (len); + if (__builtin_expect (result != NULL, 1)) + memcpy (result, dirname, len); +#endif + } + + if (__builtin_expect (result != NULL, 1)) + { + if (binding->dirname != INTUSE(_nl_default_dirname)) + free (binding->dirname); + + binding->dirname = result; + modified = 1; + } + } + *dirnamep = result; + } + } + + if (codesetp) + { + const char *codeset = *codesetp; + + if (codeset == NULL) + /* The current binding has be to returned. */ + *codesetp = binding->codeset; + else + { + /* The domain is already bound. If the new value and the old + one are equal we simply do nothing. Otherwise replace the + old binding. */ + char *result = binding->codeset; + if (result == NULL || strcmp (codeset, result) != 0) + { +#if defined _LIBC || defined HAVE_STRDUP + result = strdup (codeset); +#else + size_t len = strlen (codeset) + 1; + result = (char *) malloc (len); + if (__builtin_expect (result != NULL, 1)) + memcpy (result, codeset, len); +#endif + + if (__builtin_expect (result != NULL, 1)) + { + if (binding->codeset != NULL) + free (binding->codeset); + + binding->codeset = result; + binding->codeset_cntr++; + modified = 1; + } + } + *codesetp = result; + } + } + } + else if ((dirnamep == NULL || *dirnamep == NULL) + && (codesetp == NULL || *codesetp == NULL)) + { + /* Simply return the default values. */ + if (dirnamep) + *dirnamep = INTUSE(_nl_default_dirname); + if (codesetp) + *codesetp = NULL; + } + else + { + /* We have to create a new binding. */ + size_t len = strlen (domainname) + 1; + struct binding *new_binding = + (struct binding *) malloc (offsetof (struct binding, domainname) + len); + + if (__builtin_expect (new_binding == NULL, 0)) + goto failed; + + memcpy (new_binding->domainname, domainname, len); + + if (dirnamep) + { + const char *dirname = *dirnamep; + + if (dirname == NULL) + /* The default value. */ + dirname = INTUSE(_nl_default_dirname); + else + { + if (strcmp (dirname, INTUSE(_nl_default_dirname)) == 0) + dirname = INTUSE(_nl_default_dirname); + else + { + char *result; +#if defined _LIBC || defined HAVE_STRDUP + result = strdup (dirname); + if (__builtin_expect (result == NULL, 0)) + goto failed_dirname; +#else + size_t len = strlen (dirname) + 1; + result = (char *) malloc (len); + if (__builtin_expect (result == NULL, 0)) + goto failed_dirname; + memcpy (result, dirname, len); +#endif + dirname = result; + } + } + *dirnamep = dirname; + new_binding->dirname = (char *) dirname; + } + else + /* The default value. */ + new_binding->dirname = (char *) INTUSE(_nl_default_dirname); + + new_binding->codeset_cntr = 0; + + if (codesetp) + { + const char *codeset = *codesetp; + + if (codeset != NULL) + { + char *result; + +#if defined _LIBC || defined HAVE_STRDUP + result = strdup (codeset); + if (__builtin_expect (result == NULL, 0)) + goto failed_codeset; +#else + size_t len = strlen (codeset) + 1; + result = (char *) malloc (len); + if (__builtin_expect (result == NULL, 0)) + goto failed_codeset; + memcpy (result, codeset, len); +#endif + codeset = result; + new_binding->codeset_cntr++; + } + *codesetp = codeset; + new_binding->codeset = (char *) codeset; + } + else + new_binding->codeset = NULL; + + /* Now enqueue it. */ + if (_nl_domain_bindings == NULL + || strcmp (domainname, _nl_domain_bindings->domainname) < 0) + { + new_binding->next = _nl_domain_bindings; + _nl_domain_bindings = new_binding; + } + else + { + binding = _nl_domain_bindings; + while (binding->next != NULL + && strcmp (domainname, binding->next->domainname) > 0) + binding = binding->next; + + new_binding->next = binding->next; + binding->next = new_binding; + } + + modified = 1; + + /* Here we deal with memory allocation failures. */ + if (0) + { + failed_codeset: + if (new_binding->dirname != INTUSE(_nl_default_dirname)) + free (new_binding->dirname); + failed_dirname: + free (new_binding); + failed: + if (dirnamep) + *dirnamep = NULL; + if (codesetp) + *codesetp = NULL; + } + } + + /* If we modified any binding, we flush the caches. */ + if (modified) + ++_nl_msg_cat_cntr; + + __libc_rwlock_unlock (_nl_state_lock); +} + +/* Specify that the DOMAINNAME message catalog will be found + in DIRNAME rather than in the system locale data base. */ +char * +BINDTEXTDOMAIN (const char *domainname, const char *dirname) +{ + set_binding_values (domainname, &dirname, NULL); + return (char *) dirname; +} + +/* Specify the character encoding in which the messages from the + DOMAINNAME message catalog will be returned. */ +char * +BIND_TEXTDOMAIN_CODESET (const char *domainname, const char *codeset) +{ + set_binding_values (domainname, NULL, &codeset); + return (char *) codeset; +} + +#ifdef _LIBC +/* Aliases for function names in GNU C Library. */ +weak_alias (__bindtextdomain, bindtextdomain); +weak_alias (__bind_textdomain_codeset, bind_textdomain_codeset); +#endif diff --git a/intl/config.charset b/intl/config.charset new file mode 100755 index 0000000..9090c80 --- /dev/null +++ b/intl/config.charset @@ -0,0 +1,638 @@ +#! /bin/sh +# Output a system dependent table of character encoding aliases. +# +# Copyright (C) 2000-2004 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU Library General Public License as published +# by the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. +# +# The table consists of lines of the form +# ALIAS CANONICAL +# +# ALIAS is the (system dependent) result of "nl_langinfo (CODESET)". +# ALIAS is compared in a case sensitive way. +# +# CANONICAL is the GNU canonical name for this character encoding. +# It must be an encoding supported by libiconv. Support by GNU libc is +# also desirable. CANONICAL is case insensitive. Usually an upper case +# MIME charset name is preferred. +# The current list of GNU canonical charset names is as follows. +# +# name MIME? used by which systems +# ASCII, ANSI_X3.4-1968 glibc solaris freebsd darwin +# ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd darwin +# ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd darwin +# ISO-8859-3 Y glibc solaris +# ISO-8859-4 Y osf solaris freebsd darwin +# ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd darwin +# ISO-8859-6 Y glibc aix hpux solaris +# ISO-8859-7 Y glibc aix hpux irix osf solaris darwin +# ISO-8859-8 Y glibc aix hpux osf solaris +# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin +# ISO-8859-13 glibc darwin +# ISO-8859-14 glibc +# ISO-8859-15 glibc aix osf solaris freebsd darwin +# KOI8-R Y glibc solaris freebsd darwin +# KOI8-U Y glibc freebsd darwin +# KOI8-T glibc +# CP437 dos +# CP775 dos +# CP850 aix osf dos +# CP852 dos +# CP855 dos +# CP856 aix +# CP857 dos +# CP861 dos +# CP862 dos +# CP864 dos +# CP865 dos +# CP866 freebsd darwin dos +# CP869 dos +# CP874 woe32 dos +# CP922 aix +# CP932 aix woe32 dos +# CP943 aix +# CP949 osf woe32 dos +# CP950 woe32 dos +# CP1046 aix +# CP1124 aix +# CP1125 dos +# CP1129 aix +# CP1250 woe32 +# CP1251 glibc solaris darwin woe32 +# CP1252 aix woe32 +# CP1253 woe32 +# CP1254 woe32 +# CP1255 glibc woe32 +# CP1256 woe32 +# CP1257 woe32 +# GB2312 Y glibc aix hpux irix solaris freebsd darwin +# EUC-JP Y glibc aix hpux irix osf solaris freebsd darwin +# EUC-KR Y glibc aix hpux irix osf solaris freebsd darwin +# EUC-TW glibc aix hpux irix osf solaris +# BIG5 Y glibc aix hpux osf solaris freebsd darwin +# BIG5-HKSCS glibc solaris +# GBK glibc aix osf solaris woe32 dos +# GB18030 glibc solaris +# SHIFT_JIS Y hpux osf solaris freebsd darwin +# JOHAB glibc solaris woe32 +# TIS-620 glibc aix hpux osf solaris +# VISCII Y glibc +# TCVN5712-1 glibc +# GEORGIAN-PS glibc +# HP-ROMAN8 hpux +# HP-ARABIC8 hpux +# HP-GREEK8 hpux +# HP-HEBREW8 hpux +# HP-TURKISH8 hpux +# HP-KANA8 hpux +# DEC-KANJI osf +# DEC-HANYU osf +# UTF-8 Y glibc aix hpux osf solaris darwin +# +# Note: Names which are not marked as being a MIME name should not be used in +# Internet protocols for information interchange (mail, news, etc.). +# +# Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications +# must understand both names and treat them as equivalent. +# +# The first argument passed to this file is the canonical host specification, +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM + +host="$1" +os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'` +echo "# This file contains a table of character encoding aliases," +echo "# suitable for operating system '${os}'." +echo "# It was automatically generated from config.charset." +# List of references, updated during installation: +echo "# Packages using this file: " +case "$os" in + linux-gnulibc1*) + # Linux libc5 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "C ASCII" + echo "POSIX ASCII" + for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ + en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ + en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ + es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ + et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ + fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ + it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ + sv_FI sv_SE; do + echo "$l ISO-8859-1" + echo "$l.iso-8859-1 ISO-8859-1" + echo "$l.iso-8859-15 ISO-8859-15" + echo "$l.iso-8859-15@euro ISO-8859-15" + echo "$l@euro ISO-8859-15" + echo "$l.cp-437 CP437" + echo "$l.cp-850 CP850" + echo "$l.cp-1252 CP1252" + echo "$l.cp-1252@euro CP1252" + #echo "$l.atari-st ATARI-ST" # not a commonly used encoding + echo "$l.utf-8 UTF-8" + echo "$l.utf-8@euro UTF-8" + done + for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ + sl_SI sr sr_CS sr_YU; do + echo "$l ISO-8859-2" + echo "$l.iso-8859-2 ISO-8859-2" + echo "$l.cp-852 CP852" + echo "$l.cp-1250 CP1250" + echo "$l.utf-8 UTF-8" + done + for l in mk mk_MK ru ru_RU; do + echo "$l ISO-8859-5" + echo "$l.iso-8859-5 ISO-8859-5" + echo "$l.koi8-r KOI8-R" + echo "$l.cp-866 CP866" + echo "$l.cp-1251 CP1251" + echo "$l.utf-8 UTF-8" + done + for l in ar ar_SA; do + echo "$l ISO-8859-6" + echo "$l.iso-8859-6 ISO-8859-6" + echo "$l.cp-864 CP864" + #echo "$l.cp-868 CP868" # not a commonly used encoding + echo "$l.cp-1256 CP1256" + echo "$l.utf-8 UTF-8" + done + for l in el el_GR gr gr_GR; do + echo "$l ISO-8859-7" + echo "$l.iso-8859-7 ISO-8859-7" + echo "$l.cp-869 CP869" + echo "$l.cp-1253 CP1253" + echo "$l.cp-1253@euro CP1253" + echo "$l.utf-8 UTF-8" + echo "$l.utf-8@euro UTF-8" + done + for l in he he_IL iw iw_IL; do + echo "$l ISO-8859-8" + echo "$l.iso-8859-8 ISO-8859-8" + echo "$l.cp-862 CP862" + echo "$l.cp-1255 CP1255" + echo "$l.utf-8 UTF-8" + done + for l in tr tr_TR; do + echo "$l ISO-8859-9" + echo "$l.iso-8859-9 ISO-8859-9" + echo "$l.cp-857 CP857" + echo "$l.cp-1254 CP1254" + echo "$l.utf-8 UTF-8" + done + for l in lt lt_LT lv lv_LV; do + #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name + echo "$l ISO-8859-13" + done + for l in ru_UA uk uk_UA; do + echo "$l KOI8-U" + done + for l in zh zh_CN; do + #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name + echo "$l GB2312" + done + for l in ja ja_JP ja_JP.EUC; do + echo "$l EUC-JP" + done + for l in ko ko_KR; do + echo "$l EUC-KR" + done + for l in th th_TH; do + echo "$l TIS-620" + done + for l in fa fa_IR; do + #echo "$l ISIRI-3342" # a broken encoding + echo "$l.utf-8 UTF-8" + done + ;; + linux* | *-gnu*) + # With glibc-2.1 or newer, we don't need any canonicalization, + # because glibc has iconv and both glibc and libiconv support all + # GNU canonical names directly. Therefore, the Makefile does not + # need to install the alias file at all. + # The following applies only to glibc-2.0.x and older libcs. + echo "ISO_646.IRV:1983 ASCII" + ;; + aix*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-6 ISO-8859-6" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "IBM-850 CP850" + echo "IBM-856 CP856" + echo "IBM-921 ISO-8859-13" + echo "IBM-922 CP922" + echo "IBM-932 CP932" + echo "IBM-943 CP943" + echo "IBM-1046 CP1046" + echo "IBM-1124 CP1124" + echo "IBM-1129 CP1129" + echo "IBM-1252 CP1252" + echo "IBM-eucCN GB2312" + echo "IBM-eucJP EUC-JP" + echo "IBM-eucKR EUC-KR" + echo "IBM-eucTW EUC-TW" + echo "big5 BIG5" + echo "GBK GBK" + echo "TIS-620 TIS-620" + echo "UTF-8 UTF-8" + ;; + hpux*) + echo "iso88591 ISO-8859-1" + echo "iso88592 ISO-8859-2" + echo "iso88595 ISO-8859-5" + echo "iso88596 ISO-8859-6" + echo "iso88597 ISO-8859-7" + echo "iso88598 ISO-8859-8" + echo "iso88599 ISO-8859-9" + echo "iso885915 ISO-8859-15" + echo "roman8 HP-ROMAN8" + echo "arabic8 HP-ARABIC8" + echo "greek8 HP-GREEK8" + echo "hebrew8 HP-HEBREW8" + echo "turkish8 HP-TURKISH8" + echo "kana8 HP-KANA8" + echo "tis620 TIS-620" + echo "big5 BIG5" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "hp15CN GB2312" + #echo "ccdc ?" # what is this? + echo "SJIS SHIFT_JIS" + echo "utf8 UTF-8" + ;; + irix*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-9 ISO-8859-9" + echo "eucCN GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + ;; + osf*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "cp850 CP850" + echo "big5 BIG5" + echo "dechanyu DEC-HANYU" + echo "dechanzi GB2312" + echo "deckanji DEC-KANJI" + echo "deckorean EUC-KR" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "GBK GBK" + echo "KSC5601 CP949" + echo "sdeckanji EUC-JP" + echo "SJIS SHIFT_JIS" + echo "TACTIS TIS-620" + echo "UTF-8 UTF-8" + ;; + solaris*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-3 ISO-8859-3" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-6 ISO-8859-6" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "koi8-r KOI8-R" + echo "ansi-1251 CP1251" + echo "BIG5 BIG5" + echo "Big5-HKSCS BIG5-HKSCS" + echo "gb2312 GB2312" + echo "GBK GBK" + echo "GB18030 GB18030" + echo "cns11643 EUC-TW" + echo "5601 EUC-KR" + echo "ko_KR.johap92 JOHAB" + echo "eucJP EUC-JP" + echo "PCK SHIFT_JIS" + echo "TIS620.2533 TIS-620" + #echo "sun_eu_greek ?" # what is this? + echo "UTF-8 UTF-8" + ;; + freebsd* | os2*) + # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just + # reuse FreeBSD's locale data for OS/2. + echo "C ASCII" + echo "US-ASCII ASCII" + for l in la_LN lt_LN; do + echo "$l.ASCII ASCII" + done + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ + lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do + echo "$l.ISO_8859-1 ISO-8859-1" + echo "$l.DIS_8859-15 ISO-8859-15" + done + for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do + echo "$l.ISO_8859-2 ISO-8859-2" + done + for l in la_LN lt_LT; do + echo "$l.ISO_8859-4 ISO-8859-4" + done + for l in ru_RU ru_SU; do + echo "$l.KOI8-R KOI8-R" + echo "$l.ISO_8859-5 ISO-8859-5" + echo "$l.CP866 CP866" + done + echo "uk_UA.KOI8-U KOI8-U" + echo "zh_TW.BIG5 BIG5" + echo "zh_TW.Big5 BIG5" + echo "zh_CN.EUC GB2312" + echo "ja_JP.EUC EUC-JP" + echo "ja_JP.SJIS SHIFT_JIS" + echo "ja_JP.Shift_JIS SHIFT_JIS" + echo "ko_KR.EUC EUC-KR" + ;; + netbsd*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-15 ISO-8859-15" + echo "eucCN GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "BIG5 BIG5" + echo "SJIS SHIFT_JIS" + ;; + darwin[56]*) + # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "C ASCII" + for l in en_AU en_CA en_GB en_US la_LN; do + echo "$l.US-ASCII ASCII" + done + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ + nl_NL no_NO pt_PT sv_SE; do + echo "$l ISO-8859-1" + echo "$l.ISO8859-1 ISO-8859-1" + echo "$l.ISO8859-15 ISO-8859-15" + done + for l in la_LN; do + echo "$l.ISO8859-1 ISO-8859-1" + echo "$l.ISO8859-15 ISO-8859-15" + done + for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do + echo "$l.ISO8859-2 ISO-8859-2" + done + for l in la_LN lt_LT; do + echo "$l.ISO8859-4 ISO-8859-4" + done + for l in ru_RU; do + echo "$l.KOI8-R KOI8-R" + echo "$l.ISO8859-5 ISO-8859-5" + echo "$l.CP866 CP866" + done + for l in bg_BG; do + echo "$l.CP1251 CP1251" + done + echo "uk_UA.KOI8-U KOI8-U" + echo "zh_TW.BIG5 BIG5" + echo "zh_TW.Big5 BIG5" + echo "zh_CN.EUC GB2312" + echo "ja_JP.EUC EUC-JP" + echo "ja_JP.SJIS SHIFT_JIS" + echo "ko_KR.EUC EUC-KR" + ;; + darwin*) + # Darwin 7.5 has nl_langinfo(CODESET), but it is useless: + # - It returns the empty string when LANG is set to a locale of the + # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 + # LC_CTYPE file. + # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by + # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. + # - The documentation says: + # "... all code that calls BSD system routines should ensure + # that the const *char parameters of these routines are in UTF-8 + # encoding. All BSD system functions expect their string + # parameters to be in UTF-8 encoding and nothing else." + # It also says + # "An additional caveat is that string parameters for files, + # paths, and other file-system entities must be in canonical + # UTF-8. In a canonical UTF-8 Unicode string, all decomposable + # characters are decomposed ..." + # but this is not true: You can pass non-decomposed UTF-8 strings + # to file system functions, and it is the OS which will convert + # them to decomposed UTF-8 before accessing the file system. + # - The Apple Terminal application displays UTF-8 by default. + # - However, other applications are free to use different encodings: + # - xterm uses ISO-8859-1 by default. + # - TextEdit uses MacRoman by default. + # We prefer UTF-8 over decomposed UTF-8-MAC because one should + # minimize the use of decomposed Unicode. Unfortunately, through the + # Darwin file system, decomposed UTF-8 strings are leaked into user + # space nevertheless. + echo "* UTF-8" + ;; + beos*) + # BeOS has a single locale, and it has UTF-8 encoding. + echo "* UTF-8" + ;; + msdosdjgpp*) + # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "#" + echo "# The encodings given here may not all be correct." + echo "# If you find that the encoding given for your language and" + echo "# country is not the one your DOS machine actually uses, just" + echo "# correct it in this file, and send a mail to" + echo "# Juan Manuel Guerrero " + echo "# and Bruno Haible ." + echo "#" + echo "C ASCII" + # ISO-8859-1 languages + echo "ca CP850" + echo "ca_ES CP850" + echo "da CP865" # not CP850 ?? + echo "da_DK CP865" # not CP850 ?? + echo "de CP850" + echo "de_AT CP850" + echo "de_CH CP850" + echo "de_DE CP850" + echo "en CP850" + echo "en_AU CP850" # not CP437 ?? + echo "en_CA CP850" + echo "en_GB CP850" + echo "en_NZ CP437" + echo "en_US CP437" + echo "en_ZA CP850" # not CP437 ?? + echo "es CP850" + echo "es_AR CP850" + echo "es_BO CP850" + echo "es_CL CP850" + echo "es_CO CP850" + echo "es_CR CP850" + echo "es_CU CP850" + echo "es_DO CP850" + echo "es_EC CP850" + echo "es_ES CP850" + echo "es_GT CP850" + echo "es_HN CP850" + echo "es_MX CP850" + echo "es_NI CP850" + echo "es_PA CP850" + echo "es_PY CP850" + echo "es_PE CP850" + echo "es_SV CP850" + echo "es_UY CP850" + echo "es_VE CP850" + echo "et CP850" + echo "et_EE CP850" + echo "eu CP850" + echo "eu_ES CP850" + echo "fi CP850" + echo "fi_FI CP850" + echo "fr CP850" + echo "fr_BE CP850" + echo "fr_CA CP850" + echo "fr_CH CP850" + echo "fr_FR CP850" + echo "ga CP850" + echo "ga_IE CP850" + echo "gd CP850" + echo "gd_GB CP850" + echo "gl CP850" + echo "gl_ES CP850" + echo "id CP850" # not CP437 ?? + echo "id_ID CP850" # not CP437 ?? + echo "is CP861" # not CP850 ?? + echo "is_IS CP861" # not CP850 ?? + echo "it CP850" + echo "it_CH CP850" + echo "it_IT CP850" + echo "lt CP775" + echo "lt_LT CP775" + echo "lv CP775" + echo "lv_LV CP775" + echo "nb CP865" # not CP850 ?? + echo "nb_NO CP865" # not CP850 ?? + echo "nl CP850" + echo "nl_BE CP850" + echo "nl_NL CP850" + echo "nn CP865" # not CP850 ?? + echo "nn_NO CP865" # not CP850 ?? + echo "no CP865" # not CP850 ?? + echo "no_NO CP865" # not CP850 ?? + echo "pt CP850" + echo "pt_BR CP850" + echo "pt_PT CP850" + echo "sv CP850" + echo "sv_SE CP850" + # ISO-8859-2 languages + echo "cs CP852" + echo "cs_CZ CP852" + echo "hr CP852" + echo "hr_HR CP852" + echo "hu CP852" + echo "hu_HU CP852" + echo "pl CP852" + echo "pl_PL CP852" + echo "ro CP852" + echo "ro_RO CP852" + echo "sk CP852" + echo "sk_SK CP852" + echo "sl CP852" + echo "sl_SI CP852" + echo "sq CP852" + echo "sq_AL CP852" + echo "sr CP852" # CP852 or CP866 or CP855 ?? + echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? + echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? + # ISO-8859-3 languages + echo "mt CP850" + echo "mt_MT CP850" + # ISO-8859-5 languages + echo "be CP866" + echo "be_BE CP866" + echo "bg CP866" # not CP855 ?? + echo "bg_BG CP866" # not CP855 ?? + echo "mk CP866" # not CP855 ?? + echo "mk_MK CP866" # not CP855 ?? + echo "ru CP866" + echo "ru_RU CP866" + echo "uk CP1125" + echo "uk_UA CP1125" + # ISO-8859-6 languages + echo "ar CP864" + echo "ar_AE CP864" + echo "ar_DZ CP864" + echo "ar_EG CP864" + echo "ar_IQ CP864" + echo "ar_IR CP864" + echo "ar_JO CP864" + echo "ar_KW CP864" + echo "ar_MA CP864" + echo "ar_OM CP864" + echo "ar_QA CP864" + echo "ar_SA CP864" + echo "ar_SY CP864" + # ISO-8859-7 languages + echo "el CP869" + echo "el_GR CP869" + # ISO-8859-8 languages + echo "he CP862" + echo "he_IL CP862" + # ISO-8859-9 languages + echo "tr CP857" + echo "tr_TR CP857" + # Japanese + echo "ja CP932" + echo "ja_JP CP932" + # Chinese + echo "zh_CN GBK" + echo "zh_TW CP950" # not CP938 ?? + # Korean + echo "kr CP949" # not CP934 ?? + echo "kr_KR CP949" # not CP934 ?? + # Thai + echo "th CP874" + echo "th_TH CP874" + # Other + echo "eo CP850" + echo "eo_EO CP850" + ;; +esac diff --git a/intl/dcgettext.c b/intl/dcgettext.c new file mode 100644 index 0000000..c2a63f0 --- /dev/null +++ b/intl/dcgettext.c @@ -0,0 +1,56 @@ +/* Implementation of the dcgettext(3) function. + Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include "gettextP.h" +#ifdef _LIBC +# include +#else +# include "libgnuintl.h" +#endif + +/* @@ end of prolog @@ */ + +/* Names for the libintl functions are a problem. They must not clash + with existing names and they should follow ANSI C. But this source + code is also used in GNU C Library where the names have a __ + prefix. So we have to make a difference here. */ +#ifdef _LIBC +# define DCGETTEXT __dcgettext +# define DCIGETTEXT __dcigettext +#else +# define DCGETTEXT libintl_dcgettext +# define DCIGETTEXT libintl_dcigettext +#endif + +/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY + locale. */ +char * +DCGETTEXT (const char *domainname, const char *msgid, int category) +{ + return DCIGETTEXT (domainname, msgid, NULL, 0, 0, category); +} + +#ifdef _LIBC +/* Alias for function name in GNU C Library. */ +INTDEF(__dcgettext) +weak_alias (__dcgettext, dcgettext); +#endif diff --git a/intl/dcigettext.c b/intl/dcigettext.c new file mode 100644 index 0000000..c7f4506 --- /dev/null +++ b/intl/dcigettext.c @@ -0,0 +1,1258 @@ +/* Implementation of the internal dcigettext function. + Copyright (C) 1995-1999, 2000-2005 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* Tell glibc's to provide a prototype for mempcpy(). + This must come before because may include + , and once has been included, it's too late. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include + +#ifdef __GNUC__ +# define alloca __builtin_alloca +# define HAVE_ALLOCA 1 +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# if defined HAVE_ALLOCA_H || defined _LIBC +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca +char *alloca (); +# endif +# endif +# endif +# endif +#endif + +#include +#ifndef errno +extern int errno; +#endif +#ifndef __set_errno +# define __set_errno(val) errno = (val) +#endif + +#include +#include +#include + +#if defined HAVE_UNISTD_H || defined _LIBC +# include +#endif + +#include + +#ifdef _LIBC + /* Guess whether integer division by zero raises signal SIGFPE. + Set to 1 only if you know for sure. In case of doubt, set to 0. */ +# if defined __alpha__ || defined __arm__ || defined __i386__ \ + || defined __m68k__ || defined __s390__ +# define INTDIV0_RAISES_SIGFPE 1 +# else +# define INTDIV0_RAISES_SIGFPE 0 +# endif +#endif +#if !INTDIV0_RAISES_SIGFPE +# include +#endif + +#if defined HAVE_SYS_PARAM_H || defined _LIBC +# include +#endif + +#include "gettextP.h" +#include "plural-exp.h" +#ifdef _LIBC +# include +#else +# include "libgnuintl.h" +#endif +#include "hash-string.h" + +/* Thread safetyness. */ +#ifdef _LIBC +# include +#else +/* Provide dummy implementation if this is outside glibc. */ +# define __libc_lock_define_initialized(CLASS, NAME) +# define __libc_lock_lock(NAME) +# define __libc_lock_unlock(NAME) +# define __libc_rwlock_define_initialized(CLASS, NAME) +# define __libc_rwlock_rdlock(NAME) +# define __libc_rwlock_unlock(NAME) +#endif + +/* Alignment of types. */ +#if defined __GNUC__ && __GNUC__ >= 2 +# define alignof(TYPE) __alignof__ (TYPE) +#else +# define alignof(TYPE) \ + ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2) +#endif + +/* The internal variables in the standalone libintl.a must have different + names than the internal variables in GNU libc, otherwise programs + using libintl.a cannot be linked statically. */ +#if !defined _LIBC +# define _nl_default_default_domain libintl_nl_default_default_domain +# define _nl_current_default_domain libintl_nl_current_default_domain +# define _nl_default_dirname libintl_nl_default_dirname +# define _nl_domain_bindings libintl_nl_domain_bindings +#endif + +/* Some compilers, like SunOS4 cc, don't have offsetof in . */ +#ifndef offsetof +# define offsetof(type,ident) ((size_t)&(((type*)0)->ident)) +#endif + +/* @@ end of prolog @@ */ + +#ifdef _LIBC +/* Rename the non ANSI C functions. This is required by the standard + because some ANSI C functions will require linking with this object + file and the name space must not be polluted. */ +# define getcwd __getcwd +# ifndef stpcpy +# define stpcpy __stpcpy +# endif +# define tfind __tfind +#else +# if !defined HAVE_GETCWD +char *getwd (); +# define getcwd(buf, max) getwd (buf) +# else +# if VMS +# define getcwd(buf, max) (getcwd) (buf, max, 0) +# else +char *getcwd (); +# endif +# endif +# ifndef HAVE_STPCPY +static char *stpcpy (char *dest, const char *src); +# endif +# ifndef HAVE_MEMPCPY +static void *mempcpy (void *dest, const void *src, size_t n); +# endif +#endif + +/* Amount to increase buffer size by in each try. */ +#define PATH_INCR 32 + +/* The following is from pathmax.h. */ +/* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define + PATH_MAX but might cause redefinition warnings when sys/param.h is + later included (as on MORE/BSD 4.3). */ +#if defined _POSIX_VERSION || (defined HAVE_LIMITS_H && !defined __GNUC__) +# include +#endif + +#ifndef _POSIX_PATH_MAX +# define _POSIX_PATH_MAX 255 +#endif + +#if !defined PATH_MAX && defined _PC_PATH_MAX +# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX)) +#endif + +/* Don't include sys/param.h if it already has been. */ +#if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN +# include +#endif + +#if !defined PATH_MAX && defined MAXPATHLEN +# define PATH_MAX MAXPATHLEN +#endif + +#ifndef PATH_MAX +# define PATH_MAX _POSIX_PATH_MAX +#endif + +/* Pathname support. + ISSLASH(C) tests whether C is a directory separator character. + IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not, + it may be concatenated to a directory pathname. + IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. + */ +#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ + /* Win32, Cygwin, OS/2, DOS */ +# define ISSLASH(C) ((C) == '/' || (C) == '\\') +# define HAS_DEVICE(P) \ + ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ + && (P)[1] == ':') +# define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P)) +# define IS_PATH_WITH_DIR(P) \ + (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P)) +#else + /* Unix */ +# define ISSLASH(C) ((C) == '/') +# define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0]) +# define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL) +#endif + +/* This is the type used for the search tree where known translations + are stored. */ +struct known_translation_t +{ + /* Domain in which to search. */ + char *domainname; + + /* The category. */ + int category; + + /* State of the catalog counter at the point the string was found. */ + int counter; + + /* Catalog where the string was found. */ + struct loaded_l10nfile *domain; + + /* And finally the translation. */ + const char *translation; + size_t translation_length; + + /* Pointer to the string in question. */ + char msgid[ZERO]; +}; + +/* Root of the search tree with known translations. We can use this + only if the system provides the `tsearch' function family. */ +#if defined HAVE_TSEARCH || defined _LIBC +# include + +static void *root; + +# ifdef _LIBC +# define tsearch __tsearch +# endif + +/* Function to compare two entries in the table of known translations. */ +static int +transcmp (const void *p1, const void *p2) +{ + const struct known_translation_t *s1; + const struct known_translation_t *s2; + int result; + + s1 = (const struct known_translation_t *) p1; + s2 = (const struct known_translation_t *) p2; + + result = strcmp (s1->msgid, s2->msgid); + if (result == 0) + { + result = strcmp (s1->domainname, s2->domainname); + if (result == 0) + /* We compare the category last (though this is the cheapest + operation) since it is hopefully always the same (namely + LC_MESSAGES). */ + result = s1->category - s2->category; + } + + return result; +} +#endif + +#ifndef INTVARDEF +# define INTVARDEF(name) +#endif +#ifndef INTUSE +# define INTUSE(name) name +#endif + +/* Name of the default domain used for gettext(3) prior any call to + textdomain(3). The default value for this is "messages". */ +const char _nl_default_default_domain[] attribute_hidden = "messages"; + +/* Value used as the default domain for gettext(3). */ +const char *_nl_current_default_domain attribute_hidden + = _nl_default_default_domain; + +/* Contains the default location of the message catalogs. */ +#if defined __EMX__ +extern const char _nl_default_dirname[]; +#else +const char _nl_default_dirname[] = LOCALEDIR; +INTVARDEF (_nl_default_dirname) +#endif + +/* List with bindings of specific domains created by bindtextdomain() + calls. */ +struct binding *_nl_domain_bindings; + +/* Prototypes for local functions. */ +static char *plural_lookup (struct loaded_l10nfile *domain, + unsigned long int n, + const char *translation, size_t translation_len) + internal_function; +static const char *guess_category_value (int category, + const char *categoryname) + internal_function; +#ifdef _LIBC +# include "../locale/localeinfo.h" +# define category_to_name(category) _nl_category_names[category] +#else +static const char *category_to_name (int category) internal_function; +#endif + + +/* For those loosing systems which don't have `alloca' we have to add + some additional code emulating it. */ +#ifdef HAVE_ALLOCA +/* Nothing has to be done. */ +# define freea(p) /* nothing */ +# define ADD_BLOCK(list, address) /* nothing */ +# define FREE_BLOCKS(list) /* nothing */ +#else +struct block_list +{ + void *address; + struct block_list *next; +}; +# define ADD_BLOCK(list, addr) \ + do { \ + struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ + /* If we cannot get a free block we cannot add the new element to \ + the list. */ \ + if (newp != NULL) { \ + newp->address = (addr); \ + newp->next = (list); \ + (list) = newp; \ + } \ + } while (0) +# define FREE_BLOCKS(list) \ + do { \ + while (list != NULL) { \ + struct block_list *old = list; \ + list = list->next; \ + free (old->address); \ + free (old); \ + } \ + } while (0) +# undef alloca +# define alloca(size) (malloc (size)) +# define freea(p) free (p) +#endif /* have alloca */ + + +#ifdef _LIBC +/* List of blocks allocated for translations. */ +typedef struct transmem_list +{ + struct transmem_list *next; + char data[ZERO]; +} transmem_block_t; +static struct transmem_list *transmem_list; +#else +typedef unsigned char transmem_block_t; +#endif + + +/* Names for the libintl functions are a problem. They must not clash + with existing names and they should follow ANSI C. But this source + code is also used in GNU C Library where the names have a __ + prefix. So we have to make a difference here. */ +#ifdef _LIBC +# define DCIGETTEXT __dcigettext +#else +# define DCIGETTEXT libintl_dcigettext +#endif + +/* Lock variable to protect the global data in the gettext implementation. */ +#ifdef _LIBC +__libc_rwlock_define_initialized (, _nl_state_lock attribute_hidden) +#endif + +/* Checking whether the binaries runs SUID must be done and glibc provides + easier methods therefore we make a difference here. */ +#ifdef _LIBC +# define ENABLE_SECURE __libc_enable_secure +# define DETERMINE_SECURE +#else +# ifndef HAVE_GETUID +# define getuid() 0 +# endif +# ifndef HAVE_GETGID +# define getgid() 0 +# endif +# ifndef HAVE_GETEUID +# define geteuid() getuid() +# endif +# ifndef HAVE_GETEGID +# define getegid() getgid() +# endif +static int enable_secure; +# define ENABLE_SECURE (enable_secure == 1) +# define DETERMINE_SECURE \ + if (enable_secure == 0) \ + { \ + if (getuid () != geteuid () || getgid () != getegid ()) \ + enable_secure = 1; \ + else \ + enable_secure = -1; \ + } +#endif + +/* Get the function to evaluate the plural expression. */ +#include "eval-plural.h" + +/* Look up MSGID in the DOMAINNAME message catalog for the current + CATEGORY locale and, if PLURAL is nonzero, search over string + depending on the plural form determined by N. */ +char * +DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, + int plural, unsigned long int n, int category) +{ +#ifndef HAVE_ALLOCA + struct block_list *block_list = NULL; +#endif + struct loaded_l10nfile *domain; + struct binding *binding; + const char *categoryname; + const char *categoryvalue; + char *dirname, *xdomainname; + char *single_locale; + char *retval; + size_t retlen; + int saved_errno; +#if defined HAVE_TSEARCH || defined _LIBC + struct known_translation_t *search; + struct known_translation_t **foundp = NULL; + size_t msgid_len; +#endif + size_t domainname_len; + + /* If no real MSGID is given return NULL. */ + if (msgid1 == NULL) + return NULL; + +#ifdef _LIBC + if (category < 0 || category >= __LC_LAST || category == LC_ALL) + /* Bogus. */ + return (plural == 0 + ? (char *) msgid1 + /* Use the Germanic plural rule. */ + : n == 1 ? (char *) msgid1 : (char *) msgid2); +#endif + + __libc_rwlock_rdlock (_nl_state_lock); + + /* If DOMAINNAME is NULL, we are interested in the default domain. If + CATEGORY is not LC_MESSAGES this might not make much sense but the + definition left this undefined. */ + if (domainname == NULL) + domainname = _nl_current_default_domain; + + /* OS/2 specific: backward compatibility with older libintl versions */ +#ifdef LC_MESSAGES_COMPAT + if (category == LC_MESSAGES_COMPAT) + category = LC_MESSAGES; +#endif + +#if defined HAVE_TSEARCH || defined _LIBC + msgid_len = strlen (msgid1) + 1; + + /* Try to find the translation among those which we found at + some time. */ + search = (struct known_translation_t *) + alloca (offsetof (struct known_translation_t, msgid) + msgid_len); + memcpy (search->msgid, msgid1, msgid_len); + search->domainname = (char *) domainname; + search->category = category; + + foundp = (struct known_translation_t **) tfind (search, &root, transcmp); + freea (search); + if (foundp != NULL && (*foundp)->counter == _nl_msg_cat_cntr) + { + /* Now deal with plural. */ + if (plural) + retval = plural_lookup ((*foundp)->domain, n, (*foundp)->translation, + (*foundp)->translation_length); + else + retval = (char *) (*foundp)->translation; + + __libc_rwlock_unlock (_nl_state_lock); + return retval; + } +#endif + + /* Preserve the `errno' value. */ + saved_errno = errno; + + /* See whether this is a SUID binary or not. */ + DETERMINE_SECURE; + + /* First find matching binding. */ + for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) + { + int compare = strcmp (domainname, binding->domainname); + if (compare == 0) + /* We found it! */ + break; + if (compare < 0) + { + /* It is not in the list. */ + binding = NULL; + break; + } + } + + if (binding == NULL) + dirname = (char *) INTUSE(_nl_default_dirname); + else if (IS_ABSOLUTE_PATH (binding->dirname)) + dirname = binding->dirname; + else + { + /* We have a relative path. Make it absolute now. */ + size_t dirname_len = strlen (binding->dirname) + 1; + size_t path_max; + char *ret; + + path_max = (unsigned int) PATH_MAX; + path_max += 2; /* The getcwd docs say to do this. */ + + for (;;) + { + dirname = (char *) alloca (path_max + dirname_len); + ADD_BLOCK (block_list, dirname); + + __set_errno (0); + ret = getcwd (dirname, path_max); + if (ret != NULL || errno != ERANGE) + break; + + path_max += path_max / 2; + path_max += PATH_INCR; + } + + if (ret == NULL) + /* We cannot get the current working directory. Don't signal an + error but simply return the default string. */ + goto return_untranslated; + + stpcpy (stpcpy (strchr (dirname, '\0'), "/"), binding->dirname); + } + + /* Now determine the symbolic name of CATEGORY and its value. */ + categoryname = category_to_name (category); + categoryvalue = guess_category_value (category, categoryname); + + domainname_len = strlen (domainname); + xdomainname = (char *) alloca (strlen (categoryname) + + domainname_len + 5); + ADD_BLOCK (block_list, xdomainname); + + stpcpy (mempcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"), + domainname, domainname_len), + ".mo"); + + /* Creating working area. */ + single_locale = (char *) alloca (strlen (categoryvalue) + 1); + ADD_BLOCK (block_list, single_locale); + + + /* Search for the given string. This is a loop because we perhaps + got an ordered list of languages to consider for the translation. */ + while (1) + { + /* Make CATEGORYVALUE point to the next element of the list. */ + while (categoryvalue[0] != '\0' && categoryvalue[0] == ':') + ++categoryvalue; + if (categoryvalue[0] == '\0') + { + /* The whole contents of CATEGORYVALUE has been searched but + no valid entry has been found. We solve this situation + by implicitly appending a "C" entry, i.e. no translation + will take place. */ + single_locale[0] = 'C'; + single_locale[1] = '\0'; + } + else + { + char *cp = single_locale; + while (categoryvalue[0] != '\0' && categoryvalue[0] != ':') + *cp++ = *categoryvalue++; + *cp = '\0'; + + /* When this is a SUID binary we must not allow accessing files + outside the dedicated directories. */ + if (ENABLE_SECURE && IS_PATH_WITH_DIR (single_locale)) + /* Ingore this entry. */ + continue; + } + + /* If the current locale value is C (or POSIX) we don't load a + domain. Return the MSGID. */ + if (strcmp (single_locale, "C") == 0 + || strcmp (single_locale, "POSIX") == 0) + break; + + /* Find structure describing the message catalog matching the + DOMAINNAME and CATEGORY. */ + domain = _nl_find_domain (dirname, single_locale, xdomainname, binding); + + if (domain != NULL) + { + retval = _nl_find_msg (domain, binding, msgid1, &retlen); + + if (retval == NULL) + { + int cnt; + + for (cnt = 0; domain->successor[cnt] != NULL; ++cnt) + { + retval = _nl_find_msg (domain->successor[cnt], binding, + msgid1, &retlen); + + if (retval != NULL) + { + domain = domain->successor[cnt]; + break; + } + } + } + + if (retval != NULL) + { + /* Found the translation of MSGID1 in domain DOMAIN: + starting at RETVAL, RETLEN bytes. */ + FREE_BLOCKS (block_list); +#if defined HAVE_TSEARCH || defined _LIBC + if (foundp == NULL) + { + /* Create a new entry and add it to the search tree. */ + struct known_translation_t *newp; + + newp = (struct known_translation_t *) + malloc (offsetof (struct known_translation_t, msgid) + + msgid_len + domainname_len + 1); + if (newp != NULL) + { + newp->domainname = + mempcpy (newp->msgid, msgid1, msgid_len); + memcpy (newp->domainname, domainname, domainname_len + 1); + newp->category = category; + newp->counter = _nl_msg_cat_cntr; + newp->domain = domain; + newp->translation = retval; + newp->translation_length = retlen; + + /* Insert the entry in the search tree. */ + foundp = (struct known_translation_t **) + tsearch (newp, &root, transcmp); + if (foundp == NULL + || __builtin_expect (*foundp != newp, 0)) + /* The insert failed. */ + free (newp); + } + } + else + { + /* We can update the existing entry. */ + (*foundp)->counter = _nl_msg_cat_cntr; + (*foundp)->domain = domain; + (*foundp)->translation = retval; + (*foundp)->translation_length = retlen; + } +#endif + __set_errno (saved_errno); + + /* Now deal with plural. */ + if (plural) + retval = plural_lookup (domain, n, retval, retlen); + + __libc_rwlock_unlock (_nl_state_lock); + return retval; + } + } + } + + return_untranslated: + /* Return the untranslated MSGID. */ + FREE_BLOCKS (block_list); + __libc_rwlock_unlock (_nl_state_lock); +#ifndef _LIBC + if (!ENABLE_SECURE) + { + extern void _nl_log_untranslated (const char *logfilename, + const char *domainname, + const char *msgid1, const char *msgid2, + int plural); + const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED"); + + if (logfilename != NULL && logfilename[0] != '\0') + _nl_log_untranslated (logfilename, domainname, msgid1, msgid2, plural); + } +#endif + __set_errno (saved_errno); + return (plural == 0 + ? (char *) msgid1 + /* Use the Germanic plural rule. */ + : n == 1 ? (char *) msgid1 : (char *) msgid2); +} + + +char * +internal_function +_nl_find_msg (struct loaded_l10nfile *domain_file, + struct binding *domainbinding, const char *msgid, + size_t *lengthp) +{ + struct loaded_domain *domain; + nls_uint32 nstrings; + size_t act; + char *result; + size_t resultlen; + + if (domain_file->decided == 0) + _nl_load_domain (domain_file, domainbinding); + + if (domain_file->data == NULL) + return NULL; + + domain = (struct loaded_domain *) domain_file->data; + + nstrings = domain->nstrings; + + /* Locate the MSGID and its translation. */ + if (domain->hash_tab != NULL) + { + /* Use the hashing table. */ + nls_uint32 len = strlen (msgid); + nls_uint32 hash_val = hash_string (msgid); + nls_uint32 idx = hash_val % domain->hash_size; + nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2)); + + while (1) + { + nls_uint32 nstr = + W (domain->must_swap_hash_tab, domain->hash_tab[idx]); + + if (nstr == 0) + /* Hash table entry is empty. */ + return NULL; + + nstr--; + + /* Compare msgid with the original string at index nstr. + We compare the lengths with >=, not ==, because plural entries + are represented by strings with an embedded NUL. */ + if (nstr < nstrings + ? W (domain->must_swap, domain->orig_tab[nstr].length) >= len + && (strcmp (msgid, + domain->data + W (domain->must_swap, + domain->orig_tab[nstr].offset)) + == 0) + : domain->orig_sysdep_tab[nstr - nstrings].length > len + && (strcmp (msgid, + domain->orig_sysdep_tab[nstr - nstrings].pointer) + == 0)) + { + act = nstr; + goto found; + } + + if (idx >= domain->hash_size - incr) + idx -= domain->hash_size - incr; + else + idx += incr; + } + /* NOTREACHED */ + } + else + { + /* Try the default method: binary search in the sorted array of + messages. */ + size_t top, bottom; + + bottom = 0; + top = nstrings; + while (bottom < top) + { + int cmp_val; + + act = (bottom + top) / 2; + cmp_val = strcmp (msgid, (domain->data + + W (domain->must_swap, + domain->orig_tab[act].offset))); + if (cmp_val < 0) + top = act; + else if (cmp_val > 0) + bottom = act + 1; + else + goto found; + } + /* No translation was found. */ + return NULL; + } + + found: + /* The translation was found at index ACT. If we have to convert the + string to use a different character set, this is the time. */ + if (act < nstrings) + { + result = (char *) + (domain->data + W (domain->must_swap, domain->trans_tab[act].offset)); + resultlen = W (domain->must_swap, domain->trans_tab[act].length) + 1; + } + else + { + result = (char *) domain->trans_sysdep_tab[act - nstrings].pointer; + resultlen = domain->trans_sysdep_tab[act - nstrings].length; + } + +#if defined _LIBC || HAVE_ICONV + if (domain->codeset_cntr + != (domainbinding != NULL ? domainbinding->codeset_cntr : 0)) + { + /* The domain's codeset has changed through bind_textdomain_codeset() + since the message catalog was initialized or last accessed. We + have to reinitialize the converter. */ + _nl_free_domain_conv (domain); + _nl_init_domain_conv (domain_file, domain, domainbinding); + } + + if ( +# ifdef _LIBC + domain->conv != (__gconv_t) -1 +# else +# if HAVE_ICONV + domain->conv != (iconv_t) -1 +# endif +# endif + ) + { + /* We are supposed to do a conversion. First allocate an + appropriate table with the same structure as the table + of translations in the file, where we can put the pointers + to the converted strings in. + There is a slight complication with plural entries. They + are represented by consecutive NUL terminated strings. We + handle this case by converting RESULTLEN bytes, including + NULs. */ + + if (domain->conv_tab == NULL + && ((domain->conv_tab = + (char **) calloc (nstrings + domain->n_sysdep_strings, + sizeof (char *))) + == NULL)) + /* Mark that we didn't succeed allocating a table. */ + domain->conv_tab = (char **) -1; + + if (__builtin_expect (domain->conv_tab == (char **) -1, 0)) + /* Nothing we can do, no more memory. */ + goto converted; + + if (domain->conv_tab[act] == NULL) + { + /* We haven't used this string so far, so it is not + translated yet. Do this now. */ + /* We use a bit more efficient memory handling. + We allocate always larger blocks which get used over + time. This is faster than many small allocations. */ + __libc_lock_define_initialized (static, lock) +# define INITIAL_BLOCK_SIZE 4080 + static unsigned char *freemem; + static size_t freemem_size; + + const unsigned char *inbuf; + unsigned char *outbuf; + int malloc_count; +# ifndef _LIBC + transmem_block_t *transmem_list = NULL; +# endif + + __libc_lock_lock (lock); + + inbuf = (const unsigned char *) result; + outbuf = freemem + sizeof (size_t); + + malloc_count = 0; + while (1) + { + transmem_block_t *newmem; +# ifdef _LIBC + size_t non_reversible; + int res; + + if (freemem_size < sizeof (size_t)) + goto resize_freemem; + + res = __gconv (domain->conv, + &inbuf, inbuf + resultlen, + &outbuf, + outbuf + freemem_size - sizeof (size_t), + &non_reversible); + + if (res == __GCONV_OK || res == __GCONV_EMPTY_INPUT) + break; + + if (res != __GCONV_FULL_OUTPUT) + { + __libc_lock_unlock (lock); + goto converted; + } + + inbuf = result; +# else +# if HAVE_ICONV + const char *inptr = (const char *) inbuf; + size_t inleft = resultlen; + char *outptr = (char *) outbuf; + size_t outleft; + + if (freemem_size < sizeof (size_t)) + goto resize_freemem; + + outleft = freemem_size - sizeof (size_t); + if (iconv (domain->conv, + (ICONV_CONST char **) &inptr, &inleft, + &outptr, &outleft) + != (size_t) (-1)) + { + outbuf = (unsigned char *) outptr; + break; + } + if (errno != E2BIG) + { + __libc_lock_unlock (lock); + goto converted; + } +# endif +# endif + + resize_freemem: + /* We must allocate a new buffer or resize the old one. */ + if (malloc_count > 0) + { + ++malloc_count; + freemem_size = malloc_count * INITIAL_BLOCK_SIZE; + newmem = (transmem_block_t *) realloc (transmem_list, + freemem_size); +# ifdef _LIBC + if (newmem != NULL) + transmem_list = transmem_list->next; + else + { + struct transmem_list *old = transmem_list; + + transmem_list = transmem_list->next; + free (old); + } +# endif + } + else + { + malloc_count = 1; + freemem_size = INITIAL_BLOCK_SIZE; + newmem = (transmem_block_t *) malloc (freemem_size); + } + if (__builtin_expect (newmem == NULL, 0)) + { + freemem = NULL; + freemem_size = 0; + __libc_lock_unlock (lock); + goto converted; + } + +# ifdef _LIBC + /* Add the block to the list of blocks we have to free + at some point. */ + newmem->next = transmem_list; + transmem_list = newmem; + + freemem = newmem->data; + freemem_size -= offsetof (struct transmem_list, data); +# else + transmem_list = newmem; + freemem = newmem; +# endif + + outbuf = freemem + sizeof (size_t); + } + + /* We have now in our buffer a converted string. Put this + into the table of conversions. */ + *(size_t *) freemem = outbuf - freemem - sizeof (size_t); + domain->conv_tab[act] = (char *) freemem; + /* Shrink freemem, but keep it aligned. */ + freemem_size -= outbuf - freemem; + freemem = outbuf; + freemem += freemem_size & (alignof (size_t) - 1); + freemem_size = freemem_size & ~ (alignof (size_t) - 1); + + __libc_lock_unlock (lock); + } + + /* Now domain->conv_tab[act] contains the translation of all + the plural variants. */ + result = domain->conv_tab[act] + sizeof (size_t); + resultlen = *(size_t *) domain->conv_tab[act]; + } + + converted: + /* The result string is converted. */ + +#endif /* _LIBC || HAVE_ICONV */ + + *lengthp = resultlen; + return result; +} + + +/* Look up a plural variant. */ +static char * +internal_function +plural_lookup (struct loaded_l10nfile *domain, unsigned long int n, + const char *translation, size_t translation_len) +{ + struct loaded_domain *domaindata = (struct loaded_domain *) domain->data; + unsigned long int index; + const char *p; + + index = plural_eval (domaindata->plural, n); + if (index >= domaindata->nplurals) + /* This should never happen. It means the plural expression and the + given maximum value do not match. */ + index = 0; + + /* Skip INDEX strings at TRANSLATION. */ + p = translation; + while (index-- > 0) + { +#ifdef _LIBC + p = __rawmemchr (p, '\0'); +#else + p = strchr (p, '\0'); +#endif + /* And skip over the NUL byte. */ + p++; + + if (p >= translation + translation_len) + /* This should never happen. It means the plural expression + evaluated to a value larger than the number of variants + available for MSGID1. */ + return (char *) translation; + } + return (char *) p; +} + +#ifndef _LIBC +/* Return string representation of locale CATEGORY. */ +static const char * +internal_function +category_to_name (int category) +{ + const char *retval; + + switch (category) + { +#ifdef LC_COLLATE + case LC_COLLATE: + retval = "LC_COLLATE"; + break; +#endif +#ifdef LC_CTYPE + case LC_CTYPE: + retval = "LC_CTYPE"; + break; +#endif +#ifdef LC_MONETARY + case LC_MONETARY: + retval = "LC_MONETARY"; + break; +#endif +#ifdef LC_NUMERIC + case LC_NUMERIC: + retval = "LC_NUMERIC"; + break; +#endif +#ifdef LC_TIME + case LC_TIME: + retval = "LC_TIME"; + break; +#endif +#ifdef LC_MESSAGES + case LC_MESSAGES: + retval = "LC_MESSAGES"; + break; +#endif +#ifdef LC_RESPONSE + case LC_RESPONSE: + retval = "LC_RESPONSE"; + break; +#endif +#ifdef LC_ALL + case LC_ALL: + /* This might not make sense but is perhaps better than any other + value. */ + retval = "LC_ALL"; + break; +#endif + default: + /* If you have a better idea for a default value let me know. */ + retval = "LC_XXX"; + } + + return retval; +} +#endif + +/* Guess value of current locale from value of the environment variables + or system-dependent defaults. */ +static const char * +internal_function +guess_category_value (int category, const char *categoryname) +{ + const char *language; + const char *locale; +#ifndef _LIBC + const char *language_default; + int locale_defaulted; +#endif + + /* We use the settings in the following order: + 1. The value of the environment variable 'LANGUAGE'. This is a GNU + extension. Its value can be a colon-separated list of locale names. + 2. The value of the environment variable 'LC_ALL', 'LC_xxx', or 'LANG'. + More precisely, the first among these that is set to a non-empty value. + This is how POSIX specifies it. The value is a single locale name. + 3. A system-dependent preference list of languages. Its value can be a + colon-separated list of locale names. + 4. A system-dependent default locale name. + This way: + - System-dependent settings can be overridden by environment variables. + - If the system provides both a list of languages and a default locale, + the former is used. */ + + /* Fetch the locale name, through the POSIX method of looking to `LC_ALL', + `LC_xxx', and `LANG'. On some systems this can be done by the + `setlocale' function itself. */ +#ifdef _LIBC + locale = __current_locale_name (category); +#else + locale = _nl_locale_name_posix (category, categoryname); + locale_defaulted = 0; + if (locale == NULL) + { + locale = _nl_locale_name_default (); + locale_defaulted = 1; + } +#endif + + /* Ignore LANGUAGE and its system-dependent analogon if the locale is set + to "C" because + 1. "C" locale usually uses the ASCII encoding, and most international + messages use non-ASCII characters. These characters get displayed + as question marks (if using glibc's iconv()) or as invalid 8-bit + characters (because other iconv()s refuse to convert most non-ASCII + characters to ASCII). In any case, the output is ugly. + 2. The precise output of some programs in the "C" locale is specified + by POSIX and should not depend on environment variables like + "LANGUAGE" or system-dependent information. We allow such programs + to use gettext(). */ + if (strcmp (locale, "C") == 0) + return locale; + + /* The highest priority value is the value of the 'LANGUAGE' environment + variable. */ + language = getenv ("LANGUAGE"); + if (language != NULL && language[0] != '\0') + return language; +#ifndef _LIBC + /* The next priority value is the locale name, if not defaulted. */ + if (locale_defaulted) + { + /* The next priority value is the default language preferences list. */ + language_default = _nl_language_preferences_default (); + if (language_default != NULL) + return language_default; + } + /* The least priority value is the locale name, if defaulted. */ +#endif + return locale; +} + +/* @@ begin of epilog @@ */ + +/* We don't want libintl.a to depend on any other library. So we + avoid the non-standard function stpcpy. In GNU C Library this + function is available, though. Also allow the symbol HAVE_STPCPY + to be defined. */ +#if !_LIBC && !HAVE_STPCPY +static char * +stpcpy (char *dest, const char *src) +{ + while ((*dest++ = *src++) != '\0') + /* Do nothing. */ ; + return dest - 1; +} +#endif + +#if !_LIBC && !HAVE_MEMPCPY +static void * +mempcpy (void *dest, const void *src, size_t n) +{ + return (void *) ((char *) memcpy (dest, src, n) + n); +} +#endif + + +#ifdef _LIBC +/* If we want to free all resources we have to do some work at + program's end. */ +libc_freeres_fn (free_mem) +{ + void *old; + + while (_nl_domain_bindings != NULL) + { + struct binding *oldp = _nl_domain_bindings; + _nl_domain_bindings = _nl_domain_bindings->next; + if (oldp->dirname != INTUSE(_nl_default_dirname)) + /* Yes, this is a pointer comparison. */ + free (oldp->dirname); + free (oldp->codeset); + free (oldp); + } + + if (_nl_current_default_domain != _nl_default_default_domain) + /* Yes, again a pointer comparison. */ + free ((char *) _nl_current_default_domain); + + /* Remove the search tree with the known translations. */ + __tdestroy (root, free); + root = NULL; + + while (transmem_list != NULL) + { + old = transmem_list; + transmem_list = transmem_list->next; + free (old); + } +} +#endif diff --git a/intl/dcngettext.c b/intl/dcngettext.c new file mode 100644 index 0000000..eb36833 --- /dev/null +++ b/intl/dcngettext.c @@ -0,0 +1,57 @@ +/* Implementation of the dcngettext(3) function. + Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include "gettextP.h" +#ifdef _LIBC +# include +#else +# include "libgnuintl.h" +#endif + +/* @@ end of prolog @@ */ + +/* Names for the libintl functions are a problem. They must not clash + with existing names and they should follow ANSI C. But this source + code is also used in GNU C Library where the names have a __ + prefix. So we have to make a difference here. */ +#ifdef _LIBC +# define DCNGETTEXT __dcngettext +# define DCIGETTEXT __dcigettext +#else +# define DCNGETTEXT libintl_dcngettext +# define DCIGETTEXT libintl_dcigettext +#endif + +/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY + locale. */ +char * +DCNGETTEXT (const char *domainname, + const char *msgid1, const char *msgid2, unsigned long int n, + int category) +{ + return DCIGETTEXT (domainname, msgid1, msgid2, 1, n, category); +} + +#ifdef _LIBC +/* Alias for function name in GNU C Library. */ +weak_alias (__dcngettext, dcngettext); +#endif diff --git a/intl/dgettext.c b/intl/dgettext.c new file mode 100644 index 0000000..9b0d0de --- /dev/null +++ b/intl/dgettext.c @@ -0,0 +1,58 @@ +/* Implementation of the dgettext(3) function. + Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include "gettextP.h" + +#include + +#ifdef _LIBC +# include +#else +# include "libgnuintl.h" +#endif + +/* @@ end of prolog @@ */ + +/* Names for the libintl functions are a problem. They must not clash + with existing names and they should follow ANSI C. But this source + code is also used in GNU C Library where the names have a __ + prefix. So we have to make a difference here. */ +#ifdef _LIBC +# define DGETTEXT __dgettext +# define DCGETTEXT INTUSE(__dcgettext) +#else +# define DGETTEXT libintl_dgettext +# define DCGETTEXT libintl_dcgettext +#endif + +/* Look up MSGID in the DOMAINNAME message catalog of the current + LC_MESSAGES locale. */ +char * +DGETTEXT (const char *domainname, const char *msgid) +{ + return DCGETTEXT (domainname, msgid, LC_MESSAGES); +} + +#ifdef _LIBC +/* Alias for function name in GNU C Library. */ +weak_alias (__dgettext, dgettext); +#endif diff --git a/intl/dngettext.c b/intl/dngettext.c new file mode 100644 index 0000000..3278438 --- /dev/null +++ b/intl/dngettext.c @@ -0,0 +1,59 @@ +/* Implementation of the dngettext(3) function. + Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include "gettextP.h" + +#include + +#ifdef _LIBC +# include +#else +# include "libgnuintl.h" +#endif + +/* @@ end of prolog @@ */ + +/* Names for the libintl functions are a problem. They must not clash + with existing names and they should follow ANSI C. But this source + code is also used in GNU C Library where the names have a __ + prefix. So we have to make a difference here. */ +#ifdef _LIBC +# define DNGETTEXT __dngettext +# define DCNGETTEXT __dcngettext +#else +# define DNGETTEXT libintl_dngettext +# define DCNGETTEXT libintl_dcngettext +#endif + +/* Look up MSGID in the DOMAINNAME message catalog of the current + LC_MESSAGES locale and skip message according to the plural form. */ +char * +DNGETTEXT (const char *domainname, + const char *msgid1, const char *msgid2, unsigned long int n) +{ + return DCNGETTEXT (domainname, msgid1, msgid2, n, LC_MESSAGES); +} + +#ifdef _LIBC +/* Alias for function name in GNU C Library. */ +weak_alias (__dngettext, dngettext); +#endif diff --git a/intl/eval-plural.h b/intl/eval-plural.h new file mode 100644 index 0000000..dacd003 --- /dev/null +++ b/intl/eval-plural.h @@ -0,0 +1,108 @@ +/* Plural expression evaluation. + Copyright (C) 2000-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef STATIC +#define STATIC static +#endif + +/* Evaluate the plural expression and return an index value. */ +STATIC +unsigned long int +internal_function +plural_eval (struct expression *pexp, unsigned long int n) +{ + switch (pexp->nargs) + { + case 0: + switch (pexp->operation) + { + case var: + return n; + case num: + return pexp->val.num; + default: + break; + } + /* NOTREACHED */ + break; + case 1: + { + /* pexp->operation must be lnot. */ + unsigned long int arg = plural_eval (pexp->val.args[0], n); + return ! arg; + } + case 2: + { + unsigned long int leftarg = plural_eval (pexp->val.args[0], n); + if (pexp->operation == lor) + return leftarg || plural_eval (pexp->val.args[1], n); + else if (pexp->operation == land) + return leftarg && plural_eval (pexp->val.args[1], n); + else + { + unsigned long int rightarg = plural_eval (pexp->val.args[1], n); + + switch (pexp->operation) + { + case mult: + return leftarg * rightarg; + case divide: +#if !INTDIV0_RAISES_SIGFPE + if (rightarg == 0) + raise (SIGFPE); +#endif + return leftarg / rightarg; + case module: +#if !INTDIV0_RAISES_SIGFPE + if (rightarg == 0) + raise (SIGFPE); +#endif + return leftarg % rightarg; + case plus: + return leftarg + rightarg; + case minus: + return leftarg - rightarg; + case less_than: + return leftarg < rightarg; + case greater_than: + return leftarg > rightarg; + case less_or_equal: + return leftarg <= rightarg; + case greater_or_equal: + return leftarg >= rightarg; + case equal: + return leftarg == rightarg; + case not_equal: + return leftarg != rightarg; + default: + break; + } + } + /* NOTREACHED */ + break; + } + case 3: + { + /* pexp->operation must be qmop. */ + unsigned long int boolarg = plural_eval (pexp->val.args[0], n); + return plural_eval (pexp->val.args[boolarg ? 1 : 2], n); + } + } + /* NOTREACHED */ + return 0; +} diff --git a/intl/explodename.c b/intl/explodename.c new file mode 100644 index 0000000..1361418 --- /dev/null +++ b/intl/explodename.c @@ -0,0 +1,185 @@ +/* Copyright (C) 1995-1998, 2000-2001, 2003 Free Software Foundation, Inc. + Contributed by Ulrich Drepper , 1995. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include +#include + +#include "loadinfo.h" + +/* On some strange systems still no definition of NULL is found. Sigh! */ +#ifndef NULL +# if defined __STDC__ && __STDC__ +# define NULL ((void *) 0) +# else +# define NULL 0 +# endif +#endif + +/* @@ end of prolog @@ */ + +char * +_nl_find_language (const char *name) +{ + while (name[0] != '\0' && name[0] != '_' && name[0] != '@' + && name[0] != '+' && name[0] != ',') + ++name; + + return (char *) name; +} + + +int +_nl_explode_name (char *name, + const char **language, const char **modifier, + const char **territory, const char **codeset, + const char **normalized_codeset, const char **special, + const char **sponsor, const char **revision) +{ + enum { undecided, xpg, cen } syntax; + char *cp; + int mask; + + *modifier = NULL; + *territory = NULL; + *codeset = NULL; + *normalized_codeset = NULL; + *special = NULL; + *sponsor = NULL; + *revision = NULL; + + /* Now we determine the single parts of the locale name. First + look for the language. Termination symbols are `_' and `@' if + we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */ + mask = 0; + syntax = undecided; + *language = cp = name; + cp = _nl_find_language (*language); + + if (*language == cp) + /* This does not make sense: language has to be specified. Use + this entry as it is without exploding. Perhaps it is an alias. */ + cp = strchr (*language, '\0'); + else if (cp[0] == '_') + { + /* Next is the territory. */ + cp[0] = '\0'; + *territory = ++cp; + + while (cp[0] != '\0' && cp[0] != '.' && cp[0] != '@' + && cp[0] != '+' && cp[0] != ',' && cp[0] != '_') + ++cp; + + mask |= TERRITORY; + + if (cp[0] == '.') + { + /* Next is the codeset. */ + syntax = xpg; + cp[0] = '\0'; + *codeset = ++cp; + + while (cp[0] != '\0' && cp[0] != '@') + ++cp; + + mask |= XPG_CODESET; + + if (*codeset != cp && (*codeset)[0] != '\0') + { + *normalized_codeset = _nl_normalize_codeset (*codeset, + cp - *codeset); + if (strcmp (*codeset, *normalized_codeset) == 0) + free ((char *) *normalized_codeset); + else + mask |= XPG_NORM_CODESET; + } + } + } + + if (cp[0] == '@' || (syntax != xpg && cp[0] == '+')) + { + /* Next is the modifier. */ + syntax = cp[0] == '@' ? xpg : cen; + cp[0] = '\0'; + *modifier = ++cp; + + while (syntax == cen && cp[0] != '\0' && cp[0] != '+' + && cp[0] != ',' && cp[0] != '_') + ++cp; + + mask |= XPG_MODIFIER | CEN_AUDIENCE; + } + + if (syntax != xpg && (cp[0] == '+' || cp[0] == ',' || cp[0] == '_')) + { + syntax = cen; + + if (cp[0] == '+') + { + /* Next is special application (CEN syntax). */ + cp[0] = '\0'; + *special = ++cp; + + while (cp[0] != '\0' && cp[0] != ',' && cp[0] != '_') + ++cp; + + mask |= CEN_SPECIAL; + } + + if (cp[0] == ',') + { + /* Next is sponsor (CEN syntax). */ + cp[0] = '\0'; + *sponsor = ++cp; + + while (cp[0] != '\0' && cp[0] != '_') + ++cp; + + mask |= CEN_SPONSOR; + } + + if (cp[0] == '_') + { + /* Next is revision (CEN syntax). */ + cp[0] = '\0'; + *revision = ++cp; + + mask |= CEN_REVISION; + } + } + + /* For CEN syntax values it might be important to have the + separator character in the file name, not for XPG syntax. */ + if (syntax == xpg) + { + if (*territory != NULL && (*territory)[0] == '\0') + mask &= ~TERRITORY; + + if (*codeset != NULL && (*codeset)[0] == '\0') + mask &= ~XPG_CODESET; + + if (*modifier != NULL && (*modifier)[0] == '\0') + mask &= ~XPG_MODIFIER; + } + + return mask; +} diff --git a/intl/finddomain.c b/intl/finddomain.c new file mode 100644 index 0000000..498f858 --- /dev/null +++ b/intl/finddomain.c @@ -0,0 +1,192 @@ +/* Handle list of needed message catalogs + Copyright (C) 1995-1999, 2000-2001, 2003 Free Software Foundation, Inc. + Written by Ulrich Drepper , 1995. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include +#include +#include + +#if defined HAVE_UNISTD_H || defined _LIBC +# include +#endif + +#include "gettextP.h" +#ifdef _LIBC +# include +#else +# include "libgnuintl.h" +#endif + +/* @@ end of prolog @@ */ +/* List of already loaded domains. */ +static struct loaded_l10nfile *_nl_loaded_domains; + + +/* Return a data structure describing the message catalog described by + the DOMAINNAME and CATEGORY parameters with respect to the currently + established bindings. */ +struct loaded_l10nfile * +internal_function +_nl_find_domain (const char *dirname, char *locale, + const char *domainname, struct binding *domainbinding) +{ + struct loaded_l10nfile *retval; + const char *language; + const char *modifier; + const char *territory; + const char *codeset; + const char *normalized_codeset; + const char *special; + const char *sponsor; + const char *revision; + const char *alias_value; + int mask; + + /* LOCALE can consist of up to four recognized parts for the XPG syntax: + + language[_territory[.codeset]][@modifier] + + and six parts for the CEN syntax: + + language[_territory][+audience][+special][,[sponsor][_revision]] + + Beside the first part all of them are allowed to be missing. If + the full specified locale is not found, the less specific one are + looked for. The various parts will be stripped off according to + the following order: + (1) revision + (2) sponsor + (3) special + (4) codeset + (5) normalized codeset + (6) territory + (7) audience/modifier + */ + + /* If we have already tested for this locale entry there has to + be one data set in the list of loaded domains. */ + retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, + strlen (dirname) + 1, 0, locale, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, domainname, 0); + if (retval != NULL) + { + /* We know something about this locale. */ + int cnt; + + if (retval->decided == 0) + _nl_load_domain (retval, domainbinding); + + if (retval->data != NULL) + return retval; + + for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) + { + if (retval->successor[cnt]->decided == 0) + _nl_load_domain (retval->successor[cnt], domainbinding); + + if (retval->successor[cnt]->data != NULL) + break; + } + return cnt >= 0 ? retval : NULL; + /* NOTREACHED */ + } + + /* See whether the locale value is an alias. If yes its value + *overwrites* the alias name. No test for the original value is + done. */ + alias_value = _nl_expand_alias (locale); + if (alias_value != NULL) + { +#if defined _LIBC || defined HAVE_STRDUP + locale = strdup (alias_value); + if (locale == NULL) + return NULL; +#else + size_t len = strlen (alias_value) + 1; + locale = (char *) malloc (len); + if (locale == NULL) + return NULL; + + memcpy (locale, alias_value, len); +#endif + } + + /* Now we determine the single parts of the locale name. First + look for the language. Termination symbols are `_' and `@' if + we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */ + mask = _nl_explode_name (locale, &language, &modifier, &territory, + &codeset, &normalized_codeset, &special, + &sponsor, &revision); + + /* Create all possible locale entries which might be interested in + generalization. */ + retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, + strlen (dirname) + 1, mask, language, territory, + codeset, normalized_codeset, modifier, special, + sponsor, revision, domainname, 1); + if (retval == NULL) + /* This means we are out of core. */ + return NULL; + + if (retval->decided == 0) + _nl_load_domain (retval, domainbinding); + if (retval->data == NULL) + { + int cnt; + for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) + { + if (retval->successor[cnt]->decided == 0) + _nl_load_domain (retval->successor[cnt], domainbinding); + if (retval->successor[cnt]->data != NULL) + break; + } + } + + /* The room for an alias was dynamically allocated. Free it now. */ + if (alias_value != NULL) + free (locale); + + /* The space for normalized_codeset is dynamically allocated. Free it. */ + if (mask & XPG_NORM_CODESET) + free ((void *) normalized_codeset); + + return retval; +} + + +#ifdef _LIBC +libc_freeres_fn (free_mem) +{ + struct loaded_l10nfile *runp = _nl_loaded_domains; + + while (runp != NULL) + { + struct loaded_l10nfile *here = runp; + if (runp->data != NULL) + _nl_unload_domain ((struct loaded_domain *) runp->data); + runp = runp->next; + free ((char *) here->filename); + free (here); + } +} +#endif diff --git a/intl/gettext.c b/intl/gettext.c new file mode 100644 index 0000000..d82d439 --- /dev/null +++ b/intl/gettext.c @@ -0,0 +1,63 @@ +/* Implementation of gettext(3) function. + Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#ifdef _LIBC +# define __need_NULL +# include +#else +# include /* Just for NULL. */ +#endif + +#include "gettextP.h" +#ifdef _LIBC +# include +#else +# include "libgnuintl.h" +#endif + +/* @@ end of prolog @@ */ + +/* Names for the libintl functions are a problem. They must not clash + with existing names and they should follow ANSI C. But this source + code is also used in GNU C Library where the names have a __ + prefix. So we have to make a difference here. */ +#ifdef _LIBC +# define GETTEXT __gettext +# define DCGETTEXT INTUSE(__dcgettext) +#else +# define GETTEXT libintl_gettext +# define DCGETTEXT libintl_dcgettext +#endif + +/* Look up MSGID in the current default message catalog for the current + LC_MESSAGES locale. If not found, returns MSGID itself (the default + text). */ +char * +GETTEXT (const char *msgid) +{ + return DCGETTEXT (NULL, msgid, LC_MESSAGES); +} + +#ifdef _LIBC +/* Alias for function name in GNU C Library. */ +weak_alias (__gettext, gettext); +#endif diff --git a/intl/gettextP.h b/intl/gettextP.h new file mode 100644 index 0000000..0816bfb --- /dev/null +++ b/intl/gettextP.h @@ -0,0 +1,218 @@ +/* Header describing internals of libintl library. + Copyright (C) 1995-1999, 2000-2005 Free Software Foundation, Inc. + Written by Ulrich Drepper , 1995. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _GETTEXTP_H +#define _GETTEXTP_H + +#include /* Get size_t. */ + +#ifdef _LIBC +# include "../iconv/gconv_int.h" +#else +# if HAVE_ICONV +# include +# endif +#endif + +#include "loadinfo.h" + +#include "gmo.h" /* Get nls_uint32. */ + +/* @@ end of prolog @@ */ + +#ifndef internal_function +# define internal_function +#endif + +#ifndef attribute_hidden +# define attribute_hidden +#endif + +/* Tell the compiler when a conditional or integer expression is + almost always true or almost always false. */ +#ifndef HAVE_BUILTIN_EXPECT +# define __builtin_expect(expr, val) (expr) +#endif + +#ifndef W +# define W(flag, data) ((flag) ? SWAP (data) : (data)) +#endif + + +#ifdef _LIBC +# include +# define SWAP(i) bswap_32 (i) +#else +static inline nls_uint32 +SWAP (i) + nls_uint32 i; +{ + return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24); +} +#endif + + +/* In-memory representation of system dependent string. */ +struct sysdep_string_desc +{ + /* Length of addressed string, including the trailing NUL. */ + size_t length; + /* Pointer to addressed string. */ + const char *pointer; +}; + +/* The representation of an opened message catalog. */ +struct loaded_domain +{ + /* Pointer to memory containing the .mo file. */ + const char *data; + /* 1 if the memory is mmap()ed, 0 if the memory is malloc()ed. */ + int use_mmap; + /* Size of mmap()ed memory. */ + size_t mmap_size; + /* 1 if the .mo file uses a different endianness than this machine. */ + int must_swap; + /* Pointer to additional malloc()ed memory. */ + void *malloced; + + /* Number of static strings pairs. */ + nls_uint32 nstrings; + /* Pointer to descriptors of original strings in the file. */ + const struct string_desc *orig_tab; + /* Pointer to descriptors of translated strings in the file. */ + const struct string_desc *trans_tab; + + /* Number of system dependent strings pairs. */ + nls_uint32 n_sysdep_strings; + /* Pointer to descriptors of original sysdep strings. */ + const struct sysdep_string_desc *orig_sysdep_tab; + /* Pointer to descriptors of translated sysdep strings. */ + const struct sysdep_string_desc *trans_sysdep_tab; + + /* Size of hash table. */ + nls_uint32 hash_size; + /* Pointer to hash table. */ + const nls_uint32 *hash_tab; + /* 1 if the hash table uses a different endianness than this machine. */ + int must_swap_hash_tab; + + int codeset_cntr; +#ifdef _LIBC + __gconv_t conv; +#else +# if HAVE_ICONV + iconv_t conv; +# endif +#endif + char **conv_tab; + + struct expression *plural; + unsigned long int nplurals; +}; + +/* We want to allocate a string at the end of the struct. But ISO C + doesn't allow zero sized arrays. */ +#ifdef __GNUC__ +# define ZERO 0 +#else +# define ZERO 1 +#endif + +/* A set of settings bound to a message domain. Used to store settings + from bindtextdomain() and bind_textdomain_codeset(). */ +struct binding +{ + struct binding *next; + char *dirname; + int codeset_cntr; /* Incremented each time codeset changes. */ + char *codeset; + char domainname[ZERO]; +}; + +/* A counter which is incremented each time some previous translations + become invalid. + This variable is part of the external ABI of the GNU libintl. */ +extern int _nl_msg_cat_cntr; + +#ifndef _LIBC +const char *_nl_language_preferences_default (void); +const char *_nl_locale_name_posix (int category, const char *categoryname); +const char *_nl_locale_name_default (void); +const char *_nl_locale_name (int category, const char *categoryname); +#endif + +struct loaded_l10nfile *_nl_find_domain (const char *__dirname, char *__locale, + const char *__domainname, + struct binding *__domainbinding) + internal_function; +void _nl_load_domain (struct loaded_l10nfile *__domain, + struct binding *__domainbinding) + internal_function; +void _nl_unload_domain (struct loaded_domain *__domain) + internal_function; +const char *_nl_init_domain_conv (struct loaded_l10nfile *__domain_file, + struct loaded_domain *__domain, + struct binding *__domainbinding) + internal_function; +void _nl_free_domain_conv (struct loaded_domain *__domain) + internal_function; + +char *_nl_find_msg (struct loaded_l10nfile *domain_file, + struct binding *domainbinding, const char *msgid, + size_t *lengthp) + internal_function; + +#ifdef _LIBC +extern char *__gettext (const char *__msgid); +extern char *__dgettext (const char *__domainname, const char *__msgid); +extern char *__dcgettext (const char *__domainname, const char *__msgid, + int __category); +extern char *__ngettext (const char *__msgid1, const char *__msgid2, + unsigned long int __n); +extern char *__dngettext (const char *__domainname, + const char *__msgid1, const char *__msgid2, + unsigned long int n); +extern char *__dcngettext (const char *__domainname, + const char *__msgid1, const char *__msgid2, + unsigned long int __n, int __category); +extern char *__dcigettext (const char *__domainname, + const char *__msgid1, const char *__msgid2, + int __plural, unsigned long int __n, + int __category); +extern char *__textdomain (const char *__domainname); +extern char *__bindtextdomain (const char *__domainname, + const char *__dirname); +extern char *__bind_textdomain_codeset (const char *__domainname, + const char *__codeset); +#else +/* Declare the exported libintl_* functions, in a way that allows us to + call them under their real name. */ +# undef _INTL_REDIRECT_INLINE +# undef _INTL_REDIRECT_MACROS +# define _INTL_REDIRECT_MACROS +# include "libgnuintl.h" +extern char *libintl_dcigettext (const char *__domainname, + const char *__msgid1, const char *__msgid2, + int __plural, unsigned long int __n, + int __category); +#endif + +/* @@ begin of epilog @@ */ + +#endif /* gettextP.h */ diff --git a/intl/gmo.h b/intl/gmo.h new file mode 100644 index 0000000..26515fe --- /dev/null +++ b/intl/gmo.h @@ -0,0 +1,149 @@ +/* Description of GNU message catalog format: general file layout. + Copyright (C) 1995, 1997, 2000-2002, 2004 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _GETTEXT_H +#define _GETTEXT_H 1 + +#include + +/* @@ end of prolog @@ */ + +/* The magic number of the GNU message catalog format. */ +#define _MAGIC 0x950412de +#define _MAGIC_SWAPPED 0xde120495 + +/* Revision number of the currently used .mo (binary) file format. */ +#define MO_REVISION_NUMBER 0 +#define MO_REVISION_NUMBER_WITH_SYSDEP_I 1 + +/* The following contortions are an attempt to use the C preprocessor + to determine an unsigned integral type that is 32 bits wide. An + alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but + as of version autoconf-2.13, the AC_CHECK_SIZEOF macro doesn't work + when cross-compiling. */ + +#if __STDC__ +# define UINT_MAX_32_BITS 4294967295U +#else +# define UINT_MAX_32_BITS 0xFFFFFFFF +#endif + +/* If UINT_MAX isn't defined, assume it's a 32-bit type. + This should be valid for all systems GNU cares about because + that doesn't include 16-bit systems, and only modern systems + (that certainly have ) have 64+-bit integral types. */ + +#ifndef UINT_MAX +# define UINT_MAX UINT_MAX_32_BITS +#endif + +#if UINT_MAX == UINT_MAX_32_BITS +typedef unsigned nls_uint32; +#else +# if USHRT_MAX == UINT_MAX_32_BITS +typedef unsigned short nls_uint32; +# else +# if ULONG_MAX == UINT_MAX_32_BITS +typedef unsigned long nls_uint32; +# else + /* The following line is intended to throw an error. Using #error is + not portable enough. */ + "Cannot determine unsigned 32-bit data type." +# endif +# endif +#endif + + +/* Header for binary .mo file format. */ +struct mo_file_header +{ + /* The magic number. */ + nls_uint32 magic; + /* The revision number of the file format. */ + nls_uint32 revision; + + /* The following are only used in .mo files with major revision 0 or 1. */ + + /* The number of strings pairs. */ + nls_uint32 nstrings; + /* Offset of table with start offsets of original strings. */ + nls_uint32 orig_tab_offset; + /* Offset of table with start offsets of translated strings. */ + nls_uint32 trans_tab_offset; + /* Size of hash table. */ + nls_uint32 hash_tab_size; + /* Offset of first hash table entry. */ + nls_uint32 hash_tab_offset; + + /* The following are only used in .mo files with minor revision >= 1. */ + + /* The number of system dependent segments. */ + nls_uint32 n_sysdep_segments; + /* Offset of table describing system dependent segments. */ + nls_uint32 sysdep_segments_offset; + /* The number of system dependent strings pairs. */ + nls_uint32 n_sysdep_strings; + /* Offset of table with start offsets of original sysdep strings. */ + nls_uint32 orig_sysdep_tab_offset; + /* Offset of table with start offsets of translated sysdep strings. */ + nls_uint32 trans_sysdep_tab_offset; +}; + +/* Descriptor for static string contained in the binary .mo file. */ +struct string_desc +{ + /* Length of addressed string, not including the trailing NUL. */ + nls_uint32 length; + /* Offset of string in file. */ + nls_uint32 offset; +}; + +/* The following are only used in .mo files with minor revision >= 1. */ + +/* Descriptor for system dependent string segment. */ +struct sysdep_segment +{ + /* Length of addressed string, including the trailing NUL. */ + nls_uint32 length; + /* Offset of string in file. */ + nls_uint32 offset; +}; + +/* Descriptor for system dependent string. */ +struct sysdep_string +{ + /* Offset of static string segments in file. */ + nls_uint32 offset; + /* Alternating sequence of static and system dependent segments. + The last segment is a static segment, including the trailing NUL. */ + struct segment_pair + { + /* Size of static segment. */ + nls_uint32 segsize; + /* Reference to system dependent string segment, or ~0 at the end. */ + nls_uint32 sysdepref; + } segments[1]; +}; + +/* Marker for the end of the segments[] array. This has the value 0xFFFFFFFF, + regardless whether 'int' is 16 bit, 32 bit, or 64 bit. */ +#define SEGMENTS_END ((nls_uint32) ~0) + +/* @@ begin of epilog @@ */ + +#endif /* gettext.h */ diff --git a/intl/hash-string.h b/intl/hash-string.h new file mode 100644 index 0000000..2c9a3a5 --- /dev/null +++ b/intl/hash-string.h @@ -0,0 +1,48 @@ +/* Description of GNU message catalog format: string hashing function. + Copyright (C) 1995, 1997-1998, 2000-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* @@ end of prolog @@ */ + +/* We assume to have `unsigned long int' value with at least 32 bits. */ +#define HASHWORDBITS 32 + + +/* Defines the so called `hashpjw' function by P.J. Weinberger + [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools, + 1986, 1987 Bell Telephone Laboratories, Inc.] */ +static inline unsigned long int +hash_string (const char *str_param) +{ + unsigned long int hval, g; + const char *str = str_param; + + /* Compute the hash value for the given string. */ + hval = 0; + while (*str != '\0') + { + hval <<= 4; + hval += (unsigned char) *str++; + g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4)); + if (g != 0) + { + hval ^= g >> (HASHWORDBITS - 8); + hval ^= g; + } + } + return hval; +} diff --git a/intl/intl-compat.c b/intl/intl-compat.c new file mode 100644 index 0000000..15be09c --- /dev/null +++ b/intl/intl-compat.c @@ -0,0 +1,131 @@ +/* intl-compat.c - Stub functions to call gettext functions from GNU gettext + Library. + Copyright (C) 1995, 2000-2003 Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include "gettextP.h" + +/* @@ end of prolog @@ */ + +/* This file redirects the gettext functions (without prefix) to those + defined in the included GNU libintl library (with "libintl_" prefix). + It is compiled into libintl in order to make the AM_GNU_GETTEXT test + of gettext <= 0.11.2 work with the libintl library >= 0.11.3 which + has the redirections primarily in the include file. + It is also compiled into libgnuintl so that libgnuintl.so can be used + as LD_PRELOADable library on glibc systems, to provide the extra + features that the functions in the libc don't have (namely, logging). */ + + +#undef gettext +#undef dgettext +#undef dcgettext +#undef ngettext +#undef dngettext +#undef dcngettext +#undef textdomain +#undef bindtextdomain +#undef bind_textdomain_codeset + + +/* When building a DLL, we must export some functions. Note that because + the functions are only defined for binary backward compatibility, we + don't need to use __declspec(dllimport) in any case. */ +#if defined _MSC_VER && BUILDING_DLL +# define DLL_EXPORTED __declspec(dllexport) +#else +# define DLL_EXPORTED +#endif + + +DLL_EXPORTED +char * +gettext (const char *msgid) +{ + return libintl_gettext (msgid); +} + + +DLL_EXPORTED +char * +dgettext (const char *domainname, const char *msgid) +{ + return libintl_dgettext (domainname, msgid); +} + + +DLL_EXPORTED +char * +dcgettext (const char *domainname, const char *msgid, int category) +{ + return libintl_dcgettext (domainname, msgid, category); +} + + +DLL_EXPORTED +char * +ngettext (const char *msgid1, const char *msgid2, unsigned long int n) +{ + return libintl_ngettext (msgid1, msgid2, n); +} + + +DLL_EXPORTED +char * +dngettext (const char *domainname, + const char *msgid1, const char *msgid2, unsigned long int n) +{ + return libintl_dngettext (domainname, msgid1, msgid2, n); +} + + +DLL_EXPORTED +char * +dcngettext (const char *domainname, + const char *msgid1, const char *msgid2, unsigned long int n, + int category) +{ + return libintl_dcngettext (domainname, msgid1, msgid2, n, category); +} + + +DLL_EXPORTED +char * +textdomain (const char *domainname) +{ + return libintl_textdomain (domainname); +} + + +DLL_EXPORTED +char * +bindtextdomain (const char *domainname, const char *dirname) +{ + return libintl_bindtextdomain (domainname, dirname); +} + + +DLL_EXPORTED +char * +bind_textdomain_codeset (const char *domainname, const char *codeset) +{ + return libintl_bind_textdomain_codeset (domainname, codeset); +} diff --git a/intl/l10nflist.c b/intl/l10nflist.c new file mode 100644 index 0000000..0501b97 --- /dev/null +++ b/intl/l10nflist.c @@ -0,0 +1,421 @@ +/* Copyright (C) 1995-1999, 2000-2004 Free Software Foundation, Inc. + Contributed by Ulrich Drepper , 1995. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* Tell glibc's to provide a prototype for stpcpy(). + This must come before because may include + , and once has been included, it's too late. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include + +#if defined _LIBC || defined HAVE_ARGZ_H +# include +#endif +#include +#include +#include + +#include "loadinfo.h" + +/* On some strange systems still no definition of NULL is found. Sigh! */ +#ifndef NULL +# if defined __STDC__ && __STDC__ +# define NULL ((void *) 0) +# else +# define NULL 0 +# endif +#endif + +/* @@ end of prolog @@ */ + +#ifdef _LIBC +/* Rename the non ANSI C functions. This is required by the standard + because some ANSI C functions will require linking with this object + file and the name space must not be polluted. */ +# ifndef stpcpy +# define stpcpy(dest, src) __stpcpy(dest, src) +# endif +#else +# ifndef HAVE_STPCPY +static char *stpcpy (char *dest, const char *src); +# endif +#endif + +/* Pathname support. + ISSLASH(C) tests whether C is a directory separator character. + IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not, + it may be concatenated to a directory pathname. + */ +#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ + /* Win32, Cygwin, OS/2, DOS */ +# define ISSLASH(C) ((C) == '/' || (C) == '\\') +# define HAS_DEVICE(P) \ + ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ + && (P)[1] == ':') +# define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P)) +#else + /* Unix */ +# define ISSLASH(C) ((C) == '/') +# define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0]) +#endif + +/* Define function which are usually not available. */ + +#if !defined _LIBC && !defined HAVE___ARGZ_COUNT +/* Returns the number of strings in ARGZ. */ +static size_t +argz_count__ (const char *argz, size_t len) +{ + size_t count = 0; + while (len > 0) + { + size_t part_len = strlen (argz); + argz += part_len + 1; + len -= part_len + 1; + count++; + } + return count; +} +# undef __argz_count +# define __argz_count(argz, len) argz_count__ (argz, len) +#else +# ifdef _LIBC +# define __argz_count(argz, len) INTUSE(__argz_count) (argz, len) +# endif +#endif /* !_LIBC && !HAVE___ARGZ_COUNT */ + +#if !defined _LIBC && !defined HAVE___ARGZ_STRINGIFY +/* Make '\0' separated arg vector ARGZ printable by converting all the '\0's + except the last into the character SEP. */ +static void +argz_stringify__ (char *argz, size_t len, int sep) +{ + while (len > 0) + { + size_t part_len = strlen (argz); + argz += part_len; + len -= part_len + 1; + if (len > 0) + *argz++ = sep; + } +} +# undef __argz_stringify +# define __argz_stringify(argz, len, sep) argz_stringify__ (argz, len, sep) +#else +# ifdef _LIBC +# define __argz_stringify(argz, len, sep) \ + INTUSE(__argz_stringify) (argz, len, sep) +# endif +#endif /* !_LIBC && !HAVE___ARGZ_STRINGIFY */ + +#if !defined _LIBC && !defined HAVE___ARGZ_NEXT +static char * +argz_next__ (char *argz, size_t argz_len, const char *entry) +{ + if (entry) + { + if (entry < argz + argz_len) + entry = strchr (entry, '\0') + 1; + + return entry >= argz + argz_len ? NULL : (char *) entry; + } + else + if (argz_len > 0) + return argz; + else + return 0; +} +# undef __argz_next +# define __argz_next(argz, len, entry) argz_next__ (argz, len, entry) +#endif /* !_LIBC && !HAVE___ARGZ_NEXT */ + + +/* Return number of bits set in X. */ +static inline int +pop (int x) +{ + /* We assume that no more than 16 bits are used. */ + x = ((x & ~0x5555) >> 1) + (x & 0x5555); + x = ((x & ~0x3333) >> 2) + (x & 0x3333); + x = ((x >> 4) + x) & 0x0f0f; + x = ((x >> 8) + x) & 0xff; + + return x; +} + + +struct loaded_l10nfile * +_nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list, + const char *dirlist, size_t dirlist_len, + int mask, const char *language, const char *territory, + const char *codeset, const char *normalized_codeset, + const char *modifier, const char *special, + const char *sponsor, const char *revision, + const char *filename, int do_allocate) +{ + char *abs_filename; + struct loaded_l10nfile **lastp; + struct loaded_l10nfile *retval; + char *cp; + size_t dirlist_count; + size_t entries; + int cnt; + + /* If LANGUAGE contains an absolute directory specification, we ignore + DIRLIST. */ + if (IS_ABSOLUTE_PATH (language)) + dirlist_len = 0; + + /* Allocate room for the full file name. */ + abs_filename = (char *) malloc (dirlist_len + + strlen (language) + + ((mask & TERRITORY) != 0 + ? strlen (territory) + 1 : 0) + + ((mask & XPG_CODESET) != 0 + ? strlen (codeset) + 1 : 0) + + ((mask & XPG_NORM_CODESET) != 0 + ? strlen (normalized_codeset) + 1 : 0) + + (((mask & XPG_MODIFIER) != 0 + || (mask & CEN_AUDIENCE) != 0) + ? strlen (modifier) + 1 : 0) + + ((mask & CEN_SPECIAL) != 0 + ? strlen (special) + 1 : 0) + + (((mask & CEN_SPONSOR) != 0 + || (mask & CEN_REVISION) != 0) + ? (1 + ((mask & CEN_SPONSOR) != 0 + ? strlen (sponsor) : 0) + + ((mask & CEN_REVISION) != 0 + ? strlen (revision) + 1 : 0)) : 0) + + 1 + strlen (filename) + 1); + + if (abs_filename == NULL) + return NULL; + + /* Construct file name. */ + cp = abs_filename; + if (dirlist_len > 0) + { + memcpy (cp, dirlist, dirlist_len); + __argz_stringify (cp, dirlist_len, PATH_SEPARATOR); + cp += dirlist_len; + cp[-1] = '/'; + } + + cp = stpcpy (cp, language); + + if ((mask & TERRITORY) != 0) + { + *cp++ = '_'; + cp = stpcpy (cp, territory); + } + if ((mask & XPG_CODESET) != 0) + { + *cp++ = '.'; + cp = stpcpy (cp, codeset); + } + if ((mask & XPG_NORM_CODESET) != 0) + { + *cp++ = '.'; + cp = stpcpy (cp, normalized_codeset); + } + if ((mask & (XPG_MODIFIER | CEN_AUDIENCE)) != 0) + { + /* This component can be part of both syntaces but has different + leading characters. For CEN we use `+', else `@'. */ + *cp++ = (mask & CEN_AUDIENCE) != 0 ? '+' : '@'; + cp = stpcpy (cp, modifier); + } + if ((mask & CEN_SPECIAL) != 0) + { + *cp++ = '+'; + cp = stpcpy (cp, special); + } + if ((mask & (CEN_SPONSOR | CEN_REVISION)) != 0) + { + *cp++ = ','; + if ((mask & CEN_SPONSOR) != 0) + cp = stpcpy (cp, sponsor); + if ((mask & CEN_REVISION) != 0) + { + *cp++ = '_'; + cp = stpcpy (cp, revision); + } + } + + *cp++ = '/'; + stpcpy (cp, filename); + + /* Look in list of already loaded domains whether it is already + available. */ + lastp = l10nfile_list; + for (retval = *l10nfile_list; retval != NULL; retval = retval->next) + if (retval->filename != NULL) + { + int compare = strcmp (retval->filename, abs_filename); + if (compare == 0) + /* We found it! */ + break; + if (compare < 0) + { + /* It's not in the list. */ + retval = NULL; + break; + } + + lastp = &retval->next; + } + + if (retval != NULL || do_allocate == 0) + { + free (abs_filename); + return retval; + } + + dirlist_count = (dirlist_len > 0 ? __argz_count (dirlist, dirlist_len) : 1); + + /* Allocate a new loaded_l10nfile. */ + retval = + (struct loaded_l10nfile *) + malloc (sizeof (*retval) + + (((dirlist_count << pop (mask)) + (dirlist_count > 1 ? 1 : 0)) + * sizeof (struct loaded_l10nfile *))); + if (retval == NULL) + return NULL; + + retval->filename = abs_filename; + + /* We set retval->data to NULL here; it is filled in later. + Setting retval->decided to 1 here means that retval does not + correspond to a real file (dirlist_count > 1) or is not worth + looking up (if an unnormalized codeset was specified). */ + retval->decided = (dirlist_count > 1 + || ((mask & XPG_CODESET) != 0 + && (mask & XPG_NORM_CODESET) != 0)); + retval->data = NULL; + + retval->next = *lastp; + *lastp = retval; + + entries = 0; + /* Recurse to fill the inheritance list of RETVAL. + If the DIRLIST is a real list (i.e. DIRLIST_COUNT > 1), the RETVAL + entry does not correspond to a real file; retval->filename contains + colons. In this case we loop across all elements of DIRLIST and + across all bit patterns dominated by MASK. + If the DIRLIST is a single directory or entirely redundant (i.e. + DIRLIST_COUNT == 1), we loop across all bit patterns dominated by + MASK, excluding MASK itself. + In either case, we loop down from MASK to 0. This has the effect + that the extra bits in the locale name are dropped in this order: + first the modifier, then the territory, then the codeset, then the + normalized_codeset. */ + for (cnt = dirlist_count > 1 ? mask : mask - 1; cnt >= 0; --cnt) + if ((cnt & ~mask) == 0 + && ((cnt & CEN_SPECIFIC) == 0 || (cnt & XPG_SPECIFIC) == 0) + && ((cnt & XPG_CODESET) == 0 || (cnt & XPG_NORM_CODESET) == 0)) + { + if (dirlist_count > 1) + { + /* Iterate over all elements of the DIRLIST. */ + char *dir = NULL; + + while ((dir = __argz_next ((char *) dirlist, dirlist_len, dir)) + != NULL) + retval->successor[entries++] + = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, + cnt, language, territory, codeset, + normalized_codeset, modifier, special, + sponsor, revision, filename, 1); + } + else + retval->successor[entries++] + = _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, + cnt, language, territory, codeset, + normalized_codeset, modifier, special, + sponsor, revision, filename, 1); + } + retval->successor[entries] = NULL; + + return retval; +} + +/* Normalize codeset name. There is no standard for the codeset + names. Normalization allows the user to use any of the common + names. The return value is dynamically allocated and has to be + freed by the caller. */ +const char * +_nl_normalize_codeset (const char *codeset, size_t name_len) +{ + int len = 0; + int only_digit = 1; + char *retval; + char *wp; + size_t cnt; + + for (cnt = 0; cnt < name_len; ++cnt) + if (isalnum ((unsigned char) codeset[cnt])) + { + ++len; + + if (isalpha ((unsigned char) codeset[cnt])) + only_digit = 0; + } + + retval = (char *) malloc ((only_digit ? 3 : 0) + len + 1); + + if (retval != NULL) + { + if (only_digit) + wp = stpcpy (retval, "iso"); + else + wp = retval; + + for (cnt = 0; cnt < name_len; ++cnt) + if (isalpha ((unsigned char) codeset[cnt])) + *wp++ = tolower ((unsigned char) codeset[cnt]); + else if (isdigit ((unsigned char) codeset[cnt])) + *wp++ = codeset[cnt]; + + *wp = '\0'; + } + + return (const char *) retval; +} + + +/* @@ begin of epilog @@ */ + +/* We don't want libintl.a to depend on any other library. So we + avoid the non-standard function stpcpy. In GNU C Library this + function is available, though. Also allow the symbol HAVE_STPCPY + to be defined. */ +#if !_LIBC && !HAVE_STPCPY +static char * +stpcpy (char *dest, const char *src) +{ + while ((*dest++ = *src++) != '\0') + /* Do nothing. */ ; + return dest - 1; +} +#endif diff --git a/intl/langprefs.c b/intl/langprefs.c new file mode 100644 index 0000000..20137b6 --- /dev/null +++ b/intl/langprefs.c @@ -0,0 +1,130 @@ +/* Determine the user's language preferences. + Copyright (C) 2004-2005 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* Written by Bruno Haible . */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include + +#if HAVE_CFPREFERENCESCOPYAPPVALUE +# include +# include +# include +# include +# include +extern void _nl_locale_name_canonicalize (char *name); +#endif + +/* Determine the user's language preferences, as a colon separated list of + locale names in XPG syntax + language[_territory[.codeset]][@modifier] + The result must not be freed; it is statically allocated. + The LANGUAGE environment variable does not need to be considered; it is + already taken into account by the caller. */ + +const char * +_nl_language_preferences_default (void) +{ +#if HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ + { + /* Cache the preferences list, since CoreFoundation calls are expensive. */ + static const char *cached_languages; + static int cache_initialized; + + if (!cache_initialized) + { + CFTypeRef preferences = + CFPreferencesCopyAppValue (CFSTR ("AppleLanguages"), + kCFPreferencesCurrentApplication); + if (preferences != NULL + && CFGetTypeID (preferences) == CFArrayGetTypeID ()) + { + CFArrayRef prefArray = (CFArrayRef)preferences; + int n = CFArrayGetCount (prefArray); + char buf[256]; + size_t size = 0; + int i; + + for (i = 0; i < n; i++) + { + CFTypeRef element = CFArrayGetValueAtIndex (prefArray, i); + if (element != NULL + && CFGetTypeID (element) == CFStringGetTypeID () + && CFStringGetCString ((CFStringRef)element, + buf, sizeof (buf), + kCFStringEncodingASCII)) + { + _nl_locale_name_canonicalize (buf); + size += strlen (buf) + 1; + /* Most GNU programs use msgids in English and don't ship + an en.mo message catalog. Therefore when we see "en" + in the preferences list, arrange for gettext() to + return the msgid, and ignore all further elements of + the preferences list. */ + if (strcmp (buf, "en") == 0) + break; + } + else + break; + } + if (size > 0) + { + char *languages = (char *) malloc (size); + + if (languages != NULL) + { + char *p = languages; + + for (i = 0; i < n; i++) + { + CFTypeRef element = + CFArrayGetValueAtIndex (prefArray, i); + if (element != NULL + && CFGetTypeID (element) == CFStringGetTypeID () + && CFStringGetCString ((CFStringRef)element, + buf, sizeof (buf), + kCFStringEncodingASCII)) + { + _nl_locale_name_canonicalize (buf); + strcpy (p, buf); + p += strlen (buf); + *p++ = ':'; + if (strcmp (buf, "en") == 0) + break; + } + else + break; + } + *--p = '\0'; + + cached_languages = languages; + } + } + } + cache_initialized = 1; + } + if (cached_languages != NULL) + return cached_languages; + } +#endif + + return NULL; +} diff --git a/intl/libgnuintl.h.in b/intl/libgnuintl.h.in new file mode 100644 index 0000000..d1df17e --- /dev/null +++ b/intl/libgnuintl.h.in @@ -0,0 +1,383 @@ +/* Message catalogs for internationalization. + Copyright (C) 1995-1997, 2000-2004 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _LIBINTL_H +#define _LIBINTL_H 1 + +#include + +/* The LC_MESSAGES locale category is the category used by the functions + gettext() and dgettext(). It is specified in POSIX, but not in ANSI C. + On systems that don't define it, use an arbitrary value instead. + On Solaris, defines __LOCALE_H (or _LOCALE_H in Solaris 2.5) + then includes (i.e. this file!) and then only defines + LC_MESSAGES. To avoid a redefinition warning, don't define LC_MESSAGES + in this case. */ +#if !defined LC_MESSAGES && !(defined __LOCALE_H || (defined _LOCALE_H && defined __sun)) +# define LC_MESSAGES 1729 +#endif + +/* We define an additional symbol to signal that we use the GNU + implementation of gettext. */ +#define __USE_GNU_GETTEXT 1 + +/* Provide information about the supported file formats. Returns the + maximum minor revision number supported for a given major revision. */ +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) \ + ((major) == 0 || (major) == 1 ? 1 : -1) + +/* Resolve a platform specific conflict on DJGPP. GNU gettext takes + precedence over _conio_gettext. */ +#ifdef __DJGPP__ +# undef gettext +#endif + +#ifdef __cplusplus +extern "C" { +#endif + + +/* We redirect the functions to those prefixed with "libintl_". This is + necessary, because some systems define gettext/textdomain/... in the C + library (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer). + If we used the unprefixed names, there would be cases where the + definition in the C library would override the one in the libintl.so + shared library. Recall that on ELF systems, the symbols are looked + up in the following order: + 1. in the executable, + 2. in the shared libraries specified on the link command line, in order, + 3. in the dependencies of the shared libraries specified on the link + command line, + 4. in the dlopen()ed shared libraries, in the order in which they were + dlopen()ed. + The definition in the C library would override the one in libintl.so if + either + * -lc is given on the link command line and -lintl isn't, or + * -lc is given on the link command line before -lintl, or + * libintl.so is a dependency of a dlopen()ed shared library but not + linked to the executable at link time. + Since Solaris gettext() behaves differently than GNU gettext(), this + would be unacceptable. + + The redirection happens by default through macros in C, so that &gettext + is independent of the compilation unit, but through inline functions in + C++, in order not to interfere with the name mangling of class fields or + class methods called 'gettext'. */ + +/* The user can define _INTL_REDIRECT_INLINE or _INTL_REDIRECT_MACROS. + If he doesn't, we choose the method. A third possible method is + _INTL_REDIRECT_ASM, supported only by GCC. */ +#if !(defined _INTL_REDIRECT_INLINE || defined _INTL_REDIRECT_MACROS) +# if __GNUC__ >= 2 && !defined __APPLE_CC__ && !defined __MINGW32__ && !(__GNUC__ == 2 && defined _AIX) && (defined __STDC__ || defined __cplusplus) +# define _INTL_REDIRECT_ASM +# else +# ifdef __cplusplus +# define _INTL_REDIRECT_INLINE +# else +# define _INTL_REDIRECT_MACROS +# endif +# endif +#endif +/* Auxiliary macros. */ +#ifdef _INTL_REDIRECT_ASM +# define _INTL_ASM(cname) __asm__ (_INTL_ASMNAME (__USER_LABEL_PREFIX__, #cname)) +# define _INTL_ASMNAME(prefix,cnamestring) _INTL_STRINGIFY (prefix) cnamestring +# define _INTL_STRINGIFY(prefix) #prefix +#else +# define _INTL_ASM(cname) +#endif + +/* Look up MSGID in the current default message catalog for the current + LC_MESSAGES locale. If not found, returns MSGID itself (the default + text). */ +#ifdef _INTL_REDIRECT_INLINE +extern char *libintl_gettext (const char *__msgid); +static inline char *gettext (const char *__msgid) +{ + return libintl_gettext (__msgid); +} +#else +#ifdef _INTL_REDIRECT_MACROS +# define gettext libintl_gettext +#endif +extern char *gettext (const char *__msgid) + _INTL_ASM (libintl_gettext); +#endif + +/* Look up MSGID in the DOMAINNAME message catalog for the current + LC_MESSAGES locale. */ +#ifdef _INTL_REDIRECT_INLINE +extern char *libintl_dgettext (const char *__domainname, const char *__msgid); +static inline char *dgettext (const char *__domainname, const char *__msgid) +{ + return libintl_dgettext (__domainname, __msgid); +} +#else +#ifdef _INTL_REDIRECT_MACROS +# define dgettext libintl_dgettext +#endif +extern char *dgettext (const char *__domainname, const char *__msgid) + _INTL_ASM (libintl_dgettext); +#endif + +/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY + locale. */ +#ifdef _INTL_REDIRECT_INLINE +extern char *libintl_dcgettext (const char *__domainname, const char *__msgid, + int __category); +static inline char *dcgettext (const char *__domainname, const char *__msgid, + int __category) +{ + return libintl_dcgettext (__domainname, __msgid, __category); +} +#else +#ifdef _INTL_REDIRECT_MACROS +# define dcgettext libintl_dcgettext +#endif +extern char *dcgettext (const char *__domainname, const char *__msgid, + int __category) + _INTL_ASM (libintl_dcgettext); +#endif + + +/* Similar to `gettext' but select the plural form corresponding to the + number N. */ +#ifdef _INTL_REDIRECT_INLINE +extern char *libintl_ngettext (const char *__msgid1, const char *__msgid2, + unsigned long int __n); +static inline char *ngettext (const char *__msgid1, const char *__msgid2, + unsigned long int __n) +{ + return libintl_ngettext (__msgid1, __msgid2, __n); +} +#else +#ifdef _INTL_REDIRECT_MACROS +# define ngettext libintl_ngettext +#endif +extern char *ngettext (const char *__msgid1, const char *__msgid2, + unsigned long int __n) + _INTL_ASM (libintl_ngettext); +#endif + +/* Similar to `dgettext' but select the plural form corresponding to the + number N. */ +#ifdef _INTL_REDIRECT_INLINE +extern char *libintl_dngettext (const char *__domainname, const char *__msgid1, + const char *__msgid2, unsigned long int __n); +static inline char *dngettext (const char *__domainname, const char *__msgid1, + const char *__msgid2, unsigned long int __n) +{ + return libintl_dngettext (__domainname, __msgid1, __msgid2, __n); +} +#else +#ifdef _INTL_REDIRECT_MACROS +# define dngettext libintl_dngettext +#endif +extern char *dngettext (const char *__domainname, + const char *__msgid1, const char *__msgid2, + unsigned long int __n) + _INTL_ASM (libintl_dngettext); +#endif + +/* Similar to `dcgettext' but select the plural form corresponding to the + number N. */ +#ifdef _INTL_REDIRECT_INLINE +extern char *libintl_dcngettext (const char *__domainname, + const char *__msgid1, const char *__msgid2, + unsigned long int __n, int __category); +static inline char *dcngettext (const char *__domainname, + const char *__msgid1, const char *__msgid2, + unsigned long int __n, int __category) +{ + return libintl_dcngettext (__domainname, __msgid1, __msgid2, __n, __category); +} +#else +#ifdef _INTL_REDIRECT_MACROS +# define dcngettext libintl_dcngettext +#endif +extern char *dcngettext (const char *__domainname, + const char *__msgid1, const char *__msgid2, + unsigned long int __n, int __category) + _INTL_ASM (libintl_dcngettext); +#endif + + +/* Set the current default message catalog to DOMAINNAME. + If DOMAINNAME is null, return the current default. + If DOMAINNAME is "", reset to the default of "messages". */ +#ifdef _INTL_REDIRECT_INLINE +extern char *libintl_textdomain (const char *__domainname); +static inline char *textdomain (const char *__domainname) +{ + return libintl_textdomain (__domainname); +} +#else +#ifdef _INTL_REDIRECT_MACROS +# define textdomain libintl_textdomain +#endif +extern char *textdomain (const char *__domainname) + _INTL_ASM (libintl_textdomain); +#endif + +/* Specify that the DOMAINNAME message catalog will be found + in DIRNAME rather than in the system locale data base. */ +#ifdef _INTL_REDIRECT_INLINE +extern char *libintl_bindtextdomain (const char *__domainname, + const char *__dirname); +static inline char *bindtextdomain (const char *__domainname, + const char *__dirname) +{ + return libintl_bindtextdomain (__domainname, __dirname); +} +#else +#ifdef _INTL_REDIRECT_MACROS +# define bindtextdomain libintl_bindtextdomain +#endif +extern char *bindtextdomain (const char *__domainname, const char *__dirname) + _INTL_ASM (libintl_bindtextdomain); +#endif + +/* Specify the character encoding in which the messages from the + DOMAINNAME message catalog will be returned. */ +#ifdef _INTL_REDIRECT_INLINE +extern char *libintl_bind_textdomain_codeset (const char *__domainname, + const char *__codeset); +static inline char *bind_textdomain_codeset (const char *__domainname, + const char *__codeset) +{ + return libintl_bind_textdomain_codeset (__domainname, __codeset); +} +#else +#ifdef _INTL_REDIRECT_MACROS +# define bind_textdomain_codeset libintl_bind_textdomain_codeset +#endif +extern char *bind_textdomain_codeset (const char *__domainname, + const char *__codeset) + _INTL_ASM (libintl_bind_textdomain_codeset); +#endif + + +/* Support for format strings with positions in *printf(), following the + POSIX/XSI specification. + Note: These replacements for the *printf() functions are visible only + in source files that #include or #include "gettext.h". + Packages that use *printf() in source files that don't refer to _() + or gettext() but for which the format string could be the return value + of _() or gettext() need to add this #include. Oh well. */ + +#if !@HAVE_POSIX_PRINTF@ + +#include +#include + +/* Get va_list. */ +#if __STDC__ || defined __cplusplus || defined _MSC_VER +# include +#else +# include +#endif + +#undef fprintf +#define fprintf libintl_fprintf +extern int fprintf (FILE *, const char *, ...); +#undef vfprintf +#define vfprintf libintl_vfprintf +extern int vfprintf (FILE *, const char *, va_list); + +#undef printf +#define printf libintl_printf +extern int printf (const char *, ...); +#undef vprintf +#define vprintf libintl_vprintf +extern int vprintf (const char *, va_list); + +#undef sprintf +#define sprintf libintl_sprintf +extern int sprintf (char *, const char *, ...); +#undef vsprintf +#define vsprintf libintl_vsprintf +extern int vsprintf (char *, const char *, va_list); + +#if @HAVE_SNPRINTF@ + +#undef snprintf +#define snprintf libintl_snprintf +extern int snprintf (char *, size_t, const char *, ...); +#undef vsnprintf +#define vsnprintf libintl_vsnprintf +extern int vsnprintf (char *, size_t, const char *, va_list); + +#endif + +#if @HAVE_ASPRINTF@ + +#undef asprintf +#define asprintf libintl_asprintf +extern int asprintf (char **, const char *, ...); +#undef vasprintf +#define vasprintf libintl_vasprintf +extern int vasprintf (char **, const char *, va_list); + +#endif + +#if @HAVE_WPRINTF@ + +#undef fwprintf +#define fwprintf libintl_fwprintf +extern int fwprintf (FILE *, const wchar_t *, ...); +#undef vfwprintf +#define vfwprintf libintl_vfwprintf +extern int vfwprintf (FILE *, const wchar_t *, va_list); + +#undef wprintf +#define wprintf libintl_wprintf +extern int wprintf (const wchar_t *, ...); +#undef vwprintf +#define vwprintf libintl_vwprintf +extern int vwprintf (const wchar_t *, va_list); + +#undef swprintf +#define swprintf libintl_swprintf +extern int swprintf (wchar_t *, size_t, const wchar_t *, ...); +#undef vswprintf +#define vswprintf libintl_vswprintf +extern int vswprintf (wchar_t *, size_t, const wchar_t *, va_list); + +#endif + +#endif + + +/* Support for relocatable packages. */ + +/* Sets the original and the current installation prefix of the package. + Relocation simply replaces a pathname starting with the original prefix + by the corresponding pathname with the current prefix instead. Both + prefixes should be directory names without trailing slash (i.e. use "" + instead of "/"). */ +#define libintl_set_relocation_prefix libintl_set_relocation_prefix +extern void + libintl_set_relocation_prefix (const char *orig_prefix, + const char *curr_prefix); + + +#ifdef __cplusplus +} +#endif + +#endif /* libintl.h */ diff --git a/intl/loadinfo.h b/intl/loadinfo.h new file mode 100644 index 0000000..d6408f2 --- /dev/null +++ b/intl/loadinfo.h @@ -0,0 +1,145 @@ +/* Copyright (C) 1996-1999, 2000-2003 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Ulrich Drepper , 1996. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _LOADINFO_H +#define _LOADINFO_H 1 + +/* Declarations of locale dependent catalog lookup functions. + Implemented in + + localealias.c Possibly replace a locale name by another. + explodename.c Split a locale name into its various fields. + l10nflist.c Generate a list of filenames of possible message catalogs. + finddomain.c Find and open the relevant message catalogs. + + The main function _nl_find_domain() in finddomain.c is declared + in gettextP.h. + */ + +#ifndef internal_function +# define internal_function +#endif + +/* Tell the compiler when a conditional or integer expression is + almost always true or almost always false. */ +#ifndef HAVE_BUILTIN_EXPECT +# define __builtin_expect(expr, val) (expr) +#endif + +/* Separator in PATH like lists of pathnames. */ +#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__ + /* Win32, OS/2, DOS */ +# define PATH_SEPARATOR ';' +#else + /* Unix */ +# define PATH_SEPARATOR ':' +#endif + +/* Encoding of locale name parts. */ +#define CEN_REVISION 1 +#define CEN_SPONSOR 2 +#define CEN_SPECIAL 4 +#define XPG_NORM_CODESET 8 +#define XPG_CODESET 16 +#define TERRITORY 32 +#define CEN_AUDIENCE 64 +#define XPG_MODIFIER 128 + +#define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE) +#define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER) + + +struct loaded_l10nfile +{ + const char *filename; + int decided; + + const void *data; + + struct loaded_l10nfile *next; + struct loaded_l10nfile *successor[1]; +}; + + +/* Normalize codeset name. There is no standard for the codeset + names. Normalization allows the user to use any of the common + names. The return value is dynamically allocated and has to be + freed by the caller. */ +extern const char *_nl_normalize_codeset (const char *codeset, + size_t name_len); + +/* Lookup a locale dependent file. + *L10NFILE_LIST denotes a pool of lookup results of locale dependent + files of the same kind, sorted in decreasing order of ->filename. + DIRLIST and DIRLIST_LEN are an argz list of directories in which to + look, containing at least one directory (i.e. DIRLIST_LEN > 0). + MASK, LANGUAGE, TERRITORY, CODESET, NORMALIZED_CODESET, MODIFIER, + SPECIAL, SPONSOR, REVISION are the pieces of the locale name, as + produced by _nl_explode_name(). FILENAME is the filename suffix. + The return value is the lookup result, either found in *L10NFILE_LIST, + or - if DO_ALLOCATE is nonzero - freshly allocated, or possibly NULL. + If the return value is non-NULL, it is added to *L10NFILE_LIST, and + its ->next field denotes the chaining inside *L10NFILE_LIST, and + furthermore its ->successor[] field contains a list of other lookup + results from which this lookup result inherits. */ +extern struct loaded_l10nfile * +_nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list, + const char *dirlist, size_t dirlist_len, int mask, + const char *language, const char *territory, + const char *codeset, const char *normalized_codeset, + const char *modifier, const char *special, + const char *sponsor, const char *revision, + const char *filename, int do_allocate); + +/* Lookup the real locale name for a locale alias NAME, or NULL if + NAME is not a locale alias (but possibly a real locale name). + The return value is statically allocated and must not be freed. */ +extern const char *_nl_expand_alias (const char *name); + +/* Split a locale name NAME into its pieces: language, modifier, + territory, codeset, special, sponsor, revision. + NAME gets destructively modified: NUL bytes are inserted here and + there. *LANGUAGE gets assigned NAME. Each of *MODIFIER, *TERRITORY, + *CODESET, *SPECIAL, *SPONSOR, *REVISION gets assigned either a + pointer into the old NAME string, or NULL. *NORMALIZED_CODESET + gets assigned the expanded *CODESET, if it is different from *CODESET; + this one is dynamically allocated and has to be freed by the caller. + The return value is a bitmask, where each bit corresponds to one + filled-in value: + XPG_MODIFIER, CEN_AUDIENCE for *MODIFIER, + TERRITORY for *TERRITORY, + XPG_CODESET for *CODESET, + XPG_NORM_CODESET for *NORMALIZED_CODESET, + CEN_SPECIAL for *SPECIAL, + CEN_SPONSOR for *SPONSOR, + CEN_REVISION for *REVISION. + */ +extern int _nl_explode_name (char *name, const char **language, + const char **modifier, const char **territory, + const char **codeset, + const char **normalized_codeset, + const char **special, const char **sponsor, + const char **revision); + +/* Split a locale name NAME into a leading language part and all the + rest. Return a pointer to the first character after the language, + i.e. to the first byte of the rest. */ +extern char *_nl_find_language (const char *name); + +#endif /* loadinfo.h */ diff --git a/intl/loadmsgcat.c b/intl/loadmsgcat.c new file mode 100644 index 0000000..0d59ad8 --- /dev/null +++ b/intl/loadmsgcat.c @@ -0,0 +1,1420 @@ +/* Load needed message catalogs. + Copyright (C) 1995-1999, 2000-2004 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* Tell glibc's to provide a prototype for mempcpy(). + This must come before because may include + , and once has been included, it's too late. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include +#include +#include +#include + +#ifdef __GNUC__ +# undef alloca +# define alloca __builtin_alloca +# define HAVE_ALLOCA 1 +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# if defined HAVE_ALLOCA_H || defined _LIBC +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca +char *alloca (); +# endif +# endif +# endif +# endif +#endif + +#include +#include + +#if defined HAVE_UNISTD_H || defined _LIBC +# include +#endif + +#ifdef _LIBC +# include +# include +#endif + +#if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ + || (defined _LIBC && defined _POSIX_MAPPED_FILES) +# include +# undef HAVE_MMAP +# define HAVE_MMAP 1 +#else +# undef HAVE_MMAP +#endif + +#if defined HAVE_STDINT_H_WITH_UINTMAX || defined _LIBC +# include +#endif +#if defined HAVE_INTTYPES_H || defined _LIBC +# include +#endif + +#include "gmo.h" +#include "gettextP.h" +#include "hash-string.h" +#include "plural-exp.h" + +#ifdef _LIBC +# include "../locale/localeinfo.h" +#endif + +/* Provide fallback values for macros that ought to be defined in . + Note that our fallback values need not be literal strings, because we don't + use them with preprocessor string concatenation. */ +#if !defined PRId8 || PRI_MACROS_BROKEN +# undef PRId8 +# define PRId8 "d" +#endif +#if !defined PRIi8 || PRI_MACROS_BROKEN +# undef PRIi8 +# define PRIi8 "i" +#endif +#if !defined PRIo8 || PRI_MACROS_BROKEN +# undef PRIo8 +# define PRIo8 "o" +#endif +#if !defined PRIu8 || PRI_MACROS_BROKEN +# undef PRIu8 +# define PRIu8 "u" +#endif +#if !defined PRIx8 || PRI_MACROS_BROKEN +# undef PRIx8 +# define PRIx8 "x" +#endif +#if !defined PRIX8 || PRI_MACROS_BROKEN +# undef PRIX8 +# define PRIX8 "X" +#endif +#if !defined PRId16 || PRI_MACROS_BROKEN +# undef PRId16 +# define PRId16 "d" +#endif +#if !defined PRIi16 || PRI_MACROS_BROKEN +# undef PRIi16 +# define PRIi16 "i" +#endif +#if !defined PRIo16 || PRI_MACROS_BROKEN +# undef PRIo16 +# define PRIo16 "o" +#endif +#if !defined PRIu16 || PRI_MACROS_BROKEN +# undef PRIu16 +# define PRIu16 "u" +#endif +#if !defined PRIx16 || PRI_MACROS_BROKEN +# undef PRIx16 +# define PRIx16 "x" +#endif +#if !defined PRIX16 || PRI_MACROS_BROKEN +# undef PRIX16 +# define PRIX16 "X" +#endif +#if !defined PRId32 || PRI_MACROS_BROKEN +# undef PRId32 +# define PRId32 "d" +#endif +#if !defined PRIi32 || PRI_MACROS_BROKEN +# undef PRIi32 +# define PRIi32 "i" +#endif +#if !defined PRIo32 || PRI_MACROS_BROKEN +# undef PRIo32 +# define PRIo32 "o" +#endif +#if !defined PRIu32 || PRI_MACROS_BROKEN +# undef PRIu32 +# define PRIu32 "u" +#endif +#if !defined PRIx32 || PRI_MACROS_BROKEN +# undef PRIx32 +# define PRIx32 "x" +#endif +#if !defined PRIX32 || PRI_MACROS_BROKEN +# undef PRIX32 +# define PRIX32 "X" +#endif +#if !defined PRId64 || PRI_MACROS_BROKEN +# undef PRId64 +# define PRId64 (sizeof (long) == 8 ? "ld" : "lld") +#endif +#if !defined PRIi64 || PRI_MACROS_BROKEN +# undef PRIi64 +# define PRIi64 (sizeof (long) == 8 ? "li" : "lli") +#endif +#if !defined PRIo64 || PRI_MACROS_BROKEN +# undef PRIo64 +# define PRIo64 (sizeof (long) == 8 ? "lo" : "llo") +#endif +#if !defined PRIu64 || PRI_MACROS_BROKEN +# undef PRIu64 +# define PRIu64 (sizeof (long) == 8 ? "lu" : "llu") +#endif +#if !defined PRIx64 || PRI_MACROS_BROKEN +# undef PRIx64 +# define PRIx64 (sizeof (long) == 8 ? "lx" : "llx") +#endif +#if !defined PRIX64 || PRI_MACROS_BROKEN +# undef PRIX64 +# define PRIX64 (sizeof (long) == 8 ? "lX" : "llX") +#endif +#if !defined PRIdLEAST8 || PRI_MACROS_BROKEN +# undef PRIdLEAST8 +# define PRIdLEAST8 "d" +#endif +#if !defined PRIiLEAST8 || PRI_MACROS_BROKEN +# undef PRIiLEAST8 +# define PRIiLEAST8 "i" +#endif +#if !defined PRIoLEAST8 || PRI_MACROS_BROKEN +# undef PRIoLEAST8 +# define PRIoLEAST8 "o" +#endif +#if !defined PRIuLEAST8 || PRI_MACROS_BROKEN +# undef PRIuLEAST8 +# define PRIuLEAST8 "u" +#endif +#if !defined PRIxLEAST8 || PRI_MACROS_BROKEN +# undef PRIxLEAST8 +# define PRIxLEAST8 "x" +#endif +#if !defined PRIXLEAST8 || PRI_MACROS_BROKEN +# undef PRIXLEAST8 +# define PRIXLEAST8 "X" +#endif +#if !defined PRIdLEAST16 || PRI_MACROS_BROKEN +# undef PRIdLEAST16 +# define PRIdLEAST16 "d" +#endif +#if !defined PRIiLEAST16 || PRI_MACROS_BROKEN +# undef PRIiLEAST16 +# define PRIiLEAST16 "i" +#endif +#if !defined PRIoLEAST16 || PRI_MACROS_BROKEN +# undef PRIoLEAST16 +# define PRIoLEAST16 "o" +#endif +#if !defined PRIuLEAST16 || PRI_MACROS_BROKEN +# undef PRIuLEAST16 +# define PRIuLEAST16 "u" +#endif +#if !defined PRIxLEAST16 || PRI_MACROS_BROKEN +# undef PRIxLEAST16 +# define PRIxLEAST16 "x" +#endif +#if !defined PRIXLEAST16 || PRI_MACROS_BROKEN +# undef PRIXLEAST16 +# define PRIXLEAST16 "X" +#endif +#if !defined PRIdLEAST32 || PRI_MACROS_BROKEN +# undef PRIdLEAST32 +# define PRIdLEAST32 "d" +#endif +#if !defined PRIiLEAST32 || PRI_MACROS_BROKEN +# undef PRIiLEAST32 +# define PRIiLEAST32 "i" +#endif +#if !defined PRIoLEAST32 || PRI_MACROS_BROKEN +# undef PRIoLEAST32 +# define PRIoLEAST32 "o" +#endif +#if !defined PRIuLEAST32 || PRI_MACROS_BROKEN +# undef PRIuLEAST32 +# define PRIuLEAST32 "u" +#endif +#if !defined PRIxLEAST32 || PRI_MACROS_BROKEN +# undef PRIxLEAST32 +# define PRIxLEAST32 "x" +#endif +#if !defined PRIXLEAST32 || PRI_MACROS_BROKEN +# undef PRIXLEAST32 +# define PRIXLEAST32 "X" +#endif +#if !defined PRIdLEAST64 || PRI_MACROS_BROKEN +# undef PRIdLEAST64 +# define PRIdLEAST64 PRId64 +#endif +#if !defined PRIiLEAST64 || PRI_MACROS_BROKEN +# undef PRIiLEAST64 +# define PRIiLEAST64 PRIi64 +#endif +#if !defined PRIoLEAST64 || PRI_MACROS_BROKEN +# undef PRIoLEAST64 +# define PRIoLEAST64 PRIo64 +#endif +#if !defined PRIuLEAST64 || PRI_MACROS_BROKEN +# undef PRIuLEAST64 +# define PRIuLEAST64 PRIu64 +#endif +#if !defined PRIxLEAST64 || PRI_MACROS_BROKEN +# undef PRIxLEAST64 +# define PRIxLEAST64 PRIx64 +#endif +#if !defined PRIXLEAST64 || PRI_MACROS_BROKEN +# undef PRIXLEAST64 +# define PRIXLEAST64 PRIX64 +#endif +#if !defined PRIdFAST8 || PRI_MACROS_BROKEN +# undef PRIdFAST8 +# define PRIdFAST8 "d" +#endif +#if !defined PRIiFAST8 || PRI_MACROS_BROKEN +# undef PRIiFAST8 +# define PRIiFAST8 "i" +#endif +#if !defined PRIoFAST8 || PRI_MACROS_BROKEN +# undef PRIoFAST8 +# define PRIoFAST8 "o" +#endif +#if !defined PRIuFAST8 || PRI_MACROS_BROKEN +# undef PRIuFAST8 +# define PRIuFAST8 "u" +#endif +#if !defined PRIxFAST8 || PRI_MACROS_BROKEN +# undef PRIxFAST8 +# define PRIxFAST8 "x" +#endif +#if !defined PRIXFAST8 || PRI_MACROS_BROKEN +# undef PRIXFAST8 +# define PRIXFAST8 "X" +#endif +#if !defined PRIdFAST16 || PRI_MACROS_BROKEN +# undef PRIdFAST16 +# define PRIdFAST16 "d" +#endif +#if !defined PRIiFAST16 || PRI_MACROS_BROKEN +# undef PRIiFAST16 +# define PRIiFAST16 "i" +#endif +#if !defined PRIoFAST16 || PRI_MACROS_BROKEN +# undef PRIoFAST16 +# define PRIoFAST16 "o" +#endif +#if !defined PRIuFAST16 || PRI_MACROS_BROKEN +# undef PRIuFAST16 +# define PRIuFAST16 "u" +#endif +#if !defined PRIxFAST16 || PRI_MACROS_BROKEN +# undef PRIxFAST16 +# define PRIxFAST16 "x" +#endif +#if !defined PRIXFAST16 || PRI_MACROS_BROKEN +# undef PRIXFAST16 +# define PRIXFAST16 "X" +#endif +#if !defined PRIdFAST32 || PRI_MACROS_BROKEN +# undef PRIdFAST32 +# define PRIdFAST32 "d" +#endif +#if !defined PRIiFAST32 || PRI_MACROS_BROKEN +# undef PRIiFAST32 +# define PRIiFAST32 "i" +#endif +#if !defined PRIoFAST32 || PRI_MACROS_BROKEN +# undef PRIoFAST32 +# define PRIoFAST32 "o" +#endif +#if !defined PRIuFAST32 || PRI_MACROS_BROKEN +# undef PRIuFAST32 +# define PRIuFAST32 "u" +#endif +#if !defined PRIxFAST32 || PRI_MACROS_BROKEN +# undef PRIxFAST32 +# define PRIxFAST32 "x" +#endif +#if !defined PRIXFAST32 || PRI_MACROS_BROKEN +# undef PRIXFAST32 +# define PRIXFAST32 "X" +#endif +#if !defined PRIdFAST64 || PRI_MACROS_BROKEN +# undef PRIdFAST64 +# define PRIdFAST64 PRId64 +#endif +#if !defined PRIiFAST64 || PRI_MACROS_BROKEN +# undef PRIiFAST64 +# define PRIiFAST64 PRIi64 +#endif +#if !defined PRIoFAST64 || PRI_MACROS_BROKEN +# undef PRIoFAST64 +# define PRIoFAST64 PRIo64 +#endif +#if !defined PRIuFAST64 || PRI_MACROS_BROKEN +# undef PRIuFAST64 +# define PRIuFAST64 PRIu64 +#endif +#if !defined PRIxFAST64 || PRI_MACROS_BROKEN +# undef PRIxFAST64 +# define PRIxFAST64 PRIx64 +#endif +#if !defined PRIXFAST64 || PRI_MACROS_BROKEN +# undef PRIXFAST64 +# define PRIXFAST64 PRIX64 +#endif +#if !defined PRIdMAX || PRI_MACROS_BROKEN +# undef PRIdMAX +# define PRIdMAX (sizeof (uintmax_t) == sizeof (long) ? "ld" : "lld") +#endif +#if !defined PRIiMAX || PRI_MACROS_BROKEN +# undef PRIiMAX +# define PRIiMAX (sizeof (uintmax_t) == sizeof (long) ? "li" : "lli") +#endif +#if !defined PRIoMAX || PRI_MACROS_BROKEN +# undef PRIoMAX +# define PRIoMAX (sizeof (uintmax_t) == sizeof (long) ? "lo" : "llo") +#endif +#if !defined PRIuMAX || PRI_MACROS_BROKEN +# undef PRIuMAX +# define PRIuMAX (sizeof (uintmax_t) == sizeof (long) ? "lu" : "llu") +#endif +#if !defined PRIxMAX || PRI_MACROS_BROKEN +# undef PRIxMAX +# define PRIxMAX (sizeof (uintmax_t) == sizeof (long) ? "lx" : "llx") +#endif +#if !defined PRIXMAX || PRI_MACROS_BROKEN +# undef PRIXMAX +# define PRIXMAX (sizeof (uintmax_t) == sizeof (long) ? "lX" : "llX") +#endif +#if !defined PRIdPTR || PRI_MACROS_BROKEN +# undef PRIdPTR +# define PRIdPTR \ + (sizeof (void *) == sizeof (long) ? "ld" : \ + sizeof (void *) == sizeof (int) ? "d" : \ + "lld") +#endif +#if !defined PRIiPTR || PRI_MACROS_BROKEN +# undef PRIiPTR +# define PRIiPTR \ + (sizeof (void *) == sizeof (long) ? "li" : \ + sizeof (void *) == sizeof (int) ? "i" : \ + "lli") +#endif +#if !defined PRIoPTR || PRI_MACROS_BROKEN +# undef PRIoPTR +# define PRIoPTR \ + (sizeof (void *) == sizeof (long) ? "lo" : \ + sizeof (void *) == sizeof (int) ? "o" : \ + "llo") +#endif +#if !defined PRIuPTR || PRI_MACROS_BROKEN +# undef PRIuPTR +# define PRIuPTR \ + (sizeof (void *) == sizeof (long) ? "lu" : \ + sizeof (void *) == sizeof (int) ? "u" : \ + "llu") +#endif +#if !defined PRIxPTR || PRI_MACROS_BROKEN +# undef PRIxPTR +# define PRIxPTR \ + (sizeof (void *) == sizeof (long) ? "lx" : \ + sizeof (void *) == sizeof (int) ? "x" : \ + "llx") +#endif +#if !defined PRIXPTR || PRI_MACROS_BROKEN +# undef PRIXPTR +# define PRIXPTR \ + (sizeof (void *) == sizeof (long) ? "lX" : \ + sizeof (void *) == sizeof (int) ? "X" : \ + "llX") +#endif + +/* @@ end of prolog @@ */ + +#ifdef _LIBC +/* Rename the non ISO C functions. This is required by the standard + because some ISO C functions will require linking with this object + file and the name space must not be polluted. */ +# define open __open +# define close __close +# define read __read +# define mmap __mmap +# define munmap __munmap +#endif + +/* For those losing systems which don't have `alloca' we have to add + some additional code emulating it. */ +#ifdef HAVE_ALLOCA +# define freea(p) /* nothing */ +#else +# define alloca(n) malloc (n) +# define freea(p) free (p) +#endif + +/* For systems that distinguish between text and binary I/O. + O_BINARY is usually declared in . */ +#if !defined O_BINARY && defined _O_BINARY + /* For MSC-compatible compilers. */ +# define O_BINARY _O_BINARY +# define O_TEXT _O_TEXT +#endif +#ifdef __BEOS__ + /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */ +# undef O_BINARY +# undef O_TEXT +#endif +/* On reasonable systems, binary I/O is the default. */ +#ifndef O_BINARY +# define O_BINARY 0 +#endif + + +/* We need a sign, whether a new catalog was loaded, which can be associated + with all translations. This is important if the translations are + cached by one of GCC's features. */ +int _nl_msg_cat_cntr; + + +/* Expand a system dependent string segment. Return NULL if unsupported. */ +static const char * +get_sysdep_segment_value (const char *name) +{ + /* Test for an ISO C 99 section 7.8.1 format string directive. + Syntax: + P R I { d | i | o | u | x | X } + { { | LEAST | FAST } { 8 | 16 | 32 | 64 } | MAX | PTR } */ + /* We don't use a table of 14 times 6 'const char *' strings here, because + data relocations cost startup time. */ + if (name[0] == 'P' && name[1] == 'R' && name[2] == 'I') + { + if (name[3] == 'd' || name[3] == 'i' || name[3] == 'o' || name[3] == 'u' + || name[3] == 'x' || name[3] == 'X') + { + if (name[4] == '8' && name[5] == '\0') + { + if (name[3] == 'd') + return PRId8; + if (name[3] == 'i') + return PRIi8; + if (name[3] == 'o') + return PRIo8; + if (name[3] == 'u') + return PRIu8; + if (name[3] == 'x') + return PRIx8; + if (name[3] == 'X') + return PRIX8; + abort (); + } + if (name[4] == '1' && name[5] == '6' && name[6] == '\0') + { + if (name[3] == 'd') + return PRId16; + if (name[3] == 'i') + return PRIi16; + if (name[3] == 'o') + return PRIo16; + if (name[3] == 'u') + return PRIu16; + if (name[3] == 'x') + return PRIx16; + if (name[3] == 'X') + return PRIX16; + abort (); + } + if (name[4] == '3' && name[5] == '2' && name[6] == '\0') + { + if (name[3] == 'd') + return PRId32; + if (name[3] == 'i') + return PRIi32; + if (name[3] == 'o') + return PRIo32; + if (name[3] == 'u') + return PRIu32; + if (name[3] == 'x') + return PRIx32; + if (name[3] == 'X') + return PRIX32; + abort (); + } + if (name[4] == '6' && name[5] == '4' && name[6] == '\0') + { + if (name[3] == 'd') + return PRId64; + if (name[3] == 'i') + return PRIi64; + if (name[3] == 'o') + return PRIo64; + if (name[3] == 'u') + return PRIu64; + if (name[3] == 'x') + return PRIx64; + if (name[3] == 'X') + return PRIX64; + abort (); + } + if (name[4] == 'L' && name[5] == 'E' && name[6] == 'A' + && name[7] == 'S' && name[8] == 'T') + { + if (name[9] == '8' && name[10] == '\0') + { + if (name[3] == 'd') + return PRIdLEAST8; + if (name[3] == 'i') + return PRIiLEAST8; + if (name[3] == 'o') + return PRIoLEAST8; + if (name[3] == 'u') + return PRIuLEAST8; + if (name[3] == 'x') + return PRIxLEAST8; + if (name[3] == 'X') + return PRIXLEAST8; + abort (); + } + if (name[9] == '1' && name[10] == '6' && name[11] == '\0') + { + if (name[3] == 'd') + return PRIdLEAST16; + if (name[3] == 'i') + return PRIiLEAST16; + if (name[3] == 'o') + return PRIoLEAST16; + if (name[3] == 'u') + return PRIuLEAST16; + if (name[3] == 'x') + return PRIxLEAST16; + if (name[3] == 'X') + return PRIXLEAST16; + abort (); + } + if (name[9] == '3' && name[10] == '2' && name[11] == '\0') + { + if (name[3] == 'd') + return PRIdLEAST32; + if (name[3] == 'i') + return PRIiLEAST32; + if (name[3] == 'o') + return PRIoLEAST32; + if (name[3] == 'u') + return PRIuLEAST32; + if (name[3] == 'x') + return PRIxLEAST32; + if (name[3] == 'X') + return PRIXLEAST32; + abort (); + } + if (name[9] == '6' && name[10] == '4' && name[11] == '\0') + { + if (name[3] == 'd') + return PRIdLEAST64; + if (name[3] == 'i') + return PRIiLEAST64; + if (name[3] == 'o') + return PRIoLEAST64; + if (name[3] == 'u') + return PRIuLEAST64; + if (name[3] == 'x') + return PRIxLEAST64; + if (name[3] == 'X') + return PRIXLEAST64; + abort (); + } + } + if (name[4] == 'F' && name[5] == 'A' && name[6] == 'S' + && name[7] == 'T') + { + if (name[8] == '8' && name[9] == '\0') + { + if (name[3] == 'd') + return PRIdFAST8; + if (name[3] == 'i') + return PRIiFAST8; + if (name[3] == 'o') + return PRIoFAST8; + if (name[3] == 'u') + return PRIuFAST8; + if (name[3] == 'x') + return PRIxFAST8; + if (name[3] == 'X') + return PRIXFAST8; + abort (); + } + if (name[8] == '1' && name[9] == '6' && name[10] == '\0') + { + if (name[3] == 'd') + return PRIdFAST16; + if (name[3] == 'i') + return PRIiFAST16; + if (name[3] == 'o') + return PRIoFAST16; + if (name[3] == 'u') + return PRIuFAST16; + if (name[3] == 'x') + return PRIxFAST16; + if (name[3] == 'X') + return PRIXFAST16; + abort (); + } + if (name[8] == '3' && name[9] == '2' && name[10] == '\0') + { + if (name[3] == 'd') + return PRIdFAST32; + if (name[3] == 'i') + return PRIiFAST32; + if (name[3] == 'o') + return PRIoFAST32; + if (name[3] == 'u') + return PRIuFAST32; + if (name[3] == 'x') + return PRIxFAST32; + if (name[3] == 'X') + return PRIXFAST32; + abort (); + } + if (name[8] == '6' && name[9] == '4' && name[10] == '\0') + { + if (name[3] == 'd') + return PRIdFAST64; + if (name[3] == 'i') + return PRIiFAST64; + if (name[3] == 'o') + return PRIoFAST64; + if (name[3] == 'u') + return PRIuFAST64; + if (name[3] == 'x') + return PRIxFAST64; + if (name[3] == 'X') + return PRIXFAST64; + abort (); + } + } + if (name[4] == 'M' && name[5] == 'A' && name[6] == 'X' + && name[7] == '\0') + { + if (name[3] == 'd') + return PRIdMAX; + if (name[3] == 'i') + return PRIiMAX; + if (name[3] == 'o') + return PRIoMAX; + if (name[3] == 'u') + return PRIuMAX; + if (name[3] == 'x') + return PRIxMAX; + if (name[3] == 'X') + return PRIXMAX; + abort (); + } + if (name[4] == 'P' && name[5] == 'T' && name[6] == 'R' + && name[7] == '\0') + { + if (name[3] == 'd') + return PRIdPTR; + if (name[3] == 'i') + return PRIiPTR; + if (name[3] == 'o') + return PRIoPTR; + if (name[3] == 'u') + return PRIuPTR; + if (name[3] == 'x') + return PRIxPTR; + if (name[3] == 'X') + return PRIXPTR; + abort (); + } + } + } + /* Test for a glibc specific printf() format directive flag. */ + if (name[0] == 'I' && name[1] == '\0') + { +#if defined _LIBC || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) + /* The 'I' flag, in numeric format directives, replaces ASCII digits + with the 'outdigits' defined in the LC_CTYPE locale facet. This is + used for Farsi (Persian) and maybe Arabic. */ + return "I"; +#else + return ""; +#endif + } + /* Other system dependent strings are not valid. */ + return NULL; +} + +/* Initialize the codeset dependent parts of an opened message catalog. + Return the header entry. */ +const char * +internal_function +_nl_init_domain_conv (struct loaded_l10nfile *domain_file, + struct loaded_domain *domain, + struct binding *domainbinding) +{ + /* Find out about the character set the file is encoded with. + This can be found (in textual form) in the entry "". If this + entry does not exist or if this does not contain the `charset=' + information, we will assume the charset matches the one the + current locale and we don't have to perform any conversion. */ + char *nullentry; + size_t nullentrylen; + + /* Preinitialize fields, to avoid recursion during _nl_find_msg. */ + domain->codeset_cntr = + (domainbinding != NULL ? domainbinding->codeset_cntr : 0); +#ifdef _LIBC + domain->conv = (__gconv_t) -1; +#else +# if HAVE_ICONV + domain->conv = (iconv_t) -1; +# endif +#endif + domain->conv_tab = NULL; + + /* Get the header entry. */ + nullentry = _nl_find_msg (domain_file, domainbinding, "", &nullentrylen); + + if (nullentry != NULL) + { +#if defined _LIBC || HAVE_ICONV + const char *charsetstr; + + charsetstr = strstr (nullentry, "charset="); + if (charsetstr != NULL) + { + size_t len; + char *charset; + const char *outcharset; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + + charset = (char *) alloca (len + 1); +# if defined _LIBC || HAVE_MEMPCPY + *((char *) mempcpy (charset, charsetstr, len)) = '\0'; +# else + memcpy (charset, charsetstr, len); + charset[len] = '\0'; +# endif + + /* The output charset should normally be determined by the + locale. But sometimes the locale is not used or not correctly + set up, so we provide a possibility for the user to override + this. Moreover, the value specified through + bind_textdomain_codeset overrides both. */ + if (domainbinding != NULL && domainbinding->codeset != NULL) + outcharset = domainbinding->codeset; + else + { + outcharset = getenv ("OUTPUT_CHARSET"); + if (outcharset == NULL || outcharset[0] == '\0') + { +# ifdef _LIBC + outcharset = _NL_CURRENT (LC_CTYPE, CODESET); +# else +# if HAVE_ICONV + extern const char *locale_charset (void); + outcharset = locale_charset (); +# endif +# endif + } + } + +# ifdef _LIBC + /* We always want to use transliteration. */ + outcharset = norm_add_slashes (outcharset, "TRANSLIT"); + charset = norm_add_slashes (charset, NULL); + if (__gconv_open (outcharset, charset, &domain->conv, + GCONV_AVOID_NOCONV) + != __GCONV_OK) + domain->conv = (__gconv_t) -1; +# else +# if HAVE_ICONV + /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5, + we want to use transliteration. */ +# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 \ + || _LIBICONV_VERSION >= 0x0105 + if (strchr (outcharset, '/') == NULL) + { + char *tmp; + + len = strlen (outcharset); + tmp = (char *) alloca (len + 10 + 1); + memcpy (tmp, outcharset, len); + memcpy (tmp + len, "//TRANSLIT", 10 + 1); + outcharset = tmp; + + domain->conv = iconv_open (outcharset, charset); + + freea (outcharset); + } + else +# endif + domain->conv = iconv_open (outcharset, charset); +# endif +# endif + + freea (charset); + } +#endif /* _LIBC || HAVE_ICONV */ + } + + return nullentry; +} + +/* Frees the codeset dependent parts of an opened message catalog. */ +void +internal_function +_nl_free_domain_conv (struct loaded_domain *domain) +{ + if (domain->conv_tab != NULL && domain->conv_tab != (char **) -1) + free (domain->conv_tab); + +#ifdef _LIBC + if (domain->conv != (__gconv_t) -1) + __gconv_close (domain->conv); +#else +# if HAVE_ICONV + if (domain->conv != (iconv_t) -1) + iconv_close (domain->conv); +# endif +#endif +} + +/* Load the message catalogs specified by FILENAME. If it is no valid + message catalog do nothing. */ +void +internal_function +_nl_load_domain (struct loaded_l10nfile *domain_file, + struct binding *domainbinding) +{ + int fd; + size_t size; +#ifdef _LIBC + struct stat64 st; +#else + struct stat st; +#endif + struct mo_file_header *data = (struct mo_file_header *) -1; + int use_mmap = 0; + struct loaded_domain *domain; + int revision; + const char *nullentry; + + domain_file->decided = 1; + domain_file->data = NULL; + + /* Note that it would be useless to store domainbinding in domain_file + because domainbinding might be == NULL now but != NULL later (after + a call to bind_textdomain_codeset). */ + + /* If the record does not represent a valid locale the FILENAME + might be NULL. This can happen when according to the given + specification the locale file name is different for XPG and CEN + syntax. */ + if (domain_file->filename == NULL) + return; + + /* Try to open the addressed file. */ + fd = open (domain_file->filename, O_RDONLY | O_BINARY); + if (fd == -1) + return; + + /* We must know about the size of the file. */ + if ( +#ifdef _LIBC + __builtin_expect (fstat64 (fd, &st) != 0, 0) +#else + __builtin_expect (fstat (fd, &st) != 0, 0) +#endif + || __builtin_expect ((size = (size_t) st.st_size) != st.st_size, 0) + || __builtin_expect (size < sizeof (struct mo_file_header), 0)) + { + /* Something went wrong. */ + close (fd); + return; + } + +#ifdef HAVE_MMAP + /* Now we are ready to load the file. If mmap() is available we try + this first. If not available or it failed we try to load it. */ + data = (struct mo_file_header *) mmap (NULL, size, PROT_READ, + MAP_PRIVATE, fd, 0); + + if (__builtin_expect (data != (struct mo_file_header *) -1, 1)) + { + /* mmap() call was successful. */ + close (fd); + use_mmap = 1; + } +#endif + + /* If the data is not yet available (i.e. mmap'ed) we try to load + it manually. */ + if (data == (struct mo_file_header *) -1) + { + size_t to_read; + char *read_ptr; + + data = (struct mo_file_header *) malloc (size); + if (data == NULL) + return; + + to_read = size; + read_ptr = (char *) data; + do + { + long int nb = (long int) read (fd, read_ptr, to_read); + if (nb <= 0) + { +#ifdef EINTR + if (nb == -1 && errno == EINTR) + continue; +#endif + close (fd); + return; + } + read_ptr += nb; + to_read -= nb; + } + while (to_read > 0); + + close (fd); + } + + /* Using the magic number we can test whether it really is a message + catalog file. */ + if (__builtin_expect (data->magic != _MAGIC && data->magic != _MAGIC_SWAPPED, + 0)) + { + /* The magic number is wrong: not a message catalog file. */ +#ifdef HAVE_MMAP + if (use_mmap) + munmap ((caddr_t) data, size); + else +#endif + free (data); + return; + } + + domain = (struct loaded_domain *) malloc (sizeof (struct loaded_domain)); + if (domain == NULL) + return; + domain_file->data = domain; + + domain->data = (char *) data; + domain->use_mmap = use_mmap; + domain->mmap_size = size; + domain->must_swap = data->magic != _MAGIC; + domain->malloced = NULL; + + /* Fill in the information about the available tables. */ + revision = W (domain->must_swap, data->revision); + /* We support only the major revisions 0 and 1. */ + switch (revision >> 16) + { + case 0: + case 1: + domain->nstrings = W (domain->must_swap, data->nstrings); + domain->orig_tab = (const struct string_desc *) + ((char *) data + W (domain->must_swap, data->orig_tab_offset)); + domain->trans_tab = (const struct string_desc *) + ((char *) data + W (domain->must_swap, data->trans_tab_offset)); + domain->hash_size = W (domain->must_swap, data->hash_tab_size); + domain->hash_tab = + (domain->hash_size > 2 + ? (const nls_uint32 *) + ((char *) data + W (domain->must_swap, data->hash_tab_offset)) + : NULL); + domain->must_swap_hash_tab = domain->must_swap; + + /* Now dispatch on the minor revision. */ + switch (revision & 0xffff) + { + case 0: + domain->n_sysdep_strings = 0; + domain->orig_sysdep_tab = NULL; + domain->trans_sysdep_tab = NULL; + break; + case 1: + default: + { + nls_uint32 n_sysdep_strings; + + if (domain->hash_tab == NULL) + /* This is invalid. These minor revisions need a hash table. */ + goto invalid; + + n_sysdep_strings = + W (domain->must_swap, data->n_sysdep_strings); + if (n_sysdep_strings > 0) + { + nls_uint32 n_sysdep_segments; + const struct sysdep_segment *sysdep_segments; + const char **sysdep_segment_values; + const nls_uint32 *orig_sysdep_tab; + const nls_uint32 *trans_sysdep_tab; + nls_uint32 n_inmem_sysdep_strings; + size_t memneed; + char *mem; + struct sysdep_string_desc *inmem_orig_sysdep_tab; + struct sysdep_string_desc *inmem_trans_sysdep_tab; + nls_uint32 *inmem_hash_tab; + unsigned int i, j; + + /* Get the values of the system dependent segments. */ + n_sysdep_segments = + W (domain->must_swap, data->n_sysdep_segments); + sysdep_segments = (const struct sysdep_segment *) + ((char *) data + + W (domain->must_swap, data->sysdep_segments_offset)); + sysdep_segment_values = + alloca (n_sysdep_segments * sizeof (const char *)); + for (i = 0; i < n_sysdep_segments; i++) + { + const char *name = + (char *) data + + W (domain->must_swap, sysdep_segments[i].offset); + nls_uint32 namelen = + W (domain->must_swap, sysdep_segments[i].length); + + if (!(namelen > 0 && name[namelen - 1] == '\0')) + { + freea (sysdep_segment_values); + goto invalid; + } + + sysdep_segment_values[i] = get_sysdep_segment_value (name); + } + + orig_sysdep_tab = (const nls_uint32 *) + ((char *) data + + W (domain->must_swap, data->orig_sysdep_tab_offset)); + trans_sysdep_tab = (const nls_uint32 *) + ((char *) data + + W (domain->must_swap, data->trans_sysdep_tab_offset)); + + /* Compute the amount of additional memory needed for the + system dependent strings and the augmented hash table. + At the same time, also drop string pairs which refer to + an undefined system dependent segment. */ + n_inmem_sysdep_strings = 0; + memneed = domain->hash_size * sizeof (nls_uint32); + for (i = 0; i < n_sysdep_strings; i++) + { + int valid = 1; + size_t needs[2]; + + for (j = 0; j < 2; j++) + { + const struct sysdep_string *sysdep_string = + (const struct sysdep_string *) + ((char *) data + + W (domain->must_swap, + j == 0 + ? orig_sysdep_tab[i] + : trans_sysdep_tab[i])); + size_t need = 0; + const struct segment_pair *p = sysdep_string->segments; + + if (W (domain->must_swap, p->sysdepref) != SEGMENTS_END) + for (p = sysdep_string->segments;; p++) + { + nls_uint32 sysdepref; + + need += W (domain->must_swap, p->segsize); + + sysdepref = W (domain->must_swap, p->sysdepref); + if (sysdepref == SEGMENTS_END) + break; + + if (sysdepref >= n_sysdep_segments) + { + /* Invalid. */ + freea (sysdep_segment_values); + goto invalid; + } + + if (sysdep_segment_values[sysdepref] == NULL) + { + /* This particular string pair is invalid. */ + valid = 0; + break; + } + + need += strlen (sysdep_segment_values[sysdepref]); + } + + needs[j] = need; + if (!valid) + break; + } + + if (valid) + { + n_inmem_sysdep_strings++; + memneed += needs[0] + needs[1]; + } + } + memneed += 2 * n_inmem_sysdep_strings + * sizeof (struct sysdep_string_desc); + + if (n_inmem_sysdep_strings > 0) + { + unsigned int k; + + /* Allocate additional memory. */ + mem = (char *) malloc (memneed); + if (mem == NULL) + goto invalid; + + domain->malloced = mem; + inmem_orig_sysdep_tab = (struct sysdep_string_desc *) mem; + mem += n_inmem_sysdep_strings + * sizeof (struct sysdep_string_desc); + inmem_trans_sysdep_tab = (struct sysdep_string_desc *) mem; + mem += n_inmem_sysdep_strings + * sizeof (struct sysdep_string_desc); + inmem_hash_tab = (nls_uint32 *) mem; + mem += domain->hash_size * sizeof (nls_uint32); + + /* Compute the system dependent strings. */ + k = 0; + for (i = 0; i < n_sysdep_strings; i++) + { + int valid = 1; + + for (j = 0; j < 2; j++) + { + const struct sysdep_string *sysdep_string = + (const struct sysdep_string *) + ((char *) data + + W (domain->must_swap, + j == 0 + ? orig_sysdep_tab[i] + : trans_sysdep_tab[i])); + const struct segment_pair *p = + sysdep_string->segments; + + if (W (domain->must_swap, p->sysdepref) + != SEGMENTS_END) + for (p = sysdep_string->segments;; p++) + { + nls_uint32 sysdepref; + + sysdepref = + W (domain->must_swap, p->sysdepref); + if (sysdepref == SEGMENTS_END) + break; + + if (sysdep_segment_values[sysdepref] == NULL) + { + /* This particular string pair is + invalid. */ + valid = 0; + break; + } + } + + if (!valid) + break; + } + + if (valid) + { + for (j = 0; j < 2; j++) + { + const struct sysdep_string *sysdep_string = + (const struct sysdep_string *) + ((char *) data + + W (domain->must_swap, + j == 0 + ? orig_sysdep_tab[i] + : trans_sysdep_tab[i])); + const char *static_segments = + (char *) data + + W (domain->must_swap, sysdep_string->offset); + const struct segment_pair *p = + sysdep_string->segments; + + /* Concatenate the segments, and fill + inmem_orig_sysdep_tab[k] (for j == 0) and + inmem_trans_sysdep_tab[k] (for j == 1). */ + + struct sysdep_string_desc *inmem_tab_entry = + (j == 0 + ? inmem_orig_sysdep_tab + : inmem_trans_sysdep_tab) + + k; + + if (W (domain->must_swap, p->sysdepref) + == SEGMENTS_END) + { + /* Only one static segment. */ + inmem_tab_entry->length = + W (domain->must_swap, p->segsize); + inmem_tab_entry->pointer = static_segments; + } + else + { + inmem_tab_entry->pointer = mem; + + for (p = sysdep_string->segments;; p++) + { + nls_uint32 segsize = + W (domain->must_swap, p->segsize); + nls_uint32 sysdepref = + W (domain->must_swap, p->sysdepref); + size_t n; + + if (segsize > 0) + { + memcpy (mem, static_segments, segsize); + mem += segsize; + static_segments += segsize; + } + + if (sysdepref == SEGMENTS_END) + break; + + n = strlen (sysdep_segment_values[sysdepref]); + memcpy (mem, sysdep_segment_values[sysdepref], n); + mem += n; + } + + inmem_tab_entry->length = + mem - inmem_tab_entry->pointer; + } + } + + k++; + } + } + if (k != n_inmem_sysdep_strings) + abort (); + + /* Compute the augmented hash table. */ + for (i = 0; i < domain->hash_size; i++) + inmem_hash_tab[i] = + W (domain->must_swap_hash_tab, domain->hash_tab[i]); + for (i = 0; i < n_inmem_sysdep_strings; i++) + { + const char *msgid = inmem_orig_sysdep_tab[i].pointer; + nls_uint32 hash_val = hash_string (msgid); + nls_uint32 idx = hash_val % domain->hash_size; + nls_uint32 incr = + 1 + (hash_val % (domain->hash_size - 2)); + + for (;;) + { + if (inmem_hash_tab[idx] == 0) + { + /* Hash table entry is empty. Use it. */ + inmem_hash_tab[idx] = 1 + domain->nstrings + i; + break; + } + + if (idx >= domain->hash_size - incr) + idx -= domain->hash_size - incr; + else + idx += incr; + } + } + + domain->n_sysdep_strings = n_inmem_sysdep_strings; + domain->orig_sysdep_tab = inmem_orig_sysdep_tab; + domain->trans_sysdep_tab = inmem_trans_sysdep_tab; + + domain->hash_tab = inmem_hash_tab; + domain->must_swap_hash_tab = 0; + } + else + { + domain->n_sysdep_strings = 0; + domain->orig_sysdep_tab = NULL; + domain->trans_sysdep_tab = NULL; + } + + freea (sysdep_segment_values); + } + else + { + domain->n_sysdep_strings = 0; + domain->orig_sysdep_tab = NULL; + domain->trans_sysdep_tab = NULL; + } + } + break; + } + break; + default: + /* This is an invalid revision. */ + invalid: + /* This is an invalid .mo file. */ + if (domain->malloced) + free (domain->malloced); +#ifdef HAVE_MMAP + if (use_mmap) + munmap ((caddr_t) data, size); + else +#endif + free (data); + free (domain); + domain_file->data = NULL; + return; + } + + /* Now initialize the character set converter from the character set + the file is encoded with (found in the header entry) to the domain's + specified character set or the locale's character set. */ + nullentry = _nl_init_domain_conv (domain_file, domain, domainbinding); + + /* Also look for a plural specification. */ + EXTRACT_PLURAL_EXPRESSION (nullentry, &domain->plural, &domain->nplurals); +} + + +#ifdef _LIBC +void +internal_function +_nl_unload_domain (struct loaded_domain *domain) +{ + if (domain->plural != &__gettext_germanic_plural) + __gettext_free_exp (domain->plural); + + _nl_free_domain_conv (domain); + + if (domain->malloced) + free (domain->malloced); + +# ifdef _POSIX_MAPPED_FILES + if (domain->use_mmap) + munmap ((caddr_t) domain->data, domain->mmap_size); + else +# endif /* _POSIX_MAPPED_FILES */ + free ((void *) domain->data); + + free (domain); +} +#endif diff --git a/intl/localcharset.c b/intl/localcharset.c new file mode 100644 index 0000000..1252f3f --- /dev/null +++ b/intl/localcharset.c @@ -0,0 +1,409 @@ +/* Determine a canonical name for the current locale's character encoding. + + Copyright (C) 2000-2004 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* Written by Bruno Haible . */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +/* Specification. */ +#include "localcharset.h" + +#if HAVE_STDDEF_H +# include +#endif + +#include +#if HAVE_STRING_H +# include +#else +# include +#endif +#if HAVE_STDLIB_H +# include +#endif + +#if defined _WIN32 || defined __WIN32__ +# undef WIN32 /* avoid warning on mingw32 */ +# define WIN32 +#endif + +#if defined __EMX__ +/* Assume EMX program runs on OS/2, even if compiled under DOS. */ +# define OS2 +#endif + +#if !defined WIN32 +# if HAVE_LANGINFO_CODESET +# include +# else +# if HAVE_SETLOCALE +# include +# endif +# endif +#elif defined WIN32 +# define WIN32_LEAN_AND_MEAN +# include +#endif +#if defined OS2 +# define INCL_DOS +# include +#endif + +#if ENABLE_RELOCATABLE +# include "relocatable.h" +#else +# define relocate(pathname) (pathname) +#endif + +#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ + /* Win32, Cygwin, OS/2, DOS */ +# define ISSLASH(C) ((C) == '/' || (C) == '\\') +#endif + +#ifndef DIRECTORY_SEPARATOR +# define DIRECTORY_SEPARATOR '/' +#endif + +#ifndef ISSLASH +# define ISSLASH(C) ((C) == DIRECTORY_SEPARATOR) +#endif + +#if HAVE_DECL_GETC_UNLOCKED +# undef getc +# define getc getc_unlocked +#endif + +/* The following static variable is declared 'volatile' to avoid a + possible multithread problem in the function get_charset_aliases. If we + are running in a threaded environment, and if two threads initialize + 'charset_aliases' simultaneously, both will produce the same value, + and everything will be ok if the two assignments to 'charset_aliases' + are atomic. But I don't know what will happen if the two assignments mix. */ +#if __STDC__ != 1 +# define volatile /* empty */ +#endif +/* Pointer to the contents of the charset.alias file, if it has already been + read, else NULL. Its format is: + ALIAS_1 '\0' CANONICAL_1 '\0' ... ALIAS_n '\0' CANONICAL_n '\0' '\0' */ +static const char * volatile charset_aliases; + +/* Return a pointer to the contents of the charset.alias file. */ +static const char * +get_charset_aliases () +{ + const char *cp; + + cp = charset_aliases; + if (cp == NULL) + { +#if !(defined VMS || defined WIN32) + FILE *fp; + const char *dir; + const char *base = "charset.alias"; + char *file_name; + + /* Make it possible to override the charset.alias location. This is + necessary for running the testsuite before "make install". */ + dir = getenv ("CHARSETALIASDIR"); + if (dir == NULL || dir[0] == '\0') + dir = relocate (LIBDIR); + + /* Concatenate dir and base into freshly allocated file_name. */ + { + size_t dir_len = strlen (dir); + size_t base_len = strlen (base); + int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); + file_name = (char *) malloc (dir_len + add_slash + base_len + 1); + if (file_name != NULL) + { + memcpy (file_name, dir, dir_len); + if (add_slash) + file_name[dir_len] = DIRECTORY_SEPARATOR; + memcpy (file_name + dir_len + add_slash, base, base_len + 1); + } + } + + if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) + /* Out of memory or file not found, treat it as empty. */ + cp = ""; + else + { + /* Parse the file's contents. */ + char *res_ptr = NULL; + size_t res_size = 0; + + for (;;) + { + int c; + char buf1[50+1]; + char buf2[50+1]; + size_t l1, l2; + char *old_res_ptr; + + c = getc (fp); + if (c == EOF) + break; + if (c == '\n' || c == ' ' || c == '\t') + continue; + if (c == '#') + { + /* Skip comment, to end of line. */ + do + c = getc (fp); + while (!(c == EOF || c == '\n')); + if (c == EOF) + break; + continue; + } + ungetc (c, fp); + if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) + break; + l1 = strlen (buf1); + l2 = strlen (buf2); + old_res_ptr = res_ptr; + if (res_size == 0) + { + res_size = l1 + 1 + l2 + 1; + res_ptr = (char *) malloc (res_size + 1); + } + else + { + res_size += l1 + 1 + l2 + 1; + res_ptr = (char *) realloc (res_ptr, res_size + 1); + } + if (res_ptr == NULL) + { + /* Out of memory. */ + res_size = 0; + if (old_res_ptr != NULL) + free (old_res_ptr); + break; + } + strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); + strcpy (res_ptr + res_size - (l2 + 1), buf2); + } + fclose (fp); + if (res_size == 0) + cp = ""; + else + { + *(res_ptr + res_size) = '\0'; + cp = res_ptr; + } + } + + if (file_name != NULL) + free (file_name); + +#else + +# if defined VMS + /* To avoid the troubles of an extra file charset.alias_vms in the + sources of many GNU packages, simply inline the aliases here. */ + /* The list of encodings is taken from the OpenVMS 7.3-1 documentation + "Compaq C Run-Time Library Reference Manual for OpenVMS systems" + section 10.7 "Handling Different Character Sets". */ + cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" + "ISO8859-2" "\0" "ISO-8859-2" "\0" + "ISO8859-5" "\0" "ISO-8859-5" "\0" + "ISO8859-7" "\0" "ISO-8859-7" "\0" + "ISO8859-8" "\0" "ISO-8859-8" "\0" + "ISO8859-9" "\0" "ISO-8859-9" "\0" + /* Japanese */ + "eucJP" "\0" "EUC-JP" "\0" + "SJIS" "\0" "SHIFT_JIS" "\0" + "DECKANJI" "\0" "DEC-KANJI" "\0" + "SDECKANJI" "\0" "EUC-JP" "\0" + /* Chinese */ + "eucTW" "\0" "EUC-TW" "\0" + "DECHANYU" "\0" "DEC-HANYU" "\0" + "DECHANZI" "\0" "GB2312" "\0" + /* Korean */ + "DECKOREAN" "\0" "EUC-KR" "\0"; +# endif + +# if defined WIN32 + /* To avoid the troubles of installing a separate file in the same + directory as the DLL and of retrieving the DLL's directory at + runtime, simply inline the aliases here. */ + + cp = "CP936" "\0" "GBK" "\0" + "CP1361" "\0" "JOHAB" "\0" + "CP20127" "\0" "ASCII" "\0" + "CP20866" "\0" "KOI8-R" "\0" + "CP21866" "\0" "KOI8-RU" "\0" + "CP28591" "\0" "ISO-8859-1" "\0" + "CP28592" "\0" "ISO-8859-2" "\0" + "CP28593" "\0" "ISO-8859-3" "\0" + "CP28594" "\0" "ISO-8859-4" "\0" + "CP28595" "\0" "ISO-8859-5" "\0" + "CP28596" "\0" "ISO-8859-6" "\0" + "CP28597" "\0" "ISO-8859-7" "\0" + "CP28598" "\0" "ISO-8859-8" "\0" + "CP28599" "\0" "ISO-8859-9" "\0" + "CP28605" "\0" "ISO-8859-15" "\0"; +# endif +#endif + + charset_aliases = cp; + } + + return cp; +} + +/* Determine the current locale's character encoding, and canonicalize it + into one of the canonical names listed in config.charset. + The result must not be freed; it is statically allocated. + If the canonical name cannot be determined, the result is a non-canonical + name. */ + +#ifdef STATIC +STATIC +#endif +const char * +locale_charset () +{ + const char *codeset; + const char *aliases; + +#if !(defined WIN32 || defined OS2) + +# if HAVE_LANGINFO_CODESET + + /* Most systems support nl_langinfo (CODESET) nowadays. */ + codeset = nl_langinfo (CODESET); + +# else + + /* On old systems which lack it, use setlocale or getenv. */ + const char *locale = NULL; + + /* But most old systems don't have a complete set of locales. Some + (like SunOS 4 or DJGPP) have only the C locale. Therefore we don't + use setlocale here; it would return "C" when it doesn't support the + locale name the user has set. */ +# if HAVE_SETLOCALE && 0 + locale = setlocale (LC_CTYPE, NULL); +# endif + if (locale == NULL || locale[0] == '\0') + { + locale = getenv ("LC_ALL"); + if (locale == NULL || locale[0] == '\0') + { + locale = getenv ("LC_CTYPE"); + if (locale == NULL || locale[0] == '\0') + locale = getenv ("LANG"); + } + } + + /* On some old systems, one used to set locale = "iso8859_1". On others, + you set it to "language_COUNTRY.charset". In any case, we resolve it + through the charset.alias file. */ + codeset = locale; + +# endif + +#elif defined WIN32 + + static char buf[2 + 10 + 1]; + + /* Woe32 has a function returning the locale's codepage as a number. */ + sprintf (buf, "CP%u", GetACP ()); + codeset = buf; + +#elif defined OS2 + + const char *locale; + static char buf[2 + 10 + 1]; + ULONG cp[3]; + ULONG cplen; + + /* Allow user to override the codeset, as set in the operating system, + with standard language environment variables. */ + locale = getenv ("LC_ALL"); + if (locale == NULL || locale[0] == '\0') + { + locale = getenv ("LC_CTYPE"); + if (locale == NULL || locale[0] == '\0') + locale = getenv ("LANG"); + } + if (locale != NULL && locale[0] != '\0') + { + /* If the locale name contains an encoding after the dot, return it. */ + const char *dot = strchr (locale, '.'); + + if (dot != NULL) + { + const char *modifier; + + dot++; + /* Look for the possible @... trailer and remove it, if any. */ + modifier = strchr (dot, '@'); + if (modifier == NULL) + return dot; + if (modifier - dot < sizeof (buf)) + { + memcpy (buf, dot, modifier - dot); + buf [modifier - dot] = '\0'; + return buf; + } + } + + /* Resolve through the charset.alias file. */ + codeset = locale; + } + else + { + /* OS/2 has a function returning the locale's codepage as a number. */ + if (DosQueryCp (sizeof (cp), cp, &cplen)) + codeset = ""; + else + { + sprintf (buf, "CP%u", cp[0]); + codeset = buf; + } + } + +#endif + + if (codeset == NULL) + /* The canonical name cannot be determined. */ + codeset = ""; + + /* Resolve alias. */ + for (aliases = get_charset_aliases (); + *aliases != '\0'; + aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) + if (strcmp (codeset, aliases) == 0 + || (aliases[0] == '*' && aliases[1] == '\0')) + { + codeset = aliases + strlen (aliases) + 1; + break; + } + + /* Don't return an empty string. GNU libc and GNU libiconv interpret + the empty string as denoting "the locale's character encoding", + thus GNU libiconv would call this function a second time. */ + if (codeset[0] == '\0') + codeset = "ASCII"; + + return codeset; +} diff --git a/intl/localcharset.h b/intl/localcharset.h new file mode 100644 index 0000000..129e4a4 --- /dev/null +++ b/intl/localcharset.h @@ -0,0 +1,42 @@ +/* Determine a canonical name for the current locale's character encoding. + Copyright (C) 2000-2003 Free Software Foundation, Inc. + This file is part of the GNU CHARSET Library. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _LOCALCHARSET_H +#define _LOCALCHARSET_H + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Determine the current locale's character encoding, and canonicalize it + into one of the canonical names listed in config.charset. + The result must not be freed; it is statically allocated. + If the canonical name cannot be determined, the result is a non-canonical + name. */ +extern const char * locale_charset (void); + + +#ifdef __cplusplus +} +#endif + + +#endif /* _LOCALCHARSET_H */ diff --git a/intl/locale.alias b/intl/locale.alias new file mode 100644 index 0000000..faa6969 --- /dev/null +++ b/intl/locale.alias @@ -0,0 +1,78 @@ +# Locale name alias data base. +# Copyright (C) 1996-2001,2003 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU Library General Public License as published +# by the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. + +# The format of this file is the same as for the corresponding file of +# the X Window System, which normally can be found in +# /usr/lib/X11/locale/locale.alias +# A single line contains two fields: an alias and a substitution value. +# All entries are case independent. + +# Note: This file is far from being complete. If you have a value for +# your own site which you think might be useful for others too, share +# it with the rest of us. Send it using the `glibcbug' script to +# bugs@gnu.org. + +# Packages using this file: + +bokmal nb_NO.ISO-8859-1 +bokmål nb_NO.ISO-8859-1 +catalan ca_ES.ISO-8859-1 +croatian hr_HR.ISO-8859-2 +czech cs_CZ.ISO-8859-2 +danish da_DK.ISO-8859-1 +dansk da_DK.ISO-8859-1 +deutsch de_DE.ISO-8859-1 +dutch nl_NL.ISO-8859-1 +eesti et_EE.ISO-8859-1 +estonian et_EE.ISO-8859-1 +finnish fi_FI.ISO-8859-1 +français fr_FR.ISO-8859-1 +french fr_FR.ISO-8859-1 +galego gl_ES.ISO-8859-1 +galician gl_ES.ISO-8859-1 +german de_DE.ISO-8859-1 +greek el_GR.ISO-8859-7 +hebrew he_IL.ISO-8859-8 +hrvatski hr_HR.ISO-8859-2 +hungarian hu_HU.ISO-8859-2 +icelandic is_IS.ISO-8859-1 +italian it_IT.ISO-8859-1 +japanese ja_JP.eucJP +japanese.euc ja_JP.eucJP +ja_JP ja_JP.eucJP +ja_JP.ujis ja_JP.eucJP +japanese.sjis ja_JP.SJIS +korean ko_KR.eucKR +korean.euc ko_KR.eucKR +ko_KR ko_KR.eucKR +lithuanian lt_LT.ISO-8859-13 +no_NO nb_NO.ISO-8859-1 +no_NO.ISO-8859-1 nb_NO.ISO-8859-1 +norwegian nb_NO.ISO-8859-1 +nynorsk nn_NO.ISO-8859-1 +polish pl_PL.ISO-8859-2 +portuguese pt_PT.ISO-8859-1 +romanian ro_RO.ISO-8859-2 +russian ru_RU.ISO-8859-5 +slovak sk_SK.ISO-8859-2 +slovene sl_SI.ISO-8859-2 +slovenian sl_SI.ISO-8859-2 +spanish es_ES.ISO-8859-1 +swedish sv_SE.ISO-8859-1 +thai th_TH.TIS-620 +turkish tr_TR.ISO-8859-9 diff --git a/intl/localealias.c b/intl/localealias.c new file mode 100644 index 0000000..7a092a0 --- /dev/null +++ b/intl/localealias.c @@ -0,0 +1,414 @@ +/* Handle aliases for locale names. + Copyright (C) 1995-1999, 2000-2001, 2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* Tell glibc's to provide a prototype for mempcpy(). + This must come before because may include + , and once has been included, it's too late. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include +#if defined _LIBC || defined HAVE___FSETLOCKING +# include +#endif +#include + +#ifdef __GNUC__ +# undef alloca +# define alloca __builtin_alloca +# define HAVE_ALLOCA 1 +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# if defined HAVE_ALLOCA_H || defined _LIBC +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca +char *alloca (); +# endif +# endif +# endif +# endif +#endif + +#include +#include + +#include "gettextP.h" + +#if ENABLE_RELOCATABLE +# include "relocatable.h" +#else +# define relocate(pathname) (pathname) +#endif + +/* @@ end of prolog @@ */ + +#ifdef _LIBC +/* Rename the non ANSI C functions. This is required by the standard + because some ANSI C functions will require linking with this object + file and the name space must not be polluted. */ +# define strcasecmp __strcasecmp + +# ifndef mempcpy +# define mempcpy __mempcpy +# endif +# define HAVE_MEMPCPY 1 +# define HAVE___FSETLOCKING 1 + +/* We need locking here since we can be called from different places. */ +# include + +__libc_lock_define_initialized (static, lock); +#endif + +#ifndef internal_function +# define internal_function +#endif + +/* Some optimizations for glibc. */ +#ifdef _LIBC +# define FEOF(fp) feof_unlocked (fp) +# define FGETS(buf, n, fp) fgets_unlocked (buf, n, fp) +#else +# define FEOF(fp) feof (fp) +# define FGETS(buf, n, fp) fgets (buf, n, fp) +#endif + +/* For those losing systems which don't have `alloca' we have to add + some additional code emulating it. */ +#ifdef HAVE_ALLOCA +# define freea(p) /* nothing */ +#else +# define alloca(n) malloc (n) +# define freea(p) free (p) +#endif + +#if defined _LIBC_REENTRANT || HAVE_DECL_FGETS_UNLOCKED +# undef fgets +# define fgets(buf, len, s) fgets_unlocked (buf, len, s) +#endif +#if defined _LIBC_REENTRANT || HAVE_DECL_FEOF_UNLOCKED +# undef feof +# define feof(s) feof_unlocked (s) +#endif + + +struct alias_map +{ + const char *alias; + const char *value; +}; + + +#ifndef _LIBC +# define libc_freeres_ptr(decl) decl +#endif + +libc_freeres_ptr (static char *string_space); +static size_t string_space_act; +static size_t string_space_max; +libc_freeres_ptr (static struct alias_map *map); +static size_t nmap; +static size_t maxmap; + + +/* Prototypes for local functions. */ +static size_t read_alias_file (const char *fname, int fname_len) + internal_function; +static int extend_alias_table (void); +static int alias_compare (const struct alias_map *map1, + const struct alias_map *map2); + + +const char * +_nl_expand_alias (const char *name) +{ + static const char *locale_alias_path; + struct alias_map *retval; + const char *result = NULL; + size_t added; + +#ifdef _LIBC + __libc_lock_lock (lock); +#endif + + if (locale_alias_path == NULL) + locale_alias_path = LOCALE_ALIAS_PATH; + + do + { + struct alias_map item; + + item.alias = name; + + if (nmap > 0) + retval = (struct alias_map *) bsearch (&item, map, nmap, + sizeof (struct alias_map), + (int (*) (const void *, + const void *) + ) alias_compare); + else + retval = NULL; + + /* We really found an alias. Return the value. */ + if (retval != NULL) + { + result = retval->value; + break; + } + + /* Perhaps we can find another alias file. */ + added = 0; + while (added == 0 && locale_alias_path[0] != '\0') + { + const char *start; + + while (locale_alias_path[0] == PATH_SEPARATOR) + ++locale_alias_path; + start = locale_alias_path; + + while (locale_alias_path[0] != '\0' + && locale_alias_path[0] != PATH_SEPARATOR) + ++locale_alias_path; + + if (start < locale_alias_path) + added = read_alias_file (start, locale_alias_path - start); + } + } + while (added != 0); + +#ifdef _LIBC + __libc_lock_unlock (lock); +#endif + + return result; +} + + +static size_t +internal_function +read_alias_file (const char *fname, int fname_len) +{ + FILE *fp; + char *full_fname; + size_t added; + static const char aliasfile[] = "/locale.alias"; + + full_fname = (char *) alloca (fname_len + sizeof aliasfile); +#ifdef HAVE_MEMPCPY + mempcpy (mempcpy (full_fname, fname, fname_len), + aliasfile, sizeof aliasfile); +#else + memcpy (full_fname, fname, fname_len); + memcpy (&full_fname[fname_len], aliasfile, sizeof aliasfile); +#endif + + fp = fopen (relocate (full_fname), "r"); + freea (full_fname); + if (fp == NULL) + return 0; + +#ifdef HAVE___FSETLOCKING + /* No threads present. */ + __fsetlocking (fp, FSETLOCKING_BYCALLER); +#endif + + added = 0; + while (!FEOF (fp)) + { + /* It is a reasonable approach to use a fix buffer here because + a) we are only interested in the first two fields + b) these fields must be usable as file names and so must not + be that long + We avoid a multi-kilobyte buffer here since this would use up + stack space which we might not have if the program ran out of + memory. */ + char buf[400]; + char *alias; + char *value; + char *cp; + + if (FGETS (buf, sizeof buf, fp) == NULL) + /* EOF reached. */ + break; + + cp = buf; + /* Ignore leading white space. */ + while (isspace ((unsigned char) cp[0])) + ++cp; + + /* A leading '#' signals a comment line. */ + if (cp[0] != '\0' && cp[0] != '#') + { + alias = cp++; + while (cp[0] != '\0' && !isspace ((unsigned char) cp[0])) + ++cp; + /* Terminate alias name. */ + if (cp[0] != '\0') + *cp++ = '\0'; + + /* Now look for the beginning of the value. */ + while (isspace ((unsigned char) cp[0])) + ++cp; + + if (cp[0] != '\0') + { + size_t alias_len; + size_t value_len; + + value = cp++; + while (cp[0] != '\0' && !isspace ((unsigned char) cp[0])) + ++cp; + /* Terminate value. */ + if (cp[0] == '\n') + { + /* This has to be done to make the following test + for the end of line possible. We are looking for + the terminating '\n' which do not overwrite here. */ + *cp++ = '\0'; + *cp = '\n'; + } + else if (cp[0] != '\0') + *cp++ = '\0'; + + if (nmap >= maxmap) + if (__builtin_expect (extend_alias_table (), 0)) + return added; + + alias_len = strlen (alias) + 1; + value_len = strlen (value) + 1; + + if (string_space_act + alias_len + value_len > string_space_max) + { + /* Increase size of memory pool. */ + size_t new_size = (string_space_max + + (alias_len + value_len > 1024 + ? alias_len + value_len : 1024)); + char *new_pool = (char *) realloc (string_space, new_size); + if (new_pool == NULL) + return added; + + if (__builtin_expect (string_space != new_pool, 0)) + { + size_t i; + + for (i = 0; i < nmap; i++) + { + map[i].alias += new_pool - string_space; + map[i].value += new_pool - string_space; + } + } + + string_space = new_pool; + string_space_max = new_size; + } + + map[nmap].alias = memcpy (&string_space[string_space_act], + alias, alias_len); + string_space_act += alias_len; + + map[nmap].value = memcpy (&string_space[string_space_act], + value, value_len); + string_space_act += value_len; + + ++nmap; + ++added; + } + } + + /* Possibly not the whole line fits into the buffer. Ignore + the rest of the line. */ + while (strchr (buf, '\n') == NULL) + if (FGETS (buf, sizeof buf, fp) == NULL) + /* Make sure the inner loop will be left. The outer loop + will exit at the `feof' test. */ + break; + } + + /* Should we test for ferror()? I think we have to silently ignore + errors. --drepper */ + fclose (fp); + + if (added > 0) + qsort (map, nmap, sizeof (struct alias_map), + (int (*) (const void *, const void *)) alias_compare); + + return added; +} + + +static int +extend_alias_table () +{ + size_t new_size; + struct alias_map *new_map; + + new_size = maxmap == 0 ? 100 : 2 * maxmap; + new_map = (struct alias_map *) realloc (map, (new_size + * sizeof (struct alias_map))); + if (new_map == NULL) + /* Simply don't extend: we don't have any more core. */ + return -1; + + map = new_map; + maxmap = new_size; + return 0; +} + + +static int +alias_compare (const struct alias_map *map1, const struct alias_map *map2) +{ +#if defined _LIBC || defined HAVE_STRCASECMP + return strcasecmp (map1->alias, map2->alias); +#else + const unsigned char *p1 = (const unsigned char *) map1->alias; + const unsigned char *p2 = (const unsigned char *) map2->alias; + unsigned char c1, c2; + + if (p1 == p2) + return 0; + + do + { + /* I know this seems to be odd but the tolower() function in + some systems libc cannot handle nonalpha characters. */ + c1 = isupper (*p1) ? tolower (*p1) : *p1; + c2 = isupper (*p2) ? tolower (*p2) : *p2; + if (c1 == '\0') + break; + ++p1; + ++p2; + } + while (c1 == c2); + + return c1 - c2; +#endif +} diff --git a/intl/localename.c b/intl/localename.c new file mode 100644 index 0000000..b855ace --- /dev/null +++ b/intl/localename.c @@ -0,0 +1,1500 @@ +/* Determine the current selected locale. + Copyright (C) 1995-1999, 2000-2005 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* Written by Ulrich Drepper , 1995. */ +/* Win32 code written by Tor Lillqvist . */ +/* MacOS X code written by Bruno Haible . */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include + +#if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE +# include +# include +# if HAVE_CFLOCALECOPYCURRENT +# include +# elif HAVE_CFPREFERENCESCOPYAPPVALUE +# include +# endif +#endif + +#if defined _WIN32 || defined __WIN32__ +# undef WIN32 /* avoid warning on mingw32 */ +# define WIN32 +#endif + +#ifdef WIN32 +# define WIN32_LEAN_AND_MEAN +# include +/* List of language codes, sorted by value: + 0x01 LANG_ARABIC + 0x02 LANG_BULGARIAN + 0x03 LANG_CATALAN + 0x04 LANG_CHINESE + 0x05 LANG_CZECH + 0x06 LANG_DANISH + 0x07 LANG_GERMAN + 0x08 LANG_GREEK + 0x09 LANG_ENGLISH + 0x0a LANG_SPANISH + 0x0b LANG_FINNISH + 0x0c LANG_FRENCH + 0x0d LANG_HEBREW + 0x0e LANG_HUNGARIAN + 0x0f LANG_ICELANDIC + 0x10 LANG_ITALIAN + 0x11 LANG_JAPANESE + 0x12 LANG_KOREAN + 0x13 LANG_DUTCH + 0x14 LANG_NORWEGIAN + 0x15 LANG_POLISH + 0x16 LANG_PORTUGUESE + 0x17 LANG_RHAETO_ROMANCE + 0x18 LANG_ROMANIAN + 0x19 LANG_RUSSIAN + 0x1a LANG_CROATIAN == LANG_SERBIAN + 0x1b LANG_SLOVAK + 0x1c LANG_ALBANIAN + 0x1d LANG_SWEDISH + 0x1e LANG_THAI + 0x1f LANG_TURKISH + 0x20 LANG_URDU + 0x21 LANG_INDONESIAN + 0x22 LANG_UKRAINIAN + 0x23 LANG_BELARUSIAN + 0x24 LANG_SLOVENIAN + 0x25 LANG_ESTONIAN + 0x26 LANG_LATVIAN + 0x27 LANG_LITHUANIAN + 0x28 LANG_TAJIK + 0x29 LANG_FARSI + 0x2a LANG_VIETNAMESE + 0x2b LANG_ARMENIAN + 0x2c LANG_AZERI + 0x2d LANG_BASQUE + 0x2e LANG_SORBIAN + 0x2f LANG_MACEDONIAN + 0x30 LANG_SUTU + 0x31 LANG_TSONGA + 0x32 LANG_TSWANA + 0x33 LANG_VENDA + 0x34 LANG_XHOSA + 0x35 LANG_ZULU + 0x36 LANG_AFRIKAANS + 0x37 LANG_GEORGIAN + 0x38 LANG_FAEROESE + 0x39 LANG_HINDI + 0x3a LANG_MALTESE + 0x3b LANG_SAAMI + 0x3c LANG_GAELIC + 0x3d LANG_YIDDISH + 0x3e LANG_MALAY + 0x3f LANG_KAZAK + 0x40 LANG_KYRGYZ + 0x41 LANG_SWAHILI + 0x42 LANG_TURKMEN + 0x43 LANG_UZBEK + 0x44 LANG_TATAR + 0x45 LANG_BENGALI + 0x46 LANG_PUNJABI + 0x47 LANG_GUJARATI + 0x48 LANG_ORIYA + 0x49 LANG_TAMIL + 0x4a LANG_TELUGU + 0x4b LANG_KANNADA + 0x4c LANG_MALAYALAM + 0x4d LANG_ASSAMESE + 0x4e LANG_MARATHI + 0x4f LANG_SANSKRIT + 0x50 LANG_MONGOLIAN + 0x51 LANG_TIBETAN + 0x52 LANG_WELSH + 0x53 LANG_CAMBODIAN + 0x54 LANG_LAO + 0x55 LANG_BURMESE + 0x56 LANG_GALICIAN + 0x57 LANG_KONKANI + 0x58 LANG_MANIPURI + 0x59 LANG_SINDHI + 0x5a LANG_SYRIAC + 0x5b LANG_SINHALESE + 0x5c LANG_CHEROKEE + 0x5d LANG_INUKTITUT + 0x5e LANG_AMHARIC + 0x5f LANG_TAMAZIGHT + 0x60 LANG_KASHMIRI + 0x61 LANG_NEPALI + 0x62 LANG_FRISIAN + 0x63 LANG_PASHTO + 0x64 LANG_TAGALOG + 0x65 LANG_DIVEHI + 0x66 LANG_EDO + 0x67 LANG_FULFULDE + 0x68 LANG_HAUSA + 0x69 LANG_IBIBIO + 0x6a LANG_YORUBA + 0x70 LANG_IGBO + 0x71 LANG_KANURI + 0x72 LANG_OROMO + 0x73 LANG_TIGRINYA + 0x74 LANG_GUARANI + 0x75 LANG_HAWAIIAN + 0x76 LANG_LATIN + 0x77 LANG_SOMALI + 0x78 LANG_YI + 0x79 LANG_PAPIAMENTU +*/ +/* Mingw headers don't have latest language and sublanguage codes. */ +# ifndef LANG_AFRIKAANS +# define LANG_AFRIKAANS 0x36 +# endif +# ifndef LANG_ALBANIAN +# define LANG_ALBANIAN 0x1c +# endif +# ifndef LANG_AMHARIC +# define LANG_AMHARIC 0x5e +# endif +# ifndef LANG_ARABIC +# define LANG_ARABIC 0x01 +# endif +# ifndef LANG_ARMENIAN +# define LANG_ARMENIAN 0x2b +# endif +# ifndef LANG_ASSAMESE +# define LANG_ASSAMESE 0x4d +# endif +# ifndef LANG_AZERI +# define LANG_AZERI 0x2c +# endif +# ifndef LANG_BASQUE +# define LANG_BASQUE 0x2d +# endif +# ifndef LANG_BELARUSIAN +# define LANG_BELARUSIAN 0x23 +# endif +# ifndef LANG_BENGALI +# define LANG_BENGALI 0x45 +# endif +# ifndef LANG_BURMESE +# define LANG_BURMESE 0x55 +# endif +# ifndef LANG_CAMBODIAN +# define LANG_CAMBODIAN 0x53 +# endif +# ifndef LANG_CATALAN +# define LANG_CATALAN 0x03 +# endif +# ifndef LANG_CHEROKEE +# define LANG_CHEROKEE 0x5c +# endif +# ifndef LANG_DIVEHI +# define LANG_DIVEHI 0x65 +# endif +# ifndef LANG_EDO +# define LANG_EDO 0x66 +# endif +# ifndef LANG_ESTONIAN +# define LANG_ESTONIAN 0x25 +# endif +# ifndef LANG_FAEROESE +# define LANG_FAEROESE 0x38 +# endif +# ifndef LANG_FARSI +# define LANG_FARSI 0x29 +# endif +# ifndef LANG_FRISIAN +# define LANG_FRISIAN 0x62 +# endif +# ifndef LANG_FULFULDE +# define LANG_FULFULDE 0x67 +# endif +# ifndef LANG_GAELIC +# define LANG_GAELIC 0x3c +# endif +# ifndef LANG_GALICIAN +# define LANG_GALICIAN 0x56 +# endif +# ifndef LANG_GEORGIAN +# define LANG_GEORGIAN 0x37 +# endif +# ifndef LANG_GUARANI +# define LANG_GUARANI 0x74 +# endif +# ifndef LANG_GUJARATI +# define LANG_GUJARATI 0x47 +# endif +# ifndef LANG_HAUSA +# define LANG_HAUSA 0x68 +# endif +# ifndef LANG_HAWAIIAN +# define LANG_HAWAIIAN 0x75 +# endif +# ifndef LANG_HEBREW +# define LANG_HEBREW 0x0d +# endif +# ifndef LANG_HINDI +# define LANG_HINDI 0x39 +# endif +# ifndef LANG_IBIBIO +# define LANG_IBIBIO 0x69 +# endif +# ifndef LANG_IGBO +# define LANG_IGBO 0x70 +# endif +# ifndef LANG_INDONESIAN +# define LANG_INDONESIAN 0x21 +# endif +# ifndef LANG_INUKTITUT +# define LANG_INUKTITUT 0x5d +# endif +# ifndef LANG_KANNADA +# define LANG_KANNADA 0x4b +# endif +# ifndef LANG_KANURI +# define LANG_KANURI 0x71 +# endif +# ifndef LANG_KASHMIRI +# define LANG_KASHMIRI 0x60 +# endif +# ifndef LANG_KAZAK +# define LANG_KAZAK 0x3f +# endif +# ifndef LANG_KONKANI +# define LANG_KONKANI 0x57 +# endif +# ifndef LANG_KYRGYZ +# define LANG_KYRGYZ 0x40 +# endif +# ifndef LANG_LAO +# define LANG_LAO 0x54 +# endif +# ifndef LANG_LATIN +# define LANG_LATIN 0x76 +# endif +# ifndef LANG_LATVIAN +# define LANG_LATVIAN 0x26 +# endif +# ifndef LANG_LITHUANIAN +# define LANG_LITHUANIAN 0x27 +# endif +# ifndef LANG_MACEDONIAN +# define LANG_MACEDONIAN 0x2f +# endif +# ifndef LANG_MALAY +# define LANG_MALAY 0x3e +# endif +# ifndef LANG_MALAYALAM +# define LANG_MALAYALAM 0x4c +# endif +# ifndef LANG_MALTESE +# define LANG_MALTESE 0x3a +# endif +# ifndef LANG_MANIPURI +# define LANG_MANIPURI 0x58 +# endif +# ifndef LANG_MARATHI +# define LANG_MARATHI 0x4e +# endif +# ifndef LANG_MONGOLIAN +# define LANG_MONGOLIAN 0x50 +# endif +# ifndef LANG_NEPALI +# define LANG_NEPALI 0x61 +# endif +# ifndef LANG_ORIYA +# define LANG_ORIYA 0x48 +# endif +# ifndef LANG_OROMO +# define LANG_OROMO 0x72 +# endif +# ifndef LANG_PAPIAMENTU +# define LANG_PAPIAMENTU 0x79 +# endif +# ifndef LANG_PASHTO +# define LANG_PASHTO 0x63 +# endif +# ifndef LANG_PUNJABI +# define LANG_PUNJABI 0x46 +# endif +# ifndef LANG_RHAETO_ROMANCE +# define LANG_RHAETO_ROMANCE 0x17 +# endif +# ifndef LANG_SAAMI +# define LANG_SAAMI 0x3b +# endif +# ifndef LANG_SANSKRIT +# define LANG_SANSKRIT 0x4f +# endif +# ifndef LANG_SERBIAN +# define LANG_SERBIAN 0x1a +# endif +# ifndef LANG_SINDHI +# define LANG_SINDHI 0x59 +# endif +# ifndef LANG_SINHALESE +# define LANG_SINHALESE 0x5b +# endif +# ifndef LANG_SLOVAK +# define LANG_SLOVAK 0x1b +# endif +# ifndef LANG_SOMALI +# define LANG_SOMALI 0x77 +# endif +# ifndef LANG_SORBIAN +# define LANG_SORBIAN 0x2e +# endif +# ifndef LANG_SUTU +# define LANG_SUTU 0x30 +# endif +# ifndef LANG_SWAHILI +# define LANG_SWAHILI 0x41 +# endif +# ifndef LANG_SYRIAC +# define LANG_SYRIAC 0x5a +# endif +# ifndef LANG_TAGALOG +# define LANG_TAGALOG 0x64 +# endif +# ifndef LANG_TAJIK +# define LANG_TAJIK 0x28 +# endif +# ifndef LANG_TAMAZIGHT +# define LANG_TAMAZIGHT 0x5f +# endif +# ifndef LANG_TAMIL +# define LANG_TAMIL 0x49 +# endif +# ifndef LANG_TATAR +# define LANG_TATAR 0x44 +# endif +# ifndef LANG_TELUGU +# define LANG_TELUGU 0x4a +# endif +# ifndef LANG_THAI +# define LANG_THAI 0x1e +# endif +# ifndef LANG_TIBETAN +# define LANG_TIBETAN 0x51 +# endif +# ifndef LANG_TIGRINYA +# define LANG_TIGRINYA 0x73 +# endif +# ifndef LANG_TSONGA +# define LANG_TSONGA 0x31 +# endif +# ifndef LANG_TSWANA +# define LANG_TSWANA 0x32 +# endif +# ifndef LANG_TURKMEN +# define LANG_TURKMEN 0x42 +# endif +# ifndef LANG_UKRAINIAN +# define LANG_UKRAINIAN 0x22 +# endif +# ifndef LANG_URDU +# define LANG_URDU 0x20 +# endif +# ifndef LANG_UZBEK +# define LANG_UZBEK 0x43 +# endif +# ifndef LANG_VENDA +# define LANG_VENDA 0x33 +# endif +# ifndef LANG_VIETNAMESE +# define LANG_VIETNAMESE 0x2a +# endif +# ifndef LANG_WELSH +# define LANG_WELSH 0x52 +# endif +# ifndef LANG_XHOSA +# define LANG_XHOSA 0x34 +# endif +# ifndef LANG_YI +# define LANG_YI 0x78 +# endif +# ifndef LANG_YIDDISH +# define LANG_YIDDISH 0x3d +# endif +# ifndef LANG_YORUBA +# define LANG_YORUBA 0x6a +# endif +# ifndef LANG_ZULU +# define LANG_ZULU 0x35 +# endif +# ifndef SUBLANG_ARABIC_SAUDI_ARABIA +# define SUBLANG_ARABIC_SAUDI_ARABIA 0x01 +# endif +# ifndef SUBLANG_ARABIC_IRAQ +# define SUBLANG_ARABIC_IRAQ 0x02 +# endif +# ifndef SUBLANG_ARABIC_EGYPT +# define SUBLANG_ARABIC_EGYPT 0x03 +# endif +# ifndef SUBLANG_ARABIC_LIBYA +# define SUBLANG_ARABIC_LIBYA 0x04 +# endif +# ifndef SUBLANG_ARABIC_ALGERIA +# define SUBLANG_ARABIC_ALGERIA 0x05 +# endif +# ifndef SUBLANG_ARABIC_MOROCCO +# define SUBLANG_ARABIC_MOROCCO 0x06 +# endif +# ifndef SUBLANG_ARABIC_TUNISIA +# define SUBLANG_ARABIC_TUNISIA 0x07 +# endif +# ifndef SUBLANG_ARABIC_OMAN +# define SUBLANG_ARABIC_OMAN 0x08 +# endif +# ifndef SUBLANG_ARABIC_YEMEN +# define SUBLANG_ARABIC_YEMEN 0x09 +# endif +# ifndef SUBLANG_ARABIC_SYRIA +# define SUBLANG_ARABIC_SYRIA 0x0a +# endif +# ifndef SUBLANG_ARABIC_JORDAN +# define SUBLANG_ARABIC_JORDAN 0x0b +# endif +# ifndef SUBLANG_ARABIC_LEBANON +# define SUBLANG_ARABIC_LEBANON 0x0c +# endif +# ifndef SUBLANG_ARABIC_KUWAIT +# define SUBLANG_ARABIC_KUWAIT 0x0d +# endif +# ifndef SUBLANG_ARABIC_UAE +# define SUBLANG_ARABIC_UAE 0x0e +# endif +# ifndef SUBLANG_ARABIC_BAHRAIN +# define SUBLANG_ARABIC_BAHRAIN 0x0f +# endif +# ifndef SUBLANG_ARABIC_QATAR +# define SUBLANG_ARABIC_QATAR 0x10 +# endif +# ifndef SUBLANG_AZERI_LATIN +# define SUBLANG_AZERI_LATIN 0x01 +# endif +# ifndef SUBLANG_AZERI_CYRILLIC +# define SUBLANG_AZERI_CYRILLIC 0x02 +# endif +# ifndef SUBLANG_BENGALI_INDIA +# define SUBLANG_BENGALI_INDIA 0x00 +# endif +# ifndef SUBLANG_BENGALI_BANGLADESH +# define SUBLANG_BENGALI_BANGLADESH 0x01 +# endif +# ifndef SUBLANG_CHINESE_MACAU +# define SUBLANG_CHINESE_MACAU 0x05 +# endif +# ifndef SUBLANG_ENGLISH_SOUTH_AFRICA +# define SUBLANG_ENGLISH_SOUTH_AFRICA 0x07 +# endif +# ifndef SUBLANG_ENGLISH_JAMAICA +# define SUBLANG_ENGLISH_JAMAICA 0x08 +# endif +# ifndef SUBLANG_ENGLISH_CARIBBEAN +# define SUBLANG_ENGLISH_CARIBBEAN 0x09 +# endif +# ifndef SUBLANG_ENGLISH_BELIZE +# define SUBLANG_ENGLISH_BELIZE 0x0a +# endif +# ifndef SUBLANG_ENGLISH_TRINIDAD +# define SUBLANG_ENGLISH_TRINIDAD 0x0b +# endif +# ifndef SUBLANG_ENGLISH_ZIMBABWE +# define SUBLANG_ENGLISH_ZIMBABWE 0x0c +# endif +# ifndef SUBLANG_ENGLISH_PHILIPPINES +# define SUBLANG_ENGLISH_PHILIPPINES 0x0d +# endif +# ifndef SUBLANG_ENGLISH_INDONESIA +# define SUBLANG_ENGLISH_INDONESIA 0x0e +# endif +# ifndef SUBLANG_ENGLISH_HONGKONG +# define SUBLANG_ENGLISH_HONGKONG 0x0f +# endif +# ifndef SUBLANG_ENGLISH_INDIA +# define SUBLANG_ENGLISH_INDIA 0x10 +# endif +# ifndef SUBLANG_ENGLISH_MALAYSIA +# define SUBLANG_ENGLISH_MALAYSIA 0x11 +# endif +# ifndef SUBLANG_ENGLISH_SINGAPORE +# define SUBLANG_ENGLISH_SINGAPORE 0x12 +# endif +# ifndef SUBLANG_FRENCH_LUXEMBOURG +# define SUBLANG_FRENCH_LUXEMBOURG 0x05 +# endif +# ifndef SUBLANG_FRENCH_MONACO +# define SUBLANG_FRENCH_MONACO 0x06 +# endif +# ifndef SUBLANG_FRENCH_WESTINDIES +# define SUBLANG_FRENCH_WESTINDIES 0x07 +# endif +# ifndef SUBLANG_FRENCH_REUNION +# define SUBLANG_FRENCH_REUNION 0x08 +# endif +# ifndef SUBLANG_FRENCH_CONGO +# define SUBLANG_FRENCH_CONGO 0x09 +# endif +# ifndef SUBLANG_FRENCH_SENEGAL +# define SUBLANG_FRENCH_SENEGAL 0x0a +# endif +# ifndef SUBLANG_FRENCH_CAMEROON +# define SUBLANG_FRENCH_CAMEROON 0x0b +# endif +# ifndef SUBLANG_FRENCH_COTEDIVOIRE +# define SUBLANG_FRENCH_COTEDIVOIRE 0x0c +# endif +# ifndef SUBLANG_FRENCH_MALI +# define SUBLANG_FRENCH_MALI 0x0d +# endif +# ifndef SUBLANG_FRENCH_MOROCCO +# define SUBLANG_FRENCH_MOROCCO 0x0e +# endif +# ifndef SUBLANG_FRENCH_HAITI +# define SUBLANG_FRENCH_HAITI 0x0f +# endif +# ifndef SUBLANG_GERMAN_LUXEMBOURG +# define SUBLANG_GERMAN_LUXEMBOURG 0x04 +# endif +# ifndef SUBLANG_GERMAN_LIECHTENSTEIN +# define SUBLANG_GERMAN_LIECHTENSTEIN 0x05 +# endif +# ifndef SUBLANG_KASHMIRI_INDIA +# define SUBLANG_KASHMIRI_INDIA 0x02 +# endif +# ifndef SUBLANG_MALAY_MALAYSIA +# define SUBLANG_MALAY_MALAYSIA 0x01 +# endif +# ifndef SUBLANG_MALAY_BRUNEI_DARUSSALAM +# define SUBLANG_MALAY_BRUNEI_DARUSSALAM 0x02 +# endif +# ifndef SUBLANG_NEPALI_INDIA +# define SUBLANG_NEPALI_INDIA 0x02 +# endif +# ifndef SUBLANG_PUNJABI_INDIA +# define SUBLANG_PUNJABI_INDIA 0x00 +# endif +# ifndef SUBLANG_PUNJABI_PAKISTAN +# define SUBLANG_PUNJABI_PAKISTAN 0x01 +# endif +# ifndef SUBLANG_ROMANIAN_ROMANIA +# define SUBLANG_ROMANIAN_ROMANIA 0x00 +# endif +# ifndef SUBLANG_ROMANIAN_MOLDOVA +# define SUBLANG_ROMANIAN_MOLDOVA 0x01 +# endif +# ifndef SUBLANG_SERBIAN_LATIN +# define SUBLANG_SERBIAN_LATIN 0x02 +# endif +# ifndef SUBLANG_SERBIAN_CYRILLIC +# define SUBLANG_SERBIAN_CYRILLIC 0x03 +# endif +# ifndef SUBLANG_SINDHI_INDIA +# define SUBLANG_SINDHI_INDIA 0x00 +# endif +# ifndef SUBLANG_SINDHI_PAKISTAN +# define SUBLANG_SINDHI_PAKISTAN 0x01 +# endif +# ifndef SUBLANG_SPANISH_GUATEMALA +# define SUBLANG_SPANISH_GUATEMALA 0x04 +# endif +# ifndef SUBLANG_SPANISH_COSTA_RICA +# define SUBLANG_SPANISH_COSTA_RICA 0x05 +# endif +# ifndef SUBLANG_SPANISH_PANAMA +# define SUBLANG_SPANISH_PANAMA 0x06 +# endif +# ifndef SUBLANG_SPANISH_DOMINICAN_REPUBLIC +# define SUBLANG_SPANISH_DOMINICAN_REPUBLIC 0x07 +# endif +# ifndef SUBLANG_SPANISH_VENEZUELA +# define SUBLANG_SPANISH_VENEZUELA 0x08 +# endif +# ifndef SUBLANG_SPANISH_COLOMBIA +# define SUBLANG_SPANISH_COLOMBIA 0x09 +# endif +# ifndef SUBLANG_SPANISH_PERU +# define SUBLANG_SPANISH_PERU 0x0a +# endif +# ifndef SUBLANG_SPANISH_ARGENTINA +# define SUBLANG_SPANISH_ARGENTINA 0x0b +# endif +# ifndef SUBLANG_SPANISH_ECUADOR +# define SUBLANG_SPANISH_ECUADOR 0x0c +# endif +# ifndef SUBLANG_SPANISH_CHILE +# define SUBLANG_SPANISH_CHILE 0x0d +# endif +# ifndef SUBLANG_SPANISH_URUGUAY +# define SUBLANG_SPANISH_URUGUAY 0x0e +# endif +# ifndef SUBLANG_SPANISH_PARAGUAY +# define SUBLANG_SPANISH_PARAGUAY 0x0f +# endif +# ifndef SUBLANG_SPANISH_BOLIVIA +# define SUBLANG_SPANISH_BOLIVIA 0x10 +# endif +# ifndef SUBLANG_SPANISH_EL_SALVADOR +# define SUBLANG_SPANISH_EL_SALVADOR 0x11 +# endif +# ifndef SUBLANG_SPANISH_HONDURAS +# define SUBLANG_SPANISH_HONDURAS 0x12 +# endif +# ifndef SUBLANG_SPANISH_NICARAGUA +# define SUBLANG_SPANISH_NICARAGUA 0x13 +# endif +# ifndef SUBLANG_SPANISH_PUERTO_RICO +# define SUBLANG_SPANISH_PUERTO_RICO 0x14 +# endif +# ifndef SUBLANG_SWEDISH_FINLAND +# define SUBLANG_SWEDISH_FINLAND 0x02 +# endif +# ifndef SUBLANG_TAMAZIGHT_ARABIC +# define SUBLANG_TAMAZIGHT_ARABIC 0x01 +# endif +# ifndef SUBLANG_TAMAZIGHT_LATIN +# define SUBLANG_TAMAZIGHT_LATIN 0x02 +# endif +# ifndef SUBLANG_TIGRINYA_ETHIOPIA +# define SUBLANG_TIGRINYA_ETHIOPIA 0x00 +# endif +# ifndef SUBLANG_TIGRINYA_ERITREA +# define SUBLANG_TIGRINYA_ERITREA 0x01 +# endif +# ifndef SUBLANG_URDU_PAKISTAN +# define SUBLANG_URDU_PAKISTAN 0x01 +# endif +# ifndef SUBLANG_URDU_INDIA +# define SUBLANG_URDU_INDIA 0x02 +# endif +# ifndef SUBLANG_UZBEK_LATIN +# define SUBLANG_UZBEK_LATIN 0x01 +# endif +# ifndef SUBLANG_UZBEK_CYRILLIC +# define SUBLANG_UZBEK_CYRILLIC 0x02 +# endif +#endif + +# if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE +/* MacOS X 10.2 or newer */ + +/* Canonicalize a MacOS X locale name to a Unix locale name. + NAME is a sufficiently large buffer. + On input, it contains the MacOS X locale name. + On output, it contains the Unix locale name. */ +void +_nl_locale_name_canonicalize (char *name) +{ + /* This conversion is based on a posting by + Deborah GoldSmith on 2005-03-08, + http://lists.apple.com/archives/carbon-dev/2005/Mar/msg00293.html */ + + /* Convert legacy (NeXTstep inherited) English names to Unix (ISO 639 and + ISO 3166) names. Prior to MacOS X 10.3, there is no API for doing this. + Therefore we do it ourselves, using a table based on the results of the + MacOS X 10.3.8 function + CFLocaleCreateCanonicalLocaleIdentifierFromString(). */ + typedef struct { const char legacy[21+1]; const char unixy[5+1]; } + legacy_entry; + static const legacy_entry legacy_table[] = { + { "Afrikaans", "af" }, + { "Albanian", "sq" }, + { "Amharic", "am" }, + { "Arabic", "ar" }, + { "Armenian", "hy" }, + { "Assamese", "as" }, + { "Aymara", "ay" }, + { "Azerbaijani", "az" }, + { "Basque", "eu" }, + { "Belarusian", "be" }, + { "Belorussian", "be" }, + { "Bengali", "bn" }, + { "Brazilian Portugese", "pt_BR" }, + { "Brazilian Portuguese", "pt_BR" }, + { "Breton", "br" }, + { "Bulgarian", "bg" }, + { "Burmese", "my" }, + { "Byelorussian", "be" }, + { "Catalan", "ca" }, + { "Chewa", "ny" }, + { "Chichewa", "ny" }, + { "Chinese", "zh" }, + { "Chinese, Simplified", "zh_CN" }, + { "Chinese, Traditional", "zh_TW" }, + { "Chinese, Tradtional", "zh_TW" }, + { "Croatian", "hr" }, + { "Czech", "cs" }, + { "Danish", "da" }, + { "Dutch", "nl" }, + { "Dzongkha", "dz" }, + { "English", "en" }, + { "Esperanto", "eo" }, + { "Estonian", "et" }, + { "Faroese", "fo" }, + { "Farsi", "fa" }, + { "Finnish", "fi" }, + { "Flemish", "nl_BE" }, + { "French", "fr" }, + { "Galician", "gl" }, + { "Gallegan", "gl" }, + { "Georgian", "ka" }, + { "German", "de" }, + { "Greek", "el" }, + { "Greenlandic", "kl" }, + { "Guarani", "gn" }, + { "Gujarati", "gu" }, + { "Hawaiian", "haw" }, /* Yes, "haw", not "cpe". */ + { "Hebrew", "he" }, + { "Hindi", "hi" }, + { "Hungarian", "hu" }, + { "Icelandic", "is" }, + { "Indonesian", "id" }, + { "Inuktitut", "iu" }, + { "Irish", "ga" }, + { "Italian", "it" }, + { "Japanese", "ja" }, + { "Javanese", "jv" }, + { "Kalaallisut", "kl" }, + { "Kannada", "kn" }, + { "Kashmiri", "ks" }, + { "Kazakh", "kk" }, + { "Khmer", "km" }, + { "Kinyarwanda", "rw" }, + { "Kirghiz", "ky" }, + { "Korean", "ko" }, + { "Kurdish", "ku" }, + { "Latin", "la" }, + { "Latvian", "lv" }, + { "Lithuanian", "lt" }, + { "Macedonian", "mk" }, + { "Malagasy", "mg" }, + { "Malay", "ms" }, + { "Malayalam", "ml" }, + { "Maltese", "mt" }, + { "Manx", "gv" }, + { "Marathi", "mr" }, + { "Moldavian", "mo" }, + { "Mongolian", "mn" }, + { "Nepali", "ne" }, + { "Norwegian", "nb" }, /* Yes, "nb", not the obsolete "no". */ + { "Nyanja", "ny" }, + { "Nynorsk", "nn" }, + { "Oriya", "or" }, + { "Oromo", "om" }, + { "Panjabi", "pa" }, + { "Pashto", "ps" }, + { "Persian", "fa" }, + { "Polish", "pl" }, + { "Portuguese", "pt" }, + { "Portuguese, Brazilian", "pt_BR" }, + { "Punjabi", "pa" }, + { "Pushto", "ps" }, + { "Quechua", "qu" }, + { "Romanian", "ro" }, + { "Ruanda", "rw" }, + { "Rundi", "rn" }, + { "Russian", "ru" }, + { "Sami", "se_NO" }, /* Not just "se". */ + { "Sanskrit", "sa" }, + { "Scottish", "gd" }, + { "Serbian", "sr" }, + { "Simplified Chinese", "zh_CN" }, + { "Sindhi", "sd" }, + { "Sinhalese", "si" }, + { "Slovak", "sk" }, + { "Slovenian", "sl" }, + { "Somali", "so" }, + { "Spanish", "es" }, + { "Sundanese", "su" }, + { "Swahili", "sw" }, + { "Swedish", "sv" }, + { "Tagalog", "tl" }, + { "Tajik", "tg" }, + { "Tajiki", "tg" }, + { "Tamil", "ta" }, + { "Tatar", "tt" }, + { "Telugu", "te" }, + { "Thai", "th" }, + { "Tibetan", "bo" }, + { "Tigrinya", "ti" }, + { "Tongan", "to" }, + { "Traditional Chinese", "zh_TW" }, + { "Turkish", "tr" }, + { "Turkmen", "tk" }, + { "Uighur", "ug" }, + { "Ukrainian", "uk" }, + { "Urdu", "ur" }, + { "Uzbek", "uz" }, + { "Vietnamese", "vi" }, + { "Welsh", "cy" }, + { "Yiddish", "yi" } + }; + + /* Convert new-style locale names with language tags (ISO 639 and ISO 15924) + to Unix (ISO 639 and ISO 3166) names. */ + typedef struct { const char langtag[7+1]; const char unixy[12+1]; } + langtag_entry; + static const langtag_entry langtag_table[] = { + /* MacOS X has "az-Arab", "az-Cyrl", "az-Latn". + The default script for az on Unix is Latin. */ + { "az-Latn", "az" }, + /* MacOS X has "ga-dots". Does not yet exist on Unix. */ + { "ga-dots", "ga" }, + /* MacOS X has "kk-Cyrl". Does not yet exist on Unix. */ + /* MacOS X has "mn-Cyrl", "mn-Mong". + The default script for mn on Unix is Cyrillic. */ + { "mn-Cyrl", "mn" }, + /* MacOS X has "ms-Arab", "ms-Latn". + The default script for ms on Unix is Latin. */ + { "ms-Latn", "ms" }, + /* MacOS X has "tg-Cyrl". + The default script for tg on Unix is Cyrillic. */ + { "tg-Cyrl", "tg" }, + /* MacOS X has "tk-Cyrl". Does not yet exist on Unix. */ + /* MacOS X has "tt-Cyrl". + The default script for tt on Unix is Cyrillic. */ + { "tt-Cyrl", "tt" }, + /* MacOS X has "zh-Hans", "zh-Hant". + Country codes are used to distinguish these on Unix. */ + { "zh-Hans", "zh_CN" }, + { "zh-Hant", "zh_TW" } + }; + + /* Convert script names (ISO 15924) to Unix conventions. + See http://www.unicode.org/iso15924/iso15924-codes.html */ + typedef struct { const char script[4+1]; const char unixy[9+1]; } + script_entry; + static const script_entry script_table[] = { + { "Arab", "arabic" }, + { "Cyrl", "cyrillic" }, + { "Mong", "mongolian" } + }; + + /* Step 1: Convert using legacy_table. */ + if (name[0] >= 'A' && name[0] <= 'Z') + { + unsigned int i1, i2; + i1 = 0; + i2 = sizeof (legacy_table) / sizeof (legacy_entry); + while (i2 - i1 > 1) + { + /* At this point we know that if name occurs in legacy_table, + its index must be >= i1 and < i2. */ + unsigned int i = (i1 + i2) >> 1; + const legacy_entry *p = &legacy_table[i]; + if (strcmp (name, p->legacy) < 0) + i2 = i; + else + i1 = i; + } + if (strcmp (name, legacy_table[i1].legacy) == 0) + { + strcpy (name, legacy_table[i1].unixy); + return; + } + } + + /* Step 2: Convert using langtag_table and script_table. */ + if (strlen (name) == 7 && name[2] == '-') + { + unsigned int i1, i2; + i1 = 0; + i2 = sizeof (langtag_table) / sizeof (langtag_entry); + while (i2 - i1 > 1) + { + /* At this point we know that if name occurs in langtag_table, + its index must be >= i1 and < i2. */ + unsigned int i = (i1 + i2) >> 1; + const langtag_entry *p = &langtag_table[i]; + if (strcmp (name, p->langtag) < 0) + i2 = i; + else + i1 = i; + } + if (strcmp (name, langtag_table[i1].langtag) == 0) + { + strcpy (name, langtag_table[i1].unixy); + return; + } + + i1 = 0; + i2 = sizeof (script_table) / sizeof (script_entry); + while (i2 - i1 > 1) + { + /* At this point we know that if (name + 3) occurs in script_table, + its index must be >= i1 and < i2. */ + unsigned int i = (i1 + i2) >> 1; + const script_entry *p = &script_table[i]; + if (strcmp (name + 3, p->script) < 0) + i2 = i; + else + i1 = i; + } + if (strcmp (name + 3, script_table[i1].script) == 0) + { + name[2] = '@'; + strcpy (name + 3, script_table[i1].unixy); + return; + } + } + + /* Step 3: Convert new-style dash to Unix underscore. */ + { + char *p; + for (p = name; *p != '\0'; p++) + if (*p == '-') + *p = '_'; + } +} + +#endif + +/* XPG3 defines the result of 'setlocale (category, NULL)' as: + "Directs 'setlocale()' to query 'category' and return the current + setting of 'local'." + However it does not specify the exact format. Neither do SUSV2 and + ISO C 99. So we can use this feature only on selected systems (e.g. + those using GNU C Library). */ +#if defined _LIBC || (defined __GNU_LIBRARY__ && __GNU_LIBRARY__ >= 2) +# define HAVE_LOCALE_NULL +#endif + +/* Determine the current locale's name, and canonicalize it into XPG syntax + language[_territory[.codeset]][@modifier] + The codeset part in the result is not reliable; the locale_charset() + should be used for codeset information instead. + The result must not be freed; it is statically allocated. */ + +const char * +_nl_locale_name_posix (int category, const char *categoryname) +{ + /* Use the POSIX methods of looking to 'LC_ALL', 'LC_xxx', and 'LANG'. + On some systems this can be done by the 'setlocale' function itself. */ +#if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL + return setlocale (category, NULL); +#else + const char *retval; + + /* Setting of LC_ALL overrides all other. */ + retval = getenv ("LC_ALL"); + if (retval != NULL && retval[0] != '\0') + return retval; + /* Next comes the name of the desired category. */ + retval = getenv (categoryname); + if (retval != NULL && retval[0] != '\0') + return retval; + /* Last possibility is the LANG environment variable. */ + retval = getenv ("LANG"); + if (retval != NULL && retval[0] != '\0') + return retval; + + return NULL; +#endif +} + +const char * +_nl_locale_name_default (void) +{ + /* POSIX:2001 says: + "All implementations shall define a locale as the default locale, to be + invoked when no environment variables are set, or set to the empty + string. This default locale can be the POSIX locale or any other + implementation-defined locale. Some implementations may provide + facilities for local installation administrators to set the default + locale, customizing it for each location. POSIX:2001 does not require + such a facility. */ + +#if !(HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE || defined(WIN32)) + + /* The system does not have a way of setting the locale, other than the + POSIX specified environment variables. We use C as default locale. */ + return "C"; + +#else + + /* Return an XPG style locale name language[_territory][@modifier]. + Don't even bother determining the codeset; it's not useful in this + context, because message catalogs are not specific to a single + codeset. */ + +# if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE + /* MacOS X 10.2 or newer */ + { + /* Cache the locale name, since CoreFoundation calls are expensive. */ + static const char *cached_localename; + + if (cached_localename == NULL) + { + char namebuf[256]; +# if HAVE_CFLOCALECOPYCURRENT /* MacOS X 10.3 or newer */ + CFLocaleRef locale = CFLocaleCopyCurrent (); + CFStringRef name = CFLocaleGetIdentifier (locale); + + if (CFStringGetCString (name, namebuf, sizeof(namebuf), + kCFStringEncodingASCII)) + { + _nl_locale_name_canonicalize (namebuf); + cached_localename = strdup (namebuf); + } + CFRelease (locale); +# elif HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ + CFTypeRef value = + CFPreferencesCopyAppValue (CFSTR ("AppleLocale"), + kCFPreferencesCurrentApplication); + if (value != NULL + && CFGetTypeID (value) == CFStringGetTypeID () + && CFStringGetCString ((CFStringRef)value, namebuf, sizeof(namebuf), + kCFStringEncodingASCII)) + { + _nl_locale_name_canonicalize (namebuf); + cached_localename = strdup (namebuf); + } +# endif + if (cached_localename == NULL) + cached_localename = "C"; + } + return cached_localename; + } + +# endif + +# if defined(WIN32) /* WIN32 */ + { + LCID lcid; + LANGID langid; + int primary, sub; + + /* Use native Win32 API locale ID. */ + lcid = GetThreadLocale (); + + /* Strip off the sorting rules, keep only the language part. */ + langid = LANGIDFROMLCID (lcid); + + /* Split into language and territory part. */ + primary = PRIMARYLANGID (langid); + sub = SUBLANGID (langid); + + /* Dispatch on language. + See also http://www.unicode.org/unicode/onlinedat/languages.html . + For details about languages, see http://www.ethnologue.com/ . */ + switch (primary) + { + case LANG_AFRIKAANS: return "af_ZA"; + case LANG_ALBANIAN: return "sq_AL"; + case LANG_AMHARIC: return "am_ET"; + case LANG_ARABIC: + switch (sub) + { + case SUBLANG_ARABIC_SAUDI_ARABIA: return "ar_SA"; + case SUBLANG_ARABIC_IRAQ: return "ar_IQ"; + case SUBLANG_ARABIC_EGYPT: return "ar_EG"; + case SUBLANG_ARABIC_LIBYA: return "ar_LY"; + case SUBLANG_ARABIC_ALGERIA: return "ar_DZ"; + case SUBLANG_ARABIC_MOROCCO: return "ar_MA"; + case SUBLANG_ARABIC_TUNISIA: return "ar_TN"; + case SUBLANG_ARABIC_OMAN: return "ar_OM"; + case SUBLANG_ARABIC_YEMEN: return "ar_YE"; + case SUBLANG_ARABIC_SYRIA: return "ar_SY"; + case SUBLANG_ARABIC_JORDAN: return "ar_JO"; + case SUBLANG_ARABIC_LEBANON: return "ar_LB"; + case SUBLANG_ARABIC_KUWAIT: return "ar_KW"; + case SUBLANG_ARABIC_UAE: return "ar_AE"; + case SUBLANG_ARABIC_BAHRAIN: return "ar_BH"; + case SUBLANG_ARABIC_QATAR: return "ar_QA"; + } + return "ar"; + case LANG_ARMENIAN: return "hy_AM"; + case LANG_ASSAMESE: return "as_IN"; + case LANG_AZERI: + switch (sub) + { + /* FIXME: Adjust this when Azerbaijani locales appear on Unix. */ + case SUBLANG_AZERI_LATIN: return "az_AZ@latin"; + case SUBLANG_AZERI_CYRILLIC: return "az_AZ@cyrillic"; + } + return "az"; + case LANG_BASQUE: + switch (sub) + { + case SUBLANG_DEFAULT: return "eu_ES"; + } + return "eu"; /* Ambiguous: could be "eu_ES" or "eu_FR". */ + case LANG_BELARUSIAN: return "be_BY"; + case LANG_BENGALI: + switch (sub) + { + case SUBLANG_BENGALI_INDIA: return "bn_IN"; + case SUBLANG_BENGALI_BANGLADESH: return "bn_BD"; + } + return "bn"; + case LANG_BULGARIAN: return "bg_BG"; + case LANG_BURMESE: return "my_MM"; + case LANG_CAMBODIAN: return "km_KH"; + case LANG_CATALAN: return "ca_ES"; + case LANG_CHEROKEE: return "chr_US"; + case LANG_CHINESE: + switch (sub) + { + case SUBLANG_CHINESE_TRADITIONAL: return "zh_TW"; + case SUBLANG_CHINESE_SIMPLIFIED: return "zh_CN"; + case SUBLANG_CHINESE_HONGKONG: return "zh_HK"; + case SUBLANG_CHINESE_SINGAPORE: return "zh_SG"; + case SUBLANG_CHINESE_MACAU: return "zh_MO"; + } + return "zh"; + case LANG_CROATIAN: /* LANG_CROATIAN == LANG_SERBIAN + * What used to be called Serbo-Croatian + * should really now be two separate + * languages because of political reasons. + * (Says tml, who knows nothing about Serbian + * or Croatian.) + * (I can feel those flames coming already.) + */ + switch (sub) + { + case SUBLANG_DEFAULT: return "hr_HR"; + case SUBLANG_SERBIAN_LATIN: return "sr_CS"; + case SUBLANG_SERBIAN_CYRILLIC: return "sr_CS@cyrillic"; + } + return "hr"; + case LANG_CZECH: return "cs_CZ"; + case LANG_DANISH: return "da_DK"; + case LANG_DIVEHI: return "dv_MV"; + case LANG_DUTCH: + switch (sub) + { + case SUBLANG_DUTCH: return "nl_NL"; + case SUBLANG_DUTCH_BELGIAN: /* FLEMISH, VLAAMS */ return "nl_BE"; + } + return "nl"; + case LANG_EDO: return "bin_NG"; + case LANG_ENGLISH: + switch (sub) + { + /* SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. Heh. I thought + * English was the language spoken in England. + * Oh well. + */ + case SUBLANG_ENGLISH_US: return "en_US"; + case SUBLANG_ENGLISH_UK: return "en_GB"; + case SUBLANG_ENGLISH_AUS: return "en_AU"; + case SUBLANG_ENGLISH_CAN: return "en_CA"; + case SUBLANG_ENGLISH_NZ: return "en_NZ"; + case SUBLANG_ENGLISH_EIRE: return "en_IE"; + case SUBLANG_ENGLISH_SOUTH_AFRICA: return "en_ZA"; + case SUBLANG_ENGLISH_JAMAICA: return "en_JM"; + case SUBLANG_ENGLISH_CARIBBEAN: return "en_GD"; /* Grenada? */ + case SUBLANG_ENGLISH_BELIZE: return "en_BZ"; + case SUBLANG_ENGLISH_TRINIDAD: return "en_TT"; + case SUBLANG_ENGLISH_ZIMBABWE: return "en_ZW"; + case SUBLANG_ENGLISH_PHILIPPINES: return "en_PH"; + case SUBLANG_ENGLISH_INDONESIA: return "en_ID"; + case SUBLANG_ENGLISH_HONGKONG: return "en_HK"; + case SUBLANG_ENGLISH_INDIA: return "en_IN"; + case SUBLANG_ENGLISH_MALAYSIA: return "en_MY"; + case SUBLANG_ENGLISH_SINGAPORE: return "en_SG"; + } + return "en"; + case LANG_ESTONIAN: return "et_EE"; + case LANG_FAEROESE: return "fo_FO"; + case LANG_FARSI: return "fa_IR"; + case LANG_FINNISH: return "fi_FI"; + case LANG_FRENCH: + switch (sub) + { + case SUBLANG_FRENCH: return "fr_FR"; + case SUBLANG_FRENCH_BELGIAN: /* WALLOON */ return "fr_BE"; + case SUBLANG_FRENCH_CANADIAN: return "fr_CA"; + case SUBLANG_FRENCH_SWISS: return "fr_CH"; + case SUBLANG_FRENCH_LUXEMBOURG: return "fr_LU"; + case SUBLANG_FRENCH_MONACO: return "fr_MC"; + case SUBLANG_FRENCH_WESTINDIES: return "fr"; /* Caribbean? */ + case SUBLANG_FRENCH_REUNION: return "fr_RE"; + case SUBLANG_FRENCH_CONGO: return "fr_CG"; + case SUBLANG_FRENCH_SENEGAL: return "fr_SN"; + case SUBLANG_FRENCH_CAMEROON: return "fr_CM"; + case SUBLANG_FRENCH_COTEDIVOIRE: return "fr_CI"; + case SUBLANG_FRENCH_MALI: return "fr_ML"; + case SUBLANG_FRENCH_MOROCCO: return "fr_MA"; + case SUBLANG_FRENCH_HAITI: return "fr_HT"; + } + return "fr"; + case LANG_FRISIAN: return "fy_NL"; + case LANG_FULFULDE: + /* Spoken in Nigeria, Guinea, Senegal, Mali, Niger, Cameroon, Benin. */ + return "ff_NG"; + case LANG_GAELIC: + switch (sub) + { + case 0x01: /* SCOTTISH */ return "gd_GB"; + case 0x02: /* IRISH */ return "ga_IE"; + } + return "C"; + case LANG_GALICIAN: return "gl_ES"; + case LANG_GEORGIAN: return "ka_GE"; + case LANG_GERMAN: + switch (sub) + { + case SUBLANG_GERMAN: return "de_DE"; + case SUBLANG_GERMAN_SWISS: return "de_CH"; + case SUBLANG_GERMAN_AUSTRIAN: return "de_AT"; + case SUBLANG_GERMAN_LUXEMBOURG: return "de_LU"; + case SUBLANG_GERMAN_LIECHTENSTEIN: return "de_LI"; + } + return "de"; + case LANG_GREEK: return "el_GR"; + case LANG_GUARANI: return "gn_PY"; + case LANG_GUJARATI: return "gu_IN"; + case LANG_HAUSA: return "ha_NG"; + case LANG_HAWAIIAN: + /* FIXME: Do they mean Hawaiian ("haw_US", 1000 speakers) + or Hawaii Creole English ("cpe_US", 600000 speakers)? */ + return "cpe_US"; + case LANG_HEBREW: return "he_IL"; + case LANG_HINDI: return "hi_IN"; + case LANG_HUNGARIAN: return "hu_HU"; + case LANG_IBIBIO: return "nic_NG"; + case LANG_ICELANDIC: return "is_IS"; + case LANG_IGBO: return "ig_NG"; + case LANG_INDONESIAN: return "id_ID"; + case LANG_INUKTITUT: return "iu_CA"; + case LANG_ITALIAN: + switch (sub) + { + case SUBLANG_ITALIAN: return "it_IT"; + case SUBLANG_ITALIAN_SWISS: return "it_CH"; + } + return "it"; + case LANG_JAPANESE: return "ja_JP"; + case LANG_KANNADA: return "kn_IN"; + case LANG_KANURI: return "kr_NG"; + case LANG_KASHMIRI: + switch (sub) + { + case SUBLANG_DEFAULT: return "ks_PK"; + case SUBLANG_KASHMIRI_INDIA: return "ks_IN"; + } + return "ks"; + case LANG_KAZAK: return "kk_KZ"; + case LANG_KONKANI: + /* FIXME: Adjust this when such locales appear on Unix. */ + return "kok_IN"; + case LANG_KOREAN: return "ko_KR"; + case LANG_KYRGYZ: return "ky_KG"; + case LANG_LAO: return "lo_LA"; + case LANG_LATIN: return "la_VA"; + case LANG_LATVIAN: return "lv_LV"; + case LANG_LITHUANIAN: return "lt_LT"; + case LANG_MACEDONIAN: return "mk_MK"; + case LANG_MALAY: + switch (sub) + { + case SUBLANG_MALAY_MALAYSIA: return "ms_MY"; + case SUBLANG_MALAY_BRUNEI_DARUSSALAM: return "ms_BN"; + } + return "ms"; + case LANG_MALAYALAM: return "ml_IN"; + case LANG_MALTESE: return "mt_MT"; + case LANG_MANIPURI: + /* FIXME: Adjust this when such locales appear on Unix. */ + return "mni_IN"; + case LANG_MARATHI: return "mr_IN"; + case LANG_MONGOLIAN: + switch (sub) + { + case SUBLANG_DEFAULT: return "mn_MN"; + } + return "mn"; /* Ambiguous: could be "mn_CN" or "mn_MN". */ + case LANG_NEPALI: + switch (sub) + { + case SUBLANG_DEFAULT: return "ne_NP"; + case SUBLANG_NEPALI_INDIA: return "ne_IN"; + } + return "ne"; + case LANG_NORWEGIAN: + switch (sub) + { + case SUBLANG_NORWEGIAN_BOKMAL: return "nb_NO"; + case SUBLANG_NORWEGIAN_NYNORSK: return "nn_NO"; + } + return "no"; + case LANG_ORIYA: return "or_IN"; + case LANG_OROMO: return "om_ET"; + case LANG_PAPIAMENTU: return "pap_AN"; + case LANG_PASHTO: + return "ps"; /* Ambiguous: could be "ps_PK" or "ps_AF". */ + case LANG_POLISH: return "pl_PL"; + case LANG_PORTUGUESE: + switch (sub) + { + case SUBLANG_PORTUGUESE: return "pt_PT"; + /* Hmm. SUBLANG_PORTUGUESE_BRAZILIAN == SUBLANG_DEFAULT. + Same phenomenon as SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. */ + case SUBLANG_PORTUGUESE_BRAZILIAN: return "pt_BR"; + } + return "pt"; + case LANG_PUNJABI: + switch (sub) + { + case SUBLANG_PUNJABI_INDIA: return "pa_IN"; /* Gurmukhi script */ + case SUBLANG_PUNJABI_PAKISTAN: return "pa_PK"; /* Arabic script */ + } + return "pa"; + case LANG_RHAETO_ROMANCE: return "rm_CH"; + case LANG_ROMANIAN: + switch (sub) + { + case SUBLANG_ROMANIAN_ROMANIA: return "ro_RO"; + case SUBLANG_ROMANIAN_MOLDOVA: return "ro_MD"; + } + return "ro"; + case LANG_RUSSIAN: + switch (sub) + { + case SUBLANG_DEFAULT: return "ru_RU"; + } + return "ru"; /* Ambiguous: could be "ru_RU" or "ru_UA" or "ru_MD". */ + case LANG_SAAMI: /* actually Northern Sami */ return "se_NO"; + case LANG_SANSKRIT: return "sa_IN"; + case LANG_SINDHI: + switch (sub) + { + case SUBLANG_SINDHI_INDIA: return "sd_IN"; + case SUBLANG_SINDHI_PAKISTAN: return "sd_PK"; + } + return "sd"; + case LANG_SINHALESE: return "si_LK"; + case LANG_SLOVAK: return "sk_SK"; + case LANG_SLOVENIAN: return "sl_SI"; + case LANG_SOMALI: return "so_SO"; + case LANG_SORBIAN: + /* FIXME: Adjust this when such locales appear on Unix. */ + return "wen_DE"; + case LANG_SPANISH: + switch (sub) + { + case SUBLANG_SPANISH: return "es_ES"; + case SUBLANG_SPANISH_MEXICAN: return "es_MX"; + case SUBLANG_SPANISH_MODERN: + return "es_ES@modern"; /* not seen on Unix */ + case SUBLANG_SPANISH_GUATEMALA: return "es_GT"; + case SUBLANG_SPANISH_COSTA_RICA: return "es_CR"; + case SUBLANG_SPANISH_PANAMA: return "es_PA"; + case SUBLANG_SPANISH_DOMINICAN_REPUBLIC: return "es_DO"; + case SUBLANG_SPANISH_VENEZUELA: return "es_VE"; + case SUBLANG_SPANISH_COLOMBIA: return "es_CO"; + case SUBLANG_SPANISH_PERU: return "es_PE"; + case SUBLANG_SPANISH_ARGENTINA: return "es_AR"; + case SUBLANG_SPANISH_ECUADOR: return "es_EC"; + case SUBLANG_SPANISH_CHILE: return "es_CL"; + case SUBLANG_SPANISH_URUGUAY: return "es_UY"; + case SUBLANG_SPANISH_PARAGUAY: return "es_PY"; + case SUBLANG_SPANISH_BOLIVIA: return "es_BO"; + case SUBLANG_SPANISH_EL_SALVADOR: return "es_SV"; + case SUBLANG_SPANISH_HONDURAS: return "es_HN"; + case SUBLANG_SPANISH_NICARAGUA: return "es_NI"; + case SUBLANG_SPANISH_PUERTO_RICO: return "es_PR"; + } + return "es"; + case LANG_SUTU: return "bnt_TZ"; /* or "st_LS" or "nso_ZA"? */ + case LANG_SWAHILI: return "sw_KE"; + case LANG_SWEDISH: + switch (sub) + { + case SUBLANG_DEFAULT: return "sv_SE"; + case SUBLANG_SWEDISH_FINLAND: return "sv_FI"; + } + return "sv"; + case LANG_SYRIAC: return "syr_TR"; /* An extinct language. */ + case LANG_TAGALOG: return "tl_PH"; + case LANG_TAJIK: return "tg_TJ"; + case LANG_TAMAZIGHT: + switch (sub) + { + /* FIXME: Adjust this when Tamazight locales appear on Unix. */ + case SUBLANG_TAMAZIGHT_ARABIC: return "ber_MA@arabic"; + case SUBLANG_TAMAZIGHT_LATIN: return "ber_MA@latin"; + } + return "ber_MA"; + case LANG_TAMIL: + switch (sub) + { + case SUBLANG_DEFAULT: return "ta_IN"; + } + return "ta"; /* Ambiguous: could be "ta_IN" or "ta_LK" or "ta_SG". */ + case LANG_TATAR: return "tt_RU"; + case LANG_TELUGU: return "te_IN"; + case LANG_THAI: return "th_TH"; + case LANG_TIBETAN: return "bo_CN"; + case LANG_TIGRINYA: + switch (sub) + { + case SUBLANG_TIGRINYA_ETHIOPIA: return "ti_ET"; + case SUBLANG_TIGRINYA_ERITREA: return "ti_ER"; + } + return "ti"; + case LANG_TSONGA: return "ts_ZA"; + case LANG_TSWANA: return "tn_BW"; + case LANG_TURKISH: return "tr_TR"; + case LANG_TURKMEN: return "tk_TM"; + case LANG_UKRAINIAN: return "uk_UA"; + case LANG_URDU: + switch (sub) + { + case SUBLANG_URDU_PAKISTAN: return "ur_PK"; + case SUBLANG_URDU_INDIA: return "ur_IN"; + } + return "ur"; + case LANG_UZBEK: + switch (sub) + { + case SUBLANG_UZBEK_LATIN: return "uz_UZ"; + case SUBLANG_UZBEK_CYRILLIC: return "uz_UZ@cyrillic"; + } + return "uz"; + case LANG_VENDA: return "ve_ZA"; + case LANG_VIETNAMESE: return "vi_VN"; + case LANG_WELSH: return "cy_GB"; + case LANG_XHOSA: return "xh_ZA"; + case LANG_YI: return "sit_CN"; + case LANG_YIDDISH: return "yi_IL"; + case LANG_YORUBA: return "yo_NG"; + case LANG_ZULU: return "zu_ZA"; + default: return "C"; + } + } +# endif +#endif +} + +const char * +_nl_locale_name (int category, const char *categoryname) +{ + const char *retval; + + retval = _nl_locale_name_posix (category, categoryname); + if (retval != NULL) + return retval; + + return _nl_locale_name_default (); +} diff --git a/intl/log.c b/intl/log.c new file mode 100644 index 0000000..89f82df --- /dev/null +++ b/intl/log.c @@ -0,0 +1,98 @@ +/* Log file output. + Copyright (C) 2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* Written by Bruno Haible . */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include +#include + +/* Print an ASCII string with quotes and escape sequences where needed. */ +static void +print_escaped (FILE *stream, const char *str) +{ + putc ('"', stream); + for (; *str != '\0'; str++) + if (*str == '\n') + { + fputs ("\\n\"", stream); + if (str[1] == '\0') + return; + fputs ("\n\"", stream); + } + else + { + if (*str == '"' || *str == '\\') + putc ('\\', stream); + putc (*str, stream); + } + putc ('"', stream); +} + +/* Add to the log file an entry denoting a failed translation. */ +void +_nl_log_untranslated (const char *logfilename, const char *domainname, + const char *msgid1, const char *msgid2, int plural) +{ + static char *last_logfilename = NULL; + static FILE *last_logfile = NULL; + FILE *logfile; + + /* Can we reuse the last opened logfile? */ + if (last_logfilename == NULL || strcmp (logfilename, last_logfilename) != 0) + { + /* Close the last used logfile. */ + if (last_logfilename != NULL) + { + if (last_logfile != NULL) + { + fclose (last_logfile); + last_logfile = NULL; + } + free (last_logfilename); + last_logfilename = NULL; + } + /* Open the logfile. */ + last_logfilename = (char *) malloc (strlen (logfilename) + 1); + if (last_logfilename == NULL) + return; + strcpy (last_logfilename, logfilename); + last_logfile = fopen (logfilename, "a"); + if (last_logfile == NULL) + return; + } + logfile = last_logfile; + + fprintf (logfile, "domain "); + print_escaped (logfile, domainname); + fprintf (logfile, "\nmsgid "); + print_escaped (logfile, msgid1); + if (plural) + { + fprintf (logfile, "\nmsgid_plural "); + print_escaped (logfile, msgid2); + fprintf (logfile, "\nmsgstr[0] \"\"\n"); + } + else + fprintf (logfile, "\nmsgstr \"\"\n"); + putc ('\n', logfile); +} diff --git a/intl/ngettext.c b/intl/ngettext.c new file mode 100644 index 0000000..a33529c --- /dev/null +++ b/intl/ngettext.c @@ -0,0 +1,65 @@ +/* Implementation of ngettext(3) function. + Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#ifdef _LIBC +# define __need_NULL +# include +#else +# include /* Just for NULL. */ +#endif + +#include "gettextP.h" +#ifdef _LIBC +# include +#else +# include "libgnuintl.h" +#endif + +#include + +/* @@ end of prolog @@ */ + +/* Names for the libintl functions are a problem. They must not clash + with existing names and they should follow ANSI C. But this source + code is also used in GNU C Library where the names have a __ + prefix. So we have to make a difference here. */ +#ifdef _LIBC +# define NGETTEXT __ngettext +# define DCNGETTEXT __dcngettext +#else +# define NGETTEXT libintl_ngettext +# define DCNGETTEXT libintl_dcngettext +#endif + +/* Look up MSGID in the current default message catalog for the current + LC_MESSAGES locale. If not found, returns MSGID itself (the default + text). */ +char * +NGETTEXT (const char *msgid1, const char *msgid2, unsigned long int n) +{ + return DCNGETTEXT (NULL, msgid1, msgid2, n, LC_MESSAGES); +} + +#ifdef _LIBC +/* Alias for function name in GNU C Library. */ +weak_alias (__ngettext, ngettext); +#endif diff --git a/intl/os2compat.c b/intl/os2compat.c new file mode 100644 index 0000000..d041de2 --- /dev/null +++ b/intl/os2compat.c @@ -0,0 +1,98 @@ +/* OS/2 compatibility functions. + Copyright (C) 2001-2002 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#define OS2_AWARE +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include +#include + +/* A version of getenv() that works from DLLs */ +extern unsigned long DosScanEnv (const unsigned char *pszName, unsigned char **ppszValue); + +char * +_nl_getenv (const char *name) +{ + unsigned char *value; + if (DosScanEnv (name, &value)) + return NULL; + else + return value; +} + +/* A fixed size buffer. */ +char libintl_nl_default_dirname[MAXPATHLEN+1]; + +char *_nlos2_libdir = NULL; +char *_nlos2_localealiaspath = NULL; +char *_nlos2_localedir = NULL; + +static __attribute__((constructor)) void +nlos2_initialize () +{ + char *root = getenv ("UNIXROOT"); + char *gnulocaledir = getenv ("GNULOCALEDIR"); + + _nlos2_libdir = gnulocaledir; + if (!_nlos2_libdir) + { + if (root) + { + size_t sl = strlen (root); + _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); + memcpy (_nlos2_libdir, root, sl); + memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); + } + else + _nlos2_libdir = LIBDIR; + } + + _nlos2_localealiaspath = gnulocaledir; + if (!_nlos2_localealiaspath) + { + if (root) + { + size_t sl = strlen (root); + _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); + memcpy (_nlos2_localealiaspath, root, sl); + memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); + } + else + _nlos2_localealiaspath = LOCALE_ALIAS_PATH; + } + + _nlos2_localedir = gnulocaledir; + if (!_nlos2_localedir) + { + if (root) + { + size_t sl = strlen (root); + _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); + memcpy (_nlos2_localedir, root, sl); + memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); + } + else + _nlos2_localedir = LOCALEDIR; + } + + if (strlen (_nlos2_localedir) <= MAXPATHLEN) + strcpy (libintl_nl_default_dirname, _nlos2_localedir); +} diff --git a/intl/os2compat.h b/intl/os2compat.h new file mode 100644 index 0000000..a18d582 --- /dev/null +++ b/intl/os2compat.h @@ -0,0 +1,46 @@ +/* OS/2 compatibility defines. + This file is intended to be included from config.h + Copyright (C) 2001-2002 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* When included from os2compat.h we need all the original definitions */ +#ifndef OS2_AWARE + +#undef LIBDIR +#define LIBDIR _nlos2_libdir +extern char *_nlos2_libdir; + +#undef LOCALEDIR +#define LOCALEDIR _nlos2_localedir +extern char *_nlos2_localedir; + +#undef LOCALE_ALIAS_PATH +#define LOCALE_ALIAS_PATH _nlos2_localealiaspath +extern char *_nlos2_localealiaspath; + +#endif + +#undef HAVE_STRCASECMP +#define HAVE_STRCASECMP 1 +#define strcasecmp stricmp +#define strncasecmp strnicmp + +/* We have our own getenv() which works even if library is compiled as DLL */ +#define getenv _nl_getenv + +/* Older versions of gettext used -1 as the value of LC_MESSAGES */ +#define LC_MESSAGES_COMPAT (-1) diff --git a/intl/osdep.c b/intl/osdep.c new file mode 100644 index 0000000..d2d8575 --- /dev/null +++ b/intl/osdep.c @@ -0,0 +1,24 @@ +/* OS dependent parts of libintl. + Copyright (C) 2001-2002 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#if defined __EMX__ +# include "os2compat.c" +#else +/* Avoid AIX compiler warning. */ +typedef int dummy; +#endif diff --git a/intl/plural-exp.c b/intl/plural-exp.c new file mode 100644 index 0000000..1873be9 --- /dev/null +++ b/intl/plural-exp.c @@ -0,0 +1,154 @@ +/* Expression parsing for plural form selection. + Copyright (C) 2000-2001, 2003 Free Software Foundation, Inc. + Written by Ulrich Drepper , 2000. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include +#include + +#include "plural-exp.h" + +#if (defined __GNUC__ && !defined __APPLE_CC__) \ + || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) + +/* These structs are the constant expression for the germanic plural + form determination. It represents the expression "n != 1". */ +static const struct expression plvar = +{ + .nargs = 0, + .operation = var, +}; +static const struct expression plone = +{ + .nargs = 0, + .operation = num, + .val = + { + .num = 1 + } +}; +struct expression GERMANIC_PLURAL = +{ + .nargs = 2, + .operation = not_equal, + .val = + { + .args = + { + [0] = (struct expression *) &plvar, + [1] = (struct expression *) &plone + } + } +}; + +# define INIT_GERMANIC_PLURAL() + +#else + +/* For compilers without support for ISO C 99 struct/union initializers: + Initialization at run-time. */ + +static struct expression plvar; +static struct expression plone; +struct expression GERMANIC_PLURAL; + +static void +init_germanic_plural () +{ + if (plone.val.num == 0) + { + plvar.nargs = 0; + plvar.operation = var; + + plone.nargs = 0; + plone.operation = num; + plone.val.num = 1; + + GERMANIC_PLURAL.nargs = 2; + GERMANIC_PLURAL.operation = not_equal; + GERMANIC_PLURAL.val.args[0] = &plvar; + GERMANIC_PLURAL.val.args[1] = &plone; + } +} + +# define INIT_GERMANIC_PLURAL() init_germanic_plural () + +#endif + +void +internal_function +EXTRACT_PLURAL_EXPRESSION (const char *nullentry, struct expression **pluralp, + unsigned long int *npluralsp) +{ + if (nullentry != NULL) + { + const char *plural; + const char *nplurals; + + plural = strstr (nullentry, "plural="); + nplurals = strstr (nullentry, "nplurals="); + if (plural == NULL || nplurals == NULL) + goto no_plural; + else + { + char *endp; + unsigned long int n; + struct parse_args args; + + /* First get the number. */ + nplurals += 9; + while (*nplurals != '\0' && isspace ((unsigned char) *nplurals)) + ++nplurals; + if (!(*nplurals >= '0' && *nplurals <= '9')) + goto no_plural; +#if defined HAVE_STRTOUL || defined _LIBC + n = strtoul (nplurals, &endp, 10); +#else + for (endp = nplurals, n = 0; *endp >= '0' && *endp <= '9'; endp++) + n = n * 10 + (*endp - '0'); +#endif + if (nplurals == endp) + goto no_plural; + *npluralsp = n; + + /* Due to the restrictions bison imposes onto the interface of the + scanner function we have to put the input string and the result + passed up from the parser into the same structure which address + is passed down to the parser. */ + plural += 7; + args.cp = plural; + if (PLURAL_PARSE (&args) != 0) + goto no_plural; + *pluralp = args.res; + } + } + else + { + /* By default we are using the Germanic form: singular form only + for `one', the plural form otherwise. Yes, this is also what + English is using since English is a Germanic language. */ + no_plural: + INIT_GERMANIC_PLURAL (); + *pluralp = &GERMANIC_PLURAL; + *npluralsp = 2; + } +} diff --git a/intl/plural-exp.h b/intl/plural-exp.h new file mode 100644 index 0000000..f540184 --- /dev/null +++ b/intl/plural-exp.h @@ -0,0 +1,118 @@ +/* Expression parsing and evaluation for plural form selection. + Copyright (C) 2000-2003 Free Software Foundation, Inc. + Written by Ulrich Drepper , 2000. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _PLURAL_EXP_H +#define _PLURAL_EXP_H + +#ifndef internal_function +# define internal_function +#endif + +#ifndef attribute_hidden +# define attribute_hidden +#endif + + +/* This is the representation of the expressions to determine the + plural form. */ +struct expression +{ + int nargs; /* Number of arguments. */ + enum operator + { + /* Without arguments: */ + var, /* The variable "n". */ + num, /* Decimal number. */ + /* Unary operators: */ + lnot, /* Logical NOT. */ + /* Binary operators: */ + mult, /* Multiplication. */ + divide, /* Division. */ + module, /* Modulo operation. */ + plus, /* Addition. */ + minus, /* Subtraction. */ + less_than, /* Comparison. */ + greater_than, /* Comparison. */ + less_or_equal, /* Comparison. */ + greater_or_equal, /* Comparison. */ + equal, /* Comparison for equality. */ + not_equal, /* Comparison for inequality. */ + land, /* Logical AND. */ + lor, /* Logical OR. */ + /* Ternary operators: */ + qmop /* Question mark operator. */ + } operation; + union + { + unsigned long int num; /* Number value for `num'. */ + struct expression *args[3]; /* Up to three arguments. */ + } val; +}; + +/* This is the data structure to pass information to the parser and get + the result in a thread-safe way. */ +struct parse_args +{ + const char *cp; + struct expression *res; +}; + + +/* Names for the libintl functions are a problem. This source code is used + 1. in the GNU C Library library, + 2. in the GNU libintl library, + 3. in the GNU gettext tools. + The function names in each situation must be different, to allow for + binary incompatible changes in 'struct expression'. Furthermore, + 1. in the GNU C Library library, the names have a __ prefix, + 2.+3. in the GNU libintl library and in the GNU gettext tools, the names + must follow ANSI C and not start with __. + So we have to distinguish the three cases. */ +#ifdef _LIBC +# define FREE_EXPRESSION __gettext_free_exp +# define PLURAL_PARSE __gettextparse +# define GERMANIC_PLURAL __gettext_germanic_plural +# define EXTRACT_PLURAL_EXPRESSION __gettext_extract_plural +#elif defined (IN_LIBINTL) +# define FREE_EXPRESSION libintl_gettext_free_exp +# define PLURAL_PARSE libintl_gettextparse +# define GERMANIC_PLURAL libintl_gettext_germanic_plural +# define EXTRACT_PLURAL_EXPRESSION libintl_gettext_extract_plural +#else +# define FREE_EXPRESSION free_plural_expression +# define PLURAL_PARSE parse_plural_expression +# define GERMANIC_PLURAL germanic_plural +# define EXTRACT_PLURAL_EXPRESSION extract_plural_expression +#endif + +extern void FREE_EXPRESSION (struct expression *exp) + internal_function; +extern int PLURAL_PARSE (void *arg); +extern struct expression GERMANIC_PLURAL attribute_hidden; +extern void EXTRACT_PLURAL_EXPRESSION (const char *nullentry, + struct expression **pluralp, + unsigned long int *npluralsp) + internal_function; + +#if !defined (_LIBC) && !defined (IN_LIBINTL) +extern unsigned long int plural_eval (struct expression *pexp, + unsigned long int n); +#endif + +#endif /* _PLURAL_EXP_H */ diff --git a/intl/plural.c b/intl/plural.c new file mode 100644 index 0000000..78a223d --- /dev/null +++ b/intl/plural.c @@ -0,0 +1,1490 @@ +/* A Bison parser, made from plural.y + by GNU bison 1.35. */ + +#define YYBISON 1 /* Identify Bison output. */ + +#define yyparse __gettextparse +#define yylex __gettextlex +#define yyerror __gettexterror +#define yylval __gettextlval +#define yychar __gettextchar +#define yydebug __gettextdebug +#define yynerrs __gettextnerrs +# define EQUOP2 257 +# define CMPOP2 258 +# define ADDOP2 259 +# define MULOP2 260 +# define NUMBER 261 + +#line 1 "plural.y" + +/* Expression parsing for plural form selection. + Copyright (C) 2000-2001, 2003 Free Software Foundation, Inc. + Written by Ulrich Drepper , 2000. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* The bison generated parser uses alloca. AIX 3 forces us to put this + declaration at the beginning of the file. The declaration in bison's + skeleton file comes too late. This must come before + because may include arbitrary system headers. */ +#if defined _AIX && !defined __GNUC__ + #pragma alloca +#endif + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include +#include "plural-exp.h" + +/* The main function generated by the parser is called __gettextparse, + but we want it to be called PLURAL_PARSE. */ +#ifndef _LIBC +# define __gettextparse PLURAL_PARSE +#endif + +#define YYLEX_PARAM &((struct parse_args *) arg)->cp +#define YYPARSE_PARAM arg + +#line 49 "plural.y" +#ifndef YYSTYPE +typedef union { + unsigned long int num; + enum operator op; + struct expression *exp; +} yystype; +# define YYSTYPE yystype +# define YYSTYPE_IS_TRIVIAL 1 +#endif +#line 55 "plural.y" + +/* Prototypes for local functions. */ +static int yylex (YYSTYPE *lval, const char **pexp); +static void yyerror (const char *str); + +/* Allocation of expressions. */ + +static struct expression * +new_exp (int nargs, enum operator op, struct expression * const *args) +{ + int i; + struct expression *newp; + + /* If any of the argument could not be malloc'ed, just return NULL. */ + for (i = nargs - 1; i >= 0; i--) + if (args[i] == NULL) + goto fail; + + /* Allocate a new expression. */ + newp = (struct expression *) malloc (sizeof (*newp)); + if (newp != NULL) + { + newp->nargs = nargs; + newp->operation = op; + for (i = nargs - 1; i >= 0; i--) + newp->val.args[i] = args[i]; + return newp; + } + + fail: + for (i = nargs - 1; i >= 0; i--) + FREE_EXPRESSION (args[i]); + + return NULL; +} + +static inline struct expression * +new_exp_0 (enum operator op) +{ + return new_exp (0, op, NULL); +} + +static inline struct expression * +new_exp_1 (enum operator op, struct expression *right) +{ + struct expression *args[1]; + + args[0] = right; + return new_exp (1, op, args); +} + +static struct expression * +new_exp_2 (enum operator op, struct expression *left, struct expression *right) +{ + struct expression *args[2]; + + args[0] = left; + args[1] = right; + return new_exp (2, op, args); +} + +static inline struct expression * +new_exp_3 (enum operator op, struct expression *bexp, + struct expression *tbranch, struct expression *fbranch) +{ + struct expression *args[3]; + + args[0] = bexp; + args[1] = tbranch; + args[2] = fbranch; + return new_exp (3, op, args); +} + +#ifndef YYDEBUG +# define YYDEBUG 0 +#endif + + + +#define YYFINAL 27 +#define YYFLAG -32768 +#define YYNTBASE 16 + +/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ +#define YYTRANSLATE(x) ((unsigned)(x) <= 261 ? yytranslate[x] : 18) + +/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ +static const char yytranslate[] = +{ + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 10, 2, 2, 2, 2, 5, 2, + 14, 15, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 12, 2, + 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 13, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 1, 6, 7, 8, + 9, 11 +}; + +#if YYDEBUG +static const short yyprhs[] = +{ + 0, 0, 2, 8, 12, 16, 20, 24, 28, 32, + 35, 37, 39 +}; +static const short yyrhs[] = +{ + 17, 0, 17, 3, 17, 12, 17, 0, 17, 4, + 17, 0, 17, 5, 17, 0, 17, 6, 17, 0, + 17, 7, 17, 0, 17, 8, 17, 0, 17, 9, + 17, 0, 10, 17, 0, 13, 0, 11, 0, 14, + 17, 15, 0 +}; + +#endif + +#if YYDEBUG +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ +static const short yyrline[] = +{ + 0, 150, 158, 162, 166, 170, 174, 178, 182, 186, + 190, 194, 199 +}; +#endif + + +#if (YYDEBUG) || defined YYERROR_VERBOSE + +/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */ +static const char *const yytname[] = +{ + "$", "error", "$undefined.", "'?'", "'|'", "'&'", "EQUOP2", "CMPOP2", + "ADDOP2", "MULOP2", "'!'", "NUMBER", "':'", "'n'", "'('", "')'", + "start", "exp", 0 +}; +#endif + +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const short yyr1[] = +{ + 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, + 17, 17, 17 +}; + +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ +static const short yyr2[] = +{ + 0, 1, 5, 3, 3, 3, 3, 3, 3, 2, + 1, 1, 3 +}; + +/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE + doesn't specify something else to do. Zero means the default is an + error. */ +static const short yydefact[] = +{ + 0, 0, 11, 10, 0, 1, 9, 0, 0, 0, + 0, 0, 0, 0, 0, 12, 0, 3, 4, 5, + 6, 7, 8, 0, 2, 0, 0, 0 +}; + +static const short yydefgoto[] = +{ + 25, 5 +}; + +static const short yypact[] = +{ + -9, -9,-32768,-32768, -9, 34,-32768, 11, -9, -9, + -9, -9, -9, -9, -9,-32768, 24, 39, 43, 16, + 26, -3,-32768, -9, 34, 21, 53,-32768 +}; + +static const short yypgoto[] = +{ + -32768, -1 +}; + + +#define YYLAST 53 + + +static const short yytable[] = +{ + 6, 1, 2, 7, 3, 4, 14, 16, 17, 18, + 19, 20, 21, 22, 8, 9, 10, 11, 12, 13, + 14, 26, 24, 12, 13, 14, 15, 8, 9, 10, + 11, 12, 13, 14, 13, 14, 23, 8, 9, 10, + 11, 12, 13, 14, 10, 11, 12, 13, 14, 11, + 12, 13, 14, 27 +}; + +static const short yycheck[] = +{ + 1, 10, 11, 4, 13, 14, 9, 8, 9, 10, + 11, 12, 13, 14, 3, 4, 5, 6, 7, 8, + 9, 0, 23, 7, 8, 9, 15, 3, 4, 5, + 6, 7, 8, 9, 8, 9, 12, 3, 4, 5, + 6, 7, 8, 9, 5, 6, 7, 8, 9, 6, + 7, 8, 9, 0 +}; +#define YYPURE 1 + +/* -*-C-*- Note some compilers choke on comments on `#line' lines. */ +#line 3 "/home/haible/gnu/arch/linuxlibc6/share/bison/bison.simple" + +/* Skeleton output parser for bison, + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software + Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +/* As a special exception, when this file is copied by Bison into a + Bison output file, you may use that output file without restriction. + This special exception was added by the Free Software Foundation + in version 1.24 of Bison. */ + +/* This is the parser code that is written into each bison parser when + the %semantic_parser declaration is not specified in the grammar. + It was written by Richard Stallman by simplifying the hairy parser + used when %semantic_parser is specified. */ + +/* All symbols defined below should begin with yy or YY, to avoid + infringing on user name space. This should be done even for local + variables, as they might otherwise be expanded by user macros. + There are some unavoidable exceptions within include files to + define necessary library symbols; they are noted "INFRINGES ON + USER NAME SPACE" below. */ + +#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE) + +/* The parser invokes alloca or malloc; define the necessary symbols. */ + +# if YYSTACK_USE_ALLOCA +# define YYSTACK_ALLOC alloca +# else +# ifndef YYSTACK_USE_ALLOCA +# if defined (alloca) || defined (_ALLOCA_H) +# define YYSTACK_ALLOC alloca +# else +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# endif +# endif +# endif +# endif + +# ifdef YYSTACK_ALLOC + /* Pacify GCC's `empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) +# else +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# endif +# define YYSTACK_ALLOC malloc +# define YYSTACK_FREE free +# endif +#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */ + + +#if (! defined (yyoverflow) \ + && (! defined (__cplusplus) \ + || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) + +/* A type that is properly aligned for any stack member. */ +union yyalloc +{ + short yyss; + YYSTYPE yyvs; +# if YYLSP_NEEDED + YYLTYPE yyls; +# endif +}; + +/* The size of the maximum gap between one aligned stack and the next. */ +# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1) + +/* The size of an array large to enough to hold all stacks, each with + N elements. */ +# if YYLSP_NEEDED +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ + + 2 * YYSTACK_GAP_MAX) +# else +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ + + YYSTACK_GAP_MAX) +# endif + +/* Copy COUNT objects from FROM to TO. The source and destination do + not overlap. */ +# ifndef YYCOPY +# if 1 < __GNUC__ +# define YYCOPY(To, From, Count) \ + __builtin_memcpy (To, From, (Count) * sizeof (*(From))) +# else +# define YYCOPY(To, From, Count) \ + do \ + { \ + register YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (To)[yyi] = (From)[yyi]; \ + } \ + while (0) +# endif +# endif + +/* Relocate STACK from its old location to the new one. The + local variables YYSIZE and YYSTACKSIZE give the old and new number of + elements in the stack, and YYPTR gives the new location of the + stack. Advance YYPTR to a properly aligned location for the next + stack. */ +# define YYSTACK_RELOCATE(Stack) \ + do \ + { \ + YYSIZE_T yynewbytes; \ + YYCOPY (&yyptr->Stack, Stack, yysize); \ + Stack = &yyptr->Stack; \ + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX; \ + yyptr += yynewbytes / sizeof (*yyptr); \ + } \ + while (0) + +#endif + + +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) +# define YYSIZE_T __SIZE_TYPE__ +#endif +#if ! defined (YYSIZE_T) && defined (size_t) +# define YYSIZE_T size_t +#endif +#if ! defined (YYSIZE_T) +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# endif +#endif +#if ! defined (YYSIZE_T) +# define YYSIZE_T unsigned int +#endif + +#define yyerrok (yyerrstatus = 0) +#define yyclearin (yychar = YYEMPTY) +#define YYEMPTY -2 +#define YYEOF 0 +#define YYACCEPT goto yyacceptlab +#define YYABORT goto yyabortlab +#define YYERROR goto yyerrlab1 +/* Like YYERROR except do call yyerror. This remains here temporarily + to ease the transition to the new meaning of YYERROR, for GCC. + Once GCC version 2 has supplanted version 1, this can go. */ +#define YYFAIL goto yyerrlab +#define YYRECOVERING() (!!yyerrstatus) +#define YYBACKUP(Token, Value) \ +do \ + if (yychar == YYEMPTY && yylen == 1) \ + { \ + yychar = (Token); \ + yylval = (Value); \ + yychar1 = YYTRANSLATE (yychar); \ + YYPOPSTACK; \ + goto yybackup; \ + } \ + else \ + { \ + yyerror ("syntax error: cannot back up"); \ + YYERROR; \ + } \ +while (0) + +#define YYTERROR 1 +#define YYERRCODE 256 + + +/* YYLLOC_DEFAULT -- Compute the default location (before the actions + are run). + + When YYLLOC_DEFAULT is run, CURRENT is set the location of the + first token. By default, to implement support for ranges, extend + its range to the last symbol. */ + +#ifndef YYLLOC_DEFAULT +# define YYLLOC_DEFAULT(Current, Rhs, N) \ + Current.last_line = Rhs[N].last_line; \ + Current.last_column = Rhs[N].last_column; +#endif + + +/* YYLEX -- calling `yylex' with the right arguments. */ + +#if YYPURE +# if YYLSP_NEEDED +# ifdef YYLEX_PARAM +# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM) +# else +# define YYLEX yylex (&yylval, &yylloc) +# endif +# else /* !YYLSP_NEEDED */ +# ifdef YYLEX_PARAM +# define YYLEX yylex (&yylval, YYLEX_PARAM) +# else +# define YYLEX yylex (&yylval) +# endif +# endif /* !YYLSP_NEEDED */ +#else /* !YYPURE */ +# define YYLEX yylex () +#endif /* !YYPURE */ + + +/* Enable debugging if requested. */ +#if YYDEBUG + +# ifndef YYFPRINTF +# include /* INFRINGES ON USER NAME SPACE */ +# define YYFPRINTF fprintf +# endif + +# define YYDPRINTF(Args) \ +do { \ + if (yydebug) \ + YYFPRINTF Args; \ +} while (0) +/* Nonzero means print parse trace. It is left uninitialized so that + multiple parsers can coexist. */ +int yydebug; +#else /* !YYDEBUG */ +# define YYDPRINTF(Args) +#endif /* !YYDEBUG */ + +/* YYINITDEPTH -- initial size of the parser's stacks. */ +#ifndef YYINITDEPTH +# define YYINITDEPTH 200 +#endif + +/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only + if the built-in stack extension method is used). + + Do not make this value too large; the results are undefined if + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) + evaluated with infinite-precision integer arithmetic. */ + +#if YYMAXDEPTH == 0 +# undef YYMAXDEPTH +#endif + +#ifndef YYMAXDEPTH +# define YYMAXDEPTH 10000 +#endif + +#ifdef YYERROR_VERBOSE + +# ifndef yystrlen +# if defined (__GLIBC__) && defined (_STRING_H) +# define yystrlen strlen +# else +/* Return the length of YYSTR. */ +static YYSIZE_T +# if defined (__STDC__) || defined (__cplusplus) +yystrlen (const char *yystr) +# else +yystrlen (yystr) + const char *yystr; +# endif +{ + register const char *yys = yystr; + + while (*yys++ != '\0') + continue; + + return yys - yystr - 1; +} +# endif +# endif + +# ifndef yystpcpy +# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE) +# define yystpcpy stpcpy +# else +/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in + YYDEST. */ +static char * +# if defined (__STDC__) || defined (__cplusplus) +yystpcpy (char *yydest, const char *yysrc) +# else +yystpcpy (yydest, yysrc) + char *yydest; + const char *yysrc; +# endif +{ + register char *yyd = yydest; + register const char *yys = yysrc; + + while ((*yyd++ = *yys++) != '\0') + continue; + + return yyd - 1; +} +# endif +# endif +#endif + +#line 315 "/home/haible/gnu/arch/linuxlibc6/share/bison/bison.simple" + + +/* The user can define YYPARSE_PARAM as the name of an argument to be passed + into yyparse. The argument should have type void *. + It should actually point to an object. + Grammar actions can access the variable by casting it + to the proper pointer type. */ + +#ifdef YYPARSE_PARAM +# if defined (__STDC__) || defined (__cplusplus) +# define YYPARSE_PARAM_ARG void *YYPARSE_PARAM +# define YYPARSE_PARAM_DECL +# else +# define YYPARSE_PARAM_ARG YYPARSE_PARAM +# define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; +# endif +#else /* !YYPARSE_PARAM */ +# define YYPARSE_PARAM_ARG +# define YYPARSE_PARAM_DECL +#endif /* !YYPARSE_PARAM */ + +/* Prevent warning if -Wstrict-prototypes. */ +#ifdef __GNUC__ +# ifdef YYPARSE_PARAM +int yyparse (void *); +# else +int yyparse (void); +# endif +#endif + +/* YY_DECL_VARIABLES -- depending whether we use a pure parser, + variables are global, or local to YYPARSE. */ + +#define YY_DECL_NON_LSP_VARIABLES \ +/* The lookahead symbol. */ \ +int yychar; \ + \ +/* The semantic value of the lookahead symbol. */ \ +YYSTYPE yylval; \ + \ +/* Number of parse errors so far. */ \ +int yynerrs; + +#if YYLSP_NEEDED +# define YY_DECL_VARIABLES \ +YY_DECL_NON_LSP_VARIABLES \ + \ +/* Location data for the lookahead symbol. */ \ +YYLTYPE yylloc; +#else +# define YY_DECL_VARIABLES \ +YY_DECL_NON_LSP_VARIABLES +#endif + + +/* If nonreentrant, generate the variables here. */ + +#if !YYPURE +YY_DECL_VARIABLES +#endif /* !YYPURE */ + +int +yyparse (YYPARSE_PARAM_ARG) + YYPARSE_PARAM_DECL +{ + /* If reentrant, generate the variables here. */ +#if YYPURE + YY_DECL_VARIABLES +#endif /* !YYPURE */ + + register int yystate; + register int yyn; + int yyresult; + /* Number of tokens to shift before error messages enabled. */ + int yyerrstatus; + /* Lookahead token as an internal (translated) token number. */ + int yychar1 = 0; + + /* Three stacks and their tools: + `yyss': related to states, + `yyvs': related to semantic values, + `yyls': related to locations. + + Refer to the stacks thru separate pointers, to allow yyoverflow + to reallocate them elsewhere. */ + + /* The state stack. */ + short yyssa[YYINITDEPTH]; + short *yyss = yyssa; + register short *yyssp; + + /* The semantic value stack. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs = yyvsa; + register YYSTYPE *yyvsp; + +#if YYLSP_NEEDED + /* The location stack. */ + YYLTYPE yylsa[YYINITDEPTH]; + YYLTYPE *yyls = yylsa; + YYLTYPE *yylsp; +#endif + +#if YYLSP_NEEDED +# define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) +#else +# define YYPOPSTACK (yyvsp--, yyssp--) +#endif + + YYSIZE_T yystacksize = YYINITDEPTH; + + + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; +#if YYLSP_NEEDED + YYLTYPE yyloc; +#endif + + /* When reducing, the number of symbols on the RHS of the reduced + rule. */ + int yylen; + + YYDPRINTF ((stderr, "Starting parse\n")); + + yystate = 0; + yyerrstatus = 0; + yynerrs = 0; + yychar = YYEMPTY; /* Cause a token to be read. */ + + /* Initialize stack pointers. + Waste one element of value and location stack + so that they stay on the same level as the state stack. + The wasted elements are never initialized. */ + + yyssp = yyss; + yyvsp = yyvs; +#if YYLSP_NEEDED + yylsp = yyls; +#endif + goto yysetstate; + +/*------------------------------------------------------------. +| yynewstate -- Push a new state, which is found in yystate. | +`------------------------------------------------------------*/ + yynewstate: + /* In all cases, when you get here, the value and location stacks + have just been pushed. so pushing a state here evens the stacks. + */ + yyssp++; + + yysetstate: + *yyssp = yystate; + + if (yyssp >= yyss + yystacksize - 1) + { + /* Get the current used size of the three stacks, in elements. */ + YYSIZE_T yysize = yyssp - yyss + 1; + +#ifdef yyoverflow + { + /* Give user a chance to reallocate the stack. Use copies of + these so that the &'s don't force the real ones into + memory. */ + YYSTYPE *yyvs1 = yyvs; + short *yyss1 = yyss; + + /* Each stack pointer address is followed by the size of the + data in use in that stack, in bytes. */ +# if YYLSP_NEEDED + YYLTYPE *yyls1 = yyls; + /* This used to be a conditional around just the two extra args, + but that might be undefined if yyoverflow is a macro. */ + yyoverflow ("parser stack overflow", + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yyls1, yysize * sizeof (*yylsp), + &yystacksize); + yyls = yyls1; +# else + yyoverflow ("parser stack overflow", + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yystacksize); +# endif + yyss = yyss1; + yyvs = yyvs1; + } +#else /* no yyoverflow */ +# ifndef YYSTACK_RELOCATE + goto yyoverflowlab; +# else + /* Extend the stack our own way. */ + if (yystacksize >= YYMAXDEPTH) + goto yyoverflowlab; + yystacksize *= 2; + if (yystacksize > YYMAXDEPTH) + yystacksize = YYMAXDEPTH; + + { + short *yyss1 = yyss; + union yyalloc *yyptr = + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + if (! yyptr) + goto yyoverflowlab; + YYSTACK_RELOCATE (yyss); + YYSTACK_RELOCATE (yyvs); +# if YYLSP_NEEDED + YYSTACK_RELOCATE (yyls); +# endif +# undef YYSTACK_RELOCATE + if (yyss1 != yyssa) + YYSTACK_FREE (yyss1); + } +# endif +#endif /* no yyoverflow */ + + yyssp = yyss + yysize - 1; + yyvsp = yyvs + yysize - 1; +#if YYLSP_NEEDED + yylsp = yyls + yysize - 1; +#endif + + YYDPRINTF ((stderr, "Stack size increased to %lu\n", + (unsigned long int) yystacksize)); + + if (yyssp >= yyss + yystacksize - 1) + YYABORT; + } + + YYDPRINTF ((stderr, "Entering state %d\n", yystate)); + + goto yybackup; + + +/*-----------. +| yybackup. | +`-----------*/ +yybackup: + +/* Do appropriate processing given the current state. */ +/* Read a lookahead token if we need one and don't already have one. */ +/* yyresume: */ + + /* First try to decide what to do without reference to lookahead token. */ + + yyn = yypact[yystate]; + if (yyn == YYFLAG) + goto yydefault; + + /* Not known => get a lookahead token if don't already have one. */ + + /* yychar is either YYEMPTY or YYEOF + or a valid token in external form. */ + + if (yychar == YYEMPTY) + { + YYDPRINTF ((stderr, "Reading a token: ")); + yychar = YYLEX; + } + + /* Convert token to internal form (in yychar1) for indexing tables with */ + + if (yychar <= 0) /* This means end of input. */ + { + yychar1 = 0; + yychar = YYEOF; /* Don't call YYLEX any more */ + + YYDPRINTF ((stderr, "Now at end of input.\n")); + } + else + { + yychar1 = YYTRANSLATE (yychar); + +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables + which are defined only if `YYDEBUG' is set. */ + if (yydebug) + { + YYFPRINTF (stderr, "Next token is %d (%s", + yychar, yytname[yychar1]); + /* Give the individual parser a way to print the precise + meaning of a token, for further debugging info. */ +# ifdef YYPRINT + YYPRINT (stderr, yychar, yylval); +# endif + YYFPRINTF (stderr, ")\n"); + } +#endif + } + + yyn += yychar1; + if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) + goto yydefault; + + yyn = yytable[yyn]; + + /* yyn is what to do for this token type in this state. + Negative => reduce, -yyn is rule number. + Positive => shift, yyn is new state. + New state is final state => don't bother to shift, + just return success. + 0, or most negative number => error. */ + + if (yyn < 0) + { + if (yyn == YYFLAG) + goto yyerrlab; + yyn = -yyn; + goto yyreduce; + } + else if (yyn == 0) + goto yyerrlab; + + if (yyn == YYFINAL) + YYACCEPT; + + /* Shift the lookahead token. */ + YYDPRINTF ((stderr, "Shifting token %d (%s), ", + yychar, yytname[yychar1])); + + /* Discard the token being shifted unless it is eof. */ + if (yychar != YYEOF) + yychar = YYEMPTY; + + *++yyvsp = yylval; +#if YYLSP_NEEDED + *++yylsp = yylloc; +#endif + + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; + + yystate = yyn; + goto yynewstate; + + +/*-----------------------------------------------------------. +| yydefault -- do the default action for the current state. | +`-----------------------------------------------------------*/ +yydefault: + yyn = yydefact[yystate]; + if (yyn == 0) + goto yyerrlab; + goto yyreduce; + + +/*-----------------------------. +| yyreduce -- Do a reduction. | +`-----------------------------*/ +yyreduce: + /* yyn is the number of a rule to reduce with. */ + yylen = yyr2[yyn]; + + /* If YYLEN is nonzero, implement the default value of the action: + `$$ = $1'. + + Otherwise, the following line sets YYVAL to the semantic value of + the lookahead token. This behavior is undocumented and Bison + users should not rely upon it. Assigning to YYVAL + unconditionally makes the parser a bit smaller, and it avoids a + GCC warning that YYVAL may be used uninitialized. */ + yyval = yyvsp[1-yylen]; + +#if YYLSP_NEEDED + /* Similarly for the default location. Let the user run additional + commands if for instance locations are ranges. */ + yyloc = yylsp[1-yylen]; + YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); +#endif + +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables which + are defined only if `YYDEBUG' is set. */ + if (yydebug) + { + int yyi; + + YYFPRINTF (stderr, "Reducing via rule %d (line %d), ", + yyn, yyrline[yyn]); + + /* Print the symbols being reduced, and their result. */ + for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++) + YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); + YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]); + } +#endif + + switch (yyn) { + +case 1: +#line 151 "plural.y" +{ + if (yyvsp[0].exp == NULL) + YYABORT; + ((struct parse_args *) arg)->res = yyvsp[0].exp; + } + break; +case 2: +#line 159 "plural.y" +{ + yyval.exp = new_exp_3 (qmop, yyvsp[-4].exp, yyvsp[-2].exp, yyvsp[0].exp); + } + break; +case 3: +#line 163 "plural.y" +{ + yyval.exp = new_exp_2 (lor, yyvsp[-2].exp, yyvsp[0].exp); + } + break; +case 4: +#line 167 "plural.y" +{ + yyval.exp = new_exp_2 (land, yyvsp[-2].exp, yyvsp[0].exp); + } + break; +case 5: +#line 171 "plural.y" +{ + yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp); + } + break; +case 6: +#line 175 "plural.y" +{ + yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp); + } + break; +case 7: +#line 179 "plural.y" +{ + yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp); + } + break; +case 8: +#line 183 "plural.y" +{ + yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp); + } + break; +case 9: +#line 187 "plural.y" +{ + yyval.exp = new_exp_1 (lnot, yyvsp[0].exp); + } + break; +case 10: +#line 191 "plural.y" +{ + yyval.exp = new_exp_0 (var); + } + break; +case 11: +#line 195 "plural.y" +{ + if ((yyval.exp = new_exp_0 (num)) != NULL) + yyval.exp->val.num = yyvsp[0].num; + } + break; +case 12: +#line 200 "plural.y" +{ + yyval.exp = yyvsp[-1].exp; + } + break; +} + +#line 705 "/home/haible/gnu/arch/linuxlibc6/share/bison/bison.simple" + + + yyvsp -= yylen; + yyssp -= yylen; +#if YYLSP_NEEDED + yylsp -= yylen; +#endif + +#if YYDEBUG + if (yydebug) + { + short *yyssp1 = yyss - 1; + YYFPRINTF (stderr, "state stack now"); + while (yyssp1 != yyssp) + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); + } +#endif + + *++yyvsp = yyval; +#if YYLSP_NEEDED + *++yylsp = yyloc; +#endif + + /* Now `shift' the result of the reduction. Determine what state + that goes to, based on the state we popped back to and the rule + number reduced by. */ + + yyn = yyr1[yyn]; + + yystate = yypgoto[yyn - YYNTBASE] + *yyssp; + if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp) + yystate = yytable[yystate]; + else + yystate = yydefgoto[yyn - YYNTBASE]; + + goto yynewstate; + + +/*------------------------------------. +| yyerrlab -- here on detecting error | +`------------------------------------*/ +yyerrlab: + /* If not already recovering from an error, report this error. */ + if (!yyerrstatus) + { + ++yynerrs; + +#ifdef YYERROR_VERBOSE + yyn = yypact[yystate]; + + if (yyn > YYFLAG && yyn < YYLAST) + { + YYSIZE_T yysize = 0; + char *yymsg; + int yyx, yycount; + + yycount = 0; + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. */ + for (yyx = yyn < 0 ? -yyn : 0; + yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) + if (yycheck[yyx + yyn] == yyx) + yysize += yystrlen (yytname[yyx]) + 15, yycount++; + yysize += yystrlen ("parse error, unexpected ") + 1; + yysize += yystrlen (yytname[YYTRANSLATE (yychar)]); + yymsg = (char *) YYSTACK_ALLOC (yysize); + if (yymsg != 0) + { + char *yyp = yystpcpy (yymsg, "parse error, unexpected "); + yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]); + + if (yycount < 5) + { + yycount = 0; + for (yyx = yyn < 0 ? -yyn : 0; + yyx < (int) (sizeof (yytname) / sizeof (char *)); + yyx++) + if (yycheck[yyx + yyn] == yyx) + { + const char *yyq = ! yycount ? ", expecting " : " or "; + yyp = yystpcpy (yyp, yyq); + yyp = yystpcpy (yyp, yytname[yyx]); + yycount++; + } + } + yyerror (yymsg); + YYSTACK_FREE (yymsg); + } + else + yyerror ("parse error; also virtual memory exhausted"); + } + else +#endif /* defined (YYERROR_VERBOSE) */ + yyerror ("parse error"); + } + goto yyerrlab1; + + +/*--------------------------------------------------. +| yyerrlab1 -- error raised explicitly by an action | +`--------------------------------------------------*/ +yyerrlab1: + if (yyerrstatus == 3) + { + /* If just tried and failed to reuse lookahead token after an + error, discard it. */ + + /* return failure if at end of input */ + if (yychar == YYEOF) + YYABORT; + YYDPRINTF ((stderr, "Discarding token %d (%s).\n", + yychar, yytname[yychar1])); + yychar = YYEMPTY; + } + + /* Else will try to reuse lookahead token after shifting the error + token. */ + + yyerrstatus = 3; /* Each real token shifted decrements this */ + + goto yyerrhandle; + + +/*-------------------------------------------------------------------. +| yyerrdefault -- current state does not do anything special for the | +| error token. | +`-------------------------------------------------------------------*/ +yyerrdefault: +#if 0 + /* This is wrong; only states that explicitly want error tokens + should shift them. */ + + /* If its default is to accept any token, ok. Otherwise pop it. */ + yyn = yydefact[yystate]; + if (yyn) + goto yydefault; +#endif + + +/*---------------------------------------------------------------. +| yyerrpop -- pop the current state because it cannot handle the | +| error token | +`---------------------------------------------------------------*/ +yyerrpop: + if (yyssp == yyss) + YYABORT; + yyvsp--; + yystate = *--yyssp; +#if YYLSP_NEEDED + yylsp--; +#endif + +#if YYDEBUG + if (yydebug) + { + short *yyssp1 = yyss - 1; + YYFPRINTF (stderr, "Error: state stack now"); + while (yyssp1 != yyssp) + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); + } +#endif + +/*--------------. +| yyerrhandle. | +`--------------*/ +yyerrhandle: + yyn = yypact[yystate]; + if (yyn == YYFLAG) + goto yyerrdefault; + + yyn += YYTERROR; + if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) + goto yyerrdefault; + + yyn = yytable[yyn]; + if (yyn < 0) + { + if (yyn == YYFLAG) + goto yyerrpop; + yyn = -yyn; + goto yyreduce; + } + else if (yyn == 0) + goto yyerrpop; + + if (yyn == YYFINAL) + YYACCEPT; + + YYDPRINTF ((stderr, "Shifting error token, ")); + + *++yyvsp = yylval; +#if YYLSP_NEEDED + *++yylsp = yylloc; +#endif + + yystate = yyn; + goto yynewstate; + + +/*-------------------------------------. +| yyacceptlab -- YYACCEPT comes here. | +`-------------------------------------*/ +yyacceptlab: + yyresult = 0; + goto yyreturn; + +/*-----------------------------------. +| yyabortlab -- YYABORT comes here. | +`-----------------------------------*/ +yyabortlab: + yyresult = 1; + goto yyreturn; + +/*---------------------------------------------. +| yyoverflowab -- parser overflow comes here. | +`---------------------------------------------*/ +yyoverflowlab: + yyerror ("parser stack overflow"); + yyresult = 2; + /* Fall through. */ + +yyreturn: +#ifndef yyoverflow + if (yyss != yyssa) + YYSTACK_FREE (yyss); +#endif + return yyresult; +} +#line 205 "plural.y" + + +void +internal_function +FREE_EXPRESSION (struct expression *exp) +{ + if (exp == NULL) + return; + + /* Handle the recursive case. */ + switch (exp->nargs) + { + case 3: + FREE_EXPRESSION (exp->val.args[2]); + /* FALLTHROUGH */ + case 2: + FREE_EXPRESSION (exp->val.args[1]); + /* FALLTHROUGH */ + case 1: + FREE_EXPRESSION (exp->val.args[0]); + /* FALLTHROUGH */ + default: + break; + } + + free (exp); +} + + +static int +yylex (YYSTYPE *lval, const char **pexp) +{ + const char *exp = *pexp; + int result; + + while (1) + { + if (exp[0] == '\0') + { + *pexp = exp; + return YYEOF; + } + + if (exp[0] != ' ' && exp[0] != '\t') + break; + + ++exp; + } + + result = *exp++; + switch (result) + { + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + { + unsigned long int n = result - '0'; + while (exp[0] >= '0' && exp[0] <= '9') + { + n *= 10; + n += exp[0] - '0'; + ++exp; + } + lval->num = n; + result = NUMBER; + } + break; + + case '=': + if (exp[0] == '=') + { + ++exp; + lval->op = equal; + result = EQUOP2; + } + else + result = YYERRCODE; + break; + + case '!': + if (exp[0] == '=') + { + ++exp; + lval->op = not_equal; + result = EQUOP2; + } + break; + + case '&': + case '|': + if (exp[0] == result) + ++exp; + else + result = YYERRCODE; + break; + + case '<': + if (exp[0] == '=') + { + ++exp; + lval->op = less_or_equal; + } + else + lval->op = less_than; + result = CMPOP2; + break; + + case '>': + if (exp[0] == '=') + { + ++exp; + lval->op = greater_or_equal; + } + else + lval->op = greater_than; + result = CMPOP2; + break; + + case '*': + lval->op = mult; + result = MULOP2; + break; + + case '/': + lval->op = divide; + result = MULOP2; + break; + + case '%': + lval->op = module; + result = MULOP2; + break; + + case '+': + lval->op = plus; + result = ADDOP2; + break; + + case '-': + lval->op = minus; + result = ADDOP2; + break; + + case 'n': + case '?': + case ':': + case '(': + case ')': + /* Nothing, just return the character. */ + break; + + case ';': + case '\n': + case '\0': + /* Be safe and let the user call this function again. */ + --exp; + result = YYEOF; + break; + + default: + result = YYERRCODE; +#if YYDEBUG != 0 + --exp; +#endif + break; + } + + *pexp = exp; + + return result; +} + + +static void +yyerror (const char *str) +{ + /* Do nothing. We don't print error messages here. */ +} diff --git a/intl/plural.y b/intl/plural.y new file mode 100644 index 0000000..fe79112 --- /dev/null +++ b/intl/plural.y @@ -0,0 +1,381 @@ +%{ +/* Expression parsing for plural form selection. + Copyright (C) 2000-2001, 2003 Free Software Foundation, Inc. + Written by Ulrich Drepper , 2000. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* The bison generated parser uses alloca. AIX 3 forces us to put this + declaration at the beginning of the file. The declaration in bison's + skeleton file comes too late. This must come before + because may include arbitrary system headers. */ +#if defined _AIX && !defined __GNUC__ + #pragma alloca +#endif + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include +#include "plural-exp.h" + +/* The main function generated by the parser is called __gettextparse, + but we want it to be called PLURAL_PARSE. */ +#ifndef _LIBC +# define __gettextparse PLURAL_PARSE +#endif + +#define YYLEX_PARAM &((struct parse_args *) arg)->cp +#define YYPARSE_PARAM arg +%} +%pure_parser +%expect 7 + +%union { + unsigned long int num; + enum operator op; + struct expression *exp; +} + +%{ +/* Prototypes for local functions. */ +static int yylex (YYSTYPE *lval, const char **pexp); +static void yyerror (const char *str); + +/* Allocation of expressions. */ + +static struct expression * +new_exp (int nargs, enum operator op, struct expression * const *args) +{ + int i; + struct expression *newp; + + /* If any of the argument could not be malloc'ed, just return NULL. */ + for (i = nargs - 1; i >= 0; i--) + if (args[i] == NULL) + goto fail; + + /* Allocate a new expression. */ + newp = (struct expression *) malloc (sizeof (*newp)); + if (newp != NULL) + { + newp->nargs = nargs; + newp->operation = op; + for (i = nargs - 1; i >= 0; i--) + newp->val.args[i] = args[i]; + return newp; + } + + fail: + for (i = nargs - 1; i >= 0; i--) + FREE_EXPRESSION (args[i]); + + return NULL; +} + +static inline struct expression * +new_exp_0 (enum operator op) +{ + return new_exp (0, op, NULL); +} + +static inline struct expression * +new_exp_1 (enum operator op, struct expression *right) +{ + struct expression *args[1]; + + args[0] = right; + return new_exp (1, op, args); +} + +static struct expression * +new_exp_2 (enum operator op, struct expression *left, struct expression *right) +{ + struct expression *args[2]; + + args[0] = left; + args[1] = right; + return new_exp (2, op, args); +} + +static inline struct expression * +new_exp_3 (enum operator op, struct expression *bexp, + struct expression *tbranch, struct expression *fbranch) +{ + struct expression *args[3]; + + args[0] = bexp; + args[1] = tbranch; + args[2] = fbranch; + return new_exp (3, op, args); +} + +%} + +/* This declares that all operators have the same associativity and the + precedence order as in C. See [Harbison, Steele: C, A Reference Manual]. + There is no unary minus and no bitwise operators. + Operators with the same syntactic behaviour have been merged into a single + token, to save space in the array generated by bison. */ +%right '?' /* ? */ +%left '|' /* || */ +%left '&' /* && */ +%left EQUOP2 /* == != */ +%left CMPOP2 /* < > <= >= */ +%left ADDOP2 /* + - */ +%left MULOP2 /* * / % */ +%right '!' /* ! */ + +%token EQUOP2 CMPOP2 ADDOP2 MULOP2 +%token NUMBER +%type exp + +%% + +start: exp + { + if ($1 == NULL) + YYABORT; + ((struct parse_args *) arg)->res = $1; + } + ; + +exp: exp '?' exp ':' exp + { + $$ = new_exp_3 (qmop, $1, $3, $5); + } + | exp '|' exp + { + $$ = new_exp_2 (lor, $1, $3); + } + | exp '&' exp + { + $$ = new_exp_2 (land, $1, $3); + } + | exp EQUOP2 exp + { + $$ = new_exp_2 ($2, $1, $3); + } + | exp CMPOP2 exp + { + $$ = new_exp_2 ($2, $1, $3); + } + | exp ADDOP2 exp + { + $$ = new_exp_2 ($2, $1, $3); + } + | exp MULOP2 exp + { + $$ = new_exp_2 ($2, $1, $3); + } + | '!' exp + { + $$ = new_exp_1 (lnot, $2); + } + | 'n' + { + $$ = new_exp_0 (var); + } + | NUMBER + { + if (($$ = new_exp_0 (num)) != NULL) + $$->val.num = $1; + } + | '(' exp ')' + { + $$ = $2; + } + ; + +%% + +void +internal_function +FREE_EXPRESSION (struct expression *exp) +{ + if (exp == NULL) + return; + + /* Handle the recursive case. */ + switch (exp->nargs) + { + case 3: + FREE_EXPRESSION (exp->val.args[2]); + /* FALLTHROUGH */ + case 2: + FREE_EXPRESSION (exp->val.args[1]); + /* FALLTHROUGH */ + case 1: + FREE_EXPRESSION (exp->val.args[0]); + /* FALLTHROUGH */ + default: + break; + } + + free (exp); +} + + +static int +yylex (YYSTYPE *lval, const char **pexp) +{ + const char *exp = *pexp; + int result; + + while (1) + { + if (exp[0] == '\0') + { + *pexp = exp; + return YYEOF; + } + + if (exp[0] != ' ' && exp[0] != '\t') + break; + + ++exp; + } + + result = *exp++; + switch (result) + { + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + { + unsigned long int n = result - '0'; + while (exp[0] >= '0' && exp[0] <= '9') + { + n *= 10; + n += exp[0] - '0'; + ++exp; + } + lval->num = n; + result = NUMBER; + } + break; + + case '=': + if (exp[0] == '=') + { + ++exp; + lval->op = equal; + result = EQUOP2; + } + else + result = YYERRCODE; + break; + + case '!': + if (exp[0] == '=') + { + ++exp; + lval->op = not_equal; + result = EQUOP2; + } + break; + + case '&': + case '|': + if (exp[0] == result) + ++exp; + else + result = YYERRCODE; + break; + + case '<': + if (exp[0] == '=') + { + ++exp; + lval->op = less_or_equal; + } + else + lval->op = less_than; + result = CMPOP2; + break; + + case '>': + if (exp[0] == '=') + { + ++exp; + lval->op = greater_or_equal; + } + else + lval->op = greater_than; + result = CMPOP2; + break; + + case '*': + lval->op = mult; + result = MULOP2; + break; + + case '/': + lval->op = divide; + result = MULOP2; + break; + + case '%': + lval->op = module; + result = MULOP2; + break; + + case '+': + lval->op = plus; + result = ADDOP2; + break; + + case '-': + lval->op = minus; + result = ADDOP2; + break; + + case 'n': + case '?': + case ':': + case '(': + case ')': + /* Nothing, just return the character. */ + break; + + case ';': + case '\n': + case '\0': + /* Be safe and let the user call this function again. */ + --exp; + result = YYEOF; + break; + + default: + result = YYERRCODE; +#if YYDEBUG != 0 + --exp; +#endif + break; + } + + *pexp = exp; + + return result; +} + + +static void +yyerror (const char *str) +{ + /* Do nothing. We don't print error messages here. */ +} diff --git a/intl/printf-args.c b/intl/printf-args.c new file mode 100644 index 0000000..f975901 --- /dev/null +++ b/intl/printf-args.c @@ -0,0 +1,119 @@ +/* Decomposed printf argument list. + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +/* Specification. */ +#include "printf-args.h" + +#ifdef STATIC +STATIC +#endif +int +printf_fetchargs (va_list args, arguments *a) +{ + size_t i; + argument *ap; + + for (i = 0, ap = &a->arg[0]; i < a->count; i++, ap++) + switch (ap->type) + { + case TYPE_SCHAR: + ap->a.a_schar = va_arg (args, /*signed char*/ int); + break; + case TYPE_UCHAR: + ap->a.a_uchar = va_arg (args, /*unsigned char*/ int); + break; + case TYPE_SHORT: + ap->a.a_short = va_arg (args, /*short*/ int); + break; + case TYPE_USHORT: + ap->a.a_ushort = va_arg (args, /*unsigned short*/ int); + break; + case TYPE_INT: + ap->a.a_int = va_arg (args, int); + break; + case TYPE_UINT: + ap->a.a_uint = va_arg (args, unsigned int); + break; + case TYPE_LONGINT: + ap->a.a_longint = va_arg (args, long int); + break; + case TYPE_ULONGINT: + ap->a.a_ulongint = va_arg (args, unsigned long int); + break; +#ifdef HAVE_LONG_LONG + case TYPE_LONGLONGINT: + ap->a.a_longlongint = va_arg (args, long long int); + break; + case TYPE_ULONGLONGINT: + ap->a.a_ulonglongint = va_arg (args, unsigned long long int); + break; +#endif + case TYPE_DOUBLE: + ap->a.a_double = va_arg (args, double); + break; +#ifdef HAVE_LONG_DOUBLE + case TYPE_LONGDOUBLE: + ap->a.a_longdouble = va_arg (args, long double); + break; +#endif + case TYPE_CHAR: + ap->a.a_char = va_arg (args, int); + break; +#ifdef HAVE_WINT_T + case TYPE_WIDE_CHAR: + ap->a.a_wide_char = va_arg (args, wint_t); + break; +#endif + case TYPE_STRING: + ap->a.a_string = va_arg (args, const char *); + break; +#ifdef HAVE_WCHAR_T + case TYPE_WIDE_STRING: + ap->a.a_wide_string = va_arg (args, const wchar_t *); + break; +#endif + case TYPE_POINTER: + ap->a.a_pointer = va_arg (args, void *); + break; + case TYPE_COUNT_SCHAR_POINTER: + ap->a.a_count_schar_pointer = va_arg (args, signed char *); + break; + case TYPE_COUNT_SHORT_POINTER: + ap->a.a_count_short_pointer = va_arg (args, short *); + break; + case TYPE_COUNT_INT_POINTER: + ap->a.a_count_int_pointer = va_arg (args, int *); + break; + case TYPE_COUNT_LONGINT_POINTER: + ap->a.a_count_longint_pointer = va_arg (args, long int *); + break; +#ifdef HAVE_LONG_LONG + case TYPE_COUNT_LONGLONGINT_POINTER: + ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); + break; +#endif + default: + /* Unknown type. */ + return -1; + } + return 0; +} diff --git a/intl/printf-args.h b/intl/printf-args.h new file mode 100644 index 0000000..625b803 --- /dev/null +++ b/intl/printf-args.h @@ -0,0 +1,137 @@ +/* Decomposed printf argument list. + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _PRINTF_ARGS_H +#define _PRINTF_ARGS_H + +/* Get size_t. */ +#include + +/* Get wchar_t. */ +#ifdef HAVE_WCHAR_T +# include +#endif + +/* Get wint_t. */ +#ifdef HAVE_WINT_T +# include +#endif + +/* Get va_list. */ +#include + + +/* Argument types */ +typedef enum +{ + TYPE_NONE, + TYPE_SCHAR, + TYPE_UCHAR, + TYPE_SHORT, + TYPE_USHORT, + TYPE_INT, + TYPE_UINT, + TYPE_LONGINT, + TYPE_ULONGINT, +#ifdef HAVE_LONG_LONG + TYPE_LONGLONGINT, + TYPE_ULONGLONGINT, +#endif + TYPE_DOUBLE, +#ifdef HAVE_LONG_DOUBLE + TYPE_LONGDOUBLE, +#endif + TYPE_CHAR, +#ifdef HAVE_WINT_T + TYPE_WIDE_CHAR, +#endif + TYPE_STRING, +#ifdef HAVE_WCHAR_T + TYPE_WIDE_STRING, +#endif + TYPE_POINTER, + TYPE_COUNT_SCHAR_POINTER, + TYPE_COUNT_SHORT_POINTER, + TYPE_COUNT_INT_POINTER, + TYPE_COUNT_LONGINT_POINTER +#ifdef HAVE_LONG_LONG +, TYPE_COUNT_LONGLONGINT_POINTER +#endif +} arg_type; + +/* Polymorphic argument */ +typedef struct +{ + arg_type type; + union + { + signed char a_schar; + unsigned char a_uchar; + short a_short; + unsigned short a_ushort; + int a_int; + unsigned int a_uint; + long int a_longint; + unsigned long int a_ulongint; +#ifdef HAVE_LONG_LONG + long long int a_longlongint; + unsigned long long int a_ulonglongint; +#endif + float a_float; + double a_double; +#ifdef HAVE_LONG_DOUBLE + long double a_longdouble; +#endif + int a_char; +#ifdef HAVE_WINT_T + wint_t a_wide_char; +#endif + const char* a_string; +#ifdef HAVE_WCHAR_T + const wchar_t* a_wide_string; +#endif + void* a_pointer; + signed char * a_count_schar_pointer; + short * a_count_short_pointer; + int * a_count_int_pointer; + long int * a_count_longint_pointer; +#ifdef HAVE_LONG_LONG + long long int * a_count_longlongint_pointer; +#endif + } + a; +} +argument; + +typedef struct +{ + size_t count; + argument *arg; +} +arguments; + + +/* Fetch the arguments, putting them into a. */ +#ifdef STATIC +STATIC +#else +extern +#endif +int printf_fetchargs (va_list args, arguments *a); + +#endif /* _PRINTF_ARGS_H */ diff --git a/intl/printf-parse.c b/intl/printf-parse.c new file mode 100644 index 0000000..20240e3 --- /dev/null +++ b/intl/printf-parse.c @@ -0,0 +1,537 @@ +/* Formatted output to strings. + Copyright (C) 1999-2000, 2002-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +/* Specification. */ +#if WIDE_CHAR_VERSION +# include "wprintf-parse.h" +#else +# include "printf-parse.h" +#endif + +/* Get size_t, NULL. */ +#include + +/* Get intmax_t. */ +#if HAVE_STDINT_H_WITH_UINTMAX +# include +#endif +#if HAVE_INTTYPES_H_WITH_UINTMAX +# include +#endif + +/* malloc(), realloc(), free(). */ +#include + +/* Checked size_t computations. */ +#include "xsize.h" + +#if WIDE_CHAR_VERSION +# define PRINTF_PARSE wprintf_parse +# define CHAR_T wchar_t +# define DIRECTIVE wchar_t_directive +# define DIRECTIVES wchar_t_directives +#else +# define PRINTF_PARSE printf_parse +# define CHAR_T char +# define DIRECTIVE char_directive +# define DIRECTIVES char_directives +#endif + +#ifdef STATIC +STATIC +#endif +int +PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a) +{ + const CHAR_T *cp = format; /* pointer into format */ + size_t arg_posn = 0; /* number of regular arguments consumed */ + size_t d_allocated; /* allocated elements of d->dir */ + size_t a_allocated; /* allocated elements of a->arg */ + size_t max_width_length = 0; + size_t max_precision_length = 0; + + d->count = 0; + d_allocated = 1; + d->dir = malloc (d_allocated * sizeof (DIRECTIVE)); + if (d->dir == NULL) + /* Out of memory. */ + return -1; + + a->count = 0; + a_allocated = 0; + a->arg = NULL; + +#define REGISTER_ARG(_index_,_type_) \ + { \ + size_t n = (_index_); \ + if (n >= a_allocated) \ + { \ + size_t memory_size; \ + argument *memory; \ + \ + a_allocated = xtimes (a_allocated, 2); \ + if (a_allocated <= n) \ + a_allocated = xsum (n, 1); \ + memory_size = xtimes (a_allocated, sizeof (argument)); \ + if (size_overflow_p (memory_size)) \ + /* Overflow, would lead to out of memory. */ \ + goto error; \ + memory = (a->arg \ + ? realloc (a->arg, memory_size) \ + : malloc (memory_size)); \ + if (memory == NULL) \ + /* Out of memory. */ \ + goto error; \ + a->arg = memory; \ + } \ + while (a->count <= n) \ + a->arg[a->count++].type = TYPE_NONE; \ + if (a->arg[n].type == TYPE_NONE) \ + a->arg[n].type = (_type_); \ + else if (a->arg[n].type != (_type_)) \ + /* Ambiguous type for positional argument. */ \ + goto error; \ + } + + while (*cp != '\0') + { + CHAR_T c = *cp++; + if (c == '%') + { + size_t arg_index = ARG_NONE; + DIRECTIVE *dp = &d->dir[d->count];/* pointer to next directive */ + + /* Initialize the next directive. */ + dp->dir_start = cp - 1; + dp->flags = 0; + dp->width_start = NULL; + dp->width_end = NULL; + dp->width_arg_index = ARG_NONE; + dp->precision_start = NULL; + dp->precision_end = NULL; + dp->precision_arg_index = ARG_NONE; + dp->arg_index = ARG_NONE; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory later. */ + goto error; + arg_index = n - 1; + cp = np + 1; + } + } + + /* Read the flags. */ + for (;;) + { + if (*cp == '\'') + { + dp->flags |= FLAG_GROUP; + cp++; + } + else if (*cp == '-') + { + dp->flags |= FLAG_LEFT; + cp++; + } + else if (*cp == '+') + { + dp->flags |= FLAG_SHOWSIGN; + cp++; + } + else if (*cp == ' ') + { + dp->flags |= FLAG_SPACE; + cp++; + } + else if (*cp == '#') + { + dp->flags |= FLAG_ALT; + cp++; + } + else if (*cp == '0') + { + dp->flags |= FLAG_ZERO; + cp++; + } + else + break; + } + + /* Parse the field width. */ + if (*cp == '*') + { + dp->width_start = cp; + cp++; + dp->width_end = cp; + if (max_width_length < 1) + max_width_length = 1; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory later. */ + goto error; + dp->width_arg_index = n - 1; + cp = np + 1; + } + } + if (dp->width_arg_index == ARG_NONE) + { + dp->width_arg_index = arg_posn++; + if (dp->width_arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->width_arg_index, TYPE_INT); + } + else if (*cp >= '0' && *cp <= '9') + { + size_t width_length; + + dp->width_start = cp; + for (; *cp >= '0' && *cp <= '9'; cp++) + ; + dp->width_end = cp; + width_length = dp->width_end - dp->width_start; + if (max_width_length < width_length) + max_width_length = width_length; + } + + /* Parse the precision. */ + if (*cp == '.') + { + cp++; + if (*cp == '*') + { + dp->precision_start = cp - 1; + cp++; + dp->precision_end = cp; + if (max_precision_length < 2) + max_precision_length = 2; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory + later. */ + goto error; + dp->precision_arg_index = n - 1; + cp = np + 1; + } + } + if (dp->precision_arg_index == ARG_NONE) + { + dp->precision_arg_index = arg_posn++; + if (dp->precision_arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->precision_arg_index, TYPE_INT); + } + else + { + size_t precision_length; + + dp->precision_start = cp - 1; + for (; *cp >= '0' && *cp <= '9'; cp++) + ; + dp->precision_end = cp; + precision_length = dp->precision_end - dp->precision_start; + if (max_precision_length < precision_length) + max_precision_length = precision_length; + } + } + + { + arg_type type; + + /* Parse argument type/size specifiers. */ + { + int flags = 0; + + for (;;) + { + if (*cp == 'h') + { + flags |= (1 << (flags & 1)); + cp++; + } + else if (*cp == 'L') + { + flags |= 4; + cp++; + } + else if (*cp == 'l') + { + flags += 8; + cp++; + } +#ifdef HAVE_INTMAX_T + else if (*cp == 'j') + { + if (sizeof (intmax_t) > sizeof (long)) + { + /* intmax_t = long long */ + flags += 16; + } + else if (sizeof (intmax_t) > sizeof (int)) + { + /* intmax_t = long */ + flags += 8; + } + cp++; + } +#endif + else if (*cp == 'z' || *cp == 'Z') + { + /* 'z' is standardized in ISO C 99, but glibc uses 'Z' + because the warning facility in gcc-2.95.2 understands + only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ + if (sizeof (size_t) > sizeof (long)) + { + /* size_t = long long */ + flags += 16; + } + else if (sizeof (size_t) > sizeof (int)) + { + /* size_t = long */ + flags += 8; + } + cp++; + } + else if (*cp == 't') + { + if (sizeof (ptrdiff_t) > sizeof (long)) + { + /* ptrdiff_t = long long */ + flags += 16; + } + else if (sizeof (ptrdiff_t) > sizeof (int)) + { + /* ptrdiff_t = long */ + flags += 8; + } + cp++; + } + else + break; + } + + /* Read the conversion character. */ + c = *cp++; + switch (c) + { + case 'd': case 'i': +#ifdef HAVE_LONG_LONG + if (flags >= 16 || (flags & 4)) + type = TYPE_LONGLONGINT; + else +#endif + if (flags >= 8) + type = TYPE_LONGINT; + else if (flags & 2) + type = TYPE_SCHAR; + else if (flags & 1) + type = TYPE_SHORT; + else + type = TYPE_INT; + break; + case 'o': case 'u': case 'x': case 'X': +#ifdef HAVE_LONG_LONG + if (flags >= 16 || (flags & 4)) + type = TYPE_ULONGLONGINT; + else +#endif + if (flags >= 8) + type = TYPE_ULONGINT; + else if (flags & 2) + type = TYPE_UCHAR; + else if (flags & 1) + type = TYPE_USHORT; + else + type = TYPE_UINT; + break; + case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': + case 'a': case 'A': +#ifdef HAVE_LONG_DOUBLE + if (flags >= 16 || (flags & 4)) + type = TYPE_LONGDOUBLE; + else +#endif + type = TYPE_DOUBLE; + break; + case 'c': + if (flags >= 8) +#ifdef HAVE_WINT_T + type = TYPE_WIDE_CHAR; +#else + goto error; +#endif + else + type = TYPE_CHAR; + break; +#ifdef HAVE_WINT_T + case 'C': + type = TYPE_WIDE_CHAR; + c = 'c'; + break; +#endif + case 's': + if (flags >= 8) +#ifdef HAVE_WCHAR_T + type = TYPE_WIDE_STRING; +#else + goto error; +#endif + else + type = TYPE_STRING; + break; +#ifdef HAVE_WCHAR_T + case 'S': + type = TYPE_WIDE_STRING; + c = 's'; + break; +#endif + case 'p': + type = TYPE_POINTER; + break; + case 'n': +#ifdef HAVE_LONG_LONG + if (flags >= 16 || (flags & 4)) + type = TYPE_COUNT_LONGLONGINT_POINTER; + else +#endif + if (flags >= 8) + type = TYPE_COUNT_LONGINT_POINTER; + else if (flags & 2) + type = TYPE_COUNT_SCHAR_POINTER; + else if (flags & 1) + type = TYPE_COUNT_SHORT_POINTER; + else + type = TYPE_COUNT_INT_POINTER; + break; + case '%': + type = TYPE_NONE; + break; + default: + /* Unknown conversion character. */ + goto error; + } + } + + if (type != TYPE_NONE) + { + dp->arg_index = arg_index; + if (dp->arg_index == ARG_NONE) + { + dp->arg_index = arg_posn++; + if (dp->arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->arg_index, type); + } + dp->conversion = c; + dp->dir_end = cp; + } + + d->count++; + if (d->count >= d_allocated) + { + size_t memory_size; + DIRECTIVE *memory; + + d_allocated = xtimes (d_allocated, 2); + memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); + if (size_overflow_p (memory_size)) + /* Overflow, would lead to out of memory. */ + goto error; + memory = realloc (d->dir, memory_size); + if (memory == NULL) + /* Out of memory. */ + goto error; + d->dir = memory; + } + } + } + d->dir[d->count].dir_start = cp; + + d->max_width_length = max_width_length; + d->max_precision_length = max_precision_length; + return 0; + +error: + if (a->arg) + free (a->arg); + if (d->dir) + free (d->dir); + return -1; +} + +#undef DIRECTIVES +#undef DIRECTIVE +#undef CHAR_T +#undef PRINTF_PARSE diff --git a/intl/printf-parse.h b/intl/printf-parse.h new file mode 100644 index 0000000..e785338 --- /dev/null +++ b/intl/printf-parse.h @@ -0,0 +1,75 @@ +/* Parse printf format string. + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _PRINTF_PARSE_H +#define _PRINTF_PARSE_H + +#include "printf-args.h" + + +/* Flags */ +#define FLAG_GROUP 1 /* ' flag */ +#define FLAG_LEFT 2 /* - flag */ +#define FLAG_SHOWSIGN 4 /* + flag */ +#define FLAG_SPACE 8 /* space flag */ +#define FLAG_ALT 16 /* # flag */ +#define FLAG_ZERO 32 + +/* arg_index value indicating that no argument is consumed. */ +#define ARG_NONE (~(size_t)0) + +/* A parsed directive. */ +typedef struct +{ + const char* dir_start; + const char* dir_end; + int flags; + const char* width_start; + const char* width_end; + size_t width_arg_index; + const char* precision_start; + const char* precision_end; + size_t precision_arg_index; + char conversion; /* d i o u x X f e E g G c s p n U % but not C S */ + size_t arg_index; +} +char_directive; + +/* A parsed format string. */ +typedef struct +{ + size_t count; + char_directive *dir; + size_t max_width_length; + size_t max_precision_length; +} +char_directives; + + +/* Parses the format string. Fills in the number N of directives, and fills + in directives[0], ..., directives[N-1], and sets directives[N].dir_start + to the end of the format string. Also fills in the arg_type fields of the + arguments and the needed count of arguments. */ +#ifdef STATIC +STATIC +#else +extern +#endif +int printf_parse (const char *format, char_directives *d, arguments *a); + +#endif /* _PRINTF_PARSE_H */ diff --git a/intl/printf.c b/intl/printf.c new file mode 100644 index 0000000..5e112b6 --- /dev/null +++ b/intl/printf.c @@ -0,0 +1,371 @@ +/* Formatted output to strings, using POSIX/XSI format strings with positions. + Copyright (C) 2003 Free Software Foundation, Inc. + Written by Bruno Haible , 2003. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#ifdef __GNUC__ +# define alloca __builtin_alloca +# define HAVE_ALLOCA 1 +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# if defined HAVE_ALLOCA_H || defined _LIBC +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca +char *alloca (); +# endif +# endif +# endif +# endif +#endif + +#include + +#if !HAVE_POSIX_PRINTF + +#include +#include + +/* When building a DLL, we must export some functions. Note that because + the functions are only defined for binary backward compatibility, we + don't need to use __declspec(dllimport) in any case. */ +#if defined _MSC_VER && BUILDING_DLL +# define DLL_EXPORTED __declspec(dllexport) +#else +# define DLL_EXPORTED +#endif + +#define STATIC static + +/* Define auxiliary functions declared in "printf-args.h". */ +#include "printf-args.c" + +/* Define auxiliary functions declared in "printf-parse.h". */ +#include "printf-parse.c" + +/* Define functions declared in "vasnprintf.h". */ +#define vasnprintf libintl_vasnprintf +#include "vasnprintf.c" +#if 0 /* not needed */ +#define asnprintf libintl_asnprintf +#include "asnprintf.c" +#endif + +DLL_EXPORTED +int +libintl_vfprintf (FILE *stream, const char *format, va_list args) +{ + if (strchr (format, '$') == NULL) + return vfprintf (stream, format, args); + else + { + size_t length; + char *result = libintl_vasnprintf (NULL, &length, format, args); + int retval = -1; + if (result != NULL) + { + if (fwrite (result, 1, length, stream) == length) + retval = length; + free (result); + } + return retval; + } +} + +DLL_EXPORTED +int +libintl_fprintf (FILE *stream, const char *format, ...) +{ + va_list args; + int retval; + + va_start (args, format); + retval = libintl_vfprintf (stream, format, args); + va_end (args); + return retval; +} + +DLL_EXPORTED +int +libintl_vprintf (const char *format, va_list args) +{ + return libintl_vfprintf (stdout, format, args); +} + +DLL_EXPORTED +int +libintl_printf (const char *format, ...) +{ + va_list args; + int retval; + + va_start (args, format); + retval = libintl_vprintf (format, args); + va_end (args); + return retval; +} + +DLL_EXPORTED +int +libintl_vsprintf (char *resultbuf, const char *format, va_list args) +{ + if (strchr (format, '$') == NULL) + return vsprintf (resultbuf, format, args); + else + { + size_t length = (size_t) ~0 / (4 * sizeof (char)); + char *result = libintl_vasnprintf (resultbuf, &length, format, args); + if (result != resultbuf) + { + free (result); + return -1; + } + else + return length; + } +} + +DLL_EXPORTED +int +libintl_sprintf (char *resultbuf, const char *format, ...) +{ + va_list args; + int retval; + + va_start (args, format); + retval = libintl_vsprintf (resultbuf, format, args); + va_end (args); + return retval; +} + +#if HAVE_SNPRINTF + +# if HAVE_DECL__SNPRINTF + /* Windows. */ +# define system_vsnprintf _vsnprintf +# else + /* Unix. */ +# define system_vsnprintf vsnprintf +# endif + +DLL_EXPORTED +int +libintl_vsnprintf (char *resultbuf, size_t length, const char *format, va_list args) +{ + if (strchr (format, '$') == NULL) + return system_vsnprintf (resultbuf, length, format, args); + else + { + size_t maxlength = length; + char *result = libintl_vasnprintf (resultbuf, &length, format, args); + if (result != resultbuf) + { + if (maxlength > 0) + { + if (length < maxlength) + abort (); + memcpy (resultbuf, result, maxlength - 1); + resultbuf[maxlength - 1] = '\0'; + } + free (result); + return -1; + } + else + return length; + } +} + +DLL_EXPORTED +int +libintl_snprintf (char *resultbuf, size_t length, const char *format, ...) +{ + va_list args; + int retval; + + va_start (args, format); + retval = libintl_vsnprintf (resultbuf, length, format, args); + va_end (args); + return retval; +} + +#endif + +#if HAVE_ASPRINTF + +DLL_EXPORTED +int +libintl_vasprintf (char **resultp, const char *format, va_list args) +{ + size_t length; + char *result = libintl_vasnprintf (NULL, &length, format, args); + if (result == NULL) + return -1; + *resultp = result; + return length; +} + +DLL_EXPORTED +int +libintl_asprintf (char **resultp, const char *format, ...) +{ + va_list args; + int retval; + + va_start (args, format); + retval = libintl_vasprintf (resultp, format, args); + va_end (args); + return retval; +} + +#endif + +#if HAVE_FWPRINTF + +#include + +#define WIDE_CHAR_VERSION 1 + +/* Define auxiliary functions declared in "wprintf-parse.h". */ +#include "printf-parse.c" + +/* Define functions declared in "vasnprintf.h". */ +#define vasnwprintf libintl_vasnwprintf +#include "vasnprintf.c" +#if 0 /* not needed */ +#define asnwprintf libintl_asnwprintf +#include "asnprintf.c" +#endif + +# if HAVE_DECL__SNWPRINTF + /* Windows. */ +# define system_vswprintf _vsnwprintf +# else + /* Unix. */ +# define system_vswprintf vswprintf +# endif + +DLL_EXPORTED +int +libintl_vfwprintf (FILE *stream, const wchar_t *format, va_list args) +{ + if (wcschr (format, '$') == NULL) + return vfwprintf (stream, format, args); + else + { + size_t length; + wchar_t *result = libintl_vasnwprintf (NULL, &length, format, args); + int retval = -1; + if (result != NULL) + { + size_t i; + for (i = 0; i < length; i++) + if (fputwc (result[i], stream) == WEOF) + break; + if (i == length) + retval = length; + free (result); + } + return retval; + } +} + +DLL_EXPORTED +int +libintl_fwprintf (FILE *stream, const wchar_t *format, ...) +{ + va_list args; + int retval; + + va_start (args, format); + retval = libintl_vfwprintf (stream, format, args); + va_end (args); + return retval; +} + +DLL_EXPORTED +int +libintl_vwprintf (const wchar_t *format, va_list args) +{ + return libintl_vfwprintf (stdout, format, args); +} + +DLL_EXPORTED +int +libintl_wprintf (const wchar_t *format, ...) +{ + va_list args; + int retval; + + va_start (args, format); + retval = libintl_vwprintf (format, args); + va_end (args); + return retval; +} + +DLL_EXPORTED +int +libintl_vswprintf (wchar_t *resultbuf, size_t length, const wchar_t *format, va_list args) +{ + if (wcschr (format, '$') == NULL) + return system_vswprintf (resultbuf, length, format, args); + else + { + size_t maxlength = length; + wchar_t *result = libintl_vasnwprintf (resultbuf, &length, format, args); + if (result != resultbuf) + { + if (maxlength > 0) + { + if (length < maxlength) + abort (); + memcpy (resultbuf, result, (maxlength - 1) * sizeof (wchar_t)); + resultbuf[maxlength - 1] = 0; + } + free (result); + return -1; + } + else + return length; + } +} + +DLL_EXPORTED +int +libintl_swprintf (wchar_t *resultbuf, size_t length, const wchar_t *format, ...) +{ + va_list args; + int retval; + + va_start (args, format); + retval = libintl_vswprintf (resultbuf, length, format, args); + va_end (args); + return retval; +} + +#endif + +#endif diff --git a/intl/ref-add.sin b/intl/ref-add.sin new file mode 100644 index 0000000..3678c28 --- /dev/null +++ b/intl/ref-add.sin @@ -0,0 +1,31 @@ +# Add this package to a list of references stored in a text file. +# +# Copyright (C) 2000 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU Library General Public License as published +# by the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. +# +# Written by Bruno Haible . +# +/^# Packages using this file: / { + s/# Packages using this file:// + ta + :a + s/ @PACKAGE@ / @PACKAGE@ / + tb + s/ $/ @PACKAGE@ / + :b + s/^/# Packages using this file:/ +} diff --git a/intl/ref-del.sin b/intl/ref-del.sin new file mode 100644 index 0000000..0c12d8e --- /dev/null +++ b/intl/ref-del.sin @@ -0,0 +1,26 @@ +# Remove this package from a list of references stored in a text file. +# +# Copyright (C) 2000 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU Library General Public License as published +# by the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. +# +# Written by Bruno Haible . +# +/^# Packages using this file: / { + s/# Packages using this file:// + s/ @PACKAGE@ / / + s/^/# Packages using this file:/ +} diff --git a/intl/relocatable.c b/intl/relocatable.c new file mode 100644 index 0000000..5b43d12 --- /dev/null +++ b/intl/relocatable.c @@ -0,0 +1,449 @@ +/* Provide relocatable packages. + Copyright (C) 2003-2004 Free Software Foundation, Inc. + Written by Bruno Haible , 2003. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + + +/* Tell glibc's to provide a prototype for getline(). + This must come before because may include + , and once has been included, it's too late. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +/* Specification. */ +#include "relocatable.h" + +#if ENABLE_RELOCATABLE + +#include +#include +#include +#include + +#ifdef NO_XMALLOC +# define xmalloc malloc +#else +# include "xalloc.h" +#endif + +#if defined _WIN32 || defined __WIN32__ +# define WIN32_LEAN_AND_MEAN +# include +#endif + +#if DEPENDS_ON_LIBCHARSET +# include +#endif +#if DEPENDS_ON_LIBICONV && HAVE_ICONV +# include +#endif +#if DEPENDS_ON_LIBINTL && ENABLE_NLS +# include +#endif + +/* Faked cheap 'bool'. */ +#undef bool +#undef false +#undef true +#define bool int +#define false 0 +#define true 1 + +/* Pathname support. + ISSLASH(C) tests whether C is a directory separator character. + IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. + */ +#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ + /* Win32, Cygwin, OS/2, DOS */ +# define ISSLASH(C) ((C) == '/' || (C) == '\\') +# define HAS_DEVICE(P) \ + ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ + && (P)[1] == ':') +# define IS_PATH_WITH_DIR(P) \ + (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P)) +# define FILE_SYSTEM_PREFIX_LEN(P) (HAS_DEVICE (P) ? 2 : 0) +#else + /* Unix */ +# define ISSLASH(C) ((C) == '/') +# define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL) +# define FILE_SYSTEM_PREFIX_LEN(P) 0 +#endif + +/* Original installation prefix. */ +static char *orig_prefix; +static size_t orig_prefix_len; +/* Current installation prefix. */ +static char *curr_prefix; +static size_t curr_prefix_len; +/* These prefixes do not end in a slash. Anything that will be concatenated + to them must start with a slash. */ + +/* Sets the original and the current installation prefix of this module. + Relocation simply replaces a pathname starting with the original prefix + by the corresponding pathname with the current prefix instead. Both + prefixes should be directory names without trailing slash (i.e. use "" + instead of "/"). */ +static void +set_this_relocation_prefix (const char *orig_prefix_arg, + const char *curr_prefix_arg) +{ + if (orig_prefix_arg != NULL && curr_prefix_arg != NULL + /* Optimization: if orig_prefix and curr_prefix are equal, the + relocation is a nop. */ + && strcmp (orig_prefix_arg, curr_prefix_arg) != 0) + { + /* Duplicate the argument strings. */ + char *memory; + + orig_prefix_len = strlen (orig_prefix_arg); + curr_prefix_len = strlen (curr_prefix_arg); + memory = (char *) xmalloc (orig_prefix_len + 1 + curr_prefix_len + 1); +#ifdef NO_XMALLOC + if (memory != NULL) +#endif + { + memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); + orig_prefix = memory; + memory += orig_prefix_len + 1; + memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); + curr_prefix = memory; + return; + } + } + orig_prefix = NULL; + curr_prefix = NULL; + /* Don't worry about wasted memory here - this function is usually only + called once. */ +} + +/* Sets the original and the current installation prefix of the package. + Relocation simply replaces a pathname starting with the original prefix + by the corresponding pathname with the current prefix instead. Both + prefixes should be directory names without trailing slash (i.e. use "" + instead of "/"). */ +void +set_relocation_prefix (const char *orig_prefix_arg, const char *curr_prefix_arg) +{ + set_this_relocation_prefix (orig_prefix_arg, curr_prefix_arg); + + /* Now notify all dependent libraries. */ +#if DEPENDS_ON_LIBCHARSET + libcharset_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg); +#endif +#if DEPENDS_ON_LIBICONV && HAVE_ICONV && _LIBICONV_VERSION >= 0x0109 + libiconv_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg); +#endif +#if DEPENDS_ON_LIBINTL && ENABLE_NLS && defined libintl_set_relocation_prefix + libintl_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg); +#endif +} + +#if !defined IN_LIBRARY || (defined PIC && defined INSTALLDIR) + +/* Convenience function: + Computes the current installation prefix, based on the original + installation prefix, the original installation directory of a particular + file, and the current pathname of this file. Returns NULL upon failure. */ +#ifdef IN_LIBRARY +#define compute_curr_prefix local_compute_curr_prefix +static +#endif +const char * +compute_curr_prefix (const char *orig_installprefix, + const char *orig_installdir, + const char *curr_pathname) +{ + const char *curr_installdir; + const char *rel_installdir; + + if (curr_pathname == NULL) + return NULL; + + /* Determine the relative installation directory, relative to the prefix. + This is simply the difference between orig_installprefix and + orig_installdir. */ + if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix)) + != 0) + /* Shouldn't happen - nothing should be installed outside $(prefix). */ + return NULL; + rel_installdir = orig_installdir + strlen (orig_installprefix); + + /* Determine the current installation directory. */ + { + const char *p_base = curr_pathname + FILE_SYSTEM_PREFIX_LEN (curr_pathname); + const char *p = curr_pathname + strlen (curr_pathname); + char *q; + + while (p > p_base) + { + p--; + if (ISSLASH (*p)) + break; + } + + q = (char *) xmalloc (p - curr_pathname + 1); +#ifdef NO_XMALLOC + if (q == NULL) + return NULL; +#endif + memcpy (q, curr_pathname, p - curr_pathname); + q[p - curr_pathname] = '\0'; + curr_installdir = q; + } + + /* Compute the current installation prefix by removing the trailing + rel_installdir from it. */ + { + const char *rp = rel_installdir + strlen (rel_installdir); + const char *cp = curr_installdir + strlen (curr_installdir); + const char *cp_base = + curr_installdir + FILE_SYSTEM_PREFIX_LEN (curr_installdir); + + while (rp > rel_installdir && cp > cp_base) + { + bool same = false; + const char *rpi = rp; + const char *cpi = cp; + + while (rpi > rel_installdir && cpi > cp_base) + { + rpi--; + cpi--; + if (ISSLASH (*rpi) || ISSLASH (*cpi)) + { + if (ISSLASH (*rpi) && ISSLASH (*cpi)) + same = true; + break; + } +#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ + /* Win32, Cygwin, OS/2, DOS - case insignificant filesystem */ + if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) + != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) + break; +#else + if (*rpi != *cpi) + break; +#endif + } + if (!same) + break; + /* The last pathname component was the same. opi and cpi now point + to the slash before it. */ + rp = rpi; + cp = cpi; + } + + if (rp > rel_installdir) + /* Unexpected: The curr_installdir does not end with rel_installdir. */ + return NULL; + + { + size_t curr_prefix_len = cp - curr_installdir; + char *curr_prefix; + + curr_prefix = (char *) xmalloc (curr_prefix_len + 1); +#ifdef NO_XMALLOC + if (curr_prefix == NULL) + return NULL; +#endif + memcpy (curr_prefix, curr_installdir, curr_prefix_len); + curr_prefix[curr_prefix_len] = '\0'; + + return curr_prefix; + } + } +} + +#endif /* !IN_LIBRARY || PIC */ + +#if defined PIC && defined INSTALLDIR + +/* Full pathname of shared library, or NULL. */ +static char *shared_library_fullname; + +#if defined _WIN32 || defined __WIN32__ + +/* Determine the full pathname of the shared library when it is loaded. */ + +BOOL WINAPI +DllMain (HINSTANCE module_handle, DWORD event, LPVOID reserved) +{ + (void) reserved; + + if (event == DLL_PROCESS_ATTACH) + { + /* The DLL is being loaded into an application's address range. */ + static char location[MAX_PATH]; + + if (!GetModuleFileName (module_handle, location, sizeof (location))) + /* Shouldn't happen. */ + return FALSE; + + if (!IS_PATH_WITH_DIR (location)) + /* Shouldn't happen. */ + return FALSE; + + shared_library_fullname = strdup (location); + } + + return TRUE; +} + +#else /* Unix */ + +static void +find_shared_library_fullname () +{ +#if defined __linux__ && __GLIBC__ >= 2 + /* Linux has /proc/self/maps. glibc 2 has the getline() function. */ + FILE *fp; + + /* Open the current process' maps file. It describes one VMA per line. */ + fp = fopen ("/proc/self/maps", "r"); + if (fp) + { + unsigned long address = (unsigned long) &find_shared_library_fullname; + for (;;) + { + unsigned long start, end; + int c; + + if (fscanf (fp, "%lx-%lx", &start, &end) != 2) + break; + if (address >= start && address <= end - 1) + { + /* Found it. Now see if this line contains a filename. */ + while (c = getc (fp), c != EOF && c != '\n' && c != '/') + continue; + if (c == '/') + { + size_t size; + int len; + + ungetc (c, fp); + shared_library_fullname = NULL; size = 0; + len = getline (&shared_library_fullname, &size, fp); + if (len >= 0) + { + /* Success: filled shared_library_fullname. */ + if (len > 0 && shared_library_fullname[len - 1] == '\n') + shared_library_fullname[len - 1] = '\0'; + } + } + break; + } + while (c = getc (fp), c != EOF && c != '\n') + continue; + } + fclose (fp); + } +#endif +} + +#endif /* WIN32 / Unix */ + +/* Return the full pathname of the current shared library. + Return NULL if unknown. + Guaranteed to work only on Linux and Woe32. */ +static char * +get_shared_library_fullname () +{ +#if !(defined _WIN32 || defined __WIN32__) + static bool tried_find_shared_library_fullname; + if (!tried_find_shared_library_fullname) + { + find_shared_library_fullname (); + tried_find_shared_library_fullname = true; + } +#endif + return shared_library_fullname; +} + +#endif /* PIC */ + +/* Returns the pathname, relocated according to the current installation + directory. */ +const char * +relocate (const char *pathname) +{ +#if defined PIC && defined INSTALLDIR + static int initialized; + + /* Initialization code for a shared library. */ + if (!initialized) + { + /* At this point, orig_prefix and curr_prefix likely have already been + set through the main program's set_program_name_and_installdir + function. This is sufficient in the case that the library has + initially been installed in the same orig_prefix. But we can do + better, to also cover the cases that 1. it has been installed + in a different prefix before being moved to orig_prefix and (later) + to curr_prefix, 2. unlike the program, it has not moved away from + orig_prefix. */ + const char *orig_installprefix = INSTALLPREFIX; + const char *orig_installdir = INSTALLDIR; + const char *curr_prefix_better; + + curr_prefix_better = + compute_curr_prefix (orig_installprefix, orig_installdir, + get_shared_library_fullname ()); + if (curr_prefix_better == NULL) + curr_prefix_better = curr_prefix; + + set_relocation_prefix (orig_installprefix, curr_prefix_better); + + initialized = 1; + } +#endif + + /* Note: It is not necessary to perform case insensitive comparison here, + even for DOS-like filesystems, because the pathname argument was + typically created from the same Makefile variable as orig_prefix came + from. */ + if (orig_prefix != NULL && curr_prefix != NULL + && strncmp (pathname, orig_prefix, orig_prefix_len) == 0) + { + if (pathname[orig_prefix_len] == '\0') + /* pathname equals orig_prefix. */ + return curr_prefix; + if (ISSLASH (pathname[orig_prefix_len])) + { + /* pathname starts with orig_prefix. */ + const char *pathname_tail = &pathname[orig_prefix_len]; + char *result = + (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); + +#ifdef NO_XMALLOC + if (result != NULL) +#endif + { + memcpy (result, curr_prefix, curr_prefix_len); + strcpy (result + curr_prefix_len, pathname_tail); + return result; + } + } + } + /* Nothing to relocate. */ + return pathname; +} + +#endif diff --git a/intl/relocatable.h b/intl/relocatable.h new file mode 100644 index 0000000..614e64e --- /dev/null +++ b/intl/relocatable.h @@ -0,0 +1,77 @@ +/* Provide relocatable packages. + Copyright (C) 2003 Free Software Foundation, Inc. + Written by Bruno Haible , 2003. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _RELOCATABLE_H +#define _RELOCATABLE_H + +#ifdef __cplusplus +extern "C" { +#endif + + +/* This can be enabled through the configure --enable-relocatable option. */ +#if ENABLE_RELOCATABLE + +/* When building a DLL, we must export some functions. Note that because + this is a private .h file, we don't need to use __declspec(dllimport) + in any case. */ +#if defined _MSC_VER && BUILDING_DLL +# define RELOCATABLE_DLL_EXPORTED __declspec(dllexport) +#else +# define RELOCATABLE_DLL_EXPORTED +#endif + +/* Sets the original and the current installation prefix of the package. + Relocation simply replaces a pathname starting with the original prefix + by the corresponding pathname with the current prefix instead. Both + prefixes should be directory names without trailing slash (i.e. use "" + instead of "/"). */ +extern RELOCATABLE_DLL_EXPORTED void + set_relocation_prefix (const char *orig_prefix, + const char *curr_prefix); + +/* Returns the pathname, relocated according to the current installation + directory. */ +extern const char * relocate (const char *pathname); + +/* Memory management: relocate() leaks memory, because it has to construct + a fresh pathname. If this is a problem because your program calls + relocate() frequently, think about caching the result. */ + +/* Convenience function: + Computes the current installation prefix, based on the original + installation prefix, the original installation directory of a particular + file, and the current pathname of this file. Returns NULL upon failure. */ +extern const char * compute_curr_prefix (const char *orig_installprefix, + const char *orig_installdir, + const char *curr_pathname); + +#else + +/* By default, we use the hardwired pathnames. */ +#define relocate(pathname) (pathname) + +#endif + + +#ifdef __cplusplus +} +#endif + +#endif /* _RELOCATABLE_H */ diff --git a/intl/textdomain.c b/intl/textdomain.c new file mode 100644 index 0000000..2bf6240 --- /dev/null +++ b/intl/textdomain.c @@ -0,0 +1,141 @@ +/* Implementation of the textdomain(3) function. + Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include + +#ifdef _LIBC +# include +#else +# include "libgnuintl.h" +#endif +#include "gettextP.h" + +#ifdef _LIBC +/* We have to handle multi-threaded applications. */ +# include +#else +/* Provide dummy implementation if this is outside glibc. */ +# define __libc_rwlock_define(CLASS, NAME) +# define __libc_rwlock_wrlock(NAME) +# define __libc_rwlock_unlock(NAME) +#endif + +/* The internal variables in the standalone libintl.a must have different + names than the internal variables in GNU libc, otherwise programs + using libintl.a cannot be linked statically. */ +#if !defined _LIBC +# define _nl_default_default_domain libintl_nl_default_default_domain +# define _nl_current_default_domain libintl_nl_current_default_domain +#endif + +/* @@ end of prolog @@ */ + +/* Name of the default text domain. */ +extern const char _nl_default_default_domain[] attribute_hidden; + +/* Default text domain in which entries for gettext(3) are to be found. */ +extern const char *_nl_current_default_domain attribute_hidden; + + +/* Names for the libintl functions are a problem. They must not clash + with existing names and they should follow ANSI C. But this source + code is also used in GNU C Library where the names have a __ + prefix. So we have to make a difference here. */ +#ifdef _LIBC +# define TEXTDOMAIN __textdomain +# ifndef strdup +# define strdup(str) __strdup (str) +# endif +#else +# define TEXTDOMAIN libintl_textdomain +#endif + +/* Lock variable to protect the global data in the gettext implementation. */ +__libc_rwlock_define (extern, _nl_state_lock attribute_hidden) + +/* Set the current default message catalog to DOMAINNAME. + If DOMAINNAME is null, return the current default. + If DOMAINNAME is "", reset to the default of "messages". */ +char * +TEXTDOMAIN (const char *domainname) +{ + char *new_domain; + char *old_domain; + + /* A NULL pointer requests the current setting. */ + if (domainname == NULL) + return (char *) _nl_current_default_domain; + + __libc_rwlock_wrlock (_nl_state_lock); + + old_domain = (char *) _nl_current_default_domain; + + /* If domain name is the null string set to default domain "messages". */ + if (domainname[0] == '\0' + || strcmp (domainname, _nl_default_default_domain) == 0) + { + _nl_current_default_domain = _nl_default_default_domain; + new_domain = (char *) _nl_current_default_domain; + } + else if (strcmp (domainname, old_domain) == 0) + /* This can happen and people will use it to signal that some + environment variable changed. */ + new_domain = old_domain; + else + { + /* If the following malloc fails `_nl_current_default_domain' + will be NULL. This value will be returned and so signals we + are out of core. */ +#if defined _LIBC || defined HAVE_STRDUP + new_domain = strdup (domainname); +#else + size_t len = strlen (domainname) + 1; + new_domain = (char *) malloc (len); + if (new_domain != NULL) + memcpy (new_domain, domainname, len); +#endif + + if (new_domain != NULL) + _nl_current_default_domain = new_domain; + } + + /* We use this possibility to signal a change of the loaded catalogs + since this is most likely the case and there is no other easy we + to do it. Do it only when the call was successful. */ + if (new_domain != NULL) + { + ++_nl_msg_cat_cntr; + + if (old_domain != new_domain && old_domain != _nl_default_default_domain) + free (old_domain); + } + + __libc_rwlock_unlock (_nl_state_lock); + + return new_domain; +} + +#ifdef _LIBC +/* Alias for function name in GNU C Library. */ +weak_alias (__textdomain, textdomain); +#endif diff --git a/intl/vasnprintf.c b/intl/vasnprintf.c new file mode 100644 index 0000000..f59968f --- /dev/null +++ b/intl/vasnprintf.c @@ -0,0 +1,902 @@ +/* vsprintf with automatic memory allocation. + Copyright (C) 1999, 2002-2005 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* Tell glibc's to provide a prototype for snprintf(). + This must come before because may include + , and once has been included, it's too late. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +#ifdef HAVE_CONFIG_H +# include +#endif +#ifndef IN_LIBINTL +# include +#endif + +/* Specification. */ +#if WIDE_CHAR_VERSION +# include "vasnwprintf.h" +#else +# include "vasnprintf.h" +#endif + +#include /* snprintf(), sprintf() */ +#include /* abort(), malloc(), realloc(), free() */ +#include /* memcpy(), strlen() */ +#include /* errno */ +#include /* CHAR_BIT, INT_MAX */ +#include /* DBL_MAX_EXP, LDBL_MAX_EXP */ +#if WIDE_CHAR_VERSION +# include "wprintf-parse.h" +#else +# include "printf-parse.h" +#endif + +/* Checked size_t computations. */ +#include "xsize.h" + +/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ +#ifndef EOVERFLOW +# define EOVERFLOW E2BIG +#endif + +#ifdef HAVE_WCHAR_T +# ifdef HAVE_WCSLEN +# define local_wcslen wcslen +# else + /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid + a dependency towards this library, here is a local substitute. + Define this substitute only once, even if this file is included + twice in the same compilation unit. */ +# ifndef local_wcslen_defined +# define local_wcslen_defined 1 +static size_t +local_wcslen (const wchar_t *s) +{ + const wchar_t *ptr; + + for (ptr = s; *ptr != (wchar_t) 0; ptr++) + ; + return ptr - s; +} +# endif +# endif +#endif + +#if WIDE_CHAR_VERSION +# define VASNPRINTF vasnwprintf +# define CHAR_T wchar_t +# define DIRECTIVE wchar_t_directive +# define DIRECTIVES wchar_t_directives +# define PRINTF_PARSE wprintf_parse +# define USE_SNPRINTF 1 +# if HAVE_DECL__SNWPRINTF + /* On Windows, the function swprintf() has a different signature than + on Unix; we use the _snwprintf() function instead. */ +# define SNPRINTF _snwprintf +# else + /* Unix. */ +# define SNPRINTF swprintf +# endif +#else +# define VASNPRINTF vasnprintf +# define CHAR_T char +# define DIRECTIVE char_directive +# define DIRECTIVES char_directives +# define PRINTF_PARSE printf_parse +# define USE_SNPRINTF (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF) +# if HAVE_DECL__SNPRINTF + /* Windows. */ +# define SNPRINTF _snprintf +# else + /* Unix. */ +# define SNPRINTF snprintf +# endif +#endif + +CHAR_T * +VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list args) +{ + DIRECTIVES d; + arguments a; + + if (PRINTF_PARSE (format, &d, &a) < 0) + { + errno = EINVAL; + return NULL; + } + +#define CLEANUP() \ + free (d.dir); \ + if (a.arg) \ + free (a.arg); + + if (printf_fetchargs (args, &a) < 0) + { + CLEANUP (); + errno = EINVAL; + return NULL; + } + + { + size_t buf_neededlength; + CHAR_T *buf; + CHAR_T *buf_malloced; + const CHAR_T *cp; + size_t i; + DIRECTIVE *dp; + /* Output string accumulator. */ + CHAR_T *result; + size_t allocated; + size_t length; + + /* Allocate a small buffer that will hold a directive passed to + sprintf or snprintf. */ + buf_neededlength = + xsum4 (7, d.max_width_length, d.max_precision_length, 6); +#if HAVE_ALLOCA + if (buf_neededlength < 4000 / sizeof (CHAR_T)) + { + buf = (CHAR_T *) alloca (buf_neededlength * sizeof (CHAR_T)); + buf_malloced = NULL; + } + else +#endif + { + size_t buf_memsize = xtimes (buf_neededlength, sizeof (CHAR_T)); + if (size_overflow_p (buf_memsize)) + goto out_of_memory_1; + buf = (CHAR_T *) malloc (buf_memsize); + if (buf == NULL) + goto out_of_memory_1; + buf_malloced = buf; + } + + if (resultbuf != NULL) + { + result = resultbuf; + allocated = *lengthp; + } + else + { + result = NULL; + allocated = 0; + } + length = 0; + /* Invariants: + result is either == resultbuf or == NULL or malloc-allocated. + If length > 0, then result != NULL. */ + + /* Ensures that allocated >= needed. Aborts through a jump to + out_of_memory if needed is SIZE_MAX or otherwise too big. */ +#define ENSURE_ALLOCATION(needed) \ + if ((needed) > allocated) \ + { \ + size_t memory_size; \ + CHAR_T *memory; \ + \ + allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ + if ((needed) > allocated) \ + allocated = (needed); \ + memory_size = xtimes (allocated, sizeof (CHAR_T)); \ + if (size_overflow_p (memory_size)) \ + goto out_of_memory; \ + if (result == resultbuf || result == NULL) \ + memory = (CHAR_T *) malloc (memory_size); \ + else \ + memory = (CHAR_T *) realloc (result, memory_size); \ + if (memory == NULL) \ + goto out_of_memory; \ + if (result == resultbuf && length > 0) \ + memcpy (memory, result, length * sizeof (CHAR_T)); \ + result = memory; \ + } + + for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++) + { + if (cp != dp->dir_start) + { + size_t n = dp->dir_start - cp; + size_t augmented_length = xsum (length, n); + + ENSURE_ALLOCATION (augmented_length); + memcpy (result + length, cp, n * sizeof (CHAR_T)); + length = augmented_length; + } + if (i == d.count) + break; + + /* Execute a single directive. */ + if (dp->conversion == '%') + { + size_t augmented_length; + + if (!(dp->arg_index == ARG_NONE)) + abort (); + augmented_length = xsum (length, 1); + ENSURE_ALLOCATION (augmented_length); + result[length] = '%'; + length = augmented_length; + } + else + { + if (!(dp->arg_index != ARG_NONE)) + abort (); + + if (dp->conversion == 'n') + { + switch (a.arg[dp->arg_index].type) + { + case TYPE_COUNT_SCHAR_POINTER: + *a.arg[dp->arg_index].a.a_count_schar_pointer = length; + break; + case TYPE_COUNT_SHORT_POINTER: + *a.arg[dp->arg_index].a.a_count_short_pointer = length; + break; + case TYPE_COUNT_INT_POINTER: + *a.arg[dp->arg_index].a.a_count_int_pointer = length; + break; + case TYPE_COUNT_LONGINT_POINTER: + *a.arg[dp->arg_index].a.a_count_longint_pointer = length; + break; +#ifdef HAVE_LONG_LONG + case TYPE_COUNT_LONGLONGINT_POINTER: + *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; + break; +#endif + default: + abort (); + } + } + else + { + arg_type type = a.arg[dp->arg_index].type; + CHAR_T *p; + unsigned int prefix_count; + int prefixes[2]; +#if !USE_SNPRINTF + size_t tmp_length; + CHAR_T tmpbuf[700]; + CHAR_T *tmp; + + /* Allocate a temporary buffer of sufficient size for calling + sprintf. */ + { + size_t width; + size_t precision; + + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + width = (arg < 0 ? (unsigned int) (-arg) : arg); + } + else + { + const CHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + } + + precision = 6; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + precision = (arg < 0 ? 0 : arg); + } + else + { + const CHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + } + } + + switch (dp->conversion) + { + + case 'd': case 'i': case 'u': +# ifdef HAVE_LONG_LONG + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 1; /* account for leading sign */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 1; /* account for leading sign */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 1; /* account for leading sign */ + break; + + case 'o': +# ifdef HAVE_LONG_LONG + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1 /* turn floor into ceil */ + + 1; /* account for leading sign */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1 /* turn floor into ceil */ + + 1; /* account for leading sign */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1 /* turn floor into ceil */ + + 1; /* account for leading sign */ + break; + + case 'x': case 'X': +# ifdef HAVE_LONG_LONG + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1 /* turn floor into ceil */ + + 2; /* account for leading sign or alternate form */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1 /* turn floor into ceil */ + + 2; /* account for leading sign or alternate form */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1 /* turn floor into ceil */ + + 2; /* account for leading sign or alternate form */ + break; + + case 'f': case 'F': +# ifdef HAVE_LONG_DOUBLE + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) (LDBL_MAX_EXP + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 10; /* sign, decimal point etc. */ + else +# endif + tmp_length = + (unsigned int) (DBL_MAX_EXP + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 10; /* sign, decimal point etc. */ + tmp_length = xsum (tmp_length, precision); + break; + + case 'e': case 'E': case 'g': case 'G': + case 'a': case 'A': + tmp_length = + 12; /* sign, decimal point, exponent etc. */ + tmp_length = xsum (tmp_length, precision); + break; + + case 'c': +# if defined HAVE_WINT_T && !WIDE_CHAR_VERSION + if (type == TYPE_WIDE_CHAR) + tmp_length = MB_CUR_MAX; + else +# endif + tmp_length = 1; + break; + + case 's': +# ifdef HAVE_WCHAR_T + if (type == TYPE_WIDE_STRING) + { + tmp_length = + local_wcslen (a.arg[dp->arg_index].a.a_wide_string); + +# if !WIDE_CHAR_VERSION + tmp_length = xtimes (tmp_length, MB_CUR_MAX); +# endif + } + else +# endif + tmp_length = strlen (a.arg[dp->arg_index].a.a_string); + break; + + case 'p': + tmp_length = + (unsigned int) (sizeof (void *) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1 /* turn floor into ceil */ + + 2; /* account for leading 0x */ + break; + + default: + abort (); + } + + if (tmp_length < width) + tmp_length = width; + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + } + + if (tmp_length <= sizeof (tmpbuf) / sizeof (CHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (CHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (CHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } +#endif + + /* Construct the format string for calling snprintf or + sprintf. */ + p = buf; + *p++ = '%'; + if (dp->flags & FLAG_GROUP) + *p++ = '\''; + if (dp->flags & FLAG_LEFT) + *p++ = '-'; + if (dp->flags & FLAG_SHOWSIGN) + *p++ = '+'; + if (dp->flags & FLAG_SPACE) + *p++ = ' '; + if (dp->flags & FLAG_ALT) + *p++ = '#'; + if (dp->flags & FLAG_ZERO) + *p++ = '0'; + if (dp->width_start != dp->width_end) + { + size_t n = dp->width_end - dp->width_start; + memcpy (p, dp->width_start, n * sizeof (CHAR_T)); + p += n; + } + if (dp->precision_start != dp->precision_end) + { + size_t n = dp->precision_end - dp->precision_start; + memcpy (p, dp->precision_start, n * sizeof (CHAR_T)); + p += n; + } + + switch (type) + { +#ifdef HAVE_LONG_LONG + case TYPE_LONGLONGINT: + case TYPE_ULONGLONGINT: + *p++ = 'l'; + /*FALLTHROUGH*/ +#endif + case TYPE_LONGINT: + case TYPE_ULONGINT: +#ifdef HAVE_WINT_T + case TYPE_WIDE_CHAR: +#endif +#ifdef HAVE_WCHAR_T + case TYPE_WIDE_STRING: +#endif + *p++ = 'l'; + break; +#ifdef HAVE_LONG_DOUBLE + case TYPE_LONGDOUBLE: + *p++ = 'L'; + break; +#endif + default: + break; + } + *p = dp->conversion; +#if USE_SNPRINTF + p[1] = '%'; + p[2] = 'n'; + p[3] = '\0'; +#else + p[1] = '\0'; +#endif + + /* Construct the arguments for calling snprintf or sprintf. */ + prefix_count = 0; + if (dp->width_arg_index != ARG_NONE) + { + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; + } + if (dp->precision_arg_index != ARG_NONE) + { + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; + } + +#if USE_SNPRINTF + /* Prepare checking whether snprintf returns the count + via %n. */ + ENSURE_ALLOCATION (xsum (length, 1)); + result[length] = '\0'; +#endif + + for (;;) + { + size_t maxlen; + int count; + int retcount; + + maxlen = allocated - length; + count = -1; + retcount = 0; + +#if USE_SNPRINTF +# define SNPRINTF_BUF(arg) \ + switch (prefix_count) \ + { \ + case 0: \ + retcount = SNPRINTF (result + length, maxlen, buf, \ + arg, &count); \ + break; \ + case 1: \ + retcount = SNPRINTF (result + length, maxlen, buf, \ + prefixes[0], arg, &count); \ + break; \ + case 2: \ + retcount = SNPRINTF (result + length, maxlen, buf, \ + prefixes[0], prefixes[1], arg, \ + &count); \ + break; \ + default: \ + abort (); \ + } +#else +# define SNPRINTF_BUF(arg) \ + switch (prefix_count) \ + { \ + case 0: \ + count = sprintf (tmp, buf, arg); \ + break; \ + case 1: \ + count = sprintf (tmp, buf, prefixes[0], arg); \ + break; \ + case 2: \ + count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ + arg); \ + break; \ + default: \ + abort (); \ + } +#endif + + switch (type) + { + case TYPE_SCHAR: + { + int arg = a.arg[dp->arg_index].a.a_schar; + SNPRINTF_BUF (arg); + } + break; + case TYPE_UCHAR: + { + unsigned int arg = a.arg[dp->arg_index].a.a_uchar; + SNPRINTF_BUF (arg); + } + break; + case TYPE_SHORT: + { + int arg = a.arg[dp->arg_index].a.a_short; + SNPRINTF_BUF (arg); + } + break; + case TYPE_USHORT: + { + unsigned int arg = a.arg[dp->arg_index].a.a_ushort; + SNPRINTF_BUF (arg); + } + break; + case TYPE_INT: + { + int arg = a.arg[dp->arg_index].a.a_int; + SNPRINTF_BUF (arg); + } + break; + case TYPE_UINT: + { + unsigned int arg = a.arg[dp->arg_index].a.a_uint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_LONGINT: + { + long int arg = a.arg[dp->arg_index].a.a_longint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_ULONGINT: + { + unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; + SNPRINTF_BUF (arg); + } + break; +#ifdef HAVE_LONG_LONG + case TYPE_LONGLONGINT: + { + long long int arg = a.arg[dp->arg_index].a.a_longlongint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_ULONGLONGINT: + { + unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_DOUBLE: + { + double arg = a.arg[dp->arg_index].a.a_double; + SNPRINTF_BUF (arg); + } + break; +#ifdef HAVE_LONG_DOUBLE + case TYPE_LONGDOUBLE: + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_CHAR: + { + int arg = a.arg[dp->arg_index].a.a_char; + SNPRINTF_BUF (arg); + } + break; +#ifdef HAVE_WINT_T + case TYPE_WIDE_CHAR: + { + wint_t arg = a.arg[dp->arg_index].a.a_wide_char; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_STRING: + { + const char *arg = a.arg[dp->arg_index].a.a_string; + SNPRINTF_BUF (arg); + } + break; +#ifdef HAVE_WCHAR_T + case TYPE_WIDE_STRING: + { + const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_POINTER: + { + void *arg = a.arg[dp->arg_index].a.a_pointer; + SNPRINTF_BUF (arg); + } + break; + default: + abort (); + } + +#if USE_SNPRINTF + /* Portability: Not all implementations of snprintf() + are ISO C 99 compliant. Determine the number of + bytes that snprintf() has produced or would have + produced. */ + if (count >= 0) + { + /* Verify that snprintf() has NUL-terminated its + result. */ + if (count < maxlen && result[length + count] != '\0') + abort (); + /* Portability hack. */ + if (retcount > count) + count = retcount; + } + else + { + /* snprintf() doesn't understand the '%n' + directive. */ + if (p[1] != '\0') + { + /* Don't use the '%n' directive; instead, look + at the snprintf() return value. */ + p[1] = '\0'; + continue; + } + else + { + /* Look at the snprintf() return value. */ + if (retcount < 0) + { + /* HP-UX 10.20 snprintf() is doubly deficient: + It doesn't understand the '%n' directive, + *and* it returns -1 (rather than the length + that would have been required) when the + buffer is too small. */ + size_t bigger_need = + xsum (xtimes (allocated, 2), 12); + ENSURE_ALLOCATION (bigger_need); + continue; + } + else + count = retcount; + } + } +#endif + + /* Attempt to handle failure. */ + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EINVAL; + return NULL; + } + +#if !USE_SNPRINTF + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); +#endif + + /* Make room for the result. */ + if (count >= maxlen) + { + /* Need at least count bytes. But allocate + proportionally, to avoid looping eternally if + snprintf() reports a too small count. */ + size_t n = + xmax (xsum (length, count), xtimes (allocated, 2)); + + ENSURE_ALLOCATION (n); +#if USE_SNPRINTF + continue; +#endif + } + +#if USE_SNPRINTF + /* The snprintf() result did fit. */ +#else + /* Append the sprintf() result. */ + memcpy (result + length, tmp, count * sizeof (CHAR_T)); + if (tmp != tmpbuf) + free (tmp); +#endif + + length += count; + break; + } + } + } + } + + /* Add the final NUL. */ + ENSURE_ALLOCATION (xsum (length, 1)); + result[length] = '\0'; + + if (result != resultbuf && length + 1 < allocated) + { + /* Shrink the allocated memory if possible. */ + CHAR_T *memory; + + memory = (CHAR_T *) realloc (result, (length + 1) * sizeof (CHAR_T)); + if (memory != NULL) + result = memory; + } + + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + *lengthp = length; + if (length > INT_MAX) + goto length_overflow; + return result; + + length_overflow: + /* We could produce such a big string, but its length doesn't fit into + an 'int'. POSIX says that snprintf() fails with errno = EOVERFLOW in + this case. */ + if (result != resultbuf) + free (result); + errno = EOVERFLOW; + return NULL; + + out_of_memory: + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + out_of_memory_1: + CLEANUP (); + errno = ENOMEM; + return NULL; + } +} + +#undef SNPRINTF +#undef USE_SNPRINTF +#undef PRINTF_PARSE +#undef DIRECTIVES +#undef DIRECTIVE +#undef CHAR_T +#undef VASNPRINTF diff --git a/intl/vasnprintf.h b/intl/vasnprintf.h new file mode 100644 index 0000000..e67b88d --- /dev/null +++ b/intl/vasnprintf.h @@ -0,0 +1,78 @@ +/* vsprintf with automatic memory allocation. + Copyright (C) 2002-2004 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _VASNPRINTF_H +#define _VASNPRINTF_H + +/* Get va_list. */ +#include + +/* Get size_t. */ +#include + +#ifndef __attribute__ +/* This feature is available in gcc versions 2.5 and later. */ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ +# define __attribute__(Spec) /* empty */ +# endif +/* The __-protected variants of `format' and `printf' attributes + are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) +# define __format__ format +# define __printf__ printf +# endif +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* Write formatted output to a string dynamically allocated with malloc(). + You can pass a preallocated buffer for the result in RESULTBUF and its + size in *LENGTHP; otherwise you pass RESULTBUF = NULL. + If successful, return the address of the string (this may be = RESULTBUF + if no dynamic memory allocation was necessary) and set *LENGTHP to the + number of resulting bytes, excluding the trailing NUL. Upon error, set + errno and return NULL. + + When dynamic memory allocation occurs, the preallocated buffer is left + alone (with possibly modified contents). This makes it possible to use + a statically allocated or stack-allocated buffer, like this: + + char buf[100]; + size_t len = sizeof (buf); + char *output = vasnprintf (buf, &len, format, args); + if (output == NULL) + ... error handling ...; + else + { + ... use the output string ...; + if (output != buf) + free (output); + } + */ +extern char * asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) + __attribute__ ((__format__ (__printf__, 3, 4))); +extern char * vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 3, 0))); + +#ifdef __cplusplus +} +#endif + +#endif /* _VASNPRINTF_H */ diff --git a/intl/vasnwprintf.h b/intl/vasnwprintf.h new file mode 100644 index 0000000..6ff03ce --- /dev/null +++ b/intl/vasnwprintf.h @@ -0,0 +1,46 @@ +/* vswprintf with automatic memory allocation. + Copyright (C) 2002-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _VASNWPRINTF_H +#define _VASNWPRINTF_H + +/* Get va_list. */ +#include + +/* Get wchar_t, size_t. */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Write formatted output to a string dynamically allocated with malloc(). + You can pass a preallocated buffer for the result in RESULTBUF and its + size in *LENGTHP; otherwise you pass RESULTBUF = NULL. + If successful, return the address of the string (this may be = RESULTBUF + if no dynamic memory allocation was necessary) and set *LENGTHP to the + number of resulting bytes, excluding the trailing NUL. Upon error, set + errno and return NULL. */ +extern wchar_t * asnwprintf (wchar_t *resultbuf, size_t *lengthp, const wchar_t *format, ...); +extern wchar_t * vasnwprintf (wchar_t *resultbuf, size_t *lengthp, const wchar_t *format, va_list args); + +#ifdef __cplusplus +} +#endif + +#endif /* _VASNWPRINTF_H */ diff --git a/intl/wprintf-parse.h b/intl/wprintf-parse.h new file mode 100644 index 0000000..600b89a --- /dev/null +++ b/intl/wprintf-parse.h @@ -0,0 +1,75 @@ +/* Parse printf format string. + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _WPRINTF_PARSE_H +#define _WPRINTF_PARSE_H + +#include "printf-args.h" + + +/* Flags */ +#define FLAG_GROUP 1 /* ' flag */ +#define FLAG_LEFT 2 /* - flag */ +#define FLAG_SHOWSIGN 4 /* + flag */ +#define FLAG_SPACE 8 /* space flag */ +#define FLAG_ALT 16 /* # flag */ +#define FLAG_ZERO 32 + +/* arg_index value indicating that no argument is consumed. */ +#define ARG_NONE (~(size_t)0) + +/* A parsed directive. */ +typedef struct +{ + const wchar_t* dir_start; + const wchar_t* dir_end; + int flags; + const wchar_t* width_start; + const wchar_t* width_end; + size_t width_arg_index; + const wchar_t* precision_start; + const wchar_t* precision_end; + size_t precision_arg_index; + wchar_t conversion; /* d i o u x X f e E g G c s p n U % but not C S */ + size_t arg_index; +} +wchar_t_directive; + +/* A parsed format string. */ +typedef struct +{ + size_t count; + wchar_t_directive *dir; + size_t max_width_length; + size_t max_precision_length; +} +wchar_t_directives; + + +/* Parses the format string. Fills in the number N of directives, and fills + in directives[0], ..., directives[N-1], and sets directives[N].dir_start + to the end of the format string. Also fills in the arg_type fields of the + arguments and the needed count of arguments. */ +#ifdef STATIC +STATIC +#else +extern +#endif +int wprintf_parse (const wchar_t *format, wchar_t_directives *d, arguments *a); + +#endif /* _WPRINTF_PARSE_H */ diff --git a/intl/xsize.h b/intl/xsize.h new file mode 100644 index 0000000..b3023a7 --- /dev/null +++ b/intl/xsize.h @@ -0,0 +1,109 @@ +/* xsize.h -- Checked size_t computations. + + Copyright (C) 2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifndef _XSIZE_H +#define _XSIZE_H + +/* Get size_t. */ +#include + +/* Get SIZE_MAX. */ +#include +#if HAVE_STDINT_H +# include +#endif + +/* The size of memory objects is often computed through expressions of + type size_t. Example: + void* p = malloc (header_size + n * element_size). + These computations can lead to overflow. When this happens, malloc() + returns a piece of memory that is way too small, and the program then + crashes while attempting to fill the memory. + To avoid this, the functions and macros in this file check for overflow. + The convention is that SIZE_MAX represents overflow. + malloc (SIZE_MAX) is not guaranteed to fail -- think of a malloc + implementation that uses mmap --, it's recommended to use size_overflow_p() + or size_in_bounds_p() before invoking malloc(). + The example thus becomes: + size_t size = xsum (header_size, xtimes (n, element_size)); + void *p = (size_in_bounds_p (size) ? malloc (size) : NULL); +*/ + +/* Convert an arbitrary value >= 0 to type size_t. */ +#define xcast_size_t(N) \ + ((N) <= SIZE_MAX ? (size_t) (N) : SIZE_MAX) + +/* Sum of two sizes, with overflow check. */ +static inline size_t +#if __GNUC__ >= 3 +__attribute__ ((__pure__)) +#endif +xsum (size_t size1, size_t size2) +{ + size_t sum = size1 + size2; + return (sum >= size1 ? sum : SIZE_MAX); +} + +/* Sum of three sizes, with overflow check. */ +static inline size_t +#if __GNUC__ >= 3 +__attribute__ ((__pure__)) +#endif +xsum3 (size_t size1, size_t size2, size_t size3) +{ + return xsum (xsum (size1, size2), size3); +} + +/* Sum of four sizes, with overflow check. */ +static inline size_t +#if __GNUC__ >= 3 +__attribute__ ((__pure__)) +#endif +xsum4 (size_t size1, size_t size2, size_t size3, size_t size4) +{ + return xsum (xsum (xsum (size1, size2), size3), size4); +} + +/* Maximum of two sizes, with overflow check. */ +static inline size_t +#if __GNUC__ >= 3 +__attribute__ ((__pure__)) +#endif +xmax (size_t size1, size_t size2) +{ + /* No explicit check is needed here, because for any n: + max (SIZE_MAX, n) == SIZE_MAX and max (n, SIZE_MAX) == SIZE_MAX. */ + return (size1 >= size2 ? size1 : size2); +} + +/* Multiplication of a count with an element size, with overflow check. + The count must be >= 0 and the element size must be > 0. + This is a macro, not an inline function, so that it works correctly even + when N is of a wider tupe and N > SIZE_MAX. */ +#define xtimes(N, ELSIZE) \ + ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX) + +/* Check for overflow. */ +#define size_overflow_p(SIZE) \ + ((SIZE) == SIZE_MAX) +/* Check against overflow. */ +#define size_in_bounds_p(SIZE) \ + ((SIZE) != SIZE_MAX) + +#endif /* _XSIZE_H */ diff --git a/lib/.cvsignore b/lib/.cvsignore new file mode 100644 index 0000000..ced6f1b --- /dev/null +++ b/lib/.cvsignore @@ -0,0 +1,10 @@ +Makefile +Makefile.in +.libs +.deps +*.la +*.lo +*Messages.h +*Messages.rc +*Messages.cxx +*_inst.cxx diff --git a/lib/Allocator.cxx b/lib/Allocator.cxx new file mode 100644 index 0000000..2b4a9db --- /dev/null +++ b/lib/Allocator.cxx @@ -0,0 +1,104 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "Allocator.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Allocator::Allocator(size_t maxSize, unsigned blocksPerSegment) +: objectSize_(maxSize), + blocksPerSegment_(blocksPerSegment), + freeList_(0), + segments_(0) +{ +} + +Allocator::~Allocator() +{ + SegmentHeader *p = segments_; + while (p) { + SegmentHeader *tem = p->next; + if (p->liveCount == 0) + ::operator delete(p); + else + p->freeList = 0; + p = tem; + } +} + +void *Allocator::alloc(size_t sz) +{ + if (sz > objectSize_) + tooBig(sz); + Block *tem = freeList_; + if (tem) { + tem->header.seg->liveCount += 1; + freeList_ = tem->next; + return &(tem->next); + } + else + return alloc1(); +} + +void *Allocator::allocSimple(size_t sz) +{ + BlockHeader *p = (BlockHeader *)::operator new(sz + sizeof(BlockHeader)); + p->seg = 0; + return p + 1; +} + +void Allocator::free(void *p) +{ + BlockHeader *b = ((BlockHeader *)p) - 1; + SegmentHeader *seg = b->seg; + if (seg == 0) + ::operator delete(b); + else { + Block **freeList = seg->freeList; + if (freeList == 0) { + seg->liveCount -= 1; + if (seg->liveCount == 0) + ::operator delete(seg); + } + else { + ((Block *)b)->next = *freeList; + *freeList = (Block *)b; + seg->liveCount -= 1; + } + } +} + +void *Allocator::alloc1() +{ + SegmentHeader *seg + = (SegmentHeader *)::operator new(sizeof(SegmentHeader) + + ((objectSize_ + sizeof(BlockHeader)) + * blocksPerSegment_)); + seg->next = segments_; + segments_ = seg; + seg->liveCount = 1; + seg->freeList = &freeList_; + char *p = (char *)(seg + 1); + Block *head = 0; + for (size_t n = blocksPerSegment_; n > 0; n--) { + ((Block *)p)->next = head; + ((Block *)p)->header.seg = seg; + head = (Block *)p; + p += sizeof(BlockHeader) + objectSize_; + } + freeList_ = head->next; + return &(head->next); +} + +void Allocator::tooBig(size_t sz) +{ + ASSERT(sz <= objectSize_); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ArcEngine.cxx b/lib/ArcEngine.cxx new file mode 100644 index 0000000..064cb28 --- /dev/null +++ b/lib/ArcEngine.cxx @@ -0,0 +1,2104 @@ +// Copyright (c) 1996 James Clark, 2000 Matthias Clasen +// Copyright (c) 2001 Epremis Corp. +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "ArcEngine.h" +#include "ArcProcessor.h" +#include "Vector.h" +#include "NCVector.h" +#include "IQueue.h" +#include "ArcEngineMessages.h" +#include "ParserMessages.h" +#include "MessageArg.h" +#include "ParserOptions.h" +#include "SgmlParser.h" +#include "InternalInputSource.h" +#include "Parser.h" +#include "Allocator.h" +#include "LinkProcess.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +static const size_t sizes[] = { + sizeof(StartElementEvent), + sizeof(EndElementEvent), + sizeof(ImmediateDataEvent), + sizeof(SdataEntityEvent), + sizeof(EndPrologEvent), + sizeof(CdataEntityEvent), + sizeof(SdataEntityEvent), + sizeof(ExternalDataEntityEvent), + sizeof(OpenElement) +}; + +static +size_t maxSize(const size_t *v, size_t n) +{ + size_t max = 0; + for (size_t i = 0; i < n; i++) { + if (v[i] > max) + max = v[i]; + } + return max; +} + +const unsigned invalidAtt = unsigned(-1); +const unsigned contentPseudoAtt = unsigned(-2); + +class DelegateEventHandler : public EventHandler { +public: +#define EVENT(C, f) void f(C *ev) { delegateTo_->f(ev); } +#include "events.h" +#undef EVENT +protected: + EventHandler *delegateTo_; +}; + +class QueueEventHandler : public EventHandler, public IQueue { +public: +#define EVENT(C, f) void f(C *ev) { ev->copyData(); append(ev); } +#include "events.h" +#undef EVENT +}; + +// This just passes through messages. + +class NullEventHandler : public EventHandler { +public: + NullEventHandler(Messenger &mgr) : mgr_(&mgr) { } + void message(MessageEvent *event) { + mgr_->dispatchMessage(event->message()); + delete event; + } +private: + Messenger *mgr_; +}; + +class ArcEngineImpl : public DelegateEventHandler, private Messenger { +public: + ArcEngineImpl(Messenger &mgr, + const SgmlParser *parser, + ArcDirector &director, + const volatile sig_atomic_t *cancelPtr, + const StringC *arcPublicId, + const Notation *, + const Vector &name, + const SubstTable *table); + ~ArcEngineImpl(); + void sgmlDecl(SgmlDeclEvent *); + void appinfo(AppinfoEvent *); + void startElement(StartElementEvent *); + void endElement(EndElementEvent *); + void data(DataEvent *); + void sdataEntity(SdataEntityEvent *); + void externalDataEntity(ExternalDataEntityEvent *); + void pi(PiEvent *); + void endProlog(EndPrologEvent *); + void startDtd(StartDtdEvent *); + void endDtd(EndDtdEvent *); + void startLpd(StartLpdEvent *); + void endLpd(EndLpdEvent *); + void uselink(UselinkEvent *); + size_t nBases() const { return arcProcessors_.size(); } + EventHandler *delegateHandler() { return eventHandler_; } +private: + void dispatchMessage(const Message &); + void dispatchMessage(Message &); + void initMessage(Message &); + + EventHandler *eventHandler_; + NCVector arcProcessors_; + ConstPtr sd_; + ConstPtr syntax_; + StringC is10744_; + StringC arcBase_; + StringC namespaceDelim_; + StringC arch_; + StringC uselex_; + ConstPtr archPiAttributeDefs_; + int stage_; + QueueEventHandler eventQueue_; + NullEventHandler nullHandler_; + const SgmlParser *parser_; + Location currentLocation_; + unsigned gatheringContent_; + Text content_; + unsigned startAgain_; + Allocator alloc_; + StringC appinfo_; + const AttributeList *linkAttributes_; + LinkProcess linkProcess_; + Boolean haveLinkProcess_; + Vector docName_; + ArcDirector *director_; + Messenger *mgr_; + const volatile sig_atomic_t *cancelPtr_; +}; + + +void ArcEngine::parseAll(SgmlParser &parser, + Messenger &mgr, + ArcDirector &director, + const volatile sig_atomic_t *cancelPtr) +{ + ArcEngineImpl wrap(mgr, &parser, director, cancelPtr, + 0, 0, Vector(), 0); + parser.parseAll(wrap, cancelPtr); +} + +EventHandler * +SelectOneArcDirector::arcEventHandler(const StringC *, + const Notation *, + const Vector &name, + const SubstTable *table) +{ + if (name.size() != select_.size()) + return 0; + for (size_t i = 0; i < name.size(); i++) { + StringC tem(select_[i]); + table->subst(tem); + if (name[i] != tem) + return 0; + } + return eh_; +} + +void SelectOneArcDirector::dispatchMessage(const Message &msg) +{ + eh_->message(new MessageEvent(msg)); +} + +void SelectOneArcDirector::dispatchMessage(Message &msg) +{ + eh_->message(new MessageEvent(msg)); +} + +ArcEngineImpl::ArcEngineImpl(Messenger &mgr, + const SgmlParser *parser, + ArcDirector &director, + const volatile sig_atomic_t *cancelPtr, + const StringC *arcPublicId, + const Notation *notation, + const Vector &docName, + const SubstTable *table) + +: director_(&director), mgr_(&mgr), cancelPtr_(cancelPtr), + parser_(parser), stage_(0), + gatheringContent_(0), startAgain_(0), haveLinkProcess_(0), + alloc_(maxSize(sizes, SIZEOF(sizes)), 50), + nullHandler_(mgr), docName_(docName) +{ + eventHandler_ = director.arcEventHandler(arcPublicId, notation, docName, table); + if (!eventHandler_) + eventHandler_ = &nullHandler_; + delegateTo_ = eventHandler_; +} + +ArcEngineImpl::~ArcEngineImpl() +{ + for (size_t i = 0; i < arcProcessors_.size(); i++) + if (arcProcessors_[i].valid()) + arcProcessors_[i].checkIdrefs(); +} + +void ArcEngineImpl::appinfo(AppinfoEvent *event) +{ + const StringC *str; + if (event->literal(str)) + appinfo_ = *str; + DelegateEventHandler::appinfo(event); +} + +void ArcEngineImpl::pi(PiEvent *event) +{ + currentLocation_ = event->location(); + if (stage_ == 1 && event->dataLength() > is10744_.size() + 1) { + Boolean match = 1; + size_t i = 0; + for (size_t j = 0; j < is10744_.size() && match; i++, j++) + if ((*syntax_->generalSubstTable())[event->data()[i]] != is10744_[j]) + match = 0; + if (match) { + if ((event->dataLength() - i) < namespaceDelim_.size()) + match = 0; + else { + for (size_t j = 0; j < namespaceDelim_.size() && match; j++) + if ((*syntax_->generalSubstTable())[event->data()[i+j]] != namespaceDelim_[j]) + match = 0; + } + if (match || syntax_->isS(event->data()[i])) { + if (match) + i += namespaceDelim_.size(); + else { + do { + i++; + } while (i < event->dataLength() && syntax_->isS(event->data()[i])); + } + if (i >= event->dataLength()) { + Location loc(event->location()); + loc += i; + setNextLocation(loc); + Messenger::message(ArcEngineMessages::is10744PiKeywordMissing); + } + else { + StringC token; + do { + token += (*syntax_->generalSubstTable())[event->data()[i++]]; + } while (i < event->dataLength() && !syntax_->isS(event->data()[i])); + if (!match && token == arcBase_) { + size_t dataLength = event->dataLength(); + const Char *data = event->data(); + for (;;) { + while (i < dataLength && syntax_->isS(data[i])) + i++; + if (i >= dataLength) + break; + size_t start = i++; + while (i < dataLength && !syntax_->isS(data[i])) + i++; + StringC name(data + start, i - start); + syntax_->generalSubstTable()->subst(name); + arcProcessors_.resize(arcProcessors_.size() + 1); + Location loc(event->location()); + loc += start; + arcProcessors_.back().setName(name, loc); + } + } else if (token == arch_) { + if (archPiAttributeDefs_.isNull()) { + const char *const autoTokens[] = { "ArcAuto", "nArcAuto", 0 }; + struct AttdefData { + const char *name; + Boolean required; + enum { + dvName, + dvNameTokenGroup, + dvCdata + } declaredValue; + const char *const *allowedTokens; + } const attdefData[] = { + { "name", 1, AttdefData::dvName, 0 }, + { "public-id", 0, AttdefData::dvCdata, 0 }, + { "dtd-public-id", 0, AttdefData::dvCdata, 0 }, + { "dtd-system-id", 0, AttdefData::dvCdata, 0 }, + { "form-att", 0, AttdefData::dvName, 0 }, + { "renamer-att", 0, AttdefData::dvName, 0 }, + { "suppressor-att", 0, AttdefData::dvName, 0 }, + { "ignore-data-att", 0, AttdefData::dvName, 0 }, + { "doc-elem-form", 0, AttdefData::dvCdata, 0 }, + { "bridge-form", 0, AttdefData::dvCdata, 0 }, + { "data-form", 0, AttdefData::dvCdata, 0 }, + { "auto", 0, AttdefData::dvNameTokenGroup, autoTokens }, + { "options", 0, AttdefData::dvCdata, 0 }, + { "quantity", 0, AttdefData::dvCdata, 0 } + }; + Vector > attdefs; + for (size_t i = 0; i < SIZEOF(attdefData); i++) { + StringC attName(sd_->execToInternal(attdefData[i].name)); + syntax_->generalSubstTable()->subst(attName); + DeclaredValue *declaredValue; + switch (attdefData[i].declaredValue) { + case AttdefData::dvName: + declaredValue = new TokenizedDeclaredValue(TokenizedDeclaredValue::name, 0); + break; + case AttdefData::dvCdata: + declaredValue = new CdataDeclaredValue(); + break; + case AttdefData::dvNameTokenGroup: { + Vector allowedTokens; + for (const char *const *allowedToken = attdefData[i].allowedTokens; + *allowedToken; allowedToken++) { + allowedTokens.push_back(sd_->execToInternal(*allowedToken)); + syntax_->generalSubstTable()->subst(allowedTokens.back()); + } + declaredValue = new NameTokenGroupDeclaredValue(allowedTokens); + break; + } + default: + CANNOT_HAPPEN(); + } + if (attdefData[i].required) + attdefs.push_back(new RequiredAttributeDefinition(attName, declaredValue)); + else + attdefs.push_back(new ImpliedAttributeDefinition(attName, declaredValue)); + } + archPiAttributeDefs_ = new AttributeDefinitionList(attdefs, 0); + } + arcProcessors_.resize(arcProcessors_.size() + 1); + arcProcessors_.back().setPiDecl(event->location(), + StringC(event->data() + i, event->dataLength() - i), + i, + archPiAttributeDefs_); + } else if (match || token != uselex_) { + Location loc(event->location()); + loc += i - token.size(); + setNextLocation(loc); + Messenger::message(ArcEngineMessages::is10744PiKeywordInvalid, + StringMessageArg(token)); + } + } + } + } + } + DelegateEventHandler::pi(event); +} + +void ArcEngineImpl::endProlog(EndPrologEvent *event) +{ + currentLocation_ = event->location(); + for (size_t i = 0; i < arcProcessors_.size(); i++) + arcProcessors_[i].init(*event, + sd_, + syntax_, + parser_, + this, + docName_, + arcProcessors_, + *director_, + cancelPtr_); + if (!event->lpdPointer().isNull()) { + haveLinkProcess_ = 1; + linkProcess_.init(event->lpdPointer()); + } + DelegateEventHandler::endProlog(event); +} + +void ArcEngineImpl::startDtd(StartDtdEvent *event) +{ + stage_++; + DelegateEventHandler::startDtd(event); +} + +void ArcEngineImpl::endDtd(EndDtdEvent *event) +{ + stage_++; + DelegateEventHandler::endDtd(event); +} + +void ArcEngineImpl::startLpd(StartLpdEvent *event) +{ + if (event->active()) + stage_ = 1; + DelegateEventHandler::startLpd(event); +} + +void ArcEngineImpl::endLpd(EndLpdEvent *event) +{ + stage_++; + DelegateEventHandler::endLpd(event); +} + +void ArcEngineImpl::sgmlDecl(SgmlDeclEvent *event) +{ + currentLocation_ = event->location(); + sd_ = event->sdPointer(); + syntax_ = event->instanceSyntaxPointer(); + arcBase_ = sd_->execToInternal("ArcBase"); + syntax_->generalSubstTable()->subst(arcBase_); + is10744_ = sd_->execToInternal("IS10744"); + arch_ = sd_->execToInternal("arch"); + syntax_->generalSubstTable()->subst(arch_); + uselex_ = sd_->execToInternal("USELEX"); + namespaceDelim_ = sd_->execToInternal(":"); + Boolean atStart = 1; + for (size_t i = 0; i < appinfo_.size(); i++) + if (syntax_->isS(appinfo_[i])) + atStart = 1; + else if (atStart) { + if (i + 7 > appinfo_.size()) + break; + StringC tem(appinfo_.data() + i, 7); + syntax_->generalSubstTable()->subst(tem); + if (tem == arcBase_) { + if (i + 7 == appinfo_.size() || syntax_->isS(appinfo_[i + 7])) + break; + if (appinfo_[i + 7] == sd_->execToInternal('=')) { + arcBase_.resize(0); + for (size_t j = i + 7; j < appinfo_.size(); j++) { + if (syntax_->isS(appinfo_[j])) + break; + arcBase_ += appinfo_[j]; + } + // Allow quotes around replacement name. + if (arcBase_.size() > 2 + && (arcBase_[0] == sd_->execToInternal('"') + || arcBase_[0] == sd_->execToInternal('\'')) + && arcBase_[arcBase_.size() - 1] == arcBase_[0]) { + for (size_t j = 0; j < arcBase_.size() - 2; j++) + arcBase_[j] = arcBase_[j + 1]; + arcBase_.resize(arcBase_.size() - 2); + } + syntax_->generalSubstTable()->subst(arcBase_); + break; + } + } + atStart = 0; + } + DelegateEventHandler::sgmlDecl(event); +} + +void ArcEngineImpl::startElement(StartElementEvent *event) +{ + if (gatheringContent_) { + gatheringContent_++; + DelegateEventHandler::startElement(event); + return; + } + currentLocation_ = event->location(); + const Text *contentP; + size_t start; + if (startAgain_) { + start = startAgain_ - 1; + contentP = &content_; + startAgain_ = 0; + } + else { + contentP = 0; + start = 0; + if (haveLinkProcess_) { + const ResultElementSpec *resultElementSpec; + linkProcess_.startElement(event->elementType(), + event->attributes(), + event->location(), + *this, // Messenger & + linkAttributes_, + resultElementSpec); + } + else + linkAttributes_ = 0; + } + for (size_t i = start; i < arcProcessors_.size(); i++) { + if (arcProcessors_[i].valid()) { + if (!arcProcessors_[i].processStartElement(*event, + linkAttributes_, + contentP, + alloc_)) { + ASSERT(contentP == 0); + startAgain_ = i + 1; + gatheringContent_ = 1; + delegateTo_ = &eventQueue_; + DelegateEventHandler::startElement(event); + return; + } + } + } + + content_.clear(); + DelegateEventHandler::startElement(event); +} + +void ArcEngineImpl::data(DataEvent *event) +{ + const Entity *entity = event->entity(); + if (gatheringContent_) { + if (entity) + content_.addCdata(entity->asInternalEntity()->string(), + event->location().origin()); + else { + // Do attribute value literal interpretation. + Location loc(event->location()); + for (size_t i = 0; i < event->dataLength(); i++, loc += 1) { + Char ch = event->data()[i]; + if (syntax_->isS(ch) && ch != syntax_->space()) { + if (ch == syntax_->standardFunction(Syntax::fRS)) + content_.ignoreChar(ch, loc); + else + content_.addChar(syntax_->space(), + Location(new ReplacementOrigin(loc, ch), 0)); + } + else + content_.addChar(ch, loc); + } + } + } + else { + currentLocation_ = event->location(); + for (size_t i = 0; i < arcProcessors_.size(); i++) { + if (arcProcessors_[i].valid() && arcProcessors_[i].processData()) { + if (entity) + arcProcessors_[i].docHandler() + .data(new (alloc_) CdataEntityEvent(entity->asInternalEntity(), + event->location().origin())); + else + arcProcessors_[i].docHandler() + .data(new (alloc_) ImmediateDataEvent(event->type(), + event->data(), + event->dataLength(), + event->location(), + 0)); + } + } + } + DelegateEventHandler::data(event); +} + +void ArcEngineImpl::sdataEntity(SdataEntityEvent *event) +{ + if (gatheringContent_) { + content_.addSdata(event->entity()->asInternalEntity()->string(), + event->location().origin()); + return; + } + else { + currentLocation_ = event->location(); + for (size_t i = 0; i < arcProcessors_.size(); i++) { + if (arcProcessors_[i].valid() && arcProcessors_[i].processData()) { + const Entity *entity = event->entity(); + arcProcessors_[i].docHandler() + .sdataEntity(new (alloc_) + SdataEntityEvent(entity->asInternalEntity(), + event->location().origin())); + } + } + } + DelegateEventHandler::sdataEntity(event); +} + +void ArcEngineImpl::externalDataEntity(ExternalDataEntityEvent *event) +{ + if (!gatheringContent_) { + currentLocation_ = event->location(); + for (size_t i = 0; i < arcProcessors_.size(); i++) { + if (arcProcessors_[i].valid() + && arcProcessors_[i].processData()) { + ConstPtr entity + = arcProcessors_[i].dtdPointer() + ->lookupEntity(0, event->entity()->name()); + if (!entity.isNull()) { + ConstPtr oldOrigin = event->entityOrigin(); + Owner markup; + if (oldOrigin->markup()) + markup = new Markup(*oldOrigin->markup()); + ConstPtr newOrigin + = EntityOrigin::make(entity, + oldOrigin->parent(), + oldOrigin->refLength(), + markup); + arcProcessors_[i].docHandler() + .externalDataEntity(new (alloc_) + ExternalDataEntityEvent(entity->asExternalDataEntity(), + newOrigin)); + } + // otherwise entity is not architectural + } + } + } + DelegateEventHandler::externalDataEntity(event); +} + +void ArcEngineImpl::endElement(EndElementEvent *event) +{ + while (gatheringContent_) { + if (--gatheringContent_ > 0) { + DelegateEventHandler::endElement(event); + return; + } + delegateTo_ = delegateHandler(); + // Clear out eventQueue_ in case handling the events + // causes events to be queued again. + IQueue tem; + tem.swap(eventQueue_); + while (!tem.empty()) + tem.get()->handle(*this); + } + currentLocation_ = event->location(); + for (size_t i = 0; i < arcProcessors_.size(); i++) + if (arcProcessors_[i].valid()) + arcProcessors_[i].processEndElement(*event, alloc_); + DelegateEventHandler::endElement(event); + if (haveLinkProcess_) + linkProcess_.endElement(); +} + +void ArcEngineImpl::uselink(UselinkEvent *event) +{ + if (!gatheringContent_) + linkProcess_.uselink(event->linkSet(), + event->restore(), + event->lpd().pointer()); + DelegateEventHandler::uselink(event); +} + +void ArcEngineImpl::dispatchMessage(const Message &msg) +{ + mgr_->dispatchMessage(msg); +} + +void ArcEngineImpl::dispatchMessage(Message &msg) +{ + mgr_->dispatchMessage(msg); +} + +void ArcEngineImpl::initMessage(Message &msg) +{ + mgr_->initMessage(msg); + msg.loc = currentLocation_; +} + +ArcProcessor::ArcProcessor() +: errorIdref_(1), docHandler_(0), arcAuto_(1), + arcDtdIsParam_(0) +{ +} + +void ArcProcessor::setName(const StringC &name, const Location &loc) +{ + piDecl_ = 0; + name_ = name; + declLoc_ = loc; +} + +const Syntax &ArcProcessor::attributeSyntax() const +{ + return *docSyntax_; +} + +ConstPtr ArcProcessor::getAttributeNotation(const StringC &name, + const Location &) +{ + if (!metaDtd_.isNull()) + return metaDtd_->lookupNotation(name); + return 0; +} + +ConstPtr ArcProcessor::getAttributeEntity(const StringC &name, + const Location &) +{ + // FIXME What about default entity + if (!metaDtd_.isNull()) + return metaDtd_->lookupEntity(0, name); + return 0; +} + +void ArcProcessor::noteCurrentAttribute(size_t i, AttributeValue *value) +{ + if (valid_) + currentAttributes_[i] = value; +} + +ConstPtr ArcProcessor::getCurrentAttribute(size_t i) const +{ + return currentAttributes_[i]; +} + +// This code is the same as in the main parser. +// Once handling of ID/IDREF in architectures has been clarified. +// Maybe factor out into AttributeContext. + +Boolean ArcProcessor::defineId(const StringC &str, const Location &loc, + Location &prevLoc) +{ + if (!valid_) + return 1; + Id *id = lookupCreateId(str); + if (id->defined()) { + prevLoc = id->defLocation(); + return 0; + } + id->define(loc); + return 1; +} + +void ArcProcessor::noteIdref(const StringC &str, const Location &loc) +{ + if (!valid_ || !errorIdref_) + return; + Id *id = lookupCreateId(str); + if (!id->defined()) + id->addPendingRef(loc); +} + +Id *ArcProcessor::lookupCreateId(const StringC &name) +{ + Id *id = idTable_.lookup(name); + if (!id) { + id = new Id(name); + idTable_.insert(id); + } + return id; +} + +void ArcProcessor::checkIdrefs() +{ + NamedTableIter iter(idTable_); + Id *id; + while ((id = iter.next()) != 0) { + for (size_t i = 0; i < id->pendingRefs().size(); i++) { + Messenger::setNextLocation(id->pendingRefs()[i]); + message(ArcEngineMessages::missingId, StringMessageArg(id->name())); + } + } +} + +void ArcProcessor::setPiDecl(const Location &loc, + const StringC &attspecText, + Index attspecIndex, + const ConstPtr &archPiAttributeDefs) +{ + piDecl_ = 1; + declLoc_ = loc; + piDeclAttspecText_ = attspecText; + piDeclAttspecIndex_ = attspecIndex; + archPiAttributeDefs_ = archPiAttributeDefs; +} + +class PiAttspecParser { + public: + PiAttspecParser(const SgmlParser *parser) : parser_(parser->parser_) {} + Boolean parsePiAttributeSpec(const StringC &text, + const Location &loc, + AttributeList &attributeList); + private: + Parser *parser_; +}; + +Boolean +PiAttspecParser:: +parsePiAttributeSpec(const StringC &text, + const Location &loc, + AttributeList &attributeList) +{ + Markup *savedCurrentMarkup = parser_->currentMarkup_; + parser_->currentMarkup_ = 0; + parser_->pushInput(new InternalInputSource(text, InputSourceOrigin::make(loc))); + Boolean netEnabling; + Ptr newAttDefs; + Boolean result = parser_->parseAttributeSpec(piPasMode, attributeList, netEnabling, newAttDefs); + parser_->popInputStack(); + parser_->currentMarkup_ = savedCurrentMarkup; + return result; +} + +void ArcProcessor::init(const EndPrologEvent &event, + const ConstPtr &sd, + const ConstPtr &syntax, + const SgmlParser *parentParser, + Messenger *mgr, + const Vector &superName, + const NCVector &arcProcessors, + ArcDirector &director, + const volatile sig_atomic_t *cancelPtr) +{ + director_ = &director; + mgr_ = mgr; + docSyntax_ = syntax; + docSd_ = sd; + mgr_ = mgr; + valid_ = 0; + docDtd_ = event.dtdPointer(); + metaSyntax_ = docSyntax_; + mayDefaultAttribute_ = 1; + ConstPtr notation; + PiAttspecParser piAttspecParser(parentParser); + if (!piDecl()) + docSyntax_->generalSubstTable()->subst(name_); + else { + attributeList_.init(archPiAttributeDefs_); + Location loc(declLoc_); + loc += piDeclAttspecIndex_; + if (!piAttspecParser.parsePiAttributeSpec(piDeclAttspecText_, loc, attributeList_)) + return; + supportAttributes(attributeList_, 1); + if (name_.size() == 0) + return; + } + const ArcProcessor *first = 0; + for (const ArcProcessor *p = arcProcessors.begin(); p != this; p++) + if (name_ == p->name()) { + if ((piDecl() && p->piDecl()) || (!piDecl() && !p->piDecl())) { + setNextLocation(declLoc_); + message(ArcEngineMessages::duplicateArcDecl, + StringMessageArg(name_), + p->declLoc_); + return; + } else { + first = p; + } + } + if (first) { + if (piDecl()) { + setNextLocation(declLoc_); + message(ArcEngineMessages::ignoringPiArcDecl, + StringMessageArg(name_), + first->declLoc_); + } else { + setNextLocation(declLoc_); + message(ArcEngineMessages::ignoringArcBaseArcDecl, + StringMessageArg(name_), + first->declLoc_); + } + return; + } + const StringC *arcPublicId = 0; + if (piDecl()) { + if (supportAttsText_[rArcPubid]) + arcPublicId = &supportAtts_[rArcPubid]; + } else { + notation = docDtd_->lookupNotation(name_); + if (!notation.isNull()) { + ConstPtr notAttDef = notation->attributeDef(); + attributeList_.init(notAttDef); + attributeList_.finish(*this); + supportAttributes(attributeList_, 0); + arcPublicId = notation->publicIdPointer(); + } + else { + setNextLocation(declLoc_); + message(ArcEngineMessages::noArcNotation, StringMessageArg(name_)); + } + } + Vector docName(superName); + docName.push_back(name_); + ArcEngineImpl *engine + = new ArcEngineImpl(*mgr, parentParser, director, cancelPtr, + arcPublicId, notation.pointer(), + docName, + docSyntax_->generalSubstTable()); + docHandler_ = engine; + ownEventHandler_ = engine; + if (supportAtts_[rArcDocF].size() == 0) + supportAtts_[rArcDocF] = name_; + if (supportAtts_[rArcFormA].size() == 0) + supportAtts_[rArcFormA] = name_; + rniContent_ = docSyntax_->delimGeneral(Syntax::dRNI); + rniContent_ += sd->execToInternal("CONTENT"); + rniDefault_ = docSyntax_->delimGeneral(Syntax::dRNI); + rniDefault_ += docSyntax_->reservedName(Syntax::rDEFAULT); + rniArcCont_ = metaSyntax_->delimGeneral(Syntax::dRNI); + rniArcCont_ += sd->execToInternal("ARCCONT"); + rniMaptoken_ = metaSyntax_->delimGeneral(Syntax::dRNI); + rniMaptoken_ += sd->execToInternal("MAPTOKEN"); + ConstPtr dtdent = makeDtdEntity(notation.pointer()); + if (dtdent.isNull()) + return; + StringC sysid = dtdent->asExternalEntity()->externalId().effectiveSystemId(); + if (sysid.size() == 0 + && !parentParser->entityCatalog().lookup(*dtdent, + *docSyntax_, + sd->internalCharset(), + *mgr_, + sysid)) { + setNextLocation(dtdent->defLocation()); + message(ArcEngineMessages::arcGenerateSystemId, + StringMessageArg(name_)); + return; + } + docHandler_->sgmlDecl(new SgmlDeclEvent(sd, syntax)); + docHandler_->startDtd(new StartDtdEvent(dtdent->name(), + dtdent, + 0, + event.location(), + 0)); + SgmlParser::Params params; + params.entityType = SgmlParser::Params::dtd; + params.sysid = sysid; + params.parent = parentParser; + ParserOptions options = parentParser->options(); + errorIdref_ = options.errorIdref; + options.errorAfdr = 0; + options.includes = arcOpts_; + params.options = &options; + params.sd = docSd_; + if (metaSyntax_->reservedName(Syntax::rALL).size() == 0) { + Ptr tem(new Syntax(*metaSyntax_)); + tem->setName(Syntax::rALL, docSd_->execToInternal("ALL")); + metaSyntax_ = tem; + } + params.prologSyntax = metaSyntax_; + params.instanceSyntax = metaSyntax_; + params.doctypeName = dtdent->name(); + params.origin = InputSourceOrigin::make(dtdent->defLocation()); + SgmlParser parser(params); + parser.parseAll(*docHandler_, cancelPtr); + Ptr baseDtd = parser.baseDtd(); + if (baseDtd.isNull() + || baseDtd->documentElementType()->definition()->undefined()) + return; + metaDtd_ = baseDtd; + metaMapCache_.resize(docDtd_->nElementTypeIndex()); + mungeMetaDtd(*baseDtd, *docDtd_); + docHandler_->endDtd(new EndDtdEvent(metaDtd_, event.location(), 0)); + startContent(*metaDtd_); + currentAttributes_.resize(metaDtd_->nCurrentAttribute()); + valid_ = 1; + docHandler_->endProlog(new EndPrologEvent(metaDtd_, event.location())); + if (engine->nBases() == 0) + docHandler_ = engine->delegateHandler(); +} + +void ArcProcessor::mungeMetaDtd(Dtd &metaDtd, const Dtd &docDtd) +{ + if (supportAtts_[rArcDataF].size() > 0 + && metaDtd.lookupNotation(supportAtts_[rArcDataF]).isNull()) { + setNextLocation(supportAttsText_[rArcDataF]->charLocation(0)); + Messenger::message(ArcEngineMessages::noArcDataF, + StringMessageArg(supportAtts_[rArcDataF])); + metaDtd.insertNotation(new Notation(supportAtts_[rArcDataF], + metaDtd.namePointer(), + metaDtd.isBase())); + } + // FIXME check for ArcAutoF + Dtd::ConstEntityIter iter(docDtd.generalEntityIter()); + for (;;) { + ConstPtr ent = iter.next(); + if (ent.isNull()) + break; + Ptr copy(ent->copy()); + if (!copy->asExternalDataEntity() + || mungeDataEntity(*(ExternalDataEntity *)copy.pointer())) + metaDtd.insertEntity(copy, 1); + } +} + +Boolean ArcProcessor::mungeDataEntity(ExternalDataEntity &entity) +{ + const MetaMap &map = buildMetaMap(0, + entity.notation(), + entity.attributes(), + 0, + 0); + if (!map.attributed) + return 0; + AttributeList atts; + const Notation *notation = (const Notation *)map.attributed; + ConstPtr arcContent; + if (mapAttributes(entity.attributes(), 0, 0, atts, arcContent, map)) { + entity.setNotation((Notation *)notation, atts); + return 1; + } + return 0; +} + +ConstPtr ArcProcessor::makeDtdEntity(const Notation *notation) +{ + ExternalId externalId; + Location defLocation; + if (notation) { + if (!supportAtts_[rArcDTD].size()) { + mgr_->setNextLocation(notation->defLocation()); + mgr_->message(ArcEngineMessages::noArcDTDAtt); + return 0; + } + ConstPtr entity = docDtd_->lookupEntity(arcDtdIsParam_, + supportAtts_[rArcDTD]); + if (entity.isNull()) { + mgr_->setNextLocation(supportAttsText_[rArcDTD]->charLocation(0)); + mgr_->message(arcDtdIsParam_ + ? ArcEngineMessages::arcDtdNotDeclaredParameter + : ArcEngineMessages::arcDtdNotDeclaredGeneral, + StringMessageArg(supportAtts_[rArcDTD])); + return 0; + } + if (!entity->asExternalEntity()) { + mgr_->setNextLocation(entity->defLocation()); + mgr_->message(ArcEngineMessages::arcDtdNotExternal, + StringMessageArg(supportAtts_[rArcDTD])); + return 0; + } + externalId = entity->asExternalEntity()->externalId(); + defLocation = entity->defLocation(); + } else { + if (supportAttsText_[rArcDtdPubid]) { + Text pubidText(*supportAttsText_[rArcDtdPubid]); + const MessageType1 *fpierr; + const MessageType1 *urnerr; + switch (externalId.setPublic(pubidText, docSd_->internalCharset(), + docSyntax_->space(), fpierr, urnerr)) { + case PublicId::fpi: + { + PublicId::TextClass textClass; + if (docSd_->formal() && externalId.publicId()->getTextClass(textClass) && textClass == PublicId::SD) { + mgr_->setNextLocation(externalId.publicIdText()->charLocation(0)); + mgr_->message(ParserMessages::wwwRequired); + } + if (docSd_->urn() && !docSd_->formal()) { + mgr_->setNextLocation(externalId.publicIdText()->charLocation(0)); + mgr_->message(*urnerr, StringMessageArg(*externalId.publicIdString())); + } + } + break; + case PublicId::urn: + if (docSd_->formal() && !docSd_->urn()) { + mgr_->setNextLocation(externalId.publicIdText()->charLocation(0)); + mgr_->message(*fpierr, StringMessageArg(*externalId.publicIdString())); + } + break; + case PublicId::informal: + if (docSd_->formal()) { + mgr_->setNextLocation(externalId.publicIdText()->charLocation(0)); + mgr_->message(*fpierr, StringMessageArg(*externalId.publicIdString())); + } + if (docSd_->urn()) { + mgr_->setNextLocation(externalId.publicIdText()->charLocation(0)); + mgr_->message(*urnerr, StringMessageArg(*externalId.publicIdString())); + } + break; + } + } + if (supportAttsText_[rArcDtdSysid]) { + Text sysidText(*supportAttsText_[rArcDtdSysid]); + externalId.setSystem(sysidText); + } + defLocation = declLoc_; + } +#if 0 + // Use the public identifier of the notation to find the meta-DTD. + if (externalId.effectiveSystemId().size() == 0 && notation) { + if (notation->externalId().effectiveSystemId().size()) { + StringC tem(notation->externalId().effectiveSystemId()); + externalId.setEffectiveSystem(tem); + } + else if (!externalId.publicId()) { + const PublicId *pubid = notation->externalId().publicId(); + PublicId::OwnerType ownerType; + if (pubid && pubid->getOwnerType(ownerType)) { + Text pubidText; + unsigned textClassPos = 2; + if (ownerType != PublicId::ISO) + textClassPos += 3; + StringC owner; + pubid->getOwner(owner); + textClassPos += owner.size(); + pubidText.addChars(pubid->string().data(), + textClassPos, + pubid->text().charLocation(0)); + pubidText.addChars(docSd_->execToInternal("DTD"), + pubid->text().charLocation(textClassPos)); + for (; textClassPos < pubid->string().size(); textClassPos++) + if (pubid->string()[textClassPos] == docSyntax_->space()) + break; + pubidText.addChars(pubid->string().data() + textClassPos, + pubid->string().size() - textClassPos, + pubid->text().charLocation(textClassPos)); + const MessageType1 *msg; + externalId.setPublic(pubidText, docSd_->internalCharset(), + docSyntax_->space(), msg); + } + } + } +#endif + return new ExternalTextEntity(supportAtts_[rArcDocF], + Entity::doctype, + defLocation, + externalId); +} + +void ArcProcessor::supportAttributes(const AttributeList &atts, Boolean piDecl) +{ + static const char *const s[][2] = { + { 0, "name" }, + { 0, "public-id" }, + { "ArcFormA", "form-att" }, + { "ArcNamrA", "renamer-att" }, + { "ArcSuprA", "suppressor-att" }, + { "ArcIgnDA", "ignore-data-att" }, + { "ArcDocF", "doc-elem-form" }, + { "ArcSuprF", 0 }, + { "ArcBridF", "bridge-form" }, + { "ArcDataF", "data-form" }, + { "ArcAuto", "auto" }, + { "ArcDTD", 0 }, + { 0, "dtd-public-id" }, + { 0, "dtd-system-id" }, + { "ArcQuant", "quantity" } + }; + int column = piDecl ? 1 : 0; + for (size_t i = 0; i < nReserve; i++) + supportAttsText_[i] = 0; + for (size_t i = 0; i < SIZEOF(s); i++) + if (s[i][column]) { + StringC attName(docSd_->execToInternal(s[i][column])); + docSyntax_->generalSubstTable()->subst(attName); + unsigned ind; + if (atts.attributeIndex(attName, ind)) { + const AttributeValue *value = atts.value(ind); + if (value) { + const Text *textP = value->text(); + // FIXME check for empty value + if (textP) { + supportAttsText_[i] = textP; + supportAtts_[i] = textP->string(); + switch (i) { + case rArcName: + name_ = supportAtts_[i]; + break; + case rArcQuant: + processArcQuant(*textP); + break; + case rArcAuto: { + if (!piDecl) + docSyntax_->generalSubstTable()->subst(supportAtts_[i]); + StringC ArcAuto(docSd_->execToInternal("ArcAuto")); + docSyntax_->generalSubstTable()->subst(ArcAuto); + if (supportAtts_[i] == ArcAuto) + arcAuto_ = 1; + else { + StringC nArcAuto(docSd_->execToInternal("nArcAuto")); + docSyntax_->generalSubstTable()->subst(nArcAuto); + if (supportAtts_[i] == nArcAuto) + arcAuto_ = 0; + else if (!piDecl) { + setNextLocation(textP->charLocation(0)); + Messenger::message(ArcEngineMessages::invalidArcAuto, + StringMessageArg(supportAtts_[i])); + } + } + break; + } + case rArcFormA: + case rArcNamrA: + case rArcSuprA: + case rArcIgnDA: + if (!piDecl) + docSyntax_->generalSubstTable()->subst(supportAtts_[i]); + break; + case rArcDocF: + case rArcSuprF: + case rArcBridF: + case rArcDataF: + metaSyntax_->generalSubstTable()->subst(supportAtts_[i]); + break; + case rArcDTD: + { + const StringC &pero = docSyntax_->delimGeneral(Syntax::dPERO); + if (supportAtts_[i].size() >= pero.size()) { + StringC tem(supportAtts_[i].data(), pero.size()); + docSyntax_->generalSubstTable()->subst(tem); + if (tem == pero) { + arcDtdIsParam_ = 1; + tem.assign(supportAtts_[i].data() + pero.size(), + supportAtts_[i].size() - pero.size()); + tem.swap(supportAtts_[i]); + } + } + docSyntax_->entitySubstTable()->subst(supportAtts_[i]); + } + break; + } + } + } + } + } + processArcOpts(atts, piDecl); +} + +void ArcProcessor::processArcOpts(const AttributeList &atts, Boolean piDecl) +{ + Vector arcOptA; + unsigned ind; + if (piDecl) + arcOptA.push_back(docSd_->execToInternal("options")); + else { + StringC attName(docSd_->execToInternal("ArcOptSA")); + docSyntax_->generalSubstTable()->subst(attName); + Vector arcOptAPos; + const Text *arcOptAText = 0; + if (atts.attributeIndex(attName, ind)) { + const AttributeValue *value = atts.value(ind); + if (value) { + arcOptAText = value->text(); + if (arcOptAText) + split(*arcOptAText, docSyntax_->space(), arcOptA, arcOptAPos); + } + } + if (!arcOptAText) + arcOptA.push_back(docSd_->execToInternal("ArcOpt")); + } + for (size_t i = 0; i < arcOptA.size(); i++) { + docSyntax_->generalSubstTable()->subst(arcOptA[i]); + if (atts.attributeIndex(arcOptA[i], ind)) { + const AttributeValue *value = atts.value(ind); + if (value) { + const Text *textP = value->text(); + if (textP) { + Vector opts; + Vector optsPos; + split(*textP, docSyntax_->space(), opts, optsPos); + arcOpts_.insert(arcOpts_.begin(), + opts.begin(), opts.begin() + opts.size()); + } + } + } + } +} + +void ArcProcessor::processArcQuant(const Text &text) +{ + Ptr newMetaSyntax; + Vector tokens; + Vector tokensPos; + split(text, docSyntax_->space(), tokens, tokensPos); + for (size_t i = 0; i < tokens.size(); i++) { + docSyntax_->generalSubstTable()->subst(tokens[i]); + Syntax::Quantity quantityName; + if (!docSd_->lookupQuantityName(tokens[i], quantityName)) { + setNextLocation(text.charLocation(tokensPos[i])); + Messenger::message(ArcEngineMessages::invalidQuantity, + StringMessageArg(tokens[i])); + } + else if (i + 1 >= tokens.size()) { + setNextLocation(text.charLocation(tokensPos[i])); + Messenger::message(ArcEngineMessages::missingQuantityValue, + StringMessageArg(tokens[i])); + } + else { + i++; + unsigned long val = 0; + if (tokens[i].size() > 8) { + setNextLocation(text.charLocation(tokensPos[i] + 8)); + Messenger::message(ArcEngineMessages::quantityValueTooLong, + StringMessageArg(tokens[i])); + tokens[i].resize(8); + } + for (size_t j = 0; j < tokens[i].size(); j++) { + int weight = docSd_->digitWeight(tokens[i][j]); + if (weight < 0) { + setNextLocation(text.charLocation(tokensPos[i] + j)); + Char c = tokens[i][j]; + Messenger::message(ArcEngineMessages::invalidDigit, + StringMessageArg(StringC(&c, 1))); + val = 0; + break; + } + else { + val *= 10; + val += weight; + } + } + if (val > docSyntax_->quantity(quantityName)) { + if (newMetaSyntax.isNull()) + newMetaSyntax = new Syntax(*docSyntax_); + newMetaSyntax->setQuantity(quantityName, val); + } + } + } + if (!newMetaSyntax.isNull()) + metaSyntax_ = newMetaSyntax; +} + +Boolean ArcProcessor::processStartElement(const StartElementEvent &event, + const AttributeList *linkAttributes, + const Text *content, + Allocator &alloc) +{ + unsigned suppressFlags = (openElementFlags_.size() > 0 + ? (openElementFlags_.back() & ~isArc) + : (unsigned)condIgnoreData); + if ((suppressFlags & suppressForm) + && (suppressFlags & suppressSupr)) { + // Make this case efficient. + openElementFlags_.push_back(suppressFlags); + return 1; + } + const AttributeList &atts = event.attributes(); + const MetaMap &map = buildMetaMap(event.elementType(), + 0, + atts, + linkAttributes, + suppressFlags); + const ElementType *metaType; + ConstPtr arcContent; + if (map.attributed == 0) { + if (!(tagLevel() == 0 + && !currentElement().isFinished())) { + if (!arcContent.isNull() + && (currentElement().declaredEmpty() + || !currentElement().tryTransitionPcdata())) + Messenger::message(ArcEngineMessages::invalidArcContent); + openElementFlags_.push_back(map.suppressFlags); + return 1; + } + metaType = metaDtd_->documentElementType(); + mgr_->message(ArcEngineMessages::documentElementNotArc, + StringMessageArg(metaType->name())); + attributeList_.init(metaType->attributeDef()); + attributeList_.finish(*this); + } + else { + if (!mapAttributes(atts, linkAttributes, content, attributeList_, + arcContent, map)) + return 0; + metaType = (const ElementType *)map.attributed; + suppressFlags = map.suppressFlags; + } + StartElementEvent *genEvent + = new (alloc) StartElementEvent(metaType, + metaDtd_, + &attributeList_, + event.location(), + 0); + if (metaType->definition()->undefined()) + Messenger::message(ArcEngineMessages::undefinedElement, + StringMessageArg(metaType->name())); + else if (elementIsExcluded(metaType)) + Messenger::message(ArcEngineMessages::elementExcluded, + StringMessageArg(metaType->name())); + else if (elementIsIncluded(metaType)) + genEvent->setIncluded(); + else if (!currentElement().tryTransition(metaType)) + Messenger::message(ArcEngineMessages::invalidElement, + StringMessageArg(metaType->name())); + + pushElement(new (alloc) OpenElement(metaType, + 0, + genEvent->included(), + 0, + event.location())); + docHandler_->startElement(genEvent); + if (attributeList_.conref()) + currentElement().setConref(); + if (!arcContent.isNull() && arcContent->text() != 0) { + if (currentElement().declaredEmpty() + || !currentElement().tryTransitionPcdata()) + Messenger::message(ArcEngineMessages::invalidArcContent); + else + emitArcContent(*arcContent->text(), docHandler(), alloc); + suppressFlags |= (suppressForm|suppressSupr|ignoreData); + } + suppressFlags &= ~recoverData; + openElementFlags_.push_back(suppressFlags | isArc); + return 1; +} + +void ArcProcessor::emitArcContent(const Text &text, + EventHandler &handler, + Allocator &alloc) +{ + TextIter iter(text); + TextItem::Type type; + const Char *s; + size_t n; + const Location *loc; + while (iter.next(type, s, n, loc)) + switch (type) { + case TextItem::data: + case TextItem::cdata: + // +1 because first dataEvent is the non-architectural data. + if (type == TextItem::data) + handler.data(new (alloc) ImmediateDataEvent(Event::characterData, + s, + n, + *loc, + 0)); + else + + handler.data(new (alloc) + CdataEntityEvent(loc->origin()->asEntityOrigin() + ->entity()->asInternalEntity(), + loc->origin())); + break; + case TextItem::sdata: + + handler.sdataEntity(new (alloc) + SdataEntityEvent(loc->origin()->asEntityOrigin() + ->entity()->asInternalEntity(), + loc->origin())); + break; + default: + break; + } +} + +Boolean ArcProcessor::processData() +{ + if (openElementFlags_.size() > 0 + && (openElementFlags_.back() & ignoreData)) + return 0; + if (!currentElement().declaredEmpty() + && currentElement().tryTransitionPcdata()) + return 1; + else if (openElementFlags_.size() > 0 + && (openElementFlags_.back() & condIgnoreData)) + return 0; + else { + // Only give this error once per element + if (openElementFlags_.size() > 0) { + if (openElementFlags_.back() & recoverData) + return 1; + openElementFlags_.back() |= recoverData; + } + Messenger::message(ArcEngineMessages::invalidData); + return 1; + } +} + +Boolean ArcProcessor::mapAttributes(const AttributeList &from, + const AttributeList *fromLink, + const Text *content, + AttributeList &to, + ConstPtr &arcContent, + const MetaMap &map) +{ + arcContent = 0; + if (map.attributed) + to.init(map.attributed->attributeDef()); + for (size_t i = 0; i < map.attMapFrom.size(); i++) { + unsigned fromIndex = map.attMapFrom[i]; + const AttributeList *fromList = &from; + if (fromIndex != contentPseudoAtt && fromIndex >= fromList->size()) { + fromList = fromLink; + fromIndex -= from.size(); + } + if (map.attMapTo[i] == contentPseudoAtt) + arcContent = fromList->valuePointer(fromIndex); + else { + const Text *fromText = 0; + Boolean fromTextTokenized = 0; + if (map.attMapFrom[i] == contentPseudoAtt) { + if (!content) + return 0; + fromText = content; + if (arcContent.isNull()) { + // if #CONTENT is specified, the architectural content + // will be empty unless #ARCCONT is specified + Text empty; + arcContent = new CdataAttributeValue(empty); + } + } + else { + const AttributeValue *value = fromList->value(fromIndex); + if (value) { + fromText = value->text(); + fromTextTokenized = fromList->tokenized(fromIndex); + if (fromText + && fromList == &from + && !from.specified(fromIndex) + && (map.attributed->attributeDef()->def(map.attMapTo[i]) + ->missingValueWouldMatch(*fromText, *this))) + fromText = 0; + } + } + if (fromText) { + unsigned specLength = 0; + Text tem1; + if (map.attTokenMapBase[i] < map.attTokenMapBase[i + 1]) { + Vector tokens; + Vector tokensPos; + split(*fromText, docSyntax_->space(), tokens, tokensPos); + Boolean replaced = 0; + for (size_t k = 0; k < tokens.size(); k++) + for (size_t l = map.attTokenMapBase[i]; l < map.attTokenMapBase[i + 1]; l++) + if (tokens[k] == map.tokenMapFrom[l]) { + tokens[k] = map.tokenMapTo[l]; + replaced = 1; + break; + } + if (replaced) { + for (size_t k = 0; k < tokens.size(); k++) { + if (k > 0) + tem1.addChar(docSyntax_->space(), fromText->charLocation(tokensPos[k + 1] - 1)); + tem1.addChars(tokens[k].data(), tokens[k].size(), fromText->charLocation(tokensPos[k])); + } + fromText = &tem1; + fromTextTokenized = 1; + } + } + Text tem; + if (!fromTextTokenized && to.tokenized(map.attMapTo[i])) + fromText->tokenize(docSyntax_->space(), tem); + else + tem = *fromText; + to.setSpec(map.attMapTo[i], *this); + to.setValue(map.attMapTo[i], tem, *this, specLength); + } + } + } + if (map.attributed) + to.finish(*this); + return 1; +} + +const ArcProcessor::MetaMap & +ArcProcessor::buildMetaMap(const ElementType *docElementType, + const Notation *notation, + const AttributeList &atts, + const AttributeList *linkAtts, + unsigned suppressFlags) +{ + Boolean isNotation; + const Attributed *attributed = docElementType; + const StringC *nameP; + if (!attributed) { + attributed = notation; + isNotation = 1; + nameP = ¬ation->name(); + } + else { + isNotation = 0; + nameP = &docElementType->name(); + } + // Try to use cached entry. + Boolean inhibitCache = 0; + size_t cacheIndex; + if (isNotation || docElementType->definition()->undefined()) { + inhibitCache = 1; + cacheIndex = (unsigned)-1; + } + else { + cacheIndex = docElementType->index(); + const MetaMapCache *cache = metaMapCache_[cacheIndex].pointer(); + if (cache + && cache->suppressFlags == suppressFlags + && cache->linkAtts == linkAtts) { + for (int i = 0;; i++) { + if (i == MetaMapCache::nNoSpec) + return cache->map; + unsigned attIndex = cache->noSpec[i]; + if (attIndex != invalidAtt && atts.specified(attIndex)) + break; + } + } + } + // no valid cached MetaMap + // Handle suppression. + unsigned oldSuppressFlags = suppressFlags; + unsigned newSuppressFlags = suppressFlags; + unsigned arcSuprIndex; + if (!isNotation) + considerSupr(atts, linkAtts, suppressFlags, newSuppressFlags, inhibitCache, + arcSuprIndex); + else + arcSuprIndex = invalidAtt; + // Handle ArcIgnD + unsigned arcIgnDIndex; + if (!isNotation) + considerIgnD(atts, linkAtts, suppressFlags, newSuppressFlags, inhibitCache, + arcIgnDIndex); + else + arcIgnDIndex = invalidAtt; + // Handle ArcForm. + unsigned arcFormIndex; + const Attributed *metaAttributed + = considerForm(atts, linkAtts, *nameP, isNotation, + suppressFlags, newSuppressFlags, + inhibitCache, arcFormIndex); + // See if there's a renamer that will inhibit cacheing. + unsigned arcNamerIndex; + const Text *namerText; + if (metaAttributed) + namerText = considerNamer(atts, inhibitCache, arcNamerIndex); + else { + arcNamerIndex = invalidAtt; + namerText = 0; + } + MetaMap *mapP; + if (inhibitCache) { + noCacheMetaMap_.clear(); + mapP = &noCacheMetaMap_; + } + else { + MetaMapCache *cache = metaMapCache_[cacheIndex].pointer(); + if (cache) + cache->clear(); + else { + cache = new MetaMapCache; + metaMapCache_[cacheIndex] = cache; + } + cache->noSpec[0] = arcFormIndex; + cache->noSpec[1] = arcNamerIndex; + cache->noSpec[2] = arcSuprIndex; + cache->noSpec[3] = arcIgnDIndex; + cache->suppressFlags = oldSuppressFlags; + cache->linkAtts = linkAtts; + mapP = &cache->map; + } + mapP->attributed = metaAttributed; + mapP->suppressFlags = newSuppressFlags; + // Build the attribute map. + if (metaAttributed) { + ConstPtr metaAttDef + = metaAttributed->attributeDef(); + Vector renamed(metaAttDef.isNull() + ? 1 : metaAttDef->size() + 1, + PackedBoolean(0)); + Vector substituted((atts.def().isNull() ? 1 : atts.def()->size() + 1) + + (linkAtts && !linkAtts->def().isNull() ? linkAtts->def()->size() : 0), + PackedBoolean(0)); + if (linkAtts) { + Boolean specified; + unsigned index; + const Text *linkNamerText = considerNamer(*linkAtts, specified, index); + if (linkNamerText) + buildAttributeMapRename(*mapP, *linkNamerText, atts, linkAtts, renamed, substituted, isNotation); + } + if (namerText) + buildAttributeMapRename(*mapP, *namerText, atts, 0, renamed, substituted, isNotation); + buildAttributeMapRest(*mapP, atts, linkAtts, renamed); + } + return *mapP; +} + +void ArcProcessor::considerSupr(const AttributeList &atts, + const AttributeList *linkAtts, + unsigned &thisSuppressFlags, + unsigned &newSuppressFlags, + Boolean &inhibitCache, + unsigned &arcSuprIndex) +{ + arcSuprIndex = invalidAtt; + if (thisSuppressFlags & suppressSupr) + return; + if (!supportAtts_[rArcSuprA].size()) + return; + const AttributeValue *val; + unsigned tem; + if (linkAtts && linkAtts->attributeIndex(supportAtts_[rArcSuprA], tem)) + val = linkAtts->value(tem); + else if (atts.attributeIndex(supportAtts_[rArcSuprA], arcSuprIndex)) { + if (atts.current(arcSuprIndex) || atts.specified(arcSuprIndex)) + inhibitCache = 1; + val = atts.value(arcSuprIndex); + } + else + return; + if (!val) + return; + const Text *textP = val->text(); + if (!textP) + return; + StringC token = textP->string(); + // FIXME trim spaces + docSyntax_->generalSubstTable()->subst(token); + // sArcForm suppress processing for all elements except + // those that have a non-implied ArcSupr attribute. + thisSuppressFlags &= ~suppressForm; + newSuppressFlags &= ~(suppressForm|suppressSupr); + if (matchName(token, "sArcForm")) + newSuppressFlags |= suppressForm; + else if (matchName(token, "sArcAll")) + newSuppressFlags |= (suppressSupr|suppressForm); + else if (!matchName(token, "sArcNone")) { + Messenger::setNextLocation(textP->charLocation(0)); + Messenger::message(ArcEngineMessages::invalidSuppress, + StringMessageArg(token)); + } +} + +void ArcProcessor::considerIgnD(const AttributeList &atts, + const AttributeList *linkAtts, + unsigned thisSuppressFlags, + unsigned &newSuppressFlags, + Boolean &inhibitCache, + unsigned &arcIgnDIndex) +{ + arcIgnDIndex = invalidAtt; + if (thisSuppressFlags & suppressSupr) + return; + if (!supportAtts_[rArcIgnDA].size()) + return; + const AttributeValue *val; + unsigned tem; + if (linkAtts && linkAtts->attributeIndex(supportAtts_[rArcIgnDA], tem)) + val = linkAtts->value(tem); + else if (atts.attributeIndex(supportAtts_[rArcIgnDA], arcIgnDIndex)) { + if (atts.current(arcIgnDIndex) || atts.specified(arcIgnDIndex)) + inhibitCache = 1; + val = atts.value(arcIgnDIndex); + } + else + return; + if (!val) + return; + const Text *textP = val->text(); + if (!textP) + return; + StringC token = textP->string(); + // FIXME trim spaces + docSyntax_->generalSubstTable()->subst(token); + newSuppressFlags &= ~(ignoreData|condIgnoreData); + if (matchName(token, "ArcIgnD")) + newSuppressFlags |= ignoreData; + else if (matchName(token, "cArcIgnD")) + newSuppressFlags |= condIgnoreData; + else if (!matchName(token, "nArcIgnD")) { + Messenger::setNextLocation(textP->charLocation(0)); + Messenger::message(ArcEngineMessages::invalidIgnD, + StringMessageArg(token)); + } +} + +const Attributed * +ArcProcessor::considerForm(const AttributeList &atts, + const AttributeList *linkAtts, + const StringC &name, + Boolean isNotation, + unsigned thisSuppressFlags, + unsigned &newSuppressFlags, + Boolean &inhibitCache, + unsigned &arcFormIndex) +{ + arcFormIndex = invalidAtt; + if ((thisSuppressFlags & suppressForm) + && (supportAtts_[rArcSuprF].size() == 0 + || (thisSuppressFlags & suppressSupr) + || isNotation)) + return 0; + unsigned tem; + const AttributeValue *val; + if (linkAtts && linkAtts->attributeIndex(supportAtts_[rArcFormA], tem)) + val = linkAtts->value(tem); + else if (atts.attributeIndex(supportAtts_[rArcFormA], arcFormIndex)) { + if (atts.current(arcFormIndex) || atts.specified(arcFormIndex)) + inhibitCache = 1; + val = atts.value(arcFormIndex); + } + else + return autoForm(atts, name, isNotation, + thisSuppressFlags, newSuppressFlags, + inhibitCache, arcFormIndex); + + if (!val) + return 0; + const Text *textP = val->text(); + if (!textP) + return 0; + StringC metaName; + metaName = textP->string(); + // FIXME should trim leading and trailing spaces + metaSyntax_->generalSubstTable()->subst(metaName); + if (!isNotation) { + const Attributed *metaAttributed = metaDtd_->lookupElementType(metaName); + if (!metaAttributed) // CONSTDTD + metaAttributed = lookupCreateUndefinedElement(metaName, Location(), *metaDtd_); + if (metaName == supportAtts_[rArcSuprF]) { + newSuppressFlags |= suppressForm; + return metaAttributed; + } + if (thisSuppressFlags & suppressForm) + return 0; + return metaAttributed; + } + else + return metaDtd_->lookupNotation(metaName).pointer(); +} + +const Attributed * +ArcProcessor::autoForm(const AttributeList &atts, + const StringC &name, + Boolean isNotation, + unsigned thisSuppressFlags, + unsigned &newSuppressFlags, + Boolean &inhibitCache, + unsigned &idIndex) +{ + if (!isNotation) { + const Attributed *metaAttributed; + if (openElementFlags_.size() == 0) { + metaAttributed = metaDtd_->documentElementType(); + inhibitCache = 1; + } + else { + metaAttributed = 0; + if (arcAuto_) + metaAttributed = metaDtd_->lookupElementType(name); + if (!metaAttributed + && supportAtts_[rArcBridF].size() > 0 + && atts.idIndex(idIndex) + && atts.specified(idIndex)) { + inhibitCache = 1; + metaAttributed + = metaDtd_->lookupElementType(supportAtts_[rArcBridF]); + } + } + if (metaAttributed + && name == supportAtts_[rArcSuprF]) { + newSuppressFlags = suppressForm|ignoreData; + } + else if (thisSuppressFlags & suppressForm) + return 0; + return metaAttributed; + } + else if (thisSuppressFlags & suppressForm) + return 0; + else { + const Attributed *metaAttributed = 0; + if (arcAuto_) + metaAttributed = metaDtd_->lookupNotation(name).pointer(); + if (!metaAttributed && supportAtts_[rArcDataF].size() > 0) + metaAttributed + = metaDtd_->lookupNotation(supportAtts_[rArcDataF]).pointer(); + return metaAttributed; + } +} + + +const Text * +ArcProcessor::considerNamer(const AttributeList &atts, + Boolean &inhibitCache, + unsigned &arcNamerIndex) +{ + arcNamerIndex = invalidAtt; + if (supportAtts_[rArcNamrA].size() == 0 + || !atts.attributeIndex(supportAtts_[rArcNamrA], arcNamerIndex)) + return 0; + if (atts.current(arcNamerIndex) || atts.specified(arcNamerIndex)) + inhibitCache = 1; + const AttributeValue *val = atts.value(arcNamerIndex); + if (!val) + return 0; + return val->text(); +} + +void ArcProcessor::buildAttributeMapRename(MetaMap &map, + const Text &rename, + const AttributeList &atts, + const AttributeList *linkAtts, + Vector &attRenamed, + Vector &attSubstituted, + Boolean isNotation) +{ + Vector tokens; + Vector tokensPos; + split(rename, docSyntax_->space(), tokens, tokensPos); + ConstPtr metaAttDef; + if (map.attributed) + metaAttDef = map.attributed->attributeDef(); + for (size_t i = 0; i < tokens.size(); i += 2) { + unsigned fromIndex = invalidAtt; + unsigned toIndex = invalidAtt; + metaSyntax_->generalSubstTable()->subst(tokens[i]); + if (!isNotation && tokens[i] == rniArcCont_) { + if (attRenamed[0]) { + setNextLocation(rename.charLocation(tokensPos[i])); + Messenger::message(ArcEngineMessages::arcContDuplicate); + } + else + toIndex = contentPseudoAtt; + } + else if (metaAttDef.isNull() + || !metaAttDef->attributeIndex(tokens[i], toIndex)) { + setNextLocation(rename.charLocation(tokensPos[i])); + Messenger::message(ArcEngineMessages::renameToInvalid, + StringMessageArg(tokens[i])); + } + else if (attRenamed[toIndex + 1]) { + toIndex = invalidAtt; + setNextLocation(rename.charLocation(tokensPos[i])); + Messenger::message(ArcEngineMessages::renameToDuplicate, + StringMessageArg(tokens[i])); + } + if (i + 1 >= tokens.size()) { + setNextLocation(rename.charLocation(tokensPos[i])); + Messenger::message(ArcEngineMessages::renameMissingAttName); + } + else { + docSyntax_->generalSubstTable()->subst(tokens[i + 1]); + if (!isNotation && tokens[i + 1] == rniContent_) { + if (toIndex == contentPseudoAtt) { + setNextLocation(rename.charLocation(tokensPos[i + 1])); + Messenger::message(ArcEngineMessages::arcContInvalid, + StringMessageArg(tokens[i + 1])); + } + else if (attSubstituted[0]) { + setNextLocation(rename.charLocation(tokensPos[i + 1])); + Messenger::message(ArcEngineMessages::contentDuplicate); + } + else + fromIndex = contentPseudoAtt; + } + else if (tokens[i + 1] == rniDefault_) { + if (toIndex == contentPseudoAtt) { + setNextLocation(rename.charLocation(tokensPos[i + 1])); + Messenger::message(ArcEngineMessages::arcContInvalid, + StringMessageArg(tokens[i + 1])); + } + else if (toIndex != invalidAtt) + attRenamed[toIndex + 1] = 1; + } + else if (linkAtts + && linkAtts->attributeIndex(tokens[i + 1], fromIndex)) { + fromIndex += atts.size(); + if (attSubstituted[fromIndex + 1]) { + fromIndex = invalidAtt; + setNextLocation(rename.charLocation(tokensPos[i + 1])); + Messenger::message(ArcEngineMessages::renameFromDuplicate, + StringMessageArg(tokens[i + 1])); + } + } + else if (!atts.attributeIndex(tokens[i + 1], fromIndex)) { + setNextLocation(rename.charLocation(tokensPos[i + 1])); + Messenger::message(ArcEngineMessages::renameFromInvalid, + StringMessageArg(tokens[i + 1])); + } + else if (attSubstituted[fromIndex + 1]) { + fromIndex = invalidAtt; + setNextLocation(rename.charLocation(tokensPos[i + 1])); + Messenger::message(ArcEngineMessages::renameFromDuplicate, + StringMessageArg(tokens[i + 1])); + } + } + // NLR - Code used to not check if toIndex and fromIndex were + // contentPseudoAtt, only invalidAtt. Array indexing was bogus, because + // contentPseudoAtt is defined as -2, but toIndex and fromIndex are + // unsigned, so -2 becomes a very large number instead. Skip this next + // block if either fromIndex or toIndex is either invalidAtt OR + // contentPseudoAtt. + if (fromIndex != invalidAtt && toIndex != invalidAtt && + fromIndex != contentPseudoAtt && toIndex != contentPseudoAtt) { + map.attMapFrom.push_back(fromIndex); + map.attMapTo.push_back(toIndex); + attRenamed[toIndex + 1] = 1; + attSubstituted[fromIndex + 1] = 1; + if (metaAttDef->def(toIndex)->isId() + && (fromIndex >= atts.size() || !atts.id(fromIndex))) + Messenger::message(ArcEngineMessages::idMismatch, + StringMessageArg(metaAttDef->def(toIndex)->name())); + for (;i + 4 < tokens.size(); i += 3) { + docSyntax_->generalSubstTable()->subst(tokens[i + 2]); + if (tokens[i + 2] != rniMaptoken_) + break; + // FIXME: should we check for duplicate from tokens ? + map.tokenMapTo.push_back(tokens[i + 3]); + map.tokenMapFrom.push_back(tokens[i + 4]); + } + map.attTokenMapBase.push_back(map.tokenMapFrom.size()); + } + } +} + +void ArcProcessor::buildAttributeMapRest(MetaMap &map, + const AttributeList &atts, + const AttributeList *linkAtts, + const Vector &attRenamed) +{ + ConstPtr metaAttDef + = map.attributed->attributeDef(); + if (metaAttDef.isNull()) + return; + for (unsigned i = 0; i < metaAttDef->size(); i++) + if (!attRenamed[i + 1]) { + unsigned fromIndex; + if (metaAttDef->def(i)->isId()) { + for (unsigned j = 0; j < atts.size(); j++) + if (atts.id(j)) { + map.attMapFrom.push_back(j); + map.attMapTo.push_back(i); + map.attTokenMapBase.push_back(map.tokenMapFrom.size()); + break; + } + } + else if (linkAtts && linkAtts->attributeIndex(metaAttDef->def(i)->name(), + fromIndex)) { + map.attMapFrom.push_back(fromIndex + atts.size()); + map.attMapTo.push_back(i); + map.attTokenMapBase.push_back(map.tokenMapFrom.size()); + } + else if (atts.attributeIndex(metaAttDef->def(i)->name(), fromIndex)) { + map.attMapFrom.push_back(fromIndex); + map.attMapTo.push_back(i); + map.attTokenMapBase.push_back(map.tokenMapFrom.size()); + } + } +} + +Boolean ArcProcessor::matchName(const StringC &name, const char *key) +{ + if (name.size() != strlen(key)) + return 0; + StringC tem(docSd_->execToInternal(key)); + docSyntax_->generalSubstTable()->subst(tem); + return name == tem; +} + +void ArcProcessor::split(const Text &text, + Char space, + Vector &tokens, + Vector &tokensPos) +{ + const StringC &str = text.string(); + for (size_t i = 0;;) { + for (; i < str.size() && str[i] == space; i++) + ; + if (i >= str.size()) + break; + size_t start = i; + for (; i < str.size() && str[i] != space; i++) + ; + tokens.push_back(StringC(str.data() + start, i - start)); + tokensPos.push_back(start); + } +} + +void ArcProcessor::processEndElement(const EndElementEvent &event, + Allocator &alloc) +{ + Boolean wasArc = (openElementFlags_.back() & isArc); + openElementFlags_.resize(openElementFlags_.size() - 1); + if (wasArc) { + EndElementEvent *genEvent + = new (alloc) EndElementEvent(currentElement().type(), + metaDtd_, + event.location(), + 0); + if (currentElement().included()) + genEvent->setIncluded(); + docHandler_->endElement(genEvent); + if (!currentElement().isFinished()) + Messenger::message(ArcEngineMessages::unfinishedElement, + StringMessageArg(currentElement().type()->name())); + popElement(); + } +} + +void ArcProcessor::dispatchMessage(Message &msg) +{ + mgr_->dispatchMessage(msg); +} + +void ArcProcessor::dispatchMessage(const Message &msg) +{ + mgr_->dispatchMessage(msg); +} + +void ArcProcessor::initMessage(Message &msg) +{ + mgr_->initMessage(msg); + if (valid_) { + StringC rniPcdata = metaSyntax_->delimGeneral(Syntax::dRNI); + rniPcdata += metaSyntax_->reservedName(Syntax::rPCDATA); + getOpenElementInfo(msg.openElementInfo, rniPcdata); + } +} + +ArcProcessor::MetaMapCache::MetaMapCache() +{ + for (int i = 0; i < nNoSpec; i++) + noSpec[i] = invalidAtt; + linkAtts = 0; +} + +void ArcProcessor::MetaMapCache::clear() +{ + for (int i = 0; i < nNoSpec; i++) + noSpec[i] = invalidAtt; + linkAtts = 0; + map.clear(); +} + +ArcProcessor::MetaMap::MetaMap() +: attributed(0) +{ + attTokenMapBase.push_back(0); +} + +void ArcProcessor::MetaMap::clear() +{ + attMapFrom.clear(); + attMapTo.clear(); + attTokenMapBase.clear(); + tokenMapFrom.clear(); + tokenMapTo.clear(); + attributed = 0; + attTokenMapBase.push_back(0); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ArcEngineMessages.h b/lib/ArcEngineMessages.h new file mode 100644 index 0000000..9322d19 --- /dev/null +++ b/lib/ArcEngineMessages.h @@ -0,0 +1,402 @@ +// This file was automatically generated from ArcEngineMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct ArcEngineMessages { + // 3000 + static const MessageType1 arcGenerateSystemId; + // 3001 + static const MessageType1 undefinedElement; + // 3002 + static const MessageType1 elementExcluded; + // 3003 + static const MessageType1 invalidElement; + // 3004 + static const MessageType1 documentElementNotArc; + // 3005 + static const MessageType1 unfinishedElement; + // 3006 + static const MessageType0 renameMissingAttName; + // 3007 + static const MessageType1 renameToInvalid; + // 3008 + static const MessageType1 renameToDuplicate; + // 3009 + static const MessageType1 renameFromInvalid; + // 3010 + static const MessageType1 missingId; + // 3011 + static const MessageType0 invalidArcContent; + // 3012 + static const MessageType1 invalidSuppress; + // 3013 + static const MessageType1 arcDtdNotDeclaredParameter; + // 3014 + static const MessageType1 arcDtdNotDeclaredGeneral; + // 3015 + static const MessageType1 arcDtdNotExternal; + // 3016 + static const MessageType0 noArcDTDAtt; + // 3017 + static const MessageType1 noArcDataF; + // 3018 + static const MessageType1 idMismatch; + // 3019 + static const MessageType1 invalidArcAuto; + // 3020 + static const MessageType1 noArcNotation; + // 3021 + static const MessageType0 invalidData; + // 3022 + static const MessageType1 invalidIgnD; + // 3024 + static const MessageType1 invalidQuantity; + // 3025 + static const MessageType1 missingQuantityValue; + // 3026 + static const MessageType1 quantityValueTooLong; + // 3027 + static const MessageType1 invalidDigit; + // 3028 + static const MessageType0 arcIndrNotSupported; + // 3029 + static const MessageType0 arcContDuplicate; + // 3030 + static const MessageType1 arcContInvalid; + // 3031 + static const MessageType1 renameFromDuplicate; + // 3032 + static const MessageType0 contentDuplicate; + // 3033 + static const MessageType0 is10744PiKeywordMissing; + // 3034 + static const MessageType1 is10744PiKeywordInvalid; + // 3035 + static const MessageType1L duplicateArcDecl; + // 3037 + static const MessageType1L ignoringPiArcDecl; + // 3039 + static const MessageType1L ignoringArcBaseArcDecl; +}; +const MessageType1 ArcEngineMessages::arcGenerateSystemId( +MessageType::error, +&libModule, +3000 +#ifndef SP_NO_MESSAGE_TEXT +,"no system identifier could be generated for meta-DTD for architecture %1" +#endif +); +const MessageType1 ArcEngineMessages::undefinedElement( +MessageType::error, +&libModule, +3001 +#ifndef SP_NO_MESSAGE_TEXT +,"element type %1 not defined in meta-DTD" +#endif +); +const MessageType1 ArcEngineMessages::elementExcluded( +MessageType::error, +&libModule, +3002 +#ifndef SP_NO_MESSAGE_TEXT +,"element %1 invalid in meta-DTD because excluded" +#endif +); +const MessageType1 ArcEngineMessages::invalidElement( +MessageType::error, +&libModule, +3003 +#ifndef SP_NO_MESSAGE_TEXT +,"meta-DTD does not allow element %1 at this point" +#endif +); +const MessageType1 ArcEngineMessages::documentElementNotArc( +MessageType::error, +&libModule, +3004 +#ifndef SP_NO_MESSAGE_TEXT +,"document element must be instance of %1 element type form" +#endif +); +const MessageType1 ArcEngineMessages::unfinishedElement( +MessageType::error, +&libModule, +3005 +#ifndef SP_NO_MESSAGE_TEXT +,"element %1 unfinished in meta-DTD" +#endif +); +const MessageType0 ArcEngineMessages::renameMissingAttName( +MessageType::error, +&libModule, +3006 +#ifndef SP_NO_MESSAGE_TEXT +,"missing substitute name" +#endif +); +const MessageType1 ArcEngineMessages::renameToInvalid( +MessageType::error, +&libModule, +3007 +#ifndef SP_NO_MESSAGE_TEXT +,"substitute for non-existent architecture attribute %1" +#endif +); +const MessageType1 ArcEngineMessages::renameToDuplicate( +MessageType::error, +&libModule, +3008 +#ifndef SP_NO_MESSAGE_TEXT +,"substitute name for %1 already defined" +#endif +); +const MessageType1 ArcEngineMessages::renameFromInvalid( +MessageType::error, +&libModule, +3009 +#ifndef SP_NO_MESSAGE_TEXT +,"substitute name %1 is not the name of an attribute" +#endif +); +const MessageType1 ArcEngineMessages::missingId( +MessageType::idrefError, +&libModule, +3010 +#ifndef SP_NO_MESSAGE_TEXT +,"reference in architecture to non-existent ID %1" +#endif +); +const MessageType0 ArcEngineMessages::invalidArcContent( +MessageType::error, +&libModule, +3011 +#ifndef SP_NO_MESSAGE_TEXT +,"architectural content specified with #ARCCONT not allowed by meta-DTD" +#endif +); +const MessageType1 ArcEngineMessages::invalidSuppress( +MessageType::error, +&libModule, +3012 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid value %1 for ArcSupr attribute" +,"ISO/IEC 10744:1997 A3.5.3" +#endif +); +const MessageType1 ArcEngineMessages::arcDtdNotDeclaredParameter( +MessageType::error, +&libModule, +3013 +#ifndef SP_NO_MESSAGE_TEXT +,"no declaration for meta-DTD parameter entity %1" +,"ISO/IEC 10744:1997 A3.4.2" +#endif +); +const MessageType1 ArcEngineMessages::arcDtdNotDeclaredGeneral( +MessageType::error, +&libModule, +3014 +#ifndef SP_NO_MESSAGE_TEXT +,"no declaration for meta-DTD general entity %1" +,"ISO/IEC 10744:1997 A3.4.2" +#endif +); +const MessageType1 ArcEngineMessages::arcDtdNotExternal( +MessageType::error, +&libModule, +3015 +#ifndef SP_NO_MESSAGE_TEXT +,"meta-DTD entity %1 must be external" +,"ISO/IEC 10744:1997 A3.4.2" +#endif +); +const MessageType0 ArcEngineMessages::noArcDTDAtt( +MessageType::warning, +&libModule, +3016 +#ifndef SP_NO_MESSAGE_TEXT +,"no ArcDTD architecture support attribute specified" +,"ISO/IEC 10744:1997 A3.4.2" +#endif +); +const MessageType1 ArcEngineMessages::noArcDataF( +MessageType::error, +&libModule, +3017 +#ifndef SP_NO_MESSAGE_TEXT +,"ArcDataF notation %1 not defined in meta-DTD" +,"ISO/IEC 10744:1997 A3.4.2" +#endif +); +const MessageType1 ArcEngineMessages::idMismatch( +MessageType::error, +&libModule, +3018 +#ifndef SP_NO_MESSAGE_TEXT +,"ID attribute %1 in meta-DTD not declared as ID in DTD" +,"ISO/IEC 10744:1997 A3.6.4" +#endif +); +const MessageType1 ArcEngineMessages::invalidArcAuto( +MessageType::error, +&libModule, +3019 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid value %1 for ArcAuto architectural support attribute" +,"ISO/IEC 10744:1997 A3.4.2" +#endif +); +const MessageType1 ArcEngineMessages::noArcNotation( +MessageType::error, +&libModule, +3020 +#ifndef SP_NO_MESSAGE_TEXT +,"no notation declaration for architecture %1" +,"ISO/IEC 10744:1997 A3.4.1" +#endif +); +const MessageType0 ArcEngineMessages::invalidData( +MessageType::error, +&libModule, +3021 +#ifndef SP_NO_MESSAGE_TEXT +,"meta-DTD does not allow data at this point" +#endif +); +const MessageType1 ArcEngineMessages::invalidIgnD( +MessageType::error, +&libModule, +3022 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid value %1 for ArcIgnD attribute" +,"ISO/IEC 10744:1997 A3.5.4" +#endif +); +const MessageType1 ArcEngineMessages::invalidQuantity( +MessageType::error, +&libModule, +3024 +#ifndef SP_NO_MESSAGE_TEXT +,"unrecognized quantity name %1" +#endif +); +const MessageType1 ArcEngineMessages::missingQuantityValue( +MessageType::error, +&libModule, +3025 +#ifndef SP_NO_MESSAGE_TEXT +,"no value specified for quantity %1" +#endif +); +const MessageType1 ArcEngineMessages::quantityValueTooLong( +MessageType::error, +&libModule, +3026 +#ifndef SP_NO_MESSAGE_TEXT +,"length of value %1 for quantity is too long" +#endif +); +const MessageType1 ArcEngineMessages::invalidDigit( +MessageType::error, +&libModule, +3027 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid digit %1" +#endif +); +const MessageType0 ArcEngineMessages::arcIndrNotSupported( +MessageType::error, +&libModule, +3028 +#ifndef SP_NO_MESSAGE_TEXT +,"only value of nArcIndr for ArcIndr attribute supported" +#endif +); +const MessageType0 ArcEngineMessages::arcContDuplicate( +MessageType::error, +&libModule, +3029 +#ifndef SP_NO_MESSAGE_TEXT +,"#ARCCONT attribute already specified" +,"ISO/IEC 10744:1997 A3.5.2" +#endif +); +const MessageType1 ArcEngineMessages::arcContInvalid( +MessageType::error, +&libModule, +3030 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid value %1 for #ARCCONT" +,"ISO/IEC 10744:1997 A3.5.2" +#endif +); +const MessageType1 ArcEngineMessages::renameFromDuplicate( +MessageType::error, +&libModule, +3031 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 already used as a substitute name" +,"ISO/IEC 10744:1997 A3.5.2" +#endif +); +const MessageType0 ArcEngineMessages::contentDuplicate( +MessageType::error, +&libModule, +3032 +#ifndef SP_NO_MESSAGE_TEXT +,"substitute name #CONTENT already specified" +,"ISO/IEC 10744:1997 A3.5.2" +#endif +); +const MessageType0 ArcEngineMessages::is10744PiKeywordMissing( +MessageType::error, +&libModule, +3033 +#ifndef SP_NO_MESSAGE_TEXT +,"IS10744 PI keyword missing" +#endif +); +const MessageType1 ArcEngineMessages::is10744PiKeywordInvalid( +MessageType::error, +&libModule, +3034 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid IS10744 PI keyword %1" +#endif +); +const MessageType1L ArcEngineMessages::duplicateArcDecl( +MessageType::error, +&libModule, +3035 +#ifndef SP_NO_MESSAGE_TEXT +,"architecture %1 already defined" +,0 +,"the first definition" +#endif +); +const MessageType1L ArcEngineMessages::ignoringPiArcDecl( +MessageType::warning, +&libModule, +3037 +#ifndef SP_NO_MESSAGE_TEXT +,"ignoring PI declaration of architecture %1" +,0 +,"the ArcBase definition" +#endif +); +const MessageType1L ArcEngineMessages::ignoringArcBaseArcDecl( +MessageType::warning, +&libModule, +3039 +#ifndef SP_NO_MESSAGE_TEXT +,"ignoring ArcBase declaration of architecture %1" +,0 +,"the PI definition" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ArcEngineMessages.msg b/lib/ArcEngineMessages.msg new file mode 100644 index 0000000..b8ecd5c --- /dev/null +++ b/lib/ArcEngineMessages.msg @@ -0,0 +1,45 @@ +# Copyright (c) 1996 James Clark, 2000 Matthias Clasen +# See the file COPYING for copying permission. +# Format is+ +# TN+tag+relevant clauses+message +# where T is a letter indicating the type, and N is the number of arguments. + +=3000 +E1+arcGenerateSystemId++no system identifier could be generated for meta-DTD for architecture %1 +E1+undefinedElement++element type %1 not defined in meta-DTD +E1+elementExcluded++element %1 invalid in meta-DTD because excluded +E1+invalidElement++meta-DTD does not allow element %1 at this point +E1+documentElementNotArc++document element must be instance of %1 element type form +E1+unfinishedElement++element %1 unfinished in meta-DTD +E0+renameMissingAttName++missing substitute name +E1+renameToInvalid++substitute for non-existent architecture attribute %1 +E1+renameToDuplicate++substitute name for %1 already defined +E1+renameFromInvalid++substitute name %1 is not the name of an attribute +X1+missingId++reference in architecture to non-existent ID %1 +E0+invalidArcContent++architectural content specified with #ARCCONT not allowed by meta-DTD +E1+invalidSuppress+ISO/IEC 10744:1997 A3.5.3+invalid value %1 for ArcSupr attribute +E1+arcDtdNotDeclaredParameter+ISO/IEC 10744:1997 A3.4.2+no declaration for meta-DTD parameter entity %1 +E1+arcDtdNotDeclaredGeneral+ISO/IEC 10744:1997 A3.4.2+no declaration for meta-DTD general entity %1 +E1+arcDtdNotExternal+ISO/IEC 10744:1997 A3.4.2+meta-DTD entity %1 must be external +W0+noArcDTDAtt+ISO/IEC 10744:1997 A3.4.2+no ArcDTD architecture support attribute specified +E1+noArcDataF+ISO/IEC 10744:1997 A3.4.2+ArcDataF notation %1 not defined in meta-DTD +E1+idMismatch+ISO/IEC 10744:1997 A3.6.4+ID attribute %1 in meta-DTD not declared as ID in DTD +E1+invalidArcAuto+ISO/IEC 10744:1997 A3.4.2+invalid value %1 for ArcAuto architectural support attribute +E1+noArcNotation+ISO/IEC 10744:1997 A3.4.1+no notation declaration for architecture %1 +E0+invalidData++meta-DTD does not allow data at this point +E1+invalidIgnD+ISO/IEC 10744:1997 A3.5.4+invalid value %1 for ArcIgnD attribute +-E1+invalidArcIndr++invalid value %1 for ArcIndr architectural support attribute +E1+invalidQuantity++unrecognized quantity name %1 +E1+missingQuantityValue++no value specified for quantity %1 +E1+quantityValueTooLong++length of value %1 for quantity is too long +E1+invalidDigit++invalid digit %1 +E0+arcIndrNotSupported++only value of nArcIndr for ArcIndr attribute supported +E0+arcContDuplicate+ISO/IEC 10744:1997 A3.5.2+#ARCCONT attribute already specified +E1+arcContInvalid+ISO/IEC 10744:1997 A3.5.2+invalid value %1 for #ARCCONT +E1+renameFromDuplicate+ISO/IEC 10744:1997 A3.5.2+%1 already used as a substitute name +E0+contentDuplicate+ISO/IEC 10744:1997 A3.5.2+substitute name #CONTENT already specified +E0+is10744PiKeywordMissing++IS10744 PI keyword missing +E1+is10744PiKeywordInvalid++invalid IS10744 PI keyword %1 +E1+duplicateArcDecl++architecture %1 already defined+the first definition +W1+ignoringPiArcDecl++ignoring PI declaration of architecture %1+the ArcBase definition +W1+ignoringArcBaseArcDecl++ignoring ArcBase declaration of architecture %1+the PI definition diff --git a/lib/ArcEngineMessages.rc b/lib/ArcEngineMessages.rc new file mode 100644 index 0000000..11a9d38 --- /dev/null +++ b/lib/ArcEngineMessages.rc @@ -0,0 +1,42 @@ +STRINGTABLE +BEGIN + 3000, "no system identifier could be generated for meta-DTD for architecture %1" + 3001, "element type %1 not defined in meta-DTD" + 3002, "element %1 invalid in meta-DTD because excluded" + 3003, "meta-DTD does not allow element %1 at this point" + 3004, "document element must be instance of %1 element type form" + 3005, "element %1 unfinished in meta-DTD" + 3006, "missing substitute name" + 3007, "substitute for non-existent architecture attribute %1" + 3008, "substitute name for %1 already defined" + 3009, "substitute name %1 is not the name of an attribute" + 3010, "reference in architecture to non-existent ID %1" + 3011, "architectural content specified with #ARCCONT not allowed by meta-DTD" + 3012, "invalid value %1 for ArcSupr attribute" + 3013, "no declaration for meta-DTD parameter entity %1" + 3014, "no declaration for meta-DTD general entity %1" + 3015, "meta-DTD entity %1 must be external" + 3016, "no ArcDTD architecture support attribute specified" + 3017, "ArcDataF notation %1 not defined in meta-DTD" + 3018, "ID attribute %1 in meta-DTD not declared as ID in DTD" + 3019, "invalid value %1 for ArcAuto architectural support attribute" + 3020, "no notation declaration for architecture %1" + 3021, "meta-DTD does not allow data at this point" + 3022, "invalid value %1 for ArcIgnD attribute" + 3024, "unrecognized quantity name %1" + 3025, "no value specified for quantity %1" + 3026, "length of value %1 for quantity is too long" + 3027, "invalid digit %1" + 3028, "only value of nArcIndr for ArcIndr attribute supported" + 3029, "#ARCCONT attribute already specified" + 3030, "invalid value %1 for #ARCCONT" + 3031, "%1 already used as a substitute name" + 3032, "substitute name #CONTENT already specified" + 3033, "IS10744 PI keyword missing" + 3034, "invalid IS10744 PI keyword %1" + 3035, "architecture %1 already defined" + 3036, "the first definition" + 3037, "ignoring PI declaration of architecture %1" + 3038, "the ArcBase definition" + 3039, "ignoring ArcBase declaration of architecture %1" +END diff --git a/lib/ArcProcessor.h b/lib/ArcProcessor.h new file mode 100644 index 0000000..2b036ad --- /dev/null +++ b/lib/ArcProcessor.h @@ -0,0 +1,230 @@ +// Copyright (c) 1996 James Clark, 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef ArcProcessor_INCLUDED +#define ArcProcessor_INCLUDED 1 + +#include "Event.h" +#include "ContentState.h" +#include "Id.h" +#include "NamedTable.h" +#include "Vector.h" +#include "ArcEngine.h" +#include "SgmlParser.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Allocator; + +// Processor for a single architecture + +class ArcProcessor : private ContentState, private AttributeContext { +public: + struct MetaMap { + MetaMap(); + void clear(); + const Attributed *attributed; + unsigned suppressFlags; + // #ARCCONT and #CONTENT are handled with a special index + // list of indexes into element's attlist of architectural attributes + Vector attMapFrom; + // corresponding list of indexes in form's attlist + Vector attMapTo; + // corresponding list of pointers in the token maps + Vector attTokenMapBase; + Vector tokenMapFrom; + Vector tokenMapTo; + }; + struct MetaMapCache { + MetaMapCache(); + void clear(); + MetaMap map; + enum { nNoSpec = 4 }; + // Prerequisites for this cached entry to be valid. + // The cache is only valid if for each member of noSpec != -1 + // the attribute with that index was not specified (or current) + unsigned noSpec[nNoSpec]; + unsigned suppressFlags; + const AttributeList *linkAtts; + }; + ArcProcessor(); + void setName(const StringC &, const Location &); + void init(const EndPrologEvent &, + const ConstPtr &, + const ConstPtr &, + const SgmlParser *parser, + Messenger *, + const Vector &superName, + const NCVector &arcProcessors, + ArcDirector &director, + const volatile sig_atomic_t *cancelPtr); + // Return 0 if the content is needed, but wasn't supplied + Boolean processStartElement(const StartElementEvent &, + const AttributeList *linkAttributes, + const Text *content, + Allocator &); + void processEndElement(const EndElementEvent &, + Allocator &); + // Return true if its architectural. + Boolean processData(); + ConstPtr dtdPointer() const { return metaDtd_; } + Boolean valid() const { return valid_; } + void checkIdrefs(); + const StringC &name() const { return name_; } + Boolean piDecl() const { return piDecl_; } + EventHandler &docHandler() const { return *docHandler_; } + void setPiDecl(const Location &loc, const StringC &attspecText, Index attspecIndex, + const ConstPtr &archPiAttributeDefs); +private: + ArcProcessor(const ArcProcessor &); // undefined + void operator=(const ArcProcessor &); // undefined + const Syntax &attributeSyntax() const; + ConstPtr getAttributeNotation(const StringC &, + const Location &); + ConstPtr getAttributeEntity(const StringC &, + const Location &); + void noteCurrentAttribute(size_t, AttributeValue *); + ConstPtr getCurrentAttribute(size_t) const; + Boolean defineId(const StringC &, const Location &, Location &); + void noteIdref(const StringC &, const Location &); + Id *lookupCreateId(const StringC &); + void dispatchMessage(const Message &); + void dispatchMessage(Message &); + void initMessage(Message &); + const MetaMap &buildMetaMap(const ElementType *, + const Notation *, + const AttributeList &, + const AttributeList *linkAtts, + unsigned suppressFlags); + void considerSupr(const AttributeList &atts, + const AttributeList *linkAtts, + unsigned &thisSuppressFlags, + unsigned &newSuppressFlags, + Boolean &inhibitCache, + unsigned &arcSuprIndex); + void considerIgnD(const AttributeList &atts, + const AttributeList *linkAtts, + unsigned thisSuppressFlags, + unsigned &newSuppressFlags, + Boolean &inhibitCache, + unsigned &arcSuprIndex); + const Attributed *considerForm(const AttributeList &atts, + const AttributeList *linkAtts, + const StringC &name, + Boolean isNotation, + unsigned thisSuppressFlags, + unsigned &newSuppressFlags, + Boolean &inhibitCache, + unsigned &arcFormIndex); + const Attributed *autoForm(const AttributeList &atts, + const StringC &name, + Boolean isNotation, + unsigned thisSuppressFlags, + unsigned &newSuppressFlags, + Boolean &inhibitCache, + unsigned &idIndex); + const Text *considerNamer(const AttributeList &atts, + Boolean &inhibitCache, + unsigned &arcNamerIndex); + void buildAttributeMapRename(MetaMap &map, + const Text &rename, + const AttributeList &atts, + const AttributeList *linkAtts, + Vector &attRenamed, + Vector &attSubstituted, + Boolean isNotation); + void buildAttributeMapRest(MetaMap &map, + const AttributeList &atts, + const AttributeList *linkAtts, + const Vector &attRenamed); + Boolean matchName(const StringC &name, const char *key); + void split(const Text &text, + Char space, + Vector &tokens, + Vector &tokenPos); + Boolean mapAttributes(const AttributeList &from, + const AttributeList *fromLink, + const Text *content, + AttributeList &to, + ConstPtr &arcContent, + const MetaMap &map); + void supportAttributes(const AttributeList &, Boolean piDecl); + void processArcOpts(const AttributeList &atts, Boolean piDecl); + void processArcQuant(const Text &); + ConstPtr makeDtdEntity(const Notation *); + void mungeMetaDtd(Dtd &metaDtd, const Dtd &docDtd); + Boolean mungeDataEntity(ExternalDataEntity &entity); + void emitArcContent(const Text &text, + EventHandler &handler, + Allocator &allocator); + + Boolean valid_; + StringC name_; + Messenger *mgr_; + ConstPtr docDtd_; + Ptr metaDtd_; + ConstPtr docSyntax_; + ConstPtr metaSyntax_; + ConstPtr docSd_; + enum ReservedName { + rArcName, + rArcPubid, + rArcFormA, + rArcNamrA, + rArcSuprA, + rArcIgnDA, + rArcDocF, + rArcSuprF, + rArcBridF, + rArcDataF, + rArcAuto, + rArcDTD, + rArcDtdPubid, + rArcDtdSysid, + rArcQuant + }; + enum { nReserve = rArcQuant + 1 }; + StringC supportAtts_[nReserve]; + const Text *supportAttsText_[nReserve]; + Boolean piDecl_; + Location declLoc_; + StringC piDeclAttspecText_; + Index piDeclAttspecIndex_; + ConstPtr archPiAttributeDefs_; + Boolean arcDtdIsParam_; + Boolean arcAuto_; + Vector arcOpts_; + StringC rniContent_; + StringC rniArcCont_; + StringC rniDefault_; + StringC rniMaptoken_; + enum { + isArc = 01, + suppressForm = 02, + suppressSupr = 04, + ignoreData = 010, + condIgnoreData = 020, + // recovering from invalid data + recoverData = 040 + }; + Vector openElementFlags_; + AttributeList attributeList_; + NCVector > metaMapCache_; + MetaMap noCacheMetaMap_; + NamedTable idTable_; + Vector > currentAttributes_; + ConstPtr defaultNotation_; + Boolean errorIdref_; + ArcDirector *director_; + EventHandler *docHandler_; + Owner ownEventHandler_; + size_t docIndex_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ArcProcessor_INCLUDED */ diff --git a/lib/Attribute.cxx b/lib/Attribute.cxx new file mode 100644 index 0000000..cc60f60 --- /dev/null +++ b/lib/Attribute.cxx @@ -0,0 +1,1472 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Attribute.h" +#include "MessageArg.h" +#include "macros.h" +#include "ParserMessages.h" +#include "Syntax.h" +#include "Entity.h" +#include "Notation.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +DeclaredValue::DeclaredValue() +{ +} + +DeclaredValue::~DeclaredValue() +{ +} + +AttributeValue *DeclaredValue::makeValueFromToken(Text &text, + AttributeContext &context, + const StringC &name, + unsigned &specLength) const +{ + return makeValue(text, context, name, specLength); +} + +AttributeSemantics *DeclaredValue::makeSemantics(const TokenizedAttributeValue &, + AttributeContext &, + const StringC &, + unsigned &, + unsigned &) const +{ + return 0; +} + +Boolean DeclaredValue::containsToken(const StringC &) const +{ + return 0; +} + +Boolean DeclaredValue::isNotation() const +{ + return 0; +} + +Boolean DeclaredValue::isEntity() const +{ + return 0; +} + +Boolean DeclaredValue::isId() const +{ + return 0; +} + +Boolean DeclaredValue::isIdref() const +{ + return 0; +} + +const Vector *DeclaredValue::getTokens() const +{ + return 0; +} + +const Vector *DeclaredValue::getOrigTokens() const +{ + return 0; +} + + +CdataDeclaredValue::CdataDeclaredValue() +{ +} + +Boolean CdataDeclaredValue::tokenized() const +{ + return 0; +} + +void CdataDeclaredValue::checkNormalizedLength(Text &text, + AttributeContext &context, + unsigned &specLength) const +{ + const Syntax &syntax = context.attributeSyntax(); + size_t normsep = syntax.normsep(); + size_t normalizedLength = text.normalizedLength(normsep); + specLength += normalizedLength; + size_t litlen = syntax.litlen(); + // A length error will already have been given if + // length > litlen - normsep. + if (litlen >= normsep && text.size() <= litlen - normsep + && normalizedLength > litlen) + context.message(ParserMessages::normalizedAttributeValueLength, + NumberMessageArg(litlen), + NumberMessageArg(normalizedLength)); +} + +AttributeValue *CdataDeclaredValue::makeValue(Text &text, AttributeContext &context, + const StringC &, + unsigned &specLength) const +{ + checkNormalizedLength(text, context, specLength); + return new CdataAttributeValue(text); +} + +void CdataDeclaredValue::buildDesc(AttributeDefinitionDesc &desc) const +{ + desc.declaredValue = AttributeDefinitionDesc::cdata; +} + +DeclaredValue *CdataDeclaredValue::copy() const +{ + return new CdataDeclaredValue(*this); +} + +DataDeclaredValue::DataDeclaredValue(const ConstPtr &nt, + AttributeList &attributes) +: notation_(nt) +{ + attributes.swap(attributes_); +} + +AttributeValue *DataDeclaredValue::makeValue(Text &text, + AttributeContext &context, + const StringC &, + unsigned &specLength) const +{ + checkNormalizedLength(text, context, specLength); + return new DataAttributeValue(text, notation_, attributes_); +} + +DeclaredValue *DataDeclaredValue::copy() const +{ + return new DataDeclaredValue(*this); +} + +TokenizedDeclaredValue::TokenizedDeclaredValue(TokenType type, + Boolean isList) +: type_(type), isList_(isList) +{ + switch (type) { + case name: + case entityName: + initialCategories_ = Syntax::nameStartCategory; + subsequentCategories_ = (Syntax::nameStartCategory|Syntax::digitCategory + | Syntax::otherNameCategory); + break; + case number: + initialCategories_ = Syntax::digitCategory; + subsequentCategories_ = Syntax::digitCategory; + break; + case nameToken: + initialCategories_ = (Syntax::nameStartCategory|Syntax::digitCategory + | Syntax::otherNameCategory); + subsequentCategories_ = initialCategories_; + break; + case numberToken: + initialCategories_ = Syntax::digitCategory; + subsequentCategories_ = (Syntax::nameStartCategory|Syntax::digitCategory + | Syntax::otherNameCategory); + break; + } +} + +Boolean TokenizedDeclaredValue::tokenized() const +{ + return 1; +} + +AttributeValue *TokenizedDeclaredValue::makeValue(Text &text, + AttributeContext &context, + const StringC &str, + unsigned &specLength) const +{ + return makeTokenizedValue(text, context, str, specLength); +} + +TokenizedAttributeValue * +TokenizedDeclaredValue::makeTokenizedValue(Text &text, + AttributeContext &context, + const StringC &name, + unsigned &specLength) const +{ + Vector spaceIndex; + const Syntax &syntax = context.attributeSyntax(); + Char space = syntax.space(); + text.subst(*(type_ == entityName + ? syntax.entitySubstTable() + : syntax.generalSubstTable()), + space); + const StringC &value = text.string(); + size_t i = 0; + size_t length = value.size(); + + for (;;) { + if (i >= length) { + // ends with a space (which would have to have been entered + // via a numeric character reference) + if (context.validate()) + context.message(ParserMessages::attributeValueSyntax); + break; + } + size_t startIndex = i; + if (context.validate()) { + if (!(syntax.charCategory(value[i]) & initialCategories_)) { + context.Messenger::setNextLocation(text.charLocation(i)); + Char c = value[i]; + if (!(syntax.charCategory(value[i]) & subsequentCategories_)) + context.message(ParserMessages::attributeValueChar, + StringMessageArg(StringC(&c, 1)), + StringMessageArg(name)); + else if (initialCategories_ == Syntax::digitCategory) + context.message(ParserMessages::attributeValueNumberToken, + StringMessageArg(StringC(&c, 1)), + StringMessageArg(name)); + else + context.message(ParserMessages::attributeValueName, + StringMessageArg(StringC(&c, 1)), + StringMessageArg(name)); + } + else { + for (++i; + i < length + && (syntax.charCategory(value[i]) & subsequentCategories_); + i++) + ; + if (i < length && value[i] != space) { + Char c = value[i]; + // character value[i] is not allowed anywhere in the value + context.Messenger::setNextLocation(text.charLocation(i)); + context.message(ParserMessages::attributeValueChar, + StringMessageArg(StringC(&c, 1)), + StringMessageArg(name)); + } + } + } + while (i < length && value[i] != space) + i++; + if (i - startIndex > syntax.namelen()) { + context.Messenger::setNextLocation(text.charLocation(i)); + context.message(ParserMessages::nameTokenLength, + NumberMessageArg(syntax.namelen())); + } + if (i == length) + break; + if (!isList_ && context.validate() && spaceIndex.size() == 0) { + context.Messenger::setNextLocation(text.charLocation(i)); + context.message(ParserMessages::attributeValueMultiple, + StringMessageArg(name)); + } + spaceIndex.push_back(i); + i++; + } + size_t normsep = syntax.normsep(); + size_t litlen = syntax.litlen(); + size_t normalizedLength = normsep + length; + // should we count CDATA and SDATA entities here? + if (isList_) { + normalizedLength += 1; + // length is now the number of characters in each token in the list + // + 1 for each token in the list; so add normsep - 1 for each + // token in the list. + if (normsep > 0) + normalizedLength += (normsep - 1)*(spaceIndex.size() + 1); + else + normalizedLength -= spaceIndex.size() + 1; + } + specLength += normalizedLength; + // A length error will already have been given if + // length > litlen - normsep. + if (litlen >= normsep && length <= litlen - normsep + && normalizedLength > litlen) + context.message(ParserMessages::normalizedAttributeValueLength, + NumberMessageArg(litlen), + NumberMessageArg(normalizedLength)); + return new TokenizedAttributeValue(text, spaceIndex); +} + +Boolean TokenizedAttributeValue::recoverUnquoted(const StringC &str, + const Location &strLoc, + AttributeContext &context, + const StringC &name) +{ + TextIter iter(text_); + TextItem::Type type; + const Char *s; + size_t len; + const Location *loc; + if (iter.next(type, s, len, loc) + && type == TextItem::data + && len == text_.size() + && loc->origin().pointer() == strLoc.origin().pointer() + && loc->index() + len == strLoc.index() + && !iter.next(type, s, len, loc)) { + context.Messenger::setNextLocation(strLoc); + context.message(ParserMessages::attributeValueChar, + StringMessageArg(StringC(str.data(), 1)), + StringMessageArg(name)); + return 1; + } + return 0; +} + +void TokenizedDeclaredValue::buildDesc(AttributeDefinitionDesc &desc) const +{ + desc.declaredValue = AttributeDefinitionDesc::DeclaredValue( + type_ - name + (isList_ + ? AttributeDefinitionDesc::names + : AttributeDefinitionDesc::name)); +} + +DeclaredValue *TokenizedDeclaredValue::copy() const +{ + return new TokenizedDeclaredValue(*this); +} + +GroupDeclaredValue::GroupDeclaredValue(TokenType type, + Vector &vec) +: TokenizedDeclaredValue(type, 0) +{ + vec.swap(allowedValues_); +} + +void GroupDeclaredValue::buildDesc(AttributeDefinitionDesc &desc) const +{ + desc.allowedValues = allowedValues_; + desc.origAllowedValues = origAllowedValues_; +} + +DeclaredValue *GroupDeclaredValue::copy() const +{ + return new GroupDeclaredValue(*this); +} + +void GroupDeclaredValue::setOrigAllowedValues(Vector &origAllowedValues) +{ + origAllowedValues.swap(origAllowedValues_); +} + +AttributeValue *GroupDeclaredValue::makeValue(Text &text, + AttributeContext &context, + const StringC &name, + unsigned &specLength) const +{ + TokenizedAttributeValue *val = makeTokenizedValue(text, context, name, + specLength); + if (!val || !context.validate()) + return val; + for (size_t i = 0; i < allowedValues_.size(); i++) + if (val->string() == allowedValues_[i]) + return val; + context.message(ParserMessages::attributeValueNotInGroup, + StringMessageArg(val->string()), + StringMessageArg(name), + StringVectorMessageArg(allowedValues_)); + return val; +} + +AttributeValue *GroupDeclaredValue::makeValueFromToken(Text &text, + AttributeContext &context, + const StringC &, + unsigned &specLength) + const +{ + const Syntax &syntax = context.attributeSyntax(); + size_t litlen = syntax.litlen(); + size_t normsep = syntax.normsep(); + if (normsep > litlen || text.size() > litlen - normsep) + context.message(ParserMessages::normalizedAttributeValueLength, + NumberMessageArg(litlen), + NumberMessageArg(text.size() + normsep)); + specLength += text.size() + normsep; + return new TokenizedAttributeValue(text, Vector()); +} + +Boolean GroupDeclaredValue::containsToken(const StringC &token) const +{ + for (size_t i = 0; i < allowedValues_.size(); i++) + if (allowedValues_[i] == token) + return 1; + return 0; +} + +const Vector *GroupDeclaredValue::getTokens() const +{ + return &allowedValues_; +} + +const Vector *GroupDeclaredValue::getOrigTokens() const +{ + return &origAllowedValues_; +} + +NameTokenGroupDeclaredValue::NameTokenGroupDeclaredValue(Vector &vec) +: GroupDeclaredValue(nameToken, vec) +{ +} + +void NameTokenGroupDeclaredValue::buildDesc(AttributeDefinitionDesc &desc) const +{ + GroupDeclaredValue::buildDesc(desc); + desc.declaredValue = AttributeDefinitionDesc::nameTokenGroup; +} + +DeclaredValue *NameTokenGroupDeclaredValue::copy() const +{ + return new NameTokenGroupDeclaredValue(*this); +} + +NotationDeclaredValue::NotationDeclaredValue(Vector &vec) +: GroupDeclaredValue(name, vec) +{ +} + +Boolean NotationDeclaredValue::isNotation() const +{ + return 1; +} + +AttributeSemantics * +NotationDeclaredValue::makeSemantics(const TokenizedAttributeValue &value, + AttributeContext &context, + const StringC &, + unsigned &, + unsigned &) const +{ + ConstPtr notation + = context.getAttributeNotation(value.string(), + value.tokenLocation(0)); + if (notation.isNull()) { + if (context.validate()) { + context.setNextLocation(value.tokenLocation(0)); + context.message(ParserMessages::invalidNotationAttribute, + StringMessageArg(value.string())); + } + return 0; + } + return new NotationAttributeSemantics(notation); +} + +void NotationDeclaredValue::buildDesc(AttributeDefinitionDesc &desc) const +{ + GroupDeclaredValue::buildDesc(desc); + desc.declaredValue = AttributeDefinitionDesc::notation; +} + +DeclaredValue *NotationDeclaredValue::copy() const +{ + return new NotationDeclaredValue(*this); +} + +EntityDeclaredValue::EntityDeclaredValue(Boolean isList) +: TokenizedDeclaredValue(entityName, isList) +{ +} + +Boolean EntityDeclaredValue::isEntity() const +{ + return 1; +} + +AttributeSemantics * +EntityDeclaredValue::makeSemantics(const TokenizedAttributeValue &value, + AttributeContext &context, + const StringC &, + unsigned &, + unsigned &nEntityNames) const +{ + Boolean valid = 1; + size_t nTokens = value.nTokens(); + nEntityNames += nTokens; + Vector > entities(nTokens); + for (size_t i = 0; i < nTokens; i++) { + entities[i] = context.getAttributeEntity(value.token(i), + value.tokenLocation(i)); + if (entities[i].isNull()) { + if (context.validate()) { + context.setNextLocation(value.tokenLocation(i)); + context.message(ParserMessages::invalidEntityAttribute, + StringMessageArg(value.token(i))); + } + valid = 0; + } + else if (!entities[i]->isDataOrSubdoc()) { + if (context.validate()) { + context.Messenger::setNextLocation(value.tokenLocation(i)); + context.message(ParserMessages::notDataOrSubdocEntity, + StringMessageArg(value.token(i))); + } + valid = 0; + } + } + if (valid) + return new EntityAttributeSemantics(entities); + else + return 0; +} + +DeclaredValue *EntityDeclaredValue::copy() const +{ + return new EntityDeclaredValue(*this); +} + +IdDeclaredValue::IdDeclaredValue() +: TokenizedDeclaredValue(name, 0) +{ +} + +Boolean IdDeclaredValue::isId() const +{ + return 1; +} + +AttributeSemantics * +IdDeclaredValue::makeSemantics(const TokenizedAttributeValue &value, + AttributeContext &context, + const StringC &, + unsigned &, + unsigned &) const +{ + Location prevLoc; + if (!context.defineId(value.string(), value.tokenLocation(0), prevLoc)) { + context.setNextLocation(value.tokenLocation(0)); + context.message(ParserMessages::duplicateId, + StringMessageArg(value.string()), + prevLoc); + } + return 0; +} + +void IdDeclaredValue::buildDesc(AttributeDefinitionDesc &desc) const +{ + desc.declaredValue = AttributeDefinitionDesc::id; +} + +DeclaredValue *IdDeclaredValue::copy() const +{ + return new IdDeclaredValue(*this); +} + +IdrefDeclaredValue::IdrefDeclaredValue(Boolean isList) +: TokenizedDeclaredValue(name, isList) +{ +} + +AttributeSemantics * +IdrefDeclaredValue::makeSemantics(const TokenizedAttributeValue &value, + AttributeContext &context, + const StringC &, + unsigned &nIdrefs, + unsigned &) const +{ + size_t nTokens = value.nTokens(); + nIdrefs += nTokens; + for (size_t i = 0; i < nTokens; i++) + context.noteIdref(value.token(i), value.tokenLocation(i)); + return 0; +} + +Boolean IdrefDeclaredValue::isIdref() const +{ + return 1; +} + +void IdrefDeclaredValue::buildDesc(AttributeDefinitionDesc &desc) const +{ + TokenizedDeclaredValue::buildDesc(desc); + if (desc.declaredValue == AttributeDefinitionDesc::name) + desc.declaredValue = AttributeDefinitionDesc::idref; + else + desc.declaredValue = AttributeDefinitionDesc::idrefs; +} + +DeclaredValue *IdrefDeclaredValue::copy() const +{ + return new IdrefDeclaredValue(*this); +} + + +AttributeDefinition::AttributeDefinition(const StringC &name, + DeclaredValue *value) +: name_(name), declaredValue_(value), implicit_(0), all_(0) +{ +} + +void AttributeDefinition::setSpecified(Boolean implicit) +{ + (implicit ? implicit_ : all_) = 1; +} + +Boolean AttributeDefinition::isSpecified(Boolean &implicit) +{ + implicit = implicit_; + return implicit_ || all_; +} + +void AttributeDefinition::setOrigName(StringC &origName) +{ + if (&origName != NULL) + origName.swap(origName_); +} + +AttributeDefinition::~AttributeDefinition() +{ +} + +AttributeValue *AttributeDefinition::checkValue(AttributeValue *p, + AttributeContext &) const +{ + return p; +} + +Boolean AttributeDefinition::missingValueWouldMatch(const Text &, + const AttributeContext &) const +{ + return 0; +} + +const AttributeValue * +AttributeDefinition::defaultValue(const AttributeValue *) const +{ + return 0; +} + +void AttributeDefinition::getDesc(AttributeDefinitionDesc &desc) const +{ + desc.allowedValues.clear(); + desc.defaultValue.clear(); + desc.currentIndex = 0; + buildDesc(desc); + declaredValue_->buildDesc(desc); +} + +Boolean AttributeDefinition::isConref() const +{ + return 0; +} + +Boolean AttributeDefinition::isCurrent() const +{ + return 0; +} + +Boolean AttributeDefinition::isFixed() const +{ + return 0; +} + +RequiredAttributeDefinition::RequiredAttributeDefinition(const StringC &name, + DeclaredValue *value) +: AttributeDefinition(name, value) +{ +} + +ConstPtr +RequiredAttributeDefinition::makeMissingValue(AttributeContext &context) const +{ + if (context.validate()) + context.message(ParserMessages::requiredAttributeMissing, + StringMessageArg(name())); + return 0; +} + +void RequiredAttributeDefinition::buildDesc(AttributeDefinitionDesc &desc) const +{ + desc.defaultValueType = AttributeDefinitionDesc::required; +} + +AttributeDefinition *RequiredAttributeDefinition::copy() const +{ + return new RequiredAttributeDefinition(*this); +} + +CurrentAttributeDefinition::CurrentAttributeDefinition(const StringC &name, DeclaredValue *value, size_t index) +: AttributeDefinition(name, value), currentIndex_(index) +{ +} + +ConstPtr +CurrentAttributeDefinition::makeMissingValue(AttributeContext &context) const +{ + if (context.mayDefaultAttribute()) { + ConstPtr currentValue + = context.getCurrentAttribute(currentIndex_); + if (currentValue.isNull() && context.validate()) + context.message(ParserMessages::currentAttributeMissing, + StringMessageArg(name())); + return currentValue; + } + if (context.validate()) + context.message(ParserMessages::attributeMissing, + StringMessageArg(name())); + return 0; +} + +Boolean CurrentAttributeDefinition::missingValueWouldMatch(const Text &text, + const AttributeContext &context) const +{ + if (!context.mayDefaultAttribute()) + return 0; + ConstPtr currentValue + = context.getCurrentAttribute(currentIndex_); + if (currentValue.isNull()) + return 0; + return text.fixedEqual(*currentValue->text()); +} + +AttributeValue * +CurrentAttributeDefinition::checkValue(AttributeValue *value, + AttributeContext &context) const +{ + context.noteCurrentAttribute(currentIndex_, value); + return value; +} + +void CurrentAttributeDefinition::buildDesc(AttributeDefinitionDesc &desc) const +{ + desc.defaultValueType = AttributeDefinitionDesc::current; + desc.currentIndex = currentIndex_; +} + +AttributeDefinition *CurrentAttributeDefinition::copy() const +{ + return new CurrentAttributeDefinition(*this); +} + +Boolean CurrentAttributeDefinition::isCurrent() const +{ + return 1; +} + +ImpliedAttributeDefinition::ImpliedAttributeDefinition(const StringC &name, + DeclaredValue *value) +: AttributeDefinition(name, value) +{ +} + +ConstPtr +ImpliedAttributeDefinition::makeMissingValue(AttributeContext &context) const +{ + return context.makeImpliedAttributeValue(); +} + +void ImpliedAttributeDefinition::buildDesc(AttributeDefinitionDesc &desc) const +{ + desc.defaultValueType = AttributeDefinitionDesc::implied; +} + +AttributeDefinition *ImpliedAttributeDefinition::copy() const +{ + return new ImpliedAttributeDefinition(*this); +} + +const AttributeValue * +ImpliedAttributeDefinition::defaultValue(const AttributeValue *impliedValue) + const +{ + return impliedValue; +} + +ConrefAttributeDefinition::ConrefAttributeDefinition(const StringC &name, + DeclaredValue *value) +: ImpliedAttributeDefinition(name, value) +{ +} + +Boolean ConrefAttributeDefinition::isConref() const +{ + return 1; +} + +void ConrefAttributeDefinition::buildDesc(AttributeDefinitionDesc &desc) const +{ + desc.defaultValueType = AttributeDefinitionDesc::conref; +} + +AttributeDefinition *ConrefAttributeDefinition::copy() const +{ + return new ConrefAttributeDefinition(*this); +} + +DefaultAttributeDefinition::DefaultAttributeDefinition(const StringC &name, + DeclaredValue *declaredValue, + AttributeValue *defaultValue) +: AttributeDefinition(name, declaredValue), + value_(defaultValue) +{ +} + +ConstPtr +DefaultAttributeDefinition::makeMissingValue(AttributeContext &context) const +{ + if (context.mayDefaultAttribute()) + return value_; + if (context.validate()) + context.message(ParserMessages::attributeMissing, + StringMessageArg(name())); + return 0; +} + +Boolean DefaultAttributeDefinition::missingValueWouldMatch(const Text &text, + const AttributeContext &context) const +{ + return context.mayDefaultAttribute() && text.fixedEqual(*value_->text()); +} + +void DefaultAttributeDefinition::buildDesc(AttributeDefinitionDesc &desc) const +{ + desc.defaultValueType = AttributeDefinitionDesc::defaulted; + desc.defaultValue = value_; +} + +AttributeDefinition *DefaultAttributeDefinition::copy() const +{ + return new DefaultAttributeDefinition(*this); +} + +FixedAttributeDefinition:: FixedAttributeDefinition(const StringC &name, + DeclaredValue *declaredValue, + AttributeValue *defaultValue) +: DefaultAttributeDefinition(name, declaredValue, defaultValue) +{ +} + +Boolean FixedAttributeDefinition::isFixed() const +{ + return 1; +} + +AttributeValue *FixedAttributeDefinition::checkValue(AttributeValue *value, + AttributeContext &context) + const +{ + const AttributeValue *fixedValue + = DefaultAttributeDefinition::defaultValue(0); + if (value && fixedValue && context.validate()) { + const Text *text; + const StringC *str; + const Text *fixedText; + const StringC *fixedStr; + switch (value->info(text, str)) { + case AttributeValue::implied: + CANNOT_HAPPEN(); + case AttributeValue::cdata: + if (fixedValue->info(fixedText, fixedStr) == AttributeValue::cdata) { + if (!text->fixedEqual(*fixedText)) + context.message(ParserMessages::notFixedValue, StringMessageArg(name())); + } + break; + case AttributeValue::tokenized: + if (fixedValue->info(fixedText, fixedStr) == AttributeValue::tokenized) { + if (*str != *fixedStr) + context.message(ParserMessages::notFixedValue, StringMessageArg(name())); + } + break; + } + } + return value; +} + +void FixedAttributeDefinition::buildDesc(AttributeDefinitionDesc &desc) const +{ + // get the fixed value + DefaultAttributeDefinition::buildDesc(desc); + desc.defaultValueType = AttributeDefinitionDesc::fixed; +} + +AttributeDefinition *FixedAttributeDefinition::copy() const +{ + return new FixedAttributeDefinition(*this); +} + +AttributeDefinitionList +::AttributeDefinitionList(Vector > &vec, + size_t index, + Boolean anyCurrent, + size_t idIndex, + size_t notationIndex) +: index_(index), anyCurrent_(anyCurrent), idIndex_(idIndex), + notationIndex_(notationIndex) +{ + defs_.swap(vec); +} + +AttributeDefinitionList:: AttributeDefinitionList(const ConstPtr &def) +: prev_(def), index_(size_t(-1)) +{ + if (def.isNull()) { + anyCurrent_ = 0; + notationIndex_ = size_t(-1); + idIndex_ = size_t(-1); + } + else { + anyCurrent_ = def->anyCurrent_; + notationIndex_ = def->notationIndex_; + idIndex_ = def->idIndex_; + defs_ = def->defs_; + } +} + +AttributeDefinitionList::~AttributeDefinitionList() {} + +Boolean AttributeDefinitionList::tokenIndex(const StringC &token, unsigned &index) const +{ + for (size_t i = 0; i < defs_.size(); i++) + if (defs_[i]->containsToken(token)) { + index = i; + return 1; + } + return 0; +} + +Boolean AttributeDefinitionList::tokenIndexUnique(const StringC &token, unsigned i) const +{ + for (++i; i < defs_.size(); i++) + if (defs_[i]->containsToken(token)) + return 0; + return 1; +} + + +Boolean AttributeDefinitionList::attributeIndex(const StringC &name, + unsigned &index) const +{ + for (size_t i = 0; i < defs_.size(); i++) + if (defs_[i]->name() == name) { + index = i; + return 1; + } + return 0; +} + +void AttributeDefinitionList::append(AttributeDefinition *def) +{ + if (def->isId() && idIndex_ == size_t(-1)) + idIndex_ = defs_.size(); + if (def->isNotation() && notationIndex_ == size_t(-1)) + notationIndex_ = defs_.size(); + if (def->isCurrent()) + anyCurrent_ = 1; + defs_.resize(defs_.size() + 1); + defs_.back() = def; +} + +AttributeSemantics::AttributeSemantics() +{ +} + +AttributeSemantics::~AttributeSemantics() +{ +} + +size_t AttributeSemantics::nEntities() const +{ + return 0; +} + +ConstPtr AttributeSemantics::entity(size_t) const +{ + return 0; +} + +ConstPtr AttributeSemantics::notation() const +{ + return 0; +} + + +NotationAttributeSemantics::NotationAttributeSemantics(const ConstPtr ¬ation) +: notation_(notation) +{ +} + +ConstPtr NotationAttributeSemantics::notation() const +{ + return notation_; +} + +AttributeSemantics *NotationAttributeSemantics::copy() const +{ + return new NotationAttributeSemantics(*this); +} + +EntityAttributeSemantics::EntityAttributeSemantics(Vector > &entity) +{ + entity.swap(entity_); +} + +size_t EntityAttributeSemantics::nEntities() const +{ + return entity_.size(); +} + +ConstPtr EntityAttributeSemantics::entity(size_t i) const +{ + return entity_[i]; +} + +AttributeSemantics *EntityAttributeSemantics::copy() const +{ + return new EntityAttributeSemantics(*this); +} + +AttributeValue::AttributeValue() +{ +} + +AttributeValue::~AttributeValue() +{ +} + +AttributeSemantics *AttributeValue::makeSemantics(const DeclaredValue *, + AttributeContext &, + const StringC &, + unsigned &, + unsigned &) const +{ + return 0; +} + +const Text *AttributeValue::text() const +{ + return 0; +} + +Boolean AttributeValue::recoverUnquoted(const StringC &, const Location &, + AttributeContext &, const StringC &) +{ + return 0; +} + +ImpliedAttributeValue::ImpliedAttributeValue() +{ +} + +AttributeValue::Type ImpliedAttributeValue::info(const Text *&, + const StringC *&) const +{ + return implied; +} + +TokenizedAttributeValue::TokenizedAttributeValue(Text &text, + const Vector &spaceIndex) +: spaceIndex_(spaceIndex) +{ + text.swap(text_); +} + +AttributeValue::Type TokenizedAttributeValue::info(const Text *&, + const StringC *&string) const +{ + string = &text_.string(); + return tokenized; +} + +const Text *TokenizedAttributeValue::text() const +{ + return &text_; +} + +AttributeSemantics * +TokenizedAttributeValue::makeSemantics(const DeclaredValue *value, + AttributeContext &context, + const StringC &name, + unsigned &nIdrefs, + unsigned &nEntityNames) const +{ + if (text_.size() == 0) + return 0; + return value->makeSemantics(*this, context, name, nIdrefs, nEntityNames); +} + +CdataAttributeValue::CdataAttributeValue(Text &text) +{ + text.swap(text_); +} + +AttributeValue::Type CdataAttributeValue::info(const Text *&text, + const StringC *&) const +{ + text = &text_; + return cdata; +} + +const Text *CdataAttributeValue::text() const +{ + return &text_; +} + +Boolean CdataAttributeValue::recoverUnquoted(const StringC &str, + const Location &strLoc, + AttributeContext &context, + const StringC &) +{ + TextIter iter(text_); + TextItem::Type type; + const Char *s; + size_t len; + const Location *loc; + if (iter.next(type, s, len, loc) + && type == TextItem::data + && len == text_.size() + && loc->origin().pointer() == strLoc.origin().pointer() + && loc->index() + len == strLoc.index() + && !iter.next(type, s, len, loc)) { + text_.addChars(str, strLoc); + context.Messenger::setNextLocation(strLoc); + context.message(ParserMessages::unquotedAttributeValue); + return 1; + } + return 0; +} + +const Notation *CdataAttributeValue::notation() const +{ + return 0; +} + +DataAttributeValue::DataAttributeValue(Text &text, + const ConstPtr &nt, + const AttributeList &attributes) +: CdataAttributeValue(text), notation_(nt), attributes_(&attributes) +{ +} + +const AttributeList &DataAttributeValue::attributes() const +{ + return *attributes_; +} + +const Notation *DataAttributeValue::notation() const +{ + return notation_.pointer(); +} + +Attribute::Attribute() +: specIndexPlus_(0) +{ +} + +Attribute::Attribute(const Attribute& x) + : specIndexPlus_(x.specIndexPlus_), + value_(x.value_), + semantics_(x.semantics_) +{ +} + +Attribute::~Attribute() +{ +} + +Attribute& Attribute::operator=(const Attribute& x) +{ + if (this != &x) { + specIndexPlus_ = x.specIndexPlus_; + value_ = x.value_; + semantics_ = x.semantics_; + } + return *this; +} + +void Attribute::clear() +{ + specIndexPlus_ = 0; + value_.clear(); + semantics_.clear(); +} + +AttributeList::AttributeList(const ConstPtr &def) +: def_(def), vec_(def.isNull() ? 0 : def->size()), nSpec_(0), conref_(0), + nIdrefs_(0), nEntityNames_(0) +{ +} + +AttributeList::AttributeList() +: nSpec_(0), conref_(0) +{ +} + +void AttributeList::init(const ConstPtr &def) +{ + def_ = def; + nSpec_ = 0; + conref_ = 0; + nIdrefs_ = 0; + nEntityNames_ = 0; + if (def_.isNull()) + vec_.resize(0); + else { + size_t newLength = def_->size(); + size_t clearLim = vec_.size(); + if (clearLim > newLength) + clearLim = newLength; + vec_.resize(newLength); + for (size_t i = 0; i < clearLim; i++) + vec_[i].clear(); + } +} + +void AttributeList::changeDef(const ConstPtr &def) +{ + vec_.resize(def.isNull() ? 0 : def->size()); + def_ = def; +} + +void AttributeList::swap(AttributeList &to) +{ + vec_.swap(to.vec_); + def_.swap(to.def_); + { + unsigned tem = to.nIdrefs_; + to.nIdrefs_ = nIdrefs_; + nIdrefs_ = tem; + } + { + unsigned tem = to.nEntityNames_; + to.nEntityNames_ = nEntityNames_; + nEntityNames_ = tem; + } + { + size_t tem = to.nSpec_; + to.nSpec_ = nSpec_; + nSpec_ = tem; + } + { + PackedBoolean tem = to.conref_; + to.conref_ = conref_; + conref_ = tem; + } +} + +void AttributeList::finish(AttributeContext &context) +{ + for (size_t i = 0; i < vec_.size(); i++) + if (!vec_[i].specified()) { + ConstPtr value + = def(i)->makeMissingValue(context); + if (!conref_ || def_->notationIndex() != i) { + vec_[i].setValue(value); + if (!value.isNull()) + vec_[i].setSemantics(def(i)->makeSemantics(value.pointer(), + context, + nIdrefs_, + nEntityNames_)); + } + } + const Syntax &syntax = context.attributeSyntax(); + if (nIdrefs_ > syntax.grpcnt()) + context.message(ParserMessages::idrefGrpcnt, + NumberMessageArg(syntax.grpcnt())); + if (nEntityNames_ > syntax.grpcnt()) + context.message(ParserMessages::entityNameGrpcnt, + NumberMessageArg(syntax.grpcnt())); + if (context.validate() + && conref_ + && def_->notationIndex() != size_t(-1) + && specified(def_->notationIndex())) + context.message(ParserMessages::conrefNotation); +} + +void AttributeList::setSpec(unsigned i, AttributeContext &context) +{ + if (vec_[i].specified()) + context.message(ParserMessages::duplicateAttributeSpec, + StringMessageArg(def(i)->name())); + else + vec_[i].setSpec(nSpec_++); +} + +void AttributeList::noteInvalidSpec() +{ + // This is needed for error recovery. + // We don't want nSpec_ to be > 0, if there is no attribute definition. + if (nSpec_) + nSpec_++; +} + +Boolean AttributeList::setValue(unsigned i, Text &text, + AttributeContext &context, + unsigned &specLength) +{ + AttributeValue *value = def(i)->makeValue(text, context, specLength); + if (def(i)->isConref()) + conref_ = 1; + vec_[i].setValue(value); + if (value) + vec_[i].setSemantics(def(i)->makeSemantics(value, context, + nIdrefs_, nEntityNames_)); + else if (AttributeValue::handleAsUnterminated(text, context)) + return 0; + return 1; +} + +void AttributeList::setValueToken(unsigned i, Text &text, + AttributeContext &context, + unsigned &specLength) +{ + AttributeValue *value = def(i)->makeValueFromToken(text, context, + specLength); + if (def(i)->isConref()) + conref_ = 1; + vec_[i].setValue(value); + if (value) + vec_[i].setSemantics(def(i)->makeSemantics(value, context, + nIdrefs_, nEntityNames_)); +} + +const StringC *AttributeList::getId() const +{ + // Check for no attributes + if (def_.isNull()) + return 0; + // Check for no ID declared + size_t i = def_->idIndex(); + if (i == size_t(-1)) + return 0; + // Check for invalid value + const AttributeValue *v = value(i); + if (!v) + return 0; + // Check for implied value + const Text *t = v->text(); + if (!t) + return 0; + return &t->string(); +} + +Boolean AttributeList::recoverUnquoted(const StringC &str, + const Location &strLoc, + AttributeContext &context) +{ + if (nSpec_ > 0) { + for (size_t i = 0; i < vec_.size(); i++) + if (vec_[i].specified() && vec_[i].specIndex() == nSpec_ - 1) { + const AttributeValue *val = vec_[i].value(); + if (val) + // I wish I could avoid casting away const here. + return ((AttributeValue *)val)->recoverUnquoted(str, strLoc, context, + name(i)); + break; + } + return 1; + } + return 0; +} + +Boolean AttributeList::handleAsUnterminated(AttributeContext &context) +{ + if (nSpec_ > 0) { + for (size_t i = 0; i < vec_.size(); i++) { + if (vec_[i].specified() && vec_[i].specIndex() == nSpec_ - 1) { + const AttributeValue *val = vec_[i].value(); + const Text *ptr; + if (val && (ptr = val->text()) != 0 + && AttributeValue::handleAsUnterminated(*ptr, context)) + return 1; + break; + } + } + } + return 0; +} + +// This tries to guess this attribute value looks like if it had +// a missing ending quote. + +Boolean AttributeValue::handleAsUnterminated(const Text &text, + AttributeContext &context) +{ + TextIter iter(text); + const Char *lastStr = 0; + size_t lastLen; + Location startLoc; + const Location *loc; + TextItem::Type type; + const Char *str; + size_t len; + while (iter.next(type, str, len, loc)) { + if (startLoc.origin().isNull() && !loc->origin().isNull()) + startLoc = *loc; + switch (type) { + case TextItem::data: + if (len != 1 || *str != context.attributeSyntax().space()) { + lastStr = str; + lastLen = len; + } + break; + case TextItem::endDelim: + case TextItem::endDelimA: + case TextItem::ignore: + break; + default: + lastStr = 0; + break; + } + } + if (lastStr) { + while (lastLen > 0 + && lastStr[lastLen - 1] == context.attributeSyntax().space()) + lastLen--; + const StringC &vi = context.attributeSyntax().delimGeneral(Syntax::dVI); + if (lastLen >= vi.size() + && (vi + == StringC(lastStr + (lastLen - vi.size()), vi.size()))) { + context.Messenger::setNextLocation(startLoc); + context.message(ParserMessages::literalClosingDelimiter); + return 1; + } + } + return 0; +} + +AttributeContext::AttributeContext() +: mayDefaultAttribute_(0), validate_(1) +{ +} + +AttributeContext::~AttributeContext() +{ +} + +Boolean AttributeContext::defineId(const StringC &, const Location &, + Location &) +{ + return 1; +} + +void AttributeContext::noteIdref(const StringC &, const Location &) +{ +} + +void AttributeContext::noteCurrentAttribute(size_t, AttributeValue *) +{ +} + +ConstPtr AttributeContext::getCurrentAttribute(size_t) const +{ + return 0; +} + +ConstPtr AttributeContext::getAttributeEntity(const StringC &, + const Location &) +{ + return 0; +} + +ConstPtr AttributeContext::getAttributeNotation(const StringC &, + const Location &) +{ + return 0; +} + +ConstPtr AttributeContext::makeImpliedAttributeValue() +{ + if (impliedAttributeValue_.isNull()) + impliedAttributeValue_ = new ImpliedAttributeValue; + return impliedAttributeValue_; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Big5CodingSystem.cxx b/lib/Big5CodingSystem.cxx new file mode 100644 index 0000000..3f36c1b --- /dev/null +++ b/lib/Big5CodingSystem.cxx @@ -0,0 +1,85 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MULTI_BYTE + +#include "Big5CodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Big5Decoder : public Decoder { +public: + Big5Decoder() { } + size_t decode(Char *, const char *, size_t, const char **); +private: +}; + +class Big5Encoder : public Encoder { +public: + Big5Encoder() { } + void output(const Char *, size_t, OutputByteStream *); +}; + +Decoder *Big5CodingSystem::makeDecoder() const +{ + return new Big5Decoder; +} + +Encoder *Big5CodingSystem::makeEncoder() const +{ + return new Big5Encoder; +} + +size_t Big5Decoder::decode(Char *to, const char *s, + size_t slen, const char **rest) +{ + Char *start = to; + const unsigned char *us = (const unsigned char *)s; + while (slen > 0) { + if (!(*us & 0x80)) { + *to++ = *us++; + slen--; + } + else { + if (slen < 2) + break; + slen -= 2; + unsigned short n = *us++ << 8; + n |= *us++; + *to++ = n; + } + } + *rest = (const char *)us; + return to - start; +} + +void Big5Encoder::output(const Char *s, size_t n, OutputByteStream *sb) +{ + for (; n > 0; s++, n--) { + Char c = *s; + if (c < 0x80) + sb->sputc((unsigned char)c); + else if (c & 0x8000) { + sb->sputc((unsigned char)(c >> 8)); + sb->sputc((unsigned char)(c & 0xff)); + } + else + handleUnencodable(c, sb); + } +} + +#ifdef SP_NAMESPACE +} +#endif + +#else /* not SP_MULTI_BYTE */ + +#ifndef __GNUG__ +static char non_empty_translation_unit; // sigh +#endif + +#endif /* not SP_MULTI_BYTE */ diff --git a/lib/CatalogEntry.h b/lib/CatalogEntry.h new file mode 100644 index 0000000..2dc71f5 --- /dev/null +++ b/lib/CatalogEntry.h @@ -0,0 +1,27 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef CatalogEntry_INCLUDED +#define CatalogEntry_INCLUDED 1 + +#include "Location.h" +#include "StringC.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct CatalogEntry { + StringC to; + Location loc; + size_t catalogNumber; + size_t baseNumber; + size_t serial; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not CatalogEntry_INCLUDED */ diff --git a/lib/CatalogMessages.h b/lib/CatalogMessages.h new file mode 100644 index 0000000..c41cec2 --- /dev/null +++ b/lib/CatalogMessages.h @@ -0,0 +1,132 @@ +// This file was automatically generated from CatalogMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct CatalogMessages { + // 2100 + static const MessageType0 nameExpected; + // 2101 + static const MessageType0 literalExpected; + // 2102 + static const MessageType0 nameOrLiteralExpected; + // 2103 + static const MessageType0 nulChar; + // 2104 + static const MessageType0 minimumData; + // 2105 + static const MessageType0 eofInComment; + // 2106 + static const MessageType0 eofInLiteral; + // 2107 + static const MessageType0 overrideYesOrNo; + // 2108 + static const MessageType0 inLoop; + // 2109 + static const MessageType0 systemShouldQuote; + // 2110 + static const MessageType1 noDocumentEntry; + // 2111 + static const MessageType2 noPublicEntry; +}; +const MessageType0 CatalogMessages::nameExpected( +MessageType::error, +&libModule, +2100 +#ifndef SP_NO_MESSAGE_TEXT +,"name expected" +#endif +); +const MessageType0 CatalogMessages::literalExpected( +MessageType::error, +&libModule, +2101 +#ifndef SP_NO_MESSAGE_TEXT +,"literal expected" +#endif +); +const MessageType0 CatalogMessages::nameOrLiteralExpected( +MessageType::error, +&libModule, +2102 +#ifndef SP_NO_MESSAGE_TEXT +,"name or literal expected" +#endif +); +const MessageType0 CatalogMessages::nulChar( +MessageType::error, +&libModule, +2103 +#ifndef SP_NO_MESSAGE_TEXT +,"nul character" +#endif +); +const MessageType0 CatalogMessages::minimumData( +MessageType::error, +&libModule, +2104 +#ifndef SP_NO_MESSAGE_TEXT +,"not a minimum data character" +#endif +); +const MessageType0 CatalogMessages::eofInComment( +MessageType::error, +&libModule, +2105 +#ifndef SP_NO_MESSAGE_TEXT +,"end of entity in comment" +#endif +); +const MessageType0 CatalogMessages::eofInLiteral( +MessageType::error, +&libModule, +2106 +#ifndef SP_NO_MESSAGE_TEXT +,"end of entity in literal" +#endif +); +const MessageType0 CatalogMessages::overrideYesOrNo( +MessageType::error, +&libModule, +2107 +#ifndef SP_NO_MESSAGE_TEXT +,"OVERRIDE requires argument of YES or NO" +#endif +); +const MessageType0 CatalogMessages::inLoop( +MessageType::error, +&libModule, +2108 +#ifndef SP_NO_MESSAGE_TEXT +,"CATALOG entries cause loop" +#endif +); +const MessageType0 CatalogMessages::systemShouldQuote( +MessageType::warning, +&libModule, +2109 +#ifndef SP_NO_MESSAGE_TEXT +,"second argument for SYSTEM entry should be quoted to avoid ambiguity" +#endif +); +const MessageType1 CatalogMessages::noDocumentEntry( +MessageType::error, +&libModule, +2110 +#ifndef SP_NO_MESSAGE_TEXT +,"no DOCUMENT entry in catalog %1" +#endif +); +const MessageType2 CatalogMessages::noPublicEntry( +MessageType::error, +&libModule, +2111 +#ifndef SP_NO_MESSAGE_TEXT +,"no entry for public identifier %1 in catalog %2" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/CatalogMessages.msg b/lib/CatalogMessages.msg new file mode 100644 index 0000000..6469f6a --- /dev/null +++ b/lib/CatalogMessages.msg @@ -0,0 +1,16 @@ +# Copyright (c) 1994, 1995 James Clark +# See the file COPYING for copying permission. +# Catalog message definitions +=2100 +E0+nameExpected++name expected +E0+literalExpected++literal expected +E0+nameOrLiteralExpected++name or literal expected +E0+nulChar++nul character +E0+minimumData++not a minimum data character +E0+eofInComment++end of entity in comment +E0+eofInLiteral++end of entity in literal +E0+overrideYesOrNo++OVERRIDE requires argument of YES or NO +E0+inLoop++CATALOG entries cause loop +W0+systemShouldQuote++second argument for SYSTEM entry should be quoted to avoid ambiguity +E1+noDocumentEntry++no DOCUMENT entry in catalog %1 +E2+noPublicEntry++no entry for public identifier %1 in catalog %2 diff --git a/lib/CatalogMessages.rc b/lib/CatalogMessages.rc new file mode 100644 index 0000000..2c76ad1 --- /dev/null +++ b/lib/CatalogMessages.rc @@ -0,0 +1,15 @@ +STRINGTABLE +BEGIN + 2100, "name expected" + 2101, "literal expected" + 2102, "name or literal expected" + 2103, "nul character" + 2104, "not a minimum data character" + 2105, "end of entity in comment" + 2106, "end of entity in literal" + 2107, "OVERRIDE requires argument of YES or NO" + 2108, "CATALOG entries cause loop" + 2109, "second argument for SYSTEM entry should be quoted to avoid ambiguity" + 2110, "no DOCUMENT entry in catalog %1" + 2111, "no entry for public identifier %1 in catalog %2" +END diff --git a/lib/CharsetDecl.cxx b/lib/CharsetDecl.cxx new file mode 100644 index 0000000..31f6741 --- /dev/null +++ b/lib/CharsetDecl.cxx @@ -0,0 +1,269 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "CharsetDecl.h" +#include "macros.h" +#include "ISet.h" +#include "constant.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +CharsetDeclRange::CharsetDeclRange() +{ +} + +CharsetDeclRange::~CharsetDeclRange() +{ +} + +CharsetDeclRange::CharsetDeclRange(WideChar descMin, Number count, + WideChar baseMin) +: descMin_(descMin), + count_(count), + type_(number), + baseMin_(baseMin) +{ +} + +CharsetDeclRange::CharsetDeclRange(WideChar descMin, Number count) +: descMin_(descMin), + count_(count), + type_(unused) + +{ +} + +CharsetDeclRange::CharsetDeclRange(WideChar descMin, Number count, + const StringC &str) +: descMin_(descMin), + count_(count), + type_(string), + str_(str) +{ +} + +void CharsetDeclRange::rangeDeclared(WideChar min, Number count, + ISet &declared) const +{ + if (count > 0 && min + count > descMin_ && min < descMin_ + count_) { + WideChar commMin = (descMin_ > min) ? descMin_ : min; + WideChar commMax = min + ((min + count < descMin_ + count_ + ? count + : descMin_ + count_ - min) - 1); + ASSERT(commMin <= commMax); + declared.addRange(commMin, commMax); + } +} + +void CharsetDeclRange::usedSet(ISet &set) const +{ + if (type_ != unused && count_ > 0 && descMin_ <= charMax) { + Char max; + if (charMax - descMin_ < count_ - 1) + max = charMax; + else + max = Char(descMin_ + (count_ - 1)); + set.addRange(Char(descMin_), max); + } +} + +void CharsetDeclRange::stringToChar(const StringC &str, ISet &to) + const +{ + if (type_ == string && str_ == str && count_ > 0) + to.addRange(descMin_, descMin_ + (count_ - 1)); +} + +void CharsetDeclRange::numberToChar(Number n, ISet &to, + Number &count) + const +{ + if (type_ == number && n >= baseMin_ && n - baseMin_ < count_) { + Number thisCount = count_ - (n - baseMin_); + if (to.isEmpty() || thisCount < count) + count = thisCount; + to.add(descMin_ + (n - baseMin_)); + } +} + +Boolean CharsetDeclRange::getCharInfo(WideChar fromChar, + CharsetDeclRange::Type &type, + Number &n, + StringC &str, + Number &count) const +{ + if (fromChar >= descMin_ && fromChar - descMin_ < count_) { + type = type_; + if (type == number) + n = baseMin_ + (fromChar - descMin_); + else if (type == string) + str = str_; + count = count_ - (fromChar - descMin_); + return 1; + } + else + return 0; +} + +CharsetDeclSection::CharsetDeclSection() +{ +} + +void CharsetDeclSection::setPublicId(const PublicId &id) +{ + baseset_ = id; +} + +void CharsetDeclSection::addRange(const CharsetDeclRange &range) +{ + ranges_.push_back(range); +} + +void CharsetDeclSection::rangeDeclared(WideChar min, Number count, + ISet &declared) const +{ + for (size_t i = 0; i < ranges_.size(); i++) + ranges_[i].rangeDeclared(min, count, declared); +} + +void CharsetDeclSection::usedSet(ISet &set) const +{ + for (size_t i = 0; i < ranges_.size(); i++) + ranges_[i].usedSet(set); +} + +void CharsetDeclSection::stringToChar(const StringC &str, ISet &to) + const +{ + for (size_t i = 0; i < ranges_.size(); i++) + ranges_[i].stringToChar(str, to); +} + +void CharsetDeclSection::numberToChar(const PublicId *id, Number n, + ISet &to, Number &count) const +{ + PublicId::OwnerType ownerType; + StringC seq1, seq2; + if (id->string() == baseset_.string() + // Assume that 2 ISO character sets are the same if + // their designating sequences are the same. + || (id->getOwnerType(ownerType) + && ownerType == PublicId::ISO + && baseset_.getOwnerType(ownerType) + && ownerType == PublicId::ISO + && id->getDesignatingSequence(seq1) + && baseset_.getDesignatingSequence(seq2) + && seq1 == seq2)) { + for (size_t i = 0; i < ranges_.size(); i++) + ranges_[i].numberToChar(n, to, count); + } +} + +Boolean CharsetDeclSection::getCharInfo(WideChar fromChar, + const PublicId *&id, + CharsetDeclRange::Type &type, + Number &n, + StringC &str, + Number &count) const +{ + for (size_t i = 0; i < ranges_.size(); i++) + if (ranges_[i].getCharInfo(fromChar, type, n, str, count)) { + id = &baseset_; + return 1; + } + return 0; +} + +CharsetDecl::CharsetDecl() +{ +} + +void CharsetDecl::addSection(const PublicId &id) +{ + sections_.resize(sections_.size() + 1); + sections_.back().setPublicId(id); +} + +void CharsetDecl::swap(CharsetDecl &to) +{ + sections_.swap(to.sections_); + declaredSet_.swap(to.declaredSet_); +} + +void CharsetDecl::clear() +{ + sections_.clear(); +} + +void CharsetDecl::addRange(WideChar min, Number count, WideChar baseMin) +{ + if (count > 0) + declaredSet_.addRange(min, min + (count - 1)); + CharsetDeclRange range(min, count, baseMin); + sections_.back().addRange(range); +} + +void CharsetDecl::addRange(WideChar min, Number count) +{ + if (count > 0) + declaredSet_.addRange(min, min + (count - 1)); + CharsetDeclRange range(min, count); + sections_.back().addRange(range); +} + +void CharsetDecl::addRange(WideChar min, Number count, const StringC &str) +{ + if (count > 0) + declaredSet_.addRange(min, min + (count - 1)); + CharsetDeclRange range(min, count, str); + sections_.back().addRange(range); +} + +void CharsetDecl::rangeDeclared(WideChar min, Number count, + ISet &declared) const +{ + for (size_t i = 0; i < sections_.size(); i++) + sections_[i].rangeDeclared(min, count, declared); +} + +void CharsetDecl::usedSet(ISet &set) const +{ + for (size_t i = 0; i < sections_.size(); i++) + sections_[i].usedSet(set); +} + +Boolean CharsetDecl::getCharInfo(WideChar fromChar, + const PublicId *&id, + CharsetDeclRange::Type &type, + Number &n, + StringC &str, + Number &count) const +{ + for (size_t i = 0; i < sections_.size(); i++) + if (sections_[i].getCharInfo(fromChar, id, type, n, str, count)) + return 1; + return 0; +} + +void CharsetDecl::stringToChar(const StringC &str, ISet &to) const +{ + for (size_t i = 0; i < sections_.size(); i++) + sections_[i].stringToChar(str, to); +} + +void CharsetDecl::numberToChar(const PublicId *id, Number n, + ISet &to, Number &count) const +{ + for (size_t i = 0; i < sections_.size(); i++) + sections_[i].numberToChar(id, n, to, count); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/CharsetInfo.cxx b/lib/CharsetInfo.cxx new file mode 100644 index 0000000..c8c87a0 --- /dev/null +++ b/lib/CharsetInfo.cxx @@ -0,0 +1,138 @@ +// Copyright (c) 1994, 1997 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "CharsetInfo.h" +#include "ISet.h" +#include "constant.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +CharsetInfo::CharsetInfo(const UnivCharsetDesc &desc) +: desc_(desc) +{ + // FIXME remove mappings from desc for characters greater charMax + init(); +} + +CharsetInfo::CharsetInfo() +{ + inverse_.setAll(unsigned(-1)); +} + +void CharsetInfo::set(const UnivCharsetDesc &desc) +{ + desc_ = desc; + init(); +} + +void CharsetInfo::init() +{ + inverse_.setAll(Unsigned32(-1)); + + UnivCharsetDescIter iter(desc_); + + WideChar descMin, descMax; + UnivChar univMin; + while (iter.next(descMin, descMax, univMin)) { + if (univMin <= charMax) { + Char univMax; + if (charMax - univMin < descMax - descMin) + univMax = charMax; + else + univMax = univMin + (descMax - descMin); + Unsigned32 diff + = ((descMin - univMin) & ((Unsigned32(1) << 31) - 1)); + for (;;) { + Char max; + Unsigned32 n = inverse_.getRange(univMin, max); + if (max > univMax) + max = univMax; + if (n == Unsigned32(-1)) + inverse_.setRange(univMin, max, diff); + else if (n != Unsigned32(-2)) + inverse_.setRange(univMin, max, Unsigned32(-2)); + if (max == univMax) + break; + univMin = max + 1; + } + } + } + // These are the characters that the ANSI C + // standard guarantees will be in the basic execution + // character set. + static char execChars[] = + "\t\n\r " + "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "abcdefghijklmnopqrstuvwxyz" + "0123456789" + "!\"#%&'()*+,-./:" + ";<=>?[\\]^_{|}~"; + // These are the corresponding ISO 646 codes. + static char univCodes[] = { + 9, 10, 13, 32, + 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, + 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, + 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, + 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, + 33, 34, 35, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 58, + 59, 60, 61, 62, 63, 91, 92, 93, 94, 95, 123, 124, 125, 126, + }; + for (size_t i = 0; execChars[i] != '\0'; i++) { + WideChar c; + ISet set; + if (univToDesc(univCodes[i], c, set) > 0 && c <= charMax) + execToDesc_[(unsigned char)execChars[i]] = Char(c); + } +} + +void CharsetInfo::getDescSet(ISet &set) const +{ + UnivCharsetDescIter iter(desc_); + WideChar descMin, descMax; + UnivChar univMin; + while (iter.next(descMin, descMax, univMin)) { + if (descMin > charMax) + break; + if (descMax > charMax) + descMax = charMax; + set.addRange(Char(descMin), Char(descMax)); + } +} + +int CharsetInfo::digitWeight(Char c) const +{ + for (int i = 0; i < 10; i++) + if (c == execToDesc('0' + i)) + return i; + return -1; +} + +int CharsetInfo::hexDigitWeight(Char c) const +{ + for (int i = 0; i < 10; i++) + if (c == execToDesc('0' + i)) + return i; + for (int i = 0; i < 6; i++) + if (c == execToDesc('a' + i) || c == execToDesc('A' + i)) + return i + 10; + return -1; +} + +StringC CharsetInfo::execToDesc(const char *s) const +{ + StringC result; + while (*s != '\0') + result += execToDesc(*s++); + return result; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/CharsetRegistry.cxx b/lib/CharsetRegistry.cxx new file mode 100644 index 0000000..69021e9 --- /dev/null +++ b/lib/CharsetRegistry.cxx @@ -0,0 +1,288 @@ +// Copyright (c) 1994, 1997 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "CharsetRegistry.h" +#include "CharsetInfo.h" +#include "StringC.h" +#include "types.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +CharsetRegistry::Iter::~Iter() +{ +} + +class CharsetRegistryRangeIter : public CharsetRegistry::Iter { +public: + CharsetRegistryRangeIter(const UnivCharsetDesc::Range *p, size_t n) + : p_(p), n_(n) { } + Boolean next(WideChar &min, WideChar &max, UnivChar &univ) { + if (n_) { + min = p_->descMin; + max = p_->descMin + (p_->count - 1); + univ = p_->univMin; + p_++; + n_--; + return 1; + } + else + return 0; + } +private: + const UnivCharsetDesc::Range *p_; + size_t n_; +}; + +class CharsetRegistryDescIter : public CharsetRegistry::Iter { +public: + CharsetRegistryDescIter(const unsigned short *p) + : p_(p + 2), n_(p[0]), c_(p[1]) { } + Boolean next(WideChar &min, WideChar &max, UnivChar &univ) { + if (n_ == 0) { + n_ = *p_; + if (n_ == 0) + return 0; + p_++; + c_ = *p_++; + } + int i = 1; + for (; i < n_; i++) + if (p_[i] != p_[i - 1] + 1) + break; + min = c_; + max = min + (i - 1); + univ = p_[0]; + p_ += i; + c_ += i; + n_ -= i; + return 1; + } +private: + const unsigned short *p_; + size_t n_; + WideChar c_; +}; + +static struct { + const char *esc; + CharsetRegistry::ISORegistrationNumber number; +} escTable[] = { + { "\x1B\x25\x40", CharsetRegistry::ISO646_ASCII_G0 }, + { "\x1B\x28\x40", CharsetRegistry::ISO646_ASCII_G0 }, + { "\x1B\x28\x42", CharsetRegistry::ISO646_ASCII_G0 }, // ASCII + { "\x1B\x21\x40", CharsetRegistry::ISO646_C0 }, + { "\x1B\x2D\x41", CharsetRegistry::ISO8859_1 }, + { "\x1B\x2D\x42", CharsetRegistry::ISO8859_2 }, + { "\x1B\x2D\x43", CharsetRegistry::ISO8859_3 }, + { "\x1B\x2D\x44", CharsetRegistry::ISO8859_4 }, + { "\x1B\x2D\x4C", CharsetRegistry::ISO8859_5 }, + { "\x1B\x2D\x47", CharsetRegistry::ISO8859_6 }, + { "\x1B\x2D\x46", CharsetRegistry::ISO8859_7 }, + { "\x1B\x2D\x48", CharsetRegistry::ISO8859_8 }, + { "\x1B\x2D\x4D", CharsetRegistry::ISO8859_9 }, + { "\x1B\x28\x4A", CharsetRegistry::ISO646_JIS_G0 }, + { "\x1B\x28\x49", CharsetRegistry::JIS0201 }, + { "\x1B\x24\x42", CharsetRegistry::JIS0208 }, + { "\x1B\x26\x40\x1B\x24\x42", CharsetRegistry::JIS0208 }, + { "\x1B\x24\x28\x44", CharsetRegistry::JIS0212 }, + { "\x1B\x24\x41", CharsetRegistry::GB2312 }, + { "\x1B\x24\x28\x43", CharsetRegistry::KSC5601 }, + { "\x1B\x25\x2F\x40", CharsetRegistry::ISO10646_UCS2 }, + { "\x1B\x25\x2F\x41", CharsetRegistry::ISO10646_UCS4 }, + { "\x1B\x25\x2F\x43", CharsetRegistry::ISO10646_UCS2 }, + { "\x1B\x25\x2F\x44", CharsetRegistry::ISO10646_UCS4 }, + { "\x1B\x25\x2F\x45", CharsetRegistry::ISO10646_UCS2 }, + { "\x1B\x25\x2F\x46", CharsetRegistry::ISO10646_UCS4 }, +}; + +static const UnivCharsetDesc::Range iso646_ascii[] = { + { 0, 128, 0 }, +}; + +static const UnivCharsetDesc::Range iso646_C0[] = { + { 0, 32, 0 }, + { 127, 1, 127 }, +}; + +static const UnivCharsetDesc::Range iso6429[] = { + { 0, 32, 128 }, +}; + +static const UnivCharsetDesc::Range iso8859_1[] = { + { 32, 96, 160 }, +}; + +static const UnivCharsetDesc::Range iso10646_ucs2[] = { + { 0, 65536, 0 }, +}; + +static const UnivCharsetDesc::Range iso10646_ucs4[] = { + { 0, 0x80000000, 0 }, +}; + +static struct { + CharsetRegistry::ISORegistrationNumber number; + const UnivCharsetDesc::Range *ranges; + size_t nRanges; +} rangeTable[] = { + { CharsetRegistry::ISO646_ASCII_G0, iso646_ascii, SIZEOF(iso646_ascii) }, + { CharsetRegistry::ISO646_C0, iso646_C0, SIZEOF(iso646_C0) }, + { CharsetRegistry::ISO6429, iso6429, SIZEOF(iso6429) }, + { CharsetRegistry::ISO8859_1, iso8859_1, SIZEOF(iso8859_1) }, + { CharsetRegistry::ISO10646_UCS2, iso10646_ucs2, SIZEOF(iso10646_ucs2) }, + { CharsetRegistry::ISO10646_UCS4, iso10646_ucs4, SIZEOF(iso10646_ucs4) }, +}; + +static const unsigned short iso8859_2[] = { +#include "iso8859-2.h" +}; +static const unsigned short iso8859_3[] = { +#include "iso8859-3.h" +}; +static const unsigned short iso8859_4[] = { +#include "iso8859-4.h" +}; +static const unsigned short iso8859_5[] = { +#include "iso8859-5.h" +}; +static const unsigned short iso8859_6[] = { +#include "iso8859-6.h" +}; +static const unsigned short iso8859_7[] = { +#include "iso8859-7.h" +}; +static const unsigned short iso8859_8[] = { +#include "iso8859-8.h" +}; +static const unsigned short iso8859_9[] = { +#include "iso8859-9.h" +}; +static const unsigned short koi8_r[] = { +#include "koi8-r.h" +}; +static const unsigned short iso646_jis_G0[] = { +#include "iso646-jis.h" +}; +static const unsigned short jis0201[] = { +#include "jis0201.h" +}; + +#ifdef SP_MULTI_BYTE + +static const unsigned short jis0208[] = { +#include "jis0208.h" +}; +static const unsigned short jis0212[] = { +#include "jis0212.h" +}; +static const unsigned short gb2312[] = { +#include "gb2312.h" +}; +static const unsigned short ksc5601[] = { +#include "ksc5601.h" +}; +static const unsigned short big5[] = { +#include "big5.h" +}; + +#endif /* SP_MULTI_BYTE */ + +static const struct { + CharsetRegistry::ISORegistrationNumber number; + const unsigned short *desc; +} descTable[] = { + { CharsetRegistry::ISO8859_2, iso8859_2 }, + { CharsetRegistry::ISO8859_3, iso8859_3 }, + { CharsetRegistry::ISO8859_4, iso8859_4 }, + { CharsetRegistry::ISO8859_5, iso8859_5 }, + { CharsetRegistry::ISO8859_6, iso8859_6 }, + { CharsetRegistry::ISO8859_7, iso8859_7 }, + { CharsetRegistry::ISO8859_8, iso8859_8 }, + { CharsetRegistry::ISO8859_9, iso8859_9 }, + { CharsetRegistry::KOI8_R, koi8_r }, + { CharsetRegistry::ISO646_JIS_G0, iso646_jis_G0 }, + { CharsetRegistry::JIS0201, jis0201 }, +#ifdef SP_MULTI_BYTE + { CharsetRegistry::JIS0208, jis0208 }, + { CharsetRegistry::JIS0212, jis0212 }, + { CharsetRegistry::GB2312, gb2312 }, + { CharsetRegistry::KSC5601, ksc5601 }, + { CharsetRegistry::BIG5, big5 }, +#endif +}; + + +CharsetRegistry::ISORegistrationNumber +CharsetRegistry::getRegistrationNumber(const StringC &sequence, + const CharsetInfo &charset) +{ + // Canonicalize the escape sequence by mapping esc -> ESC, + // removing leading zeros from escape sequences, and removing + // initial spaces. + StringC s; + for (size_t i = 0; i < sequence.size(); i++) { + Char c = sequence[i]; + if (c == charset.execToDesc('e')) + s += charset.execToDesc('E'); + else if (c == charset.execToDesc('s')) + s += charset.execToDesc('S'); + else if (c == charset.execToDesc('c')) + s += charset.execToDesc('C'); + else if (charset.digitWeight(c) >= 0 + && s.size() > 0 + && s[s.size() - 1] == charset.execToDesc('0') + && (s.size() == 1 + || charset.digitWeight(s[s.size() - 2]) >= 0)) + s[s.size() - 1] = c; + else if (c != charset.execToDesc(' ') || s.size() > 0) + s += c; + } + for (size_t i = 0; i < SIZEOF(escTable); i++) { + StringC esc; + for (const char *p = escTable[i].esc; *p; p++) { + if (*p == 0x1B) + esc += charset.execToDesc("ESC"); + else { + static const char digits[] = "0123456789"; + int c = (unsigned char)*p >> 4; + if (c >= 10) + esc += charset.execToDesc('1'); + esc += charset.execToDesc(digits[c % 10]); + esc += charset.execToDesc('/'); + c = (*p & 0xf); + if (c >= 10) + esc += charset.execToDesc('1'); + esc += charset.execToDesc(digits[c % 10]); + } + if (p[1]) + esc += charset.execToDesc(' '); + } + if (s == esc) + return escTable[i].number; + } + return UNREGISTERED; +} + +CharsetRegistry::Iter *CharsetRegistry::makeIter(ISORegistrationNumber number) +{ + for (size_t i = 0; i < SIZEOF(rangeTable); i++) { + if (number == rangeTable[i].number) + return new CharsetRegistryRangeIter(rangeTable[i].ranges, rangeTable[i].nRanges); + } + for (size_t i = 0; i < SIZEOF(descTable); i++) { + if (number == descTable[i].number) + return new CharsetRegistryDescIter(descTable[i].desc); + } + return 0; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/CmdLineApp.cxx b/lib/CmdLineApp.cxx new file mode 100644 index 0000000..7af2fc5 --- /dev/null +++ b/lib/CmdLineApp.cxx @@ -0,0 +1,592 @@ +// Copyright (c) 1996 James Clark, 1999 Matthias Clasen +// See the file COPYING for copying permission. + +// Need option registration method that allows derived class to change +// option names. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "CmdLineApp.h" +#include "CmdLineAppMessages.h" +#include "MessageArg.h" +#include "ErrnoMessageArg.h" +#include "Options.h" +#include "xnew.h" +#include "macros.h" +#include "sptchar.h" +#include "MessageTable.h" +#include "CodingSystemKit.h" + +#include "ConsoleOutput.h" + +#include +#include +#include +#include + +#ifdef SP_HAVE_LOCALE +#include +#endif +#ifdef SP_HAVE_SETMODE +#include +#include +#endif + +#include +#ifdef SP_INCLUDE_UNISTD_H +#include +#endif +#ifdef SP_INCLUDE_IO_H +#include +#endif + +#ifdef _MSC_VER +#include +#endif + +#ifndef SP_DEFAULT_ENCODING +#ifdef WIN32 +#define SP_DEFAULT_ENCODING SP_T("WINDOWS") +#else +#define SP_DEFAULT_ENCODING SP_T("IS8859-1") +#endif +#endif /* not SP_DEFAULT_ENCODING */ + +#ifndef SP_MESSAGE_DOMAIN +#define SP_MESSAGE_DOMAIN "" +#endif /* not SP_MESSAGE_DOMAIN */ + +#ifndef SP_LOCALE_DIR +#define SP_LOCALE_DIR "" +#endif /* not SP_LOCALE_DIR */ + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +static const SP_TCHAR *progName = 0; + +static FileOutputByteStream standardOutput(1, 0); +static FileOutputByteStream standardError(2, 0); + +CmdLineApp::CmdLineApp(const char *requiredInternalCode) +: errorFile_(0), + outputCodingSystem_(0), + SP_REPORTER_CLASS(0), + internalCharsetIsDocCharset_(1), + codingSystem_(0), + action_(normalAction) +{ + initCodingSystem(requiredInternalCode); + setMessageStream(makeStdErr()); + if (internalCharsetIsDocCharset_) + registerOption('b', SP_T("bctf"), + CmdLineAppMessages::name, CmdLineAppMessages::bHelp); + else + registerOption('b', SP_T("encoding"), + CmdLineAppMessages::name, CmdLineAppMessages::eHelp); + registerOption('f', SP_T("error-file"), + CmdLineAppMessages::file, CmdLineAppMessages::fHelp); + registerOption('v', SP_T("version"), CmdLineAppMessages::vHelp); + registerOption('h', SP_T("help"), CmdLineAppMessages::hHelp); + registerInfo(CmdLineAppMessages::usageStart, 1); +} + +void CmdLineApp::resetCodingSystemKit() +{ + codingSystemKit_ = codingSystemKit_->copy(); +} + +void CmdLineApp::registerOption(AppChar c, const AppChar *name, + const MessageType1 &doc) +{ + registerOption(c, name, CmdLineAppMessages::noArg, doc); +} + +void CmdLineApp::changeOptionRegistration(AppChar oldc, AppChar newc) +{ + for (size_t i = 0; i < opts_.size(); i++) { + if (opts_[i].value == oldc) { + opts_[i].value = newc; +#ifdef SP_HAVE_LOCALE + char *savedLocale = strdup(setlocale(LC_CTYPE, NULL)); + setlocale(LC_CTYPE, "C"); +#endif + opts_[i].key = istalnum(newc) ? newc : 0; +#ifdef SP_HAVE_LOCALE + setlocale(LC_CTYPE, savedLocale); + if (savedLocale) + free(savedLocale); +#endif + return; + } + } +} + +void CmdLineApp::registerOption(AppChar c, const AppChar *name, + const MessageFragment &arg, + const MessageType1 &doc) +{ + // these four are used for signals from Options<>::get() + ASSERT((c != '-') && (c != ':') && (c != '?') && (c != '=')); + LongOption opt; + opt.value = c; +#ifdef SP_HAVE_LOCALE + char *savedLocale = strdup(setlocale(LC_CTYPE, NULL)); + setlocale(LC_CTYPE, "C"); +#endif + opt.key = istalnum(c) ? c : 0; +#ifdef SP_HAVE_LOCALE + setlocale(LC_CTYPE, savedLocale); + if (savedLocale) + free(savedLocale); +#endif + opt.name = name; + opt.hasArgument = (arg.module() != CmdLineAppMessages::noArg.module() + || arg.number() != CmdLineAppMessages::noArg.number()); + for (size_t i = 0; i < opts_.size(); i++) + if (opts_[i].value == c) { + for (; i + 1 < opts_.size(); i++) { + opts_[i] = opts_[i + 1]; + optArgs_[i] = optArgs_[i + 1]; + optDocs_[i] = optDocs_[i + 1]; + } + opts_[i] = opt; + optArgs_[i] = arg; + optDocs_[i] = doc; + return; + } + opts_.push_back(opt); + optArgs_.push_back(arg); + optDocs_.push_back(doc); +} + +void CmdLineApp::registerUsage(const MessageType1 &u) +{ + usages_.push_back(u); +} + +void CmdLineApp::registerInfo(const MessageType1 &i, bool pre) +{ + if (pre) + preInfos_.push_back(i); + else + infos_.push_back(i); +} + +// Backward compability. Will not display argName. +void CmdLineApp::registerOption(AppChar c, const AppChar *argName) +{ + if (argName) + registerOption(c, 0, CmdLineAppMessages::someArg, + CmdLineAppMessages::undocOption); + else + registerOption(c, 0, CmdLineAppMessages::undocOption); +} + +void CmdLineApp::usage() +{ + const OutputCharStream::Newline nl = OutputCharStream::newline; + // We use the default encoding for the help message, since this is consistent + // with error messages and probably is what users want. + Owner stdOut(ConsoleOutput::makeOutputCharStream(1)); + if (!stdOut) + stdOut = new EncodeOutputCharStream(&standardOutput, codingSystem()); + + Vector > args(1); + StringMessageArg arg(convertInput(progName ? progName : SP_T("program"))); + args[0] = arg.copy(); + if (usages_.size() == 0) + usages_.push_back(CmdLineAppMessages::defaultUsage); + for (size_t i = 0; i < usages_.size(); i++) { + StrOutputCharStream ostr; + StringC tem; + formatMessage(usages_[i], args, ostr, 1); + ostr.extractString(tem); + Vector > args2(1); + StringMessageArg arg2(tem); + args2[0] = arg2.copy(); + formatMessage(i ? CmdLineAppMessages::usageCont + : CmdLineAppMessages::usage, + args2, *stdOut, 1); + *stdOut << nl; + } + + for (size_t i = 0; i < preInfos_.size(); i++) { + formatMessage(preInfos_[i], args, *stdOut, 1); + *stdOut << nl; + } + Vector leftSide; + size_t leftSize = 0; + for (size_t i = 0; i < opts_.size(); i++) { + leftSide.resize(leftSide.size() + 1); + StringC& s = leftSide.back(); + static const AppChar* space2 = SP_T(" "); + s += convertInput(space2); + if (opts_[i].key) { + static const AppChar* dash = SP_T("-"); + s += convertInput(dash); + AppChar buf[2]; + buf[0] = opts_[i].key; + buf[1] = SP_T('\0'); + s += convertInput(buf); + if (opts_[i].name) { + static const AppChar* commaSpace = SP_T(", "); + s += convertInput(commaSpace); + } + else if (opts_[i].hasArgument) { + buf[0] = ' '; + s += convertInput(buf); + } + } + if (opts_[i].name) { + static const AppChar* dash2 = SP_T("--"); + s += convertInput(dash2); + s += convertInput(opts_[i].name); + if (opts_[i].hasArgument) { + static const AppChar* equal = SP_T("="); + s += convertInput(equal); + } + } + if (opts_[i].hasArgument) { + StringC tem; + getMessageText(optArgs_[i], tem); + s += tem; + } + if (s.size() > leftSize) + leftSize = s.size(); + } + leftSize += 2; + for (size_t i = 0; i < opts_.size(); i++) { + for (size_t j = leftSide[i].size(); j <= leftSize; j++) + leftSide[i] += ' '; + StrOutputCharStream ostr; + Vector > args2(1); + StringC t; + if (!getMessageText(optArgs_[i], t)) + t.resize(0); + StringMessageArg arg(t); + args2[0] = arg.copy(); + formatMessage(optDocs_[i], args2, ostr, 1); + StringC tem; + ostr.extractString(tem); + *stdOut << leftSide[i] << tem << nl; + } + for (size_t i = 0; i < infos_.size(); i++) { + formatMessage(infos_[i], args, *stdOut, 1); + *stdOut << nl; + } +} + +static +void ewrite(const char *s) +{ + int n = (int)strlen(s); + while (n > 0) { + int nw = write(2, s, n); + if (nw < 0) + break; + n -= nw; + s += nw; + } +} + +static +#ifdef SP_FANCY_NEW_HANDLER +int outOfMemory(size_t) +#else +void outOfMemory() +#endif +{ + ewrite("SP library: out of memory\n"); + exit(1); +#ifdef SP_FANCY_NEW_HANDLER + return 0; +#endif +} + +int CmdLineApp::init(int, AppChar **argv) +{ +#ifndef SP_ANSI_LIB + set_new_handler(outOfMemory); +#endif +#ifdef SP_HAVE_LOCALE + setlocale(LC_ALL, ""); +#endif +#ifdef SP_HAVE_SETMODE + _setmode(1, _O_BINARY); + _setmode(2, _O_BINARY); +#endif + progName = argv[0]; + if (progName) + setProgramName(convertInput(progName)); + MessageTable::instance()->registerMessageDomain(libModule, + SP_MESSAGE_DOMAIN, + SP_LOCALE_DIR); + MessageTable::instance()->registerMessageDomain(appModule, + SP_MESSAGE_DOMAIN, + SP_LOCALE_DIR); + return 0; +} + +int CmdLineApp::run(int argc, AppChar **argv) +{ +#ifdef _MSC_VER + _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF|_CRTDBG_LEAK_CHECK_DF); +#endif +#ifdef SP_ANSI_LIB + try { +#endif + int ret = init(argc, argv); + if (ret) + return ret; + int firstArg; + ret = processOptions(argc, argv, firstArg); + if (ret) + return ret; + // We do this here, so that the -b option works even if it is present after + // the -h option. + if (action_ == usageAction) { + usage(); + return 0; + } + ret = processArguments(argc - firstArg, argv + firstArg); + progName = 0; + return ret; +#ifdef SP_ANSI_LIB + } +catch ( +#ifndef SP_NO_STD_NAMESPACE + std:: +#endif + bad_alloc) { +#ifdef SP_FANCY_NEW_HANDLER + outOfMemory(0); +#else + outOfMemory(); +#endif + } + return 1; +#endif /* SP_ANSI_LIB */ +} + +int CmdLineApp::processOptions(int argc, AppChar **argv, int &nextArg) +{ + AppChar ostr[80]; + Options options(argc, argv, opts_); + AppChar opt; + while (options.get(opt)) { + switch (opt) { + case '-': + case '?': + case '=': + case ':': + if (options.opt() == 0) { + size_t i; + const AppChar *t; + for (i = 0, t = &argv[options.ind() - 1][2]; i < 79; i++, t++) { + if ((*t == '=') || (*t == '\0')) + break; + ostr[i] = *t; + } + ostr[i] = '\0'; + } + else { + ostr[0] = options.opt(); + ostr[1] = SP_T('\0'); + } + message((opt == '-') ? CmdLineAppMessages::ambiguousOptionError + : ((opt == '=') ? CmdLineAppMessages::erroneousOptionArgError + : ((opt == ':') ? CmdLineAppMessages::missingOptionArgError + : CmdLineAppMessages::invalidOptionError)), + StringMessageArg(convertInput(ostr))); + message(CmdLineAppMessages::tryHelpOptionForInfo); + return 1; + default: + processOption(opt, options.arg()); + break; + } + } + nextArg = options.ind(); + if (errorFile_) { + static FileOutputByteStream file; + if (!file.open(errorFile_)) { + message(CmdLineAppMessages::openFileError, + StringMessageArg(convertInput(errorFile_)), + ErrnoMessageArg(errno)); + return 1; + } + setMessageStream(new EncodeOutputCharStream(&file, codingSystem())); + } + if (!outputCodingSystem_) + outputCodingSystem_ = codingSystem(); + return 0; +} + +void CmdLineApp::processOption(AppChar opt, const AppChar *arg) +{ + switch (opt) { + case 'b': + outputCodingSystem_ = lookupCodingSystem(arg); + if (!outputCodingSystem_) + message(internalCharsetIsDocCharset_ + ? CmdLineAppMessages::unknownBctf + : CmdLineAppMessages::unknownEncoding, + StringMessageArg(convertInput(arg))); + break; + case 'f': + errorFile_ = arg; + break; + case 'v': + // print the version number + message(CmdLineAppMessages::versionInfo, + StringMessageArg(codingSystem()->convertIn(SP_PACKAGE)), + StringMessageArg(codingSystem()->convertIn(SP_VERSION))); + break; + case 'h': + action_ = usageAction; + break; + default: + CANNOT_HAPPEN(); + } +} + +Boolean CmdLineApp::getMessageText(const MessageFragment &frag, + StringC &text) +{ + String str; + if (!MessageTable::instance()->getText(frag, str)) + return 0; +#ifdef SP_WIDE_SYSTEM + text.resize(str.size()); + for (size_t i = 0; i < str.size(); i++) + text[i] = Char(str[i]); +#else + str += 0; + text = codingSystem()->convertIn(str.data()); +#endif + return 1; +} + +Boolean CmdLineApp::stringMatches(const SP_TCHAR *s, const char *key) +{ + for (; *key != '\0'; s++, key++) { + if (*s != tolower(*key) && *s != toupper(*key)) + return 0; + } + return *s == '\0'; +} + +void CmdLineApp::initCodingSystem(const char *requiredInternalCode) +{ + const char *name = requiredInternalCode; +#ifdef SP_MULTI_BYTE + char buf[256]; + if (!name) { + const SP_TCHAR *internalCode = tgetenv(SP_T("SP_SYSTEM_CHARSET")); + if (internalCode) { + buf[255] = '\0'; + for (size_t i = 0; i < 255; i++) { + buf[i] = internalCode[i]; + if (buf[i] == '\0') + break; + } + name = buf; + } + } + if (requiredInternalCode) + internalCharsetIsDocCharset_ = 0; + else { + const SP_TCHAR *useInternal = tgetenv(SP_T("SP_CHARSET_FIXED")); + if (useInternal + && (stringMatches(useInternal, "YES") + || stringMatches(useInternal, "1"))) + internalCharsetIsDocCharset_ = 0; + } +#endif /* SP_MULTI_BYTE */ + codingSystemKit_ = CodingSystemKit::make(name); + const SP_TCHAR *codingName = tgetenv(internalCharsetIsDocCharset_ + ? SP_T("SP_BCTF") + : SP_T("SP_ENCODING")); + if (codingName) + codingSystem_ = lookupCodingSystem(codingName); +#ifdef SP_MULTI_BYTE + if (!codingSystem_ && !internalCharsetIsDocCharset_) + codingSystem_ = lookupCodingSystem(SP_DEFAULT_ENCODING); +#endif + if (!codingSystem_ +#ifndef SP_WIDE_SYSTEM + || codingSystem_->fixedBytesPerChar() > 1 +#endif + ) + codingSystem_ = codingSystemKit_->identityCodingSystem(); +} + +const CodingSystem * +CmdLineApp::lookupCodingSystem(const AppChar *codingName) +{ +#define MAX_CS_NAME 50 + if (tcslen(codingName) < MAX_CS_NAME) { + char buf[MAX_CS_NAME]; + int i; + for (i = 0; codingName[i] != SP_T('\0'); i++) { + SP_TUCHAR c = codingName[i]; +#ifdef SP_WIDE_SYSTEM + if (c > (unsigned char)-1) + return 0; +#endif + buf[i] = char(c); + } + buf[i] = '\0'; + return codingSystemKit_->makeCodingSystem(buf, internalCharsetIsDocCharset_); + } + return 0; +} + +StringC CmdLineApp::convertInput(const SP_TCHAR *s) +{ +#ifdef SP_WIDE_SYSTEM + StringC str; + for (size_t i = 0; i < tcslen(s); i++) + str += Char(s[i]); +#else + StringC str(codingSystem()->convertIn(s)); +#endif + for (size_t i = 0; i < str.size(); i++) + if (str[i] == '\n') + str[i] = '\r'; + return str; +} + +OutputCharStream *CmdLineApp::makeStdErr() +{ + OutputCharStream *os = ConsoleOutput::makeOutputCharStream(2); + if (os) + return os; + return new EncodeOutputCharStream(&standardError, codingSystem()); +} + +OutputCharStream *CmdLineApp::makeStdOut() +{ + OutputCharStream *os = ConsoleOutput::makeOutputCharStream(1); + if (os) + return os; + return new EncodeOutputCharStream(&standardOutput, outputCodingSystem_); +} + +const MessageType2 &CmdLineApp::openFileErrorMessage() +{ + return CmdLineAppMessages::openFileError; +} + +const MessageType2 &CmdLineApp::closeFileErrorMessage() +{ + return CmdLineAppMessages::closeFileError; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/CmdLineAppMessages.h b/lib/CmdLineAppMessages.h new file mode 100644 index 0000000..24eb060 --- /dev/null +++ b/lib/CmdLineAppMessages.h @@ -0,0 +1,248 @@ +// This file was automatically generated from CmdLineAppMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct CmdLineAppMessages { + // 4000 + static const MessageType1 invalidOptionError; + // 4001 + static const MessageType1 missingOptionArgError; + // 4002 + static const MessageType1 ambiguousOptionError; + // 4003 + static const MessageType1 erroneousOptionArgError; + // 4004 + static const MessageType1 usage; + // 4005 + static const MessageType1 usageCont; + // 4006 + static const MessageType1 defaultUsage; + // 4007 + static const MessageType1 usageStart; + // 4008 + static const MessageType2 versionInfo; + // 4009 + static const MessageType1 unknownBctf; + // 4010 + static const MessageType1 unknownEncoding; + // 4011 + static const MessageType2 openFileError; + // 4012 + static const MessageType2 closeFileError; + // 4013 + static const MessageType1 bHelp; + // 4014 + static const MessageType1 eHelp; + // 4015 + static const MessageType1 fHelp; + // 4016 + static const MessageType1 vHelp; + // 4017 + static const MessageType1 hHelp; + // 4018 + static const MessageFragment name; + // 4019 + static const MessageFragment file; + // 4020 + static const MessageFragment noArg; + // 4021 + static const MessageType0 tryHelpOptionForInfo; + // 4022 + static const MessageFragment someArg; + // 4023 + static const MessageType1 undocOption; +}; +const MessageType1 CmdLineAppMessages::invalidOptionError( +MessageType::error, +&libModule, +4000 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid option %1" +#endif +); +const MessageType1 CmdLineAppMessages::missingOptionArgError( +MessageType::error, +&libModule, +4001 +#ifndef SP_NO_MESSAGE_TEXT +,"missing argument for option %1" +#endif +); +const MessageType1 CmdLineAppMessages::ambiguousOptionError( +MessageType::error, +&libModule, +4002 +#ifndef SP_NO_MESSAGE_TEXT +,"option %1 is ambiguous" +#endif +); +const MessageType1 CmdLineAppMessages::erroneousOptionArgError( +MessageType::error, +&libModule, +4003 +#ifndef SP_NO_MESSAGE_TEXT +,"option %1 doesn't allow an argument" +#endif +); +const MessageType1 CmdLineAppMessages::usage( +MessageType::info, +&libModule, +4004 +#ifndef SP_NO_MESSAGE_TEXT +,"Usage: %1" +#endif +); +const MessageType1 CmdLineAppMessages::usageCont( +MessageType::info, +&libModule, +4005 +#ifndef SP_NO_MESSAGE_TEXT +,"or: %1" +#endif +); +const MessageType1 CmdLineAppMessages::defaultUsage( +MessageType::info, +&libModule, +4006 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 [OPTION] SYSID..." +#endif +); +const MessageType1 CmdLineAppMessages::usageStart( +MessageType::info, +&libModule, +4007 +#ifndef SP_NO_MESSAGE_TEXT +,"Short options need the same arguments as their long forms." +#endif +); +const MessageType2 CmdLineAppMessages::versionInfo( +MessageType::info, +&libModule, +4008 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 version %2" +#endif +); +const MessageType1 CmdLineAppMessages::unknownBctf( +MessageType::error, +&libModule, +4009 +#ifndef SP_NO_MESSAGE_TEXT +,"unknown BCTF %1" +#endif +); +const MessageType1 CmdLineAppMessages::unknownEncoding( +MessageType::error, +&libModule, +4010 +#ifndef SP_NO_MESSAGE_TEXT +,"unknown encoding %1" +#endif +); +const MessageType2 CmdLineAppMessages::openFileError( +MessageType::error, +&libModule, +4011 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot open output file %1 (%2)" +#endif +); +const MessageType2 CmdLineAppMessages::closeFileError( +MessageType::error, +&libModule, +4012 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot close output file %1 (%2)" +#endif +); +const MessageType1 CmdLineAppMessages::bHelp( +MessageType::info, +&libModule, +4013 +#ifndef SP_NO_MESSAGE_TEXT +,"Use bctf %1 for output." +#endif +); +const MessageType1 CmdLineAppMessages::eHelp( +MessageType::info, +&libModule, +4014 +#ifndef SP_NO_MESSAGE_TEXT +,"Use encoding %1 for output." +#endif +); +const MessageType1 CmdLineAppMessages::fHelp( +MessageType::info, +&libModule, +4015 +#ifndef SP_NO_MESSAGE_TEXT +,"Append error messages to file %1." +#endif +); +const MessageType1 CmdLineAppMessages::vHelp( +MessageType::info, +&libModule, +4016 +#ifndef SP_NO_MESSAGE_TEXT +,"Display the program version." +#endif +); +const MessageType1 CmdLineAppMessages::hHelp( +MessageType::info, +&libModule, +4017 +#ifndef SP_NO_MESSAGE_TEXT +,"Show this help text." +#endif +); +const MessageFragment CmdLineAppMessages::name( +&libModule, +4018 +#ifndef SP_NO_MESSAGE_TEXT +,"NAME" +#endif +); +const MessageFragment CmdLineAppMessages::file( +&libModule, +4019 +#ifndef SP_NO_MESSAGE_TEXT +,"FILE" +#endif +); +const MessageFragment CmdLineAppMessages::noArg( +&libModule, +4020 +#ifndef SP_NO_MESSAGE_TEXT +,"NOTHING" +#endif +); +const MessageType0 CmdLineAppMessages::tryHelpOptionForInfo( +MessageType::info, +&libModule, +4021 +#ifndef SP_NO_MESSAGE_TEXT +,"Try the \"--help\" option for more information." +#endif +); +const MessageFragment CmdLineAppMessages::someArg( +&libModule, +4022 +#ifndef SP_NO_MESSAGE_TEXT +,"ARG" +#endif +); +const MessageType1 CmdLineAppMessages::undocOption( +MessageType::info, +&libModule, +4023 +#ifndef SP_NO_MESSAGE_TEXT +,"Undocumented option (check the application's manual)." +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/CmdLineAppMessages.msg b/lib/CmdLineAppMessages.msg new file mode 100644 index 0000000..30b8a44 --- /dev/null +++ b/lib/CmdLineAppMessages.msg @@ -0,0 +1,30 @@ +# Copyright (c) 1996 James Clark +# See the file COPYING for copying permission. + +# CmdLineApp message definitions + +=4000 +E1+invalidOptionError++invalid option %1 +E1+missingOptionArgError++missing argument for option %1 +E1+ambiguousOptionError++option %1 is ambiguous +E1+erroneousOptionArgError++option %1 doesn't allow an argument +I1+usage++Usage: %1 +I1+usageCont++or: %1 +I1+defaultUsage++%1 [OPTION] SYSID... +I1+usageStart++Short options need the same arguments as their long forms. +I2+versionInfo++%1 version %2 +E1+unknownBctf++unknown BCTF %1 +E1+unknownEncoding++unknown encoding %1 +E2+openFileError++cannot open output file %1 (%2) +E2+closeFileError++cannot close output file %1 (%2) +I1+bHelp++Use bctf %1 for output. +I1+eHelp++Use encoding %1 for output. +I1+fHelp++Append error messages to file %1. +I1+vHelp++Display the program version. +I1+hHelp++Show this help text. ++name++NAME ++file++FILE ++noArg++NOTHING +I0+tryHelpOptionForInfo++Try the "--help" option for more information. ++someArg++ARG +I1+undocOption++Undocumented option (check the application's manual). diff --git a/lib/CmdLineAppMessages.rc b/lib/CmdLineAppMessages.rc new file mode 100644 index 0000000..eb2c63b --- /dev/null +++ b/lib/CmdLineAppMessages.rc @@ -0,0 +1,27 @@ +STRINGTABLE +BEGIN + 4000, "invalid option %1" + 4001, "missing argument for option %1" + 4002, "option %1 is ambiguous" + 4003, "option %1 doesn't allow an argument" + 4004, "Usage: %1" + 4005, "or: %1" + 4006, "%1 [OPTION] SYSID..." + 4007, "Short options need the same arguments as their long forms." + 4008, "%1 version %2" + 4009, "unknown BCTF %1" + 4010, "unknown encoding %1" + 4011, "cannot open output file %1 (%2)" + 4012, "cannot close output file %1 (%2)" + 4013, "Use bctf %1 for output." + 4014, "Use encoding %1 for output." + 4015, "Append error messages to file %1." + 4016, "Display the program version." + 4017, "Show this help text." + 4018, "NAME" + 4019, "FILE" + 4020, "NOTHING" + 4021, "Try the ""--help"" option for more information." + 4022, "ARG" + 4023, "Undocumented option (check the application's manual)." +END diff --git a/lib/CodingSystem.cxx b/lib/CodingSystem.cxx new file mode 100644 index 0000000..7661717 --- /dev/null +++ b/lib/CodingSystem.cxx @@ -0,0 +1,118 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "CodingSystem.h" + +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +InputCodingSystem::~InputCodingSystem() +{ +} + +StringC InputCodingSystem::convertIn(const char *s) const +{ + Decoder *decoder = makeDecoder(); + StringC str; + str.resize(strlen(s)); + str.resize(decoder->decode(&str[0], s, strlen(s), &s)); + delete decoder; + return str; +} + +Boolean InputCodingSystem::isIdentity() const +{ + return 0; +} + +OutputCodingSystem::~OutputCodingSystem() +{ +} + +unsigned OutputCodingSystem::fixedBytesPerChar() const +{ + return 0; +} + +String OutputCodingSystem::convertOut(const StringC &str) const +{ + Encoder *encoder = makeEncoder(); + StrOutputByteStream stream; + encoder->output(str.data(), str.size(), &stream); + delete encoder; + String result; + stream.extractString(result); + result += '\0'; + return result; +} + +Decoder::Decoder(unsigned minBytesPerChar) +: minBytesPerChar_(minBytesPerChar) +{ +} + +Decoder::~Decoder() +{ +} + +Boolean Decoder::convertOffset(unsigned long &) const +{ + return false; +} + +Encoder::Encoder() +{ +} + +Encoder::~Encoder() +{ +} + +Encoder::Handler::~Handler() +{ +} + +void Encoder::output(Char *s, size_t n, OutputByteStream *sp) +{ + output((const Char *)s, n, sp); +} + +void Encoder::startFile(OutputByteStream *) +{ +} + +void Encoder::handleUnencodable(Char, OutputByteStream *) +{ +} + +void Encoder::setUnencodableHandler(Handler *) +{ +} + +RecoveringEncoder::RecoveringEncoder() +: unencodableHandler_(0) +{ +} + +void RecoveringEncoder::handleUnencodable(Char c, OutputByteStream *sbufp) +{ + if (unencodableHandler_) + unencodableHandler_->handleUnencodable(c, sbufp); +} + +void RecoveringEncoder::setUnencodableHandler(Handler *handler) +{ + unencodableHandler_ = handler; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/CodingSystemKit.cxx b/lib/CodingSystemKit.cxx new file mode 100644 index 0000000..bab7071 --- /dev/null +++ b/lib/CodingSystemKit.cxx @@ -0,0 +1,562 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "CodingSystemKit.h" +#include "TranslateCodingSystem.h" +#ifdef SP_MULTI_BYTE +#include "UTF8CodingSystem.h" +#include "UTF16CodingSystem.h" +#include "Fixed2CodingSystem.h" +#include "Fixed4CodingSystem.h" +#include "UnicodeCodingSystem.h" +#include "XMLCodingSystem.h" +#include "EUCJPCodingSystem.h" +#include "SJISCodingSystem.h" +#include "Big5CodingSystem.h" +#ifdef WIN32 +#include "Win32CodingSystem.h" +#endif +#endif /* SP_MULTI_BYTE */ +#include "IdentityCodingSystem.h" +#include "Owner.h" + +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#ifdef SP_MULTI_BYTE +const Char unicodeReplaceChar = 0xfffd; +#endif + +class CodingSystemKitImpl : public CodingSystemKit { +public: + CodingSystemKitImpl(const TranslateCodingSystem::Desc *); + CodingSystemKit *copy() const; + Char replacementChar() const; + const CodingSystem * + identityCodingSystem() const; + const InputCodingSystem * + identityInputCodingSystem() const; + const InputCodingSystem * + makeInputCodingSystem(const StringC &, + const CharsetInfo &, + Boolean isBctf, + const char *&) const; + const CodingSystem * + makeCodingSystem(const char *, Boolean isBctf) const; + enum CodingSystemId { + identity, + fixed2, + fixed4, + utf8, + utf16, + unicode, + eucjp, + euccn, + euckr, + sjisBctf, + eucBctf, + sjis, + big5, + big5Bctf, + ansi, + oem, + maybeUnicode, + xml, + iso8859_1, + iso8859_2, + iso8859_3, + iso8859_4, + iso8859_5, + iso8859_6, + iso8859_7, + iso8859_8, + iso8859_9, + koi8_r + }; + struct Entry { + const char *name; + CodingSystemId id; + }; + static Boolean match(const StringC &s, + const CharsetInfo &charset, + const char *key); + static Boolean match(const char *s, + const char *key); +private: + const CodingSystem * + makeCodingSystem(CodingSystemId) const; + const Entry *firstEntry(Boolean isBctf) const; +#ifdef SP_MULTI_BYTE + Fixed2CodingSystem fixed2CodingSystem_; + Fixed4CodingSystem fixed4CodingSystem_; + UTF8CodingSystem utf8CodingSystem_; + UTF16CodingSystem utf16CodingSystem_; + UnicodeCodingSystem unicodeCodingSystem_; + XMLCodingSystem xmlCodingSystem_; + EUCJPCodingSystem eucBctf_; + SJISCodingSystem sjisBctf_; + Big5CodingSystem big5Bctf_; + TranslateCodingSystem eucjpCodingSystem_; + TranslateCodingSystem euccnCodingSystem_; + TranslateCodingSystem euckrCodingSystem_; + TranslateCodingSystem sjisCodingSystem_; + TranslateCodingSystem big5CodingSystem_; + TranslateCodingSystem iso8859_1CodingSystem_; + TranslateCodingSystem iso8859_2CodingSystem_; + TranslateCodingSystem iso8859_3CodingSystem_; + TranslateCodingSystem iso8859_4CodingSystem_; + TranslateCodingSystem iso8859_5CodingSystem_; + TranslateCodingSystem iso8859_6CodingSystem_; + TranslateCodingSystem iso8859_7CodingSystem_; + TranslateCodingSystem iso8859_8CodingSystem_; + TranslateCodingSystem iso8859_9CodingSystem_; + TranslateCodingSystem koi8_rCodingSystem_; +#ifdef WIN32 + Win32CodingSystem ansiCodingSystem_; + Win32CodingSystem oemCodingSystem_; + UnicodeCodingSystem maybeUnicodeCodingSystem_; +#endif +#endif /* SP_MULTI_BYTE */ + IdentityCodingSystem identityCodingSystem_; + const TranslateCodingSystem::Desc *systemCharsetDesc_; + static const Entry bctfTable_[]; + enum { nEncodingsRequireUnicode = 12 }; + static const Entry encodingTable_[]; +}; + + +static const TranslateCodingSystem::Desc iso10646Desc[] = { + { CharsetRegistry::ISO10646_UCS2, 0x0 }, + { CharsetRegistry::UNREGISTERED, 0x0 }, +}; + +#ifdef SP_MULTI_BYTE + +static const TranslateCodingSystem::Desc jisDesc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_JIS_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::JIS0201, 0x80 }, + { CharsetRegistry::JIS0208, 0x8080 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc jis2Desc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_JIS_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::JIS0201, 0x80 }, + { CharsetRegistry::JIS0208, 0x8080 }, + { CharsetRegistry::JIS0212, 0x8000 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc gbDesc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::GB2312, 0x8080 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc big5Desc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + { CharsetRegistry::BIG5, 0x0 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc kscDesc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::KSC5601, 0x8080 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc iso8859_1Desc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::ISO8859_1, 0x80 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc iso8859_2Desc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::ISO8859_2, 0x80 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc iso8859_3Desc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::ISO8859_3, 0x80 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc iso8859_4Desc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::ISO8859_4, 0x80 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc iso8859_5Desc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::ISO8859_5, 0x80 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc iso8859_6Desc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::ISO8859_6, 0x80 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc iso8859_7Desc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::ISO8859_7, 0x80 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc iso8859_8Desc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::ISO8859_8, 0x80 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc iso8859_9Desc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + { CharsetRegistry::ISO6429, 0x80 }, + { CharsetRegistry::ISO8859_9, 0x80 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +static const TranslateCodingSystem::Desc koi8_rDesc[] = { + { CharsetRegistry::ISO646_C0, 0x0 }, + { CharsetRegistry::ISO646_ASCII_G0, 0x0 }, + // FIXME: only GR part of KOI8-R is handled (i.e. 160..255) + // since koi8-r does not follow ISO control/graphic model + { CharsetRegistry::KOI8_R, 0x80 }, + { CharsetRegistry::UNREGISTERED, 0x0 } +}; + +#endif /* SP_MULTI_BYTE */ + +const CodingSystemKitImpl::Entry CodingSystemKitImpl::bctfTable_[] = { + { "IDENTITY", identity }, +#ifdef SP_MULTI_BYTE + { "FIXED-2", fixed2 }, + { "FIXED-4", fixed4 }, + { "UTF-8", utf8 }, + { "EUC", eucBctf }, + { "SJIS", sjisBctf }, + { "BIG5", big5Bctf }, +#endif /* SP_MULTI_BYTE */ + { 0, identity }, +}; + +const CodingSystemKitImpl::Entry CodingSystemKitImpl::encodingTable_[] = { +#ifdef SP_MULTI_BYTE + { "UTF-8", utf8 }, + { "UCS-2", fixed2 }, + { "ISO-10646-UCS-2", fixed2 }, + { "UCS-4", fixed4 }, + { "ISO-10646-UCS-4", fixed4 }, + { "UTF-32", fixed4 }, + { "UNICODE", unicode }, + { "UTF-16", utf16 }, + { "WINDOWS", ansi }, + { "MS-DOS", oem }, + { "WUNICODE", maybeUnicode }, + { "XML", xml }, + // nEncodingsRequireUnicode = 12 + { "IS8859-1", iso8859_1 }, + { "ISO-8859-1", iso8859_1 }, + { "IS8859-2", iso8859_2 }, + { "ISO-8859-2", iso8859_2 }, + { "IS8859-3", iso8859_3 }, + { "ISO-8859-3", iso8859_3 }, + { "IS8859-4", iso8859_4 }, + { "ISO-8859-4", iso8859_4 }, + { "IS8859-5", iso8859_5 }, + { "ISO-8859-5", iso8859_5 }, + { "IS8859-6", iso8859_6 }, + { "ISO-8859-6", iso8859_6 }, + { "IS8859-7", iso8859_7 }, + { "ISO-8859-7", iso8859_7 }, + { "IS8859-8", iso8859_8 }, + { "ISO-8859-8", iso8859_8 }, + { "IS8859-9", iso8859_9 }, + { "ISO-8859-9", iso8859_9 }, + { "KOI8-R", koi8_r }, // RFC 1489 + { "KOI8", koi8_r }, + { "EUC-JP", eucjp }, + { "EUC-CN", euccn }, + { "GB2312", euccn }, + { "CN-GB", euccn }, // RFC 1922 + { "EUC-KR", euckr }, + { "SJIS", sjis }, + { "SHIFT_JIS", sjis }, + { "BIG5", big5 }, + { "CN-BIG5", big5 }, // RFC 1922 +#endif /* SP_MULTI_BYTE */ + { 0, identity }, +}; + +CodingSystemKitImpl::CodingSystemKitImpl(const TranslateCodingSystem::Desc *systemCharsetDesc) +: systemCharsetDesc_(systemCharsetDesc) +#ifdef SP_MULTI_BYTE + , +#ifdef WIN32 + ansiCodingSystem_(Win32CodingSystem::codePageAnsi), + oemCodingSystem_(Win32CodingSystem::codePageOEM), + maybeUnicodeCodingSystem_(&ansiCodingSystem_), +#endif + xmlCodingSystem_(this), + iso8859_1CodingSystem_(&identityCodingSystem_, iso8859_1Desc, &systemCharset_, 0x100, unicodeReplaceChar), + iso8859_2CodingSystem_(&identityCodingSystem_, iso8859_2Desc, &systemCharset_, 0x100, unicodeReplaceChar), + iso8859_3CodingSystem_(&identityCodingSystem_, iso8859_3Desc, &systemCharset_, 0x100, unicodeReplaceChar), + iso8859_4CodingSystem_(&identityCodingSystem_, iso8859_4Desc, &systemCharset_, 0x100, unicodeReplaceChar), + iso8859_5CodingSystem_(&identityCodingSystem_, iso8859_5Desc, &systemCharset_, 0x100, unicodeReplaceChar), + iso8859_6CodingSystem_(&identityCodingSystem_, iso8859_6Desc, &systemCharset_, 0x100, unicodeReplaceChar), + iso8859_7CodingSystem_(&identityCodingSystem_, iso8859_7Desc, &systemCharset_, 0x100, unicodeReplaceChar), + iso8859_8CodingSystem_(&identityCodingSystem_, iso8859_8Desc, &systemCharset_, 0x100, unicodeReplaceChar), + iso8859_9CodingSystem_(&identityCodingSystem_, iso8859_9Desc, &systemCharset_, 0x100, unicodeReplaceChar), + koi8_rCodingSystem_(&identityCodingSystem_, koi8_rDesc, &systemCharset_, 0x100, unicodeReplaceChar), + eucjpCodingSystem_(&eucBctf_, jis2Desc, &systemCharset_, 0x8000, unicodeReplaceChar), + euccnCodingSystem_(&eucBctf_, gbDesc, &systemCharset_, 0x8000, unicodeReplaceChar), + euckrCodingSystem_(&eucBctf_, kscDesc, &systemCharset_, 0x8000, unicodeReplaceChar), + sjisCodingSystem_(&sjisBctf_, jisDesc, &systemCharset_, 0x8000, unicodeReplaceChar), + big5CodingSystem_(&big5Bctf_, big5Desc, &systemCharset_, 0x0080, unicodeReplaceChar) +#endif /* SP_MULTI_BYTE */ +{ + UnivCharsetDesc desc; + for (const TranslateCodingSystem::Desc *p = systemCharsetDesc_; + p->number != CharsetRegistry::UNREGISTERED; + p++) { + Owner iter(CharsetRegistry::makeIter(p->number)); + if (iter) { + WideChar min; + WideChar max; + UnivChar univ; + while (iter->next(min, max, univ)) { + min += p->add; + max += p->add; + if (min <= charMax) { + if (max > charMax) + max = charMax; + desc.addRange(min, max, univ); + } + } + } + } + systemCharset_.set(desc); +} + +CodingSystemKit *CodingSystemKitImpl::copy() const +{ + return new CodingSystemKitImpl(systemCharsetDesc_); +} + +const CodingSystemKitImpl::Entry *CodingSystemKitImpl::firstEntry(Boolean isBctf) const +{ + if (isBctf) + return bctfTable_; +#ifdef SP_MULTI_BYTE + else if (systemCharsetDesc_ != iso10646Desc) + return encodingTable_ + nEncodingsRequireUnicode; +#endif + else + return encodingTable_; +} + +const InputCodingSystem * +CodingSystemKitImpl::makeInputCodingSystem(const StringC &s, + const CharsetInfo &charset, + Boolean isBctf, + const char *&key) const +{ + for (const Entry *p = firstEntry(isBctf); p->name; p++) + if (match(s, charset, p->name)) { + key = p->name; + return makeCodingSystem(p->id); + } + return 0; +} + +Boolean +CodingSystemKitImpl::match(const StringC &s, + const CharsetInfo &charset, + const char *key) +{ + for (size_t i = 0; i < s.size(); i++) { + if (key[i] == '\0') + return 0; + if (charset.execToDesc(toupper(key[i])) != s[i] + && charset.execToDesc(tolower(key[i])) != s[i]) + return 0; + } + return key[s.size()] == '\0'; +} + +const CodingSystem * +CodingSystemKitImpl::makeCodingSystem(const char *s, + Boolean isBctf) + const +{ + for (const Entry *p = firstEntry(isBctf); p->name; p++) + if (match(s, p->name)) + return makeCodingSystem(p->id); + return 0; +} + +Boolean +CodingSystemKitImpl::match(const char *s, + const char *key) +{ + for (; toupper(*key) == *s || tolower(*key) == *s; s++, key++) { + if (*s == '\0') + return 1; + } + return 0; +} + +const CodingSystem * +CodingSystemKitImpl::makeCodingSystem(CodingSystemId id) const +{ + switch (id) { + case identity: + return &identityCodingSystem_; +#ifdef SP_MULTI_BYTE + case fixed2: + return &fixed2CodingSystem_; + case fixed4: + return &fixed4CodingSystem_; + case utf8: + return &utf8CodingSystem_; + case utf16: + return &utf16CodingSystem_; + case unicode: + return &unicodeCodingSystem_; + case eucBctf: + return &eucBctf_; + case sjisBctf: + return &sjisBctf_; + case big5Bctf: + return &big5Bctf_; + case eucjp: + return &eucjpCodingSystem_; + case euccn: + return &euccnCodingSystem_; + case euckr: + return &euckrCodingSystem_; + case sjis: + return &sjisCodingSystem_; + case big5: + return &big5CodingSystem_; + case iso8859_1: + if (systemCharsetDesc_ == iso10646Desc) + return &identityCodingSystem_; + else + return &iso8859_1CodingSystem_; + case iso8859_2: + return &iso8859_2CodingSystem_; + case iso8859_3: + return &iso8859_3CodingSystem_; + case iso8859_4: + return &iso8859_4CodingSystem_; + case iso8859_5: + return &iso8859_5CodingSystem_; + case iso8859_6: + return &iso8859_6CodingSystem_; + case iso8859_7: + return &iso8859_7CodingSystem_; + case iso8859_8: + return &iso8859_8CodingSystem_; + case iso8859_9: + return &iso8859_9CodingSystem_; + case koi8_r: + return &koi8_rCodingSystem_; + case xml: + return &xmlCodingSystem_; +#ifdef WIN32 + case ansi: + return &ansiCodingSystem_; + case oem: + return &oemCodingSystem_; + case maybeUnicode: + return &maybeUnicodeCodingSystem_; +#endif /* WIN32 */ +#endif /* SP_MULTI_BYTE */ + default: + break; + } + return 0; +} + +const InputCodingSystem * +CodingSystemKitImpl::identityInputCodingSystem() const +{ + return &identityCodingSystem_; +} + +const CodingSystem * +CodingSystemKitImpl::identityCodingSystem() const +{ + return &identityCodingSystem_; +} + +Char CodingSystemKitImpl::replacementChar() const +{ + // FIXME should vary with systemCharset +#ifdef SP_MULTI_BYTE + return unicodeReplaceChar; +#else + return 0; +#endif +} + +CodingSystemKit::~CodingSystemKit() +{ +} + +CodingSystemKit * +CodingSystemKit::make(const char *systemCharsetName) +{ +#ifdef SP_MULTI_BYTE + if (systemCharsetName && CodingSystemKitImpl::match(systemCharsetName, "JIS")) + return new CodingSystemKitImpl(jis2Desc); +#endif + return new CodingSystemKitImpl(iso10646Desc); +} + +InputCodingSystemKit::~InputCodingSystemKit() +{ +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ConsoleOutput.cxx b/lib/ConsoleOutput.cxx new file mode 100644 index 0000000..e2eeba8 --- /dev/null +++ b/lib/ConsoleOutput.cxx @@ -0,0 +1,73 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "ConsoleOutput.h" + +#ifdef SP_WIDE_SYSTEM +#include +#include +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#ifdef SP_WIDE_SYSTEM + +class ConsoleOutputCharStream : public OutputCharStream { +public: + ConsoleOutputCharStream(HANDLE h); + void flush(); + void flushBuf(Char); +private: + HANDLE h_; +}; + +OutputCharStream *ConsoleOutput::makeOutputCharStream(int fd) +{ + HANDLE h = (HANDLE)_get_osfhandle(fd); + DWORD flags; + if (GetConsoleMode(h, &flags)) + return new ConsoleOutputCharStream(h); + else + return 0; +} + +ConsoleOutputCharStream::ConsoleOutputCharStream(HANDLE h) +: h_(h) +{ +} + +void ConsoleOutputCharStream::flush() +{ +} + +void ConsoleOutputCharStream::flushBuf(Char c) +{ + DWORD nWritten; + unsigned short ch = c; + if (WriteConsoleW(h_, &ch, 1, &nWritten, 0)) + return; + char buf[2]; + int nBytes = WideCharToMultiByte(CP_OEMCP, 0, &ch, 1, buf, 2, 0, 0); + if (nBytes) + WriteConsoleA(h_, buf, nBytes, &nWritten, 0); +} + +#else /* not SP_WIDE_SYSTEM */ + +OutputCharStream *ConsoleOutput::makeOutputCharStream(int) +{ + return 0; +} + +#endif /* not SP_WIDE_SYSTEM */ + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ContentState.cxx b/lib/ContentState.cxx new file mode 100644 index 0000000..6456b8d --- /dev/null +++ b/lib/ContentState.cxx @@ -0,0 +1,172 @@ +// Copyright (c) 1994, 1996 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "ContentState.h" +#include "IListIter.h" +#include "NCVector.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const ShortReferenceMap ContentState::theEmptyMap; + +#ifdef __GNUG__ +typedef IListIter Dummy_IListIter_OpenElement; +#endif + +ContentState::ContentState() +: documentElementContainer_(StringC(), size_t(-1)) +{ +} + +void ContentState::startContent(const Dtd &dtd) +{ + NCVector > tokens(1); + tokens[0] = new ElementToken(dtd.documentElementType(), + ContentToken::none); + Owner model(new SeqModelGroup(tokens, ContentToken::none)); + Owner compiledModel(new CompiledModelGroup(model)); + Vector ambiguities; + Boolean pcdataUnreachable; + compiledModel->compile(dtd.nElementTypeIndex(), ambiguities, + pcdataUnreachable); + ASSERT(ambiguities.size() == 0); + ConstPtr def + = new ElementDefinition(Location(), + 0, + 0, + ElementDefinition::modelGroup, + compiledModel); + documentElementContainer_.setElementDefinition(def, 0); + tagLevel_ = 0; + while (!openElements_.empty()) + delete openElements_.get(); + openElements_.insert(new OpenElement(&documentElementContainer_, + 0, + 0, + &theEmptyMap, + Location())); + includeCount_.assign(dtd.nElementTypeIndex(), 0); + excludeCount_.assign(dtd.nElementTypeIndex(), 0); + openElementCount_.assign(dtd.nElementTypeIndex(), 0); + netEnablingCount_ = 0; + totalExcludeCount_ = 0; + lastEndedElementType_ = 0; + nextIndex_ = 0; +} + +void ContentState::pushElement(OpenElement *e) +{ + tagLevel_++; + openElementCount_[e->type()->index()]++; + const ElementDefinition *def = e->type()->definition(); + if (def) { + size_t i; + for (i = 0; i < def->nInclusions(); i++) + includeCount_[def->inclusion(i)->index()]++; + for (i = 0; i < def->nExclusions(); i++) { + excludeCount_[def->exclusion(i)->index()]++; + totalExcludeCount_++; + } + } + if (e->netEnabling()) + netEnablingCount_++; + e->setIndex(nextIndex_++); + openElements_.insert(e); +} + +OpenElement *ContentState::popSaveElement() +{ + ASSERT(tagLevel_ > 0); + OpenElement *e = openElements_.get(); + tagLevel_--; + openElementCount_[e->type()->index()]--; + const ElementDefinition *def = e->type()->definition(); + if (def) { + size_t i; + for (i = 0; i < def->nInclusions(); i++) + includeCount_[def->inclusion(i)->index()]--; + for (i = 0; i < def->nExclusions(); i++) { + excludeCount_[def->exclusion(i)->index()]--; + totalExcludeCount_--; + } + } + if (e->netEnabling()) + netEnablingCount_--; + lastEndedElementType_ = e->type(); + return e; +} + +void ContentState::popElement() +{ + delete popSaveElement(); +} + +Boolean ContentState::checkImplyLoop(unsigned count) +{ + for (IListIter iter(openElements_); + count > 0; + iter.next(), count--) + if (iter.cur()->type() == openElements_.head()->type() + // I'm not sure whether this is necessary. + && iter.cur()->matchState() == openElements_.head()->matchState()) + return 0; + return 1; +} + +void ContentState::getOpenElementInfo(Vector &v, + const StringC &rniPcdata) const +{ + v.clear(); + v.resize(tagLevel_); + unsigned i = tagLevel_; + for (IListIter iter(openElements_); + !iter.done() && i > 0; + iter.next()) { + OpenElementInfo &e = v[--i]; + e.gi = iter.cur()->type()->name(); + const LeafContentToken *token = iter.cur()->currentPosition(); + if (token && !token->isInitial()) { + e.matchIndex = token->typeIndex() + 1; + const ElementType *type = token->elementType(); + e.matchType = type ? type->name() : rniPcdata; + } + e.included = iter.cur()->included(); + } +} + +ElementType * +ContentState::lookupCreateUndefinedElement(const StringC &name, + const Location &loc, + Dtd &dtd, + Boolean allowImmediateRecursion) +{ + ElementType *p = new ElementType(name, + dtd.allocElementTypeIndex()); + dtd.insertElementType(p); + p->setElementDefinition(new ElementDefinition(loc, + size_t(ElementDefinition::undefinedIndex), + ElementDefinition::omitEnd, + ElementDefinition::any, + allowImmediateRecursion + ), + 0); + p->setAttributeDef(dtd.implicitElementAttributeDef()); + + includeCount_.push_back(0); + excludeCount_.push_back(0); + openElementCount_.push_back(0); + return p; +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ContentToken.cxx b/lib/ContentToken.cxx new file mode 100644 index 0000000..7fca6a2 --- /dev/null +++ b/lib/ContentToken.cxx @@ -0,0 +1,791 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include +#include "ContentToken.h" +#include "macros.h" +#include "ElementType.h" +#include "Vector.h" +#include "Dtd.h" +#include "MessageArg.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Transition::~Transition() {} + +AndModelGroup::AndModelGroup(NCVector > &v, + ContentToken::OccurrenceIndicator oi) +: ModelGroup(v, oi) +{ +} + +ModelGroup::Connector AndModelGroup::connector() const +{ + return andConnector; +} + +OrModelGroup::OrModelGroup(NCVector > &v, + ContentToken::OccurrenceIndicator oi) +: ModelGroup(v, oi) +{ + setOrGroup(); +} + +ModelGroup::Connector OrModelGroup::connector() const +{ + return orConnector; +} + + +SeqModelGroup::SeqModelGroup(NCVector > &v, + ContentToken::OccurrenceIndicator oi) +: ModelGroup(v, oi) +{ +} + +ModelGroup::Connector SeqModelGroup::connector() const +{ + return seqConnector; +} + + +ModelGroup::ModelGroup(NCVector > &v, + OccurrenceIndicator oi) +: ContentToken(oi) +{ + members_.swap(v); +} + +unsigned long ModelGroup::grpgtcnt() const +{ + unsigned long cnt = 1; + for (size_t i = 0; i < members_.size(); i++) + cnt += members_[i]->grpgtcnt(); + return cnt; +} + +void ModelGroup::setOrGroup() +{ + for (size_t i = 0; i < members_.size(); i++) + members_[i]->setOrGroupMember(); +} + +const ModelGroup *ModelGroup::asModelGroup() const +{ + return this; +} + +ElementToken::ElementToken(const ElementType *element, OccurrenceIndicator oi) +: LeafContentToken(element, oi) +{ +} + +ContentToken::ContentToken(OccurrenceIndicator oi) +: occurrenceIndicator_(oi) +{ +} + +unsigned long ContentToken::grpgtcnt() const +{ + return 1; +} + +void ContentToken::setOrGroupMember() +{ +} + +const ModelGroup *ContentToken::asModelGroup() const +{ + return 0; +} + +const LeafContentToken *ContentToken::asLeafContentToken() const +{ + return 0; +} + +LeafContentToken::LeafContentToken(const ElementType *element, + OccurrenceIndicator oi) +: element_(element), ContentToken(oi), isFinal_(0), orGroupMember_(0), + requiredIndex_(size_t(-1)) +{ +} + +Boolean LeafContentToken::isInitial() const +{ + return 0; +} + +void LeafContentToken::setOrGroupMember() +{ + orGroupMember_ = 1; +} + +const LeafContentToken *LeafContentToken::asLeafContentToken() const +{ + return this; +} + +PcdataToken::PcdataToken() +: LeafContentToken(0, rep) +{ +} + +InitialPseudoToken::InitialPseudoToken() +: LeafContentToken(0, none) +{ +} + +Boolean InitialPseudoToken::isInitial() const +{ + return 1; +} + +DataTagGroup::DataTagGroup(NCVector > &vec, + OccurrenceIndicator oi) +: SeqModelGroup(vec, oi) +{ +} + +DataTagElementToken::DataTagElementToken(const ElementType *element, + Vector &templates, + Text &paddingTemplate) +: ElementToken(element, ContentToken::none), + havePaddingTemplate_(1) +{ + templates.swap(templates_); + paddingTemplate.swap(paddingTemplate_); +} + +DataTagElementToken::DataTagElementToken(const ElementType *element, + Vector &templates) +: ElementToken(element, ContentToken::none), + havePaddingTemplate_(0) +{ + templates.swap(templates_); +} + +ContentToken::~ContentToken() +{ +} + +struct GroupInfo { + unsigned nextLeafIndex; + PackedBoolean containsPcdata; + unsigned andStateSize; + Vector nextTypeIndex; + GroupInfo(size_t); +}; + + +GroupInfo::GroupInfo(size_t nType) +: nextTypeIndex(nType, 0), nextLeafIndex(0), containsPcdata(0), andStateSize(0) +{ +} + +CompiledModelGroup::CompiledModelGroup(Owner &modelGroup) +: modelGroup_(modelGroup.extract()) +{ +} + +void CompiledModelGroup::compile(size_t nElementTypeIndex, + Vector &ambiguities, + Boolean &pcdataUnreachable) +{ + FirstSet first; + LastSet last; + GroupInfo info(nElementTypeIndex); + modelGroup_->analyze(info, 0, 0, first, last); + for (unsigned i = 0; i < last.size(); i++) + last[i]->setFinal(); + andStateSize_ = info.andStateSize; + containsPcdata_ = info.containsPcdata; + initial_ = new InitialPseudoToken; + LastSet initialSet(1); + initialSet[0] = initial_.pointer(); + ContentToken::addTransitions(initialSet, first, 1, 0, 0); + if (modelGroup_->inherentlyOptional()) + initial_->setFinal(); + pcdataUnreachable = 0; + Vector minAndDepth(info.nextLeafIndex); + Vector elementTransition(nElementTypeIndex); + initial_->finish(minAndDepth, elementTransition, ambiguities, + pcdataUnreachable); + modelGroup_->finish(minAndDepth, elementTransition, ambiguities, + pcdataUnreachable); + if (!containsPcdata_) + pcdataUnreachable = 0; +} + +void ModelGroup::finish(Vector &minAndDepth, + Vector &elementTransition, + Vector &ambiguities, + Boolean &pcdataUnreachable) +{ + for (unsigned i = 0; i < nMembers(); i++) + member(i).finish(minAndDepth, elementTransition, ambiguities, + pcdataUnreachable); +} + +void LeafContentToken::finish(Vector &minAndDepthVec, + Vector &elementTransitionVec, + Vector &ambiguities, + Boolean &pcdataUnreachable) +{ + if (andInfo_) { + andFinish(minAndDepthVec, elementTransitionVec, ambiguities, + pcdataUnreachable); + return; + } + Vector::iterator elementTransition = elementTransitionVec.begin(); + Vector::iterator minAndDepth = minAndDepthVec.begin(); + minAndDepthVec.assign(minAndDepthVec.size(), unsigned(-1)); + elementTransitionVec.assign(elementTransitionVec.size(), size_t(-1)); + pcdataTransitionType_ = 0; + simplePcdataTransition_ = 0; + // follow_ is in decreasing order of andDepth because of how it's + // constructed. + size_t n = follow_.size(); + Vector::iterator follow = follow_.begin(); + size_t j = 0; + for (size_t i = 0; i < n; i++) { + unsigned &minDepth = minAndDepth[follow[i]->index()]; + if (minDepth) { + minDepth = 0; + if (j != i) + follow[j] = follow[i]; + if (i == requiredIndex_) + requiredIndex_ = j; + const ElementType *e = follow[i]->elementType(); + unsigned ei; + if (e == 0) { + if (follow[i]->andInfo_ == 0) { + simplePcdataTransition_ = follow[i]; + pcdataTransitionType_ = 1; + } + else + pcdataTransitionType_ = 2; + ei = 0; + } + else + ei = e->index(); + if (elementTransition[ei] != size_t(-1)) { + const LeafContentToken *prev = follow[elementTransition[ei]]; + // This might not be true: consider (a & b?)*; after the + // a there are two different ways to get to the same b, + // with the same and depth. + if (follow[i] != prev) { + ambiguities.resize(ambiguities.size() + 1); + ContentModelAmbiguity &a = ambiguities.back(); + a.from = this; + a.to1 = prev; + a.to2 = follow[i]; + a.andDepth = 0; + } + } + elementTransition[ei] = j; + j++; + } + } + if (pcdataTransitionType_ == 0) + pcdataUnreachable = 1; + follow_.resize(j); +} + +void LeafContentToken::andFinish(Vector &minAndDepthVec, + Vector &elementTransitionVec, + Vector &ambiguities, + Boolean &pcdataUnreachable) +{ + // Vector mapping element type index to index of leaf content token + // of that type to which there is a transition, which is the "worst" + // from the point of view of ambiguity. + Vector::iterator elementTransition = elementTransitionVec.begin(); + // Vector mapping index of leaf content token + // to minimum AND depth of transition to that token. + Vector::iterator minAndDepth = minAndDepthVec.begin(); + minAndDepthVec.assign(minAndDepthVec.size(), unsigned(-1)); + elementTransitionVec.assign(elementTransitionVec.size(), size_t(-1)); + pcdataTransitionType_ = 0; + simplePcdataTransition_ = 0; + unsigned pcdataMinCovered = 0; + + // follow_ is in decreasing order of andDepth because of how it's + // constructed. + size_t n = follow_.size(); + size_t j = 0; + Vector::iterator andFollow = andInfo_->follow.begin(); + for (size_t i = 0; i < n; i++) { + unsigned &minDepth = minAndDepth[follow_[i]->index()]; + // ignore transitions to the same token with the same and depth. + if (andFollow[i].andDepth < minDepth) { + minDepth = andFollow[i].andDepth; + if (j != i) { + follow_[j] = follow_[i]; + andFollow[j] = andFollow[i]; + } + if (i == requiredIndex_) + requiredIndex_ = j; + const ElementType *e = follow_[i]->elementType(); + unsigned ei; + if (e == 0) { + if (pcdataTransitionType_ == 0) { + const AndModelGroup *andAncestor = andInfo_->andAncestor; + unsigned groupIndex = andInfo_->andGroupIndex; + do { + Boolean hasNonNull = 0; + for (unsigned k = 0; k < andAncestor->nMembers(); k++) + if (k != groupIndex + && !andAncestor->member(k).inherentlyOptional()) { + hasNonNull = 1; + break; + } + if (hasNonNull) { + if (minDepth <= andAncestor->andDepth()) + pcdataUnreachable = 1; + break; + } + groupIndex = andAncestor->andGroupIndex(); + andAncestor = andAncestor->andAncestor(); + } while (andAncestor); + if (andFollow[i].isolated) + pcdataMinCovered = minDepth; + pcdataTransitionType_ = 2; + } + else { + if (pcdataMinCovered > minDepth + 1) + pcdataUnreachable = 1; + pcdataMinCovered = andFollow[i].isolated ? minDepth : 0; + } + ei = 0; + } + else + ei = e->index(); + // If we have transitions t1, t2, ... tN to tokens having + // the same element type, with + // and-depths d1, d2, ... dN, where d1 >= d2 >= ... >= dN, + // then there is an ambiguity unless + // d1 > d2 > ... > dN and t1, t2, ... , tN-1 are all isolated. + size_t previ = elementTransition[ei]; + if (previ != size_t(-1)) { + const LeafContentToken *prev = follow_[previ]; + // This might not be true: consider (a & b?)*; after the + // a there are two different ways to get to the same b, + // with the same and depth. + if (follow_[i] != prev + && (andFollow[previ].andDepth == andFollow[i].andDepth + || !andFollow[previ].isolated)) { + ambiguities.resize(ambiguities.size() + 1); + ContentModelAmbiguity &a = ambiguities.back(); + a.from = this; + a.to1 = prev; + a.to2 = follow_[i]; + a.andDepth = andFollow[i].andDepth; + } + if (andFollow[previ].isolated) + elementTransition[ei] = j; + } + else + elementTransition[ei] = j; + j++; + } + } + if (pcdataMinCovered > 0 || pcdataTransitionType_ == 0) + pcdataUnreachable = 1; + follow_.resize(j); + andInfo_->follow.resize(j); +} + +void ContentToken::analyze(GroupInfo &info, + const AndModelGroup *andAncestor, + unsigned andGroupIndex, + FirstSet &first, + LastSet &last) +{ + analyze1(info, andAncestor, andGroupIndex, first, last); + if (occurrenceIndicator_ & opt) + inherentlyOptional_ = 1; + if (inherentlyOptional_) + first.setNotRequired(); + if (occurrenceIndicator_ & plus) + addTransitions(last, first, 0, + andIndex(andAncestor), andDepth(andAncestor)); +} + +void LeafContentToken::analyze1(GroupInfo &info, + const AndModelGroup *andAncestor, + unsigned andGroupIndex, + FirstSet &first, + LastSet &last) +{ + leafIndex_ = info.nextLeafIndex++; + typeIndex_ = info.nextTypeIndex[element_ ? element_->index() : 0]++; + if (andAncestor) { + andInfo_ = new AndInfo; + andInfo_->andAncestor = andAncestor; + andInfo_->andGroupIndex = andGroupIndex; + } + first.init(this); + last.assign(1, this); + inherentlyOptional_ = 0; +} + +void PcdataToken::analyze1(GroupInfo &info, + const AndModelGroup *andAncestor, + unsigned andGroupIndex, + FirstSet &first, + LastSet &last) +{ + info.containsPcdata = 1; + LeafContentToken::analyze1(info, andAncestor, andGroupIndex, first, last); +} + +void OrModelGroup::analyze1(GroupInfo &info, + const AndModelGroup *andAncestor, + unsigned andGroupIndex, + FirstSet &first, + LastSet &last) +{ + member(0).analyze(info, andAncestor, andGroupIndex, first, last); + first.setNotRequired(); + inherentlyOptional_ = member(0).inherentlyOptional(); + for (unsigned i = 1; i < nMembers(); i++) { + FirstSet tempFirst; + LastSet tempLast; + member(i).analyze(info, andAncestor, andGroupIndex, tempFirst, tempLast); + first.append(tempFirst); + first.setNotRequired(); + last.append(tempLast); + inherentlyOptional_ |= member(i).inherentlyOptional(); + } +} + +void SeqModelGroup::analyze1(GroupInfo &info, + const AndModelGroup *andAncestor, + unsigned andGroupIndex, + FirstSet &first, + LastSet &last) +{ + member(0).analyze(info, andAncestor, andGroupIndex, first, last); + inherentlyOptional_ = member(0).inherentlyOptional(); + for (unsigned i = 1; i < nMembers(); i++) { + FirstSet tempFirst; + LastSet tempLast; + member(i).analyze(info, andAncestor, andGroupIndex, tempFirst, tempLast); + addTransitions(last, tempFirst, 1, + andIndex(andAncestor), andDepth(andAncestor)); + if (inherentlyOptional_) + first.append(tempFirst); + if (member(i).inherentlyOptional()) + last.append(tempLast); + else + tempLast.swap(last); + inherentlyOptional_ &= member(i).inherentlyOptional(); + } +} + +void AndModelGroup::analyze1(GroupInfo &info, + const AndModelGroup *andAncestor, + unsigned andGroupIndex, + FirstSet &first, + LastSet &last) +{ + andDepth_ = ContentToken::andDepth(andAncestor); + andIndex_ = ContentToken::andIndex(andAncestor); + andAncestor_ = andAncestor; + andGroupIndex_ = andGroupIndex; + if (andIndex_ + nMembers() > info.andStateSize) + info.andStateSize = andIndex_ + nMembers(); + Vector firstVec(nMembers()); + Vector lastVec(nMembers()); + member(0).analyze(info, this, 0, firstVec[0], lastVec[0]); + first = firstVec[0]; + first.setNotRequired(); + last = lastVec[0]; + inherentlyOptional_ = member(0).inherentlyOptional(); + unsigned i; + for (i = 1; i < nMembers(); i++) { + member(i).analyze(info, this, i, firstVec[i], lastVec[i]); + first.append(firstVec[i]); + first.setNotRequired(); + last.append(lastVec[i]); + inherentlyOptional_ &= member(i).inherentlyOptional(); + } + for (i = 0; i < nMembers(); i++) { + for (unsigned j = 0; j < nMembers(); j++) + if (j != i) + addTransitions(lastVec[i], firstVec[j], 0, + andIndex() + nMembers(), + andDepth() + 1, + !member(j).inherentlyOptional(), + andIndex() + j, andIndex() + i); + } +} + +void ContentToken::addTransitions(const LastSet &from, + const FirstSet &to, + Boolean maybeRequired, + unsigned andClearIndex, + unsigned andDepth, + Boolean isolated, + unsigned requireClear, + unsigned toSet) +{ + size_t length = from.size(); + for (unsigned i = 0; i < length; i++) + from[i]->addTransitions(to, + maybeRequired, + andClearIndex, + andDepth, + isolated, + requireClear, + toSet); +} + +void LeafContentToken::addTransitions(const FirstSet &to, + Boolean maybeRequired, + unsigned andClearIndex, + unsigned andDepth, + Boolean isolated, + unsigned requireClear, + unsigned toSet) +{ + if (maybeRequired && to.requiredIndex() != size_t(-1)) { + ASSERT(requiredIndex_ == size_t(-1)); + requiredIndex_ = to.requiredIndex() + follow_.size(); + } + size_t length = follow_.size(); + size_t n = to.size(); + follow_.resize(length + n); + for (size_t i = 0; i < n; i++) + follow_[length + i] = to.token(i); + if (andInfo_) { + andInfo_->follow.resize(length + n); + for (size_t i = 0; i < n; i++) { + Transition &t = andInfo_->follow[length + i]; + t.clearAndStateStartIndex = andClearIndex; + t.andDepth = andDepth; + t.isolated = isolated; + t.requireClear = requireClear; + t.toSet = toSet; + } + } +} + +AndState::AndState(unsigned n) +: v_(n, PackedBoolean(0)), clearFrom_(0) +{ +} + +void AndState::clearFrom1(unsigned i) +{ + while (clearFrom_ > i) + v_[--clearFrom_] = 0; +} + +MatchState::MatchState() +: andState_(0) +{ +} + +MatchState::MatchState(const CompiledModelGroup *model) +: pos_(model ? model->initial() : 0), + andState_(model ? model->andStateSize() : 0), + minAndDepth_(0) +{ +} + +const LeafContentToken *MatchState::invalidExclusion(const ElementType *e) + const +{ + const LeafContentToken *token = pos_->transitionToken(e, andState_, + minAndDepth_); + if (token && !token->inherentlyOptional() && !token->orGroupMember()) + return token; + else + return 0; +} + +Boolean MatchState::operator==(const MatchState &state) const +{ + return (pos_ == state.pos_ && andState_ == state.andState_ + && minAndDepth_ == state.minAndDepth_); +} + +Boolean AndState::operator==(const AndState &state) const +{ + ASSERT(v_.size() == state.v_.size()); + for (size_t i = 0; i < v_.size(); i++) { + if (i >= clearFrom_ && i >= state.clearFrom_) + break; + if (v_[i] != state.v_[i]) + return 0; + } + return 1; +} + +const LeafContentToken * +LeafContentToken::transitionToken(const ElementType *to, + const AndState &andState, + unsigned minAndDepth) const +{ + Vector::const_iterator p = follow_.begin(); + if (!andInfo_) { + for (size_t n = follow_.size(); n > 0; n--, p++) + if ((*p)->elementType() == to) + return *p; + } + else { + Vector::const_iterator q = andInfo_->follow.begin(); + for (size_t n = follow_.size(); n > 0; n--, p++, q++) + if ((*p)->elementType() == to + && ((q->requireClear == unsigned(Transition::invalidIndex) + || andState.isClear(q->requireClear)) + && q->andDepth >= minAndDepth)) + return (*p); + } + return 0; +} + +Boolean +LeafContentToken::tryTransition(const ElementType *to, + AndState &andState, + unsigned &minAndDepth, + const LeafContentToken *&newpos) const +{ + Vector::const_iterator p = follow_.begin(); + if (!andInfo_) { + for (size_t n = follow_.size(); n > 0; n--, p++) { + if ((*p)->elementType() == to) { + newpos = *p; + minAndDepth = newpos->computeMinAndDepth(andState); + return 1; + } + } + } + else { + Vector::const_iterator q = andInfo_->follow.begin(); + for (size_t n = follow_.size(); n > 0; n--, p++, q++) { + if ((*p)->elementType() == to + && ((q->requireClear == unsigned(Transition::invalidIndex) + || andState.isClear(q->requireClear)) + && q->andDepth >= minAndDepth)) { + if (q->toSet != unsigned(Transition::invalidIndex)) + andState.set(q->toSet); + andState.clearFrom(q->clearAndStateStartIndex); + newpos = *p; + minAndDepth = newpos->computeMinAndDepth(andState); + return 1; + } + } + } + return 0; +} + +void +LeafContentToken::possibleTransitions(const AndState &andState, + unsigned minAndDepth, + Vector &v) const +{ + Vector::const_iterator p = follow_.begin(); + if (!andInfo_) { + for (size_t n = follow_.size(); n > 0; n--, p++) + v.push_back((*p)->elementType()); + } + else { + Vector::const_iterator q = andInfo_->follow.begin(); + for (size_t n = follow_.size(); n > 0; n--, p++, q++) + if ((q->requireClear == unsigned(Transition::invalidIndex) + || andState.isClear(q->requireClear)) + && q->andDepth >= minAndDepth) + v.push_back((*p)->elementType()); + } +} + +unsigned LeafContentToken::computeMinAndDepth1(const AndState &andState) const +{ + ASSERT(andInfo_ != 0); + unsigned groupIndex = andInfo_->andGroupIndex; + for (const AndModelGroup *group = andInfo_->andAncestor; + group; + groupIndex = group->andGroupIndex(), group = group->andAncestor()) + for (unsigned i = 0; i < group->nMembers(); i++) + if (i != groupIndex && !group->member(i).inherentlyOptional() + && andState.isClear(group->andIndex() + i)) + return group->andDepth() + 1; + return 0; +} + +const LeafContentToken * +LeafContentToken::impliedStartTag(const AndState &andState, + unsigned minAndDepth) const +{ + if (requiredIndex_ != size_t(-1)) { + if (!andInfo_) + return follow_[requiredIndex_]; + const Transition &t = andInfo_->follow[requiredIndex_]; + if ((t.requireClear == unsigned(Transition::invalidIndex) + || andState.isClear(t.requireClear)) + && t.andDepth >= minAndDepth) + return follow_[requiredIndex_]; + } + return 0; +} + +void LeafContentToken::doRequiredTransition(AndState &andState, + unsigned &minAndDepth, + const LeafContentToken *&newpos) + const +{ + ASSERT(requiredIndex_ != size_t(-1)); + if (andInfo_) { + const Transition &t = andInfo_->follow[requiredIndex_]; + if (t.toSet != unsigned(Transition::invalidIndex)) + andState.set(t.toSet); + andState.clearFrom(t.clearAndStateStartIndex); + } + newpos = follow_[requiredIndex_]; + minAndDepth = newpos->computeMinAndDepth(andState); +} + +FirstSet::FirstSet() +: requiredIndex_(size_t(-1)) +{ +} + +void FirstSet::init(LeafContentToken *p) +{ + v_.assign(1, p); + v_.reserve(256); + requiredIndex_ = 0; +} + +void FirstSet::append(const FirstSet &set) +{ + if (set.requiredIndex_ != size_t(-1)) { + ASSERT(requiredIndex_ == size_t(-1)); + requiredIndex_ = set.requiredIndex_ + v_.size(); + } + size_t oldSize = v_.size(); + v_.resize(v_.size() + set.v_.size()); + for (size_t i = 0; i < set.v_.size(); i++) + v_[oldSize + i] = set.v_[i]; +} + +void LastSet::append(const LastSet &set) +{ + size_t oldSize = size(); + resize(size() + set.size()); + for (size_t i = 0; i < set.size(); i++) + (*this)[oldSize + i] = set[i]; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/DescriptorManager.cxx b/lib/DescriptorManager.cxx new file mode 100644 index 0000000..93766a9 --- /dev/null +++ b/lib/DescriptorManager.cxx @@ -0,0 +1,90 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "DescriptorManager.h" +#include "ListIter.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +DescriptorUser::DescriptorUser(DescriptorManager *manager) +: manager_(manager) +{ + if (manager_) + manager_->addUser(this); +} + +DescriptorUser::~DescriptorUser() +{ + if (manager_) + manager_->removeUser(this); +} + +void DescriptorUser::managerDeleted() +{ + manager_ = 0; +} + +Boolean DescriptorUser::suspend() +{ + return 0; +} + +void DescriptorUser::acquireD() +{ + if (manager_) + manager_->acquireD(); +} + +void DescriptorUser::releaseD() +{ + if (manager_) + manager_->releaseD(); +} + +DescriptorManager::DescriptorManager(int maxD) +: maxD_(maxD), usedD_(0) +{ +} + +DescriptorManager::~DescriptorManager() +{ + for (ListIter iter(users_); + !iter.done(); + iter.next()) + iter.cur()->managerDeleted(); +} + +void DescriptorManager::addUser(DescriptorUser *p) +{ + users_.insert(p); +} + +void DescriptorManager::removeUser(DescriptorUser *p) +{ + users_.remove(p); +} + +void DescriptorManager::acquireD() +{ + if (usedD_ >= maxD_) { + for (ListIter iter(users_); + !iter.done(); + iter.next()) { + if (iter.cur()->suspend()) + break; + } + } + usedD_++; +} + +void DescriptorManager::releaseD() +{ + usedD_--; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Dtd.cxx b/lib/Dtd.cxx new file mode 100644 index 0000000..c68b260 --- /dev/null +++ b/lib/Dtd.cxx @@ -0,0 +1,94 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Dtd.h" +#include "Syntax.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Dtd::Dtd(const StringC &name, Boolean isBase) +: name_(new StringResource(name)), + nCurrentAttribute_(0), + nElementDefinition_(0), + nAttributeDefinitionList_(0), + nElementType_(0), + isBase_(isBase), + isInstantitated_(0) +{ + documentElementType_ = new ElementType(name, allocElementTypeIndex()); + insertElementType(documentElementType_); +} + +Dtd::~Dtd() {} + +Boolean Dtd::shortrefIndex(const StringC &str, const Syntax &syntax, + size_t &index) +{ + const int *indexP = shortrefTable_.lookup(str); + if (indexP) { + index = *indexP; + return 1; + } + if (!syntax.isValidShortref(str)) + return 0; + shortrefTable_.insert(str, int(shortrefs_.size())); + index = shortrefs_.size(); + shortrefs_.push_back(str); + return 1; +} + +void Dtd::addNeededShortref(const StringC &str) +{ + if (!shortrefTable_.lookup(str)) { + shortrefTable_.insert(str, shortrefs_.size()); + shortrefs_.push_back(str); + } +} + +void Dtd::setDefaultEntity(const Ptr &entity, + ParserState &parser) +{ + defaultEntity_ = entity; + + // If the new default entity was defined in a DTD, then + // any defaulted entities must have come from an LPD + // on the first pass, in which case we shouldn't replace them. + // Otherwise we need to replace all the defaulted entities. + if (entity->declInActiveLpd()) { + NamedResourceTable tem; + { + EntityIter iter(generalEntityTable_); + for (;;) { + Ptr old(iter.next()); + if (old.isNull()) + break; + if (old->defaulted()) { + Ptr e(defaultEntity_->copy()); + e->setDefaulted(); + e->setName(old->name()); + e->generateSystemId(parser); + tem.insert(e); + } + } + } + { + EntityIter iter(tem); + for (;;) { + Ptr e(iter.next()); + if (e.isNull()) + break; + generalEntityTable_.insert(e, 1); + } + } + } +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/DtdDeclEventHandler.cxx b/lib/DtdDeclEventHandler.cxx new file mode 100644 index 0000000..310323f --- /dev/null +++ b/lib/DtdDeclEventHandler.cxx @@ -0,0 +1,56 @@ +// Copyright (c) 1999 Matthias Clasen +// See the file COPYING for copying permission. + +#include "splib.h" +#include "DtdDeclEventHandler.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +DtdDeclEventHandler::DtdDeclEventHandler(const StringC &pubid) +: pubid_(pubid), match_(0) +{ +} + +void DtdDeclEventHandler::message(MessageEvent *event) +{ + switch (event->message().type->severity()) { + case MessageType::quantityError: + case MessageType::error: + case MessageType::idrefError: + delete event; + cancel(); + break; + case MessageType::info: + case MessageType::warning: + delete event; + break; + } +} + +void DtdDeclEventHandler::startDtd(StartDtdEvent *event) +{ + const Entity *entity = event->entity().pointer(); + if (entity) { + const StringC *pubid = + entity->asExternalEntity()->externalId().publicIdString(); + if (pubid && pubid_ == *pubid) + match_ = 1; + } + delete event; + cancel(); +} + +Boolean DtdDeclEventHandler::match() const +{ + return match_; +} + +#ifdef SP_NAMESPACE +} +#endif + + + diff --git a/lib/DtdDeclEventHandler.h b/lib/DtdDeclEventHandler.h new file mode 100644 index 0000000..755e4ef --- /dev/null +++ b/lib/DtdDeclEventHandler.h @@ -0,0 +1,30 @@ +// Copyright (c) 1999 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef DtdDeclEventHandler_INCLUDED +#define DtdDeclEventHandler_INCLUDED 1 + +#include "Boolean.h" +#include "Event.h" +#include "ErrorCountEventHandler.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class DtdDeclEventHandler : public ErrorCountEventHandler { + public: + DtdDeclEventHandler(const StringC &pubid); + void message(MessageEvent *); + void startDtd(StartDtdEvent *); + Boolean match() const; + private: + StringC pubid_; + Boolean match_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not DtdDeclEventHandler_INCLUDED */ diff --git a/lib/EUCJPCodingSystem.cxx b/lib/EUCJPCodingSystem.cxx new file mode 100644 index 0000000..45e100c --- /dev/null +++ b/lib/EUCJPCodingSystem.cxx @@ -0,0 +1,115 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MULTI_BYTE + +#include "EUCJPCodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class EUCJPDecoder : public Decoder { +public: + EUCJPDecoder() { } + size_t decode(Char *, const char *, size_t, const char **); +private: +}; + +class EUCJPEncoder : public Encoder { +public: + EUCJPEncoder() { } + void output(const Char *, size_t, OutputByteStream *); +}; + +Decoder *EUCJPCodingSystem::makeDecoder() const +{ + return new EUCJPDecoder; +} + +Encoder *EUCJPCodingSystem::makeEncoder() const +{ + return new EUCJPEncoder; +} + +size_t EUCJPDecoder::decode(Char *to, const char *s, + size_t slen, const char **rest) +{ + Char *start = to; + const unsigned char *us = (const unsigned char *)s; + while (slen > 0) { + if (!(*us & 0x80)) { + // G0 + *to++ = *us++; + slen--; + } + else if (*us == 0x8e) { + // G2 + if (slen < 2) + break; + slen -= 2; + ++us; + *to++ = *us++ | 0x80; + } + else if (*us == 0x8f) { + // G3 + if (slen < 3) + break; + slen -= 3; + ++us; + unsigned short n = (*us++ | 0x80) << 8; + n |= (*us++ & ~0x80); + *to++ = n; + } + else { + // G1 + if (slen < 2) + break; + slen -= 2; + unsigned short n = *us++ << 8; + n |= (*us++ | 0x80); + *to++ = n; + } + } + *rest = (const char *)us; + return to - start; +} + + +void EUCJPEncoder::output(const Char *s, size_t n, OutputByteStream *sb) +{ + for (; n > 0; s++, n--) { + Char c = *s; + unsigned short mask = (unsigned short)(c & 0x8080); + if (mask == 0) + sb->sputc((unsigned char)(c & 0xff)); + else if (mask == 0x8080) { + sb->sputc((unsigned char)((c >> 8) & 0xff)); + sb->sputc((unsigned char)(c & 0xff)); + } + else if (mask == 0x0080) { + sb->sputc((unsigned char)0x8e); + sb->sputc((unsigned char)(c & 0xff)); + } + else { + // mask == 0x8000 + sb->sputc((unsigned char)0x8f); + sb->sputc((unsigned char)((c >> 8) & 0xff)); + sb->sputc((unsigned char)(c & 0x7f)); + } + } +} + +#ifdef SP_NAMESPACE +} +#endif + +#else /* not SP_MULTI_BYTE */ + +#ifndef __GNUG__ +static char non_empty_translation_unit; // sigh +#endif + +#endif /* not SP_MULTI_BYTE */ diff --git a/lib/ElementType.cxx b/lib/ElementType.cxx new file mode 100644 index 0000000..2ce6472 --- /dev/null +++ b/lib/ElementType.cxx @@ -0,0 +1,114 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "ElementType.h" +#include "ContentToken.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +ElementType::ElementType(const StringC &name, size_t index) +: Named(name), index_(index), map_(0), defIndex_(0) +{ +} + +ElementDefinition::ElementDefinition(const Location &location, + size_t index, + unsigned char omitFlags, + DeclaredContent declaredContent, + Boolean allowImmediateRecursion) +: location_(location), + index_(index), + omitFlags_(omitFlags), + declaredContent_(declaredContent), + allowImmediateRecursion_(allowImmediateRecursion) +{ + computeMode(); +} + +ElementDefinition::ElementDefinition(const Location &location, + size_t index, + unsigned char omitFlags, + DeclaredContent declaredContent, + Owner &modelGroup) +: location_(location), + index_(index), + omitFlags_(omitFlags), + declaredContent_(declaredContent), + modelGroup_(modelGroup.extract()) +{ + computeMode(); +} + +ElementDefinition::~ElementDefinition() {} + +void ElementDefinition::computeMode() +{ + switch (declaredContent_) { + case modelGroup: + if (!modelGroup_->containsPcdata()) { + netMode_ = econnetMode; + mode_ = econMode; + break; + } + // fall through + case any: + netMode_ = mconnetMode; + mode_ = mconMode; + break; + case cdata: + netMode_ = cconnetMode; + mode_ = cconMode; + break; + case rcdata: + netMode_ = rcconnetMode; + mode_ = rcconMode; + break; + case empty: + break; + default: + CANNOT_HAPPEN(); + } +} + +void ElementType::swap(ElementType &to) +{ + Named::swap(to); + { + size_t tem = to.index_; + to.index_ = index_; + index_ = tem; + } + { + size_t tem = to.defIndex_; + to.defIndex_ = defIndex_; + defIndex_ = tem; + } + def_.swap(to.def_); + { + const ShortReferenceMap *tem = to.map_; + to.map_ = map_; + map_ = tem; + } +} + +RankStem::RankStem(const StringC &name, size_t index) +: Named(name), index_(index) +{ +} + +void RankStem::addDefinition(const ConstPtr &p) +{ + def_.push_back(p); +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Entity.cxx b/lib/Entity.cxx new file mode 100644 index 0000000..51d789a --- /dev/null +++ b/lib/Entity.cxx @@ -0,0 +1,624 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Entity.h" +#include "ParserState.h" +#include "macros.h" +#include "InternalInputSource.h" +#include "MessageArg.h" +#include "ParserMessages.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Entity::Entity(const StringC &name, DeclType declType, DataType dataType, + const Location &defLocation) +: EntityDecl(name, declType, dataType, defLocation), + used_(0), defaulted_(0) +{ +} + +void Entity::generateSystemId(ParserState &) +{ +} + +InternalEntity::InternalEntity(const StringC &name, + DeclType declType, + DataType dataType, + const Location &defLocation, + Text &text) +: Entity(name, declType, dataType, defLocation) +{ + text.swap(text_); +} + +PiEntity::PiEntity(const StringC &name, DeclType declType, + const Location &defLocation, Text &text) +: InternalEntity(name, declType, pi, defLocation, text) +{ +} + +Entity *PiEntity::copy() const +{ + return new PiEntity(*this); +} + +InternalDataEntity::InternalDataEntity(const StringC &name, DataType dataType, + const Location &defLocation, Text &text) +: InternalEntity(name, generalEntity, dataType, defLocation, text) +{ +} + + +InternalCdataEntity::InternalCdataEntity(const StringC &name, + const Location &defLocation, + Text &text) +: InternalDataEntity(name, cdata, defLocation, text) +{ +} + +Entity *InternalCdataEntity::copy() const +{ + return new InternalCdataEntity(*this); +} + +InternalSdataEntity::InternalSdataEntity(const StringC &name, + const Location &defLocation, + Text &text) +: InternalDataEntity(name, sdata, defLocation, text) +{ +} + +Entity *InternalSdataEntity::copy() const +{ + return new InternalSdataEntity(*this); +} + +InternalTextEntity::InternalTextEntity(const StringC &name, DeclType declType, + const Location &defLocation, Text &text, + Bracketed bracketed) +: InternalEntity(name, declType, sgmlText, defLocation, text), + bracketed_(bracketed) +{ +} + +Entity *InternalTextEntity::copy() const +{ + return new InternalTextEntity(*this); +} + + +ExternalEntity::ExternalEntity(const StringC &name, + DeclType declType, + DataType dataType, + const Location &defLocation, + const ExternalId &id) +: Entity(name, declType, dataType, defLocation), externalId_(id) +{ +} + +const ExternalEntity *ExternalEntity::asExternalEntity() const +{ + return this; +} + +const StringC *ExternalEntity::systemIdPointer() const +{ + return externalId_.systemIdString(); +} + +const StringC *ExternalEntity::effectiveSystemIdPointer() const +{ + if (externalId_.effectiveSystemId().size() > 0) + return &externalId_.effectiveSystemId(); + return 0; +} + +const StringC *ExternalEntity::publicIdPointer() const +{ + return externalId_.publicIdString(); +} + +void ExternalEntity::generateSystemId(ParserState &parser) +{ + StringC str; + if (parser.entityCatalog().lookup(*this, + parser.syntax(), + parser.sd().docCharset(), + parser.messenger(), + str)) + externalId_.setEffectiveSystem(str); + // Don't generate warning when declType == sgml. + else if (externalId_.publicIdString()) { + if (declType() != sgml) + parser.message(ParserMessages::cannotGenerateSystemIdPublic, + StringMessageArg(*externalId_.publicIdString())); + } + else { + switch (declType()) { + case generalEntity: + parser.message(ParserMessages::cannotGenerateSystemIdGeneral, + StringMessageArg(name())); + break; + case parameterEntity: + parser.message(ParserMessages::cannotGenerateSystemIdParameter, + StringMessageArg(name())); + break; + case doctype: + parser.message(ParserMessages::cannotGenerateSystemIdDoctype, + StringMessageArg(name())); + break; + case linktype: + parser.message(ParserMessages::cannotGenerateSystemIdLinktype, + StringMessageArg(name())); + break; + case sgml: + break; + default: + CANNOT_HAPPEN(); + } + } +} + +ExternalTextEntity::ExternalTextEntity(const StringC &name, + DeclType declType, + const Location &defLocation, + const ExternalId &id) +: ExternalEntity(name, declType, sgmlText, defLocation, id) +{ +} + +Entity *ExternalTextEntity::copy() const +{ + return new ExternalTextEntity(*this); +} + +ExternalNonTextEntity::ExternalNonTextEntity(const StringC &name, + DeclType declType, + DataType dataType, + const Location &defLocation, + const ExternalId &id) +: ExternalEntity(name, declType, dataType, defLocation, id) +{ +} + +ExternalDataEntity::ExternalDataEntity(const StringC &name, + DataType dataType, + const Location &defLocation, + const ExternalId &id, + const ConstPtr &nt, + AttributeList &attributes, + DeclType declType) +: ExternalNonTextEntity(name, declType, dataType, defLocation, id), + notation_(nt) +{ + attributes.swap(attributes_); +} + +void ExternalDataEntity::setNotation(const ConstPtr ¬ation, + AttributeList &attributes) +{ + notation_ = notation; + attributes.swap(attributes_); +} + +Entity *ExternalDataEntity::copy() const +{ + return new ExternalDataEntity(*this); +} + +SubdocEntity::SubdocEntity(const StringC &name, + const Location &defLocation, + const ExternalId &id) +: ExternalNonTextEntity(name, generalEntity, subdoc, defLocation, id) +{ +} + +Entity *SubdocEntity::copy() const +{ + return new SubdocEntity(*this); +} + +Boolean Entity::isDataOrSubdoc() const +{ + return 0; +} + +Boolean Entity::isCharacterData() const +{ + return 0; +} + +const ExternalEntity *Entity::asExternalEntity() const +{ + return 0; +} + +const ExternalDataEntity *Entity::asExternalDataEntity() const +{ + return 0; +} + +const SubdocEntity *Entity::asSubdocEntity() const +{ + return 0; +} + +const InternalEntity *Entity::asInternalEntity() const +{ + return 0; +} + +void Entity::dsReference(ParserState &parser, + const Ptr &origin) + const +{ + normalReference(parser, origin, 1); +} + +void Entity::declReference(ParserState &parser, + const Ptr &origin) + const +{ + normalReference(parser, origin, 0); + if (parser.currentMarkup()) + parser.currentMarkup()->addEntityStart(origin); +} + +void Entity::contentReference(ParserState &parser, + const Ptr &origin) + const +{ + normalReference(parser, origin, 1); +} + +void Entity::rcdataReference(ParserState &parser, + const Ptr &origin) + const +{ + normalReference(parser, origin, 1); +} + +void Entity::litReference(Text &, ParserState &parser, + const Ptr &origin, + Boolean) + const +{ + normalReference(parser, origin, 0); +} + +const InternalEntity *InternalEntity::asInternalEntity() const +{ + return this; +} + +void PiEntity::litReference(Text &, ParserState &parser, + const Ptr &, + Boolean) const +{ + parser.message(ParserMessages::piEntityReference); +} + +void PiEntity::normalReference(ParserState &parser, + const Ptr &origin, + Boolean) const +{ + parser.noteMarkup(); + parser.eventHandler().pi(new (parser.eventAllocator()) + PiEntityEvent(this, origin.pointer())); +} + +void PiEntity::declReference(ParserState &parser, + const Ptr &) const +{ + parser.message(ParserMessages::piEntityReference); +} + +void PiEntity::rcdataReference(ParserState &parser, + const Ptr &) const +{ + parser.message(ParserMessages::piEntityRcdata); +} + +void InternalDataEntity::declReference(ParserState &parser, + const Ptr &) const +{ + parser.message(ParserMessages::internalDataEntityReference); +} + +Boolean InternalDataEntity::isDataOrSubdoc() const +{ + return 1; +} + +void InternalCdataEntity::normalReference(ParserState &parser, + const Ptr &origin, + Boolean) const +{ + checkRef(parser); + checkEntlvl(parser); + if (string().size() > 0) { + parser.noteData(); + parser.eventHandler().data(new (parser.eventAllocator()) + CdataEntityEvent(this, origin.pointer())); + } +} + +Boolean InternalCdataEntity::isCharacterData() const +{ + return string().size() > 0; +} + +void InternalCdataEntity::litReference(Text &text, + ParserState &parser, + const Ptr &origin, + Boolean squeeze) const +{ + checkRef(parser); + checkEntlvl(parser); + if (squeeze) { + Location loc(origin.pointer(), 0); + text.addEntityStart(loc); + text.addCharsTokenize(text_.string(), loc, parser.syntax().space()); + loc += text_.size(); + text.addEntityEnd(loc); + } + else + text.addCdata(string(), origin.pointer()); +} + + +void InternalSdataEntity::normalReference(ParserState &parser, + const Ptr &origin, + Boolean) const +{ + checkRef(parser); + checkEntlvl(parser); + parser.noteData(); + parser.eventHandler().sdataEntity(new (parser.eventAllocator()) + SdataEntityEvent(this, + origin.pointer())); +} + +Boolean InternalSdataEntity::isCharacterData() const +{ + return 1; +} + +void InternalSdataEntity::litReference(Text &text, + ParserState &parser, + const Ptr &origin, + Boolean squeeze) const +{ + checkRef(parser); + checkEntlvl(parser); + if (squeeze) { + Location loc(origin.pointer(), 0); + text.addEntityStart(loc); + text.addCharsTokenize(text_.string(), loc, parser.syntax().space()); + loc += text_.size(); + text.addEntityEnd(loc); + } + else + text.addSdata(string(), origin.pointer()); +} + +void InternalTextEntity::normalReference(ParserState &parser, + const Ptr &origin, + Boolean generateEvent) const +{ + checkRef(parser); + checkEntlvl(parser); + if (checkNotOpen(parser)) { + if (generateEvent && parser.wantMarkup()) + parser.eventHandler().entityStart(new (parser.eventAllocator()) + EntityStartEvent(origin)); + parser.pushInput(new (parser.internalAllocator()) + InternalInputSource(text_.string(), origin.pointer())); + } +} + +void InternalTextEntity::litReference(Text &text, + ParserState &parser, + const Ptr &origin, + Boolean) const +{ + text.addEntityStart(Location(origin.pointer(), 0)); + normalReference(parser, origin, 0); +} + +void ExternalTextEntity::normalReference(ParserState &parser, + const Ptr &origin, + Boolean generateEvent) const +{ + checkRef(parser); + checkEntlvl(parser); + if (checkNotOpen(parser)) { + if (generateEvent && parser.wantMarkup()) + parser.eventHandler().entityStart(new (parser.eventAllocator()) + EntityStartEvent(origin)); + if (externalId().effectiveSystemId().size()) + parser.pushInput(parser.entityManager() + .open(externalId().effectiveSystemId(), + parser.sd().docCharset(), + origin.pointer(), + 0, + parser.messenger())); + else + parser.message(ParserMessages::nonExistentEntityRef, + StringMessageArg(name()), + defLocation()); + } +} + +void ExternalTextEntity::litReference(Text &text, + ParserState &parser, + const Ptr &origin, + Boolean) const +{ + if (parser.options().warnAttributeValueExternalEntityRef + && declType() == generalEntity) + parser.message(ParserMessages::attributeValueExternalEntityRef); + text.addEntityStart(Location(origin.pointer(), 0)); + normalReference(parser, origin, 0); +} + +const ExternalDataEntity *ExternalDataEntity::asExternalDataEntity() const +{ + return this; +} + +void ExternalDataEntity::contentReference(ParserState &parser, + const Ptr &origin) const +{ + if (parser.options().warnExternalDataEntityRef) + parser.message(ParserMessages::externalDataEntityRef); + checkRef(parser); + checkEntlvl(parser); + parser.noteData(); + parser.eventHandler().externalDataEntity(new (parser.eventAllocator()) + ExternalDataEntityEvent(this, origin.pointer())); +} + +Boolean ExternalNonTextEntity::isDataOrSubdoc() const +{ + return 1; +} + +Boolean ExternalNonTextEntity::isCharacterData() const +{ + return 1; +} + + +void ExternalNonTextEntity::dsReference(ParserState &parser, + const Ptr &) const +{ + parser.message(ParserMessages::dtdDataEntityReference); +} + +void ExternalNonTextEntity::normalReference(ParserState &parser, + const Ptr &, + Boolean) const +{ + parser.message(ParserMessages::externalNonTextEntityReference); +} + +void ExternalNonTextEntity::litReference(Text &, + ParserState &parser, + const Ptr &, + Boolean) const +{ + parser.message(ParserMessages::externalNonTextEntityRcdata); +} + +void ExternalNonTextEntity::rcdataReference(ParserState &parser, + const Ptr &) const +{ + parser.message(ParserMessages::externalNonTextEntityRcdata); +} + +void SubdocEntity::contentReference(ParserState &parser, + const Ptr &origin) const +{ + checkRef(parser); + checkEntlvl(parser); + parser.noteData(); + parser.eventHandler().subdocEntity(new (parser.eventAllocator()) + SubdocEntityEvent(this, origin.pointer())); +} + +const SubdocEntity *SubdocEntity::asSubdocEntity() const +{ + return this; +} + +IgnoredEntity::IgnoredEntity(const StringC &name, DeclType declType) +: Entity(name, declType, sgmlText, Location()) +{ +} + +Entity *IgnoredEntity::copy() const +{ + return new IgnoredEntity(*this); +} + +void IgnoredEntity::declReference(ParserState &parser, + const Ptr &origin) + const +{ + if (parser.currentMarkup()) { + parser.currentMarkup()->addEntityStart(origin); + parser.currentMarkup()->addEntityEnd(); + } +} + +void IgnoredEntity::litReference(Text &text, + ParserState &, + const Ptr &origin, + Boolean) const +{ + text.addEntityStart(Location(origin.pointer(), 0)); + text.addEntityEnd(Location(origin.pointer(), 0)); +} + +void IgnoredEntity::normalReference(ParserState &parser, + const Ptr &origin, + Boolean generateEvent) const +{ + if (generateEvent && parser.wantMarkup()) { + parser.eventHandler().entityStart(new (parser.eventAllocator()) + EntityStartEvent(origin)); + Location loc(origin.pointer(), 0); + parser.eventHandler().entityEnd(new (parser.eventAllocator()) + EntityEndEvent(loc)); + } +} + +void Entity::checkEntlvl(ParserState &parser) +{ + // -1 because document entity isn't counted + if (parser.inputLevel() - 1 == parser.syntax().entlvl()) + parser.message(ParserMessages::entlvl, + NumberMessageArg(parser.syntax().entlvl())); +} + +Boolean Entity::checkNotOpen(ParserState &parser) const +{ + if (parser.entityIsOpen(this)) { + parser.message(ParserMessages::recursiveEntityReference, + StringMessageArg(name())); + return 0; + } + return 1; +} + +void InternalEntity::checkRef(ParserState &parser) const +{ + if (parser.sd().entityRef() == Sd::entityRefNone) + parser.message(ParserMessages::entityRefNone); +} + +void ExternalEntity::checkRef(ParserState &parser) const +{ + if (parser.sd().entityRef() != Sd::entityRefAny) + parser.message(ParserMessages::entityRefInternal); +} + +void PredefinedEntity::checkRef(ParserState &parser) const +{ +} + +void Entity::checkRef(ParserState &parser) const +{ +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/EntityApp.cxx b/lib/EntityApp.cxx new file mode 100644 index 0000000..acc7d9b --- /dev/null +++ b/lib/EntityApp.cxx @@ -0,0 +1,197 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "EntityApp.h" +#include "sptchar.h" + +#include + +#include "PosixStorage.h" +#ifdef SP_WININET +#include "WinInetStorage.h" +#else +#include "URLStorage.h" +#endif +#include "LiteralStorage.h" +#include "NotationStorage.h" +#include "ExtendEntityManager.h" +#include "SOEntityCatalog.h" +#include "CodingSystem.h" +#include "macros.h" +#include "EntityAppMessages.h" + +#ifndef SGML_SEARCH_PATH_DEFAULT +#define SGML_SEARCH_PATH_DEFAULT SP_T("") +#endif + +#ifndef SGML_CATALOG_FILES_DEFAULT +#define SGML_CATALOG_FILES_DEFAULT SP_T("") +#endif /* not SGML_CATALOG_FILES_DEFAULT */ + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const Char FILE_SEP = PATH_SEPARATOR; + +EntityApp::EntityApp(const char *requiredInternalCode) +: CmdLineApp(requiredInternalCode), + mapCatalogDocument_(0), + restrictFileReading_(0) +{ + registerOption('c', SP_T("catalog"), + EntityAppMessages::sysid, EntityAppMessages::cHelp); + registerOption('C', SP_T("catalogs"), EntityAppMessages::CHelp); + registerOption('D', SP_T("directory"), + EntityAppMessages::directory, EntityAppMessages::DHelp); + registerOption('R', SP_T("restricted"), + EntityAppMessages::RHelp); +} + +void EntityApp::processOption(AppChar opt, const AppChar *arg) +{ + switch (opt) { + case 'c': + catalogSysids_.push_back(arg); + break; + case 'C': + mapCatalogDocument_ = 1; + break; + case 'D': + searchDirs_.push_back(arg); + break; + case 'R': + restrictFileReading_ = 1; + break; + default: + CmdLineApp::processOption(opt, arg); + break; + } +} + +int EntityApp::processArguments(int argc, AppChar **argv) +{ + StringC sysid; + if (!makeSystemId(argc, argv, sysid)) + return 1; + return processSysid(sysid); +} + +Boolean EntityApp::makeSystemId(int nFiles, AppChar *const *files, + StringC &result) +{ + Vector filenames(nFiles == 0 ? 1 : nFiles); + int i; + for (i = 0; i < nFiles; i++) + filenames[i] = convertInput(tcscmp(files[i], SP_T("-")) == 0 + ? SP_T("0") + : files[i]); + if (nFiles == 0) + filenames[0] = convertInput(SP_T("0")); + return entityManager()->mergeSystemIds(filenames, + mapCatalogDocument_, + systemCharset(), + *this, + result); +} + + +Ptr &EntityApp::entityManager() +{ + if (!entityManager_.isNull()) + return entityManager_; + PosixStorageManager *sm + = new PosixStorageManager("OSFILE", + &systemCharset(), +#ifndef SP_WIDE_SYSTEM + codingSystem(), +#endif + 5, + restrictFileReading_); + size_t i; + for (i = 0; i < searchDirs_.size(); i++) + sm->addSearchDir(convertInput(searchDirs_[i])); + { + const AppChar *e = tgetenv(SP_T("SGML_SEARCH_PATH")); + if (!e) + e = SGML_SEARCH_PATH_DEFAULT; + if (*e) { + StringC str(convertInput(e)); + size_t i = 0; + size_t start = 0; + for (;;) { + if (i == str.size() || str[i] == FILE_SEP) { + sm->addSearchDir(StringC(str.data() + start, + i - start)); + if (i == str.size()) + break; + start = ++i; + } + else + i++; + } + } + } + + entityManager_ = ExtendEntityManager::make(sm, + codingSystem(), + inputCodingSystemKit(), + internalCharsetIsDocCharset_); + entityManager_ + ->registerStorageManager(new PosixFdStorageManager("OSFD", + &systemCharset())); +#ifdef SP_WININET + entityManager_->registerStorageManager(new WinInetStorageManager("URL")); +#else + entityManager_->registerStorageManager(new URLStorageManager("URL")); +#endif + entityManager_->registerStorageManager(new LiteralStorageManager("LITERAL")); + entityManager_->registerStorageManager(new NotationStorageManager("CLSID")); + entityManager_->registerStorageManager(new NotationStorageManager("MIMETYPE")); + Vector v; + for (i = 0; i < catalogSysids_.size(); i++) + // filenames specified on command-line must exist + v.push_back(convertInput(catalogSysids_[i])); + { + const AppChar *e = tgetenv(SP_T("SGML_CATALOG_FILES")); + if (!e) + e = SGML_CATALOG_FILES_DEFAULT; + if (*e) { + StringC str(convertInput(e)); + size_t i = 0; + size_t start = 0; + for (;;) { + if (i == str.size() || str[i] == FILE_SEP) { + v.push_back(StringC(str.data() + start, + i - start)); + if (i == str.size()) + break; + start = ++i; + } + else + i++; + } + } + } + const SP_TCHAR *useDocCatalogStr = tgetenv(SP_T("SP_USE_DOCUMENT_CATALOG")); + Boolean useDocCatalog = true; + if (useDocCatalogStr + && (stringMatches(useDocCatalogStr, "NO") + || stringMatches(useDocCatalogStr, "0"))) + useDocCatalog = false; + entityManager_->setCatalogManager(SOCatalogManager::make(v, + catalogSysids_.size(), + &systemCharset(), + &systemCharset(), + useDocCatalog)); + return entityManager_; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/EntityAppMessages.h b/lib/EntityAppMessages.h new file mode 100644 index 0000000..1ee3208 --- /dev/null +++ b/lib/EntityAppMessages.h @@ -0,0 +1,70 @@ +// This file was automatically generated from EntityAppMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct EntityAppMessages { + // 4100 + static const MessageType1 cHelp; + // 4101 + static const MessageType1 CHelp; + // 4102 + static const MessageType1 DHelp; + // 4103 + static const MessageType1 RHelp; + // 4104 + static const MessageFragment directory; + // 4105 + static const MessageFragment sysid; +}; +const MessageType1 EntityAppMessages::cHelp( +MessageType::info, +&libModule, +4100 +#ifndef SP_NO_MESSAGE_TEXT +,"Use catalog %1." +#endif +); +const MessageType1 EntityAppMessages::CHelp( +MessageType::info, +&libModule, +4101 +#ifndef SP_NO_MESSAGE_TEXT +,"Arguments are catalogs, use DOCUMENT entry." +#endif +); +const MessageType1 EntityAppMessages::DHelp( +MessageType::info, +&libModule, +4102 +#ifndef SP_NO_MESSAGE_TEXT +,"Search files in directory %1." +#endif +); +const MessageType1 EntityAppMessages::RHelp( +MessageType::info, +&libModule, +4103 +#ifndef SP_NO_MESSAGE_TEXT +,"Restrict file reading (for use in Web apps)." +#endif +); +const MessageFragment EntityAppMessages::directory( +&libModule, +4104 +#ifndef SP_NO_MESSAGE_TEXT +,"DIRECTORY" +#endif +); +const MessageFragment EntityAppMessages::sysid( +&libModule, +4105 +#ifndef SP_NO_MESSAGE_TEXT +,"SYSID" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/EntityAppMessages.msg b/lib/EntityAppMessages.msg new file mode 100644 index 0000000..88a1dcd --- /dev/null +++ b/lib/EntityAppMessages.msg @@ -0,0 +1,12 @@ +# Copyright (c) 1999 Matthias Clasen +# See the file COPYING for copying permission. + +# EntityApp message definitions + +=4100 +I1+cHelp++Use catalog %1. +I1+CHelp++Arguments are catalogs, use DOCUMENT entry. +I1+DHelp++Search files in directory %1. +I1+RHelp++Restrict file reading (for use in Web apps). ++directory++DIRECTORY ++sysid++SYSID diff --git a/lib/EntityAppMessages.rc b/lib/EntityAppMessages.rc new file mode 100644 index 0000000..f3307c3 --- /dev/null +++ b/lib/EntityAppMessages.rc @@ -0,0 +1,9 @@ +STRINGTABLE +BEGIN + 4100, "Use catalog %1." + 4101, "Arguments are catalogs, use DOCUMENT entry." + 4102, "Search files in directory %1." + 4103, "Restrict file reading (for use in Web apps)." + 4104, "DIRECTORY" + 4105, "SYSID" +END diff --git a/lib/EntityCatalog.cxx b/lib/EntityCatalog.cxx new file mode 100644 index 0000000..e6330cd --- /dev/null +++ b/lib/EntityCatalog.cxx @@ -0,0 +1,61 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "EntityCatalog.h" +#include "EntityDecl.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +EntityCatalog::~EntityCatalog() +{ +} + + +Boolean EntityCatalog::sgmlDecl(const CharsetInfo &, + Messenger &, + const StringC &, + StringC &) const +{ + return 0; +} + +Boolean EntityCatalog::lookup(const EntityDecl &decl, + const Syntax &, + const CharsetInfo &, + Messenger &, + StringC &str) const +{ + const StringC *p = decl.systemIdPointer(); + if (!p) + return 0; + str = *p; + return 1; +} + +Boolean EntityCatalog::lookupPublic(const StringC &, + const CharsetInfo &, + Messenger &, + StringC &) const +{ + return 0; +} + +Boolean EntityCatalog::lookupChar(const StringC &, + const CharsetInfo &, + Messenger &, + UnivChar &) const +{ + return 0; +} + +EntityCatalog::Syntax::~Syntax() {} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/EntityDecl.cxx b/lib/EntityDecl.cxx new file mode 100644 index 0000000..16acb4a --- /dev/null +++ b/lib/EntityDecl.cxx @@ -0,0 +1,58 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "EntityDecl.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +EntityDecl::EntityDecl(const StringC &str, DeclType declType, DataType dataType, + const Location &defLocation) +: NamedResource(str), declType_(declType), dataType_(dataType), + defLocation_(defLocation), dtdIsBase_(0), lpdIsActive_(0) +{ +} + +void EntityDecl::setDeclIn(const ConstPtr > &dtdName, + Boolean dtdIsBase, + const ConstPtr > &lpdName, + Boolean lpdIsActive) +{ + dtdName_ = dtdName; + lpdName_ = lpdName; + dtdIsBase_ = dtdIsBase; + lpdIsActive_ = lpdIsActive; +} + +void EntityDecl::setDeclIn(const ConstPtr > &dtdName, + Boolean dtdIsBase) +{ + dtdName_ = dtdName; + lpdName_.clear(); + dtdIsBase_ = dtdIsBase; +} + +const StringC *EntityDecl::systemIdPointer() const +{ + return 0; +} + +const StringC *EntityDecl::publicIdPointer() const +{ + return 0; +} + +const StringC *EntityDecl::effectiveSystemIdPointer() const +{ + return 0; +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/EntityManager.cxx b/lib/EntityManager.cxx new file mode 100644 index 0000000..87282b9 --- /dev/null +++ b/lib/EntityManager.cxx @@ -0,0 +1,21 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "EntityManager.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +EntityManager::~EntityManager() +{ +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/EntityManagerMessages.h b/lib/EntityManagerMessages.h new file mode 100644 index 0000000..ebcb2a6 --- /dev/null +++ b/lib/EntityManagerMessages.h @@ -0,0 +1,222 @@ +// This file was automatically generated from EntityManagerMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct EntityManagerMessages { + // 2000 + static const MessageType1 fsiSyntax; + // 2001 + static const MessageType1 fsiMissingValue; + // 2002 + static const MessageType1 fsiValueAsName; + // 2003 + static const MessageType1 fsiBadSmcrd; + // 2004 + static const MessageType1 fsiUnknownBctf; + // 2005 + static const MessageType1 fsiUnknownEncoding; + // 2006 + static const MessageType1 fsiUnsupportedRecords; + // 2007 + static const MessageType1 fsiUnsupportedAttribute; + // 2008 + static const MessageType1 fsiUnsupportedAttributeToken; + // 2009 + static const MessageType1 fsiBadTracking; + // 2010 + static const MessageType1 fsiDuplicateAttribute; + // 2011 + static const MessageType1 fsiBadZapeof; + // 2012 + static const MessageType1 fsiBadSearch; + // 2013 + static const MessageType1 fsiBadFold; + // 2014 + static const MessageType0 fsiFoldNotNeutral; + // 2015 + static const MessageType0 fsiBctfEncodingNotApplicable; + // 2016 + static const MessageType0 fsiBctfAndEncoding; + // 2017 + static const MessageType0 fsiZapeofNotApplicable; + // 2018 + static const MessageType0 fsiRecordsNotApplicable; + // 2019 + static const MessageType1 fsiBadIndirect; + // 2020 + static const MessageType1 fsiLookupChar; +}; +const MessageType1 EntityManagerMessages::fsiSyntax( +MessageType::error, +&libModule, +2000 +#ifndef SP_NO_MESSAGE_TEXT +,"bad formal system identifier syntax in %1" +#endif +); +const MessageType1 EntityManagerMessages::fsiMissingValue( +MessageType::error, +&libModule, +2001 +#ifndef SP_NO_MESSAGE_TEXT +,"value for attribute %1 missing in formal system identifier" +#endif +); +const MessageType1 EntityManagerMessages::fsiValueAsName( +MessageType::error, +&libModule, +2002 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is a formal system identifier attribute value not an attribute name" +#endif +); +const MessageType1 EntityManagerMessages::fsiBadSmcrd( +MessageType::error, +&libModule, +2003 +#ifndef SP_NO_MESSAGE_TEXT +,"value of smcrd attribute must be a single character not %1" +#endif +); +const MessageType1 EntityManagerMessages::fsiUnknownBctf( +MessageType::error, +&libModule, +2004 +#ifndef SP_NO_MESSAGE_TEXT +,"unknown BCTF %1" +#endif +); +const MessageType1 EntityManagerMessages::fsiUnknownEncoding( +MessageType::error, +&libModule, +2005 +#ifndef SP_NO_MESSAGE_TEXT +,"unknown encoding %1" +#endif +); +const MessageType1 EntityManagerMessages::fsiUnsupportedRecords( +MessageType::error, +&libModule, +2006 +#ifndef SP_NO_MESSAGE_TEXT +,"unsupported record boundary indicator %1" +#endif +); +const MessageType1 EntityManagerMessages::fsiUnsupportedAttribute( +MessageType::warning, +&libModule, +2007 +#ifndef SP_NO_MESSAGE_TEXT +,"unsupported formal system identifier attribute %1" +#endif +); +const MessageType1 EntityManagerMessages::fsiUnsupportedAttributeToken( +MessageType::warning, +&libModule, +2008 +#ifndef SP_NO_MESSAGE_TEXT +,"unsupported formal system identifier attribute value %1" +#endif +); +const MessageType1 EntityManagerMessages::fsiBadTracking( +MessageType::error, +&libModule, +2009 +#ifndef SP_NO_MESSAGE_TEXT +,"bad value %1 for formal system identifier tracking attribute" +#endif +); +const MessageType1 EntityManagerMessages::fsiDuplicateAttribute( +MessageType::error, +&libModule, +2010 +#ifndef SP_NO_MESSAGE_TEXT +,"duplicate specification for formal system identifier attribute %1" +#endif +); +const MessageType1 EntityManagerMessages::fsiBadZapeof( +MessageType::error, +&libModule, +2011 +#ifndef SP_NO_MESSAGE_TEXT +,"bad value %1 for formal system identifier zapeof attribute" +#endif +); +const MessageType1 EntityManagerMessages::fsiBadSearch( +MessageType::error, +&libModule, +2012 +#ifndef SP_NO_MESSAGE_TEXT +,"bad value %1 for formal system identifier search attribute" +#endif +); +const MessageType1 EntityManagerMessages::fsiBadFold( +MessageType::error, +&libModule, +2013 +#ifndef SP_NO_MESSAGE_TEXT +,"bad value %1 for formal system identifier fold attribute" +#endif +); +const MessageType0 EntityManagerMessages::fsiFoldNotNeutral( +MessageType::error, +&libModule, +2014 +#ifndef SP_NO_MESSAGE_TEXT +,"fold attribute allowed only for neutral storage manager" +#endif +); +const MessageType0 EntityManagerMessages::fsiBctfEncodingNotApplicable( +MessageType::error, +&libModule, +2015 +#ifndef SP_NO_MESSAGE_TEXT +,"bctf and encoding attributes not applicable to this storage manager" +#endif +); +const MessageType0 EntityManagerMessages::fsiBctfAndEncoding( +MessageType::error, +&libModule, +2016 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot specify both bctf and encoding attribute" +#endif +); +const MessageType0 EntityManagerMessages::fsiZapeofNotApplicable( +MessageType::error, +&libModule, +2017 +#ifndef SP_NO_MESSAGE_TEXT +,"zapeof attribute not applicable to this storage manager" +#endif +); +const MessageType0 EntityManagerMessages::fsiRecordsNotApplicable( +MessageType::error, +&libModule, +2018 +#ifndef SP_NO_MESSAGE_TEXT +,"records attribute not applicable to this storage manager" +#endif +); +const MessageType1 EntityManagerMessages::fsiBadIndirect( +MessageType::error, +&libModule, +2019 +#ifndef SP_NO_MESSAGE_TEXT +,"bad value %1 for formal system identifier indirect attribute" +#endif +); +const MessageType1 EntityManagerMessages::fsiLookupChar( +MessageType::error, +&libModule, +2020 +#ifndef SP_NO_MESSAGE_TEXT +,"non-minimum data character (number %1) in value of formal system identifier lookup attribute" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/EntityManagerMessages.msg b/lib/EntityManagerMessages.msg new file mode 100644 index 0000000..0b47075 --- /dev/null +++ b/lib/EntityManagerMessages.msg @@ -0,0 +1,25 @@ +# Copyright (c) 1994, 1995, 1996, 1997 James Clark +# See the file COPYING for copying permission. +# EntityManager message definitions +=2000 +E1+fsiSyntax++bad formal system identifier syntax in %1 +E1+fsiMissingValue++value for attribute %1 missing in formal system identifier +E1+fsiValueAsName++%1 is a formal system identifier attribute value not an attribute name +E1+fsiBadSmcrd++value of smcrd attribute must be a single character not %1 +E1+fsiUnknownBctf++unknown BCTF %1 +E1+fsiUnknownEncoding++unknown encoding %1 +E1+fsiUnsupportedRecords++unsupported record boundary indicator %1 +W1+fsiUnsupportedAttribute++unsupported formal system identifier attribute %1 +W1+fsiUnsupportedAttributeToken++unsupported formal system identifier attribute value %1 +E1+fsiBadTracking++bad value %1 for formal system identifier tracking attribute +E1+fsiDuplicateAttribute++duplicate specification for formal system identifier attribute %1 +E1+fsiBadZapeof++bad value %1 for formal system identifier zapeof attribute +E1+fsiBadSearch++bad value %1 for formal system identifier search attribute +E1+fsiBadFold++bad value %1 for formal system identifier fold attribute +E0+fsiFoldNotNeutral++fold attribute allowed only for neutral storage manager +E0+fsiBctfEncodingNotApplicable++bctf and encoding attributes not applicable to this storage manager +E0+fsiBctfAndEncoding++cannot specify both bctf and encoding attribute +E0+fsiZapeofNotApplicable++zapeof attribute not applicable to this storage manager +E0+fsiRecordsNotApplicable++records attribute not applicable to this storage manager +E1+fsiBadIndirect++bad value %1 for formal system identifier indirect attribute +E1+fsiLookupChar++non-minimum data character (number %1) in value of formal system identifier lookup attribute diff --git a/lib/EntityManagerMessages.rc b/lib/EntityManagerMessages.rc new file mode 100644 index 0000000..9d508f7 --- /dev/null +++ b/lib/EntityManagerMessages.rc @@ -0,0 +1,24 @@ +STRINGTABLE +BEGIN + 2000, "bad formal system identifier syntax in %1" + 2001, "value for attribute %1 missing in formal system identifier" + 2002, "%1 is a formal system identifier attribute value not an attribute name" + 2003, "value of smcrd attribute must be a single character not %1" + 2004, "unknown BCTF %1" + 2005, "unknown encoding %1" + 2006, "unsupported record boundary indicator %1" + 2007, "unsupported formal system identifier attribute %1" + 2008, "unsupported formal system identifier attribute value %1" + 2009, "bad value %1 for formal system identifier tracking attribute" + 2010, "duplicate specification for formal system identifier attribute %1" + 2011, "bad value %1 for formal system identifier zapeof attribute" + 2012, "bad value %1 for formal system identifier search attribute" + 2013, "bad value %1 for formal system identifier fold attribute" + 2014, "fold attribute allowed only for neutral storage manager" + 2015, "bctf and encoding attributes not applicable to this storage manager" + 2016, "cannot specify both bctf and encoding attribute" + 2017, "zapeof attribute not applicable to this storage manager" + 2018, "records attribute not applicable to this storage manager" + 2019, "bad value %1 for formal system identifier indirect attribute" + 2020, "non-minimum data character (number %1) in value of formal system identifier lookup attribute" +END diff --git a/lib/EquivClass.h b/lib/EquivClass.h new file mode 100644 index 0000000..d7e4356 --- /dev/null +++ b/lib/EquivClass.h @@ -0,0 +1,25 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef EquivClass_INCLUDED +#define EquivClass_INCLUDED 1 + +#include "Link.h" +#include "types.h" +#include "ISet.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct EquivClass : public Link { + EquivClass(unsigned in = 0) : inSets(in) { } + ISet set; + unsigned inSets; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not EquivClass_INCLUDED */ diff --git a/lib/ErrnoMessageArg.cxx b/lib/ErrnoMessageArg.cxx new file mode 100644 index 0000000..6f26bdf --- /dev/null +++ b/lib/ErrnoMessageArg.cxx @@ -0,0 +1,24 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "ErrnoMessageArg.h" +#include "StringOf.h" +#include "MessageBuilder.h" + +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +RTTI_DEF1(ErrnoMessageArg, OtherMessageArg) + +MessageArg *ErrnoMessageArg::copy() const +{ + return new ErrnoMessageArg(*this); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ErrorCountEventHandler.cxx b/lib/ErrorCountEventHandler.cxx new file mode 100644 index 0000000..26c2263 --- /dev/null +++ b/lib/ErrorCountEventHandler.cxx @@ -0,0 +1,33 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "ErrorCountEventHandler.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +ErrorCountEventHandler::ErrorCountEventHandler(unsigned errorLimit) +: errorCount_(0), maxErrors_(errorLimit), cancel_(0) +{ +} + +void ErrorCountEventHandler::message(MessageEvent *event) +{ + noteMessage(event->message()); + delete event; +} + +void ErrorCountEventHandler::noteMessage(const Message &message) +{ + if (message.isError() && ++errorCount_ == maxErrors_) + cancel_ = 1; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Event.cxx b/lib/Event.cxx new file mode 100644 index 0000000..5dce1a9 --- /dev/null +++ b/lib/Event.cxx @@ -0,0 +1,582 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Event.h" +#include "Entity.h" +#include "Attribute.h" +#include "EventQueue.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +void Event::copyData() +{ +} + +LocatedEvent::LocatedEvent(Type type, const Location &location) +: location_(location), Event(type) +{ +} + +MarkupEvent::MarkupEvent(Type type) +: LocatedEvent(type, Location()) +{ +} + +MarkupEvent::MarkupEvent(Type type, const Location &loc, Markup *markup) +: LocatedEvent(type, loc) +{ + if (markup) + markup->swap(markup_); +} + +StartElementEvent::StartElementEvent(const ElementType *elementType, + const ConstPtr &dtd, + AttributeList *attributes, + const Location &startLocation, + Markup *markup) +: LocatedEvent(startElement, startLocation), + elementType_(elementType), + dtd_(dtd), + included_(0), + copied_(0), + markup_(markup), + attributes_(attributes) +{ +} + +StartElementEvent::~StartElementEvent() +{ + if (copied_) { + delete attributes_; + delete markup_; + } +} + +void StartElementEvent::copyData() +{ + if (!copied_) { + { + AttributeList *p = new AttributeList; + attributes_->swap(*p); + attributes_ = p; + } + if (markup_) { + Markup *p = new Markup; + markup_->swap(*p); + markup_ = p; + } + copied_ = 1; + } +} + +EndElementEvent::EndElementEvent(const ElementType *elementType, + const ConstPtr &dtd, + const Location &startLocation, + Markup *markup) +: LocatedEvent(endElement, startLocation), + elementType_(elementType), + dtd_(dtd), + included_(0), + copied_(0), + markup_(markup) +{ +} + +EndElementEvent::~EndElementEvent() +{ + if (copied_) + delete markup_; +} + +void EndElementEvent::copyData() +{ + if (!copied_) { + if (markup_) { + Markup *p = new Markup; + markup_->swap(*p); + markup_ = p; + } + copied_ = 1; + } +} + +DataEvent::DataEvent(Type type, const Char *p, size_t length, + const Location &location) +: p_(p),length_(length), LocatedEvent(type, location) +{ +} + +const Entity *DataEvent::entity() const +{ + return 0; +} + +Boolean DataEvent::isRe(unsigned long &) const +{ + return 0; +} + +ImmediateDataEvent::ImmediateDataEvent(Type type, const Char *p, size_t length, + const Location &location, + Boolean copy) +: DataEvent(type, p, length, location), alloc_(0) +{ + if (copy) + ImmediateDataEvent::copyData(); +} + +ImmediateDataEvent::~ImmediateDataEvent() +{ + if (alloc_) + delete [] alloc_; +} + +void ImmediateDataEvent::copyData() +{ + if (!alloc_) { + alloc_ = new Char[length_]; + memcpy(alloc_, p_, length_*sizeof(Char)); + p_ = alloc_; + } +} + +ReEvent::ReEvent(const Char *p, const Location &location, unsigned long serial) +: ImmediateDataEvent(characterData, p, 1, location, 0), + serial_(serial) +{ +} + +Boolean ReEvent::isRe(unsigned long &serial) const +{ + serial = serial_; + return 1; +} + +DataEntityEvent::DataEntityEvent(Type type, const InternalEntity *entity, + const ConstPtr &origin) +: DataEvent(type, + entity->string().data(), + entity->string().size(), + Location(origin, 0)) +{ +} + +const Entity *DataEntityEvent::entity() const +{ + return location().origin()->asEntityOrigin()->entity(); +} + +CdataEntityEvent::CdataEntityEvent(const InternalEntity *entity, + const ConstPtr &origin) +: DataEntityEvent(characterData, entity, origin) +{ +} + +SdataEntityEvent::SdataEntityEvent(const InternalEntity *entity, + const ConstPtr &origin) +: DataEntityEvent(sdataEntity, entity, origin) +{ +} + +MessageEvent::MessageEvent(const Message &m) +: Event(Event::message), message_(m) +{ +} + +MessageEvent::MessageEvent(Message &m) +: Event(Event::message) +{ + m.swap(message_); +} + +MessageEvent::~MessageEvent() +{ +} + +PiEvent::PiEvent(const Char *data, size_t dataLength, const Location &location) +: data_(data), dataLength_(dataLength), LocatedEvent(pi, location) +{ +} + +const Entity *PiEvent::entity() const +{ + return 0; +} + +PiEntityEvent::PiEntityEvent(const PiEntity *entity, + const ConstPtr &origin) +: PiEvent(entity->string().data(), entity->string().size(), + Location(origin, 0)) +{ +} + +const Entity *PiEntityEvent::entity() const +{ + return location().origin()->asEntityOrigin()->entity(); +} + +ImmediatePiEvent::ImmediatePiEvent(StringC &str, const Location &loc) +: PiEvent(str.data(), str.size(), loc) +{ + str.swap(string_); +} + +ExternalEntityEvent::ExternalEntityEvent(Type type, + const ConstPtr &origin) +: origin_(origin), Event(type) +{ +} + +ExternalDataEntityEvent::ExternalDataEntityEvent(const ExternalDataEntity *entity, + const ConstPtr &origin) +: dataEntity_(entity), ExternalEntityEvent(externalDataEntity, origin) +{ +} + +SubdocEntityEvent::SubdocEntityEvent(const SubdocEntity *entity, + const ConstPtr &origin) +: subdocEntity_(entity), ExternalEntityEvent(subdocEntity, origin) +{ +} + +NonSgmlCharEvent::NonSgmlCharEvent(Char c, const Location &location) +: LocatedEvent(nonSgmlChar, location), c_(c) +{ +} + +AppinfoEvent::AppinfoEvent(const Location &location) +: LocatedEvent(appinfo, location), appinfoNone_(1) +{ +} + +AppinfoEvent::AppinfoEvent(const Text &text, const Location &location) +: LocatedEvent(appinfo, location), appinfoNone_(0), appinfo_(text) +{ +} + +UselinkEvent::UselinkEvent(const ConstPtr &lpd, + const LinkSet *linkSet, + Boolean restore, + const Location &loc, + Markup *markup) +: MarkupEvent(uselink, loc, markup), + lpd_(lpd), + linkSet_(linkSet), + restore_(restore) +{ +} + +UsemapEvent::UsemapEvent(const ShortReferenceMap *map, + Vector &elements, + const ConstPtr &dtd, + const Location &loc, + Markup *markup) +: MarkupEvent(usemap, loc, markup), + map_(map), + dtd_(dtd) +{ + elements.swap(elements_); +} + +StartSubsetEvent::StartSubsetEvent(Type type, + const StringC &name, + const ConstPtr &entity, + Boolean hasInternalSubset, + const Location &loc, + Markup *markup) +: name_(name), entity_(entity), hasInternalSubset_(hasInternalSubset), + MarkupEvent(type, loc, markup) +{ +} + +StartDtdEvent::StartDtdEvent(const StringC &name, + const ConstPtr &entity, + Boolean hasInternalSubset, + const Location &loc, + Markup *markup) +: StartSubsetEvent(startDtd, name, entity, hasInternalSubset, loc, markup) +{ +} + +StartLpdEvent::StartLpdEvent(Boolean active, + const StringC &name, + const ConstPtr &entity, + Boolean hasInternalSubset, + const Location &loc, + Markup *markup) +: StartSubsetEvent(startLpd, name, entity, hasInternalSubset, loc, markup), + active_(active) +{ +} + +EndDtdEvent::EndDtdEvent(const ConstPtr &dtd, + const Location &loc, + Markup *markup) +: MarkupEvent(endDtd, loc, markup), dtd_(dtd) +{ +} + +EndLpdEvent::EndLpdEvent(const ConstPtr &lpd, + const Location &loc, + Markup *markup) +: MarkupEvent(endLpd, loc, markup), lpd_(lpd) +{ +} + +EndPrologEvent::EndPrologEvent(const ConstPtr &dtd, + const ConstPtr &lpd, + Vector &simpleLinkNames, + Vector &simpleLinkAttributes, + const Location &location) +: LocatedEvent(endProlog, location), dtd_(dtd), lpd_(lpd) +{ + simpleLinkAttributes.swap(simpleLinkAttributes_); + simpleLinkNames.swap(simpleLinkNames_); +} + +EndPrologEvent::EndPrologEvent(const ConstPtr &dtd, + const Location &location) +: LocatedEvent(endProlog, location), dtd_(dtd) +{ +} + +SgmlDeclEvent::SgmlDeclEvent(const ConstPtr &sd, + const ConstPtr &syntax) + +: sd_(sd), prologSyntax_(syntax), instanceSyntax_(syntax), + nextIndex_(0), MarkupEvent(sgmlDecl) +{ +} + +SgmlDeclEvent::SgmlDeclEvent(const ConstPtr &sd, + const ConstPtr &prologSyntax, + const ConstPtr &instanceSyntax, + const ConstPtr &refSd, + const ConstPtr &refSyntax, + Index nextIndex, + const StringC &implySystemId, + const Location &loc, + Markup *markup) +: sd_(sd), prologSyntax_(prologSyntax), instanceSyntax_(instanceSyntax), + refSd_(refSd), refSyntax_(refSyntax), + nextIndex_(nextIndex), implySystemId_(implySystemId), + MarkupEvent(sgmlDecl, loc, markup) +{ +} + +CommentDeclEvent::CommentDeclEvent(const Location &loc, + Markup *markup) +: MarkupEvent(commentDecl, loc, markup) +{ +} + +SSepEvent::SSepEvent(const Char *p, size_t length, + const Location &location, Boolean copy) +: ImmediateDataEvent(sSep, p, length, location, copy) +{ +} + +IgnoredRsEvent::IgnoredRsEvent(Char c, const Location &location) +: LocatedEvent(ignoredRs, location), c_(c) +{ +} + +IgnoredReEvent::IgnoredReEvent(Char c, const Location &location, + unsigned long serial) +: LocatedEvent(ignoredRe, location), + c_(c), + serial_(serial) +{ +} + +ReOriginEvent::ReOriginEvent(Char c, const Location &location, + unsigned long serial) +: LocatedEvent(reOrigin, location), c_(c), serial_(serial) +{ +} + + +IgnoredCharsEvent::IgnoredCharsEvent(const Char *p, size_t length, + const Location &location, Boolean copy) +: ImmediateDataEvent(ignoredChars, p, length, location, copy) +{ +} + +MarkedSectionEvent::MarkedSectionEvent(Type type, Status status, + const Location &loc, + Markup *markup) +: MarkupEvent(type, loc, markup), + status_(status) +{ +} + +MarkedSectionStartEvent::MarkedSectionStartEvent(Status status, + const Location &loc, + Markup *markup) +: MarkedSectionEvent(markedSectionStart, status, loc, markup) +{ +} + +MarkedSectionEndEvent::MarkedSectionEndEvent(Status status, + const Location &loc, + Markup *markup) +: MarkedSectionEvent(markedSectionEnd, status, loc, markup) +{ +} + +EntityStartEvent::EntityStartEvent(const ConstPtr &origin) +: Event(entityStart), origin_(origin) +{ +} + +EntityEndEvent::EntityEndEvent(const Location &location) +: LocatedEvent(entityEnd, location) +{ +} + +EntityDeclEvent:: EntityDeclEvent(const ConstPtr &entity, + Boolean ignored, const Location &loc, + Markup *markup) +: MarkupEvent(entityDecl, loc, markup), + entity_(entity), + ignored_(ignored) +{ +} + +NotationDeclEvent:: NotationDeclEvent(const ConstPtr ¬ation, + const Location &loc, + Markup *markup) +: MarkupEvent(notationDecl, loc, markup), notation_(notation) +{ +} + +ElementDeclEvent::ElementDeclEvent(Vector &elements, + const ConstPtr &dtd, + const Location &loc, + Markup *markup) +: MarkupEvent(elementDecl, loc, markup), dtd_(dtd) +{ + elements.swap(elements_); +} + +AttlistDeclEvent::AttlistDeclEvent(Vector &elements, + const ConstPtr &dtd, + const Location &loc, + Markup *markup) +: MarkupEvent(attlistDecl, loc, markup), dtd_(dtd) +{ + elements.swap(elements_); +} + +AttlistNotationDeclEvent::AttlistNotationDeclEvent( + Vector > ¬ations, const Location &loc, + Markup *markup) +: MarkupEvent(attlistNotationDecl, loc, markup) +{ + notations.swap(notations_); +} + +LinkAttlistDeclEvent +::LinkAttlistDeclEvent(Vector &elements, + const ConstPtr &lpd, + const Location &loc, + Markup *markup) +: MarkupEvent(linkAttlistDecl, loc, markup), lpd_(lpd) +{ + elements.swap(elements_); +} + +LinkDeclEvent::LinkDeclEvent(const LinkSet *linkSet, + const ConstPtr &lpd, + const Location &loc, + Markup *markup) +: MarkupEvent(linkDecl, loc, markup), lpd_(lpd), linkSet_(linkSet) +{ +} + +IdLinkDeclEvent::IdLinkDeclEvent(const ConstPtr &lpd, + const Location &loc, + Markup *markup) +: MarkupEvent(linkDecl, loc, markup), lpd_(lpd) +{ +} + +ShortrefDeclEvent::ShortrefDeclEvent(const ShortReferenceMap *map, + const ConstPtr &dtd, + const Location &loc, + Markup *markup) +: MarkupEvent(shortrefDecl, loc, markup), map_(map), dtd_(dtd) +{ +} + +IgnoredMarkupEvent::IgnoredMarkupEvent(const Location &loc, + Markup *markup) +: MarkupEvent(ignoredMarkup, loc, markup) +{ +} + +EntityDefaultedEvent::EntityDefaultedEvent(const ConstPtr &entity, + const Location &loc) +: LocatedEvent(entityDefaulted, loc), entity_(entity) +{ +} + +SgmlDeclEntityEvent:: SgmlDeclEntityEvent(const PublicId &publicId, + PublicId::TextClass entityType, + const StringC &effectiveSystemId, + const Location &loc) +: LocatedEvent(sgmlDeclEntity, loc), publicId_(publicId), + entityType_(entityType), effectiveSystemId_(effectiveSystemId) +{ +} + +EventHandler::~EventHandler() +{ +} + +// By default, do nothing when an input opens or closes. +void EventHandler::inputClosed(InputSource *in) {} + +void EventHandler::inputOpened(InputSource *in) {} + +EventQueue::EventQueue() +{ +} + +#define EVENT(c, f) \ + void EventHandler::f(c *event) { delete event; } \ + void EventQueue::f(c *event) { append(event); } \ + void c::handle(EventHandler &handler) { handler.f(this); } +#include "events.h" +#undef EVENT + +Pass1EventHandler::Pass1EventHandler() +: hadError_(0), origHandler_(0) +{ +} + +void Pass1EventHandler::init(EventHandler *origHandler) +{ + hadError_ = 0; + origHandler_ = origHandler; +} + +void Pass1EventHandler::message(MessageEvent *event) +{ + if (event->message().isError()) { + hadError_ = 1; + origHandler_->message(event); + } + else + IQueue::append(event); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/EventGenerator.cxx b/lib/EventGenerator.cxx new file mode 100644 index 0000000..cdce5f0 --- /dev/null +++ b/lib/EventGenerator.cxx @@ -0,0 +1,25 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "Boolean.h" +#include "EventGenerator.h" + +EventGenerator::~EventGenerator() +{ +} + +void EventGenerator::inhibitMessages(bool) +{ +} + +EventGenerator * +EventGenerator::makeSubdocEventGenerator(const SGMLApplication::Char *, + size_t) +{ + return 0; +} diff --git a/lib/EventQueue.h b/lib/EventQueue.h new file mode 100644 index 0000000..7ed4696 --- /dev/null +++ b/lib/EventQueue.h @@ -0,0 +1,58 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef EventQueue_INCLUDED +#define EventQueue_INCLUDED 1 + +#include "IQueue.h" +#include "Event.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class EventQueue : public EventHandler, public IQueue { +public: + EventQueue(); +private: +#define EVENT(c, f) void f(c *); +#include "events.h" +#undef EVENT + void append(Event *); +}; + +class Pass1EventHandler : public EventQueue { +public: + Pass1EventHandler(); + void init(EventHandler *origHandler); + void message(MessageEvent *); + Boolean hadError() const; + EventHandler *origHandler() const; +private: + Boolean hadError_; + EventHandler *origHandler_; +}; + +inline +void EventQueue::append(Event *event) +{ + IQueue::append(event); +} + +inline +Boolean Pass1EventHandler::hadError() const +{ + return hadError_; +} + +inline +EventHandler *Pass1EventHandler::origHandler() const +{ + return origHandler_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not EventQueue_INCLUDED */ diff --git a/lib/ExtendEntityManager.cxx b/lib/ExtendEntityManager.cxx new file mode 100644 index 0000000..fb73a07 --- /dev/null +++ b/lib/ExtendEntityManager.cxx @@ -0,0 +1,2209 @@ +// Copyright (c) 1994, 1995, 1996 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "ExtendEntityManager.h" +#include "Message.h" +#include "MessageArg.h" +#include "OffsetOrderedList.h" +#include "rtti.h" +#include "StorageManager.h" +#include "Vector.h" +#include "NCVector.h" +#include "Owner.h" +#include "constant.h" +#include "EntityManagerMessages.h" +#include "StorageObjectPosition.h" +#include "Owner.h" +#include "CodingSystem.h" +#include "CodingSystemKit.h" +#include "InputSource.h" +#include "Mutex.h" +#include "macros.h" +#include "EntityCatalog.h" +#include "CharMap.h" + +#include +#include +#include +#include +#include + +#ifdef DECLARE_MEMMOVE +extern "C" { + void *memmove(void *, const void *, size_t); +} +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const char EOFCHAR = '\032'; // Control-Z + +class ExternalInputSource; + +class EntityManagerImpl : public ExtendEntityManager { +public: + EntityManagerImpl(StorageManager *defaultStorageManager, + const InputCodingSystem *defaultCodingSystem, + const ConstPtr &, + Boolean internalCharsetIsDocCharset); + void setCatalogManager(CatalogManager *catalogManager); + void registerStorageManager(StorageManager *); + InputSource *open(const StringC &sysid, + const CharsetInfo &, + InputSourceOrigin *, + unsigned flags, + Messenger &); + const CharsetInfo &charset() const; + Boolean internalCharsetIsDocCharset() const; + ConstPtr makeCatalog(StringC &systemId, + const CharsetInfo &charset, + Messenger &mgr); + Boolean expandSystemId(const StringC &, + const Location &, + Boolean isNdata, + const CharsetInfo &, + const StringC *, + Messenger &, + StringC &); + Boolean mergeSystemIds(const Vector &, + Boolean mapCatalogDocument, + const CharsetInfo &, + Messenger &mgr, + StringC &) const; + StorageManager *lookupStorageType(const StringC &, const CharsetInfo &) const; + StorageManager *lookupStorageType(const char *) const; + StorageManager *guessStorageType(const StringC &, const CharsetInfo &) const; + const InputCodingSystem *lookupCodingSystem(const StringC &, + const CharsetInfo &, + Boolean isBctf, + const char *&) const; + Boolean resolveSystemId(const StringC &str, + const CharsetInfo &idCharset, + Messenger &mgr, + const Location &defLocation, + Boolean isNdata, + ParsedSystemId &parsedSysid) const; + Boolean parseSystemId(const StringC &str, + const CharsetInfo &idCharset, + Boolean isNdata, + const StorageObjectLocation *def, + Messenger &mgr, + ParsedSystemId &parsedSysid) const; + const CharsetInfo &internalCharset(const CharsetInfo &docCharset) const { + if (internalCharsetIsDocCharset_) + return docCharset; + else + return charset(); + } +private: + EntityManagerImpl(const EntityManagerImpl &); // undefined + void operator=(const EntityManagerImpl &); // undefined + static Boolean defLocation(const Location &, StorageObjectLocation &); + static Boolean matchKey(const StringC &type, const char *s, + const CharsetInfo &internalCharset); + NCVector > storageManagers_; + Owner defaultStorageManager_; + const InputCodingSystem *defaultCodingSystem_; + Owner catalogManager_; + Boolean internalCharsetIsDocCharset_; + ConstPtr codingSystemKit_; + friend class FSIParser; +}; + +class ExternalInfoImpl : public ExternalInfo { + RTTI_CLASS +public: + ExternalInfoImpl(ParsedSystemId &parsedSysid); + const StorageObjectSpec &spec(size_t i) const; + size_t nSpecs() const; + const ParsedSystemId &parsedSystemId() const; + void noteRS(Offset); + void noteStorageObjectEnd(Offset); + void noteInsertedRSs(); + void setDecoder(size_t i, Decoder *); + void setId(size_t i, StringC &); + void getId(size_t i, StringC &) const; + Boolean convertOffset(Offset, StorageObjectLocation &) const; +private: + ParsedSystemId parsedSysid_; + NCVector position_; + size_t currentIndex_; + // list of inserted RSs + OffsetOrderedList rsList_; + Boolean notrack_; + Mutex mutex_; +}; + +class ExternalInputSource : public InputSource { +public: + ExternalInputSource(ParsedSystemId &parsedSysid, + const CharsetInfo &internalCharset, + const CharsetInfo &docCharset, + Boolean internalCharsetIsDocCharset, + Char replacementChar, + InputSourceOrigin *origin, + unsigned flags); + void pushCharRef(Char, const NamedCharRef &); + ~ExternalInputSource(); +private: + Xchar fill(Messenger &); + Boolean rewind(Messenger &); + void willNotRewind(); + void setDocCharset(const CharsetInfo &, const CharsetInfo &); + void willNotSetDocCharset(); + + void init(); + void noteRS(); + void noteRSAt(const Char *); + void reallocateBuffer(size_t size); + void insertChar(Char); + void buildMap(const CharsetInfo &internalCharset, + const CharsetInfo &docCharset); + void buildMap1(const CharsetInfo &, const CharsetInfo &); + static const Char *findNextCr(const Char *start, const Char *end); + static const Char *findNextLf(const Char *start, const Char *end); + static const Char *findNextCrOrLf(const Char *start, const Char *end); + + ExternalInfoImpl *info_; + Char *buf_; + const Char *bufLim_; + Offset bufLimOffset_; + size_t bufSize_; + size_t readSize_; + NCVector > sov_; + StorageObject *so_; + size_t soIndex_; + Boolean insertRS_; + Decoder *decoder_; + const char *leftOver_; + size_t nLeftOver_; + Boolean mayRewind_; + Boolean maySetDocCharset_; + Boolean mayNotExist_; + enum RecordType { + unknown, + crUnknown, + crlf, + lf, + cr, + asis + }; + RecordType recordType_; + Boolean zapEof_; + Boolean internalCharsetIsDocCharset_; + Char replacementChar_; + Ptr > map_; +}; + +class FSIParser { +public: + FSIParser(const StringC &, const CharsetInfo &idCharset, + Boolean isNdata, + const StorageObjectLocation *defLoc, + const EntityManagerImpl *em, + Messenger &mgr); + Boolean parse(ParsedSystemId &parsedSysid); + static const char *recordsName(StorageObjectSpec::Records records); + struct RecordType { + const char *name; + StorageObjectSpec::Records value; + }; +private: + Boolean handleInformal(size_t startIndex, ParsedSystemId &parsedSysid); + Boolean convertId(StringC &, Xchar smcrd, const StorageManager *); + Xchar get(); + void unget(); + StorageManager *lookupStorageType(const StringC &key, Boolean &neutral); + Boolean matchKey(const StringC &, const char *); + Boolean matchChar(Xchar, char); + Boolean isS(Xchar); + Boolean convertDigit(Xchar c, int &weight); + void uncharref(StringC &); + Boolean setAttributes(StorageObjectSpec &sos, Boolean neutral, + Xchar &smcrd, Boolean &fold); + Boolean setCatalogAttributes(ParsedSystemId &parsedSysid); + void setDefaults(StorageObjectSpec &sos); + Boolean parseAttribute(StringC &token, Boolean &gotValue, StringC &value); + Boolean lookupRecords(const StringC &token, StorageObjectSpec::Records &); + void convertMinimumLiteral(const StringC &from, StringC &to); + + const StringC &str_; + size_t strIndex_; + Messenger &mgr_; + const EntityManagerImpl *em_; + const StorageObjectSpec *defSpec_; + const StringC *defId_; + const CharsetInfo &idCharset_; + Boolean isNdata_; + static RecordType recordTypeTable[]; +}; + +const Char RS = '\n'; +const Char RE = '\r'; + + +ExtendEntityManager::~ExtendEntityManager() +{ +} + +ExtendEntityManager::CatalogManager::~CatalogManager() +{ +} + +ExtendEntityManager *ExtendEntityManager::make(StorageManager *sm, + const InputCodingSystem *cs, + const ConstPtr &csKit, + Boolean internalCharsetIsDocCharset) +{ + return new EntityManagerImpl(sm, cs, csKit, internalCharsetIsDocCharset); +} + +Boolean ExtendEntityManager::externalize(const ExternalInfo *info, + Offset off, + StorageObjectLocation &loc) +{ + if (!info) + return false; + const ExternalInfoImpl *p = DYNAMIC_CAST_CONST_PTR(ExternalInfoImpl, info); + if (!p) + return false; + return p->convertOffset(off, loc); +} + +const ParsedSystemId * +ExtendEntityManager::externalInfoParsedSystemId(const ExternalInfo *info) +{ + if (!info) + return 0; + const ExternalInfoImpl *p = DYNAMIC_CAST_CONST_PTR(ExternalInfoImpl, info); + if (!p) + return 0; + return &p->parsedSystemId(); +} + +EntityManagerImpl::EntityManagerImpl(StorageManager *defaultStorageManager, + const InputCodingSystem *defaultCodingSystem, + const ConstPtr &codingSystemKit, + Boolean internalCharsetIsDocCharset) +: defaultStorageManager_(defaultStorageManager), + defaultCodingSystem_(defaultCodingSystem), + codingSystemKit_(codingSystemKit), + internalCharsetIsDocCharset_(internalCharsetIsDocCharset) +{ +} + +Boolean EntityManagerImpl::internalCharsetIsDocCharset() const +{ + return internalCharsetIsDocCharset_; +} + +const CharsetInfo &EntityManagerImpl::charset() const +{ + return codingSystemKit_->systemCharset(); +} + +InputSource *EntityManagerImpl::open(const StringC &sysid, + const CharsetInfo &docCharset, + InputSourceOrigin *origin, + unsigned flags, + Messenger &mgr) +{ + ParsedSystemId parsedSysid; + if (!parseSystemId(sysid, docCharset, (flags & ExtendEntityManager::isNdata) != 0, + 0, mgr, parsedSysid) + || !catalogManager_->mapCatalog(parsedSysid, this, mgr)) + return 0; + return new ExternalInputSource(parsedSysid, + charset(), + docCharset, + internalCharsetIsDocCharset_, + codingSystemKit_->replacementChar(), + origin, flags); +} + + +ConstPtr +EntityManagerImpl::makeCatalog(StringC &systemId, + const CharsetInfo &docCharset, + Messenger &mgr) +{ + return catalogManager_->makeCatalog(systemId, docCharset, this, mgr); +} + +Boolean +EntityManagerImpl::mergeSystemIds(const Vector &sysids, + Boolean mapCatalogDocument, + const CharsetInfo &docCharset, + Messenger &mgr, + StringC &result) const +{ + ParsedSystemId parsedSysid; + if (mapCatalogDocument) { + parsedSysid.maps.resize(parsedSysid.maps.size() + 1); + parsedSysid.maps.back().type = ParsedSystemId::Map::catalogDocument; + } + for (size_t i = 0; i < sysids.size(); i++) + if (!parseSystemId(sysids[i], + docCharset, + 0, + 0, + mgr, + parsedSysid)) + return 0; + parsedSysid.unparse(internalCharset(docCharset), 0, result); + return 1; +} + +Boolean +EntityManagerImpl::expandSystemId(const StringC &str, + const Location &defLoc, + Boolean isNdata, + const CharsetInfo &docCharset, + const StringC *mapCatalogPublic, + Messenger &mgr, + StringC &result) +{ + ParsedSystemId parsedSysid; + StorageObjectLocation defSoLoc; + const StorageObjectLocation *defSoLocP; + if (defLocation(defLoc, defSoLoc)) + defSoLocP = &defSoLoc; + else + defSoLocP = 0; + if (!parseSystemId(str, docCharset, isNdata, defSoLocP, mgr, parsedSysid)) + return 0; + if (mapCatalogPublic) { + ParsedSystemId::Map map; + map.type = ParsedSystemId::Map::catalogPublic; + map.publicId = *mapCatalogPublic; + parsedSysid.maps.insert(parsedSysid.maps.begin(), 1, map); + } + parsedSysid.unparse(internalCharset(docCharset), isNdata, result); + return 1; +} + +Boolean EntityManagerImpl::parseSystemId(const StringC &str, + const CharsetInfo &docCharset, + Boolean isNdata, + const StorageObjectLocation *defLoc, + Messenger &mgr, + ParsedSystemId &parsedSysid) const +{ + FSIParser fsiParser(str, internalCharset(docCharset), isNdata, defLoc, this, mgr); + return fsiParser.parse(parsedSysid); +} + +StorageManager * +EntityManagerImpl::guessStorageType(const StringC &type, + const CharsetInfo &internalCharset) const +{ + for (size_t i = 0; i < storageManagers_.size(); i++) + if (storageManagers_[i]->guessIsId(type, internalCharset)) + return storageManagers_[i].pointer(); + if (defaultStorageManager_->guessIsId(type, internalCharset)) + return defaultStorageManager_.pointer(); + return 0; +} + +StorageManager * +EntityManagerImpl::lookupStorageType(const StringC &type, + const CharsetInfo &internalCharset) const +{ + if (type.size() == 0) + return 0; + if (matchKey(type, defaultStorageManager_->type(), internalCharset)) + return defaultStorageManager_.pointer(); + for (size_t i = 0; i < storageManagers_.size(); i++) + if (matchKey(type, storageManagers_[i]->type(), internalCharset)) + return storageManagers_[i].pointer(); + return 0; +} + +StorageManager * +EntityManagerImpl::lookupStorageType(const char *type) const +{ + if (type == defaultStorageManager_->type()) + return defaultStorageManager_.pointer(); + for (size_t i = 0; i < storageManagers_.size(); i++) + if (type == storageManagers_[i]->type()) + return storageManagers_[i].pointer(); + return 0; +} + +const InputCodingSystem * +EntityManagerImpl::lookupCodingSystem(const StringC &type, + const CharsetInfo &internalCharset, + Boolean isBctf, + const char *&name) const +{ + return codingSystemKit_->makeInputCodingSystem(type, internalCharset, isBctf, name); +} + +Boolean +EntityManagerImpl::matchKey(const StringC &type, + const char *s, + const CharsetInfo &internalCharset) +{ + if (strlen(s) != type.size()) + return false; + for (size_t i = 0; i < type.size(); i++) + if (internalCharset.execToDesc(toupper(s[i])) != type[i] + && internalCharset.execToDesc(tolower(s[i])) != type[i]) + return false; + return true; +} + +void EntityManagerImpl::registerStorageManager(StorageManager *sm) +{ + storageManagers_.resize(storageManagers_.size() + 1); + storageManagers_.back() = sm; +} + +void EntityManagerImpl::setCatalogManager(CatalogManager *catalogManager) +{ + catalogManager_ = catalogManager; +} + +Boolean +EntityManagerImpl::defLocation(const Location &defLocation, + StorageObjectLocation &soLoc) +{ + Offset off; + const ExternalInfo *info; + const Origin *origin = defLocation.origin().pointer(); + Index index = defLocation.index(); + for (;;) { + if (!origin) + return 0; + const InputSourceOrigin *inputSourceOrigin = origin->asInputSourceOrigin(); + if (inputSourceOrigin) { + off = inputSourceOrigin->startOffset(index); + info = inputSourceOrigin->externalInfo(); + if (info) + break; + if (!inputSourceOrigin->defLocation(off, origin, index)) + return 0; + } + else { + const Location &parentLoc = origin->parent(); + origin = parentLoc.origin().pointer(); + index = parentLoc.index(); + } + } + return ExtendEntityManager::externalize(info, off, soLoc); +} + +class UnbufferingStorageObject : public StorageObject { +public: + UnbufferingStorageObject(StorageObject *sub, + const Boolean *unbuffer) + : sub_(sub), buf_(0), bufAvail_(0), bufNext_(0), unbuffer_(unbuffer) { } + ~UnbufferingStorageObject() { delete [] buf_; } + Boolean read(char *buf, size_t bufSize, Messenger &mgr, + size_t &nread) { + if (bufNext_ >= bufAvail_) { + bufAvail_ = bufNext_ = 0; + if (!*unbuffer_) + return sub_->read(buf, bufSize, mgr, nread); + if (buf_ == 0) + buf_ = new char[bufSize_ = bufSize]; + if (!sub_->read(buf_, bufSize_, mgr, bufAvail_)) + return 0; + } + *buf = buf_[bufNext_++]; + nread = 1; + return 1; + } + Boolean rewind(Messenger &mgr) { + bufAvail_ = bufNext_ = 0; + return sub_->rewind(mgr); + } + void willNotRewind() { sub_->willNotRewind(); } + size_t getBlockSize() const { return sub_->getBlockSize(); } +private: + Owner sub_; + size_t bufSize_; + size_t bufAvail_; + size_t bufNext_; + char *buf_; + const Boolean *unbuffer_; +}; + +class MappingDecoder : public Decoder { +public: + MappingDecoder(Decoder *, + const ConstPtr > &); + Boolean convertOffset(unsigned long &offset) const; + size_t decode(Char *, const char *, size_t, const char **); +private: + Owner sub_; + ConstPtr > map_; +}; + +MappingDecoder::MappingDecoder(Decoder *sub, + const ConstPtr > &map) +: Decoder(sub->minBytesPerChar()), sub_(sub), map_(map) +{ +} + +size_t MappingDecoder::decode(Char *to, const char *s, + size_t slen, const char **rest) +{ + size_t n = sub_->decode(to, s, slen, rest); + const CharMap &map = *map_; + for (size_t i = 0; i < n; i++) { + Unsigned32 d = map[to[i]]; + if (d & (unsigned(1) << 31)) + to[i] = (d & ~(unsigned(1) << 31)); + else + to[i] += d; + } + return n; +} + +Boolean MappingDecoder::convertOffset(unsigned long &offset) const +{ + return sub_->convertOffset(offset); +} + +ExternalInputSource::ExternalInputSource(ParsedSystemId &parsedSysid, + const CharsetInfo &systemCharset, + const CharsetInfo &docCharset, + Boolean internalCharsetIsDocCharset, + Char replacementChar, + InputSourceOrigin *origin, + unsigned flags) +: InputSource(origin, 0, 0), + mayRewind_((flags & EntityManager::mayRewind) != 0), + mayNotExist_((flags & ExtendEntityManager::mayNotExist) != 0), + sov_(parsedSysid.size()), + internalCharsetIsDocCharset_(internalCharsetIsDocCharset), + // hack + maySetDocCharset_((flags & EntityManager::maySetDocCharset) != 0), + replacementChar_(replacementChar) +{ + for (size_t i = 0; i < parsedSysid.size(); i++) { + if (parsedSysid[i].codingSystemType + != (internalCharsetIsDocCharset + ? StorageObjectSpec::bctf + : StorageObjectSpec::encoding) + && parsedSysid[i].codingSystemType != StorageObjectSpec::special) { + map_ = new CharMapResource; + buildMap(systemCharset, docCharset); + break; + } + } + for (size_t i = 0; i < sov_.size(); i++) + sov_[i] = 0; + init(); + info_ = new ExternalInfoImpl(parsedSysid); + origin->setExternalInfo(info_); +} + +void ExternalInputSource::setDocCharset(const CharsetInfo &docCharset, + const CharsetInfo &systemCharset) +{ + if (!map_.isNull()) + buildMap(systemCharset, docCharset); + willNotSetDocCharset(); +} + +void ExternalInputSource::willNotSetDocCharset() +{ + maySetDocCharset_ = 0; +} + +void ExternalInputSource::buildMap(const CharsetInfo &systemCharset, + const CharsetInfo &docCharset) +{ + CharMap &map = *map_; + // FIXME How should invalidChar be chosen when internalCharsetIsDocCharset_? + Char invalidChar + = internalCharsetIsDocCharset_ ? 0 : replacementChar_; + map.setAll((Unsigned32(1) << 31) | invalidChar); + if (internalCharsetIsDocCharset_) + buildMap1(systemCharset, docCharset); + else + buildMap1(docCharset, systemCharset); +} + +void ExternalInputSource::buildMap1(const CharsetInfo &fromCharset, + const CharsetInfo &toCharset) +{ + UnivCharsetDescIter iter(fromCharset.desc()); + for (;;) { + WideChar descMin, descMax; + UnivChar univMin; + if (!iter.next(descMin, descMax, univMin)) + break; + if (descMin > charMax) + break; + if (descMax > charMax) + descMax = charMax; + WideChar totalCount = 1 + (descMax - descMin); + do { + WideChar count; + WideChar toMin; + ISet set; + int nMap = toCharset.univToDesc(univMin, toMin, set, count); + if (count > totalCount) + count = totalCount; + if (nMap && toMin <= charMax) { + Char toMax; + if (count - 1 > charMax - toMin) + toMax = charMax; + else + toMax = toMin + (count - 1); + map_->setRange(descMin, descMin + (toMax - toMin), Char(toMin - descMin)); + } + descMin += count; + univMin += count; + totalCount -= count; + } while (totalCount > 0); + } +} + +void ExternalInputSource::init() +{ + so_ = 0; + buf_ = 0; + bufSize_ = 0; + bufLim_ = 0; + bufLimOffset_ = 0; + insertRS_ = true; + soIndex_ = 0; + leftOver_ = 0; + nLeftOver_ = 0; +} + +ExternalInputSource::~ExternalInputSource() +{ + if (buf_) + delete [] buf_; +} + +Boolean ExternalInputSource::rewind(Messenger &mgr) +{ + reset(0, 0); + if (buf_) + delete [] buf_; + // reset makes a new EntityOrigin + ParsedSystemId parsedSysid(info_->parsedSystemId()); + ExternalInfoImpl *oldInfo = info_; + info_ = new ExternalInfoImpl(parsedSysid); + so_ = 0; + for (size_t i = 0; i < soIndex_; i++) { + if (sov_[i] && !sov_[i]->rewind(mgr)) + return 0; + StringC tem; + oldInfo->getId(i, tem); + info_->setId(i, tem); + } + inputSourceOrigin()->setExternalInfo(info_); + init(); + return 1; +} + +void ExternalInputSource::willNotRewind() +{ + for (size_t i = 0; i < sov_.size(); i++) + if (sov_[i]) + sov_[i]->willNotRewind(); + mayRewind_ = 0; +} + + +// Round up N so that it is a power of TO. +// TO must be a power of 2. + +inline +size_t roundUp(size_t n, size_t to) +{ + return (n + (to - 1)) & ~(to - 1); +} + +inline +void ExternalInputSource::noteRSAt(const Char *p) +{ + info_->noteRS(bufLimOffset_ - (bufLim_ - p)); +} + +inline +void ExternalInputSource::noteRS() +{ + noteRSAt(cur()); +} + +Xchar ExternalInputSource::fill(Messenger &mgr) +{ + ASSERT(cur() == end()); + while (end() >= bufLim_) { + // need more data + while (so_ == 0) { + if (soIndex_ >= sov_.size()) + return eE; + if (soIndex_ > 0) + info_->noteStorageObjectEnd(bufLimOffset_ - (bufLim_ - end())); + const StorageObjectSpec &spec = info_->spec(soIndex_); + if (!sov_[soIndex_]) { + StringC id; + if (mayNotExist_) { + NullMessenger nullMgr; + sov_[soIndex_] + = spec.storageManager->makeStorageObject(spec.specId, spec.baseId, + spec.search, + mayRewind_, nullMgr, id); + } + else + sov_[soIndex_] + = spec.storageManager->makeStorageObject(spec.specId, spec.baseId, + spec.search, + mayRewind_, mgr, id); + info_->setId(soIndex_, id); + } + so_ = sov_[soIndex_].pointer(); + if (so_) { + decoder_ = spec.codingSystem->makeDecoder(); + if (spec.codingSystemType != StorageObjectSpec::special + && spec.codingSystemType != (internalCharsetIsDocCharset_ + ? StorageObjectSpec::bctf + : StorageObjectSpec::encoding)) { + decoder_ = new MappingDecoder(decoder_, map_); + if (maySetDocCharset_) { + sov_[soIndex_] = new UnbufferingStorageObject(sov_[soIndex_].extract(), &maySetDocCharset_); + so_ = sov_[soIndex_].pointer(); + } + } + info_->setDecoder(soIndex_, decoder_); + zapEof_ = spec.zapEof; + switch (spec.records) { + case StorageObjectSpec::asis: + recordType_ = asis; + insertRS_ = false; + break; + case StorageObjectSpec::cr: + recordType_ = cr; + break; + case StorageObjectSpec::lf: + recordType_ = lf; + break; + case StorageObjectSpec::crlf: + recordType_ = crlf; + break; + case StorageObjectSpec::find: + recordType_ = unknown; + break; + default: + CANNOT_HAPPEN(); + } + soIndex_++; + readSize_ = so_->getBlockSize(); + nLeftOver_ = 0; + break; + } + else + setAccessError(); + soIndex_++; + } + + size_t keepSize = end() - start(); + const size_t align = sizeof(int)/sizeof(Char); + size_t readSizeChars = (readSize_ + (sizeof(Char) - 1))/sizeof(Char); + readSizeChars = roundUp(readSizeChars, align); + size_t neededSize; // in Chars + size_t startOffset; + // compute neededSize and readSize + unsigned minBytesPerChar = decoder_->minBytesPerChar(); + if (nLeftOver_ == 0 && minBytesPerChar >= sizeof(Char)) { + // In this case we want to do decoding in place. + // FIXME It might be a win on some systems (Irix?) to arrange that the + // read buffer is on a page boundary. + + if (keepSize >= size_t(-1)/sizeof(Char) - (align - 1) - insertRS_) + abort(); // FIXME throw an exception + + // Now size_t(-1)/sizeof(Char) - (align - 1) - insertRS_ - keepSize > 0 + if (readSizeChars + > size_t(-1)/sizeof(Char) - (align - 1) - insertRS_ - keepSize) + abort(); + neededSize = roundUp(readSizeChars + keepSize + insertRS_, align); + startOffset = ((neededSize > bufSize_ ? neededSize : bufSize_) + - readSizeChars - insertRS_ - keepSize); + } + else { + // Needs to be room for everything before decoding. + neededSize = (keepSize + insertRS_ + readSizeChars + + (nLeftOver_ + sizeof(Char) - 1)/sizeof(Char)); + // Also must be room for everything after decoding. + size_t neededSize2 + = (keepSize + insertRS_ + // all the converted characters + + (nLeftOver_ + readSize_)/minBytesPerChar + // enough Chars to contain left over bytes + + ((readSize_ % minBytesPerChar + sizeof(Char) - 1) + / sizeof(Char))); + if (neededSize2 > neededSize) + neededSize = neededSize2; + neededSize = roundUp(neededSize, align); + if (neededSize > size_t(-1)/sizeof(Char)) + abort(); + startOffset = 0; + } + if (bufSize_ < neededSize) + reallocateBuffer(neededSize); + Char *newStart = buf_ + startOffset; + if (newStart != start() && keepSize > 0) + memmove(newStart, start(), keepSize*sizeof(Char)); + char *bytesStart = (char *)(buf_ + bufSize_ - readSizeChars) - nLeftOver_; + if (nLeftOver_ > 0 && leftOver_ != bytesStart) + memmove(bytesStart, leftOver_, nLeftOver_); + moveStart(newStart); + bufLim_ = end(); + + size_t nread; + if (so_->read((char *)(buf_ + bufSize_ - readSizeChars), readSize_, + mgr, nread)) { + if (nread > 0) { + const char *bytesEnd = bytesStart + nLeftOver_ + nread; + size_t nChars = decoder_->decode((Char *)end() + insertRS_, + bytesStart, + nLeftOver_ + nread + - (zapEof_ && bytesEnd[-1] == EOFCHAR), + &leftOver_); + nLeftOver_ = bytesEnd - leftOver_; + if (nChars > 0) { + if (insertRS_) { + noteRS(); + *(Char *)end() = RS; + advanceEnd(end() + 1); + insertRS_ = false; + bufLim_ += 1; + bufLimOffset_ += 1; + } + bufLim_ += nChars; + bufLimOffset_ += nChars; + break; + } + } + } + else + so_ = 0; + } + ASSERT(end() < bufLim_); + if (insertRS_) { + noteRS(); + insertChar(RS); + insertRS_ = false; + bufLimOffset_ += 1; + } + switch (recordType_) { + case unknown: + { + const Char *e = findNextCrOrLf(end(), bufLim_); + if (e) { + if (*e == '\n') { + recordType_ = lf; + info_->noteInsertedRSs(); + *(Char *)e = RE; + advanceEnd(e + 1); + insertRS_ = true; + } + else { + if (e + 1 < bufLim_) { + if (e[1] == '\n') { + recordType_ = crlf; + advanceEnd(e + 1); + if (e + 2 == bufLim_) { + bufLim_--; + bufLimOffset_--; + insertRS_ = true; + } + } + else { + advanceEnd(e + 1); + recordType_ = cr; + info_->noteInsertedRSs(); + insertRS_ = true; + } + } + else { + recordType_ = crUnknown; + advanceEnd(e + 1); + } + } + } + else + advanceEnd(bufLim_); + } + break; + case crUnknown: + { + if (*cur() == '\n') { + noteRS(); + advanceEnd(cur() + 1); + recordType_ = crlf; + } + else { + advanceEnd(cur() + 1); + insertRS_ = true; + recordType_ = cr; + info_->noteInsertedRSs(); + } + } + break; + case lf: + { + Char *e = (Char *)findNextLf(end(), bufLim_); + if (e) { + advanceEnd(e + 1); + *e = RE; + insertRS_ = true; + } + else + advanceEnd(bufLim_); + } + break; + case cr: + { + const Char *e = findNextCr(end(), bufLim_); + if (e) { + advanceEnd(e + 1); + insertRS_ = true; + } + else + advanceEnd(bufLim_); + } + break; + case crlf: + { + const Char *e = end(); + for (;;) { + e = findNextLf(e, bufLim_); + if (!e) { + advanceEnd(bufLim_); + break; + } + // Need to delete final RS if not followed by anything. + if (e + 1 == bufLim_) { + bufLim_--; + bufLimOffset_--; + advanceEnd(e); + insertRS_ = true; + if (cur() == end()) + return fill(mgr); + break; + } + noteRSAt(e); + e++; + } + } + break; + case asis: + advanceEnd(bufLim_); + break; + default: + CANNOT_HAPPEN(); + } + ASSERT(cur() < end()); + return nextChar(); +} + +const Char *ExternalInputSource::findNextCr(const Char *start, + const Char *end) +{ + for (; start < end; start++) + if (*start == '\r') + return start; + return 0; +} + +const Char *ExternalInputSource::findNextLf(const Char *start, + const Char *end) +{ + for (; start < end; start++) + if (*start == '\n') + return start; + return 0; +} + +const Char *ExternalInputSource::findNextCrOrLf(const Char *start, + const Char *end) +{ + for (; start < end; start++) + if (*start == '\n' || *start == '\r') + return start; + return 0; +} + +void ExternalInputSource::pushCharRef(Char ch, const NamedCharRef &ref) +{ + ASSERT(cur() == start()); + noteCharRef(startIndex() + (cur() - start()), ref); + insertChar(ch); +} + +void ExternalInputSource::insertChar(Char ch) +{ + if (start() > buf_) { + if (cur() > start()) + memmove((Char *)start() - 1, start(), (cur() - start())*sizeof(Char)); + moveLeft(); + *(Char *)cur() = ch; + } + else { + // must have start == buf + if (buf_ + (bufSize_ - (nLeftOver_ + sizeof(Char) - 1)/sizeof(Char)) + == bufLim_) { + if (bufSize_ == size_t(-1)) + abort(); // FIXME throw an exception + reallocateBuffer(bufSize_ + 1); + } + else if (nLeftOver_ > 0 && ((char *)(bufLim_ + 1) > leftOver_)) { + char *s = (char *)(buf_ + bufSize_) - nLeftOver_; + memmove(s, leftOver_, nLeftOver_); + leftOver_ = s; + } + if (cur() < bufLim_) + memmove((Char *)cur() + 1, cur(), (bufLim_ - cur())*sizeof(Char)); + *(Char *)cur() = ch; + advanceEnd(end() + 1); + bufLim_ += 1; + } +} + +void ExternalInputSource::reallocateBuffer(size_t newSize) +{ + Char *newBuf = new Char[newSize]; + + memcpy(newBuf, buf_, bufSize_*sizeof(Char)); + bufSize_ = newSize; + changeBuffer(newBuf, buf_); + bufLim_ = newBuf + (bufLim_ - buf_); + if (nLeftOver_ > 0) { + char *s = (char *)(newBuf + bufSize_) - nLeftOver_; + memmove(s, + (char *)newBuf + (leftOver_ - (char *)buf_), + nLeftOver_); + leftOver_ = s; + } + delete [] buf_; + buf_ = newBuf; +} + +RTTI_DEF1(ExternalInfoImpl, ExternalInfo) + +ExternalInfoImpl::ExternalInfoImpl(ParsedSystemId &parsedSysid) +: currentIndex_(0), position_(parsedSysid.size()) +{ + parsedSysid.swap(parsedSysid_); + if (parsedSysid_.size() > 0) + notrack_ = parsedSysid_[0].notrack; +} + +void ExternalInfoImpl::setId(size_t i, StringC &id) +{ + Mutex::Lock lock(&mutex_); + id.swap(position_[i].id); +} + +void ExternalInfoImpl::getId(size_t i, StringC &id) const +{ + Mutex::Lock lock(&((ExternalInfoImpl *)this)->mutex_); + id = position_[i].id; +} + +void ExternalInfoImpl::setDecoder(size_t i, Decoder *decoder) +{ + Mutex::Lock lock(&mutex_); + position_[i].decoder = decoder; +} + +void ExternalInfoImpl::noteInsertedRSs() +{ + position_[currentIndex_].insertedRSs = 1; +} + +void ExternalInfoImpl::noteRS(Offset offset) +{ + // We do the locking in OffsetOrderedList. + if (!notrack_) + rsList_.append(offset); + if (offset + == (currentIndex_ == 0 ? 0 : position_[currentIndex_- 1].endOffset)) + position_[currentIndex_].startsWithRS = 1; +} + +void ExternalInfoImpl::noteStorageObjectEnd(Offset offset) +{ + Mutex::Lock lock(&mutex_); + ASSERT(currentIndex_ < position_.size()); + // The last endOffset_ must be -1. + if (currentIndex_ < position_.size() - 1) { + position_[currentIndex_++].endOffset = offset; + position_[currentIndex_].line1RS = rsList_.size(); + notrack_ = parsedSysid_[currentIndex_].notrack; + } +} + +Boolean ExternalInfoImpl::convertOffset(Offset off, + StorageObjectLocation &ret) const +{ + Mutex::Lock lock(&((ExternalInfoImpl *)this)->mutex_); + if (off == Offset(-1) || position_.size() == 0) + return false; + // the last endOffset_ is Offset(-1), so this will + // terminate + int i; + for (i = 0; off >= position_[i].endOffset; i++) + ; + for (; position_[i].id.size() == 0; i--) + if (i == 0) + return false; + ret.storageObjectSpec = &parsedSysid_[i]; + ret.actualStorageId = position_[i].id; + Offset startOffset = i == 0 ? 0 : position_[i - 1].endOffset; + ret.storageObjectOffset = off - startOffset; + ret.byteIndex = ret.storageObjectOffset; + if (parsedSysid_[i].notrack + || parsedSysid_[i].records == StorageObjectSpec::asis) { + ret.lineNumber = (unsigned long)-1; + if (parsedSysid_[i].records != StorageObjectSpec::asis) { + if (position_[i].insertedRSs) + ret.byteIndex = (unsigned long)-1; + else if (ret.byteIndex > 0 && position_[i].startsWithRS) + ret.byteIndex--; // first RS is inserted + } + ret.columnNumber = (unsigned long)-1; + return true; + } + else { + size_t line1RS = position_[i].line1RS; + // line1RS is now the number of RSs that are before or on the current line. + size_t j; + Offset colStart; + if (rsList_.findPreceding(off, j, colStart)) { + if (position_[i].insertedRSs) + ret.byteIndex -= j + 1 - line1RS; + else if (ret.byteIndex > 0 && position_[i].startsWithRS) + ret.byteIndex--; // first RS is inserted + j++; + colStart++; + } + else { + j = 0; + colStart = 0; + } + // j is now the number of RSs that are before or on the current line + // colStart is the offset of the first column + ret.lineNumber = j - line1RS + 1 - position_[i].startsWithRS; + // the offset of the first column + if (colStart < startOffset) + colStart = startOffset; + // the RS that starts a line will be in column 0; + // the first real character of a line will be column 1 + ret.columnNumber = 1 + off - colStart; + } + if (!position_[i].decoder + || !position_[i].decoder->convertOffset(ret.byteIndex)) + ret.byteIndex = (unsigned long)-1; + return true; +} + +const StorageObjectSpec &ExternalInfoImpl::spec(size_t i) const +{ + return parsedSysid_[i]; +} + +size_t ExternalInfoImpl::nSpecs() const +{ + return parsedSysid_.size(); +} + +const ParsedSystemId &ExternalInfoImpl::parsedSystemId() const +{ + return parsedSysid_; +} + +StorageObjectSpec::StorageObjectSpec() +: storageManager(0), codingSystem(0), codingSystemName(0), notrack(0), + records(find), zapEof(1), search(1) +{ +} + +StorageObjectSpec::StorageObjectSpec(const StorageObjectSpec& x) +: codingSystemName(x.codingSystemName), + codingSystem(x.codingSystem), + specId(x.specId), + baseId(x.baseId), + records(x.records), + notrack(x.notrack), + zapEof(x.zapEof), + search(x.search), + codingSystemType(x.codingSystemType) +{ +} + +StorageObjectSpec& StorageObjectSpec::operator=(const StorageObjectSpec& x) +{ + if (this != &x) { + codingSystemName = x.codingSystemName; + codingSystem = x.codingSystem; + specId = x.specId; + baseId = x.baseId; + records = x.records; + notrack = x.notrack; + zapEof = x.zapEof; + search = x.search; + codingSystemType = x.codingSystemType; + } + return *this; +} + +StorageObjectSpec::~StorageObjectSpec() +{ +} + +StorageObjectPosition::StorageObjectPosition() +: endOffset(Offset(-1)), line1RS(0), startsWithRS(0), insertedRSs(0) +{ +} + +FSIParser::FSIParser(const StringC &str, + const CharsetInfo &idCharset, + Boolean isNdata, + const StorageObjectLocation *defLoc, + const EntityManagerImpl *em, + Messenger &mgr) +: str_(str), + strIndex_(0), + idCharset_(idCharset), + isNdata_(isNdata), + defSpec_(defLoc ? defLoc->storageObjectSpec : 0), + defId_(defLoc ? &defLoc->actualStorageId : 0), + em_(em), + mgr_(mgr) +{ +} + +Xchar FSIParser::get() +{ + if (strIndex_ < str_.size()) + return str_[strIndex_++]; + else + return -1; +} + +void FSIParser::unget() +{ + if (strIndex_ > 0) + strIndex_ -= 1; +} + +Boolean FSIParser::matchKey(const StringC &str, const char *s) +{ + if (strlen(s) != str.size()) + return false; + for (size_t i = 0; i < str.size(); i++) + if (idCharset_.execToDesc(toupper(s[i])) != str[i] + && idCharset_.execToDesc(tolower(s[i])) != str[i]) + return false; + return true; +} + +Boolean FSIParser::matchChar(Xchar ch, char execC) +{ + return ch == idCharset_.execToDesc(execC); +} + +Boolean FSIParser::isS(Xchar c) +{ + return (matchChar(c, ' ') + || matchChar(c, '\r') + || matchChar(c, '\n') + || matchChar(c, ' ')); +} + +Boolean FSIParser::convertDigit(Xchar c, int &weight) +{ + static const char digits[] = "0123456789"; + for (int i = 0; digits[i] != '\0'; i++) + if (matchChar(c, digits[i])) { + weight = i; + return 1; + } + return 0; +} + +Boolean FSIParser::parse(ParsedSystemId &parsedSysid) +{ + size_t startIndex = strIndex_; + if (!matchChar(get(), '<')) + return handleInformal(startIndex, parsedSysid); + StringC key; + for (;;) { + Xchar c = get(); + if (c == -1) + return handleInformal(startIndex, parsedSysid); + if (isS(c) || matchChar(c, '>')) + break; + key += Char(c); + } + unget(); + if (matchKey(key, "CATALOG")) { + if (!setCatalogAttributes(parsedSysid)) + return 0; + return parse(parsedSysid); + } + Boolean neutral; + StorageManager *sm = lookupStorageType(key, neutral); + if (!sm) + return handleInformal(startIndex, parsedSysid); + for (;;) { + parsedSysid.resize(parsedSysid.size() + 1); + StorageObjectSpec &sos = parsedSysid.back(); + sos.storageManager = sm; + Xchar smcrd; + Boolean fold; + if (!setAttributes(sos, neutral, smcrd, fold)) + return 0; + sm = 0; + StringC id; + Boolean hadData = 0; + for (;;) { + Xchar c = get(); + if (c == -1) + break; + if (matchChar(c, '<')) { + hadData = 1; + Char stago = c; + key.resize(0); + for (;;) { + c = get(); + if (c == -1) { + id += stago; + id += key; + break; + } + if (isS(c) || matchChar(c, '>')) { + unget(); + sm = lookupStorageType(key, neutral); + if (!sm) { + id += stago; + id += key; + } + break; + } + key += c; + } + if (sm) + break; + } + else if (!((!hadData && matchChar(c, '\r')) // ignored RE + || matchChar(c, '\n') )) { // ignored RS + hadData = 1; + id += c; + } + } + if (id.size() > 0 && matchChar(id[id.size() - 1], '\r')) + id.resize(id.size() - 1); + uncharref(id); + id.swap(sos.specId); + if (!convertId(sos.specId, smcrd, sos.storageManager)) + return 0; + if (neutral) { + if (!sos.storageManager->transformNeutral(sos.specId, fold, mgr_)) + return 0; + } + if (sos.storageManager->resolveRelative(sos.baseId, sos.specId, + sos.search)) + sos.baseId.resize(0); + if (!sm) + break; + } + return 1; +} + +Boolean FSIParser::handleInformal(size_t index, ParsedSystemId &parsedSysid) +{ + parsedSysid.resize(parsedSysid.size() + 1); + StorageObjectSpec &sos = parsedSysid.back(); + sos.specId.assign(str_.data() + index, + str_.size() - index); + sos.storageManager = em_->guessStorageType(sos.specId, idCharset_); + if (!sos.storageManager) { + if (defSpec_ && defSpec_->storageManager->inheritable()) + sos.storageManager = defSpec_->storageManager; + else + sos.storageManager = em_->defaultStorageManager_.pointer(); + } + setDefaults(sos); + if (!convertId(sos.specId, -1, sos.storageManager)) + return 0; + if (sos.storageManager->resolveRelative(sos.baseId, sos.specId, sos.search)) + sos.baseId.resize(0); + return 1; +} + +StorageManager *FSIParser::lookupStorageType(const StringC &key, + Boolean &neutral) +{ + if (matchKey(key, "NEUTRAL")) { + neutral = 1; + if (defSpec_ && defSpec_->storageManager->inheritable()) + return defSpec_->storageManager; + else + return em_->defaultStorageManager_.pointer(); + } + else { + StorageManager *sm = em_->lookupStorageType(key, idCharset_); + if (sm) + neutral = 0; + return sm; + } +} + +Boolean FSIParser::setCatalogAttributes(ParsedSystemId &parsedSysid) +{ + Boolean hadPublic = 0; + parsedSysid.maps.resize(parsedSysid.maps.size() + 1); + parsedSysid.maps.back().type = ParsedSystemId::Map::catalogDocument; + for (;;) { + StringC token, value; + Boolean gotValue; + if (!parseAttribute(token, gotValue, value)) { + mgr_.message(EntityManagerMessages::fsiSyntax, StringMessageArg(str_)); + return 0; + } + if (token.size() == 0) + break; + if (matchKey(token, "PUBLIC")) { + if (hadPublic) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(idCharset_.execToDesc("PUBLIC"))); + else if (gotValue) { + convertMinimumLiteral(value, parsedSysid.maps.back().publicId); + parsedSysid.maps.back().type = ParsedSystemId::Map::catalogPublic; + } + else + mgr_.message(EntityManagerMessages::fsiMissingValue, + StringMessageArg(token)); + hadPublic = 1; + } + else + mgr_.message(gotValue + ? EntityManagerMessages::fsiUnsupportedAttribute + : EntityManagerMessages::fsiUnsupportedAttributeToken, + StringMessageArg(token)); + } + return 1; +} + +void FSIParser::convertMinimumLiteral(const StringC &from, StringC &to) +{ + // Do just enough to ensure it can be reparsed. + to.resize(0); + for (size_t i = 0; i < from.size(); i++) { + Char c = from[i]; + if (matchChar(c, '"') || matchChar(c, '#')) + mgr_.message(EntityManagerMessages::fsiLookupChar, NumberMessageArg(c)); + else if (matchChar(c, ' ')) { + if (to.size() && to[to.size() - 1] != c) + to += c; + } + else + to += c; + } + if (to.size() && matchChar(to[to.size() - 1], ' ')) + to.resize(to.size() - 1); +} + +// FIXME This should be table driven. + +Boolean FSIParser::setAttributes(StorageObjectSpec &sos, + Boolean neutral, + Xchar &smcrd, + Boolean &fold) +{ + Boolean hadBctf = 0; + Boolean hadEncoding = 0; + Boolean hadTracking = 0; + Boolean hadSmcrd = 0; + smcrd = -1; + fold = 1; + Boolean hadRecords = 0; + Boolean hadBase = 0; + Boolean hadZapeof = 0; + Boolean hadSearch = 0; + Boolean hadFold = 0; + StorageObjectSpec::Records records; + setDefaults(sos); + for (;;) { + StringC token, value; + Boolean gotValue; + if (!parseAttribute(token, gotValue, value)) { + mgr_.message(EntityManagerMessages::fsiSyntax, StringMessageArg(str_)); + return 0; + } + if (token.size() == 0) + break; + if (matchKey(token, "BCTF")) { + if (sos.storageManager->requiredCodingSystem()) + mgr_.message(EntityManagerMessages::fsiBctfEncodingNotApplicable); + else if (hadBctf) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(token)); + else if (hadEncoding) + mgr_.message(EntityManagerMessages::fsiBctfAndEncoding); + else if (gotValue) { + const char *codingSystemName; + const InputCodingSystem *codingSystem + = em_->lookupCodingSystem(value, idCharset_, 1, codingSystemName); + if (codingSystem) { + sos.codingSystem = codingSystem; + sos.codingSystemName = codingSystemName; + sos.codingSystemType = StorageObjectSpec::bctf; + } + else if (matchKey(value, "SAME")) { + if (!isNdata_) { + if (defSpec_) { + sos.codingSystem = defSpec_->codingSystem; + sos.codingSystemName = defSpec_->codingSystemName; + sos.codingSystemType = defSpec_->codingSystemType; + } + else { + sos.codingSystem = em_->defaultCodingSystem_; + sos.codingSystemName = 0; + sos.codingSystemType = (em_->internalCharsetIsDocCharset_ + ? StorageObjectSpec::bctf + : StorageObjectSpec::encoding); + } + } + } + else + mgr_.message(EntityManagerMessages::fsiUnknownBctf, + StringMessageArg(value)); + } + else + mgr_.message(EntityManagerMessages::fsiMissingValue, + StringMessageArg(token)); + hadBctf = 1; + } + else if (matchKey(token, "ENCODING")) { + if (sos.storageManager->requiredCodingSystem()) + mgr_.message(EntityManagerMessages::fsiBctfEncodingNotApplicable); + else if (hadEncoding) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(token)); + else if (hadBctf) + mgr_.message(EntityManagerMessages::fsiBctfAndEncoding); + else if (gotValue) { + const char *codingSystemName; + const InputCodingSystem *codingSystem + = em_->lookupCodingSystem(value, idCharset_, 0, codingSystemName); + if (codingSystem) { + sos.codingSystem = codingSystem; + sos.codingSystemName = codingSystemName; + sos.codingSystemType = StorageObjectSpec::encoding; + } + else if (matchKey(value, "SAME")) { + if (!isNdata_) { + if (defSpec_) { + sos.codingSystem = defSpec_->codingSystem; + sos.codingSystemName = defSpec_->codingSystemName; + sos.codingSystemType = defSpec_->codingSystemType; + } + else { + sos.codingSystem = em_->defaultCodingSystem_; + sos.codingSystemName = 0; + sos.codingSystemType = (em_->internalCharsetIsDocCharset_ + ? StorageObjectSpec::bctf + : StorageObjectSpec::encoding); + } + } + } + else + mgr_.message(EntityManagerMessages::fsiUnknownEncoding, + StringMessageArg(value)); + } + else + mgr_.message(EntityManagerMessages::fsiMissingValue, + StringMessageArg(token)); + hadEncoding = 1; + } + else if (matchKey(token, "TRACKING")) { + if (hadTracking) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(token)); + else if (gotValue) { + if (matchKey(value, "NOTRACK")) + sos.notrack = 1; + else if (!matchKey(value, "TRACK")) + mgr_.message(EntityManagerMessages::fsiBadTracking, + StringMessageArg(value)); + } + else + mgr_.message(EntityManagerMessages::fsiMissingValue, + StringMessageArg(token)); + hadTracking = 1; + } + else if (matchKey(token, "ZAPEOF")) { + if (sos.storageManager->requiredCodingSystem()) + mgr_.message(EntityManagerMessages::fsiZapeofNotApplicable); + else if (hadZapeof) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(token)); + else if (gotValue) { + if (matchKey(value, "ZAPEOF")) + sos.zapEof = 1; + else if (matchKey(value, "NOZAPEOF")) + sos.zapEof = 0; + else + mgr_.message(EntityManagerMessages::fsiBadZapeof, + StringMessageArg(value)); + } + else + sos.zapEof = 1; + hadZapeof = 1; + } + else if (matchKey(token, "NOZAPEOF")) { + if (sos.storageManager->requiredCodingSystem()) + mgr_.message(EntityManagerMessages::fsiZapeofNotApplicable); + else if (hadZapeof) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(idCharset_.execToDesc("ZAPEOF"))); + else if (gotValue) + mgr_.message(EntityManagerMessages::fsiValueAsName, + StringMessageArg(token)); + else + sos.zapEof = 0; + hadZapeof = 1; + } + else if (matchKey(token, "SEARCH")) { + if (hadSearch) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(token)); + else if (gotValue) { + if (matchKey(value, "SEARCH")) + sos.search = 1; + else if (matchKey(value, "NOSEARCH")) + sos.search = 0; + else + mgr_.message(EntityManagerMessages::fsiBadSearch, + StringMessageArg(value)); + } + else + sos.search = 1; + hadSearch = 1; + } + else if (matchKey(token, "NOSEARCH")) { + if (hadSearch) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(idCharset_.execToDesc("SEARCH"))); + else if (gotValue) + mgr_.message(EntityManagerMessages::fsiValueAsName, + StringMessageArg(token)); + else + sos.search = 0; + hadSearch = 1; + } + else if (matchKey(token, "FOLD")) { + if (!neutral) + mgr_.message(EntityManagerMessages::fsiFoldNotNeutral); + else if (hadFold) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(token)); + else if (gotValue) { + if (matchKey(value, "FOLD")) + fold = 1; + else if (matchKey(value, "NOFOLD")) + fold = 0; + else + mgr_.message(EntityManagerMessages::fsiBadFold, + StringMessageArg(value)); + } + else + fold = 1; + hadFold = 1; + } + else if (matchKey(token, "NOFOLD")) { + if (!neutral) + mgr_.message(EntityManagerMessages::fsiFoldNotNeutral); + else if (hadFold) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(idCharset_.execToDesc("FOLD"))); + else if (gotValue) + mgr_.message(EntityManagerMessages::fsiValueAsName, + StringMessageArg(token)); + else + fold = 0; + hadFold = 1; + } + else if (matchKey(token, "SMCRD")) { + if (hadSmcrd) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(token)); + else if (gotValue) { + if (value.size() == 0) + smcrd = -1; + else if (value.size() == 1) + smcrd = value[0]; + else + mgr_.message(EntityManagerMessages::fsiBadSmcrd, + StringMessageArg(value)); + } + else + mgr_.message(EntityManagerMessages::fsiMissingValue, + StringMessageArg(token)); + hadSmcrd = 1; + } + else if (matchKey(token, "RECORDS")) { + if (sos.storageManager->requiresCr()) + mgr_.message(EntityManagerMessages::fsiRecordsNotApplicable); + else if (hadRecords) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(token)); + else if (gotValue) { + if (!lookupRecords(value, sos.records)) + mgr_.message(EntityManagerMessages::fsiUnsupportedRecords, + StringMessageArg(value)); + } + else + mgr_.message(EntityManagerMessages::fsiMissingValue, + StringMessageArg(token)); + hadRecords = 1; + } + else if (matchKey(token, "SOIBASE")) { + if (hadBase) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(token)); + else if (gotValue) + value.swap(sos.baseId); + else { + mgr_.message(EntityManagerMessages::fsiMissingValue, + StringMessageArg(token)); + sos.baseId.resize(0); + } + hadBase = 1; + } + else if (lookupRecords(token, records)) { + if (sos.storageManager->requiresCr()) + mgr_.message(EntityManagerMessages::fsiRecordsNotApplicable); + else if (hadRecords) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(idCharset_.execToDesc("RECORDS"))); + else if (!gotValue) + sos.records = records; + else + mgr_.message(EntityManagerMessages::fsiValueAsName, + StringMessageArg(token)); + hadRecords = 1; + } + else if (matchKey(token, "NOTRACK")) { + if (hadTracking) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(idCharset_.execToDesc("TRACKING"))); + else if (!gotValue) + sos.notrack = 1; + else + mgr_.message(EntityManagerMessages::fsiValueAsName, + StringMessageArg(token)); + hadTracking = 1; + } + else if (matchKey(token, "TRACK")) { + if (hadTracking) + mgr_.message(EntityManagerMessages::fsiDuplicateAttribute, + StringMessageArg(idCharset_.execToDesc("TRACKING"))); + else if (gotValue) + mgr_.message(EntityManagerMessages::fsiValueAsName, + StringMessageArg(token)); + hadTracking = 1; + } + else + mgr_.message(gotValue + ? EntityManagerMessages::fsiUnsupportedAttribute + : EntityManagerMessages::fsiUnsupportedAttributeToken, + StringMessageArg(token)); + } + if (hadBase && sos.baseId.size() > 0) { + convertId(sos.baseId, smcrd, sos.storageManager); + if (neutral) { + if (!sos.storageManager->transformNeutral(sos.baseId, fold, mgr_)) + sos.baseId.resize(0); + } + } + if (!hadZapeof && hadRecords && sos.records == StorageObjectSpec::asis) + sos.zapEof = 0; + return 1; +} + +FSIParser::RecordType FSIParser::recordTypeTable[] = { + { "FIND", StorageObjectSpec::find }, + { "ASIS", StorageObjectSpec::asis }, + { "CR", StorageObjectSpec::cr }, + { "LF", StorageObjectSpec::lf }, + { "CRLF", StorageObjectSpec::crlf } +}; + +const char *FSIParser::recordsName(StorageObjectSpec::Records records) +{ + for (size_t i = 0; i < SIZEOF(recordTypeTable); i++) + if (records == recordTypeTable[i].value) + return recordTypeTable[i].name; + return 0; +} + +Boolean FSIParser::lookupRecords(const StringC &token, + StorageObjectSpec::Records &result) +{ + for (size_t i = 0; i < SIZEOF(recordTypeTable); i++) + if (matchKey(token, recordTypeTable[i].name)) { + result = recordTypeTable[i].value; + return 1; + } + return 0; +} + +void FSIParser::setDefaults(StorageObjectSpec &sos) +{ + if (sos.storageManager->requiresCr()) + sos.records = StorageObjectSpec::cr; + else if (isNdata_ + || (defSpec_ && defSpec_->records == StorageObjectSpec::asis)) + sos.records = StorageObjectSpec::asis; + if (isNdata_ || (defSpec_ && !defSpec_->zapEof)) + sos.zapEof = 0; + if (defSpec_ && defSpec_->storageManager == sos.storageManager) { + if (defId_) + sos.baseId = *defId_; + else { + sos.baseId = defSpec_->specId; + sos.storageManager->resolveRelative(defSpec_->baseId, + sos.baseId, + 0); + } + } + sos.codingSystem = sos.storageManager->requiredCodingSystem(); + if (sos.codingSystem) { + sos.zapEof = 0; // hack + sos.codingSystemType = StorageObjectSpec::special; + } + else { + sos.codingSystem = em_->defaultCodingSystem_; + sos.codingSystemType + = (em_->internalCharsetIsDocCharset_ + ? StorageObjectSpec::bctf + : StorageObjectSpec::encoding); + if (isNdata_) { + sos.codingSystem = em_->codingSystemKit_->identityInputCodingSystem(); + sos.codingSystemType = StorageObjectSpec::special; + } + else if (defSpec_) { + sos.codingSystem = defSpec_->codingSystem; + sos.codingSystemName = defSpec_->codingSystemName; + sos.codingSystemType = defSpec_->codingSystemType; + } + } +} + +Boolean FSIParser::parseAttribute(StringC &token, Boolean &gotValue, + StringC &value) +{ + Xchar c = get(); + while (isS(c)) + c = get(); + if (c == -1) { + return 0; + } + token.resize(0); + if (matchChar(c, '>')) + return 1; + if (matchChar(c, '"') || matchChar(c, '\'') || matchChar(c, '=')) + return 0; + for (;;) { + token += c; + c = get(); + if (c == -1) + return 0; + if (isS(c)) + break; + if (matchChar(c, '>') || matchChar(c, '=')) + break; + } + while (isS(c)) + c = get(); + if (c == -1) + return 0; + if (!matchChar(c, '=')) { + unget(); + gotValue = 0; + return 1; + } + gotValue = 1; + value.resize(0); + + c = get(); + while (isS(c)) + c = get(); + if (matchChar(c, '>') || matchChar(c, '=')) + return 0; + if (matchChar(c, '"') || matchChar(c, '\'')) { + Char lit = c; + for (;;) { + Xchar c = get(); + if (c == lit) + break; + if (c == -1) + return 0; + if (matchChar(c, '\n')) + ; + else if (matchChar(c, '\r') || matchChar(c, '\t')) + value += idCharset_.execToDesc(' '); + else + value += c; + } + uncharref(value); + } + else { + for (;;) { + value += c; + c = get(); + if (c == -1) + return 0; + if (isS(c)) + break; + if (matchChar(c, '>') || matchChar(c, '=')) { + unget(); + break; + } + } + } + return 1; +} + +void FSIParser::uncharref(StringC &str) +{ + size_t j = 0; + size_t i = 0; + while (i < str.size()) { + int digit; + if (matchChar(str[i], '&') + && i + 2 < str.size() + && matchChar(str[i + 1], '#') + && convertDigit(str[i + 2], digit)) { + unsigned long val = digit; + i += 3; + while (i < str.size() && convertDigit(str[i], digit)) { + val = val*10 + digit; + i++; + } + str[j++] = val; + if (i < str.size() && matchChar(str[i], ';')) + i++; + } + else + str[j++] = str[i++]; + } + str.resize(j); +} + +Boolean FSIParser::convertId(StringC &id, Xchar smcrd, + const StorageManager *sm) +{ + const CharsetInfo *smCharset = sm->idCharset(); + StringC newId; + size_t i = 0; + while (i < id.size()) { + UnivChar univ; + WideChar wide; + ISet wideSet; + int digit; + if (Xchar(id[i]) == smcrd + && i + 1 < id.size() + && convertDigit(id[i + 1], digit)) { + i += 2; + Char val = digit; + while (i < id.size() && convertDigit(id[i], digit)) { + val = val*10 + digit; + i++; + } + newId += val; + if (i < id.size() && matchChar(id[i], ';')) + i++; + } + else if (smCharset) { + if (!idCharset_.descToUniv(id[i++], univ)) + return 0; + if (univ == UnivCharsetDesc::rs) + ; + else if (univ == UnivCharsetDesc::re && sm->reString()) + newId += *sm->reString(); + else if (smCharset->univToDesc(univ, wide, wideSet) != 1 + || wide > charMax) + return 0; // FIXME give error + else + newId += Char(wide); + } + else + newId += id[i++]; + } + newId.swap(id); + return 1; +} + +ParsedSystemId::ParsedSystemId() +{ +} + +ParsedSystemId::Map::Map() +{ +} + +ParsedSystemId::Map::Map(const ParsedSystemId::Map& x) +: type(x.type), + publicId(x.publicId) +{ +} + +ParsedSystemId::Map::~Map() +{ +} + +ParsedSystemId::Map& ParsedSystemId::Map::operator=(const ParsedSystemId::Map& x) +{ + if (this != &x) { + type = x.type; + publicId = x.publicId; + } + return *this; +} + +static +void unparseSoi(const StringC &soi, + const CharsetInfo *idCharset, + const CharsetInfo &resultCharset, + StringC &result, + Boolean &needSmcrd); + +void ParsedSystemId::unparse(const CharsetInfo &resultCharset, + Boolean isNdata, + StringC &result) const +{ + size_t len = size(); + result.resize(0); + size_t i; + for (i = 0; i < maps.size(); i++) { + if (maps[i].type == Map::catalogDocument) + result += resultCharset.execToDesc(""); + else if (maps[i].type == Map::catalogPublic) { + result += resultCharset.execToDesc(""); + } + } + for (i = 0; i < len; i++) { + const StorageObjectSpec &sos = (*this)[i]; + result += resultCharset.execToDesc('<'); + result += resultCharset.execToDesc(sos.storageManager->type()); + if (sos.notrack) + result += resultCharset.execToDesc(" NOTRACK"); + if (!sos.search) + result += resultCharset.execToDesc(" NOSEARCH"); + if (!sos.storageManager->requiresCr() + && sos.records != (isNdata ? StorageObjectSpec::asis : StorageObjectSpec::find)) { + result += resultCharset.execToDesc(' '); + result += resultCharset.execToDesc(FSIParser::recordsName(sos.records)); + } + if (sos.codingSystemName && sos.codingSystemType != StorageObjectSpec::special) { + if (!sos.zapEof) + result += resultCharset.execToDesc(" NOZAPEOF"); + result += resultCharset.execToDesc(sos.codingSystemType == StorageObjectSpec::bctf + ? " BCTF=" + : " ENCODING="); + result += resultCharset.execToDesc(sos.codingSystemName); + } + Boolean needSmcrd = 0; + if (sos.baseId.size() != 0) { + result += resultCharset.execToDesc(" SOIBASE='"); + unparseSoi(sos.baseId, + sos.storageManager->idCharset(), + resultCharset, + result, + needSmcrd); + result += resultCharset.execToDesc('\''); + } + StringC tem; + unparseSoi(sos.specId, + sos.storageManager->idCharset(), + resultCharset, + tem, + needSmcrd); + if (needSmcrd) + result += resultCharset.execToDesc(" SMCRD='^'"); + result += resultCharset.execToDesc('>'); + result += tem; + } +} + +void unparseSoi(const StringC &soi, + const CharsetInfo *idCharset, + const CharsetInfo &resultCharset, + StringC &result, + Boolean &needSmcrd) +{ + if (!idCharset) { + for (size_t i = 0; i < soi.size(); i++) { + char buf[32]; + sprintf(buf, "&#%lu;", (unsigned long)soi[i]); + result += resultCharset.execToDesc(buf); + } + return; + } + for (size_t i = 0; i < soi.size(); i++) { + UnivChar univ; + WideChar to; + ISet toSet; + if (!idCharset->descToUniv(soi[i], univ) + || univ >= 127 + || univ < 32 + || univ == 36 // $ + || univ == 96 // ` +#ifndef SP_MSDOS_FILENAMES + || univ == 92 // backslash +#endif + || univ == 94 // ^ + || resultCharset.univToDesc(univ, to, toSet) != 1) { + needSmcrd = 1; + char buf[32]; + sprintf(buf, "^%lu;", (unsigned long)soi[i]); + result += resultCharset.execToDesc(buf); + } + else { + switch (univ) { + case 34: // double quote + case 35: // # + case 39: // apostrophe + case 60: // < + { + char buf[32]; + sprintf(buf, "&#%lu;", (unsigned long)to); + result += resultCharset.execToDesc(buf); + } + break; + default: + result += Char(to); + break; + } + } + } +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ExternalId.cxx b/lib/ExternalId.cxx new file mode 100644 index 0000000..aaceccd --- /dev/null +++ b/lib/ExternalId.cxx @@ -0,0 +1,418 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "ExternalId.h" +#include "CharsetInfo.h" +#include "macros.h" +#include "ParserMessages.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +ExternalId::ExternalId() +: haveSystem_(0), havePublic_(0) +{ +} + +void ExternalId::setSystem(Text &text) +{ + text.swap(system_); + haveSystem_ = 1; +} + +PublicId::Type ExternalId::setPublic(Text &text, const CharsetInfo &charset, + Char space, + const MessageType1 *&fpierror, + const MessageType1 *&urnerror) +{ + havePublic_ = 1; + return public_.init(text, charset, space, fpierror, urnerror); +} + +void ExternalId::setLocation(const Location &loc) +{ + loc_ = loc; +} + +PublicId::PublicId() +: type_(PublicId::informal) +{ +} + +PublicId::Type PublicId::init(Text &text, const CharsetInfo &charset, + Char space, + const MessageType1 *&fpierror, + const MessageType1 *&urnerror) +{ + text.swap(text_); + const StringC &str = text_.string(); + type_ = informal; + if (initFpi(str, charset, space, fpierror)) + type_ = fpi; + if (initUrn(str, charset, space, urnerror)) + type_ = urn; + return type_; +} + +Boolean PublicId::initUrn(const StringC &str, const CharsetInfo &charset, + Char space, const MessageType1 *&error) +{ + const Char *next = str.data(); + const Char *lim = str.data() + str.size(); + Char sep = charset.execToDesc(':'); + Char lcU = charset.execToDesc('u'); + Char ucU = charset.execToDesc('U'); + Char lcR = charset.execToDesc('r'); + Char ucR = charset.execToDesc('R'); + Char lcN = charset.execToDesc('n'); + Char ucN = charset.execToDesc('N'); + const Char *fieldStart; + size_t fieldLength; + if (!nextField(sep, next, lim, fieldStart, fieldLength, 0)) { + error = &ParserMessages::urnMissingField; + return 0; + } + if (fieldLength != 3 + || (fieldStart[0] != lcU && fieldStart[0] != ucU) + || (fieldStart[1] != lcR && fieldStart[1] != ucR) + || (fieldStart[2] != lcN && fieldStart[2] != ucN)) { + error = &ParserMessages::urnMissingPrefix; + return 0; + } + if (!nextField(sep, next, lim, fieldStart, fieldLength, 0)) { + error = &ParserMessages::urnMissingField; + return 0; + } + if (fieldLength < 1) { + //FIXME I don't fully understand the regexp notation in rfc2141: + // is fieldLength also supposed to be <= 31 ? + error = &ParserMessages::urnInvalidNid; + return 0; + } + UnivChar percent, lparen, rparen, plus, comma, minus, period, colon; + UnivChar equal, at, semicolon, dollar, uline, bang, star, apos; + charset.descToUniv('%', percent); + charset.descToUniv('(', lparen); + charset.descToUniv(')', rparen); + charset.descToUniv('+', plus); + charset.descToUniv(',', comma); + charset.descToUniv('-', minus); + charset.descToUniv('.', period); + charset.descToUniv(':', colon); + charset.descToUniv('=', equal); + charset.descToUniv('@', at); + charset.descToUniv(';', semicolon); + charset.descToUniv('$', dollar); + charset.descToUniv('_', uline); + charset.descToUniv('!', bang); + charset.descToUniv('*', star); + charset.descToUniv('\'', apos); + for (size_t i = 0; i < fieldLength; i++) { + UnivChar c; + if (!charset.descToUniv(fieldStart[i], c) + || ((!(c == minus) || i == 0) + && !(c >= UnivCharsetDesc::a && c < UnivCharsetDesc::a + 26) + && !(c >= UnivCharsetDesc::A && c < UnivCharsetDesc::A + 26) + && !(c >= UnivCharsetDesc::zero && c < UnivCharsetDesc::zero + 10))) { + error = &ParserMessages::urnInvalidNid; + return 0; + } + } + nid_.assign(fieldStart, fieldLength); + if (next == 0) { + error = &ParserMessages::urnMissingField; + return 0; + } + fieldStart = next; + fieldLength = lim - next; + if (fieldLength < 1) { + error = &ParserMessages::urnInvalidNss; + return 0; + } + for (size_t i = 0; i < fieldLength; i++) { + UnivChar c; + if (!charset.descToUniv(fieldStart[i], c)) { + error = &ParserMessages::urnInvalidNss; + return 0; + } + if (c == percent) { + if (fieldLength - i < 2) { + error = &ParserMessages::urnInvalidNss; + return 0; + } + Boolean zeros = 1; + for (size_t j = 0; j < 2; j++) { + i++; + if (!charset.descToUniv(fieldStart[i], c) + || (!(c >= UnivCharsetDesc::a && c < UnivCharsetDesc::a + 6) + && !(c >= UnivCharsetDesc::A && c < UnivCharsetDesc::A + 6) + && !(c >= UnivCharsetDesc::zero && c < UnivCharsetDesc::zero + 10))) { + error = &ParserMessages::urnInvalidNss; + return 0; + } + if (c != UnivCharsetDesc::zero) + zeros = 0; + } + if (zeros) { + // FIXME we're not checking that other chars are escaped + // which must not be escaped according to rfc2141 + error = &ParserMessages::urnInvalidNss; + return 0; + } + } + else { + if (!(c >= UnivCharsetDesc::a && c < UnivCharsetDesc::a + 26) + && !(c >= UnivCharsetDesc::A && c < UnivCharsetDesc::A + 26) + && !(c >= UnivCharsetDesc::zero && c < UnivCharsetDesc::zero + 10) + && !(c == lparen) && !(c == rparen) && !(c == plus) && !(c == comma) + && !(c == minus) && !(c == period) && !(c == colon) && !(c == equal) + && !(c == at) && !(c == semicolon) && !(c == dollar) && !(c == uline) + && !(c == bang) && !(c == star) && !(c == apos)) { + error = &ParserMessages::urnInvalidNss; + return 0; + } + } + } + nss_.assign(fieldStart, fieldLength); + return 1; +} + +Boolean PublicId::initFpi(const StringC &str, const CharsetInfo &charset, + Char space, const MessageType1 *&error) +{ + const Char *next = str.data(); + const Char *lim = str.data() + str.size(); + Char solidus = charset.execToDesc('/'); + Char minus = charset.execToDesc('-'); + Char plus = charset.execToDesc('+'); + const Char *fieldStart; + size_t fieldLength; + if (!nextField(solidus, next, lim, fieldStart, fieldLength)) { + error = &ParserMessages::fpiMissingField; + return 0; + } + if (fieldLength == 1 && (*fieldStart == minus || *fieldStart == plus)) { + ownerType_ = (*fieldStart == plus ? registered : unregistered); + if (!nextField(solidus, next, lim, fieldStart, fieldLength)) { + error = &ParserMessages::fpiMissingField; + return 0; + } + } + else + ownerType_ = ISO; + owner_.assign(fieldStart, fieldLength); + if (!nextField(solidus, next, lim, fieldStart, fieldLength)) { + error = &ParserMessages::fpiMissingField; + return 0; + } + size_t i; + for (i = 0; i < fieldLength; i++) + if (fieldStart[i] == space) + break; + if (i >= fieldLength) { + error = &ParserMessages::fpiMissingTextClassSpace; + return 0; + } + StringC textClassString(fieldStart, i); + if (!lookupTextClass(textClassString, charset, textClass_)) { + error = &ParserMessages::fpiInvalidTextClass; + return 0; + } + i++; // skip the space + fieldStart += i; + fieldLength -= i; + if (fieldLength == 1 && *fieldStart == minus) { + unavailable_ = 1; + if (!nextField(solidus, next, lim, fieldStart, fieldLength)) { + error = &ParserMessages::fpiMissingField; + return 0; + } + } + else + unavailable_ = 0; + description_.assign(fieldStart, fieldLength); + if (!nextField(solidus, next, lim, fieldStart, fieldLength)) { + error = &ParserMessages::fpiMissingField; + return 0; + } + if (textClass_ != CHARSET) { + for (i = 0; i < fieldLength; i++) { + UnivChar c; + if (!charset.descToUniv(fieldStart[i], c) + || c < UnivCharsetDesc::A || c >= UnivCharsetDesc::A + 26) { + error = &ParserMessages::fpiInvalidLanguage; + return 0; + } + } + // The public text language must be a name. + // Names cannot be empty. + if (fieldLength == 0) { + error = &ParserMessages::fpiInvalidLanguage; + return 0; + } + } + languageOrDesignatingSequence_.assign(fieldStart, fieldLength); + if (nextField(solidus, next, lim, fieldStart, fieldLength)) { + switch (textClass_) { + case CAPACITY: + case CHARSET: + case NOTATION: + case SYNTAX: + error = &ParserMessages::fpiIllegalDisplayVersion; + return 0; + default: + break; + } + haveDisplayVersion_ = 1; + displayVersion_.assign(fieldStart, fieldLength); + } + else + haveDisplayVersion_ = 0; + if (next != 0) { + error = &ParserMessages::fpiExtraField; + return 0; + } + return 1; +} + +Boolean PublicId::nextField(Char solidus, + const Char *&next, + const Char *lim, + const Char *&fieldStart, + size_t &fieldLength, + Boolean dup) +{ + if (next == 0) + return 0; + fieldStart = next; + for (; next < lim; next++) { + if (next[0] == solidus && next + dup < lim && next[dup] == solidus) { + fieldLength = next - fieldStart; + next += 1 + dup; + return 1; + } + } + fieldLength = lim - fieldStart; + next = 0; + return 1; +} + +const char *const PublicId::textClasses[] = { + "CAPACITY", + "CHARSET", + "DOCUMENT", + "DTD", + "ELEMENTS", + "ENTITIES", + "LPD", + "NONSGML", + "NOTATION", + "SD", + "SHORTREF", + "SUBDOC", + "SYNTAX", + "TEXT", +}; + +Boolean PublicId::lookupTextClass(const StringC &str, + const CharsetInfo &charset, + TextClass &textClass) +{ + for (size_t i = 0; i < SIZEOF(textClasses); i++) + if (str == charset.execToDesc(textClasses[i])) { + textClass = TextClass(i); + return 1; + } + return 0; +} + +Boolean PublicId::getOwnerType(OwnerType &result) const +{ + if (type_ != fpi) + return 0; + result = ownerType_; + return 1; +} + +Boolean PublicId::getOwner(StringC &result) const +{ + if (type_ != fpi) + return 0; + result = owner_; + return 1; +} + +Boolean PublicId::getTextClass(TextClass &result) const +{ + if (type_ != fpi) + return 0; + result = textClass_; + return 1; +} + +Boolean PublicId::getUnavailable(Boolean &result) const +{ + if (type_ != fpi) + return 0; + result = unavailable_; + return 1; +} + +Boolean PublicId::getDescription(StringC &result) const +{ + if (type_ != fpi) + return 0; + result = description_; + return 1; +} + +Boolean PublicId::getLanguage(StringC &result) const +{ + if ((type_ != fpi) || textClass_ == CHARSET) + return 0; + result = languageOrDesignatingSequence_; + return 1; +} + +Boolean PublicId::getDesignatingSequence(StringC &result) const +{ + if ((type_ != fpi) || textClass_ != CHARSET) + return 0; + result = languageOrDesignatingSequence_; + return 1; +} + +Boolean PublicId::getDisplayVersion(StringC &result) const +{ + if (type_ != fpi) + return 0; + if (haveDisplayVersion_) + result = displayVersion_; + return 1; +} + +Boolean PublicId::getNamespaceIdentifier(StringC &result) const +{ + if (type_ != urn) + return 0; + result = nid_; + return 1; +} + +Boolean PublicId::getNamespaceSpecificString(StringC &result) const +{ + if (type_ != urn) + return 0; + result = nss_; + return 1; +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Fixed2CodingSystem.cxx b/lib/Fixed2CodingSystem.cxx new file mode 100644 index 0000000..9a36ae2 --- /dev/null +++ b/lib/Fixed2CodingSystem.cxx @@ -0,0 +1,107 @@ +// Copyright (c) 1994 James Clark, 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MULTI_BYTE + +#include "Fixed2CodingSystem.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Fixed2Decoder : public Decoder { +public: + Fixed2Decoder(Boolean lsbFirst); + size_t decode(Char *to, const char *from, size_t fromLen, + const char **rest); + Boolean convertOffset(unsigned long &offset) const; +private: + Boolean lsbFirst_; +}; + +class Fixed2Encoder : public RecoveringEncoder { +public: + Fixed2Encoder(); + void output(const Char *, size_t, OutputByteStream *); +}; + +Decoder *Fixed2CodingSystem::makeDecoder(Boolean lsbFirst) const +{ + return new Fixed2Decoder(lsbFirst); +} + +Encoder *Fixed2CodingSystem::makeEncoder() const +{ + return new Fixed2Encoder; +} + +unsigned Fixed2CodingSystem::fixedBytesPerChar() const +{ + return 2; +} + +Fixed2Decoder::Fixed2Decoder(Boolean lsbFirst) +: Decoder(2), lsbFirst_(lsbFirst) +{ +} + +size_t Fixed2Decoder::decode(Char *to, const char *from, size_t fromLen, + const char **rest) +{ + if (sizeof(Char) == 2 && from == (char *)to + && +#ifndef SP_BIG_ENDIAN + ! +#endif + lsbFirst_) { + *rest = from + (fromLen & ~1); + return fromLen/2; + } + fromLen &= ~1; + *rest = from + fromLen; + for (size_t n = fromLen; n > 0; n -= 2) { + *to++ = lsbFirst_ + ? ((unsigned char)from[1] << 8) + (unsigned char)from[0] + : ((unsigned char)from[0] << 8) + (unsigned char)from[1]; + from += 2; + } + return fromLen/2; +} + +Boolean Fixed2Decoder::convertOffset(unsigned long &n) const +{ + n *= 2; + return true; +} + +Fixed2Encoder::Fixed2Encoder() +{ +} + +void Fixed2Encoder::output(const Char *s, size_t n, OutputByteStream *sb) +{ + for (size_t i = 0; i < n; i++) { + Char c = s[i]; + if (c > 0xffff) + handleUnencodable(c, sb); + else { + sb->sputc((c >> 8) & 0xff); + sb->sputc(c & 0xff); + } + } +} + +#ifdef SP_NAMESPACE +} +#endif + +#else /* not SP_MULTI_BYTE */ + +#ifndef __GNUG__ +static char non_empty_translation_unit; // sigh +#endif + +#endif /* not SP_MULTI_BYTE */ diff --git a/lib/Fixed4CodingSystem.cxx b/lib/Fixed4CodingSystem.cxx new file mode 100644 index 0000000..1f6b669 --- /dev/null +++ b/lib/Fixed4CodingSystem.cxx @@ -0,0 +1,169 @@ +// Copyright (c) 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MULTI_BYTE + +#include "Fixed4CodingSystem.h" +#include "macros.h" +#include "constant.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Fixed4Decoder : public Decoder { +public: + Fixed4Decoder(Boolean lsbFirst, Boolean lswFirst); + size_t decode(Char *to, const char *from, size_t fromLen, + const char **rest); + Boolean convertOffset(unsigned long &offset) const; +private: + // value for encoding error + enum { invalid = 0xfffd }; + Boolean lsbFirst_; + Boolean lswFirst_; +}; + +class Fixed4Encoder : public Encoder { +public: + Fixed4Encoder(); + ~Fixed4Encoder(); + void output(Char *, size_t, OutputByteStream *); + void output(const Char *, size_t, OutputByteStream *); +private: + void allocBuf(size_t); + char *buf_; + size_t bufSize_; +}; + +Decoder *Fixed4CodingSystem::makeDecoder(Boolean lsbFirst, Boolean lswFirst) const +{ + return new Fixed4Decoder(lsbFirst, lswFirst); +} + +Encoder *Fixed4CodingSystem::makeEncoder() const +{ + return new Fixed4Encoder; +} + +unsigned Fixed4CodingSystem::fixedBytesPerChar() const +{ + return 4; +} + +Fixed4Decoder::Fixed4Decoder(Boolean lsbFirst, Boolean lswFirst) +: Decoder(4), lsbFirst_(lsbFirst), lswFirst_(lswFirst) +{ +} + +size_t Fixed4Decoder::decode(Char *to, const char *from, size_t fromLen, + const char **rest) +{ +#if 0 + // FIXME for this optimization I need autoconf macros that tell + // me the byte order in 32bit words: 1234, 4321, 2143 or 3412. + // Look at the corresponding optimization in Fixed2Decoder. + if (sizeof(Char) == 4 && from == (char *)to) { + *rest = from + (fromLen & ~3); + for (size_t n = 0; n < fromLen/4; n++) + if (charMax < to[n]) + to[n] = invalid; + return fromLen/4; + } +#endif + fromLen &= ~3; + *rest = from + fromLen; + // lsbFirst, lswFirst: 0123 + // lsbFirst, !lswFirst: 2301 + // !lsbFirst, lswFirst: 1032 + // !lsbFirst, !lswFirst: 3210 + size_t shift0 = 8*(!lsbFirst_ + 2*!lswFirst_); + size_t shift1 = 8*(lsbFirst_ + 2*!lswFirst_); + size_t shift2 = 8*(!lsbFirst_ + 2*lswFirst_); + size_t shift3 = 8*(lsbFirst_ + 2*lswFirst_); + for (size_t n = fromLen; n > 0; n -= 4) { + Unsigned32 c = ((unsigned char)from[0] << shift0) + + ((unsigned char)from[1] << shift1) + + ((unsigned char)from[2] << shift2) + + ((unsigned char)from[3] << shift3); + *to++ = charMax < c ? invalid : c; + from += 4; + } + return fromLen/4; +} + +Boolean Fixed4Decoder::convertOffset(unsigned long &n) const +{ + n *= 4; + return true; +} + +Fixed4Encoder::Fixed4Encoder() +: buf_(0), bufSize_(0) +{ +} + +Fixed4Encoder::~Fixed4Encoder() +{ + delete [] buf_; +} + +void Fixed4Encoder::allocBuf(size_t n) +{ + if (bufSize_ < n) { + delete [] buf_; + buf_ = new char[bufSize_ = n]; + } +} + +void Fixed4Encoder::output(Char *s, size_t n, OutputByteStream *sb) +{ +#ifdef SP_BIG_ENDIAN + if (sizeof(Char) == 4) { + sb->sputn((char *)s, n*4); + return; + } +#endif + ASSERT(sizeof(Char) >= 4); + char *p = (char *)s; + for (size_t i = 0; i < n; i++) { + Char c = s[i]; + *p++ = (c >> 24) & 0xff; + *p++ = (c >> 16) & 0xff; + *p++ = (c >> 8) & 0xff; + *p++ = c & 0xff; + } + sb->sputn((char *)s, n*4); +} + +void Fixed4Encoder::output(const Char *s, size_t n, OutputByteStream *sb) +{ +#ifdef SP_BIG_ENDIAN + if (sizeof(Char) == 4) { + sb->sputn((char *)s, n*4); + return; + } +#endif + allocBuf(n*4); + for (size_t i = 0; i < n; i++) { + buf_[i*4] = (s[i] >> 24) & 0xff; + buf_[i*4 + 1] = (s[i] >> 16) & 0xff; + buf_[i*4 + 2] = (s[i] >> 8) & 0xff; + buf_[i*4 + 3] = s[i] & 0xff; + } + sb->sputn(buf_, n*4); +} + +#ifdef SP_NAMESPACE +} +#endif + +#else /* not SP_MULTI_BYTE */ + +#ifndef __GNUG__ +static char non_empty_translation_unit; // sigh +#endif + +#endif /* not SP_MULTI_BYTE */ diff --git a/lib/GenericEventHandler.cxx b/lib/GenericEventHandler.cxx new file mode 100644 index 0000000..ffe6e26 --- /dev/null +++ b/lib/GenericEventHandler.cxx @@ -0,0 +1,806 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "GenericEventHandler.h" +#include "macros.h" +#include "ExtendEntityManager.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SpOpenEntity : public SGMLApplication::OpenEntity { +public: + SpOpenEntity(const ConstPtr &origin); + SGMLApplication::Location location(SGMLApplication::Position) const; +private: + ConstPtr origin_; + StorageObjectLocation soLoc_; +}; + +inline +void GenericEventHandler::freeAll() +{ + if (allocBlocks_) + freeAll1(); +} + +inline +void GenericEventHandler::clearNotation(SGMLApplication::Notation &to) +{ + clearString(to.name); +} + +inline +void GenericEventHandler::setLocation(SGMLApplication::Position &pos, + const Location &loc) +{ + if (lastOrigin_ != loc.origin()) + setLocation1(pos, loc); + else + pos = loc.index(); +} + +GenericEventHandler::GenericEventHandler(SGMLApplication &app, + bool generalEntities) +: app_(&app), generalEntities_(generalEntities), + freeBlocks_(0), allocBlocks_(0), firstBlockSpare_(0), firstBlockUsed_(0) +{ +} + +GenericEventHandler::~GenericEventHandler() +{ + freeAll(); + while (freeBlocks_) { + Block *tem = freeBlocks_; + freeBlocks_ = freeBlocks_->next; + delete [] tem->mem; + delete tem; + } +} + +void GenericEventHandler::freeAll1() +{ + Block **p; + for (p = &allocBlocks_; *p; p = &(*p)->next) + ; + *p = freeBlocks_; + freeBlocks_ = allocBlocks_; + allocBlocks_ = 0; + if (freeBlocks_) + firstBlockSpare_ = freeBlocks_->size; + else + firstBlockSpare_ = 0; + firstBlockUsed_ = 0; +} + +void *GenericEventHandler::allocate(size_t n) +{ + if (n == 0) + return 0; + // round up to avoid alignment problems + n = (n + sizeof(char *) - 1) & ~(sizeof(char *) - 1); + enum { BIG = 1024 }; + if (n > firstBlockSpare_) { + if (freeBlocks_ && firstBlockUsed_) { + Block *tem = freeBlocks_; + freeBlocks_ = freeBlocks_->next; + tem->next = allocBlocks_; + allocBlocks_ = tem; + } + if (!freeBlocks_ || freeBlocks_->size < n) { + Block *tem = new Block; + tem->size = n < BIG ? int(BIG) : n; + tem->mem = new char[tem->size]; + tem->next = freeBlocks_; + freeBlocks_ = tem; + } + firstBlockUsed_ = 0; + firstBlockSpare_ = freeBlocks_->size; + } + char *tem = freeBlocks_->mem + firstBlockUsed_; + firstBlockUsed_ += n; + firstBlockSpare_ -= n; + return tem; +} + +void GenericEventHandler::startElement(StartElementEvent *event) +{ + SGMLApplication::StartElementEvent appEvent; + setString(appEvent.gi, event->name()); + const ElementDefinition *def = event->elementType()->definition(); + switch (def->declaredContent()) { + case ElementDefinition::modelGroup: + appEvent.contentType + = (def->compiledModelGroup()->containsPcdata() + ? SGMLApplication::StartElementEvent::mixed + : SGMLApplication::StartElementEvent::element); + break; + case ElementDefinition::any: + appEvent.contentType = SGMLApplication::StartElementEvent::mixed; + break; + case ElementDefinition::cdata: + appEvent.contentType = SGMLApplication::StartElementEvent::cdata; + break; + case ElementDefinition::rcdata: + appEvent.contentType = SGMLApplication::StartElementEvent::rcdata; + break; + case ElementDefinition::empty: + appEvent.contentType = SGMLApplication::StartElementEvent::empty; + break; + } + appEvent.included = event->included(); + appEvent.nAttributes = event->attributes().size(); + if (appEvent.nAttributes != 0) { + if (event->attributes().conref()) + appEvent.contentType = SGMLApplication::StartElementEvent::empty; + setAttributes(appEvent.attributes, event->attributes()); + } + setLocation(appEvent.pos, event->location()); + app_->startElement(appEvent); + freeAll(); + delete event; +} + +void GenericEventHandler::endElement(EndElementEvent *event) +{ + SGMLApplication::EndElementEvent appEvent; + setString(appEvent.gi, event->name()); + setLocation(appEvent.pos, event->location()); + app_->endElement(appEvent); + delete event; +} + +void GenericEventHandler::data(DataEvent *event) +{ + SGMLApplication::DataEvent appEvent; + appEvent.data.ptr = event->data(); + appEvent.data.len = event->dataLength(); + setLocation(appEvent.pos, event->location()); + app_->data(appEvent); + delete event; +} + +void GenericEventHandler::pi(PiEvent *event) +{ + SGMLApplication::PiEvent appEvent; + appEvent.data.ptr = event->data(); + appEvent.data.len = event->dataLength(); + const Entity *entity = event->entity(); + if (entity) + setString(appEvent.entityName, entity->name()); + else + appEvent.entityName.len = 0; + setLocation(appEvent.pos, event->location()); + app_->pi(appEvent); + delete event; +} + +void GenericEventHandler::sdataEntity(SdataEntityEvent *event) +{ + SGMLApplication::SdataEvent appEvent; + appEvent.text.ptr = event->data(); + appEvent.text.len = event->dataLength(); + setString(appEvent.entityName, event->entity()->name()); + // Don't want location of chars in entity. + setLocation(appEvent.pos, event->location().origin()->parent()); + app_->sdata(appEvent); + delete event; +} + +void GenericEventHandler::externalDataEntity(ExternalDataEntityEvent *event) +{ + SGMLApplication::ExternalDataEntityRefEvent appEvent; + setEntity(appEvent.entity, *event->entity()); + setLocation(appEvent.pos, event->location()); + app_->externalDataEntityRef(appEvent); + freeAll(); + delete event; +} + +void GenericEventHandler::subdocEntity(SubdocEntityEvent *event) +{ + SGMLApplication::SubdocEntityRefEvent appEvent; + setEntity(appEvent.entity, *event->entity()); + setLocation(appEvent.pos, event->location()); + app_->subdocEntityRef(appEvent); + freeAll(); + delete event; +} + +void GenericEventHandler::nonSgmlChar(NonSgmlCharEvent *event) +{ + SGMLApplication::NonSgmlCharEvent appEvent; + appEvent.c = event->character(); + setLocation(appEvent.pos, event->location()); + app_->nonSgmlChar(appEvent); + delete event; +} + +void GenericEventHandler::startDtd(StartDtdEvent *event) +{ + SGMLApplication::StartDtdEvent appEvent; + setString(appEvent.name, event->name()); + const Entity *entity = event->entity().pointer(); + if (entity) { + appEvent.haveExternalId = 1; + setExternalId(appEvent.externalId, + entity->asExternalEntity()->externalId()); + } + else + appEvent.haveExternalId = 0; + setLocation(appEvent.pos, event->location()); + app_->startDtd(appEvent); + freeAll(); + delete event; +} + +void GenericEventHandler::endDtd(EndDtdEvent *event) +{ + SGMLApplication::EndDtdEvent appEvent; + setString(appEvent.name, event->dtd().name()); + setLocation(appEvent.pos, event->location()); + app_->endDtd(appEvent); + delete event; +} + +void GenericEventHandler::endProlog(EndPrologEvent *event) +{ + if (generalEntities_) { + SGMLApplication::GeneralEntityEvent entityEvent; + const Dtd &dtd = event->dtd(); + Dtd::ConstEntityIter iter(dtd.generalEntityIter()); + for (;;) { + const Entity *entity = iter.nextTemp(); + if (!entity) + break; + setEntity(entityEvent.entity, *entity); + app_->generalEntity(entityEvent); + } + freeAll(); + } + SGMLApplication::EndPrologEvent appEvent; + setLocation(appEvent.pos, event->location()); + app_->endProlog(appEvent); + delete event; +} + +void GenericEventHandler::entityDefaulted(EntityDefaultedEvent *event) +{ + if (generalEntities_) { + SGMLApplication::GeneralEntityEvent appEvent; + setEntity(appEvent.entity, event->entity()); + app_->generalEntity(appEvent); + } + delete event; +} + +void GenericEventHandler::appinfo(AppinfoEvent *event) +{ + SGMLApplication::AppinfoEvent appEvent; + const StringC *str; + if (event->literal(str)) { + setString(appEvent.string, *str); + appEvent.none = 0; + } + else + appEvent.none = 1; + setLocation(appEvent.pos, event->location()); + app_->appinfo(appEvent); + delete event; +} + +void GenericEventHandler::commentDecl(CommentDeclEvent *event) +{ + SGMLApplication::CommentDeclEvent appEvent; + appEvent.nComments = 0; + { + for (MarkupIter iter(event->markup()); iter.valid(); iter.advance()) + if (iter.type() == Markup::comment) + appEvent.nComments++; + } + SGMLApplication::CharString *comments + = (SGMLApplication::CharString *)allocate(appEvent.nComments * 2 + * sizeof(SGMLApplication::CharString)); + appEvent.comments = comments; + appEvent.seps = appEvent.comments + appEvent.nComments; + size_t i = 0; + for (MarkupIter iter(event->markup()); iter.valid(); iter.advance()) + switch (iter.type()) { + case Markup::comment: + comments[i].ptr = iter.charsPointer(); + comments[i].len = iter.charsLength(); + clearString(comments[appEvent.nComments + i]); + i++; + break; + case Markup::s: + comments[appEvent.nComments + i - 1].ptr = iter.charsPointer(); + comments[appEvent.nComments + i - 1].len = iter.charsLength(); + break; + default: + break; + } + setLocation(appEvent.pos, event->location()); + app_->commentDecl(appEvent); + freeAll(); + delete event; +} + +void GenericEventHandler::markedSectionStart(MarkedSectionStartEvent *event) +{ + SGMLApplication::MarkedSectionStartEvent appEvent; + unsigned depth = 0; + appEvent.nParams = 0; + { + for (MarkupIter iter(event->markup()); iter.valid(); iter.advance()) + switch (iter.type()) { + case Markup::reservedName: + if (!depth) + appEvent.nParams++; + break; + case Markup::entityStart: + if (!depth) + appEvent.nParams++; + depth++; + break; + case Markup::entityEnd: + depth--; + break; + default: + break; + } + } + SGMLApplication::MarkedSectionStartEvent::Param *params + = (SGMLApplication::MarkedSectionStartEvent::Param *) + allocate(appEvent.nParams * sizeof(appEvent.params[0])); + appEvent.params = params; + size_t i = 0; + for (MarkupIter iter(event->markup()); iter.valid(); iter.advance()) + switch (iter.type()) { + case Markup::reservedName: + if (!depth) { + switch (iter.reservedName()) { + case Syntax::rTEMP: + params[i].type + = SGMLApplication::MarkedSectionStartEvent::Param::temp; + break; + case Syntax::rINCLUDE: + params[i].type + = SGMLApplication::MarkedSectionStartEvent::Param::include; + break; + case Syntax::rRCDATA: + params[i].type + = SGMLApplication::MarkedSectionStartEvent::Param::rcdata; + break; + case Syntax::rCDATA: + params[i].type + = SGMLApplication::MarkedSectionStartEvent::Param::cdata; + break; + case Syntax::rIGNORE: + params[i].type + = SGMLApplication::MarkedSectionStartEvent::Param::ignore; + break; + default: + CANNOT_HAPPEN(); + } + clearString(params[i].entityName); + i++; + } + break; + case Markup::entityStart: + if (!depth) { + params[i].type + = SGMLApplication::MarkedSectionStartEvent::Param::entityRef; + setString(params[i].entityName, + iter.entityOrigin()->entity()->name()); + i++; + } + depth++; + break; + case Markup::entityEnd: + depth--; + break; + default: + break; + } + switch (event->status()) { + case MarkedSectionEvent::include: + appEvent.status = SGMLApplication::MarkedSectionStartEvent::include; + break; + case MarkedSectionEvent::rcdata: + appEvent.status = SGMLApplication::MarkedSectionStartEvent::rcdata; + break; + case MarkedSectionEvent::cdata: + appEvent.status = SGMLApplication::MarkedSectionStartEvent::cdata; + break; + case MarkedSectionEvent::ignore: + appEvent.status = SGMLApplication::MarkedSectionStartEvent::ignore; + break; + } + setLocation(appEvent.pos, event->location()); + app_->markedSectionStart(appEvent); + freeAll(); + delete event; +} + +void GenericEventHandler::ignoredChars(IgnoredCharsEvent *event) +{ + SGMLApplication::IgnoredCharsEvent appEvent; + appEvent.data.ptr = event->data(); + appEvent.data.len = event->dataLength(); + setLocation(appEvent.pos, event->location()); + app_->ignoredChars(appEvent); + delete event; +} + +void GenericEventHandler::markedSectionEnd(MarkedSectionEndEvent *event) +{ + SGMLApplication::MarkedSectionEndEvent appEvent; + switch (event->status()) { + case MarkedSectionEvent::include: + appEvent.status = SGMLApplication::MarkedSectionEndEvent::include; + break; + case MarkedSectionEvent::rcdata: + appEvent.status = SGMLApplication::MarkedSectionEndEvent::rcdata; + break; + case MarkedSectionEvent::cdata: + appEvent.status = SGMLApplication::MarkedSectionEndEvent::cdata; + break; + case MarkedSectionEvent::ignore: + appEvent.status = SGMLApplication::MarkedSectionEndEvent::ignore; + break; + } + setLocation(appEvent.pos, event->location()); + app_->markedSectionEnd(appEvent); + delete event; +} + +void GenericEventHandler::message(MessageEvent *event) +{ + SGMLApplication::ErrorEvent appEvent; + switch (event->message().type->severity()) { + case MessageType::quantityError: + appEvent.type = SGMLApplication::ErrorEvent::quantity; + break; + case MessageType::idrefError: + appEvent.type = SGMLApplication::ErrorEvent::idref; + break; + case MessageType::error: + appEvent.type = SGMLApplication::ErrorEvent::otherError; + break; + case MessageType::info: + appEvent.type = SGMLApplication::ErrorEvent::info; + break; + case MessageType::warning: + appEvent.type = SGMLApplication::ErrorEvent::warning; + break; + } + setLocation(appEvent.pos, event->message().loc); + StringC str; + reportMessage(event->message(), str); + setString(appEvent.message, str); + app_->error(appEvent); + ErrorCountEventHandler::message(event); +} + +void GenericEventHandler::setLocation1(SGMLApplication::Position &pos, + const Location &loc) +{ + const Location *locp = &loc; + for (;;) { + if (locp->origin().isNull()) { + lastOrigin_.clear(); + openEntityPtr_ = (SpOpenEntity *)0; + return; + } + const InputSourceOrigin *origin = locp->origin()->asInputSourceOrigin(); + if (origin && origin->externalInfo()) + break; + locp = &locp->origin()->parent(); + } + lastOrigin_ = locp->origin(); + pos = locp->index(); + openEntityPtr_ = new SpOpenEntity(locp->origin()); + app_->openEntityChange(openEntityPtr_); +} + +void +GenericEventHandler::setAttributes(const SGMLApplication::Attribute *&attributes, + const AttributeList &attributeList) +{ + size_t nAttributes = attributeList.size(); + SGMLApplication::Attribute *to + = (SGMLApplication::Attribute *)allocate(nAttributes * sizeof(*to)); + attributes = to; + for (size_t i = 0; i < nAttributes; i++) { + SGMLApplication::Attribute *p = to + i; + setString(p->name, attributeList.name(i)); + const AttributeValue *value = attributeList.value(i); + if (!value) + p->type = SGMLApplication::Attribute::invalid; + else { + const Text *text; + const StringC *string; + switch (value->info(text, string)) { + case AttributeValue::implied: + p->type = SGMLApplication::Attribute::implied; + break; + case AttributeValue::tokenized: + { + if (attributeList.specified(i)) + p->defaulted = SGMLApplication::Attribute::specified; + else if (attributeList.current(i)) + p->defaulted = SGMLApplication::Attribute::current; + else + p->defaulted = SGMLApplication::Attribute::definition; + p->type = SGMLApplication::Attribute::tokenized; + p->nEntities = 0; + p->notation.name.len = 0; + p->isId = attributeList.id(i); + p->isGroup = (attributeList.getAllowedTokens(i) != 0); + setString(p->tokens, *string); + const AttributeSemantics *semantics = attributeList.semantics(i); + if (semantics) { + ConstPtr notation = semantics->notation(); + if (!notation.isNull()) + setNotation(p->notation, *notation); + else { + size_t nEntities = semantics->nEntities(); + if (nEntities) { + SGMLApplication::Entity *v + = (SGMLApplication::Entity *)allocate(nEntities * sizeof(*v)); + p->entities = v; + p->nEntities = nEntities; + for (size_t i = 0; i < nEntities; i++) + setEntity(v[i], *semantics->entity(i)); + } + } + } + } + break; + case AttributeValue::cdata: + { + p->type = SGMLApplication::Attribute::cdata; + if (attributeList.specified(i)) + p->defaulted = SGMLApplication::Attribute::specified; + else if (attributeList.current(i)) + p->defaulted = SGMLApplication::Attribute::current; + else + p->defaulted = SGMLApplication::Attribute::definition; + TextItem::Type type; + const Char *s; + size_t length; + const Location *loc; + size_t nChunks = 0; + { + TextIter iter(*text); + while (iter.next(type, s, length, loc)) + switch (type) { + case TextItem::data: + case TextItem::sdata: + case TextItem::cdata: + case TextItem::nonSgml: + nChunks++; + break; + default: + break; + } + } + p->cdataChunks + = (SGMLApplication::Attribute::CdataChunk *)allocate(nChunks * sizeof(SGMLApplication::Attribute::CdataChunk)); + p->nCdataChunks = nChunks; + + { + size_t i = 0; + for (TextIter iter(*text); iter.next(type, s, length, loc);) { + switch (type) { + case TextItem::data: + case TextItem::sdata: + case TextItem::cdata: + { + SGMLApplication::Attribute::CdataChunk *chunk + = (SGMLApplication::Attribute::CdataChunk *)(p->cdataChunks + i++); + if (type != TextItem::sdata) { + chunk->isSdata = 0; + chunk->isNonSgml = 0; + } + else { + chunk->isSdata = 1; + setString(chunk->entityName, + *loc->origin()->asInputSourceOrigin()->entityName()); + } + chunk->data.ptr = s; + chunk->data.len = length; + } + break; + case TextItem::nonSgml: + { + SGMLApplication::Attribute::CdataChunk *chunk + = (SGMLApplication::Attribute::CdataChunk *)(p->cdataChunks + i++); + chunk->isSdata = 0; + chunk->isNonSgml = 1; + chunk->nonSgmlChar = *s; + chunk->data.len = 0; + chunk->data.ptr = 0; + } + break; + default: + break; + } + } + } + } + break; + } + } + } +} + + +void GenericEventHandler::setEntity(SGMLApplication::Entity &to, + const Entity &from) +{ + setString(to.name, from.name()); + switch (from.declType()) { + case Entity::generalEntity: + to.declType = SGMLApplication::Entity::general; + break; + case Entity::parameterEntity: + to.declType = SGMLApplication::Entity::parameter; + break; + case Entity::doctype: + to.declType = SGMLApplication::Entity::doctype; + break; + case Entity::linktype: + to.declType = SGMLApplication::Entity::linktype; + break; + default: + CANNOT_HAPPEN(); + } + switch (from.dataType()) { + case Entity::sgmlText: + to.dataType = SGMLApplication::Entity::sgml; + break; + case Entity::cdata: + to.dataType = SGMLApplication::Entity::cdata; + break; + case Entity::sdata: + to.dataType = SGMLApplication::Entity::sdata; + break; + case Entity::ndata: + to.dataType = SGMLApplication::Entity::ndata; + break; + case Entity::subdoc: + to.dataType = SGMLApplication::Entity::subdoc; + break; + case Entity::pi: + to.dataType = SGMLApplication::Entity::pi; + break; + } + const InternalEntity *internal = from.asInternalEntity(); + if (internal) { + to.isInternal = 1; + setString(to.text, internal->string()); + } + else { + const ExternalEntity *external = from.asExternalEntity(); + to.isInternal = 0; + setExternalId(to.externalId, external->externalId()); + const ExternalDataEntity *externalData = from.asExternalDataEntity(); + if (externalData) { + setNotation(to.notation, *externalData->notation()); + to.nAttributes = externalData->attributes().size(); + if (to.nAttributes) + setAttributes(to.attributes, externalData->attributes()); + } + else { + to.notation.name.len = 0; + to.nAttributes = 0; + } + } +} + + +void GenericEventHandler::setNotation(SGMLApplication::Notation &to, + const Notation &from) +{ + setString(to.name, from.name()); + setExternalId(to.externalId, from.externalId()); +} + +void GenericEventHandler::setExternalId(SGMLApplication::ExternalId &to, + const ExternalId &from) +{ + const StringC *str; + str = from.systemIdString(); + if (str) { + to.haveSystemId = 1; + setString(to.systemId, *str); + } + else + to.haveSystemId = 0; + str = from.publicIdString(); + if (str) { + to.havePublicId = 1; + setString(to.publicId, *str); + } + else + to.havePublicId = 0; + str = &from.effectiveSystemId(); + if (str->size()) { + to.haveGeneratedSystemId = 1; + setString(to.generatedSystemId, *str); + } + else + to.haveGeneratedSystemId = 0; +} + +MsgGenericEventHandler::MsgGenericEventHandler(SGMLApplication &app, + bool generalEntities, + MessageReporter &reporter, + const bool *messagesInhibitedPtr) +: GenericEventHandler(app, generalEntities), + reporter_(&reporter), + messagesInhibitedPtr_(messagesInhibitedPtr) +{ +} + +void MsgGenericEventHandler::reportMessage(const Message &msg, StringC &str) +{ + WrapReporter wrap(reporter_); + reporter_->dispatchMessage(msg); + wrap.strStream.extractString(str); + if (!*messagesInhibitedPtr_) + *wrap.origStream << str; +} + +SpOpenEntity::SpOpenEntity(const ConstPtr &origin) +: origin_(origin) +{ +} + +SGMLApplication::Location +SpOpenEntity::location(SGMLApplication::Position pos) const +{ + SGMLApplication::Location loc; + const Origin *origin = origin_.pointer(); + const InputSourceOrigin *inputSourceOrigin; + const ExternalInfo *externalInfo; + Index index = Index(pos); + for (;;) { + if (!origin) + return loc; + inputSourceOrigin = origin->asInputSourceOrigin(); + if (inputSourceOrigin) { + externalInfo = inputSourceOrigin->externalInfo(); + if (externalInfo) + break; + } + // Qualifier is for CodeWarrior + const ::SP_NAMESPACE_SCOPE Location &loc = origin->parent(); + index = loc.index(); + origin = loc.origin().pointer(); + } + const StringC *entityName = inputSourceOrigin->entityName(); + if (entityName) + GenericEventHandler::setString(loc.entityName, *entityName); + Offset off = inputSourceOrigin->startOffset(index); + loc.entityOffset = off; + if (!ExtendEntityManager::externalize(externalInfo, off, ((SpOpenEntity *)this)->soLoc_)) + return loc; + loc.lineNumber = soLoc_.lineNumber; + GenericEventHandler::setString(loc.filename, soLoc_.actualStorageId); + loc.columnNumber = soLoc_.columnNumber; + loc.byteOffset = soLoc_.byteIndex; + loc.other = soLoc_.storageObjectSpec; + return loc; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Group.cxx b/lib/Group.cxx new file mode 100644 index 0000000..651fe71 --- /dev/null +++ b/lib/Group.cxx @@ -0,0 +1,183 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Group.h" +#include "MessageBuilder.h" +#include "ParserMessages.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +AllowedGroupTokens::AllowedGroupTokens(GroupToken::Type t1, GroupToken::Type t2, + GroupToken::Type t3, GroupToken::Type t4, + GroupToken::Type t5, GroupToken::Type t6) +: flags_(0) +{ + allow(t1); + allow(t2); + allow(t3); + allow(t4); + allow(t5); + allow(t6); +} + +AllowedGroupConnectors::AllowedGroupConnectors(GroupConnector::Type c1) +: flags_(0) +{ + allow(c1); +} + +AllowedGroupConnectors::AllowedGroupConnectors(GroupConnector::Type c1, + GroupConnector::Type c2) +: flags_(0) +{ + allow(c1); + allow(c2); +} + +AllowedGroupConnectors::AllowedGroupConnectors(GroupConnector::Type c1, + GroupConnector::Type c2, + GroupConnector::Type c3) +: flags_(0) +{ + allow(c1); + allow(c2); + allow(c3); +} + +AllowedGroupConnectors::AllowedGroupConnectors(GroupConnector::Type c1, + GroupConnector::Type c2, + GroupConnector::Type c3, + GroupConnector::Type c4) +: flags_(0) +{ + allow(c1); + allow(c2); + allow(c3); + allow(c4); +} + + +AllowedGroupConnectorsMessageArg::AllowedGroupConnectorsMessageArg( + const AllowedGroupConnectors &allow, + const ConstPtr &syntax) +: allow_(allow), + syntax_(syntax) +{ +} + +MessageArg *AllowedGroupConnectorsMessageArg::copy() const +{ + return new AllowedGroupConnectorsMessageArg(*this); +} + +void AllowedGroupConnectorsMessageArg::append(MessageBuilder &builder) const +{ + static GroupConnector::Type types[] = { + GroupConnector::andGC, GroupConnector::orGC, GroupConnector::seqGC, + GroupConnector::grpcGC, GroupConnector::dtgcGC + }; + static Syntax::DelimGeneral delims[] = { + Syntax::dAND, Syntax::dOR, Syntax::dSEQ, + Syntax::dGRPC, Syntax::dDTGC + }; + Boolean first = 1; + for (size_t i = 0; i < SIZEOF(types); i++) + if (allow_.groupConnector(types[i])) { + if (!first) + builder.appendFragment(ParserMessages::listSep); + else + first = 0; + const StringC &delim = syntax_->delimGeneral(delims[i]); + builder.appendFragment(ParserMessages::delimStart); + builder.appendChars(delim.data(), delim.size()); +#if 0 + builder.appendFragment(ParserMessages::delimEnd); +#endif + } +} + +AllowedGroupTokensMessageArg::AllowedGroupTokensMessageArg( + const AllowedGroupTokens &allow, + const ConstPtr &syntax) +: allow_(allow), + syntax_(syntax) +{ +} + +MessageArg *AllowedGroupTokensMessageArg::copy() const +{ + return new AllowedGroupTokensMessageArg(*this); +} + +void AllowedGroupTokensMessageArg::append(MessageBuilder &builder) const +{ + const MessageFragment *fragment[4]; + int nFragments = 0; + if (allow_.groupToken(GroupToken::dataTagLiteral)) + fragment[nFragments++] = &ParserMessages::parameterLiteral; + if (allow_.groupToken(GroupToken::dataTagGroup)) + fragment[nFragments++] = &ParserMessages::dataTagGroup; + switch (allow_.group()) { + case GroupToken::modelGroup: + fragment[nFragments++] = &ParserMessages::modelGroup; + break; + case GroupToken::dataTagTemplateGroup: + fragment[nFragments++] = &ParserMessages::dataTagTemplateGroup; + break; + default: + break; + } + switch (allow_.nameStart()) { + case GroupToken::name: + fragment[nFragments++] = &ParserMessages::name; + break; + case GroupToken::nameToken: + fragment[nFragments++] = &ParserMessages::nameToken; + break; + case GroupToken::elementToken: + fragment[nFragments++] = &ParserMessages::elementToken; + break; + default: + break; + } + Boolean first = 1; + for (int i = 0; i < nFragments; i++) { + if (!first) + builder.appendFragment(ParserMessages::listSep); + else + first = 0; + builder.appendFragment(*fragment[i]); + } + if (allow_.groupToken(GroupToken::pcdata)) { + if (!first) + builder.appendFragment(ParserMessages::listSep); + StringC pcdata(syntax_->delimGeneral(Syntax::dRNI)); + pcdata += syntax_->reservedName(Syntax::rPCDATA); + builder.appendChars(pcdata.data(), pcdata.size()); + } + if (allow_.groupToken(GroupToken::all)) { + if (!first) + builder.appendFragment(ParserMessages::listSep); + StringC all(syntax_->delimGeneral(Syntax::dRNI)); + all += syntax_->reservedName(Syntax::rALL); + builder.appendChars(all.data(), all.size()); + } + if (allow_.groupToken(GroupToken::implicit)) { + if (!first) + builder.appendFragment(ParserMessages::listSep); + StringC implicit(syntax_->delimGeneral(Syntax::dRNI)); + implicit += syntax_->reservedName(Syntax::rIMPLICIT); + builder.appendChars(implicit.data(), implicit.size()); + } +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Group.h b/lib/Group.h new file mode 100644 index 0000000..98203bf --- /dev/null +++ b/lib/Group.h @@ -0,0 +1,167 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Group_INCLUDED +#define Group_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Boolean.h" +#include "ContentToken.h" +#include "StringC.h" +#include "MessageArg.h" +#include "Owner.h" +#include "Syntax.h" +#include "Text.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class GroupToken { +public: + GroupToken() { } + enum Type { + invalid, + nameToken, + name, + dataTagLiteral, // data tag (padding) template + dataTagGroup, + elementToken, + modelGroup, + pcdata, + dataTagTemplateGroup, + all, + implicit + }; + Type type; + StringC token; // name nameToken; with substitution + Owner model; + Owner contentToken; // elementToken pcdata dataTagGroup + Text text; + Vector textVector; +private: + GroupToken(const GroupToken &); // undefined + void operator=(const GroupToken &); // undefined +}; + +class AllowedGroupTokens { +public: + AllowedGroupTokens(GroupToken::Type, + GroupToken::Type = GroupToken::invalid, + GroupToken::Type = GroupToken::invalid, + GroupToken::Type = GroupToken::invalid, + GroupToken::Type = GroupToken::invalid, + GroupToken::Type = GroupToken::invalid); + Boolean groupToken(GroupToken::Type) const; + // modelGroup, dataTagTemplateGroup + GroupToken::Type group() const; + GroupToken::Type nameStart() const; +private: + void allow(GroupToken::Type); + unsigned flags_; +}; + +struct GroupConnector { + enum Type { + andGC, + orGC, + seqGC, + grpcGC, + dtgcGC + }; + Type type; +}; + +class AllowedGroupConnectors { +public: + AllowedGroupConnectors(GroupConnector::Type); + AllowedGroupConnectors(GroupConnector::Type, GroupConnector::Type); + AllowedGroupConnectors(GroupConnector::Type, GroupConnector::Type, + GroupConnector::Type); + AllowedGroupConnectors(GroupConnector::Type, GroupConnector::Type, + GroupConnector::Type, GroupConnector::Type); + Boolean groupConnector(GroupConnector::Type) const; +private: + void allow(GroupConnector::Type); + unsigned flags_; +}; + +class AllowedGroupTokensMessageArg : public MessageArg { +public: + AllowedGroupTokensMessageArg(const AllowedGroupTokens &allow, + const ConstPtr &syntax); + MessageArg *copy() const; + void append(MessageBuilder &) const; +private: + AllowedGroupTokens allow_; + ConstPtr syntax_; +}; + +class AllowedGroupConnectorsMessageArg : public MessageArg { +public: + AllowedGroupConnectorsMessageArg(const AllowedGroupConnectors &allow, + const ConstPtr &syntax); + MessageArg *copy() const; + void append(MessageBuilder &) const; +private: + AllowedGroupConnectors allow_; + ConstPtr syntax_; +}; + +inline +Boolean AllowedGroupTokens::groupToken(GroupToken::Type i) const +{ + return ((1 << i) & flags_) != 0; +} + +inline +GroupToken::Type AllowedGroupTokens::group() const +{ + if (groupToken(GroupToken::modelGroup)) + return GroupToken::modelGroup; + else if (groupToken(GroupToken::dataTagTemplateGroup)) + return GroupToken::dataTagTemplateGroup; + else + return GroupToken::invalid; +} + +inline +GroupToken::Type AllowedGroupTokens::nameStart() const +{ + if (groupToken(GroupToken::elementToken)) + return GroupToken::elementToken; + else if (groupToken(GroupToken::nameToken)) + return GroupToken::nameToken; + else if (groupToken(GroupToken::name)) + return GroupToken::name; + else + return GroupToken::invalid; +} + +inline +void AllowedGroupTokens::allow(GroupToken::Type t) +{ + flags_ |= (1 << t); +} + + +inline +Boolean AllowedGroupConnectors::groupConnector(GroupConnector::Type c) const +{ + return (flags_ & (1 << c)) != 0; +} + +inline +void AllowedGroupConnectors::allow(GroupConnector::Type c) +{ + flags_ |= (1 << c); +} + + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Group_INCLUDED */ diff --git a/lib/Hash.cxx b/lib/Hash.cxx new file mode 100644 index 0000000..476a531 --- /dev/null +++ b/lib/Hash.cxx @@ -0,0 +1,26 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Hash.h" +#include "StringC.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +unsigned long Hash::hash(const StringC &str) +{ + const Char *p = str.data(); + unsigned long h = 0; + for (size_t n = str.size(); n > 0; n--) + h = (h << 5) + h + *p++; // from Chris Torek + return h; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/IListBase.cxx b/lib/IListBase.cxx new file mode 100644 index 0000000..65e7798 --- /dev/null +++ b/lib/IListBase.cxx @@ -0,0 +1,36 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "IListBase.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +void IListBase::append(Link *p) +{ + Link **pp; + for (pp = &head_; *pp; pp = &(*pp)->next_) + ; + *pp = p; +} + +void IListBase::remove(Link *p) +{ + for (Link **pp = &head_; *pp; pp = &(*pp)->next_) + if (*pp == p) { + *pp = p->next_; + break; + } +} + +void IListBase::clear() +{ + while (!empty()) + delete get(); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Id.cxx b/lib/Id.cxx new file mode 100644 index 0000000..ba5fad3 --- /dev/null +++ b/lib/Id.cxx @@ -0,0 +1,30 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "Id.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Id::Id(const StringC &name) +: Named(name) +{ +} + +void Id::define(const Location &loc) +{ + defLocation_ = loc; + // release memory for pendingRefs_ + Vector tem; + pendingRefs_.swap(tem); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Id.h b/lib/Id.h new file mode 100644 index 0000000..b899c22 --- /dev/null +++ b/lib/Id.h @@ -0,0 +1,60 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Id_INCLUDED +#define Id_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Named.h" +#include "Location.h" +#include "Vector.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Id : public Named { +public: + Id(const StringC &); + void define(const Location &); + void addPendingRef(const Location &); + Boolean defined() const; + const Location &defLocation() const; + const Vector &pendingRefs() const; +private: + Location defLocation_; + Vector pendingRefs_; +}; + +inline +Boolean Id::defined() const +{ + return !defLocation_.origin().isNull(); +} + +inline +const Location &Id::defLocation() const +{ + return defLocation_; +} + +inline +const Vector &Id::pendingRefs() const +{ + return pendingRefs_; +} + +inline +void Id::addPendingRef(const Location &loc) +{ + pendingRefs_.push_back(loc); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Id_INCLUDED */ diff --git a/lib/IdentityCodingSystem.cxx b/lib/IdentityCodingSystem.cxx new file mode 100644 index 0000000..e81a5c8 --- /dev/null +++ b/lib/IdentityCodingSystem.cxx @@ -0,0 +1,83 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "IdentityCodingSystem.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class IdentityDecoder : public Decoder { +public: + size_t decode(Char *to, const char *from, size_t fromLen, + const char **rest); + Boolean convertOffset(unsigned long &offset) const; +}; + +class IdentityEncoder : public RecoveringEncoder { +public: + IdentityEncoder(); + void output(const Char *, size_t, OutputByteStream *); +}; + +IdentityCodingSystem::IdentityCodingSystem() +{ +} + +Decoder *IdentityCodingSystem::makeDecoder() const +{ + return new IdentityDecoder; +} + +Encoder *IdentityCodingSystem::makeEncoder() const +{ + return new IdentityEncoder; +} + +Boolean IdentityCodingSystem::isIdentity() const +{ + return 1; +} + +size_t IdentityDecoder::decode(Char *to, const char *from, size_t fromLen, + const char **rest) +{ + if (sizeof(Char) == sizeof(char) && from == (char *)to) { + *rest = from + fromLen; + return fromLen; + } + for (size_t n = fromLen; n > 0; n--) + *to++ = (unsigned char)*from++; // zero extend + *rest = from; + return fromLen; +} + +Boolean IdentityDecoder::convertOffset(unsigned long &) const +{ + return true; +} + +IdentityEncoder::IdentityEncoder() +{ +} + +void IdentityEncoder::output(const Char *s, size_t n, OutputByteStream *sb) +{ + if (sizeof(Char) != sizeof(char)) { + for (size_t i = 0; i < n; i++) { + Char c = s[i]; + if (c > UCHAR_MAX) + handleUnencodable(c, sb); + else + sb->sputc((unsigned char)c); + } + } + else + sb->sputn((const char *)s, n); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/InputSource.cxx b/lib/InputSource.cxx new file mode 100644 index 0000000..7d83f2c --- /dev/null +++ b/lib/InputSource.cxx @@ -0,0 +1,88 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "InputSource.h" +#include "MarkupScan.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +InputSource::InputSource(InputSourceOrigin *origin, const Char *start, + const Char *end) +: origin_(origin), start_(start), end_(end), cur_(start), accessError_(0), + startLocation_(origin, 0), multicode_(0), scanSuppress_(0) +{ +} + +void InputSource::reset(const Char *start, + const Char *end) +{ + origin_ = origin_->copy(); + start_ = start; + end_ = end; + cur_ = start_; + startLocation_ = Location(origin_.pointer(), 0); + multicode_ = 0; + scanSuppress_ = 0; + markupScanTable_.clear(); +} + +InputSource::~InputSource() +{ +} + +void InputSource::advanceStartMulticode(const Char *to) +{ + while (start_ < to) { + switch (markupScanTable_[*start_]) { + case MarkupScan::normal: + break; + case MarkupScan::in: + scanSuppress_ = 0; + break; + case MarkupScan::out: + if (!scanSuppress()) { + scanSuppress_ = 1; + scanSuppressSingle_ = 0; + } + break; + case MarkupScan::suppress: + // what's the effect of MSSCHAR followed by MSSCHAR + if (!scanSuppress()) { + scanSuppress_ = 1; + scanSuppressSingle_ = 1; + scanSuppressIndex_ = startLocation_.index() + 1; + } + break; + } + start_++; + startLocation_ += 1; + } +} + +void InputSource::willNotRewind() +{ +} + +void InputSource::setDocCharset(const CharsetInfo &, + const CharsetInfo &) +{ +} + +void InputSource::willNotSetDocCharset() +{ +} + +InternalInputSource *InputSource::asInternalInputSource() +{ + return 0; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/InternalInputSource.cxx b/lib/InternalInputSource.cxx new file mode 100644 index 0000000..547f93e --- /dev/null +++ b/lib/InternalInputSource.cxx @@ -0,0 +1,70 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include +#include "InternalInputSource.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +InternalInputSource::InternalInputSource(const StringC &str, + InputSourceOrigin *origin) +: InputSource(origin, str.data(), str.data() + str.size()), buf_(0), + contents_(&str) +{ +} + +InternalInputSource::~InternalInputSource() +{ + if (buf_) + delete [] buf_; +} + +Xchar InternalInputSource::fill(Messenger &) +{ + return eE; +} + +void InternalInputSource::pushCharRef(Char c, const NamedCharRef &ref) +{ + ASSERT(cur() == start()); + noteCharRef(startIndex() + (cur() - start()), ref); + if (buf_ == 0) { + buf_ = new Char[end() - start() + 1]; + memcpy(buf_ + 1, cur(), (end() - start())*sizeof(Char)); + changeBuffer(buf_ + 1, cur()); + } + moveLeft(); + *(Char *)cur() = c; +} + +Boolean InternalInputSource::rewind(Messenger &) +{ + reset(contents_->data(), + contents_->data() + contents_->size()); + if (buf_) { + delete [] buf_; + buf_ = 0; + } + return 1; +} + +const StringC *InternalInputSource::contents() { + return contents_; +} + +InternalInputSource *InternalInputSource::asInternalInputSource() +{ + return this; +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Link.cxx b/lib/Link.cxx new file mode 100644 index 0000000..eb193c0 --- /dev/null +++ b/lib/Link.cxx @@ -0,0 +1,17 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "Link.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Link::~Link() +{ +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/LinkProcess.cxx b/lib/LinkProcess.cxx new file mode 100644 index 0000000..b52b586 --- /dev/null +++ b/lib/LinkProcess.cxx @@ -0,0 +1,185 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "LinkProcess.h" +// ParserState is used for access to parser messages +#include "ParserState.h" +#include "MessageArg.h" +#include "ParserMessages.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +LinkProcess::LinkProcess() +{ +} + +void LinkProcess::init(const ConstPtr &lpd) +{ + lpd_ = lpd; + open_.clear(); + open_.insert(new LinkProcessOpenElement(lpd_->initialLinkSet())); +} + +Boolean LinkProcess::startElement(const ElementType *element, + const AttributeList &attributes, + const Location &location, + Messenger &mgr, + const AttributeList *&linkAttributes, + const ResultElementSpec *&resultElementSpec) +{ + if (lpd_.isNull()) { + linkAttributes = 0; + resultElementSpec = 0; + return 1; + } + const StringC *id = attributes.getId(); + if (id) { + const IdLinkRuleGroup *p = lpd_->lookupIdLink(*id); + if (p) { + size_t selected; + if (p->nLinkRules() > 1) { + linkAttributes_.resize(p->nLinkRules()); + for (size_t i = 0; i < linkAttributes_.size(); i++) + linkAttributes_[i] = &p->linkRule(i).attributes(); + if (!selectLinkRule(linkAttributes_, + location, + selected)) + return 0; + } + else + selected = 0; + const IdLinkRule &rule = p->linkRule(selected); + open_.insert(new LinkProcessOpenElement(open_.head()->current, + rule)); + linkAttributes = &rule.attributes(); + resultElementSpec = &rule.resultElementSpec(); + if (!rule.isAssociatedWith(element)) { + mgr.setNextLocation(location); + mgr.message(ParserMessages::idlinkElementType, + StringMessageArg(element->name()), + StringMessageArg(*id)); + } + return 1; + } + } + const LinkSet *currentLinkSet = open_.head()->current; + size_t nRules = currentLinkSet->nLinkRules(element); + if (nRules > 0) { + size_t selected; + if (nRules > 1) { + linkAttributes_.resize(nRules); + for (size_t i = 0; i < nRules; i++) + linkAttributes_[i] + = ¤tLinkSet->linkRule(element, i).attributes(); + if (!selectLinkRule(linkAttributes_, + location, + selected)) + return 0; + } + else + selected = 0; + const SourceLinkRule &rule = currentLinkSet->linkRule(element, selected); + open_.insert(new LinkProcessOpenElement(open_.head()->current, + rule)); + linkAttributes = &rule.attributes(); + resultElementSpec = &rule.resultElementSpec(); + return 1; + } + // FIXME construct attributes from attribute definition list + linkAttributes = 0; + resultElementSpec = 0; + open_.insert(new LinkProcessOpenElement(open_.head()->current)); + return 1; +} + + +void LinkProcess::endElement() +{ + if (lpd_.isNull()) + return; + LinkProcessOpenElement *top = open_.get(); + if (top->post) + open_.head()->current = top->post; + else if (top->postRestore) + open_.head()->current = open_.head()->restore; + delete top; +} + +void LinkProcess::uselink(const LinkSet *linkSet, + Boolean restore, + const Lpd *lpd) +{ + if (lpd_.isNull()) + return; + if (lpd != lpd_.pointer()) + return; + if (restore) + open_.head()->current = open_.head()->restore; + else if (linkSet) + open_.head()->current = linkSet; +} + +size_t LinkProcess::nImpliedLinkRules() const +{ + if (!open_.head()) + return 0; + return open_.head()->current->nImpliedLinkRules(); +} + +const ResultElementSpec &LinkProcess::impliedLinkRule(size_t i) const +{ + return open_.head()->current->impliedLinkRule(i); +} + +// Usually redefined by application. + +Boolean LinkProcess::selectLinkRule(const Vector &, + const Location &, + size_t &selected) +{ + selected = 0; + return 1; +} + +void LinkProcess::clear() +{ + open_.clear(); + lpd_.clear(); + linkAttributes_.clear(); +} + +void LinkProcess::swap(LinkProcess &to) +{ + open_.swap(to.open_); + lpd_.swap(to.lpd_); + linkAttributes_.swap(to.linkAttributes_); +} + +LinkProcessOpenElement::LinkProcessOpenElement(const LinkSet *cur, + const SourceLinkRule &rule) +{ + current = rule.uselink(); + if (!current) + current = cur; + restore = cur; + post = rule.postlink(); + postRestore = rule.postlinkRestore(); +} + +LinkProcessOpenElement::LinkProcessOpenElement(const LinkSet *cur) +{ + restore = current = cur; + post = 0; + postRestore = 0; +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/LiteralStorage.cxx b/lib/LiteralStorage.cxx new file mode 100644 index 0000000..91007b7 --- /dev/null +++ b/lib/LiteralStorage.cxx @@ -0,0 +1,130 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "LiteralStorage.h" +#include "CodingSystem.h" +#include + +#ifdef DECLARE_MEMMOVE +extern "C" { + void *memmove(void *, const void *, size_t); +} +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class LiteralStorageObject : public StorageObject { +public: + LiteralStorageObject(const StringC &); + Boolean read(char *buf, size_t bufSize, Messenger &, size_t &nread); + Boolean rewind(Messenger &); +private: + LiteralStorageObject(const LiteralStorageObject &); // undefined + void operator=(const LiteralStorageObject &); // undefined + + StringC str_; + size_t nBytesRead_; +}; + +class MemoryInputCodingSystem : public InputCodingSystem { +public: + Decoder *makeDecoder() const; +}; + +class MemoryDecoder : public Decoder { +public: + MemoryDecoder(); + size_t decode(Char *, const char *, size_t, const char **); +}; + +LiteralStorageManager::LiteralStorageManager(const char *type) +: type_(type) +{ +} + +StorageObject *LiteralStorageManager::makeStorageObject(const StringC &id, + const StringC &, + Boolean, + Boolean, + Messenger &, + StringC &foundId) +{ + foundId = id; + return new LiteralStorageObject(id); +} + +const InputCodingSystem *LiteralStorageManager::requiredCodingSystem() const +{ + static MemoryInputCodingSystem cs; + return &cs; +} + +Boolean LiteralStorageManager::requiresCr() const +{ + return 1; +} + +const char *LiteralStorageManager::type() const +{ + return type_; +} + +Boolean LiteralStorageManager::inheritable() const +{ + return 0; +} + +LiteralStorageObject::LiteralStorageObject(const StringC &str) +: str_(str), nBytesRead_(0) +{ +} + +Boolean LiteralStorageObject::rewind(Messenger &) +{ + nBytesRead_ = 0; + return 1; +} + +Boolean LiteralStorageObject::read(char *buf, size_t bufSize, + Messenger &, size_t &nread) +{ + if (nBytesRead_ >= str_.size()*sizeof(Char)) + return 0; + nread = str_.size()*sizeof(Char) - nBytesRead_; + if (nread > bufSize) + nread = bufSize; + memcpy(buf, (char *)str_.data() + nBytesRead_, nread); + nBytesRead_ += nread; + return 1; +} + +Decoder *MemoryInputCodingSystem::makeDecoder() const +{ + return new MemoryDecoder; +} + +MemoryDecoder::MemoryDecoder() +: Decoder(sizeof(Char)) +{ +} + +size_t MemoryDecoder::decode(Char *to, const char *from, size_t fromLen, + const char **rest) +{ + size_t nChars = fromLen/sizeof(Char); + *rest = from + nChars*sizeof(Char); + if (from != (char *)to) + memmove(to, from, nChars*sizeof(Char)); + return nChars; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Location.cxx b/lib/Location.cxx new file mode 100644 index 0000000..9e68015 --- /dev/null +++ b/lib/Location.cxx @@ -0,0 +1,568 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Location.h" +#include "Entity.h" +#include "Mutex.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class InputSourceOriginImpl : public EntityOrigin { +public: + InputSourceOriginImpl(); + InputSourceOriginImpl(const Location &refLocation); + const Location &parent() const; + const ExternalInfo *externalInfo() const; + Offset startOffset(Index ind) const; + void noteCharRef(Index replacementIndex, const NamedCharRef &); + Boolean isNamedCharRef(Index ind, NamedCharRef &ref) const; + void setExternalInfo(ExternalInfo *); + virtual InputSourceOrigin *copy() const; + const InputSourceOrigin *asInputSourceOrigin() const; +private: + InputSourceOriginImpl(const InputSourceOriginImpl &); // undefined + void operator=(const InputSourceOriginImpl &); // undefined + size_t nPrecedingCharRefs(Index ind) const; + Vector charRefs_; + StringC charRefOrigNames_; + Owner externalInfo_; // 0 for internal entities + Location refLocation_; // where referenced from + Mutex mutex_; +}; + +InputSourceOrigin::~InputSourceOrigin() {} + +class EntityOriginImpl : public InputSourceOriginImpl { +public: + void *operator new(size_t sz, Allocator &alloc) { + return alloc.alloc(sz); + } + void *operator new(size_t sz) { + return Allocator::allocSimple(sz); + } + void operator delete(void *p) { + Allocator::free(p); + } +#ifdef SP_HAVE_PLACEMENT_OPERATOR_DELETE + void operator delete(void *p, Allocator &) { Allocator::free(p); } +#endif + EntityOriginImpl(const ConstPtr &); + EntityOriginImpl(const ConstPtr &, + const Location &refLocation); + EntityOriginImpl(const ConstPtr &, + const Location &refLocation, Index refLength, + Owner &markup); + ~EntityOriginImpl(); + InputSourceOrigin *copy() const; + const Entity *entity() const { return entity_.pointer(); } + const EntityDecl *entityDecl() const; + const EntityOrigin *asEntityOrigin() const; + Boolean defLocation(Offset off, const Origin *&, Index &) const; + Index refLength() const; + const Markup *markup() const; +private: + EntityOriginImpl(const EntityOriginImpl &); // undefined + void operator=(const EntityOriginImpl &); // undefined + ConstPtr entity_; // 0 for document entity + // total length of reference + // (characters that were replaced by the entity) + Index refLength_; + Owner markup_; +}; + +const size_t EntityOrigin::allocSize = sizeof(EntityOriginImpl); + +Location::Location() +{ +} + +Location::Location(const Location& x) +: origin_(x.origin_), index_(x.index_) +{ +} + +Location::Location(Origin *origin, Index i) +: origin_(origin), index_(i) +{ +} + +Location::Location(ConstPtr origin, Index i) +: origin_(origin), index_(i) +{ +} + +Origin::~Origin() +{ +} + +const EntityOrigin *Origin::asEntityOrigin() const +{ + return 0; +} + +const InputSourceOrigin *Origin::asInputSourceOrigin() const +{ + return 0; +} + +Index Origin::refLength() const +{ + return 0; +} + +Boolean Origin::origChars(const Char *&) const +{ + return 0; +} + +Boolean Origin::inBracketedTextOpenDelim() const +{ + return 0; +} + +Boolean Origin::inBracketedTextCloseDelim() const +{ + return 0; +} + +Boolean Origin::isNumericCharRef(const Markup *&) const +{ + return 0; +} + +Boolean Origin::isNamedCharRef(Index, NamedCharRef &) const +{ + return 0; +} + +const EntityDecl *Origin::entityDecl() const +{ + return 0; +} + +const Markup *Origin::markup() const +{ + return 0; +} + +const Entity *Origin::entity() const +{ + return 0; +} + +Boolean Origin::defLocation(Offset, const Origin *&, Index &) const +{ + return 0; +} + +const ExternalInfo *Origin::externalInfo() const +{ + return 0; +} + +Offset Origin::startOffset(Index ind) const +{ + return ind; +} + +const StringC *Origin::entityName() const +{ + const EntityDecl *ent = entityDecl(); + if (ent) + return &ent->name(); + else + return 0; +} + +BracketOrigin::BracketOrigin(const Location &loc, Position pos) +: loc_(loc), pos_(pos) +{ +} + +const Location &BracketOrigin::parent() const +{ + return loc_; +} + +Boolean BracketOrigin::inBracketedTextOpenDelim() const +{ + return pos_ == open; +} + +Boolean BracketOrigin::inBracketedTextCloseDelim() const +{ + return pos_ == close; +} + +InputSourceOrigin *InputSourceOrigin::make() +{ + return new InputSourceOriginImpl; +} + +InputSourceOrigin *InputSourceOrigin::make(const Location &refLocation) +{ + return new InputSourceOriginImpl(refLocation); +} + +InputSourceOriginImpl::InputSourceOriginImpl() +{ +} + +InputSourceOriginImpl::InputSourceOriginImpl(const Location &refLocation) +: refLocation_(refLocation) +{ +} + +const InputSourceOrigin *InputSourceOriginImpl::asInputSourceOrigin() const +{ + return this; +} + +const ExternalInfo *InputSourceOriginImpl::externalInfo() const +{ + return externalInfo_.pointer(); +} + +InputSourceOrigin *InputSourceOriginImpl::copy() const +{ + return new InputSourceOriginImpl(refLocation_); +} + +const Location &InputSourceOriginImpl::parent() const +{ + return refLocation_; +} + +void InputSourceOriginImpl::setExternalInfo(ExternalInfo *info) +{ + externalInfo_ = info; +} + +void InputSourceOriginImpl::noteCharRef(Index replacementIndex, + const NamedCharRef &ref) +{ + Mutex::Lock lock(&mutex_); + charRefs_.resize(charRefs_.size() + 1); + charRefs_.back().replacementIndex = replacementIndex; + charRefs_.back().refStartIndex = ref.refStartIndex(); + charRefs_.back().refEndType = ref.refEndType(); + charRefs_.back().origNameOffset = charRefOrigNames_.size(); + charRefOrigNames_ += ref.origName(); +} + +// Number of character references whose replacement index < ind. + +size_t InputSourceOriginImpl::nPrecedingCharRefs(Index ind) const +{ + size_t i; + // Find i such that + // charRefs_[I].replacementIndex >= ind + // charRefs_[i - 1].replacementIndex < ind + if (charRefs_.size() == 0 + || ind > charRefs_.back().replacementIndex) + // This will be a common case, so optimize it. + i = charRefs_.size(); + else { + // Binary search + // Invariant: + // charRefs_ < i have replacementIndex < ind + // charRefs_ >= lim have replacementIndex >= ind + i = 0; + size_t lim = charRefs_.size(); + while (i < lim) { + size_t mid = i + (lim - i)/2; + if (charRefs_[mid].replacementIndex >= ind) + lim = mid; + else + i = mid + 1; + } + } + return i; +} + +Offset InputSourceOriginImpl::startOffset(Index ind) const +{ + Mutex::Lock lock(&((InputSourceOriginImpl *)this)->mutex_); + size_t n = nPrecedingCharRefs(ind); + if (n < charRefs_.size() + && ind == charRefs_[n].replacementIndex) { + for (;;) { + ind = charRefs_[n].refStartIndex; + if (n == 0 || charRefs_[n - 1].replacementIndex != ind) + break; + --n; + } + } + // charRefs[n - 1].replacementIndex < ind + return Offset(ind - n); +} + +Boolean InputSourceOriginImpl::isNamedCharRef(Index ind, NamedCharRef &ref) const +{ + Mutex::Lock lock(&((InputSourceOriginImpl *)this)->mutex_); + size_t n = nPrecedingCharRefs(ind); + if (n < charRefs_.size() && ind == charRefs_[n].replacementIndex) { + ref.set(charRefs_[n].refStartIndex, + charRefs_[n].refEndType, + charRefOrigNames_.data() + charRefs_[n].origNameOffset, + (n + 1 < charRefs_.size() + ? charRefs_[n + 1].origNameOffset + : charRefOrigNames_.size()) + - charRefs_[n].origNameOffset); + return 1; + } + return 0; +} + +EntityOrigin::~EntityOrigin() {} + +EntityOrigin *EntityOrigin::make(Allocator &alloc, + const ConstPtr &entity) +{ + return new (alloc) EntityOriginImpl(entity); +} + +EntityOrigin *EntityOrigin::make(Allocator &alloc, + const ConstPtr &entity, + const Location &refLocation) +{ + return new (alloc) EntityOriginImpl(entity, refLocation); +} + +EntityOrigin *EntityOrigin::make(Allocator &alloc, + const ConstPtr &entity, + const Location &refLocation, + Index refLength, + Owner &markup) +{ + return new (alloc) EntityOriginImpl(entity, refLocation, refLength, markup); +} + +EntityOrigin *EntityOrigin::make(const ConstPtr &entity, + const Location &refLocation, + Index refLength, + Owner &markup) +{ + return new EntityOriginImpl(entity, refLocation, refLength, markup); +} + +EntityOrigin *EntityOrigin::make(const ConstPtr &entity, + const Location &refLocation) +{ + return new EntityOriginImpl(entity, refLocation); +} + +EntityOriginImpl::EntityOriginImpl(const ConstPtr &entity) +: refLength_(0), entity_(entity) +{ +} + +EntityOriginImpl::EntityOriginImpl(const ConstPtr &entity, + const Location &refLocation) +: InputSourceOriginImpl(refLocation), refLength_(0), entity_(entity) +{ +} + +EntityOriginImpl::EntityOriginImpl(const ConstPtr &entity, + const Location &refLocation, + Index refLength, + Owner &markup) +: InputSourceOriginImpl(refLocation), refLength_(refLength), entity_(entity) +{ + markup.swap(markup_); +} + +EntityOriginImpl::~EntityOriginImpl() +{ +} + +InputSourceOrigin *EntityOriginImpl::copy() const +{ + Owner m; + if (markup_) + m = new Markup(*markup_); + return new EntityOriginImpl(entity_, parent(), refLength_, m); +} + +Index EntityOriginImpl::refLength() const +{ + return refLength_; +} + +const EntityOrigin *EntityOriginImpl::asEntityOrigin() const +{ + return this; +} + +Boolean EntityOriginImpl::defLocation(Offset off, const Origin *&origin, Index &index) const +{ + if (entity_.isNull()) + return 0; + const InternalEntity *internal = entity_->asInternalEntity(); + if (!internal) + return 0; + return internal->text().charLocation(off, origin, index); +} + +const EntityDecl *EntityOriginImpl::entityDecl() const +{ + return entity_.pointer(); +} + +const Markup *EntityOriginImpl::markup() const +{ + return markup_.pointer(); +} + + +ReplacementOrigin::ReplacementOrigin(const Location &loc, Char origChar) +: loc_(loc), origChar_(origChar) +{ +} + +const Location &ReplacementOrigin::parent() const +{ + return loc_; +} + +Boolean ReplacementOrigin::origChars(const Char *&s) const +{ + if (loc_.origin().isNull() || !loc_.origin()->origChars(s)) + s = &origChar_; + return 1; +} + +MultiReplacementOrigin::MultiReplacementOrigin(const Location &loc, + StringC &origChars) +: loc_(loc) +{ + origChars.swap(origChars_); +} + +const Location &MultiReplacementOrigin::parent() const +{ + return loc_; +} + +Boolean MultiReplacementOrigin::origChars(const Char *&s) const +{ + if (loc_.origin().isNull() || !loc_.origin()->origChars(s)) + s = origChars_.data(); + return 1; +} + +ProxyOrigin::ProxyOrigin(const Origin *origin) +: origin_(origin) +{ +} + +const EntityOrigin *ProxyOrigin::asEntityOrigin() const +{ + return origin_->asEntityOrigin(); +} + +const InputSourceOrigin *ProxyOrigin::asInputSourceOrigin() const +{ + return origin_->asInputSourceOrigin(); +} + +const Location &ProxyOrigin::parent() const +{ + return origin_->parent(); +} + +Index ProxyOrigin::refLength() const +{ + return origin_->refLength(); +} + +Boolean ProxyOrigin::origChars(const Char *&p) const +{ + return origin_->origChars(p); +} + +Boolean ProxyOrigin::inBracketedTextOpenDelim() const +{ + return origin_->inBracketedTextOpenDelim(); +} + +Boolean ProxyOrigin::inBracketedTextCloseDelim() const +{ + return origin_->inBracketedTextCloseDelim(); +} + +Boolean ProxyOrigin::isNumericCharRef(const Markup *&markup) const +{ + return origin_->isNumericCharRef(markup); +} + +Boolean ProxyOrigin::isNamedCharRef(Index ind, NamedCharRef &ref) const +{ + return origin_->isNamedCharRef(ind, ref); +} + +const EntityDecl *ProxyOrigin::entityDecl() const +{ + return origin_->entityDecl(); +} + +Boolean ProxyOrigin::defLocation(Offset off, const Origin *&origin, Index &index) const +{ + return origin_->defLocation(off, origin, index); +} + +const Markup *ProxyOrigin::markup() const +{ + return origin_->markup(); +} + +const Entity *ProxyOrigin::entity() const +{ + return origin_->entity(); +} + +const ExternalInfo *ProxyOrigin::externalInfo() const +{ + return origin_->externalInfo(); +} + +Offset ProxyOrigin::startOffset(Index ind) const +{ + return origin_->startOffset(ind); +} + +ExternalInfo::~ExternalInfo() +{ +} + +RTTI_DEF0(ExternalInfo) + +NamedCharRef::NamedCharRef() +{ +} + +NamedCharRef::NamedCharRef(Index refStartIndex, RefEndType refEndType, + const StringC &origName) +: refStartIndex_(refStartIndex), + refEndType_(refEndType), + origName_(origName) +{ +} + +void NamedCharRef::set(Index refStartIndex, RefEndType refEndType, + const Char *s, size_t n) +{ + refStartIndex_ = refStartIndex; + refEndType_ = refEndType; + origName_.assign(s, n); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Lpd.cxx b/lib/Lpd.cxx new file mode 100644 index 0000000..f4bedc9 --- /dev/null +++ b/lib/Lpd.cxx @@ -0,0 +1,180 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Lpd.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Lpd::Lpd(const StringC &name, Type type, const Location &location, + const Ptr &sourceDtd) +: name_(new StringResource(name)), type_(type), location_(location), + active_(0), sourceDtd_(sourceDtd) +{ +} + +Lpd::~Lpd() +{ +} + +SimpleLpd::SimpleLpd(const StringC &name, const Location &location, + const Ptr &sourceDtd) +: Lpd(name, simpleLink, location, sourceDtd) +{ +} + +ResultElementSpec::ResultElementSpec() +: elementType(0) +{ +} + +void ResultElementSpec::swap(ResultElementSpec &to) +{ + attributeList.swap(to.attributeList); + { + const ElementType *tem = to.elementType; + to.elementType = elementType; + elementType = tem; + } +} + +SourceLinkRule::SourceLinkRule() +: uselink_(0), postlink_(0), postlinkRestore_(0) +{ +} + +void SourceLinkRule::swap(SourceLinkRule &to) +{ + linkAttributes_.swap(to.linkAttributes_); + resultElementSpec_.swap(to.resultElementSpec_); + { + const LinkSet *tem = to.uselink_; + to.uselink_ = uselink_; + uselink_ = tem; + } + { + const LinkSet *tem = to.postlink_; + to.postlink_ = postlink_; + postlink_ = tem; + } + { + Boolean tem = to.postlinkRestore_; + to.postlinkRestore_ = postlinkRestore_; + postlinkRestore_ = tem; + } +} + +SourceLinkRuleResource::SourceLinkRuleResource() +{ +} + +LinkSet::LinkSet(const StringC &name, const Dtd *dtd) +: Named(name), defined_(0), linkRules_(dtd ? dtd->nElementTypeIndex() : 0) +{ +} + +LinkSet::~LinkSet() {} + +void LinkSet::addLinkRule(const ElementType *element, + const ConstPtr &rule) +{ + linkRules_[element->index()].push_back(rule); +} + +void LinkSet::addImplied(const ElementType *element, AttributeList &attributes) +{ + impliedSourceLinkRules_.resize(impliedSourceLinkRules_.size() + 1); + ResultElementSpec &result = impliedSourceLinkRules_.back(); + result.elementType = element; + result.attributeList = attributes; +} + +Boolean LinkSet::impliedResultAttributes(const ElementType *resultType, + const AttributeList *&attributes) +{ + for (size_t i = 0; i < impliedSourceLinkRules_.size(); i++) + if (impliedSourceLinkRules_[i].elementType == resultType) { + attributes = &impliedSourceLinkRules_[i].attributeList; + return 1; + } + return 0; +} + +size_t LinkSet::nLinkRules(const ElementType *e) const +{ + if (e->index() >= linkRules_.size()) + return 0; + return linkRules_[e->index()].size(); +} + +IdLinkRule::IdLinkRule() +{ +} + +Boolean IdLinkRule::isAssociatedWith(const ElementType *e) const +{ + for (size_t i = 0; i < assocElementTypes_.size(); i++) + if (assocElementTypes_[i] == e) + return 1; + return 0; +} + +void IdLinkRule::setAssocElementTypes(Vector &v) +{ + v.swap(assocElementTypes_); +} + +void IdLinkRule::swap(IdLinkRule &to) +{ + SourceLinkRule::swap(to); + assocElementTypes_.swap(to.assocElementTypes_); +} + +IdLinkRuleGroup::IdLinkRuleGroup(const StringC &name) +: Named(name) +{ +} + +void IdLinkRuleGroup::addLinkRule(IdLinkRule &rule) +{ + linkRules_.resize(linkRules_.size() + 1); + rule.swap(linkRules_.back()); +} + +ComplexLpd::ComplexLpd(const StringC &name, Type type, + const Location &location, + const Syntax &syntax, + const Ptr &sourceDtd, + const Ptr &resultDtd) +: Lpd(name, type, location, sourceDtd), resultDtd_(resultDtd), + hadIdLinkSet_(0), nAttributeDefinitionList_(0), + initialLinkSet_(syntax.rniReservedName(Syntax::rINITIAL), + sourceDtd.pointer()), + emptyLinkSet_(syntax.rniReservedName(Syntax::rEMPTY), + sourceDtd.pointer()), + linkAttributeDefs_(sourceDtd.isNull() ? 0 : sourceDtd->nElementTypeIndex()) +{ +} + +ComplexLpd::~ComplexLpd() {} + +IdLinkRuleGroup *ComplexLpd::lookupCreateIdLink(const StringC &id) +{ + IdLinkRuleGroup *group = idLinkTable_.lookup(id); + if (!group) { + group = new IdLinkRuleGroup(id); + idLinkTable_.insert(group); + } + return group; +} + + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/LpdEntityRef.h b/lib/LpdEntityRef.h new file mode 100644 index 0000000..ec0dbad --- /dev/null +++ b/lib/LpdEntityRef.h @@ -0,0 +1,46 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef LpdEntityRef_INCLUDED +#define LpdEntityRef_INCLUDED 1 + +#include "Entity.h" +#include "Boolean.h" +#include "Ptr.h" + +// Information about a reference to an entity that +// used a definition in an LPD. + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct LpdEntityRef { + ConstPtr entity; + PackedBoolean lookedAtDefault; + PackedBoolean foundInPass1Dtd; + static inline const LpdEntityRef &key(const LpdEntityRef &r) { return r; } + static inline unsigned long hash(const LpdEntityRef &r) { + return Hash::hash(r.entity->name()); + } +}; + +inline +Boolean operator==(const LpdEntityRef &r1, const LpdEntityRef &r2) +{ + return (r1.entity == r2.entity + && r1.foundInPass1Dtd == r2.foundInPass1Dtd + && r1.lookedAtDefault == r2.lookedAtDefault); +} + +inline +Boolean operator!=(const LpdEntityRef &r1, const LpdEntityRef &r2) +{ + return !(r1 == r2); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not LpdEntityRef_INCLUDED */ diff --git a/lib/Makefile.am b/lib/Makefile.am new file mode 100644 index 0000000..2d7a083 --- /dev/null +++ b/lib/Makefile.am @@ -0,0 +1,129 @@ +## Process this file with automake to produce Makefile.in + +lib_LTLIBRARIES= libosp.la + +## Note on library versions +## +## Here are a set of rules to help you update your library version +## information (format is current:revision:age): +## +## 1. Start with version information of `0:0:0' for each libtool library. +## 2. Update the version information only immediately before a public release +## of your software. More frequent updates are unnecessary, and only +## guarantee that the current interface number gets larger faster. +## 3. If the library source code has changed at all since the last update, +## then increment revision (`c:r:a' becomes `c:r+1:a'). +## 4. If any interfaces have been added, removed, or changed since the last +## update, increment current, and set revision to 0. +## 5. If any interfaces have been added since the last public release, then +## increment age. +## 6. If any interfaces have been removed since the last public release, +## then set age to 0. + +libosp_la_LDFLAGS = -no-undefined -version-info @SP_LIBOSP_CUR@:@SP_LIBOSP_REV@:@SP_LIBOSP_AGE@ +libosp_la_LIBADD = $(LTLIBINTL) + +## We list the generated sources here. This has the side-effect +## of putting them in the distribution, but that is actually nice +## since it means that building the distribution doesn't require perl. +## +## Note that we put the windows-only sources into EXTRA_DIST. +libosp_la_SOURCES = Allocator.cxx ArcEngine.cxx \ + ArcEngineMessages.h ArcProcessor.h Attribute.cxx \ + Big5CodingSystem.cxx CatalogEntry.h CatalogMessages.h \ + CharsetDecl.cxx CharsetInfo.cxx CharsetRegistry.cxx CmdLineApp.cxx \ + CmdLineAppMessages.h CodingSystem.cxx CodingSystemKit.cxx \ + ConsoleOutput.cxx ContentState.cxx ContentToken.cxx \ + DescriptorManager.cxx Dtd.cxx DtdDeclEventHandler.cxx \ + DtdDeclEventHandler.h EUCJPCodingSystem.cxx ElementType.cxx \ + Entity.cxx EntityApp.cxx EntityCatalog.cxx EntityDecl.cxx \ + EntityManager.cxx EntityManagerMessages.h EquivClass.h \ + ErrnoMessageArg.cxx ErrorCountEventHandler.cxx Event.cxx \ + EventGenerator.cxx EventQueue.h ExtendEntityManager.cxx \ + ExternalId.cxx Fixed2CodingSystem.cxx GenericEventHandler.cxx \ + Group.cxx Group.h Hash.cxx IListBase.cxx Id.cxx Id.h \ + IdentityCodingSystem.cxx InputSource.cxx InternalInputSource.cxx \ + Link.cxx LinkProcess.cxx LiteralStorage.cxx Location.cxx Lpd.cxx \ + LpdEntityRef.h Markup.cxx MarkupScan.h Message.cxx MessageArg.cxx \ + MessageEventHandler.cxx MessageFormatter.cxx MessageFormatterMessages.h \ + MessageReporter.cxx MessageReporterMessages.h \ + MessageTable.cxx ModeInfo.cxx \ + ModeInfo.h Mutex.h NameToken.h Notation.cxx NotationStorage.cxx \ + NumericCharRefOrigin.cxx NumericCharRefOrigin.h OffsetOrderedList.cxx \ + OffsetOrderedList.h OpenElement.cxx OutputByteStream.cxx \ + OutputCharStream.cxx OutputState.cxx OutputState.h Param.cxx Param.h \ + Parser.cxx Parser.h ParserApp.cxx ParserAppMessages.h \ + EntityAppMessages.h \ + ParserEventGeneratorKit.cxx ParserMessages.h ParserMessages.cxx \ + ParserOptions.cxx ParserState.cxx ParserState.h Partition.cxx \ + Partition.h PosixStorage.cxx PosixStorageMessages.h Priority.h \ + Recognizer.cxx Recognizer.h RewindStorageObject.cxx \ + SGMLApplication.cxx SJISCodingSystem.cxx SOEntityCatalog.cxx Sd.cxx \ + SdFormalError.h SdText.cxx SearchResultMessageArg.cxx SgmlParser.cxx \ + ShortReferenceMap.cxx SrInfo.h StdioStorage.cxx StdioStorageMessages.h \ + StorageManager.cxx StorageObjectPosition.h Syntax.cxx \ + Text.cxx TokenMessageArg.cxx TokenMessageArg.h \ + TranslateCodingSystem.cxx Trie.h TrieBuilder.cxx TrieBuilder.h \ + TypeId.cxx URLStorage.cxx URLStorageMessages.h \ + UTF8CodingSystem.cxx Undo.cxx Undo.h UnicodeCodingSystem.cxx \ + UnivCharsetDesc.cxx XMLCodingSystem.cxx \ + assert.cxx big5.h events.h gb2312.h iso646-jis.h iso8859-2.h \ + iso8859-3.h iso8859-4.h iso8859-5.h iso8859-6.h iso8859-7.h \ + iso8859-8.h iso8859-9.h jis0201.h jis0208.h jis0212.h ksc5601.h \ + koi8-r.h \ + parseAttribute.cxx parseCommon.cxx parseDecl.cxx parseInstance.cxx \ + parseMode.cxx parseParam.cxx parseSd.cxx splib.cxx splib.h \ + splibpch.h token.h app_inst.cxx arc_inst.cxx entmgr_inst.cxx \ + parser_inst.cxx xentmgr_inst.cxx SubstTable.cxx \ + UTF16CodingSystem.cxx Fixed4CodingSystem.cxx \ + memcmp.c memmove.c strerror.c + +INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/generic + +## We include the windows-only source and aux files here, so that +## make dist-zip produces a working windows distribution. +EXTRA_DIST = ArcEngineMessages.msg ArcEngineMessages.rc \ + CatalogMessages.msg CatalogMessages.rc \ + CmdLineAppMessages.msg CmdLineAppMessages.rc \ + EntityAppMessages.msg EntityAppMessages.rc \ + EntityManagerMessages.msg EntityManagerMessages.rc \ + MessageFormatterMessages.msg MessageFormatterMessages.rc \ + MessageReporterMessages.msg MessageReporterMessages.rc \ + ParserAppMessages.msg ParserAppMessages.rc \ + ParserMessages.msg ParserMessages.rc \ + PosixStorageMessages.msg PosixStorageMessages.rc \ + StdioStorageMessages.msg StdioStorageMessages.rc \ + URLStorageMessages.msg URLStorageMessages.rc \ + app_inst.m4 arc_inst.m4 entmgr_inst.m4 \ + parser_inst.m4 xentmgr_inst.m4 WinInetStorage.cxx \ + WinInetStorageMessages.h WinInetStorageMessages.msg \ + WinInetStorageMessages.rc WinApp.cxx Win32CodingSystem.cxx \ + lib.rc lib.dsp .cvsignore + +MSGGENFLAGS = -l libModule + +BUILT_SOURCES = ArcEngineMessages.h ArcEngineMessages.rc \ + CatalogMessages.h CatalogMessages.rc \ + CmdLineAppMessages.h CmdLineAppMessages.rc \ + EntityAppMessages.h EntityAppMessages.rc \ + EntityManagerMessages.h EntityManagerMessages.rc \ + MessageFormatterMessages.h MessageFormatterMessages.rc \ + MessageReporterMessages.h MessageReporterMessages.rc \ + ParserAppMessages.h ParserAppMessages.rc \ + ParserMessages.cxx ParserMessages.h ParserMessages.rc \ + PosixStorageMessages.h PosixStorageMessages.rc \ + StdioStorageMessages.h StdioStorageMessages.rc \ + URLStorageMessages.h URLStorageMessages.rc \ + WinInetStorageMessages.h WinInetStorageMessages.rc \ + app_inst.cxx arc_inst.cxx entmgr_inst.cxx parser_inst.cxx \ + xentmgr_inst.cxx + +MAINTAINERCLEANFILES = Makefile.in + +SUFFIXES = .msg .m4 .rc + +.m4.cxx: + $(PERL) $(top_srcdir)/instmac.pl $< >$@ + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< diff --git a/lib/Makefile.in b/lib/Makefile.in new file mode 100644 index 0000000..55d1783 --- /dev/null +++ b/lib/Makefile.in @@ -0,0 +1,781 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = lib +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(libdir)" +libLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(lib_LTLIBRARIES) +am__DEPENDENCIES_1 = +libosp_la_DEPENDENCIES = $(am__DEPENDENCIES_1) +am_libosp_la_OBJECTS = Allocator.lo ArcEngine.lo Attribute.lo \ + Big5CodingSystem.lo CharsetDecl.lo CharsetInfo.lo \ + CharsetRegistry.lo CmdLineApp.lo CodingSystem.lo \ + CodingSystemKit.lo ConsoleOutput.lo ContentState.lo \ + ContentToken.lo DescriptorManager.lo Dtd.lo \ + DtdDeclEventHandler.lo EUCJPCodingSystem.lo ElementType.lo \ + Entity.lo EntityApp.lo EntityCatalog.lo EntityDecl.lo \ + EntityManager.lo ErrnoMessageArg.lo ErrorCountEventHandler.lo \ + Event.lo EventGenerator.lo ExtendEntityManager.lo \ + ExternalId.lo Fixed2CodingSystem.lo GenericEventHandler.lo \ + Group.lo Hash.lo IListBase.lo Id.lo IdentityCodingSystem.lo \ + InputSource.lo InternalInputSource.lo Link.lo LinkProcess.lo \ + LiteralStorage.lo Location.lo Lpd.lo Markup.lo Message.lo \ + MessageArg.lo MessageEventHandler.lo MessageFormatter.lo \ + MessageReporter.lo MessageTable.lo ModeInfo.lo Notation.lo \ + NotationStorage.lo NumericCharRefOrigin.lo \ + OffsetOrderedList.lo OpenElement.lo OutputByteStream.lo \ + OutputCharStream.lo OutputState.lo Param.lo Parser.lo \ + ParserApp.lo ParserEventGeneratorKit.lo ParserMessages.lo \ + ParserOptions.lo ParserState.lo Partition.lo PosixStorage.lo \ + Recognizer.lo RewindStorageObject.lo SGMLApplication.lo \ + SJISCodingSystem.lo SOEntityCatalog.lo Sd.lo SdText.lo \ + SearchResultMessageArg.lo SgmlParser.lo ShortReferenceMap.lo \ + StdioStorage.lo StorageManager.lo Syntax.lo Text.lo \ + TokenMessageArg.lo TranslateCodingSystem.lo TrieBuilder.lo \ + TypeId.lo URLStorage.lo UTF8CodingSystem.lo Undo.lo \ + UnicodeCodingSystem.lo UnivCharsetDesc.lo XMLCodingSystem.lo \ + assert.lo parseAttribute.lo parseCommon.lo parseDecl.lo \ + parseInstance.lo parseMode.lo parseParam.lo parseSd.lo \ + splib.lo app_inst.lo arc_inst.lo entmgr_inst.lo parser_inst.lo \ + xentmgr_inst.lo SubstTable.lo UTF16CodingSystem.lo \ + Fixed4CodingSystem.lo memcmp.lo memmove.lo strerror.lo +libosp_la_OBJECTS = $(am_libosp_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(libosp_la_SOURCES) +DIST_SOURCES = $(libosp_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +lib_LTLIBRARIES = libosp.la +libosp_la_LDFLAGS = -no-undefined -version-info @SP_LIBOSP_CUR@:@SP_LIBOSP_REV@:@SP_LIBOSP_AGE@ +libosp_la_LIBADD = $(LTLIBINTL) +libosp_la_SOURCES = Allocator.cxx ArcEngine.cxx \ + ArcEngineMessages.h ArcProcessor.h Attribute.cxx \ + Big5CodingSystem.cxx CatalogEntry.h CatalogMessages.h \ + CharsetDecl.cxx CharsetInfo.cxx CharsetRegistry.cxx CmdLineApp.cxx \ + CmdLineAppMessages.h CodingSystem.cxx CodingSystemKit.cxx \ + ConsoleOutput.cxx ContentState.cxx ContentToken.cxx \ + DescriptorManager.cxx Dtd.cxx DtdDeclEventHandler.cxx \ + DtdDeclEventHandler.h EUCJPCodingSystem.cxx ElementType.cxx \ + Entity.cxx EntityApp.cxx EntityCatalog.cxx EntityDecl.cxx \ + EntityManager.cxx EntityManagerMessages.h EquivClass.h \ + ErrnoMessageArg.cxx ErrorCountEventHandler.cxx Event.cxx \ + EventGenerator.cxx EventQueue.h ExtendEntityManager.cxx \ + ExternalId.cxx Fixed2CodingSystem.cxx GenericEventHandler.cxx \ + Group.cxx Group.h Hash.cxx IListBase.cxx Id.cxx Id.h \ + IdentityCodingSystem.cxx InputSource.cxx InternalInputSource.cxx \ + Link.cxx LinkProcess.cxx LiteralStorage.cxx Location.cxx Lpd.cxx \ + LpdEntityRef.h Markup.cxx MarkupScan.h Message.cxx MessageArg.cxx \ + MessageEventHandler.cxx MessageFormatter.cxx MessageFormatterMessages.h \ + MessageReporter.cxx MessageReporterMessages.h \ + MessageTable.cxx ModeInfo.cxx \ + ModeInfo.h Mutex.h NameToken.h Notation.cxx NotationStorage.cxx \ + NumericCharRefOrigin.cxx NumericCharRefOrigin.h OffsetOrderedList.cxx \ + OffsetOrderedList.h OpenElement.cxx OutputByteStream.cxx \ + OutputCharStream.cxx OutputState.cxx OutputState.h Param.cxx Param.h \ + Parser.cxx Parser.h ParserApp.cxx ParserAppMessages.h \ + EntityAppMessages.h \ + ParserEventGeneratorKit.cxx ParserMessages.h ParserMessages.cxx \ + ParserOptions.cxx ParserState.cxx ParserState.h Partition.cxx \ + Partition.h PosixStorage.cxx PosixStorageMessages.h Priority.h \ + Recognizer.cxx Recognizer.h RewindStorageObject.cxx \ + SGMLApplication.cxx SJISCodingSystem.cxx SOEntityCatalog.cxx Sd.cxx \ + SdFormalError.h SdText.cxx SearchResultMessageArg.cxx SgmlParser.cxx \ + ShortReferenceMap.cxx SrInfo.h StdioStorage.cxx StdioStorageMessages.h \ + StorageManager.cxx StorageObjectPosition.h Syntax.cxx \ + Text.cxx TokenMessageArg.cxx TokenMessageArg.h \ + TranslateCodingSystem.cxx Trie.h TrieBuilder.cxx TrieBuilder.h \ + TypeId.cxx URLStorage.cxx URLStorageMessages.h \ + UTF8CodingSystem.cxx Undo.cxx Undo.h UnicodeCodingSystem.cxx \ + UnivCharsetDesc.cxx XMLCodingSystem.cxx \ + assert.cxx big5.h events.h gb2312.h iso646-jis.h iso8859-2.h \ + iso8859-3.h iso8859-4.h iso8859-5.h iso8859-6.h iso8859-7.h \ + iso8859-8.h iso8859-9.h jis0201.h jis0208.h jis0212.h ksc5601.h \ + koi8-r.h \ + parseAttribute.cxx parseCommon.cxx parseDecl.cxx parseInstance.cxx \ + parseMode.cxx parseParam.cxx parseSd.cxx splib.cxx splib.h \ + splibpch.h token.h app_inst.cxx arc_inst.cxx entmgr_inst.cxx \ + parser_inst.cxx xentmgr_inst.cxx SubstTable.cxx \ + UTF16CodingSystem.cxx Fixed4CodingSystem.cxx \ + memcmp.c memmove.c strerror.c + +INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/generic +EXTRA_DIST = ArcEngineMessages.msg ArcEngineMessages.rc \ + CatalogMessages.msg CatalogMessages.rc \ + CmdLineAppMessages.msg CmdLineAppMessages.rc \ + EntityAppMessages.msg EntityAppMessages.rc \ + EntityManagerMessages.msg EntityManagerMessages.rc \ + MessageFormatterMessages.msg MessageFormatterMessages.rc \ + MessageReporterMessages.msg MessageReporterMessages.rc \ + ParserAppMessages.msg ParserAppMessages.rc \ + ParserMessages.msg ParserMessages.rc \ + PosixStorageMessages.msg PosixStorageMessages.rc \ + StdioStorageMessages.msg StdioStorageMessages.rc \ + URLStorageMessages.msg URLStorageMessages.rc \ + app_inst.m4 arc_inst.m4 entmgr_inst.m4 \ + parser_inst.m4 xentmgr_inst.m4 WinInetStorage.cxx \ + WinInetStorageMessages.h WinInetStorageMessages.msg \ + WinInetStorageMessages.rc WinApp.cxx Win32CodingSystem.cxx \ + lib.rc lib.dsp .cvsignore + +MSGGENFLAGS = -l libModule +BUILT_SOURCES = ArcEngineMessages.h ArcEngineMessages.rc \ + CatalogMessages.h CatalogMessages.rc \ + CmdLineAppMessages.h CmdLineAppMessages.rc \ + EntityAppMessages.h EntityAppMessages.rc \ + EntityManagerMessages.h EntityManagerMessages.rc \ + MessageFormatterMessages.h MessageFormatterMessages.rc \ + MessageReporterMessages.h MessageReporterMessages.rc \ + ParserAppMessages.h ParserAppMessages.rc \ + ParserMessages.cxx ParserMessages.h ParserMessages.rc \ + PosixStorageMessages.h PosixStorageMessages.rc \ + StdioStorageMessages.h StdioStorageMessages.rc \ + URLStorageMessages.h URLStorageMessages.rc \ + WinInetStorageMessages.h WinInetStorageMessages.rc \ + app_inst.cxx arc_inst.cxx entmgr_inst.cxx parser_inst.cxx \ + xentmgr_inst.cxx + +MAINTAINERCLEANFILES = Makefile.in +SUFFIXES = .msg .m4 .rc +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .msg .m4 .rc .c .cxx .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu lib/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ + else :; fi; \ + done + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ + $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +libosp.la: $(libosp_la_OBJECTS) $(libosp_la_DEPENDENCIES) + $(CXXLINK) -rpath $(libdir) $(libosp_la_LDFLAGS) $(libosp_la_OBJECTS) $(libosp_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Allocator.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ArcEngine.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Attribute.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Big5CodingSystem.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CharsetDecl.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CharsetInfo.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CharsetRegistry.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CmdLineApp.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CodingSystem.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CodingSystemKit.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ConsoleOutput.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ContentState.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ContentToken.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DescriptorManager.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Dtd.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DtdDeclEventHandler.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/EUCJPCodingSystem.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ElementType.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Entity.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/EntityApp.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/EntityCatalog.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/EntityDecl.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/EntityManager.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ErrnoMessageArg.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ErrorCountEventHandler.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Event.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/EventGenerator.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ExtendEntityManager.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ExternalId.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Fixed2CodingSystem.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Fixed4CodingSystem.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenericEventHandler.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Group.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Hash.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IListBase.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Id.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IdentityCodingSystem.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/InputSource.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/InternalInputSource.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Link.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/LinkProcess.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/LiteralStorage.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Location.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Lpd.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Markup.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Message.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MessageArg.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MessageEventHandler.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MessageFormatter.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MessageReporter.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MessageTable.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ModeInfo.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Notation.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/NotationStorage.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/NumericCharRefOrigin.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/OffsetOrderedList.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/OpenElement.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/OutputByteStream.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/OutputCharStream.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/OutputState.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Param.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Parser.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ParserApp.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ParserEventGeneratorKit.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ParserMessages.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ParserOptions.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ParserState.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Partition.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/PosixStorage.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Recognizer.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/RewindStorageObject.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SGMLApplication.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SJISCodingSystem.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SOEntityCatalog.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Sd.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SdText.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SearchResultMessageArg.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SgmlParser.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ShortReferenceMap.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/StdioStorage.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/StorageManager.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SubstTable.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Syntax.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Text.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TokenMessageArg.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TranslateCodingSystem.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TrieBuilder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TypeId.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/URLStorage.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UTF16CodingSystem.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UTF8CodingSystem.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Undo.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UnicodeCodingSystem.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UnivCharsetDesc.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/XMLCodingSystem.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/app_inst.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arc_inst.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/assert.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/entmgr_inst.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memcmp.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memmove.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parseAttribute.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parseCommon.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parseDecl.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parseInstance.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parseMode.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parseParam.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parseSd.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parser_inst.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/splib.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strerror.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xentmgr_inst.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +.cxx.o: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< + +.cxx.obj: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cxx.lo: +@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(libdir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-libtool distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-exec-am: install-libLTLIBRARIES + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libLTLIBRARIES clean-libtool ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-exec \ + install-exec-am install-info install-info-am \ + install-libLTLIBRARIES install-man install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-info-am \ + uninstall-libLTLIBRARIES + + +.m4.cxx: + $(PERL) $(top_srcdir)/instmac.pl $< >$@ + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/lib/Markup.cxx b/lib/Markup.cxx new file mode 100644 index 0000000..799c6eb --- /dev/null +++ b/lib/Markup.cxx @@ -0,0 +1,422 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "Markup.h" +#include "InputSource.h" +#include "Location.h" +#include "macros.h" +#include "Entity.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +MarkupItem::MarkupItem() +: type(Markup::delimiter), index(0) +{ +} + +MarkupItem::~MarkupItem() +{ + switch (type) { + case Markup::entityStart: + delete origin; + break; + case Markup::literal: + delete text; + break; + case Markup::sdLiteral: + delete sdText; + break; + } +} + +MarkupItem::MarkupItem(const MarkupItem &item) +: type(item.type), index(item.index) +{ + switch (item.type) { + case Markup::entityStart: + origin = new ConstPtr(*item.origin); + break; + case Markup::literal: + text = new Text(*item.text); + break; + case Markup::sdLiteral: + sdText = new SdText(*item.sdText); + break; + case Markup::delimiter: + break; + default: + nChars = item.nChars; + break; + } +} + +void MarkupItem::operator=(const MarkupItem &item) +{ + switch (type) { + case Markup::entityStart: + if (item.type == Markup::entityStart) { + *origin = *item.origin; + return; + } + delete origin; + break; + case Markup::literal: + if (item.type == Markup::literal) { + *text = *item.text; + return; + } + delete text; + break; + case Markup::sdLiteral: + if (item.type == Markup::sdLiteral) { + *sdText = *item.sdText; + return; + } + delete sdText; + break; + } + type = item.type; + index = item.index; + switch (item.type) { + case Markup::entityStart: + origin = new ConstPtr(*item.origin); + break; + case Markup::literal: + text = new Text(*item.text); + break; + case Markup::sdLiteral: + sdText = new SdText(*item.sdText); + break; + case Markup::delimiter: + break; + default: + nChars = item.nChars; + break; + } +} + +Markup::Markup() {} + +Markup::~Markup() {} + +void Markup::resize(size_t n) +{ + size_t chopChars = 0; + for (size_t i = n; i < items_.size(); i++) + switch (items_[i].type) { + case Markup::reservedName: + case Markup::sdReservedName: + case Markup::name: + case Markup::nameToken: + case Markup::number: + case Markup::attributeValue: + case Markup::s: + case Markup::comment: + case Markup::shortref: + chopChars += items_[i].nChars; + break; + } + items_.resize(n); + chars_.resize(chars_.size() - chopChars); +} + +void Markup::addDelim(Syntax::DelimGeneral d) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + item.type = Markup::delimiter; + item.index = d; +} + +void Markup::addReservedName(Syntax::ReservedName rn, const InputSource *in) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + size_t length = in->currentTokenLength(); + item.nChars = length; + item.type = Markup::reservedName; + item.index = rn; + chars_.append(in->currentTokenStart(), length); +} + +void Markup::addReservedName(Syntax::ReservedName rn, const StringC &str) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + item.nChars = str.size(); + item.type = Markup::reservedName; + item.index = rn; + chars_.append(str.data(), str.size()); +} + +void Markup::addSdReservedName(Sd::ReservedName rn, const InputSource *in) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + size_t length = in->currentTokenLength(); + item.nChars = length; + item.type = Markup::sdReservedName; + item.index = rn; + chars_.append(in->currentTokenStart(), length); +} + +void Markup::addSdReservedName(Sd::ReservedName rn, + const Char *str, size_t length) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + item.nChars = length; + item.type = Markup::sdReservedName; + item.index = rn; + chars_.append(str, length); +} + +void Markup::addS(Char c) +{ + if (items_.size() > 0) { + MarkupItem &item = items_.back(); + if (item.type == Markup::s) { + item.nChars += 1; + chars_ += c; + return; + } + } + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + item.type = Markup::s; + item.nChars = 1; + chars_ += c; +} + +void Markup::addS(const InputSource *in) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + size_t length = in->currentTokenLength(); + item.nChars = length; + item.type = Markup::s; + chars_.append(in->currentTokenStart(), length); +} + +void Markup::addCommentStart() +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + item.type = Markup::comment; + item.nChars = 0; +} + +void Markup::addRefEndRe() +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + item.type = Markup::refEndRe; +} + +void Markup::addCommentChar(Char c) +{ + items_.back().nChars += 1; + chars_ += c; +} + +void Markup::addName(const InputSource *in) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + size_t length = in->currentTokenLength(); + item.nChars = length; + item.type = Markup::name; + chars_.append(in->currentTokenStart(), length); +} + +void Markup::addName(const Char *str, size_t length) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + item.nChars = length; + item.type = Markup::name; + chars_.append(str, length); +} + +void Markup::addNumber(const InputSource *in) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + size_t length = in->currentTokenLength(); + item.nChars = length; + item.type = Markup::number; + chars_.append(in->currentTokenStart(), length); +} + +void Markup::addNameToken(const InputSource *in) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + size_t length = in->currentTokenLength(); + item.nChars = length; + item.type = Markup::nameToken; + chars_.append(in->currentTokenStart(), length); +} + +void Markup::addAttributeValue(const InputSource *in) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + size_t length = in->currentTokenLength(); + item.nChars = length; + item.type = Markup::attributeValue; + chars_.append(in->currentTokenStart(), length); +} + +void Markup::addShortref(const InputSource *in) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + size_t length = in->currentTokenLength(); + item.nChars = length; + item.type = Markup::shortref; + chars_.append(in->currentTokenStart(), length); +} + +void Markup::addEntityStart(const Ptr &origin) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + item.type = Markup::entityStart; + item.origin = new ConstPtr(origin.pointer()); +} + +void Markup::addEntityEnd() +{ + items_.resize(items_.size() + 1); + items_.back().type = Markup::entityEnd; +} + +void Markup::addLiteral(const Text &text) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + item.type = Markup::literal; + item.text = new Text(text); +} + +void Markup::addSdLiteral(const SdText &sdText) +{ + items_.resize(items_.size() + 1); + MarkupItem &item = items_.back(); + item.type = Markup::sdLiteral; + item.sdText = new SdText(sdText); +} + +void Markup::changeToAttributeValue(size_t i) +{ + ASSERT(items_[i].type == Markup::name); + items_[i].type = Markup::attributeValue; +} + +void Markup::changeToSdReservedName(size_t i, Sd::ReservedName rn) +{ + ASSERT(items_[i].type == Markup::name); + items_[i].type = Markup::sdReservedName; + items_[i].index = rn; +} + +void Markup::swap(Markup &to) +{ + chars_.swap(to.chars_); + items_.swap(to.items_); +} + +MarkupIter::MarkupIter(const Markup &m) +: chars_(m.chars_.data()), + items_(m.items_.begin()), + nItems_(m.items_.size()), + index_(0), + charIndex_(0) +{ +} + +void MarkupIter::advance(Location &loc, + const ConstPtr &syntax) +{ + switch (items_[index_].type) { + case Markup::delimiter: + loc += syntax->delimGeneral(delimGeneral()).size(); + break; + case Markup::refEndRe: + loc += 1; + break; + case Markup::reservedName: + case Markup::sdReservedName: + case Markup::name: + case Markup::nameToken: + case Markup::number: + case Markup::attributeValue: + case Markup::s: + case Markup::shortref: + loc += items_[index_].nChars; + charIndex_ += items_[index_].nChars; + break; + case Markup::comment: + loc += items_[index_].nChars + (2 * syntax->delimGeneral(Syntax::dCOM).size()); + charIndex_ += items_[index_].nChars; + break; + case Markup::entityStart: + loc = Location(*items_[index_].origin, 0); + break; + case Markup::entityEnd: + { + ConstPtr origin(loc.origin()); + loc = origin->parent(); + loc += origin->refLength(); + } + break; + case Markup::literal: + { + const Text &text = *items_[index_].text; + text.endDelimLocation(loc); + Boolean lita; + text.delimType(lita); + loc + += syntax->delimGeneral(lita ? Syntax::dLITA : Syntax::dLIT).size(); + } + break; + case Markup::sdLiteral: + { + const SdText &text = *items_[index_].sdText; + loc = text.endDelimLocation(); + loc += 1; + } + break; + } + index_++; +} + +void MarkupIter::advance() +{ + switch (items_[index_].type) { + case Markup::reservedName: + case Markup::sdReservedName: + case Markup::name: + case Markup::nameToken: + case Markup::number: + case Markup::attributeValue: + case Markup::s: + case Markup::comment: + case Markup::shortref: + charIndex_ += items_[index_].nChars; + break; + } + index_++; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/MarkupScan.h b/lib/MarkupScan.h new file mode 100644 index 0000000..0be5a39 --- /dev/null +++ b/lib/MarkupScan.h @@ -0,0 +1,24 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef MarkupScan_INCLUDED +#define MarkupScan_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct MarkupScan { + enum Type { + normal, + in, + out, + suppress + }; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not MarkupScan_INCLUDED */ diff --git a/lib/Message.cxx b/lib/Message.cxx new file mode 100644 index 0000000..b6a4596 --- /dev/null +++ b/lib/Message.cxx @@ -0,0 +1,351 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "Message.h" +#include "MessageArg.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +MessageFragment::MessageFragment(const MessageModule *module, unsigned number, const char * +#ifndef SP_NO_MESSAGE_TEXT + text +#endif + ) +: module_(module), +#ifndef SP_NO_MESSAGE_TEXT + text_(text), +#endif + number_(number) +{ +} + +MessageFragment::~MessageFragment() {} + +MessageType::MessageType(Severity severity, const MessageModule *module, unsigned number, + const char *text, const char * +#ifndef SP_NO_MESSAGE_TEXT + clauses +#endif + , const char * +#ifndef SP_NO_MESSAGE_TEXT + auxText +#endif + ) +: +#ifndef SP_NO_MESSAGE_TEXT + clauses_(clauses), + auxText_(auxText), +#endif + MessageFragment(module, number, text) +{ + spare_ = severity; +} + +MessageType::~MessageType() {} + +MessageType0::MessageType0(Severity severity, const MessageModule *module, unsigned number, + const char *text, const char *clauses) +: MessageType(severity, module, number, text, clauses) +{ +} + +MessageType0::~MessageType0() {} + +MessageType1::MessageType1(Severity severity, const MessageModule *module, unsigned number, + const char *text, const char *clauses) +: MessageType(severity, module, number, text, clauses) +{ +} + +MessageType1::~MessageType1() {} + +MessageType2::MessageType2(Severity severity, const MessageModule *module, unsigned number, + const char *text, const char *clauses) +: MessageType(severity, module, number, text, clauses) +{ +} + +MessageType2::~MessageType2() {} + +MessageType3::MessageType3(Severity severity, const MessageModule *module, unsigned number, + const char *text, const char *clauses) +: MessageType(severity, module, number, text, clauses) +{ +} + +MessageType3::~MessageType3() {} + +MessageType4::MessageType4(Severity severity, const MessageModule *module, unsigned number, + const char *text, const char *clauses) +: MessageType(severity, module, number, text, clauses) +{ +} + +MessageType4::~MessageType4() {} + +MessageType5::MessageType5(Severity severity, const MessageModule *module, unsigned number, + const char *text, const char *clauses) +: MessageType(severity, module, number, text, clauses) +{ +} + +MessageType5::~MessageType5() {} + +MessageType6::MessageType6(Severity severity, const MessageModule *module, unsigned number, + const char *text, const char *clauses) +: MessageType(severity, module, number, text, clauses) +{ +} + +MessageType6::~MessageType6() {} + +MessageType0L::MessageType0L(Severity severity, const MessageModule *module, unsigned number, + const char *text, const char *clauses, + const char *auxText) +: MessageType(severity, module, number, text, clauses, auxText) +{ +} + +MessageType0L::~MessageType0L() {} + +MessageType1L::MessageType1L(Severity severity, const MessageModule *module, unsigned number, + const char *text, const char *clauses, + const char *auxText) +: MessageType(severity, module, number, text, clauses, auxText) +{ +} + +MessageType1L::~MessageType1L() {} + +OpenElementInfo::OpenElementInfo() +: included(0), matchIndex(0) +{ +} + +OpenElementInfo::OpenElementInfo(OpenElementInfo const& x) +: included(x.included), matchIndex(x.matchIndex) +{ +} + +Message::Message() +{ +} + +Message::Message(int nArgs) +: args(nArgs) +{ +} + +void Message::swap(Message &to) +{ + const MessageType *tem = type; + type = to.type; + to.type = tem; + to.loc.swap(loc); + to.auxLoc.swap(auxLoc); + args.swap(to.args); + openElementInfo.swap(to.openElementInfo); +} + +Messenger::Messenger() +: haveNextLocation_(0) +{ +} + +Messenger::~Messenger() +{ +} + +void Messenger::dispatchMessage(Message &msg) +{ + const Message &tem = msg; + dispatchMessage(tem); +} + +void Messenger::message(const MessageType0 &type) +{ + Message msg(0); + doInitMessage(msg); + msg.type = &type; + dispatchMessage(msg); +} + +void Messenger::message(const MessageType1 &type, const MessageArg &arg0) +{ + Message msg(1); + doInitMessage(msg); + msg.args[0] = arg0.copy(); + msg.type = &type; + dispatchMessage(msg); +} + +void Messenger::message(const MessageType2 &type, + const MessageArg &arg0, + const MessageArg &arg1) +{ + Message msg(2); + doInitMessage(msg); + msg.args[0] = arg0.copy(); + msg.args[1] = arg1.copy(); + msg.type = &type; + dispatchMessage(msg); +} + +void Messenger::message(const MessageType3 &type, + const MessageArg &arg0, + const MessageArg &arg1, + const MessageArg &arg2) +{ + Message msg(3); + doInitMessage(msg); + msg.args[0] = arg0.copy(); + msg.args[1] = arg1.copy(); + msg.args[2] = arg2.copy(); + msg.type = &type; + dispatchMessage(msg); +} + +void Messenger::message(const MessageType4 &type, + const MessageArg &arg0, + const MessageArg &arg1, + const MessageArg &arg2, + const MessageArg &arg3) +{ + Message msg(4); + doInitMessage(msg); + msg.args[0] = arg0.copy(); + msg.args[1] = arg1.copy(); + msg.args[2] = arg2.copy(); + msg.args[3] = arg3.copy(); + msg.type = &type; + dispatchMessage(msg); +} + +void Messenger::message(const MessageType5 &type, + const MessageArg &arg0, + const MessageArg &arg1, + const MessageArg &arg2, + const MessageArg &arg3, + const MessageArg &arg4) +{ + Message msg(5); + doInitMessage(msg); + msg.args[0] = arg0.copy(); + msg.args[1] = arg1.copy(); + msg.args[2] = arg2.copy(); + msg.args[3] = arg3.copy(); + msg.args[4] = arg4.copy(); + msg.type = &type; + dispatchMessage(msg); +} + +void Messenger::message(const MessageType6 &type, + const MessageArg &arg0, + const MessageArg &arg1, + const MessageArg &arg2, + const MessageArg &arg3, + const MessageArg &arg4, + const MessageArg &arg5) +{ + Message msg(6); + doInitMessage(msg); + msg.args[0] = arg0.copy(); + msg.args[1] = arg1.copy(); + msg.args[2] = arg2.copy(); + msg.args[3] = arg3.copy(); + msg.args[4] = arg4.copy(); + msg.args[5] = arg5.copy(); + msg.type = &type; + dispatchMessage(msg); +} + +void Messenger::message(const MessageType0L &type, const Location &loc) +{ + Message msg(0); + doInitMessage(msg); + msg.type = &type; + msg.auxLoc = loc; + dispatchMessage(msg); +} + +void Messenger::message(const MessageType1L &type, const MessageArg &arg0, + const Location &loc) +{ + Message msg(1); + doInitMessage(msg); + msg.args[0] = arg0.copy(); + msg.type = &type; + msg.auxLoc = loc; + dispatchMessage(msg); +} + + +void Messenger::setNextLocation(const Location &loc) +{ + haveNextLocation_ = 1; + nextLocation_ = loc; +} + +void Messenger::initMessage(Message &) +{ +} + +void Messenger::doInitMessage(Message &msg) +{ + initMessage(msg); + if (haveNextLocation_) { + msg.loc = nextLocation_; + haveNextLocation_ = 0; + } +} + +ForwardingMessenger::ForwardingMessenger(Messenger &to) +: to_(&to) +{ +} + +void ForwardingMessenger::dispatchMessage(Message &msg) +{ + to_->dispatchMessage(msg); +} + +void ForwardingMessenger::dispatchMessage(const Message &msg) +{ + to_->dispatchMessage(msg); +} + +void ForwardingMessenger::initMessage(Message &msg) +{ + to_->initMessage(msg); +} + +ParentLocationMessenger::ParentLocationMessenger(Messenger &mgr) +: ForwardingMessenger(mgr) +{ +} + +void ParentLocationMessenger::initMessage(Message &msg) +{ + ForwardingMessenger::initMessage(msg); + if (!msg.loc.origin().isNull()) + msg.loc = msg.loc.origin()->parent(); +} + +NullMessenger::NullMessenger() +{ +} + +void NullMessenger::dispatchMessage(const Message &) +{ +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/MessageArg.cxx b/lib/MessageArg.cxx new file mode 100644 index 0000000..0b0ef17 --- /dev/null +++ b/lib/MessageArg.cxx @@ -0,0 +1,102 @@ +// Copyright (c) 1994 James Clark, 1999 Matthias Clasen +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "MessageArg.h" +#include "MessageBuilder.h" +#include "ParserMessages.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +MessageArg::MessageArg() +{ +} + +MessageArg::~MessageArg() +{ +} + +StringMessageArg::StringMessageArg(const StringC &s) +: s_(s) +{ +} + +MessageArg *StringMessageArg::copy() const +{ + return new StringMessageArg(*this); +} + +void StringMessageArg::append(MessageBuilder &builder) const +{ + builder.appendChars(s_.data(), s_.size()); +} + +NumberMessageArg::NumberMessageArg(unsigned long n) +: n_(n) +{ +} + +MessageArg *NumberMessageArg::copy() const +{ + return new NumberMessageArg(*this); +} + +void NumberMessageArg::append(MessageBuilder &builder) const +{ + builder.appendNumber(n_); +} + + +OrdinalMessageArg::OrdinalMessageArg(unsigned long n) +: n_(n) +{ +} + +MessageArg *OrdinalMessageArg::copy() const +{ + return new OrdinalMessageArg(*this); +} + +void OrdinalMessageArg::append(MessageBuilder &builder) const +{ + builder.appendOrdinal(n_); +} + +RTTI_DEF0(OtherMessageArg) + +OtherMessageArg::OtherMessageArg() +{ +} + +void OtherMessageArg::append(MessageBuilder &builder) const +{ + builder.appendOther(this); +} + +StringVectorMessageArg::StringVectorMessageArg(const Vector &v) +: v_(v) +{ +} + +MessageArg *StringVectorMessageArg::copy() const +{ + return new StringVectorMessageArg(*this); +} + +void StringVectorMessageArg::append(MessageBuilder &builder) const +{ + for (size_t i = 0; i < v_.size(); i++) { + if (i > 0) + builder.appendFragment(ParserMessages::listSep); + builder.appendChars(v_[i].data(), v_[i].size()); + } +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/MessageEventHandler.cxx b/lib/MessageEventHandler.cxx new file mode 100644 index 0000000..67f5d2b --- /dev/null +++ b/lib/MessageEventHandler.cxx @@ -0,0 +1,50 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "MessageEventHandler.h" +#include "SgmlParser.h" +#include "ParserOptions.h" +#ifdef __GNUG__ +#include "Entity.h" +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +MessageEventHandler::MessageEventHandler(Messenger *messenger, + const SgmlParser *parser) +: messenger_(messenger), parser_(parser) +{ +} + +void MessageEventHandler::subdocEntity(SubdocEntityEvent *event) +{ + const SubdocEntity *entity = event->entity(); + if (entity && parser_) { + SgmlParser::Params params; + params.subdocReferenced = 1; + params.subdocInheritActiveLinkTypes = 1; + params.origin = event->entityOrigin()->copy(); + params.parent = parser_; + params.sysid = entity->externalId().effectiveSystemId(); + params.entityType = SgmlParser::Params::subdoc; + SgmlParser parser(params); + const SgmlParser *oldParser = parser_; + parser_ = &parser; + parser.parseAll(*this); + parser_ = oldParser; + } + delete event; +} + +void MessageEventHandler::message(MessageEvent *event) +{ + messenger_->dispatchMessage(event->message()); + ErrorCountEventHandler::message(event); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/MessageFormatter.cxx b/lib/MessageFormatter.cxx new file mode 100644 index 0000000..2290c12 --- /dev/null +++ b/lib/MessageFormatter.cxx @@ -0,0 +1,183 @@ +// Copyright (c) 1994, 1995, 1997 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "MessageFormatter.h" +#include "OutputCharStream.h" +#include "rtti.h" +#include "MessageArg.h" +#include "ErrnoMessageArg.h" +#include "SearchResultMessageArg.h" +#include "MessageFormatterMessages.h" + +#include +#include + +#ifdef DECLARE_STRERROR +extern "C" { + char *strerror(int); +} +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +MessageFormatter::MessageFormatter() +{ +} + +MessageFormatter::~MessageFormatter() +{ +} + +void MessageFormatter::formatOpenElements(const Vector &openElementInfo, + OutputCharStream &os) +{ + unsigned nOpenElements = openElementInfo.size(); + for (unsigned i = 0;; i++) { + if (i > 0 + && (i == nOpenElements || openElementInfo[i].included)) { + // describe last match in previous open element + const OpenElementInfo &prevInfo = openElementInfo[i - 1]; + if (prevInfo.matchType.size() != 0) { + os << " (" << prevInfo.matchType; + if (prevInfo.matchIndex != 0) + os << '[' << (unsigned long)prevInfo.matchIndex << ']'; + os << ')'; + } + } + if (i == nOpenElements) + break; + const OpenElementInfo &e = openElementInfo[i]; + os << ' ' << e.gi; + if (i > 0 && !e.included) { + unsigned long n = openElementInfo[i - 1].matchIndex; + if (n != 0) + os << '[' << n << ']'; + } + } +} + +void MessageFormatter::formatMessage(const MessageFragment &frag, + const Vector > &args, + OutputCharStream &os, bool noquote) +{ + StringC text; + if (!getMessageText(frag, text)) { + formatFragment(MessageFormatterMessages::invalidMessage, os); + return; + } + Builder builder(this, os, noquote || (text.size() == 2)); + size_t i = 0; + while (i < text.size()) { + if (text[i] == '%') { + i++; + if (i >= text.size()) + break; + if (text[i] >= '1' && text[i] <= '9') { + if (unsigned(text[i] - '1') < args.size()) + args[text[i] - '1']->append(builder); + } + else + os.put(text[i]); + i++; + } + else { + os.put(text[i]); + i++; + } + } +} + +Boolean MessageFormatter::formatFragment(const MessageFragment &frag, + OutputCharStream &os) +{ + StringC text; + if (!getMessageText(frag, text)) + return 0; + os << text; + return 1; +} + +MessageFormatter::Builder::~Builder() +{ +} + +void MessageFormatter::Builder::appendNumber(unsigned long n) +{ + os() << n; +} + +void MessageFormatter::Builder::appendOrdinal(unsigned long n) +{ + os() << n; + switch (n % 10) { + case 1: + appendFragment(MessageFormatterMessages::ordinal1); + break; + case 2: + appendFragment(MessageFormatterMessages::ordinal2); + break; + case 3: + appendFragment(MessageFormatterMessages::ordinal3); + break; + default: + appendFragment(MessageFormatterMessages::ordinaln); + break; + } +} + +void MessageFormatter::Builder::appendChars(const Char *p, size_t n) +{ + if (argIsCompleteMessage_) + os().write(p, n); + else + os().put('"').write(p, n).put('"'); +} + +void MessageFormatter::Builder::appendOther(const OtherMessageArg *p) +{ + const ErrnoMessageArg *ea = DYNAMIC_CAST_CONST_PTR(ErrnoMessageArg, p); + + if (ea) { + os() << strerror(ea->errnum()); + return; + } + + const SearchResultMessageArg *sr + = DYNAMIC_CAST_CONST_PTR(SearchResultMessageArg, p); + if (sr) { + for (size_t i = 0; i < sr->nTried(); i++) { + if (i > 0) + os() << ", "; + const StringC &f = sr->filename(i); + appendChars(f.data(), f.size()); + switch (sr->errnum(i)) { + default: + os() << " ("; + os() << strerror(sr->errnum(i)); + os() << ")"; +#ifdef ENOENT + case ENOENT: +#endif + break; + } + } + return; + } + appendFragment(MessageFormatterMessages::invalidArgumentType); +} + +void MessageFormatter::Builder::appendFragment(const MessageFragment &frag) +{ + formatter_->formatFragment(frag, os()); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/MessageFormatterMessages.h b/lib/MessageFormatterMessages.h new file mode 100644 index 0000000..ab97e82 --- /dev/null +++ b/lib/MessageFormatterMessages.h @@ -0,0 +1,66 @@ +// This file was automatically generated from MessageFormatterMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct MessageFormatterMessages { + // 5100 + static const MessageFragment ordinal1; + // 5101 + static const MessageFragment ordinal2; + // 5102 + static const MessageFragment ordinal3; + // 5103 + static const MessageFragment ordinaln; + // 5104 + static const MessageFragment invalidArgumentType; + // 5105 + static const MessageFragment invalidMessage; +}; +const MessageFragment MessageFormatterMessages::ordinal1( +&libModule, +5100 +#ifndef SP_NO_MESSAGE_TEXT +,"st" +#endif +); +const MessageFragment MessageFormatterMessages::ordinal2( +&libModule, +5101 +#ifndef SP_NO_MESSAGE_TEXT +,"nd" +#endif +); +const MessageFragment MessageFormatterMessages::ordinal3( +&libModule, +5102 +#ifndef SP_NO_MESSAGE_TEXT +,"rd" +#endif +); +const MessageFragment MessageFormatterMessages::ordinaln( +&libModule, +5103 +#ifndef SP_NO_MESSAGE_TEXT +,"th" +#endif +); +const MessageFragment MessageFormatterMessages::invalidArgumentType( +&libModule, +5104 +#ifndef SP_NO_MESSAGE_TEXT +,"(invalid argument type)" +#endif +); +const MessageFragment MessageFormatterMessages::invalidMessage( +&libModule, +5105 +#ifndef SP_NO_MESSAGE_TEXT +,"(invalid message)" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/MessageFormatterMessages.msg b/lib/MessageFormatterMessages.msg new file mode 100644 index 0000000..88e1435 --- /dev/null +++ b/lib/MessageFormatterMessages.msg @@ -0,0 +1,11 @@ +# Copyright (c) 1996 James Clark +# See the file COPYING for copying permission. + +# MessageFormatter message definitions +=5100 ++ordinal1++st ++ordinal2++nd ++ordinal3++rd ++ordinaln++th ++invalidArgumentType++(invalid argument type) ++invalidMessage++(invalid message) diff --git a/lib/MessageFormatterMessages.rc b/lib/MessageFormatterMessages.rc new file mode 100644 index 0000000..4fae9e3 --- /dev/null +++ b/lib/MessageFormatterMessages.rc @@ -0,0 +1,9 @@ +STRINGTABLE +BEGIN + 5100, "st" + 5101, "nd" + 5102, "rd" + 5103, "th" + 5104, "(invalid argument type)" + 5105, "(invalid message)" +END diff --git a/lib/MessageReporter.cxx b/lib/MessageReporter.cxx new file mode 100644 index 0000000..780f184 --- /dev/null +++ b/lib/MessageReporter.cxx @@ -0,0 +1,532 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "MessageReporter.h" +#include "MessageReporterMessages.h" +#include "ExtendEntityManager.h" +#include "StorageManager.h" +#include "macros.h" + +#include + + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const OutputCharStream::Newline nl = OutputCharStream::newline; + +MessageReporter::MessageReporter(OutputCharStream *os) +: os_(os), options_(0) +{ +} +XMLMessageReporter::XMLMessageReporter(OutputCharStream* os) : + MessageReporter(os) , id(0) , msgmode(SP_MESSAGES_TRADITIONAL) { + char* fmt = getenv("SP_MESSAGE_FORMAT") ; + if ( fmt ) + if ( !strcmp(fmt, "XML") ) + msgmode = SP_MESSAGES_XML ; + else if ( !strcmp(fmt, "NONE") ) + msgmode = SP_MESSAGES_NONE ; +} + +MessageReporter::~MessageReporter() +{ + delete os_; +} + +void MessageReporter::setMessageStream(OutputCharStream *os) +{ + if (os != os_) { + delete os_; + os_ = os; + } +} + +void MessageReporter::addOption(Option option) +{ + options_ |= option; +} +void XMLMessageReporter::dispatchMessage(const Message& message) { + switch ( msgmode ) { + case SP_MESSAGES_TRADITIONAL: + MessageReporter::dispatchMessage(message) ; + case SP_MESSAGES_NONE: + return ; + case SP_MESSAGES_XML: + break ; + } + Offset off ; + + const ExternalInfo *externalInfo = locationHeader(message.loc, off); + + os() << "severity()) { + case MessageType::info: + XMLformatFragment(MessageReporterMessages::infoTag, os()); + break; + case MessageType::warning: + XMLformatFragment(MessageReporterMessages::warningTag, os()); + break; + case MessageType::quantityError: + XMLformatFragment(MessageReporterMessages::quantityErrorTag, os()); + break; + case MessageType::idrefError: + XMLformatFragment(MessageReporterMessages::idrefErrorTag, os()); + break; + case MessageType::error: + XMLformatFragment(MessageReporterMessages::errorTag, os()); + break; + default: + CANNOT_HAPPEN(); + } + formatMessage(*message.type, message.args, os()); + + if (options_ & openEntities) + showOpenEntities(message.loc, off) ; + + if ((options_ & clauses) && message.type->clauses() != 0) { + os() << "\n " << message.type->clauses() + << " " ; + } + if (!message.auxLoc.origin().isNull()) { + os() << "\n auxFragment(), message.args, os()); + os() << "\n " ; + } + if ((options_ & openElements) && message.openElementInfo.size() > 0) { + formatOpenElements(message.openElementInfo, os()); + } + os() << "\n\n" ; + os().flush(); +} +void MessageReporter::dispatchMessage(const Message &message) +{ + Offset off; + const ExternalInfo *externalInfo = locationHeader(message.loc, off); + if (programName_.size()) + os() << programName_ << ':'; + if (externalInfo) { + printLocation(externalInfo, off); + os() << ':'; + } + if (options_ & messageNumbers) + os() << (unsigned long)message.type->module() << "." + << (unsigned long)message.type->number() << ":"; + switch (message.type->severity()) { + case MessageType::info: + formatFragment(MessageReporterMessages::infoTag, os()); + break; + case MessageType::warning: + formatFragment(MessageReporterMessages::warningTag, os()); + break; + case MessageType::quantityError: + formatFragment(MessageReporterMessages::quantityErrorTag, os()); + break; + case MessageType::idrefError: + formatFragment(MessageReporterMessages::idrefErrorTag, os()); + break; + case MessageType::error: + formatFragment(MessageReporterMessages::errorTag, os()); + break; + default: + CANNOT_HAPPEN(); + } + os() << ": "; + formatMessage(*message.type, message.args, os()); + os() << nl; + if ((options_ & clauses) && message.type->clauses() != 0) { + if (programName_.size()) + os() << programName_ << ':'; + if (externalInfo) { + printLocation(externalInfo, off); + os() << ": "; + } + formatFragment(MessageReporterMessages::relevantClauses, os()); + os() << " " << message.type->clauses() << nl; + } + if (!message.auxLoc.origin().isNull()) { + Offset off; + const ExternalInfo *externalInfo = locationHeader(message.auxLoc, off); + if (programName_.size()) + os() << programName_ << ':'; + if (externalInfo) { + printLocation(externalInfo, off); + os() << ": "; + } + formatMessage(message.type->auxFragment(), message.args, os()); + os() << nl; + } + if ((options_ & openElements) && message.openElementInfo.size() > 0) { + if (programName_.size()) + os() << programName_ << ':'; + if (externalInfo) { + printLocation(externalInfo, off); + os() << ": "; + } + formatFragment(MessageReporterMessages::openElements, os()); + os() << ':'; + formatOpenElements(message.openElementInfo, os()); + os() << nl; + } + os().flush(); +} + +// Note this is written so as not to change any reference counts. + +const ExternalInfo *MessageReporter::locationHeader(const Location &loc, + Offset &off) +{ + return locationHeader(loc.origin().pointer(), loc.index(), off); +} + +const ExternalInfo* XMLMessageReporter::locationHeader( + const Origin *origin, Index index, Offset &off) { + switch ( msgmode ) { + case SP_MESSAGES_TRADITIONAL: + return MessageReporter::locationHeader(origin, index, off) ; + case SP_MESSAGES_NONE: + return 0 ; + case SP_MESSAGES_XML: + break ; + } +// take out the context printing 'cos we'll do that later + while (origin) { + const ExternalInfo *externalInfo = origin->externalInfo(); + if (externalInfo) { + off = origin->startOffset(index); + return externalInfo; + } + const Location &loc = origin->parent(); + if (loc.origin().isNull()) { + if (!origin->defLocation(origin->startOffset(index), origin, index)) + break; + } + else { + if (origin->asEntityOrigin()) + index = loc.index() + origin->refLength(); + else + // Must be re-running the parser over something using + // something like PiAttspecParser. + index += loc.index(); + origin = loc.origin().pointer(); + } + } + return 0 ; +} +void XMLMessageReporter::showOpenEntities( + const Origin *origin, Index index, Offset &off) { +/* this function is XMLMessageReporter-only */ + while (origin) { + if (origin->entityName() || origin->parent().origin().isNull()) { + Offset parentOff; + const Location &parentLoc = origin->parent(); + const ExternalInfo *parentInfo + = locationHeader(parentLoc.origin().pointer(), + parentLoc.index() + origin->refLength(), parentOff); + if ( parentInfo ) { + os() << "\n entityName() + << "\" />" ; + } + break ; + } else { + const Location &loc = origin->parent(); + if (origin->asEntityOrigin()) + index = loc.index() + origin->refLength(); + else + // Must be re-running the parser over something using + // something like PiAttspecParser. + index += loc.index(); + origin = loc.origin().pointer(); + } + } +} +const ExternalInfo *MessageReporter::locationHeader(const Origin *origin, + Index index, + Offset &off) +{ + if (!(options_ & openEntities)) { + while (origin) { + const ExternalInfo *externalInfo = origin->externalInfo(); + if (externalInfo) { + off = origin->startOffset(index); + return externalInfo; + } + const Location &loc = origin->parent(); + if (loc.origin().isNull()) { + if (!origin->defLocation(origin->startOffset(index), origin, index)) + break; + } + else { + if (origin->asEntityOrigin()) + index = loc.index() + origin->refLength(); + else + // Must be re-running the parser over something using + // something like PiAttspecParser. + index += loc.index(); + origin = loc.origin().pointer(); + } + } + } + else { + Boolean doneHeader = 0; + while (origin) { + if (origin->entityName() || origin->parent().origin().isNull()) { + if (!doneHeader) { + Offset parentOff; + const Location &parentLoc = origin->parent(); + const ExternalInfo *parentInfo + = locationHeader(parentLoc.origin().pointer(), + parentLoc.index() + origin->refLength(), + parentOff); + if (parentInfo) { + StringC text; + if (getMessageText(origin->entityName() + ? MessageReporterMessages::inNamedEntity + : MessageReporterMessages::inUnnamedEntity, + text)) { + for (size_t i = 0; i < text.size(); i++) { + if (text[i] == '%') { + if (i + 1 < text.size()) { + i++; + if (text[i] == '1') + os() << *origin->entityName(); + else if (text[i] == '2') + printLocation(parentInfo, parentOff); + else if (text[i] >= '3' && text[i] <= '9') + ; + else + os().put(text[i]); + } + } + else + os().put(text[i]); + } + os() << nl; + } + } + doneHeader = 1; + } + off = origin->startOffset(index); + const ExternalInfo *externalInfo = origin->externalInfo(); + if (externalInfo) + return externalInfo; + if (!origin->defLocation(off, origin, index)) + break; + } + else { + const Location &loc = origin->parent(); + if (origin->asEntityOrigin()) + index = loc.index() + origin->refLength(); + else + // Must be re-running the parser over something using + // something like PiAttspecParser. + index += loc.index(); + origin = loc.origin().pointer(); + } + } + } + return 0; +} + +void XMLMessageReporter::printLocation(const ExternalInfo *externalInfo, + Offset off) +{ + switch ( msgmode ) { + case SP_MESSAGES_TRADITIONAL: + MessageReporter::printLocation(externalInfo, off) ; + case SP_MESSAGES_NONE: + return ; + case SP_MESSAGES_XML: + break ; + } + if (!externalInfo) { + return; + } + StorageObjectLocation soLoc; + if (!ExtendEntityManager::externalize(externalInfo, off, soLoc)) { + return; + } +/* Ugly hack to suppress full pathnames for local files + on general principles for security for Site Valet + + Since jjc's String class is rather primitive, we have to do the work here +*/ + if ( soLoc.actualStorageId[0] == '/' ) { + StringC filename ; + StringC nullname ; + for (int i=0; istorageManager->type(), "OSFILE") != 0) + os() << '<' << soLoc.storageObjectSpec->storageManager->type() << '>'; + os() << soLoc.actualStorageId; + if (soLoc.lineNumber == (unsigned long)-1) { + os() << ": "; + formatFragment(MessageReporterMessages::offset, os()); + os() << soLoc.storageObjectOffset; + } + else { + os() << ':' << soLoc.lineNumber; + if (soLoc.columnNumber != 0 && soLoc.columnNumber != (unsigned long)-1) + os() << ':' << soLoc.columnNumber - 1; + } +#if 0 + if (soLoc.byteIndex != (unsigned long)-1) + os() << ':' << soLoc.byteIndex; +#endif +} + +Boolean MessageReporter::getMessageText(const MessageFragment &frag, + StringC &str) +{ + const char *p = frag.text(); + if (!p) + return 0; + str.resize(0); + for (; *p; p++) + str += Char((unsigned char)*p); + return 1; +} +Boolean XMLMessageReporter::XMLformatFragment(const MessageFragment &frag, + OutputCharStream &os) { +/* This function is XMLMessageReporter only */ + switch ( msgmode ) { + case SP_MESSAGES_TRADITIONAL: + return MessageReporter::formatFragment(frag, os) ; + case SP_MESSAGES_NONE: + return 1 ; + case SP_MESSAGES_XML: + break ; + } + StringC text; + if (!getMessageText(frag, text)) + return 0 ; + os << "\n sp:severity=\"" << text << '"' ; + return 1 ; +} +void XMLMessageReporter::formatMessage(const MessageFragment &frag, + const Vector > &args, + OutputCharStream &os, bool noquote) { + switch ( msgmode ) { + case SP_MESSAGES_TRADITIONAL: + MessageReporter::formatMessage(frag, args, os, noquote) ; + case SP_MESSAGES_NONE: + return ; + case SP_MESSAGES_XML: + break ; + } + StringC text; + if (!getMessageText(frag, text)) { +// XMLformatFragment(MessageFormatterMessages::invalidMessage, os); + os << "\n>(Invalid Message)\n" ; + return; + } + os << "\n>\n" ; + Builder builder(this, os, noquote || (text.size() == 2)); + size_t i = 0; + while (i < text.size()) { + if (text[i] == '%') { + i++; + if (i >= text.size()) + break; + if (text[i] >= '1' && text[i] <= '9') { + if (unsigned(text[i] - '1') < args.size()) + args[text[i] - '1']->append(builder); + } + else + os.put(text[i]); + i++; + } + else { + os.put(text[i]); + i++; + } + } +} +void XMLMessageReporter::formatOpenElements( + const Vector &openElementInfo , + OutputCharStream &os) { + switch ( msgmode ) { + case SP_MESSAGES_TRADITIONAL: + MessageReporter::formatOpenElements(openElementInfo, os) ; + case SP_MESSAGES_NONE: + return ; + case SP_MESSAGES_XML: + break ; + } + unsigned nOpenElements = openElementInfo.size(); + for (unsigned i = 0;; i++) { + if (i > 0 + && (i == nOpenElements || openElementInfo[i].included)) { + // describe last match in previous open element + const OpenElementInfo &prevInfo = openElementInfo[i - 1]; + if (prevInfo.matchType.size() != 0) { + os << "\n " << prevInfo.matchType; + os << " " ; + } + } + if (i == nOpenElements) + break; + const OpenElementInfo &e = openElementInfo[i]; + os << "\n 0 && !e.included) { + unsigned long n = openElementInfo[i - 1].matchIndex; + if (n != 0) + os << " sp:matchindex=\"" << n << '"' ; + } + os << "> " << e.gi << " " ; + } +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/MessageReporterMessages.h b/lib/MessageReporterMessages.h new file mode 100644 index 0000000..0e2687e --- /dev/null +++ b/lib/MessageReporterMessages.h @@ -0,0 +1,111 @@ +// This file was automatically generated from MessageReporterMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct MessageReporterMessages { + // 5000 + static const MessageFragment infoTag; + // 5001 + static const MessageFragment warningTag; + // 5002 + static const MessageFragment quantityErrorTag; + // 5003 + static const MessageFragment idrefErrorTag; + // 5004 + static const MessageFragment errorTag; + // 5005 + static const MessageFragment openElements; + // 5006 + static const MessageFragment inNamedEntity; + // 5007 + static const MessageFragment inUnnamedEntity; + // 5008 + static const MessageFragment invalidLocation; + // 5009 + static const MessageFragment offset; + // 5010 + static const MessageFragment relevantClauses; +}; +const MessageFragment MessageReporterMessages::infoTag( +&libModule, +5000 +#ifndef SP_NO_MESSAGE_TEXT +,"I" +#endif +); +const MessageFragment MessageReporterMessages::warningTag( +&libModule, +5001 +#ifndef SP_NO_MESSAGE_TEXT +,"W" +#endif +); +const MessageFragment MessageReporterMessages::quantityErrorTag( +&libModule, +5002 +#ifndef SP_NO_MESSAGE_TEXT +,"Q" +#endif +); +const MessageFragment MessageReporterMessages::idrefErrorTag( +&libModule, +5003 +#ifndef SP_NO_MESSAGE_TEXT +,"X" +#endif +); +const MessageFragment MessageReporterMessages::errorTag( +&libModule, +5004 +#ifndef SP_NO_MESSAGE_TEXT +,"E" +#endif +); +const MessageFragment MessageReporterMessages::openElements( +&libModule, +5005 +#ifndef SP_NO_MESSAGE_TEXT +,"open elements" +#endif +); +const MessageFragment MessageReporterMessages::inNamedEntity( +&libModule, +5006 +#ifndef SP_NO_MESSAGE_TEXT +,"In entity %1 included from %2" +#endif +); +const MessageFragment MessageReporterMessages::inUnnamedEntity( +&libModule, +5007 +#ifndef SP_NO_MESSAGE_TEXT +,"In entity included from %2" +#endif +); +const MessageFragment MessageReporterMessages::invalidLocation( +&libModule, +5008 +#ifndef SP_NO_MESSAGE_TEXT +,"(invalid location)" +#endif +); +const MessageFragment MessageReporterMessages::offset( +&libModule, +5009 +#ifndef SP_NO_MESSAGE_TEXT +,"offset " +#endif +); +const MessageFragment MessageReporterMessages::relevantClauses( +&libModule, +5010 +#ifndef SP_NO_MESSAGE_TEXT +,"relevant clauses: " +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/MessageReporterMessages.msg b/lib/MessageReporterMessages.msg new file mode 100644 index 0000000..d0629de --- /dev/null +++ b/lib/MessageReporterMessages.msg @@ -0,0 +1,16 @@ +# Copyright (c) 1996 James Clark +# See the file COPYING for copying permission. + +# MessageReporter message definitions +=5000 ++infoTag++I ++warningTag++W ++quantityErrorTag++Q ++idrefErrorTag++X ++errorTag++E ++openElements++open elements ++inNamedEntity++In entity %1 included from %2 ++inUnnamedEntity++In entity included from %2 ++invalidLocation++(invalid location) ++offset++offset ++relevantClauses++relevant clauses: diff --git a/lib/MessageReporterMessages.rc b/lib/MessageReporterMessages.rc new file mode 100644 index 0000000..c6b2542 --- /dev/null +++ b/lib/MessageReporterMessages.rc @@ -0,0 +1,14 @@ +STRINGTABLE +BEGIN + 5000, "I" + 5001, "W" + 5002, "Q" + 5003, "X" + 5004, "E" + 5005, "open elements" + 5006, "In entity %1 included from %2" + 5007, "In entity included from %2" + 5008, "(invalid location)" + 5009, "offset " + 5010, "relevant clauses: " +END diff --git a/lib/MessageTable.cxx b/lib/MessageTable.cxx new file mode 100644 index 0000000..26888d4 --- /dev/null +++ b/lib/MessageTable.cxx @@ -0,0 +1,186 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "MessageTable.h" +#include "MessageModule.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +MessageModule libModule; +MessageModule appModule; + +#ifdef SP_NAMESPACE +} +#endif + +#ifdef SP_NO_MESSAGE_TEXT + +// Windows only + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class WinMessageTable : public MessageTable { +public: + Boolean getText(const MessageFragment &, + String &) const; + +}; + +Boolean WinMessageTable::getText(const MessageFragment &frag, + String &str) const +{ + static const int bufSize = 4096; + SP_TCHAR buf[bufSize]; +#ifdef SP_WIDE_SYSTEM + int len = LoadStringW(frag.module()->dllInstanceHandle, + frag.number(), + buf, + bufSize); + if (len == 0 && GetLastError() != 0) { + char bufmb[bufSize*2]; + len = LoadStringA(frag.module()->dllInstanceHandle, + frag.number(), + bufmb, + bufSize*2); + if (len != 0) { + len = MultiByteToWideChar(CP_ACP, 0, bufmb, len, buf, bufSize); + if (len == 0 && GetLastError() != 0) + return 0; + } + else if (GetLastError() != 0) + return 0; + } +#else /* not SP_WIDE_SYSTEM */ + int len = LoadStringA(frag.module()->dllInstanceHandle, + frag.number(), + buf, + bufSize); + if (len == 0 && GetLastError() != 0) + return 0; +#endif /* not SP_WIDE_SYSTEM */ + if (len == 0) { + str.resize(0); + return 1; + } + str.assign(buf, len); + return 1; +} + +static WinMessageTable theMessageTable; + +#ifdef SP_NAMESPACE +} +#endif + +#ifdef SP_USE_DLL +extern "C" +BOOL WINAPI DllMain(HINSTANCE inst, ULONG reason, LPVOID) +{ + if (reason == DLL_PROCESS_ATTACH) + SP_NAMESPACE_SCOPE libModule.dllInstanceHandle = inst; + return TRUE; +} +#endif + +#else /* not SP_NO_MESSAGE_TEXT */ + +#ifdef SP_HAVE_GETTEXT +extern "C" { +extern char *dgettext(const char *, const char *); +extern char *gettext(const char *); +extern char *textdomain(const char *); +extern char *bindtextdomain(const char *, const char *); +} + +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class GettextMessageTable : public MessageTable { +public: + Boolean getText(const MessageFragment &, String &) const; + void registerMessageDomain(MessageModule &module, char *domain, char *dir) const; +}; + +void GettextMessageTable::registerMessageDomain(MessageModule &module, + char *domain, char *dir) const +{ + module.domain = domain; + if (dir) + bindtextdomain(domain, dir); +} + +Boolean GettextMessageTable::getText(const MessageFragment &frag, + String &str) const +{ + const char *s = frag.text(); + if (!s) + return 0; + s = dgettext(frag.module()->domain, s); + if (!s) + return 0; + str.assign(s, strlen(s)); + return 1; +} + +static GettextMessageTable theMessageTable; + +#ifdef SP_NAMESPACE +} +#endif + +#else /* not SP_HAVE_GETTEXT */ + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class DefaultMessageTable : public MessageTable { +public: + Boolean getText(const MessageFragment &, String &) const; +}; + +Boolean DefaultMessageTable::getText(const MessageFragment &frag, + String &str) const +{ + if (!frag.text()) + return 0; + str.resize(0); + for (const char *s = frag.text(); *s; s++) + str += SP_TCHAR((unsigned char)*s); + return 1; +} + +static DefaultMessageTable theMessageTable; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not SP_HAVE_GETTEXT */ + +#endif /* not SP_NO_MESSAGE_TEXT */ + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const MessageTable *MessageTable::instance() +{ + return &theMessageTable; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ModeInfo.cxx b/lib/ModeInfo.cxx new file mode 100644 index 0000000..df56ebc --- /dev/null +++ b/lib/ModeInfo.cxx @@ -0,0 +1,299 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include +#include +#include "macros.h" +#include "types.h" +#include "Syntax.h" +#include "token.h" +#include "Sd.h" +#include "Mode.h" +#include "ModeInfo.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const unsigned REQUIRE_EMPTY_STARTTAG = 01; +const unsigned REQUIRE_EMPTY_ENDTAG = 02; +const unsigned REQUIRE_CONCUR = 04; +const unsigned REQUIRE_LINK_OR_CONCUR = 010; +const unsigned REQUIRE_NOT_KEEPRSRE = 020; +const unsigned REQUIRE_FLAGS = 037; + +#define ULONG_BIT (CHAR_BIT * sizeof(unsigned long)) + +struct PackedTokenInfo { + Token token; // token to be returned + unsigned flags; + unsigned char contents[2]; // components of the delimiter or d-i-c + unsigned char modes[25]; // list of modes in which it is recognized, + // terminated by EOM + // a bit vector computed from modes (lo to hi) + unsigned long modeBits[(nModes + ULONG_BIT - 1)/ULONG_BIT]; + void computeModeBits(); + Boolean inMode(Mode mode) const; +}; + +const unsigned char SET = Syntax::nDelimGeneral; +const unsigned char FUNCTION = SET + Syntax::nSet; +const unsigned char NOTHING = UCHAR_MAX; + +const unsigned char EOM = 255; // end of modes + +static PackedTokenInfo tokenTable[] = { + // Delimiters and delimiters in context + { tokenAnd, 0, { Syntax::dAND, NOTHING }, { grpMode, EOM }}, + { tokenCom, 0, { Syntax::dCOM, NOTHING }, + { mdMode, mdMinusMode, mdPeroMode, sdMode, comMode, sdcomMode, piPasMode, EOM }}, + { tokenCroDigit, 0, { Syntax::dCRO, SET + Syntax::digit }, + { econMode, mconMode, rcconMode, econnetMode, mconnetMode, rcconnetMode, + rcconeMode, plitMode, plitaMode, pliteMode, sdplitMode, sdplitaMode, + alitMode, alitaMode, aliteMode, + talitMode, talitaMode, taliteMode, rcmsMode, EOM }}, + { tokenCroNameStart, 0, { Syntax::dCRO, SET + Syntax::nameStart }, + { econMode, mconMode, rcconMode, econnetMode, mconnetMode, rcconnetMode, + rcconeMode, plitMode, plitaMode, pliteMode, sdplitMode, sdplitaMode, + alitMode, alitaMode, aliteMode, + talitMode, talitaMode, taliteMode, rcmsMode, EOM }}, + { tokenDsc, 0, { Syntax::dDSC, NOTHING }, + { /* mdMode, */ asMode, dsMode, EOM }}, + { tokenDso, 0, { Syntax::dDSO, NOTHING }, { mdMode, EOM }}, + { tokenDtgc, 0, { Syntax::dDTGC, NOTHING }, { grpMode, EOM }}, + { tokenDtgo, 0, { Syntax::dDTGO, NOTHING }, { grpMode, EOM }}, + { tokenEroNameStart, 0, { Syntax::dERO, SET + Syntax::nameStart }, + { econMode, mconMode, rcconMode, econnetMode, mconnetMode, rcconnetMode, + rcconeMode, alitMode, alitaMode, aliteMode, talitMode, talitaMode, + taliteMode, rcmsMode, EOM }}, + { tokenEroGrpo, REQUIRE_LINK_OR_CONCUR, { Syntax::dERO, Syntax::dGRPO }, + { econMode, mconMode, rcconMode, econnetMode, mconnetMode, rcconnetMode, + rcconeMode, alitMode, alitaMode, aliteMode, talitMode, talitaMode, + taliteMode, rcmsMode, EOM }}, + { tokenEtago, 0, { Syntax::dETAGO, NOTHING }, { tagMode, EOM }}, + { tokenEtagoNameStart, 0, { Syntax::dETAGO, SET + Syntax::nameStart }, + { econMode, mconMode, cconMode, rcconMode, + econnetMode, mconnetMode, cconnetMode, rcconnetMode, EOM }}, + { tokenEtagoTagc, REQUIRE_EMPTY_ENDTAG, { Syntax::dETAGO, Syntax::dTAGC }, + { econMode, mconMode, cconMode, rcconMode, + econnetMode, mconnetMode, cconnetMode, rcconnetMode, EOM }}, + { tokenEtagoGrpo, REQUIRE_CONCUR, { Syntax::dETAGO, Syntax::dGRPO }, + { econMode, mconMode, cconMode, rcconMode, + econnetMode, mconnetMode, cconnetMode, rcconnetMode, EOM }}, + { tokenGrpc, 0, { Syntax::dGRPC, NOTHING }, { grpMode, EOM }}, + { tokenGrpo, 0, { Syntax::dGRPO, NOTHING }, + { mdMode, mdMinusMode, grpMode, EOM }}, + { tokenHcroHexDigit, 0, { Syntax::dHCRO, SET + Syntax::hexDigit }, + { econMode, mconMode, rcconMode, econnetMode, mconnetMode, rcconnetMode, + rcconeMode, plitMode, plitaMode, pliteMode, + alitMode, alitaMode, aliteMode, + talitMode, talitaMode, taliteMode, rcmsMode, EOM }}, + { tokenLit, 0, { Syntax::dLIT, NOTHING }, + { alitMode, talitMode, plitMode, sdplitMode, mlitMode, slitMode, sdslitMode, + asMode, piPasMode, tagMode, mdMode, sdMode, grpMode, EOM }}, + { tokenLita, 0, { Syntax::dLITA, NOTHING }, + { alitaMode, talitaMode, plitaMode, sdplitaMode, mlitaMode, slitaMode, sdslitaMode, + asMode, piPasMode, tagMode, mdMode, sdMode, grpMode, EOM }}, + { tokenMdc, 0, { Syntax::dMDC, NOTHING }, { mdMode, sdMode, EOM }}, + { tokenMdoNameStart, 0, { Syntax::dMDO, SET + Syntax::nameStart }, + { econMode, mconMode, econnetMode, mconnetMode, + proMode, dsMode, dsiMode, EOM }}, + { tokenMdoMdc, 0, { Syntax::dMDO, Syntax::dMDC }, + { econMode, mconMode, econnetMode, mconnetMode, + proMode, dsMode, dsiMode, EOM }}, + { tokenMdoCom, 0, { Syntax::dMDO, Syntax::dCOM }, + { econMode, mconMode, econnetMode, mconnetMode, + proMode, dsMode, dsiMode, EOM }}, + { tokenMdoDso, 0, { Syntax::dMDO, Syntax::dDSO }, + { econMode, mconMode, econnetMode, mconnetMode, + dsMode, dsiMode, imsMode, EOM }}, + { tokenMinus, 0, { Syntax::dMINUS, NOTHING }, { mdMinusMode, sdMode, EOM }}, + { tokenMinusGrpo, 0, { Syntax::dMINUS, Syntax::dGRPO }, { mdMode, EOM }}, + { tokenMscMdc, 0, { Syntax::dMSC, Syntax::dMDC}, + { imsMode, cmsMode, rcmsMode, + econMode, mconMode, econnetMode, mconnetMode, dsMode, dsiMode, EOM }}, + { tokenNestc, 0, { Syntax::dNESTC, NOTHING }, { tagMode, EOM }}, + { tokenNet, 0, { Syntax::dNET, NOTHING }, + { econnetMode, mconnetMode, cconnetMode, rcconnetMode, EOM }}, + { tokenOpt, 0, { Syntax::dOPT, NOTHING }, { grpMode, grpsufMode, EOM }}, + { tokenOr, 0, { Syntax::dOR, NOTHING }, { grpMode, EOM }}, + { tokenPero, 0, { Syntax::dPERO, NOTHING }, { mdPeroMode, EOM }}, + { tokenPeroNameStart, 0, { Syntax::dPERO, SET + Syntax::nameStart }, { + mdMode, mdMinusMode, mdPeroMode, dsMode, dsiMode, grpMode, + plitMode, plitaMode, pliteMode, sdplitMode, sdplitaMode, EOM }}, + { tokenPeroGrpo, REQUIRE_LINK_OR_CONCUR, { Syntax::dPERO, Syntax::dGRPO }, + { mdMode, mdMinusMode, mdPeroMode, dsMode, dsiMode, grpMode, + plitMode, plitaMode, pliteMode, sdplitMode, sdplitaMode, EOM }}, + { tokenPic, 0, { Syntax::dPIC, NOTHING }, { piMode, EOM }}, + { tokenPio, 0, { Syntax::dPIO, NOTHING }, + { econMode, mconMode, econnetMode, mconnetMode, proMode, + dsMode, dsiMode, EOM }}, + { tokenPlus, 0, { Syntax::dPLUS, NOTHING }, { grpMode, grpsufMode, EOM }}, + { tokenPlusGrpo, 0, { Syntax::dPLUS, Syntax::dGRPO }, { mdMode, EOM }}, + { tokenRefc, 0, { Syntax::dREFC, NOTHING }, { refMode, EOM }}, + { tokenRep, 0, { Syntax::dREP, NOTHING }, { grpMode, grpsufMode, EOM }}, + { tokenRni, 0, { Syntax::dRNI, NOTHING }, + { grpMode, mdMode, mdPeroMode, EOM }}, + { tokenSeq, 0, { Syntax::dSEQ, NOTHING }, { grpMode, EOM }}, + { tokenStago, 0, { Syntax::dSTAGO, NOTHING }, { tagMode, EOM }}, + { tokenStagoNameStart, 0, { Syntax::dSTAGO, SET + Syntax::nameStart }, + { econMode, mconMode, econnetMode, mconnetMode, EOM }}, + { tokenStagoTagc, REQUIRE_EMPTY_STARTTAG, { Syntax::dSTAGO, Syntax::dTAGC }, + { econMode, mconMode, econnetMode, mconnetMode, EOM }}, + { tokenStagoGrpo, REQUIRE_CONCUR, { Syntax::dSTAGO, Syntax::dGRPO }, + { econMode, mconMode, econnetMode, mconnetMode, EOM }}, + { tokenTagc, 0, { Syntax::dTAGC, NOTHING }, { tagMode, EOM }}, + { tokenVi, 0, { Syntax::dVI, NOTHING }, { tagMode, asMode, piPasMode, EOM }}, + // Other tokens + { tokenRe, REQUIRE_NOT_KEEPRSRE, { FUNCTION + Syntax::fRE, NOTHING }, + { mconMode, cconMode, rcconMode, + mconnetMode, cconnetMode, rcconnetMode, + rcconeMode, cmsMode, rcmsMode, EOM }}, + { tokenRe, 0, { FUNCTION + Syntax::fRE, NOTHING }, + { refMode, + mlitMode, mlitaMode, alitMode, alitaMode, aliteMode, + talitMode, talitaMode, taliteMode, + EOM }}, + { tokenRs, REQUIRE_NOT_KEEPRSRE, { FUNCTION + Syntax::fRS, NOTHING }, + { mconMode, cconMode, rcconMode, + mconnetMode, cconnetMode, rcconnetMode, + rcconeMode, cmsMode, rcmsMode, EOM }}, + { tokenRs, 0, { FUNCTION + Syntax::fRS, NOTHING }, + { mlitMode, mlitaMode, alitMode, alitaMode, aliteMode, + talitMode, talitaMode, taliteMode, + EOM }}, + { tokenSpace, 0, { FUNCTION + Syntax::fSPACE, NOTHING }, + { mlitMode, mlitaMode, talitMode, talitaMode, taliteMode, EOM }}, + { tokenSepchar, 0, { SET + Syntax::sepchar, NOTHING }, + { alitMode, alitaMode, aliteMode, + talitMode, talitaMode, taliteMode, EOM }}, + { tokenS, 0, { SET + Syntax::s, NOTHING }, + { econMode, econnetMode, grpMode, mdMode, mdMinusMode, mdPeroMode, sdMode, + proMode, dsMode, dsiMode, asMode, piPasMode, tagMode, EOM }}, + { tokenNameStart, 0, { SET + Syntax::nameStart, NOTHING }, + { grpMode, mdMode, mdMinusMode, mdPeroMode, sdMode, + asMode, piPasMode, tagMode, EOM }}, + { tokenDigit, 0, { SET + Syntax::digit, NOTHING }, + { grpMode, mdMode, mdMinusMode, sdMode, asMode, piPasMode, tagMode, EOM }}, + { tokenLcUcNmchar, 0, { SET + Syntax::nmchar, NOTHING }, + { grpMode, mdMode, asMode, piPasMode, tagMode, EOM }}, + { tokenIgnoredChar, 0, { SET + Syntax::sgmlChar, NOTHING }, + { imsMode, EOM }}, + { tokenChar, 0, { SET + Syntax::sgmlChar, NOTHING }, + // Note that character data is recognized in element content, + // and will cause #PCDATA to begin. + { alitMode, alitaMode, aliteMode, + talitMode, talitaMode, taliteMode, + comMode, piMode, + cmsMode, rcmsMode, + plitMode, plitaMode, pliteMode, + slitMode, slitaMode, + econMode, mconMode, cconMode, rcconMode, + econnetMode, mconnetMode, cconnetMode, rcconnetMode, rcconeMode, EOM }}, + { tokenChar, 0, { SET + Syntax::minimumData, NOTHING }, + { mlitMode, mlitaMode, EOM }}, + { tokenChar, 0, { SET + Syntax::significant, NOTHING }, + { sdplitMode, sdplitaMode, sdslitMode, sdslitaMode, sdcomMode, EOM }}, +}; + +inline Boolean PackedTokenInfo::inMode(Mode mode) const +{ + return ((modeBits[unsigned(mode) / ULONG_BIT] + & ((unsigned long)1 << (unsigned(mode) % ULONG_BIT))) + != 0); +} + +void PackedTokenInfo::computeModeBits() +{ + for (unsigned char *p = modes; *p != EOM; p++) + modeBits[*p / ULONG_BIT] |= (unsigned long)1 << (*p % ULONG_BIT); +} + +struct TokenTableIniter { + TokenTableIniter(); +}; + +static TokenTableIniter tokenTableIniter; + +TokenTableIniter::TokenTableIniter() +{ + for (size_t i = 0; i < SIZEOF(tokenTable); i++) + tokenTable[i].computeModeBits(); +} + +ModeInfo::ModeInfo(Mode mode, const Sd &sd) +: mode_(mode), p_(tokenTable), count_(SIZEOF(tokenTable)), + missingRequirements_(REQUIRE_FLAGS) +{ + if (sd.startTagEmpty()) + missingRequirements_ &= ~REQUIRE_EMPTY_STARTTAG; + if (sd.endTagEmpty()) + missingRequirements_ &= ~REQUIRE_EMPTY_ENDTAG; + if (sd.concur()) + missingRequirements_ &= ~(REQUIRE_CONCUR|REQUIRE_LINK_OR_CONCUR); + if (sd.link()) + missingRequirements_ &= ~REQUIRE_LINK_OR_CONCUR; + if (!sd.keeprsre()) + missingRequirements_ &= ~REQUIRE_NOT_KEEPRSRE; +} + +Boolean ModeInfo::nextToken(TokenInfo *t) +{ + for (; count_ > 0; --count_, ++p_) + if (p_->inMode(mode_) && (p_->flags & missingRequirements_) == 0) { + t->token = p_->token; + t->priority = Priority::delim; + const unsigned char *contents = p_->contents; + --count_; + ++p_; + unsigned char c = contents[0]; + if (c < SET) + t->delim1 = Syntax::DelimGeneral(c); + else if (c < SET + Syntax::nSet) { + t->set = Syntax::Set(c - SET); + t->type = TokenInfo::setType; + switch (t->set) { + case Syntax::sepchar: + case Syntax::s: + case Syntax::blank: + t->priority = Priority::function; + break; + default: + t->priority = Priority::data; + break; + } + return 1; + } + else { + t->function = Syntax::StandardFunction(c - FUNCTION); + t->priority = Priority::function; + t->type = TokenInfo::functionType; + return 1; + } + c = contents[1]; + if (c == NOTHING) { + t->type = TokenInfo::delimType; + return 1; + } + if (c < SET) { + t->delim2 = Syntax::DelimGeneral(c); + t->type = TokenInfo::delimDelimType; + return 1; + } + if (c < SET + Syntax::nSet) { + t->set = Syntax::Set(c - SET); + t->type = TokenInfo::delimSetType; + return 1; + } + abort(); + } + return 0; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ModeInfo.h b/lib/ModeInfo.h new file mode 100644 index 0000000..411238c --- /dev/null +++ b/lib/ModeInfo.h @@ -0,0 +1,63 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef ModeInfo_INCLUDED +#define ModeInfo_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include +#include "Boolean.h" +#include "Syntax.h" +#include "Mode.h" +#include "Priority.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct TokenInfo { + enum Type { + delimType, + setType, + functionType, + delimDelimType, + delimSetType + }; + Type type; + Priority::Type priority; + Token token; + Syntax::DelimGeneral delim1; + union { + Syntax::DelimGeneral delim2; + Syntax::Set set; + Syntax::StandardFunction function; + }; +}; + +class Sd; +struct PackedTokenInfo; + +class ModeInfo { +public: + ModeInfo(Mode mode, const Sd &sd); + Boolean nextToken(TokenInfo *); + Boolean includesShortref() const; +private: + Mode mode_; + const PackedTokenInfo *p_; // points to next + size_t count_; + unsigned missingRequirements_; +}; + +inline Boolean ModeInfo::includesShortref() const +{ + return mode_ >= minShortrefMode; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ModeInfo_INCLUDED */ diff --git a/lib/Mutex.h b/lib/Mutex.h new file mode 100644 index 0000000..e621b30 --- /dev/null +++ b/lib/Mutex.h @@ -0,0 +1,125 @@ +// Copyright (c) 1996 James Clark +// See the file copying.txt for copying permission. + +#ifndef Mutex_INCLUDED +#define Mutex_INCLUDED 1 + +#ifdef SP_MUTEX_WIN32 +#define SP_MUTEX + +#define STRICT 1 +#include +// appears to turn these warnings back on +#ifdef _MSC_VER +#pragma warning ( disable : 4237 ) +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Mutex { +public: + class Lock { + public: + Lock(Mutex *mp) : mp_(mp) { + if (mp) ::EnterCriticalSection(&mp->cs_); + } + ~Lock() { + if (mp_) ::LeaveCriticalSection(&mp_->cs_); + } + private: + Mutex *mp_; + }; + Mutex() { + ::InitializeCriticalSection(&cs_); + } + ~Mutex() { + ::DeleteCriticalSection(&cs_); + } + friend class Lock; +private: + CRITICAL_SECTION cs_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MUTEX_WIN32 */ + +#ifdef SP_MUTEX_MACH +#define SP_MUTEX + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MUTEX_MACH */ + +#ifdef SP_MUTEX_PTHREADS + +// Support for pthreads on Linux. +// Written by Matthias Clasen + +#define SP_MUTEX + +extern "C" { +#include +} + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Mutex { +public: + class Lock { + // Lock serves to automatically unlock Mutex, however control leaves + // a block. Don't let any "warning: unused variable `class Mutex::Lock lock'" + // mislead you; hopefully your compiler won't optimise this away... + public: + Lock(Mutex *mp) : mp_(mp) { if (mp_) pthread_mutex_lock (&mp_->cs_); } + ~Lock() { if (mp_) pthread_mutex_unlock(&mp_->cs_); } + private: + Mutex *mp_; + }; + Mutex() { pthread_mutex_init (&cs_, NULL); } + ~Mutex() { pthread_mutex_destroy (&cs_); } + friend class Lock; +private: + pthread_mutex_t cs_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MUTEX_PTHREADS */ + +#ifndef SP_MUTEX + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Mutex { +public: + class Lock { + public: + Lock(Mutex *) { } + }; + Mutex() { } +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not SP_MUTEX */ + +#endif /* not Mutex_INCLUDED */ diff --git a/lib/NameToken.h b/lib/NameToken.h new file mode 100644 index 0000000..bd5198e --- /dev/null +++ b/lib/NameToken.h @@ -0,0 +1,24 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef NameToken_INCLUDED +#define NameToken_INCLUDED 1 + +#include "Location.h" +#include "StringC.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct NameToken { + StringC name; + StringC origName; + Location loc; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not NameToken_INCLUDED */ diff --git a/lib/Notation.cxx b/lib/Notation.cxx new file mode 100644 index 0000000..4752bb7 --- /dev/null +++ b/lib/Notation.cxx @@ -0,0 +1,63 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Notation.h" +#include "ParserState.h" +#include "Sd.h" +#include "Syntax.h" +#include "MessageArg.h" +#include "ParserMessages.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Notation::Notation(const StringC &name, + const ConstPtr > &dtdName, + Boolean dtdIsBase) +: EntityDecl(name, notation, ndata, Location()), defined_(0) +{ + setDeclIn(dtdName, dtdIsBase); +} + +Notation::~Notation() {} + +void Notation::setExternalId(const ExternalId &id, const Location &defLocation) +{ + externalId_ = id; + defined_ = 1; + setDefLocation(defLocation); +} + +void Notation::generateSystemId(ParserState &parser) +{ + StringC str; + if (parser.entityCatalog().lookup(*this, + parser.syntax(), + parser.sd().docCharset(), + parser.messenger(), + str)) + externalId_.setEffectiveSystem(str); + else if (parser.options().warnNotationSystemId) + parser.message(ParserMessages::cannotGenerateSystemIdNotation, + StringMessageArg(name())); +} + +const StringC *Notation::systemIdPointer() const +{ + return externalId_.systemIdString(); +} + +const StringC *Notation::publicIdPointer() const +{ + return externalId_.publicIdString(); +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/NotationStorage.cxx b/lib/NotationStorage.cxx new file mode 100644 index 0000000..1725d6b --- /dev/null +++ b/lib/NotationStorage.cxx @@ -0,0 +1,42 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "NotationStorage.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +NotationStorageManager::NotationStorageManager(const char *type) +: type_(type) +{ +} + +Boolean NotationStorageManager::inheritable() const +{ + return 0; +} + +const char *NotationStorageManager::type() const +{ + return type_; +} + +StorageObject *NotationStorageManager::makeStorageObject(const StringC &, + const StringC &, + Boolean, + Boolean, + Messenger &, + StringC &) +{ + return 0; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/NumericCharRefOrigin.cxx b/lib/NumericCharRefOrigin.cxx new file mode 100644 index 0000000..053c2aa --- /dev/null +++ b/lib/NumericCharRefOrigin.cxx @@ -0,0 +1,42 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "NumericCharRefOrigin.h" +#include "Markup.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +NumericCharRefOrigin::NumericCharRefOrigin(const Location &start, + Index refLength, + Owner &markup) +: start_(start), refLength_(refLength) +{ + markup.swap(markup_); +} + +const Location &NumericCharRefOrigin::parent() const +{ + return start_; +} + +Index NumericCharRefOrigin::refLength() const +{ + return refLength_; +} + +Boolean NumericCharRefOrigin::isNumericCharRef(const Markup *&markup) const +{ + markup = markup_.pointer(); + return 1; +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/NumericCharRefOrigin.h b/lib/NumericCharRefOrigin.h new file mode 100644 index 0000000..f46f59a --- /dev/null +++ b/lib/NumericCharRefOrigin.h @@ -0,0 +1,35 @@ +#ifndef NumericCharRefOrigin_INCLUDED +#define NumericCharRefOrigin_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Location.h" +#include "Markup.h" +#include "Owner.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class NumericCharRefOrigin : public Origin { +public: + NumericCharRefOrigin(const Location &start, Index endIndex, + Owner &markup); + const Location &parent() const; + Index refLength() const; + Boolean isNumericCharRef(const Markup *&) const; +private: + NumericCharRefOrigin(const NumericCharRefOrigin &); // undefined + void operator=(const NumericCharRefOrigin &); // undefined + Location start_; + Index refLength_; + Owner markup_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not NumericCharRefOrigin_INCLUDED */ diff --git a/lib/OffsetOrderedList.cxx b/lib/OffsetOrderedList.cxx new file mode 100644 index 0000000..2b2f99d --- /dev/null +++ b/lib/OffsetOrderedList.cxx @@ -0,0 +1,132 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "OffsetOrderedList.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +OffsetOrderedList::OffsetOrderedList() +: blockUsed_(OffsetOrderedListBlock::size) +{ +} + +void OffsetOrderedList::append(Offset offset) +{ + // At any position in the list there's a current offset. + // The offset is initially zero. + // A byte of 255 says add 255 to the current offset. + // A byte B < 255, says that there's an item in the list whose + // offset is the current offset + B, and that B + 1 should be + // added to the current offset. + Offset curOffset = blocks_.size() > 0 ? blocks_.back()->offset : 0; + ASSERT(offset >= curOffset); + Offset count = offset - curOffset; + while (count >= 255) { + addByte(255); + count -= 255; + } + addByte(count); +} + +void OffsetOrderedList::addByte(unsigned char b) +{ + if (blockUsed_ >= OffsetOrderedListBlock::size) { + Mutex::Lock lock(&mutex_); + blocks_.resize(blocks_.size() + 1); + Owner &last = blocks_.back(); + last = new OffsetOrderedListBlock; + if (blocks_.size() == 1) { + last->nextIndex = 0; + last->offset = 0; + } + else { + OffsetOrderedListBlock &lastButOne = *blocks_[blocks_.size() - 2]; + last->nextIndex = lastButOne.nextIndex; + last->offset = lastButOne.offset; + } + blockUsed_ = 0; + } + blocks_.back()->bytes[blockUsed_] = b; + if (b == 255) + blocks_.back()->offset += 255; + else { + blocks_.back()->offset += b + 1; + blocks_.back()->nextIndex += 1; + } + blockUsed_++; +} + +// Find the last offset <= off. + +Boolean OffsetOrderedList::findPreceding(Offset off, + size_t &foundIndex, + Offset &foundOffset) const +{ + Mutex::Lock lock(&((OffsetOrderedList *)this)->mutex_); + // Invariant: + // blocks with index < i have offset <= off + // blocks with index >= lim have offset > off + size_t i = 0; + size_t lim = blocks_.size(); + // Most commonly we'll want to know the about positions near the end, + // so optimize this case. + if (lim > 0 && blocks_[lim - 1]->offset <= off) + i = lim; + else if (lim > 1 && blocks_[lim - 2]->offset <= off) + i = lim - 1; + else { + // Do a binary search. + while (i < lim) { + size_t mid = i + (lim - i)/2; + if (blocks_[mid]->offset > off) + lim = mid; + else + i = mid + 1; + } + } + if (i == blocks_.size()) { + if (i == 0) + return 0; + foundIndex = blocks_.back()->nextIndex - 1; + foundOffset = blocks_.back()->offset - 1; + return 1; + } + // Note that an item with offset X can only occur in a block with offset > X + // i is now the first block with offset > off + Offset curOff = blocks_[i]->offset; + size_t curIndex = blocks_[i]->nextIndex; + const unsigned char *bytes = blocks_[i]->bytes; + int j = (i == blocks_.size() - 1 + ? blockUsed_ + : int(OffsetOrderedListBlock::size)); + for (;;) { + j--; + if (bytes[j] != 255) { + curIndex -= 1; + curOff -= 1; + if (curOff <= off) + break; + } + curOff -= bytes[j]; + if (j == 0) { + if (i == 0) + return 0; + i--; + j = OffsetOrderedListBlock::size; + curOff = blocks_[i]->offset; + curIndex = blocks_[i]->nextIndex; + bytes = blocks_[i]->bytes; + } + } + foundIndex = curIndex; + foundOffset = curOff; + return 1; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/OffsetOrderedList.h b/lib/OffsetOrderedList.h new file mode 100644 index 0000000..4b27c6b --- /dev/null +++ b/lib/OffsetOrderedList.h @@ -0,0 +1,55 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef OffsetOrderedList_INCLUDED +#define OffsetOrderedList_INCLUDED 1 + +#include "types.h" +#include "Owner.h" +#include "NCVector.h" +#include "Boolean.h" +#include "Mutex.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct OffsetOrderedListBlock { + Offset offset; // next Offset + size_t nextIndex; // index of first item in next block + enum { size = 200 }; + unsigned char bytes[size]; +}; + +// This is an ordered list of Offsets with no duplicates. + +class OffsetOrderedList { +public: + OffsetOrderedList(); + // off must be > the last offset added. + void append(Offset off); + // Find the last offset in the list <= off. + Boolean findPreceding(Offset off, size_t &foundIndex, Offset &foundOffset) + const; + size_t size() const; +private: + OffsetOrderedList(const OffsetOrderedList &); // undefined + void operator=(const OffsetOrderedList &); // undefined + void addByte(unsigned char b); + // bytes used in current block + int blockUsed_; + NCVector > blocks_; + Mutex mutex_; +}; + +inline +size_t OffsetOrderedList::size() const +{ + return blocks_.size() == 0 ? 0 : blocks_.back()->nextIndex; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not OffsetOrderedList_INCLUDED */ diff --git a/lib/OpenElement.cxx b/lib/OpenElement.cxx new file mode 100644 index 0000000..22b3362 --- /dev/null +++ b/lib/OpenElement.cxx @@ -0,0 +1,31 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "OpenElement.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +OpenElement::OpenElement(const ElementType *type, + Boolean net, + Boolean included, + const ShortReferenceMap *map, + const Location &startLocation) +: elementType_(type), + netEnabling_(net), + included_(included), + matchState_(type->definition()->compiledModelGroup()), + map_(map), + startLocation_(startLocation), + declaredContent_(type->definition()->declaredContent()) +{ +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/OutputByteStream.cxx b/lib/OutputByteStream.cxx new file mode 100644 index 0000000..6789911 --- /dev/null +++ b/lib/OutputByteStream.cxx @@ -0,0 +1,283 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "OutputByteStream.h" + +#include + +#ifdef SP_INCLUDE_IO_H +#include // for open, fstat, lseek, read prototypes +#endif + +#ifdef SP_INCLUDE_UNISTD_H +#include +#endif + +#ifdef SP_INCLUDE_OSFCN_H +#include +#endif + +#include +#include +#include +#include + +#ifdef SP_WIDE_SYSTEM +#define STRICT +#include +#endif + +#ifndef O_CREAT +#ifdef _O_CREAT +#define O_CREAT _O_CREAT +#endif +#endif + +#ifndef O_WRONLY +#ifdef _O_WRONLY +#define O_WRONLY _O_WRONLY +#endif +#endif + +#ifndef O_TRUNC +#ifdef _O_TRUNC +#define O_TRUNC _O_TRUNC +#endif +#endif + +#ifndef O_BINARY +#ifdef _O_BINARY +#define O_BINARY _O_BINARY +#else +#define O_BINARY 0 +#endif +#endif + +#ifndef S_IRUSR +#if defined(S_IREAD) +#define S_IRUSR S_IREAD +#elif defined(_S_IREAD) +#define S_IRUSR _S_IREAD +#else +#define S_IRUSR 0400 +#endif +#endif + +#ifndef S_IWUSR +#if defined(S_IWRITE) +#define S_IWUSR S_IWRITE +#elif defined(_S_IWRITE) +#define S_IWUSR _S_IWRITE +#else +#define S_IWUSR 0200 +#endif +#endif + +#ifndef S_IRGRP +#if defined(S_IREAD) +#define S_IRGRP S_IREAD +#elif defined(_S_IREAD) +#define S_IRGRP _S_IREAD +#else +#define S_IRGRP 0040 +#endif +#endif + +#ifndef S_IWGRP +#if defined(S_IWRITE) +#define S_IWGRP S_IWRITE +#elif defined(_S_IWRITE) +#define S_IWGRP _S_IWRITE +#else +#define S_IWGRP 0020 +#endif +#endif + +#ifndef S_IROTH +#if defined(S_IREAD) +#define S_IROTH S_IREAD +#elif defined(_S_IREAD) +#define S_IROTH _S_IREAD +#else +#define S_IROTH 0004 +#endif +#endif + +#ifndef S_IWOTH +#if defined(S_IWRITE) +#define S_IWOTH S_IWRITE +#elif defined(_S_IWRITE) +#define S_IWOTH _S_IWRITE +#else +#define S_IWOTH 0002 +#endif +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const int openFlags = O_CREAT|O_WRONLY|O_TRUNC|O_BINARY; +const int protMode = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH; +const int bufSize = 8192; + +OutputByteStream::OutputByteStream() +: ptr_(0), end_(0) +{ +} + +OutputByteStream::~OutputByteStream() +{ +} + +void OutputByteStream::sputn(const char *s, size_t n) +{ + for (; n > 0; n--, s++) + sputc(*s); +} + +OutputByteStream &OutputByteStream::operator<<(long n) +{ + char buf[32]; + sprintf(buf, "%ld", n); + return *this << buf; +} + +OutputByteStream &OutputByteStream::operator<<(unsigned long n) +{ + char buf[32]; + sprintf(buf, "%lu", n); + return *this << buf; +} + +OutputByteStream &OutputByteStream::operator<<(const char *s) +{ + while (*s) + sputc(*s++); + return *this; +} + +StrOutputByteStream::StrOutputByteStream() +{ +} + +void StrOutputByteStream::extractString(String &str) +{ + if (ptr_) + buf_.resize(ptr_ - &buf_[0]); + str.resize(0); + buf_.swap(str); + ptr_ = end_ = 0; +} + +void StrOutputByteStream::flush() +{ +} + +void StrOutputByteStream::flushBuf(char c) +{ + if (!ptr_) { + buf_.resize(16); + ptr_ = &buf_[0]; + } + else { + size_t i = ptr_ - &buf_[0]; + buf_.resize(buf_.size()*2); + ptr_ = &buf_[0] + i; + } + end_ = &buf_[0] + buf_.size(); + *ptr_++ = c; +} + +FileOutputByteStream::FileOutputByteStream() +: fd_(-1) +{ +} + +FileOutputByteStream::FileOutputByteStream(int fd, Boolean closeFd) +: fd_(-1) +{ + attach(fd, closeFd); +} + +FileOutputByteStream::~FileOutputByteStream() +{ + close(); +} + +#ifdef SP_WIDE_SYSTEM + +Boolean FileOutputByteStream::open(const wchar_t *filename) +{ + int fd = _wopen(filename, openFlags, protMode); + if (fd >= 0) + return attach(fd); + // _wopen will always fail on Windows 95 + String buf; + int len = WideCharToMultiByte(CP_ACP, 0, filename, -1, 0, 0, 0, 0); + buf.resize(len + 1); + WideCharToMultiByte(CP_ACP, 0, filename, -1, buf.begin(), len, 0, 0); + buf[len] = '\0'; + return attach(::open(buf.data(), openFlags, protMode)); +} + +#else /* not SP_WIDE_SYSTEM */ + +Boolean FileOutputByteStream::open(const char *filename) +{ + return attach(::open(filename, openFlags, protMode)); +} + +#endif /* not SP_WIDE_SYSTEM */ + +Boolean FileOutputByteStream::attach(int fd, Boolean closeFd) +{ + close(); + fd_ = fd; + closeFd_ = closeFd; + return fd_ >= 0; +} + +Boolean FileOutputByteStream::close() +{ + if (fd_ < 0) + return 0; + flush(); + int fd = fd_; + fd_ = -1; + if (!closeFd_) + return 1; + return ::close(fd) == 0; +} + +void FileOutputByteStream::flush() +{ + if (!buf_.size()) { + if (fd_ < 0) + return; + buf_.resize(bufSize); + ptr_ = &buf_[0]; + end_ = ptr_ + buf_.size(); + } + size_t n = ptr_ - &buf_[0]; + const char *s = buf_.data(); + while (n > 0) { + int nw = ::write(fd_, s, n); + if (nw < 0) + break; + n -= nw; + s += nw; + } + ptr_ = &buf_[0]; +} + +void FileOutputByteStream::flushBuf(char c) +{ + flush(); + *ptr_++ = c; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/OutputCharStream.cxx b/lib/OutputCharStream.cxx new file mode 100644 index 0000000..13f7a3a --- /dev/null +++ b/lib/OutputCharStream.cxx @@ -0,0 +1,261 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "OutputCharStream.h" +#include "CodingSystem.h" +#include "macros.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +OutputCharStream::OutputCharStream() +: ptr_(0), end_(0) +{ +} + +OutputCharStream::~OutputCharStream() +{ +} + +void OutputCharStream::setEscaper(Escaper) +{ +} + +OutputCharStream &OutputCharStream::write(const Char *s, size_t n) +{ + for (;;) { + size_t spare = end_ - ptr_; + if (n <= spare) { + memcpy(ptr_, s, n*sizeof(Char)); + ptr_ += n; + break; + } + if (spare > 0) { + memcpy(ptr_, s, spare*sizeof(Char)); + ptr_ += spare; + s += spare; + n -= spare; + } + n--; + flushBuf(*s++); + } + return *this; +} + +OutputCharStream &OutputCharStream::operator<<(const char *s) +{ + while (*s) + put(*s++); + return *this; +} + +// FIXME Avoid stdio + +OutputCharStream &OutputCharStream::operator<<(unsigned long n) +{ + char buf[sizeof(unsigned long)*3 + 1]; + sprintf(buf, "%lu", n); + return *this << buf; +} + +OutputCharStream &OutputCharStream::operator<<(int n) +{ + char buf[sizeof(int)*3 + 2]; + sprintf(buf, "%d", n); + return *this << buf; +} + +EncodeOutputCharStream::EncodeOutputCharStream() +: buf_(0), byteStream_(0), escaper_(0) +{ +} + +EncodeOutputCharStream::EncodeOutputCharStream(OutputByteStream *byteStream, + const OutputCodingSystem *codingSystem) +: buf_(0), + byteStream_(byteStream), + escaper_(0), + ownedEncoder_(codingSystem->makeEncoder()) +{ + encoder_ = ownedEncoder_.pointer(); + encoder_->setUnencodableHandler(this); + allocBuf(codingSystem->fixedBytesPerChar()); + encoder_->startFile(byteStream_); +} + +EncodeOutputCharStream::EncodeOutputCharStream(OutputByteStream *byteStream, + Encoder *encoder) +: buf_(0), + byteStream_(byteStream), + escaper_(0), + encoder_(encoder) +{ + allocBuf(0); +} + +EncodeOutputCharStream::~EncodeOutputCharStream() +{ + if (byteStream_) + flush(); + delete [] buf_; +} + +void EncodeOutputCharStream::open(OutputByteStream *byteStream, + const OutputCodingSystem *codingSystem) +{ + if (byteStream_) + flush(); + byteStream_ = byteStream; + ownedEncoder_ = codingSystem->makeEncoder(); + encoder_ = ownedEncoder_.pointer(); + encoder_->setUnencodableHandler(this); + delete [] buf_; + buf_ = 0; + ptr_ = end_ = buf_; + allocBuf(codingSystem->fixedBytesPerChar()); + encoder_->startFile(byteStream_); +} + +void EncodeOutputCharStream::flush() +{ + if (ptr_ > buf_) { + encoder_->output(buf_, ptr_ - buf_, byteStream_); + ptr_ = buf_; + } + byteStream_->flush(); +} + +void EncodeOutputCharStream::flushBuf(Char c) +{ + ASSERT(buf_ != 0); + encoder_->output(buf_, ptr_ - buf_, byteStream_); + ptr_ = buf_; + *ptr_++ = c; +} + +void EncodeOutputCharStream::allocBuf(int bytesPerChar) +{ + const int blockSize = 1024; + size_t bufSize = bytesPerChar ? blockSize/bytesPerChar : blockSize; + ptr_ = buf_ = new Char[bufSize]; + end_ = buf_ + bufSize; +} + +void EncodeOutputCharStream::setEscaper(Escaper f) +{ + escaper_ = f; +} + +void EncodeOutputCharStream::handleUnencodable(Char c, OutputByteStream *) +{ + EncodeOutputCharStream tem(byteStream_, encoder_); + if (escaper_) + (*escaper_)(tem, c); +} + +StrOutputCharStream::StrOutputCharStream() +: buf_(0), bufSize_(0) +{ + sync(0); +} + +StrOutputCharStream::~StrOutputCharStream() +{ + delete [] buf_; +} + +void StrOutputCharStream::extractString(StringC &str) +{ + str.assign(buf_, ptr_ - buf_); + sync(0); +} + +void StrOutputCharStream::flushBuf(Char c) +{ + size_t used = ptr_ - buf_; + size_t oldSize = bufSize_; + bufSize_ = oldSize ? 2*oldSize : 10; + Char *oldBuf = buf_; + buf_ = new Char[bufSize_]; + if (oldSize) { + memcpy(buf_, oldBuf, oldSize * sizeof(Char)); + delete [] oldBuf; + } + sync(used); + *ptr_++ = c; +} + +void StrOutputCharStream::flush() +{ +} + +void StrOutputCharStream::sync(size_t length) +{ + ptr_ = buf_ + length; + end_ = buf_ + bufSize_; +} + +RecordOutputCharStream::RecordOutputCharStream(OutputCharStream *os) +: os_(os) +{ + ptr_ = buf_; + end_ = buf_ + bufSize_; +} + +RecordOutputCharStream::~RecordOutputCharStream() +{ + outputBuf(); + delete os_; +} + +void RecordOutputCharStream::setEscaper(Escaper f) +{ + os_->setEscaper(f); +} + +void RecordOutputCharStream::flush() +{ + outputBuf(); + os_->flush(); +} + +void RecordOutputCharStream::flushBuf(Char c) +{ + outputBuf(); + *ptr_++ = c; +} + +void RecordOutputCharStream::outputBuf() +{ + Char *start = buf_; + Char *p = start; + while (p < ptr_) { + switch (*p) { + case '\r': // translate RE to newline + if (start < p) + os_->write(start, p - start); + start = ++p; + *os_ << newline; + break; + case '\n': // ignore RS + if (start < p) + os_->write(start, p - start); + start = ++p; + break; + default: + ++p; + break; + } + } + if (start < p) + os_->write(start, p - start); + ptr_ = buf_; + end_ = buf_ + bufSize_; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/OutputState.cxx b/lib/OutputState.cxx new file mode 100644 index 0000000..a1ab8fe --- /dev/null +++ b/lib/OutputState.cxx @@ -0,0 +1,131 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "OutputState.h" +#include "Event.h" +#include "Allocator.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +OutputState::OutputState() +{ + init(); +} + +void OutputState::init() +{ + nextSerial_ = 0; + stack_.clear(); + stack_.insert(new OutputStateLevel); +} + +OutputStateLevel::OutputStateLevel() +: state(OutputState::afterStartTag) +{ +} + +void OutputState::handleRe(EventHandler &handler, Allocator &alloc, + const EventsWanted &eventsWanted, Char re, + const Location &location) +{ + re_ = re; + if (eventsWanted.wantInstanceMarkup()) + handler.reOrigin(new (alloc) ReOriginEvent(re_, location, nextSerial_)); + switch (top().state) { + case afterStartTag: + // it's the first RE in the element + if (eventsWanted.wantInstanceMarkup()) + handler.ignoredRe(new (alloc) IgnoredReEvent(re_, location, nextSerial_++)); + top().state = afterRsOrRe; + break; + case afterRsOrRe: + case afterData: + top().state = pendingAfterRsOrRe; + top().reLocation = location; + top().reSerial = nextSerial_++; + break; + case pendingAfterRsOrRe: + // We now know that the pending RE won't be ignored as the last RE. + handler.data(new (alloc) ReEvent(&re_, top().reLocation, top().reSerial)); + top().state = pendingAfterRsOrRe; + top().reLocation = location; + top().reSerial = nextSerial_++; + break; + case pendingAfterMarkup: + // We've had only markup since the last RS or RE, so this + // RE is ignored. Note that it's this RE that's ignored, not + // the pending one. + if (eventsWanted.wantInstanceMarkup()) + handler.ignoredRe(new (alloc) IgnoredReEvent(re_, location, nextSerial_++)); + top().state = pendingAfterRsOrRe; + break; + } +} + +void OutputState::noteRs(EventHandler &, Allocator &, const EventsWanted &) +{ + if (top().hasPendingRe()) + top().state = pendingAfterRsOrRe; + else + top().state = afterRsOrRe; +} + +void OutputState::noteMarkup(EventHandler &, Allocator &, const EventsWanted &) +{ + switch (top().state) { + case afterRsOrRe: + top().state = afterStartTag; + break; + case pendingAfterRsOrRe: + top().state = pendingAfterMarkup; + break; + default: + break; // avoid warning + } +} + +void OutputState::noteData(EventHandler &handler, Allocator &alloc, + const EventsWanted &) +{ + if (top().hasPendingRe()) + handler.data(new (alloc) ReEvent(&re_, top().reLocation, top().reSerial)); + top().state = afterData; +} + +void OutputState::noteStartElement(Boolean included, + EventHandler &handler, Allocator &alloc, + const EventsWanted &) +{ + if (included) + stack_.insert(new OutputStateLevel); + else { + if (top().hasPendingRe()) + handler.data(new (alloc) ReEvent(&re_, top().reLocation, top().reSerial)); + top().state = afterStartTag; + } +} + +void OutputState::noteEndElement(Boolean included, EventHandler &handler, + Allocator &alloc, + const EventsWanted &eventsWanted) +{ + if (eventsWanted.wantInstanceMarkup() && top().hasPendingRe()) + handler.ignoredRe(new (alloc) IgnoredReEvent(re_, top().reLocation, + top().reSerial)); + if (included) { + delete stack_.get(); + noteMarkup(handler, alloc, eventsWanted); + } + else + top().state = afterData; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/OutputState.h b/lib/OutputState.h new file mode 100644 index 0000000..74a172c --- /dev/null +++ b/lib/OutputState.h @@ -0,0 +1,78 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef OutputState_INCLUDED +#define OutputState_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Location.h" +#include "IList.h" +#include "Link.h" +#include "Boolean.h" +#include "types.h" +#include "EventsWanted.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct OutputStateLevel : public Link { + OutputStateLevel(); + Boolean hasPendingRe() const; + char state; // should be OutputState::State + unsigned long reSerial; + Location reLocation; +}; + +class EventHandler; +class Allocator; + +class OutputState { +public: + OutputState(); + void init(); + void handleRe(EventHandler &, Allocator &, const EventsWanted &, + Char, const Location &); + void noteRs(EventHandler &, Allocator &, const EventsWanted &); + void noteMarkup(EventHandler &, Allocator &, const EventsWanted &); + void noteData(EventHandler &, Allocator &, const EventsWanted &); + void noteStartElement(Boolean included, + EventHandler &, Allocator &, const EventsWanted &); + void noteEndElement(Boolean included, + EventHandler &, Allocator &, const EventsWanted &); +private: + OutputState(const OutputState &); // undefined + void operator=(const OutputState &); // undefined + enum State { + afterStartTag, + afterRsOrRe, + afterData, + pendingAfterRsOrRe, + pendingAfterMarkup + }; + IList stack_; + OutputStateLevel &top(); + Char re_; + unsigned long nextSerial_; + friend struct OutputStateLevel; +}; + +inline +Boolean OutputStateLevel::hasPendingRe() const +{ + return int(state) >= int(OutputState::pendingAfterRsOrRe); +} + +inline +OutputStateLevel &OutputState::top() +{ + return *stack_.head(); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not OutputState_INCLUDED */ diff --git a/lib/Param.cxx b/lib/Param.cxx new file mode 100644 index 0000000..09adc83 --- /dev/null +++ b/lib/Param.cxx @@ -0,0 +1,252 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Param.h" +#include "MessageBuilder.h" +#include "macros.h" +#include "ParserMessages.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +AllowedParams::AllowedParams(Param::Type p1, + Param::Type p2, + Param::Type p3, + Param::Type p4, + Param::Type p5, + Param::Type p6, + Param::Type p7, + Param::Type p8, + Param::Type p9, + Param::Type p10) +{ + init(); + allow(p1); + allow(p2); + allow(p3); + allow(p4); + allow(p5); + allow(p6); + allow(p7); + allow(p8); + allow(p9); + allow(p10); +} + +AllowedParams::AllowedParams(const Param::Type *v, int n) +{ + init(); + for (int i = 0; i < n; i++) + allow(v[i]); +} + +void AllowedParams::init() +{ + for (int i = 0; i < Syntax::nNames; i++) + reservedNames_[i] = 0; + mainMode_ = mdMode; + silent_ = 0; + mdc_ = 0; + rni_ = 0; + dso_ = 0; + inclusions_ = 0; + exclusions_ = 0; + extraDelimiter_ = Param::invalid; + group_ = Param::invalid; + nameStart_ = Param::invalid; + digit_ = Param::invalid; + nmchar_ = Param::invalid; + literal_ = Param::invalid; +} + + +void AllowedParams::allow(Param::Type p) +{ + switch (p) { + case Param::invalid: + break; + case Param::silent: + silent_ = 1; + break; + case Param::dso: + dso_ = 1; + break; + case Param::mdc: + mdc_ = 1; + break; + case Param::minus: + ASSERT(mainMode_ == mdMode); + mainMode_ = mdMinusMode; + extraDelimiter_ = p; + break; + case Param::pero: + ASSERT(mainMode_ == mdMode); + mainMode_ = mdPeroMode; + extraDelimiter_ = p; + break; + case Param::inclusions: + inclusions_ = 1; + break; + case Param::exclusions: + exclusions_ = 1; + break; + case Param::nameGroup: + case Param::nameTokenGroup: + case Param::modelGroup: + ASSERT(group_ == Param::invalid); + group_ = p; + break; + case Param::number: + ASSERT(digit_ == Param::invalid); + digit_ = p; + break; + case Param::minimumLiteral: + case Param::tokenizedAttributeValueLiteral: + case Param::attributeValueLiteral: + case Param::systemIdentifier: + case Param::paramLiteral: + ASSERT(literal_ == Param::invalid); + literal_ = p; + break; + case Param::name: + case Param::entityName: + case Param::paramEntityName: + ASSERT(nameStart_ == Param::invalid); + nameStart_ = p; + break; + case Param::attributeValue: + ASSERT(nameStart_ == Param::invalid); + nameStart_ = p; + ASSERT(digit_ == Param::invalid); + digit_ = p; + ASSERT(nmchar_ == Param::invalid); + nmchar_ = p; + break; + default: + if (p < Param::indicatedReservedName) { + ASSERT(nameStart_ == Param::invalid + || nameStart_ == Param::reservedName); + ASSERT(rni_ == 0); + nameStart_ = Param::reservedName; + reservedNames_[p - Param::reservedName] = 1; + } + else { + ASSERT(nameStart_ != Param::reservedName); + rni_ = 1; + reservedNames_[p - Param::indicatedReservedName] = 1; + } + break; + } +} + +AllowedParamsMessageArg::AllowedParamsMessageArg( + const AllowedParams &allow, + const ConstPtr &syntax) +: allow_(allow), + syntax_(syntax) +{ +} + +MessageArg *AllowedParamsMessageArg::copy() const +{ + return new AllowedParamsMessageArg(*this); +} + +void AllowedParamsMessageArg::append(MessageBuilder &builder) const +{ + Syntax::DelimGeneral delims[3]; + int nDelims = 0; + if (allow_.mdc()) + delims[nDelims++] = Syntax::dMDC; + if (allow_.dso()) + delims[nDelims++] = Syntax::dDSO; + switch (allow_.mainMode()) { + case mdMinusMode: + delims[nDelims++] = Syntax::dMINUS; + break; + case mdPeroMode: + delims[nDelims++] = Syntax::dPERO; + break; + default: + break; + } + Boolean first = 1; + int i; + for (i = 0; i < nDelims; i++) { + if (!first) + builder.appendFragment(ParserMessages::listSep); + else + first = 0; + const StringC &delim = syntax_->delimGeneral(delims[i]); + builder.appendFragment(ParserMessages::delimStart); + builder.appendChars(delim.data(), delim.size()); +#if 0 + builder.appendFragment(ParserMessages::delimEnd); +#endif + } + const MessageFragment *fragment[5]; + int nFragments = 0; + if (allow_.inclusions()) + fragment[nFragments++] = &ParserMessages::inclusions; + if (allow_.exclusions()) + fragment[nFragments++] = &ParserMessages::exclusions; + switch (allow_.literal()) { + case Param::minimumLiteral: + fragment[nFragments++] = &ParserMessages::minimumLiteral; + break; + case Param::attributeValueLiteral: + case Param::tokenizedAttributeValueLiteral: + fragment[nFragments++] = &ParserMessages::attributeValueLiteral; + break; + case Param::systemIdentifier: + fragment[nFragments++] = &ParserMessages::systemIdentifier; + break; + case Param::paramLiteral: + fragment[nFragments++] = &ParserMessages::parameterLiteral; + break; + } + switch (allow_.nameStart()) { + case Param::name: + case Param::entityName: + case Param::paramEntityName: + fragment[nFragments++] = &ParserMessages::name; + break; + case Param::attributeValue: + fragment[nFragments++] = &ParserMessages::attributeValue; + break; + } + if (allow_.digit() == Param::number) + fragment[nFragments++] = &ParserMessages::number; + + for (i = 0; i < nFragments; i++) { + if (!first) + builder.appendFragment(ParserMessages::listSep); + else + first = 0; + builder.appendFragment(*fragment[i]); + } + if (allow_.rni() || allow_.nameStart() == Param::reservedName) { + for (int i = 0; i < Syntax::nNames; i++) { + if (allow_.reservedName(Syntax::ReservedName(i))) { + if (!first) + builder.appendFragment(ParserMessages::listSep); + else + first = 0; + StringC str; + if (allow_.rni()) + str = syntax_->delimGeneral(Syntax::dRNI); + str += syntax_->reservedName(Syntax::ReservedName(i)); + builder.appendChars(str.data(), str.size()); + } + } + } +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Param.h b/lib/Param.h new file mode 100644 index 0000000..677c15e --- /dev/null +++ b/lib/Param.h @@ -0,0 +1,223 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Param_INCLUDED +#define Param_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Boolean.h" +#include "ContentToken.h" +#include "StringC.h" +#include "Location.h" +#include "MessageArg.h" +#include "Mode.h" +#include "NameToken.h" +#include "Owner.h" +#include "Ptr.h" +#include "Syntax.h" +#include "Text.h" +#include "Vector.h" + +// This describes a markup declaration parameter. + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class ElementType; + +class Param { +public: + Param() { } + typedef unsigned char Type; + enum { + invalid, + silent, + dso, + mdc, + minus, + pero, + inclusions, + exclusions, + nameGroup, + nameTokenGroup, + modelGroup, + number, + minimumLiteral, + attributeValueLiteral, + tokenizedAttributeValueLiteral, + systemIdentifier, + paramLiteral, + name, + entityName, + paramEntityName, + attributeValue, + reservedName, // Syntax::ReservedName is added to this + // this is a reserved name preceded by the RNI delimiter + indicatedReservedName = reservedName + Syntax::nNames + }; + enum { nTypes = indicatedReservedName + Syntax::nNames }; + Type type; + Location startLocation; + Text literalText; + Boolean lita; + Owner modelGroupPtr; + Vector nameTokenVector; + StringC token; // name nameToken; with substitution + StringC origToken; + Vector elementVector; +private: + Param(const Param &); // undefined + void operator=(const Param &); // undefined +}; + +class AllowedParams { +public: + AllowedParams(Param::Type, + Param::Type = Param::invalid, + Param::Type = Param::invalid, + Param::Type = Param::invalid, + Param::Type = Param::invalid, + Param::Type = Param::invalid, + Param::Type = Param::invalid, + Param::Type = Param::invalid, + Param::Type = Param::invalid, + Param::Type = Param::invalid); + AllowedParams(const Param::Type *types, int nTypes); + Mode mainMode() const; + Boolean mdc() const; + Boolean rni() const; + Boolean dso() const; + Boolean inclusions() const; + Boolean exclusions() const; + Boolean reservedName(Syntax::ReservedName) const; + Param::Type group() const; + Param::Type nameStart() const; + Param::Type digit() const; + Param::Type nmchar() const; + Param::Type literal() const; + Boolean silent() const; +private: + void init(); + void allow(Param::Type); + PackedBoolean silent_; + PackedBoolean mdc_; + PackedBoolean rni_; + PackedBoolean dso_; + PackedBoolean inclusions_; + PackedBoolean exclusions_; + // invalid, minus, pero + Param::Type extraDelimiter_; + // invalid, nameGroup, nameTokenGroup, modelGroup + Param::Type group_; + // invalid, reservedName, name, entityName, paramEntityName, attributeValue + Param::Type nameStart_; + // invalid, number, attributeValue + Param::Type digit_; + // invalid, attributeValue + Param::Type nmchar_; // LCNMCHAR or UCNMCHAR + // invalid, minimumLiteral, systemIdentifier, paramLiteral, + // (tokenized)attributeValueLiteral + Param::Type literal_; + PackedBoolean reservedNames_[Syntax::nNames]; + Mode mainMode_; // mdMode mdMinusMode mdPeroMode +}; + +class MessageBuilder; + +class AllowedParamsMessageArg : public MessageArg { +public: + AllowedParamsMessageArg(const AllowedParams &allow, + const ConstPtr &syntax); + MessageArg *copy() const; + void append(MessageBuilder &) const; +private: + AllowedParams allow_; + ConstPtr syntax_; +}; + +inline +Mode AllowedParams::mainMode() const +{ + return mainMode_; +} + +inline +Boolean AllowedParams::mdc() const +{ + return mdc_; +} + +inline +Boolean AllowedParams::rni() const +{ + return rni_; +} + +inline +Boolean AllowedParams::dso() const +{ + return dso_; +} + +inline +Boolean AllowedParams::inclusions() const +{ + return inclusions_; +} + +inline +Boolean AllowedParams::exclusions() const +{ + return exclusions_; +} + +inline +Boolean AllowedParams::reservedName(Syntax::ReservedName i) const +{ + return reservedNames_[i]; +} + +inline +Param::Type AllowedParams::group() const +{ + return group_; +} + +inline +Param::Type AllowedParams::nameStart() const +{ + return nameStart_; +} + +inline +Param::Type AllowedParams::digit() const +{ + return digit_; +} + +inline +Param::Type AllowedParams::nmchar() const +{ + return nmchar_; +} + +inline +Param::Type AllowedParams::literal() const +{ + return literal_; +} + +inline +Boolean AllowedParams::silent() const +{ + return silent_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Param_INCLUDED */ diff --git a/lib/Parser.cxx b/lib/Parser.cxx new file mode 100644 index 0000000..aec0dbd --- /dev/null +++ b/lib/Parser.cxx @@ -0,0 +1,262 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "Parser.h" +#include "ParserMessages.h" +#include "constant.h" +#include "Trie.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Parser::Parser(const SgmlParser::Params ¶ms) +: ParserState(params.parent + ? params.parent->parser_->entityManagerPtr() + : params.entityManager, + params.options + ? *params.options + : params.parent->parser_->options(), + paramsSubdocLevel(params), + params.entityType == SgmlParser::Params::dtd + ? declSubsetPhase + : contentPhase), + sysid_(params.sysid) +{ + Parser *parent = 0; + if (params.parent) + parent = params.parent->parser_; + if (params.entityType == SgmlParser::Params::document) { + Sd *sd = new Sd(entityManagerPtr()); + const ParserOptions &opt = options(); + sd->setBooleanFeature(Sd::fDATATAG, opt.datatag); + sd->setBooleanFeature(Sd::fOMITTAG, opt.omittag); + sd->setBooleanFeature(Sd::fRANK, opt.rank); + sd->setShorttag(opt.shorttag); + sd->setBooleanFeature(Sd::fEMPTYNRM, opt.emptynrm); + sd->setNumberFeature(Sd::fSIMPLE, opt.linkSimple); + sd->setBooleanFeature(Sd::fIMPLICIT, opt.linkImplicit); + sd->setNumberFeature(Sd::fEXPLICIT, opt.linkExplicit); + sd->setNumberFeature(Sd::fCONCUR, opt.concur); + sd->setNumberFeature(Sd::fSUBDOC, opt.subdoc); + sd->setBooleanFeature(Sd::fFORMAL, opt.formal); + setSdOverrides(*sd); + PublicId publicId; + CharsetDecl docCharsetDecl; + docCharsetDecl.addSection(publicId); + docCharsetDecl.addRange(0, charMax > 99999999 ? 99999999 : charMax + 1, 0); + sd->setDocCharsetDecl(docCharsetDecl); + setSd(sd); + } + else if (params.sd.isNull()) { + setSd(parent->sdPointer()); + setSyntaxes(parent->prologSyntaxPointer(), + parent->instanceSyntaxPointer()); + } + else { + setSd(params.sd); + setSyntaxes(params.prologSyntax, params.instanceSyntax); + } + + // Make catalog + StringC sysid(params.sysid); + ConstPtr catalog + = entityManager().makeCatalog(sysid, + sd().docCharset(), + messenger()); + if (!catalog.isNull()) + setEntityCatalog(catalog); + else if (parent) + setEntityCatalog(parent->entityCatalogPtr()); + else { + allDone(); + return; + } + + // Set up the input stack. + if (sysid.size() == 0) { + allDone(); + return; + } + Ptr origin; + if (params.origin.isNull()) + origin = InputSourceOrigin::make(); + else + origin = params.origin; + pushInput(entityManager().open(sysid, + sd().docCharset(), + origin.pointer(), + EntityManager::mayRewind|EntityManager::maySetDocCharset, + messenger())); + if (inputLevel() == 0) { + allDone(); + return; + } + switch (params.entityType) { + case SgmlParser::Params::document: + setPhase(initPhase); + break; + case SgmlParser::Params::subdoc: + if (params.subdocInheritActiveLinkTypes && parent) + inheritActiveLinkTypes(*parent); + if (subdocLevel() == sd().subdoc() + 1) + message(ParserMessages::subdocLevel, NumberMessageArg(sd().subdoc())); + if (sd().www()) + setPhase(initPhase); + else { + setPhase(prologPhase); + compilePrologModes(); + } + break; + case SgmlParser::Params::dtd: + compilePrologModes(); + startDtd(params.doctypeName); + setPhase(declSubsetPhase); + break; + } +} + +void Parser::setSdOverrides(Sd &sd) +{ + // FIXME overriding behaviour when using multiple -w options + if (options().typeValid != ParserOptions::sgmlDeclTypeValid) { + sd.setTypeValid(options().typeValid); + sd.setBooleanFeature(Sd::fIMPLYDEFATTLIST, !options().typeValid); + sd.setImplydefElement(options().typeValid + ? Sd::implydefElementNo + : Sd::implydefElementYes); + sd.setBooleanFeature(Sd::fIMPLYDEFENTITY, !options().typeValid); + sd.setBooleanFeature(Sd::fIMPLYDEFNOTATION, !options().typeValid); + } + if (options().fullyDeclared) { + sd.setBooleanFeature(Sd::fIMPLYDEFATTLIST, 0); + sd.setImplydefElement(Sd::implydefElementNo); + sd.setBooleanFeature(Sd::fIMPLYDEFENTITY, 0); + sd.setBooleanFeature(Sd::fIMPLYDEFNOTATION, 0); + } + if (options().fullyTagged) { + sd.setBooleanFeature(Sd::fDATATAG, 0); + sd.setBooleanFeature(Sd::fRANK, 0); + sd.setBooleanFeature(Sd::fOMITTAG, 0); + sd.setBooleanFeature(Sd::fSTARTTAGEMPTY, 0); + sd.setBooleanFeature(Sd::fATTRIBOMITNAME, 0); + } + if (options().amplyTagged) { + sd.setBooleanFeature(Sd::fDATATAG, 0); + sd.setBooleanFeature(Sd::fRANK, 0); + sd.setBooleanFeature(Sd::fOMITTAG, 0); + sd.setBooleanFeature(Sd::fATTRIBOMITNAME, 0); + sd.setImplydefElement(Sd::implydefElementYes); + } + if (options().amplyTaggedAnyother) { + sd.setBooleanFeature(Sd::fDATATAG, 0); + sd.setBooleanFeature(Sd::fRANK, 0); + sd.setBooleanFeature(Sd::fOMITTAG, 0); + sd.setBooleanFeature(Sd::fATTRIBOMITNAME, 0); + sd.setImplydefElement(Sd::implydefElementAnyother); + } + if (options().valid) { + sd.setTypeValid(1); + } + if (options().entityRef) { + sd.setEntityRef(Sd::entityRefNone); + } + if (options().externalEntityRef) { + sd.setEntityRef(Sd::entityRefInternal); + } + if (options().integral) { + sd.setIntegrallyStored(1); + } + if (options().noUnclosedTag) { + sd.setBooleanFeature(Sd::fSTARTTAGUNCLOSED, 0); + sd.setBooleanFeature(Sd::fENDTAGUNCLOSED, 0); + } + if (options().noNet) + sd.setStartTagNetEnable(Sd::netEnableNo); +} + +void Parser::giveUp() +{ + if (subdocLevel() > 0) // FIXME might be subdoc if level == 0 + message(ParserMessages::subdocGiveUp); + else + message(ParserMessages::giveUp); + allDone(); +} + +unsigned Parser::paramsSubdocLevel(const SgmlParser::Params ¶ms) +{ + if (!params.parent) + return 0; + unsigned n = params.parent->parser_->subdocLevel(); + if (params.subdocReferenced) + return n + 1; + else + return n; +} + +Event *Parser::nextEvent() +{ + while (eventQueueEmpty()) { + switch (phase()) { + case noPhase: + return 0; + case initPhase: + doInit(); + break; + case prologPhase: + doProlog(); + break; + case declSubsetPhase: + doDeclSubset(); + break; + case instanceStartPhase: + doInstanceStart(); + break; + case contentPhase: + doContent(); + break; + } + } + return eventQueueGet(); +} + +void Parser::parseAll(EventHandler &handler, + const volatile sig_atomic_t *cancelPtr) +{ + while (!eventQueueEmpty()) + eventQueueGet()->handle(handler); + // FIXME catch exceptions and reset handler. + setHandler(&handler, cancelPtr); + for (;;) { + switch (phase()) { + case noPhase: + unsetHandler(); + return; + case initPhase: + doInit(); + break; + case prologPhase: + doProlog(); + break; + case declSubsetPhase: + doDeclSubset(); + break; + case instanceStartPhase: + doInstanceStart(); + break; + case contentPhase: + doContent(); + break; + } + } +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Parser.h b/lib/Parser.h new file mode 100644 index 0000000..e721000 --- /dev/null +++ b/lib/Parser.h @@ -0,0 +1,417 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Parser_INCLUDED +#define Parser_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "Attribute.h" +#include "Attributed.h" +#include "Boolean.h" +#include "StringC.h" +#include "ElementType.h" +#include "Entity.h" +#include "Event.h" +#include "IList.h" +#include "ISet.h" +#include "Location.h" +#include "Owner.h" +#include "ParserState.h" +#include "Ptr.h" +#include "SgmlParser.h" +#include "StringOf.h" +#include "Undo.h" +#include "Vector.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class AllowedParams; +class Param; +class ExternalId; +class PublicId; +class GroupToken; +class AllowedGroupTokens; +struct GroupConnector; +class AllowedGroupConnectors; +class AllowedSdParams; +class Text; +class AttributeList; +class AttributeDefinition; +class AttributeDefinitionList; +class UnivCharsetDesc; +class CharsetInfo; +class CharsetDecl; +class DeclaredValue; +struct SdBuilder; +struct SdParam; +class Syntax; +class ElementDefinition; +class CharSwitcher; +struct StandardSyntaxSpec; +class Undo; +class Decl; + +class Parser : private ParserState { +public: + Parser(const SgmlParser::Params &); + Event *nextEvent(); + void parseAll(EventHandler &, const volatile sig_atomic_t *cancelPtr); + ParserState::sdPointer; + ParserState::instanceSyntaxPointer; + ParserState::prologSyntaxPointer; + ParserState::activateLinkType; + ParserState::allLinkTypesActivated; + ParserState::entityManager; + ParserState::entityCatalog; + ParserState::baseDtd; + ParserState::options; + ParserState::instantiateDtd; + friend class PiAttspecParser; +private: + Parser(const Parser &); // undefined + void operator=(const Parser &); // undefined + Boolean setStandardSyntax(Syntax &syn, const StandardSyntaxSpec &, + const CharsetInfo &docCharset, + CharSwitcher &, + Boolean www); + Boolean addRefDelimShortref(Syntax &syntax, + const CharsetInfo &syntaxCharset, + const CharsetInfo &docCharset, + CharSwitcher &switcher); + Boolean setRefDelimGeneral(Syntax &syntax, + const CharsetInfo &syntaxCharset, + const CharsetInfo &docCharset, + CharSwitcher &switcher); + void setRefNames(Syntax &syntax, const CharsetInfo &docCharset, Boolean www); + + void giveUp(); + void compileSdModes(); + void compilePrologModes(); + void compileInstanceModes(); + void addNeededShortrefs(Dtd &, const Syntax &); + Boolean shortrefCanPreemptDelim(const StringC &sr, + const StringC &d, + Boolean dIsSr, + const Syntax &); + void compileModes(const Mode *modes, int n, const Dtd *); + void compileNormalMap(); + + void doInit(); + void doProlog(); + void doDeclSubset(); + void doInstanceStart(); + void doContent(); + void extendNameToken(size_t, const MessageType1 &); + void extendNumber(size_t, const MessageType1 &); + void extendHexNumber(); + void extendData(); + void extendS(); + void extendContentS(); + void declSubsetRecover(unsigned startLevel); + void prologRecover(); + void skipDeclaration(unsigned startLevel); + Boolean parseElementDecl(); + Boolean parseAttlistDecl(); + Boolean parseNotationDecl(); + Boolean parseEntityDecl(); + Boolean parseShortrefDecl(); + Boolean parseUsemapDecl(); + Boolean parseUselinkDecl(); + Boolean parseDoctypeDeclStart(); + Boolean parseDoctypeDeclEnd(Boolean fake = 0); + Boolean parseMarkedSectionDeclStart(); + void handleMarkedSectionEnd(); + Boolean parseCommentDecl(); + void emptyCommentDecl(); + Boolean parseExternalId(const AllowedParams &, + const AllowedParams &, + Boolean, + unsigned, + Param &, + ExternalId &); + Boolean parseParam(const AllowedParams &, unsigned, Param &); + Boolean parseMinimumLiteral(Boolean, Text &); + Boolean parseAttributeValueLiteral(Boolean, Text &); + Boolean parseTokenizedAttributeValueLiteral(Boolean, Text &); + Boolean parseSystemIdentifier(Boolean, Text &); + Boolean parseParameterLiteral(Boolean, Text &); + Boolean parseDataTagParameterLiteral(Boolean, Text &); + // flags for parseLiteral() + enum { + literalSingleSpace = 01, + literalDataTag = 02, + literalMinimumData = 04, + // Keep info about delimiters + literalDelimInfo = 010, + // Ignore references in the literal + literalNoProcess = 020, + // Allow numeric character references to non-SGML characters + literalNonSgml = 040 + }; + Boolean parseLiteral(Mode litMode, Mode liteMode, size_t maxLength, + const MessageType1 &tooLongMessage, + unsigned flags, Text &text); + + Boolean parseGroupToken(const AllowedGroupTokens &allow, + unsigned nestingLevel, + unsigned declInputLevel, + unsigned groupInputLevel, + GroupToken >); + Boolean parseGroupConnector(const AllowedGroupConnectors &allow, + unsigned declInputLevel, + unsigned groupInputLevel, + GroupConnector &gc); + Boolean parseGroup(const AllowedGroupTokens &allowToken, + unsigned declInputLevel, + Param &parm); + Boolean parseModelGroup(unsigned nestingLevel, unsigned declInputLevel, + ModelGroup *&, Mode); + Boolean parseNameGroup(unsigned declInputLevel, Param &); + Boolean parseNameTokenGroup(unsigned declInputLevel, Param &); + Boolean parseDataTagGroup(unsigned nestingLevel, unsigned declInputLevel, + GroupToken &); + Boolean parseDataTagTemplateGroup(unsigned nestingLevel, + unsigned declInputLevel, GroupToken &); + + Boolean parseElementNameGroup(unsigned declInputLevel, Param &); + Boolean parseReservedName(const AllowedParams &allow, Param &parm); + Boolean parseIndicatedReservedName(const AllowedParams &allow, Param &parm); + Boolean getReservedName(Syntax::ReservedName *); + Boolean getIndicatedReservedName(Syntax::ReservedName *); + Boolean parseAttributeValueParam(Param &parm); + Boolean parseEntityReference(Boolean isParameter, + int ignoreLevel, + ConstPtr &entity, + Ptr &origin); + ContentToken::OccurrenceIndicator getOccurrenceIndicator(Mode); + Boolean parseComment(Mode); + Boolean parseNamedCharRef(); + Boolean parseNumericCharRef(Boolean isHex, Char &, Location &); + Boolean translateNumericCharRef(Char &ch, Boolean &isSgmlChar); + Boolean parseDeclarationName(Syntax::ReservedName *, Boolean allowAfdr = 0); + void paramInvalidToken(Token, const AllowedParams &); + void groupTokenInvalidToken(Token, const AllowedGroupTokens &); + void groupConnectorInvalidToken(Token, const AllowedGroupConnectors &); + ElementType *lookupCreateElement(const StringC &); + RankStem *lookupCreateRankStem(const StringC &); + Boolean parseExceptions(unsigned declInputLevel, + Ptr &def); + void parsePcdata(); + void parseStartTag(); + ElementType *completeRankStem(const StringC &); + void handleRankedElement(const ElementType *); + void parseEmptyStartTag(); + void acceptPcdata(const Location &); + void acceptStartTag(const ElementType *, StartElementEvent *, + Boolean netEnabling); + void handleBadStartTag(const ElementType *, StartElementEvent *, + Boolean netEnabling); + void undo(IList &); + Boolean tryStartTag(const ElementType *, StartElementEvent *, + Boolean netEnabling, IList &); + void checkExclusion(const ElementType *e); + Boolean tryImplyTag(const Location &, unsigned &, unsigned &, + IList &, IList &); + void pushElementCheck(const ElementType *, StartElementEvent *, + Boolean netEnabling); + void pushElementCheck(const ElementType *, StartElementEvent *, + IList &, IList &); + void queueElementEvents(IList &); + Boolean parseAttributeSpec(Mode mode, + AttributeList &, + Boolean &netEnabling, + Ptr &); + + Boolean handleAttributeNameToken(Text &text, + AttributeList &, + unsigned &specLength); + struct AttributeParameter { + enum Type { + end, + name, + nameToken, + vi, + recoverUnquoted + }; + }; + + Boolean parseAttributeParameter(Mode mode, + Boolean allowVi, + AttributeParameter::Type &result, + Boolean &netEnabling); + void extendUnquotedAttributeValue(); + + Boolean parseAttributeValueSpec(Mode mode, + const StringC &name, + AttributeList &atts, + unsigned &specLength, + Ptr &newAttDefList); + + EndElementEvent *parseEndTag(); + void parseEndTagClose(); + void parseEmptyEndTag(); + void parseNullEndTag(); + void endAllElements(); + void acceptEndTag(EndElementEvent *); + void endTagEmptyElement(const ElementType *, + Boolean netEnabling, + Boolean included, + const Location &startLoc); + void implyCurrentElementEnd(const Location &); + void implyEmptyElementEnd(const ElementType *, Boolean included, const Location &); + void maybeDefineEntity(const Ptr &entity); + Notation *lookupCreateNotation(const StringC &name); + Boolean parseExternalEntity(StringC &name, + Entity::DeclType declType, + unsigned declInputLevel, + Param &parm); + ShortReferenceMap *lookupCreateMap(const StringC &); + StringC prettifyDelim(const StringC &delim); + void handleShortref(int index); + Boolean parseProcessingInstruction(); + Boolean parseAttributed(unsigned declInputLevel, Param &parm, + Vector &attributed, + Boolean &isNotation); + Boolean parseDeclaredValue(unsigned declInputLevel, Boolean isNotation, + Param &parm, Owner &value); + Boolean parseDefaultValue(unsigned declInputLevel, Boolean isNotation, + Param &parm, const StringC &attributeName, + Owner &declaredValue, + Owner &def, + Boolean &anyCurrent); + Boolean reportNonSgmlCharacter(); + void endInstance(); + Boolean implySgmlDecl(); + Boolean scanForSgmlDecl(const CharsetInfo &initCharset); + void findMissingMinimum(const CharsetInfo &charset, ISet &); + Boolean parseSgmlDecl(); + Boolean sdParseSgmlDeclRef(SdBuilder &, SdParam &, ExternalId &); + Boolean sdParseDocumentCharset(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseCapacity(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseScope(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseSyntax(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseExplicitSyntax(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseSyntaxCharset(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseShunchar(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseFunction(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseNaming(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseDelim(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseNames(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseQuantity(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseEntities(SdBuilder &sdBuilder, SdParam &parm); + Boolean sdParseFeatures(SdBuilder &sd, SdParam &parm); + Boolean sdParseAppinfo(SdBuilder &sd, SdParam &parm); + Boolean sdParseSeealso(SdBuilder &sd, SdParam &parm); + void requireWWW(SdBuilder &sdBuilder); + Boolean parseSdParam(const AllowedSdParams &allow, SdParam &); + Boolean parseSdParamLiteral(Boolean lita, String &str); + Boolean parseSdSystemIdentifier(Boolean lita, Text &); + Boolean stringToNumber(const Char *s, size_t length, unsigned long &); + void sdParamConvertToLiteral(SdParam &parm); + void sdParamInvalidToken(Token token, const AllowedSdParams &); + Boolean sdParseCharset(SdBuilder &sdBuilder, SdParam &parm, + Boolean isDocument, + CharsetDecl &, UnivCharsetDesc &); + Boolean sdParseExternalCharset(Sd &, UnivCharsetDesc &desc); + UnivChar charNameToUniv(Sd &sd, const StringC &name); + Boolean translateSyntax(CharSwitcher &switcher, + const CharsetInfo &syntaxCharset, + const CharsetInfo &docCharset, + WideChar syntaxChar, + Char &docChar); + Boolean translateSyntax(SdBuilder &sdBuilder, + WideChar syntaxChar, Char &docChar); + Boolean translateSyntax(SdBuilder &sdBuilder, + const String &syntaxString, + StringC &docString); + Boolean translateSyntaxNoSwitch(SdBuilder &sdBuilder, + WideChar syntaxChar, Char &docChar, + Number &count); + Boolean translateName(SdBuilder &sdBuilder, + const StringC &name, + StringC &str); + void translateRange(SdBuilder &sdBuilder, SyntaxChar start, + SyntaxChar end, ISet &chars); + UnivChar translateUniv(UnivChar univChar, + CharSwitcher &switcher, + const CharsetInfo &syntaxCharset); + Boolean univToDescCheck(const CharsetInfo &charset, UnivChar from, + Char &to); + Boolean univToDescCheck(const CharsetInfo &charset, UnivChar from, + Char &to, WideChar &count); + void translateDocSet(const CharsetInfo &fromCharset, + const CharsetInfo &toCharset, + const ISet &fromSet, + ISet &toSet); + Boolean checkNotFunction(const Syntax &syn, Char c); + Boolean checkGeneralDelim(const Syntax &syn, const StringC &delim); + Boolean checkShortrefDelim(const Syntax &syn, + const CharsetInfo &charset, + const StringC &delim); + Boolean checkNmchars(const ISet &set, const Syntax &syntax); + void intersectCharSets(const ISet &s1, const ISet &s2, + ISet &inter); + Boolean checkSwitches(CharSwitcher &switcher, + const CharsetInfo &syntaxCharset); + Boolean checkSwitchesMarkup(CharSwitcher &switcher); + + const StandardSyntaxSpec *lookupSyntax(const PublicId &id); + Boolean referencePublic(const PublicId &id, PublicId::TextClass, + Boolean &givenError); + void checkIdrefs(); + void checkTaglen(Index tagStartIndex); + void checkSyntaxNamelen(const Syntax &syn); + void checkSyntaxNames(const Syntax &syn); + void checkElementAttribute(const ElementType *e, size_t checkFrom = 0); + void checkDtd(Dtd &dtd); + Boolean maybeStatusKeyword(const Entity &entity); + void reportAmbiguity(const LeafContentToken *from, + const LeafContentToken *to1, + const LeafContentToken *to2, + unsigned ambigAndDepth); + Boolean parseLinktypeDeclStart(); + Boolean parseLinktypeDeclEnd(); + Boolean parseLinkDecl(); + Boolean parseIdlinkDecl(); + Boolean parseLinkSet(Boolean idlink); + void addIdLinkRule(const StringC &id, IdLinkRule &rule); + void addLinkRule(LinkSet *linkSet, + const ElementType *sourceElement, + const ConstPtr &linkRule); + Boolean parseResultElementSpec(unsigned declInputLevel, + Param &parm, + Boolean idlink, + Boolean &implied, + const ElementType *&resultType, + AttributeList &attributes); + LinkSet *lookupCreateLinkSet(const StringC &name); + ElementType *lookupResultElementType(const StringC &name); + void endProlog(); + Boolean parseEntityReferenceNameGroup(Boolean &ignore); + Boolean parseTagNameGroup(Boolean &active, Boolean start); + void parseGroupStartTag(); + void parseGroupEndTag(); + StartElementEvent *doParseStartTag(Boolean &netEnabling); + EndElementEvent *doParseEndTag(); + Boolean skipAttributeSpec(); + Boolean lookingAtStartTag(StringC &gi); + void implyDtd(const StringC &gi); + void findMissingTag(const ElementType *e, Vector &); + unsigned paramsSubdocLevel(const SgmlParser::Params &); + void addCommonAttributes(Dtd &dtd); + Boolean parseAfdrDecl(); + void setSdOverrides(Sd &sd); + StringC sysid_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Parser_INCLUDED */ diff --git a/lib/ParserApp.cxx b/lib/ParserApp.cxx new file mode 100644 index 0000000..7e350b5 --- /dev/null +++ b/lib/ParserApp.cxx @@ -0,0 +1,276 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "ParserApp.h" +#include "ParserAppMessages.h" +#include "MessageArg.h" +#include "Location.h" +#include "macros.h" +#include "sptchar.h" +#include "ArcEngine.h" + +#include +#include +#include + +#ifndef DEFAULT_ERROR_LIMIT +#define DEFAULT_ERROR_LIMIT 200 +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +ParserApp::ParserApp(const char *requiredInternalCode) +: EntityApp(requiredInternalCode), + errorLimit_(DEFAULT_ERROR_LIMIT) +{ + registerOption('a', SP_T("activate"), ParserAppMessages::name, + ParserAppMessages::aHelp); + registerOption('A', SP_T("architecture"), ParserAppMessages::name, + ParserAppMessages::AHelp); + registerOption('E', SP_T("max-errors"), ParserAppMessages::number, + ParserAppMessages::EHelp); + registerOption('e', SP_T("open-entities"), ParserAppMessages::eHelp); + registerOption('g', SP_T("open-elements"), ParserAppMessages::gHelp); + registerOption('n', SP_T("error-numbers"), ParserAppMessages::nHelp); + registerOption('x', SP_T("references"), ParserAppMessages::xHelp); + registerOption('i', SP_T("include"), ParserAppMessages::name, + ParserAppMessages::iHelp); + registerOption('w', SP_T("warning"), ParserAppMessages::type, + ParserAppMessages::wHelp); +} + +void ParserApp::initParser(const StringC &sysid) +{ + SgmlParser::Params params; + params.sysid = sysid; + params.entityManager = entityManager().pointer(); + params.options = &options_; + parser_.init(params); + if (arcNames_.size() > 0) + parser_.activateLinkType(arcNames_[0]); + for (size_t i = 0; i < activeLinkTypes_.size(); i++) + parser_.activateLinkType(convertInput(activeLinkTypes_[i])); + allLinkTypesActivated(); +} + +void ParserApp::allLinkTypesActivated() +{ + parser_.allLinkTypesActivated(); +} + +int ParserApp::processSysid(const StringC &sysid) +{ + initParser(sysid); + ErrorCountEventHandler *eceh = makeEventHandler(); + if (errorLimit_) + eceh->setErrorLimit(errorLimit_); + return generateEvents(eceh); +} + +int ParserApp::generateEvents(ErrorCountEventHandler *eceh) +{ + Owner eh(eceh); + parseAll(parser_, *eh, eceh->cancelPtr()); + unsigned errorCount = eceh->errorCount(); + if (errorLimit_ != 0 && errorCount >= errorLimit_) + message(ParserAppMessages::errorLimitExceeded, + NumberMessageArg(errorLimit_)); + return errorCount > 0; +} + +void ParserApp::parseAll(SgmlParser &parser, + EventHandler &eh, + const volatile sig_atomic_t *cancelPtr) +{ + if (arcNames_.size() > 0) { + SelectOneArcDirector director(arcNames_, eh); + ArcEngine::parseAll(parser, director, director, cancelPtr); + } + else + parser.parseAll(eh, cancelPtr); +} + +void ParserApp::processOption(AppChar opt, const AppChar *arg) +{ + switch (opt) { + case 'a': + // activate link + activeLinkTypes_.push_back(arg); + break; + case 'A': + arcNames_.push_back(convertInput(arg)); + break; + case 'E': + { + AppChar *end; + unsigned long n = tcstoul((AppChar *)arg, &end, 10); + if ((n == 0 && end == arg) + || *end != SP_T('\0') + || (n == ULONG_MAX && errno == ERANGE) + || n > UINT_MAX) + message(ParserAppMessages::badErrorLimit); + else + errorLimit_ = unsigned(n); + } + break; + case 'e': + // describe open entities in error messages + addOption(MessageReporter::openEntities); + break; + case 'g': + // show gis of open elements in error messages + addOption(MessageReporter::openElements); + break; + case 'n': + // show message number in error messages + addOption(MessageReporter::messageNumbers); + break; + case 'x': + // show relevant clauses in error messages + addOption(MessageReporter::clauses); + break; + case 'i': + // pretend that arg is defined as INCLUDE + options_.includes.push_back(convertInput(arg)); + break; + case 'w': + if (!enableWarning(arg)) + message(ParserAppMessages::unknownWarning, + StringMessageArg(convertInput(arg))); + break; + default: + EntityApp::processOption(opt, arg); + break; + } +} + +Boolean ParserApp::enableWarning(const AppChar *s) +{ + enum { groupAll = 01, groupMinTag = 02, groupXML = 04 }; + static struct { + // Explicit qualifier works around CodeWarrior bug + const CmdLineApp::AppChar *name; + PackedBoolean ParserOptions::*ptr; + unsigned char groups; + } table[] = { + { SP_T("mixed"), &ParserOptions::warnMixedContent, groupAll }, + { SP_T("should"), &ParserOptions::warnShould, groupAll }, + { SP_T("duplicate"), &ParserOptions::warnDuplicateEntity, 0 }, + { SP_T("default"), &ParserOptions::warnDefaultEntityReference, groupAll }, + { SP_T("undefined"), &ParserOptions::warnUndefinedElement, groupAll }, + { SP_T("sgmldecl"), &ParserOptions::warnSgmlDecl, groupAll }, + { SP_T("unclosed"), &ParserOptions::noUnclosedTag, groupAll|groupMinTag }, + { SP_T("net"), &ParserOptions::noNet, groupMinTag }, + { SP_T("empty"), &ParserOptions::warnEmptyTag, groupAll|groupMinTag }, + { SP_T("unused-map"), &ParserOptions::warnUnusedMap, groupAll }, + { SP_T("unused-param"), &ParserOptions::warnUnusedParam, groupAll }, + { SP_T("notation-sysid"), &ParserOptions::warnNotationSystemId, 0 }, + { SP_T("inclusion"), &ParserOptions::warnInclusion, groupXML }, + { SP_T("exclusion"), &ParserOptions::warnExclusion, groupXML }, + { SP_T("rcdata-content"), &ParserOptions::warnRcdataContent, groupXML }, + { SP_T("cdata-content"), &ParserOptions::warnCdataContent, groupXML }, + { SP_T("ps-comment"), &ParserOptions::warnPsComment, groupXML }, + { SP_T("attlist-group-decl"), &ParserOptions::warnAttlistGroupDecl, groupXML }, + { SP_T("element-group-decl"), &ParserOptions::warnElementGroupDecl, groupXML }, + { SP_T("pi-entity"), &ParserOptions::warnPiEntity, groupXML }, + { SP_T("internal-sdata-entity"), &ParserOptions::warnInternalSdataEntity, groupXML }, + { SP_T("internal-cdata-entity"), &ParserOptions::warnInternalCdataEntity, groupXML }, + { SP_T("external-sdata-entity"), &ParserOptions::warnExternalSdataEntity, groupXML }, + { SP_T("external-cdata-entity"), &ParserOptions::warnExternalCdataEntity, groupXML }, + { SP_T("bracket-entity"), &ParserOptions::warnBracketEntity, groupXML }, + { SP_T("data-atts"), &ParserOptions::warnDataAttributes, groupXML }, + { SP_T("missing-system-id"), &ParserOptions::warnMissingSystemId, groupXML }, + { SP_T("conref"), &ParserOptions::warnConref, groupXML }, + { SP_T("current"), &ParserOptions::warnCurrent, groupXML }, + { SP_T("nutoken-decl-value"), &ParserOptions::warnNutokenDeclaredValue, groupXML }, + { SP_T("number-decl-value"), &ParserOptions::warnNumberDeclaredValue, groupXML }, + { SP_T("name-decl-value"), &ParserOptions::warnNameDeclaredValue, groupXML }, + { SP_T("named-char-ref"), &ParserOptions::warnNamedCharRef, groupXML }, + { SP_T("refc"), &ParserOptions::warnRefc, groupXML }, + { SP_T("temp-ms"), &ParserOptions::warnTempMarkedSection, groupXML }, + { SP_T("rcdata-ms"), &ParserOptions::warnRcdataMarkedSection, groupXML }, + { SP_T("instance-include-ms"), &ParserOptions::warnInstanceIncludeMarkedSection, groupXML }, + { SP_T("instance-ignore-ms"), &ParserOptions::warnInstanceIgnoreMarkedSection, groupXML }, + { SP_T("and-group"), &ParserOptions::warnAndGroup, groupXML }, + { SP_T("rank"), &ParserOptions::warnRank, groupXML }, + { SP_T("empty-comment-decl"), &ParserOptions::warnEmptyCommentDecl, groupXML }, + { SP_T("att-value-not-literal"), &ParserOptions::warnAttributeValueNotLiteral, groupXML }, + { SP_T("missing-att-name"), &ParserOptions::warnMissingAttributeName, groupXML }, + { SP_T("comment-decl-s"), &ParserOptions::warnCommentDeclS, groupXML }, + { SP_T("comment-decl-multiple"), &ParserOptions::warnCommentDeclMultiple, groupXML }, + { SP_T("missing-status-keyword"), &ParserOptions::warnMissingStatusKeyword, groupXML }, + { SP_T("multiple-status-keyword"), &ParserOptions::warnMultipleStatusKeyword, groupXML }, + { SP_T("instance-param-entity"), &ParserOptions::warnInstanceParamEntityRef, groupXML }, + { SP_T("min-param"), &ParserOptions::warnMinimizationParam, groupXML }, + { SP_T("mixed-content-xml"), &ParserOptions::warnMixedContentRepOrGroup, groupXML }, + { SP_T("name-group-not-or"), &ParserOptions::warnNameGroupNotOr, groupXML }, + { SP_T("pi-missing-name"), &ParserOptions::warnPiMissingName, groupXML }, + { SP_T("instance-status-keyword-s"), &ParserOptions::warnInstanceStatusKeywordSpecS, groupXML }, + { SP_T("external-data-entity-ref"), &ParserOptions::warnExternalDataEntityRef, groupXML }, + { SP_T("att-value-external-entity-ref"), &ParserOptions::warnAttributeValueExternalEntityRef, groupXML }, + { SP_T("data-delim"), &ParserOptions::warnDataDelim, groupXML }, + { SP_T("explicit-sgml-decl"), &ParserOptions::warnExplicitSgmlDecl, groupXML }, + { SP_T("internal-subset-ms"), &ParserOptions::warnInternalSubsetMarkedSection, groupXML }, + { SP_T("default-entity"), &ParserOptions::warnDefaultEntityDecl, groupXML }, + { SP_T("non-sgml-char-ref"), &ParserOptions::warnNonSgmlCharRef, groupXML }, + { SP_T("internal-subset-ps-param-entity"), &ParserOptions::warnInternalSubsetPsParamEntityRef, groupXML }, + { SP_T("internal-subset-ts-param-entity"), &ParserOptions::warnInternalSubsetTsParamEntityRef, groupXML }, + { SP_T("internal-subset-literal-param-entity"), &ParserOptions::warnInternalSubsetLiteralParamEntityRef, groupXML }, + { SP_T("immediate-recursion"), &ParserOptions::warnImmediateRecursion, 0 }, + { SP_T("fully-declared"), &ParserOptions::fullyDeclared, 0 }, + { SP_T("fully-tagged"), &ParserOptions::fullyTagged, 0 }, + { SP_T("amply-tagged-recursive"), &ParserOptions::amplyTagged, 0 }, + { SP_T("amply-tagged"), &ParserOptions::amplyTaggedAnyother, 0 }, + { SP_T("type-valid"), &ParserOptions::valid, 0 }, + { SP_T("entity-ref"), &ParserOptions::entityRef, 0 }, + { SP_T("external-entity-ref"), &ParserOptions::externalEntityRef, 0 }, + { SP_T("integral"), &ParserOptions::integral, 0 }, + { SP_T("idref"), &ParserOptions::errorIdref, 0 }, + { SP_T("significant"), &ParserOptions::errorSignificant, 0 }, + { SP_T("afdr"), &ParserOptions::errorAfdr, 0 }, + }; + static struct { + const CmdLineApp::AppChar *name; + unsigned char flag; + } groupTable[] = { + { SP_T("all"), groupAll }, + { SP_T("min-tag"), groupMinTag }, + { SP_T("xml"), groupXML }, + }; + PackedBoolean val = 1; + if (tcsncmp(s, SP_T("no-"), 3) == 0) { + s += 3; + val = 0; + } + for (size_t i = 0; i < SIZEOF(groupTable); i++) + if (tcscmp(s, groupTable[i].name) == 0) { + for (size_t j = 0; j < SIZEOF(table); j++) + if (table[j].groups & groupTable[i].flag) { + // Use parentheses to work around Watcom 10.0a bug. + (options_.*(table[j].ptr)) = val; + } + return 1; + } + for (size_t i = 0; i < SIZEOF(table); i++) + if (tcscmp(s, table[i].name) == 0) { + // Use parentheses to work around Watcom 10.0a bug. + (options_.*(table[i].ptr)) = val; + return 1; + } + if (tcscmp(s, SP_T("valid")) == 0) { + options_.typeValid = val; + return 1; + } + return 0; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ParserAppMessages.h b/lib/ParserAppMessages.h new file mode 100644 index 0000000..4217caf --- /dev/null +++ b/lib/ParserAppMessages.h @@ -0,0 +1,159 @@ +// This file was automatically generated from ParserAppMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct ParserAppMessages { + // 4200 + static const MessageType1 unknownWarning; + // 4201 + static const MessageType0 badErrorLimit; + // 4202 + static const MessageType1 errorLimitExceeded; + // 4203 + static const MessageType1 aHelp; + // 4204 + static const MessageType1 AHelp; + // 4205 + static const MessageType1 EHelp; + // 4206 + static const MessageType1 eHelp; + // 4207 + static const MessageType1 gHelp; + // 4208 + static const MessageType1 nHelp; + // 4209 + static const MessageType1 xHelp; + // 4210 + static const MessageType1 iHelp; + // 4211 + static const MessageType1 wHelp; + // 4212 + static const MessageFragment type; + // 4213 + static const MessageFragment name; + // 4214 + static const MessageFragment number; +}; +const MessageType1 ParserAppMessages::unknownWarning( +MessageType::error, +&libModule, +4200 +#ifndef SP_NO_MESSAGE_TEXT +,"unknown warning type %1" +#endif +); +const MessageType0 ParserAppMessages::badErrorLimit( +MessageType::error, +&libModule, +4201 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid error limit" +#endif +); +const MessageType1 ParserAppMessages::errorLimitExceeded( +MessageType::info, +&libModule, +4202 +#ifndef SP_NO_MESSAGE_TEXT +,"maximum number of errors (%1) reached; change with -E option" +#endif +); +const MessageType1 ParserAppMessages::aHelp( +MessageType::info, +&libModule, +4203 +#ifndef SP_NO_MESSAGE_TEXT +,"Make doctype or linktype %1 active." +#endif +); +const MessageType1 ParserAppMessages::AHelp( +MessageType::info, +&libModule, +4204 +#ifndef SP_NO_MESSAGE_TEXT +,"Parse wrt. architecture %1." +#endif +); +const MessageType1 ParserAppMessages::EHelp( +MessageType::info, +&libModule, +4205 +#ifndef SP_NO_MESSAGE_TEXT +,"Give up after %1 errors." +#endif +); +const MessageType1 ParserAppMessages::eHelp( +MessageType::info, +&libModule, +4206 +#ifndef SP_NO_MESSAGE_TEXT +,"Show open entities in error messages." +#endif +); +const MessageType1 ParserAppMessages::gHelp( +MessageType::info, +&libModule, +4207 +#ifndef SP_NO_MESSAGE_TEXT +,"Show open elements in error messages." +#endif +); +const MessageType1 ParserAppMessages::nHelp( +MessageType::info, +&libModule, +4208 +#ifndef SP_NO_MESSAGE_TEXT +,"Show error numbers in error messages." +#endif +); +const MessageType1 ParserAppMessages::xHelp( +MessageType::info, +&libModule, +4209 +#ifndef SP_NO_MESSAGE_TEXT +,"Show references in error messages." +#endif +); +const MessageType1 ParserAppMessages::iHelp( +MessageType::info, +&libModule, +4210 +#ifndef SP_NO_MESSAGE_TEXT +,"Define parameter entity %1 as \"INCLUDE\"." +#endif +); +const MessageType1 ParserAppMessages::wHelp( +MessageType::info, +&libModule, +4211 +#ifndef SP_NO_MESSAGE_TEXT +,"Enable warning %1." +#endif +); +const MessageFragment ParserAppMessages::type( +&libModule, +4212 +#ifndef SP_NO_MESSAGE_TEXT +,"TYPE" +#endif +); +const MessageFragment ParserAppMessages::name( +&libModule, +4213 +#ifndef SP_NO_MESSAGE_TEXT +,"NAME" +#endif +); +const MessageFragment ParserAppMessages::number( +&libModule, +4214 +#ifndef SP_NO_MESSAGE_TEXT +,"NUMBER" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ParserAppMessages.msg b/lib/ParserAppMessages.msg new file mode 100644 index 0000000..6b03ee8 --- /dev/null +++ b/lib/ParserAppMessages.msg @@ -0,0 +1,21 @@ +# Copyright (c) 1994, 1995 James Clark +# See the file COPYING for copying permission. + +# ParserApp message definitions + +=4200 +E1+unknownWarning++unknown warning type %1 +E0+badErrorLimit++invalid error limit +I1+errorLimitExceeded++maximum number of errors (%1) reached; change with -E option +I1+aHelp++Make doctype or linktype %1 active. +I1+AHelp++Parse wrt. architecture %1. +I1+EHelp++Give up after %1 errors. +I1+eHelp++Show open entities in error messages. +I1+gHelp++Show open elements in error messages. +I1+nHelp++Show error numbers in error messages. +I1+xHelp++Show references in error messages. +I1+iHelp++Define parameter entity %1 as "INCLUDE". +I1+wHelp++Enable warning %1. ++type++TYPE ++name++NAME ++number++NUMBER diff --git a/lib/ParserAppMessages.rc b/lib/ParserAppMessages.rc new file mode 100644 index 0000000..a0337dc --- /dev/null +++ b/lib/ParserAppMessages.rc @@ -0,0 +1,18 @@ +STRINGTABLE +BEGIN + 4200, "unknown warning type %1" + 4201, "invalid error limit" + 4202, "maximum number of errors (%1) reached; change with -E option" + 4203, "Make doctype or linktype %1 active." + 4204, "Parse wrt. architecture %1." + 4205, "Give up after %1 errors." + 4206, "Show open entities in error messages." + 4207, "Show open elements in error messages." + 4208, "Show error numbers in error messages." + 4209, "Show references in error messages." + 4210, "Define parameter entity %1 as ""INCLUDE""." + 4211, "Enable warning %1." + 4212, "TYPE" + 4213, "NAME" + 4214, "NUMBER" +END diff --git a/lib/ParserEventGeneratorKit.cxx b/lib/ParserEventGeneratorKit.cxx new file mode 100644 index 0000000..a2e8c1b --- /dev/null +++ b/lib/ParserEventGeneratorKit.cxx @@ -0,0 +1,216 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "Boolean.h" +#include "ParserApp.h" +#include "macros.h" +#include "SGMLApplication.h" +#include "ParserEventGeneratorKit.h" +#include "GenericEventHandler.h" + +class ParserEventGeneratorKitImpl : public SP_NAMESPACE_SCOPE ParserApp { +public: + SP_NAMESPACE_SCOPE ParserOptions &options() { return options_; } + bool generalEntities; + unsigned refCount; +private: + SP_NAMESPACE_SCOPE ErrorCountEventHandler *makeEventHandler() { return 0; } +}; + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class ParserEventGenerator : public EventGenerator { +public: + ParserEventGenerator(SgmlParser &, + bool generalEntities, + ParserEventGeneratorKitImpl *kit_); + ParserEventGenerator(const SgmlParser &, + const SGMLApplication::Char *, + size_t n, + bool generalEntities, + bool messagesInhibited, + ParserEventGeneratorKitImpl *kit_); + ~ParserEventGenerator(); + unsigned run(SGMLApplication &); + void inhibitMessages(bool); + void halt(); + EventGenerator * + makeSubdocEventGenerator(const SGMLApplication::Char *systemId, + size_t systemIdLength); +private: + SgmlParser parser_; + bool generalEntities_; + bool messagesInhibited_; + sig_atomic_t cancel_; + ParserEventGeneratorKitImpl *kit_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +ParserEventGeneratorKit::ParserEventGeneratorKit() +{ + impl_ = new ParserEventGeneratorKitImpl; + impl_->refCount = 1; + impl_->generalEntities = 0; +} + +ParserEventGeneratorKit::~ParserEventGeneratorKit() +{ + impl_->refCount -= 1; + if (impl_->refCount == 0) + delete impl_; +} + +EventGenerator * +ParserEventGeneratorKit::makeEventGenerator(int nFiles, + SP_NAMESPACE_SCOPE ParserApp::AppChar *const *files) +{ + SP_NAMESPACE_SCOPE StringC sysid; + if (impl_->makeSystemId(nFiles, files, sysid)) + impl_->initParser(sysid); + return new SP_NAMESPACE_SCOPE ParserEventGenerator(impl_->parser(), + impl_->generalEntities, + impl_); +} + +void ParserEventGeneratorKit::setProgramName(const SP_NAMESPACE_SCOPE ParserApp::AppChar *prog) +{ + if (prog) + impl_->setProgramName(impl_->convertInput(prog)); +} + +void ParserEventGeneratorKit::setOption(Option opt) +{ + switch (opt) { + case showOpenEntities: + impl_->processOption('e', 0); + break; + case showOpenElements: + impl_->processOption('g', 0); + break; + case outputCommentDecls: + impl_->options().eventsWanted.addCommentDecls(); + break; + case outputMarkedSections: + impl_->options().eventsWanted.addMarkedSections(); + break; + case outputGeneralEntities: + impl_->generalEntities = 1; + break; + case mapCatalogDocument: + impl_->processOption('C', 0); + break; + case restrictFileReading: + impl_->processOption('R', 0); + break; + case showErrorNumbers: + impl_->processOption('n', 0); + break; + } +} + +void ParserEventGeneratorKit::setOption(OptionWithArg opt, + const SP_NAMESPACE_SCOPE ParserApp::AppChar *arg) +{ + switch (opt) { + case addCatalog: + impl_->processOption('c', arg); + break; + case includeParam: + impl_->processOption('i', arg); + break; + case enableWarning: + impl_->processOption('w', arg); + break; + case addSearchDir: + impl_->processOption('D', arg); + break; + case activateLink: + impl_->processOption('a', arg); + break; + case architecture: + impl_->processOption('A', arg); + break; + } +} + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +ParserEventGenerator::ParserEventGenerator(SgmlParser &parser, + bool generalEntities, + ParserEventGeneratorKitImpl *kit) +: generalEntities_(generalEntities), + messagesInhibited_(0), + cancel_(0), + kit_(kit) +{ + parser_.swap(parser); + kit_->refCount += 1; +} + +ParserEventGenerator::ParserEventGenerator(const SgmlParser &parser, + const SGMLApplication::Char *s, + size_t n, + bool generalEntities, + bool messagesInhibited, + ParserEventGeneratorKitImpl *kit) +: generalEntities_(generalEntities), + messagesInhibited_(messagesInhibited), + cancel_(0), + kit_(kit) +{ + kit_->refCount += 1; + SgmlParser::Params params; + params.parent = &parser; + params.sysid.assign(s, n); + params.entityType = SgmlParser::Params::subdoc; + parser_.init(params); +} + +void ParserEventGenerator::halt() +{ + cancel_ = 1; +} + +ParserEventGenerator::~ParserEventGenerator() +{ + kit_->refCount -= 1; + if (kit_->refCount == 0) + delete kit_; +} + +unsigned ParserEventGenerator::run(SGMLApplication &app) +{ + MsgGenericEventHandler handler(app, generalEntities_, + *kit_, &messagesInhibited_); + kit_->parseAll(parser_, handler, &cancel_); + return handler.errorCount(); +} + +void ParserEventGenerator::inhibitMessages(bool b) +{ + messagesInhibited_ = b; +} + +EventGenerator * +ParserEventGenerator::makeSubdocEventGenerator(const SGMLApplication::Char *s, + size_t n) +{ + return new ParserEventGenerator(parser_, s, n, generalEntities_, + messagesInhibited_, kit_); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ParserMessages.cxx b/lib/ParserMessages.cxx new file mode 100644 index 0000000..f17c58c --- /dev/null +++ b/lib/ParserMessages.cxx @@ -0,0 +1,3964 @@ +// This file was automatically generated from ParserMessages.msg by msggen.pl. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "ParserMessages.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const MessageType1 ParserMessages::nameLength( +MessageType::quantityError, +&libModule, +0 +#ifndef SP_NO_MESSAGE_TEXT +,"length of name must not exceed NAMELEN (%1)" +,"ISO 8879:1986 9.3.1" +#endif +); +const MessageType1 ParserMessages::parameterEntityNameLength( +MessageType::quantityError, +&libModule, +1 +#ifndef SP_NO_MESSAGE_TEXT +,"length of parameter entity name must not exceed NAMELEN less the length of the PERO delimiter (%1)" +,"ISO 8879:1986 10.5.1.1" +#endif +); +const MessageType1 ParserMessages::numberLength( +MessageType::quantityError, +&libModule, +2 +#ifndef SP_NO_MESSAGE_TEXT +,"length of number must not exceed NAMELEN (%1)" +,"ISO 8879:1986 9.3.1" +#endif +); +const MessageType1 ParserMessages::attributeValueLength( +MessageType::quantityError, +&libModule, +3 +#ifndef SP_NO_MESSAGE_TEXT +,"length of attribute value must not exceed LITLEN less NORMSEP (%1)" +,"ISO 8879:1986 7.9.4.5" +#endif +); +const MessageType0 ParserMessages::peroGrpoProlog( +MessageType::error, +&libModule, +4 +#ifndef SP_NO_MESSAGE_TEXT +,"a name group is not allowed in a parameter entity reference in the prolog" +,"ISO 8879:1986 9.4.4p3" +#endif +); +const MessageType0 ParserMessages::groupLevel( +MessageType::error, +&libModule, +5 +#ifndef SP_NO_MESSAGE_TEXT +,"an entity end in a token separator must terminate an entity referenced in the same group" +,"ISO 8879:1986 10.1.3p8" +#endif +); +const MessageType2 ParserMessages::groupCharacter( +MessageType::error, +&libModule, +6 +#ifndef SP_NO_MESSAGE_TEXT +,"character %1 invalid: only %2 and token separators allowed" +#endif +); +const MessageType0 ParserMessages::psRequired( +MessageType::error, +&libModule, +7 +#ifndef SP_NO_MESSAGE_TEXT +,"a parameter separator is required after a number that is followed by a name start character" +,"ISO 8879:1986 10.1.1p4" +#endif +); +const MessageType2 ParserMessages::markupDeclarationCharacter( +MessageType::error, +&libModule, +8 +#ifndef SP_NO_MESSAGE_TEXT +,"character %1 invalid: only %2 and parameter separators allowed" +#endif +); +const MessageType0 ParserMessages::declarationLevel( +MessageType::error, +&libModule, +9 +#ifndef SP_NO_MESSAGE_TEXT +,"an entity end in a parameter separator must terminate an entity referenced in the same declaration" +,"ISO 8879:1986 10.1.1p3" +#endif +); +const MessageType0 ParserMessages::groupEntityEnd( +MessageType::error, +&libModule, +10 +#ifndef SP_NO_MESSAGE_TEXT +,"an entity end is not allowed in a token separator that does not follow a token" +,"ISO 8879:1986 10.1.3p8" +#endif +); +const MessageType1 ParserMessages::invalidToken( +MessageType::error, +&libModule, +11 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a valid token here" +#endif +); +const MessageType0 ParserMessages::groupEntityReference( +MessageType::error, +&libModule, +12 +#ifndef SP_NO_MESSAGE_TEXT +,"a parameter entity reference can only occur in a group where a token could occur" +,"ISO 8879:1986 10.1.3p7" +#endif +); +const MessageType1 ParserMessages::duplicateGroupToken( +MessageType::error, +&libModule, +13 +#ifndef SP_NO_MESSAGE_TEXT +,"token %1 has already occurred in this group" +,"ISO 8879:1986 10.1.3p6" +#endif +); +const MessageType1 ParserMessages::groupCount( +MessageType::quantityError, +&libModule, +14 +#ifndef SP_NO_MESSAGE_TEXT +,"the number of tokens in a group must not exceed GRPCNT (%1)" +,"ISO 8879:1986 10.1.3.1" +#endif +); +const MessageType0 ParserMessages::literalLevel( +MessageType::error, +&libModule, +15 +#ifndef SP_NO_MESSAGE_TEXT +,"an entity end in a literal must terminate an entity referenced in the same literal" +,"ISO 8879:1986 10.1.2p6 9.1.1p3" +#endif +); +const MessageType1 ParserMessages::literalMinimumData( +MessageType::error, +&libModule, +16 +#ifndef SP_NO_MESSAGE_TEXT +,"character %1 invalid: only minimum data characters allowed" +,"ISO 8879:1986 10.1.7p3" +#endif +); +const MessageType0 ParserMessages::dataTagPatternNonSgml( +MessageType::error, +&libModule, +18 +#ifndef SP_NO_MESSAGE_TEXT +,"a parameter literal in a data tag pattern must not contain a numeric character reference to a non-SGML character" +,"ISO 8879:1986 11.2.4.4p9" +#endif +); +const MessageType0 ParserMessages::dataTagPatternFunction( +MessageType::error, +&libModule, +19 +#ifndef SP_NO_MESSAGE_TEXT +,"a parameter literal in a data tag pattern must not contain a numeric character reference to a function character" +,"ISO 8879:1986 11.2.4.4p9" +#endif +); +const MessageType0 ParserMessages::eroGrpoStartTag( +MessageType::error, +&libModule, +20 +#ifndef SP_NO_MESSAGE_TEXT +,"a name group is not allowed in a general entity reference in a start tag" +,"ISO 8879:1986 9.4.4p3" +#endif +); +const MessageType0 ParserMessages::eroGrpoProlog( +MessageType::error, +&libModule, +21 +#ifndef SP_NO_MESSAGE_TEXT +,"a name group is not allowed in a general entity reference in the prolog" +,"ISO 8879:1986 9.4.4p3" +#endif +); +const MessageType1 ParserMessages::functionName( +MessageType::error, +&libModule, +22 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a function name" +,"ISO 8879:1986 9.5p4" +#endif +); +const MessageType1 ParserMessages::characterNumber( +MessageType::error, +&libModule, +23 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a character number in the document character set" +,"ISO 8879:1986 4.36" +#endif +); +const MessageType1 ParserMessages::parameterEntityUndefined( +MessageType::error, +&libModule, +24 +#ifndef SP_NO_MESSAGE_TEXT +,"parameter entity %1 not defined" +,"ISO 8879:1986 9.4.4.1p2" +#endif +); +const MessageType1 ParserMessages::entityUndefined( +MessageType::error, +&libModule, +25 +#ifndef SP_NO_MESSAGE_TEXT +,"general entity %1 not defined and no default entity" +,"ISO 8879:1986 9.4.4.1p2" +#endif +); +const MessageType0 ParserMessages::rniNameStart( +MessageType::error, +&libModule, +26 +#ifndef SP_NO_MESSAGE_TEXT +,"RNI delimiter must be followed by name start character" +#endif +); +const MessageType0L ParserMessages::commentEntityEnd( +MessageType::error, +&libModule, +28 +#ifndef SP_NO_MESSAGE_TEXT +,"unterminated comment: found end of entity inside comment" +,"ISO 8879:1986 10.3p2" +,"comment started here" +#endif +); +const MessageType0 ParserMessages::mixedConnectors( +MessageType::warning, +&libModule, +30 +#ifndef SP_NO_MESSAGE_TEXT +,"only one type of connector should be used in a single group" +,"ISO 8879:1986 10.1.3p4" +#endif +); +const MessageType1 ParserMessages::noSuchReservedName( +MessageType::error, +&libModule, +31 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a reserved name" +#endif +); +const MessageType1 ParserMessages::invalidReservedName( +MessageType::error, +&libModule, +32 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not allowed as a reserved name here" +#endif +); +const MessageType1 ParserMessages::minimumLiteralLength( +MessageType::quantityError, +&libModule, +33 +#ifndef SP_NO_MESSAGE_TEXT +,"length of interpreted minimum literal must not exceed reference LITLEN (%1)" +,"ISO 8879:1986 10.1.7.1" +#endif +); +const MessageType1 ParserMessages::tokenizedAttributeValueLength( +MessageType::quantityError, +&libModule, +34 +#ifndef SP_NO_MESSAGE_TEXT +,"length of tokenized attribute value must not exceed LITLEN less NORMSEP (%1)" +,"ISO 8879:1986 7.9.4.5 7.9.3p5" +#endif +); +const MessageType1 ParserMessages::systemIdentifierLength( +MessageType::quantityError, +&libModule, +35 +#ifndef SP_NO_MESSAGE_TEXT +,"length of system identifier must not exceed LITLEN (%1)" +,"ISO 8879:1986 10.1.6.1" +#endif +); +const MessageType1 ParserMessages::parameterLiteralLength( +MessageType::quantityError, +&libModule, +36 +#ifndef SP_NO_MESSAGE_TEXT +,"length of interpreted parameter literal must not exceed LITLEN (%1)" +,"ISO 8879:1986 10.1.2.1" +#endif +); +const MessageType1 ParserMessages::dataTagPatternLiteralLength( +MessageType::quantityError, +&libModule, +37 +#ifndef SP_NO_MESSAGE_TEXT +,"length of interpreted parameter literal in data tag pattern must not exceed DTEMPLEN (%1)" +,"ISO 8879:1986 11.2.4.5p3" +#endif +); +const MessageType0 ParserMessages::literalClosingDelimiter( +MessageType::error, +&libModule, +38 +#ifndef SP_NO_MESSAGE_TEXT +,"literal is missing closing delimiter" +#endif +); +const MessageType2 ParserMessages::paramInvalidToken( +MessageType::error, +&libModule, +39 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 invalid: only %2 and parameter separators are allowed" +#endif +); +const MessageType2 ParserMessages::groupTokenInvalidToken( +MessageType::error, +&libModule, +40 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 invalid: only %2 and token separators are allowed" +#endif +); +const MessageType2 ParserMessages::connectorInvalidToken( +MessageType::error, +&libModule, +41 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 invalid: only %2 and token separators are allowed" +#endif +); +const MessageType1 ParserMessages::noSuchDeclarationType( +MessageType::error, +&libModule, +42 +#ifndef SP_NO_MESSAGE_TEXT +,"unknown declaration type %1" +#endif +); +const MessageType1 ParserMessages::dtdSubsetDeclaration( +MessageType::error, +&libModule, +43 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 declaration not allowed in DTD subset" +#endif +); +const MessageType1 ParserMessages::declSubsetCharacter( +MessageType::error, +&libModule, +44 +#ifndef SP_NO_MESSAGE_TEXT +,"character %1 not allowed in declaration subset" +#endif +); +const MessageType0 ParserMessages::documentEndDtdSubset( +MessageType::error, +&libModule, +45 +#ifndef SP_NO_MESSAGE_TEXT +,"end of document in DTD subset" +#endif +); +const MessageType1 ParserMessages::prologCharacter( +MessageType::error, +&libModule, +46 +#ifndef SP_NO_MESSAGE_TEXT +,"character %1 not allowed in prolog" +#endif +); +const MessageType0 ParserMessages::documentEndProlog( +MessageType::error, +&libModule, +47 +#ifndef SP_NO_MESSAGE_TEXT +,"end of document in prolog" +#endif +); +const MessageType1 ParserMessages::prologDeclaration( +MessageType::error, +&libModule, +48 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 declaration not allowed in prolog" +#endif +); +const MessageType1 ParserMessages::rankStemGenericIdentifier( +MessageType::error, +&libModule, +49 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 used both a rank stem and generic identifier" +,"ISO 8879:1986 11.2.1p2" +#endif +); +const MessageType0 ParserMessages::missingTagMinimization( +MessageType::error, +&libModule, +50 +#ifndef SP_NO_MESSAGE_TEXT +,"omitted tag minimization parameter can be omitted only if OMITTAG NO is specified" +,"ISO 8879:1986 11.2p3" +#endif +); +const MessageType1 ParserMessages::duplicateElementDefinition( +MessageType::error, +&libModule, +51 +#ifndef SP_NO_MESSAGE_TEXT +,"element type %1 already defined" +,"ISO 8879:1986 11.2p2" +#endif +); +const MessageType0 ParserMessages::entityApplicableDtd( +MessageType::error, +&libModule, +52 +#ifndef SP_NO_MESSAGE_TEXT +,"entity reference with no applicable DTD" +#endif +); +const MessageType1L ParserMessages::commentDeclInvalidToken( +MessageType::error, +&libModule, +53 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid comment declaration: found %1 outside comment but inside comment declaration" +,"ISO 8879:1986 10.3p1" +,"comment declaration started here" +#endif +); +const MessageType1 ParserMessages::instanceDeclaration( +MessageType::error, +&libModule, +55 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 declaration not allowed in instance" +#endif +); +const MessageType0 ParserMessages::contentNonSgml( +MessageType::error, +&libModule, +56 +#ifndef SP_NO_MESSAGE_TEXT +,"non-SGML character not allowed in content" +#endif +); +const MessageType1 ParserMessages::noCurrentRank( +MessageType::error, +&libModule, +57 +#ifndef SP_NO_MESSAGE_TEXT +,"no current rank for rank stem %1" +#endif +); +const MessageType1 ParserMessages::duplicateAttlistNotation( +MessageType::error, +&libModule, +58 +#ifndef SP_NO_MESSAGE_TEXT +,"duplicate attribute definition list for notation %1" +,"ISO 8879:1986 11.4.1.1p4" +#endif +); +const MessageType1 ParserMessages::duplicateAttlistElement( +MessageType::error, +&libModule, +59 +#ifndef SP_NO_MESSAGE_TEXT +,"duplicate attribute definition list for element %1" +,"ISO 8879:1986 11.3p4" +#endif +); +const MessageType0 ParserMessages::endTagEntityEnd( +MessageType::error, +&libModule, +60 +#ifndef SP_NO_MESSAGE_TEXT +,"entity end not allowed in end tag" +#endif +); +const MessageType1 ParserMessages::endTagCharacter( +MessageType::error, +&libModule, +61 +#ifndef SP_NO_MESSAGE_TEXT +,"character %1 not allowed in end tag" +#endif +); +const MessageType1 ParserMessages::endTagInvalidToken( +MessageType::error, +&libModule, +62 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 invalid: only S separators and TAGC allowed here" +#endif +); +const MessageType0 ParserMessages::pcdataNotAllowed( +MessageType::error, +&libModule, +63 +#ifndef SP_NO_MESSAGE_TEXT +,"character data is not allowed here" +#endif +); +const MessageType1 ParserMessages::elementNotAllowed( +MessageType::error, +&libModule, +64 +#ifndef SP_NO_MESSAGE_TEXT +,"document type does not allow element %1 here" +#endif +); +const MessageType2 ParserMessages::missingElementMultiple( +MessageType::error, +&libModule, +65 +#ifndef SP_NO_MESSAGE_TEXT +,"document type does not allow element %1 here; missing one of %2 start-tag" +#endif +); +const MessageType2 ParserMessages::missingElementInferred( +MessageType::error, +&libModule, +66 +#ifndef SP_NO_MESSAGE_TEXT +,"document type does not allow element %1 here; assuming missing %2 start-tag" +#endif +); +const MessageType1 ParserMessages::startTagEmptyElement( +MessageType::error, +&libModule, +67 +#ifndef SP_NO_MESSAGE_TEXT +,"no start tag specified for implied empty element %1" +,"ISO 8879:1986 7.3.1.1p3" +#endif +); +const MessageType1L ParserMessages::omitEndTagDeclare( +MessageType::error, +&libModule, +68 +#ifndef SP_NO_MESSAGE_TEXT +,"end tag for %1 omitted, but its declaration does not permit this" +,0 +,"start tag was here" +#endif +); +const MessageType1L ParserMessages::omitEndTagOmittag( +MessageType::error, +&libModule, +70 +#ifndef SP_NO_MESSAGE_TEXT +,"end tag for %1 omitted, but OMITTAG NO was specified" +,"ISO 8879:1986 7.3.1p1" +,"start tag was here" +#endif +); +const MessageType1 ParserMessages::omitStartTagDeclaredContent( +MessageType::error, +&libModule, +72 +#ifndef SP_NO_MESSAGE_TEXT +,"start tag omitted for element %1 with declared content" +,"ISO 8879:1986 7.3.1.1p2" +#endif +); +const MessageType1 ParserMessages::elementEndTagNotFinished( +MessageType::error, +&libModule, +73 +#ifndef SP_NO_MESSAGE_TEXT +,"end tag for %1 which is not finished" +#endif +); +const MessageType1 ParserMessages::omitStartTagDeclare( +MessageType::error, +&libModule, +74 +#ifndef SP_NO_MESSAGE_TEXT +,"start tag for %1 omitted, but its declaration does not permit this" +#endif +); +const MessageType1 ParserMessages::taglvlOpenElements( +MessageType::quantityError, +&libModule, +75 +#ifndef SP_NO_MESSAGE_TEXT +,"number of open elements exceeds TAGLVL (%1)" +#endif +); +const MessageType1 ParserMessages::undefinedElement( +MessageType::error, +&libModule, +76 +#ifndef SP_NO_MESSAGE_TEXT +,"element %1 undefined" +#endif +); +const MessageType0 ParserMessages::emptyEndTagNoOpenElements( +MessageType::error, +&libModule, +77 +#ifndef SP_NO_MESSAGE_TEXT +,"empty end tag but no open elements" +#endif +); +const MessageType1 ParserMessages::elementNotFinished( +MessageType::error, +&libModule, +78 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 not finished but containing element ended" +#endif +); +const MessageType1 ParserMessages::elementNotOpen( +MessageType::error, +&libModule, +79 +#ifndef SP_NO_MESSAGE_TEXT +,"end tag for element %1 which is not open" +#endif +); +const MessageType1 ParserMessages::internalParameterDataEntity( +MessageType::error, +&libModule, +80 +#ifndef SP_NO_MESSAGE_TEXT +,"internal parameter entity %1 cannot be CDATA or SDATA" +#endif +); +const MessageType1 ParserMessages::attributeSpecCharacter( +MessageType::error, +&libModule, +81 +#ifndef SP_NO_MESSAGE_TEXT +,"character %1 not allowed in attribute specification list" +#endif +); +const MessageType0 ParserMessages::unquotedAttributeValue( +MessageType::error, +&libModule, +82 +#ifndef SP_NO_MESSAGE_TEXT +,"an attribute value must be a literal unless it contains only name characters" +#endif +); +const MessageType0 ParserMessages::attributeSpecEntityEnd( +MessageType::error, +&libModule, +83 +#ifndef SP_NO_MESSAGE_TEXT +,"entity end not allowed in attribute specification list except in attribute value literal" +#endif +); +const MessageType1 ParserMessages::externalParameterDataSubdocEntity( +MessageType::error, +&libModule, +84 +#ifndef SP_NO_MESSAGE_TEXT +,"external parameter entity %1 cannot be CDATA, SDATA, NDATA or SUBDOC" +#endif +); +const MessageType1 ParserMessages::duplicateEntityDeclaration( +MessageType::warning, +&libModule, +85 +#ifndef SP_NO_MESSAGE_TEXT +,"duplicate declaration of entity %1" +#endif +); +const MessageType1 ParserMessages::duplicateParameterEntityDeclaration( +MessageType::warning, +&libModule, +86 +#ifndef SP_NO_MESSAGE_TEXT +,"duplicate declaration of parameter entity %1" +#endif +); +const MessageType0 ParserMessages::piEntityReference( +MessageType::error, +&libModule, +87 +#ifndef SP_NO_MESSAGE_TEXT +,"a reference to a PI entity is allowed only in a context where a processing instruction could occur" +,"ISO 8879:1986 10.5.3p9" +#endif +); +const MessageType0 ParserMessages::internalDataEntityReference( +MessageType::error, +&libModule, +88 +#ifndef SP_NO_MESSAGE_TEXT +,"a reference to a CDATA or SDATA entity is allowed only in a context where a data character could occur" +,"ISO 8879:1986 10.5.3p9" +#endif +); +const MessageType0 ParserMessages::externalNonTextEntityReference( +MessageType::error, +&libModule, +89 +#ifndef SP_NO_MESSAGE_TEXT +,"a reference to a subdocument entity or external data entity is allowed only in a context where a data character could occur" +,"ISO 8879:1986 9.4p0" +#endif +); +const MessageType0 ParserMessages::externalNonTextEntityRcdata( +MessageType::error, +&libModule, +90 +#ifndef SP_NO_MESSAGE_TEXT +,"a reference to a subdocument entity or external data entity is not allowed in replaceable character data" +,"ISO 8879:1986 9.4p0" +#endif +); +const MessageType1 ParserMessages::entlvl( +MessageType::quantityError, +&libModule, +91 +#ifndef SP_NO_MESSAGE_TEXT +,"the number of open entities cannot exceed ENTLVL (%1)" +,"ISO 8879:1986 9.4.1" +#endif +); +const MessageType0 ParserMessages::piEntityRcdata( +MessageType::error, +&libModule, +92 +#ifndef SP_NO_MESSAGE_TEXT +,"a reference to a PI entity is not allowed in replaceable character data" +,"ISO 8879:1986 10.5.3p9" +#endif +); +const MessageType1 ParserMessages::recursiveEntityReference( +MessageType::error, +&libModule, +93 +#ifndef SP_NO_MESSAGE_TEXT +,"entity %1 is already open" +,"ISO 8879:1986 9.4p4" +#endif +); +const MessageType1 ParserMessages::undefinedShortrefMapInstance( +MessageType::error, +&libModule, +94 +#ifndef SP_NO_MESSAGE_TEXT +,"short reference map %1 not defined" +,"ISO 8879:1986 11.6.2p2" +#endif +); +const MessageType0 ParserMessages::usemapAssociatedElementTypeDtd( +MessageType::error, +&libModule, +95 +#ifndef SP_NO_MESSAGE_TEXT +,"short reference map in DTD must specify associated element type" +,"ISO 8879:1986 11.6.1p1" +#endif +); +const MessageType0 ParserMessages::usemapAssociatedElementTypeInstance( +MessageType::error, +&libModule, +96 +#ifndef SP_NO_MESSAGE_TEXT +,"short reference map in document instance cannot specify associated element type" +,"ISO 8879:1986 11.6.2p1" +#endif +); +const MessageType2 ParserMessages::undefinedShortrefMapDtd( +MessageType::error, +&libModule, +97 +#ifndef SP_NO_MESSAGE_TEXT +,"short reference map %1 for element %2 not defined in DTD" +,"ISO 8879:1986 11.6.1p2" +#endif +); +const MessageType1 ParserMessages::unknownShortrefDelim( +MessageType::error, +&libModule, +98 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a short reference delimiter" +,"ISO 8879:1986 11.5p4" +#endif +); +const MessageType1 ParserMessages::delimDuplicateMap( +MessageType::error, +&libModule, +99 +#ifndef SP_NO_MESSAGE_TEXT +,"short reference delimiter %1 already mapped in this declaration" +,"ISO 8879:1986 11.5p6" +#endif +); +const MessageType0 ParserMessages::noDocumentElement( +MessageType::error, +&libModule, +100 +#ifndef SP_NO_MESSAGE_TEXT +,"no document element" +#endif +); +const MessageType0 ParserMessages::processingInstructionEntityEnd( +MessageType::error, +&libModule, +102 +#ifndef SP_NO_MESSAGE_TEXT +,"entity end not allowed in processing instruction" +#endif +); +const MessageType1 ParserMessages::processingInstructionLength( +MessageType::quantityError, +&libModule, +103 +#ifndef SP_NO_MESSAGE_TEXT +,"length of processing instruction must not exceed PILEN (%1)" +,"ISO 8879:1986 8.1p1" +#endif +); +const MessageType0 ParserMessages::processingInstructionClose( +MessageType::error, +&libModule, +104 +#ifndef SP_NO_MESSAGE_TEXT +,"missing PIC delimiter" +#endif +); +const MessageType0 ParserMessages::attributeSpecNameTokenExpected( +MessageType::error, +&libModule, +105 +#ifndef SP_NO_MESSAGE_TEXT +,"an attribute specification must start with a name or name token" +,"ISO 8879:1986 7.9p2 7.9.1.2p1" +#endif +); +const MessageType1 ParserMessages::noSuchAttributeToken( +MessageType::error, +&libModule, +106 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a member of a group specified for any attribute" +,"ISO 8879:1986 7.9.1.2p1" +#endif +); +const MessageType0 ParserMessages::attributeNameShorttag( +MessageType::error, +&libModule, +107 +#ifndef SP_NO_MESSAGE_TEXT +,"the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified" +,"ISO 8879:1986 7.9.1.2" +#endif +); +const MessageType1 ParserMessages::noSuchAttribute( +MessageType::error, +&libModule, +108 +#ifndef SP_NO_MESSAGE_TEXT +,"there is no attribute %1" +#endif +); +const MessageType0 ParserMessages::attributeValueExpected( +MessageType::error, +&libModule, +109 +#ifndef SP_NO_MESSAGE_TEXT +,"an attribute value specification must start with a literal or a name character" +,"ISO 8879:1986 7.9.3p1" +#endif +); +const MessageType1 ParserMessages::nameTokenLength( +MessageType::quantityError, +&libModule, +110 +#ifndef SP_NO_MESSAGE_TEXT +,"length of name token must not exceed NAMELEN (%1)" +,"ISO 8879:1986 9.3.1" +#endif +); +const MessageType0 ParserMessages::attributeSpecLiteral( +MessageType::error, +&libModule, +111 +#ifndef SP_NO_MESSAGE_TEXT +,"an attribute value literal can occur in an attribute specification list only after a VI delimiter" +,"ISO 8879:1986 7.9.3p1 7.9.1.2p1" +#endif +); +const MessageType1 ParserMessages::duplicateAttributeSpec( +MessageType::error, +&libModule, +112 +#ifndef SP_NO_MESSAGE_TEXT +,"duplicate specification of attribute %1" +,"ISO 8879:1986 7.9p5" +#endif +); +const MessageType1 ParserMessages::duplicateAttributeDef( +MessageType::warning, +&libModule, +113 +#ifndef SP_NO_MESSAGE_TEXT +,"duplicate definition of attribute %1" +,"ISO 8879:1986 11.3.2p2" +#endif +); +const MessageType0 ParserMessages::emptyDataAttributeSpec( +MessageType::error, +&libModule, +114 +#ifndef SP_NO_MESSAGE_TEXT +,"data attribute specification must be omitted if attribute specification list is empty" +,"ISO 8879:1986 11.4.1.2p3" +#endif +); +const MessageType0 ParserMessages::markedSectionEnd( +MessageType::error, +&libModule, +115 +#ifndef SP_NO_MESSAGE_TEXT +,"marked section end not in marked section declaration" +,"ISO 8879:1986 10.4p6" +#endif +); +const MessageType1 ParserMessages::markedSectionLevel( +MessageType::error, +&libModule, +116 +#ifndef SP_NO_MESSAGE_TEXT +,"number of open marked sections must not exceed TAGLVL (%1)" +,"ISO 8879:1986 10.4.1p1" +#endif +); +const MessageType0L ParserMessages::unclosedMarkedSection( +MessageType::error, +&libModule, +117 +#ifndef SP_NO_MESSAGE_TEXT +,"missing marked section end" +,"ISO 8879:1986 10.4p1" +,"marked section started here" +#endif +); +const MessageType0 ParserMessages::specialParseEntityEnd( +MessageType::error, +&libModule, +119 +#ifndef SP_NO_MESSAGE_TEXT +,"entity end in character data, replaceable character data or ignored marked section" +#endif +); +const MessageType2 ParserMessages::normalizedAttributeValueLength( +MessageType::quantityError, +&libModule, +120 +#ifndef SP_NO_MESSAGE_TEXT +,"normalized length of attribute value literal must not exceed LITLEN (%1); length was %2" +,"ISO 8879:1986 7.9.4.5" +#endif +); +const MessageType0 ParserMessages::attributeValueSyntax( +MessageType::error, +&libModule, +121 +#ifndef SP_NO_MESSAGE_TEXT +,"syntax of attribute value does not conform to declared value" +,"ISO 8879:1986 7.9.4.1p1" +#endif +); +const MessageType2 ParserMessages::attributeValueChar( +MessageType::error, +&libModule, +122 +#ifndef SP_NO_MESSAGE_TEXT +,"character %1 is not allowed in the value of attribute %2" +,"ISO 8879:1986 7.9.4.1p1" +#endif +); +const MessageType1 ParserMessages::attributeValueMultiple( +MessageType::error, +&libModule, +123 +#ifndef SP_NO_MESSAGE_TEXT +,"value of attribute %1 must be a single token" +,"ISO 8879:1986 7.9.4.1p1" +#endif +); +const MessageType2 ParserMessages::attributeValueNumberToken( +MessageType::error, +&libModule, +124 +#ifndef SP_NO_MESSAGE_TEXT +,"value of attribute %2 invalid: %1 cannot start a number token" +,"ISO 8879:1986 7.9.4p1" +#endif +); +const MessageType2 ParserMessages::attributeValueName( +MessageType::error, +&libModule, +125 +#ifndef SP_NO_MESSAGE_TEXT +,"value of attribute %2 invalid: %1 cannot start a name" +,"ISO 8879:1986 7.9.4p1" +#endif +); +const MessageType1 ParserMessages::attributeMissing( +MessageType::error, +&libModule, +126 +#ifndef SP_NO_MESSAGE_TEXT +,"non-impliable attribute %1 not specified but OMITTAG NO and SHORTTAG NO" +,"ISO 8879:1986 7.9p4" +#endif +); +const MessageType1 ParserMessages::requiredAttributeMissing( +MessageType::error, +&libModule, +127 +#ifndef SP_NO_MESSAGE_TEXT +,"required attribute %1 not specified" +,"ISO 8879:1986 7.9p4 7.9.1.1p2" +#endif +); +const MessageType1 ParserMessages::currentAttributeMissing( +MessageType::error, +&libModule, +128 +#ifndef SP_NO_MESSAGE_TEXT +,"first occurrence of CURRENT attribute %1 not specified" +,"ISO 8879:1986 7.9.1.1p2" +#endif +); +const MessageType1 ParserMessages::invalidNotationAttribute( +MessageType::error, +&libModule, +129 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a notation name" +,"ISO 8879:1986 7.9.4.4p1" +#endif +); +const MessageType1 ParserMessages::invalidEntityAttribute( +MessageType::error, +&libModule, +130 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a general entity name" +,"ISO 8879:1986 7.9.4.3p1" +#endif +); +const MessageType3 ParserMessages::attributeValueNotInGroup( +MessageType::error, +&libModule, +131 +#ifndef SP_NO_MESSAGE_TEXT +,"value of attribute %2 cannot be %1; must be one of %3" +,"ISO 8879:1986 7.9.4.1p2" +#endif +); +const MessageType1 ParserMessages::notDataOrSubdocEntity( +MessageType::error, +&libModule, +132 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a data or subdocument entity" +,"ISO 8879:1986 7.9.4.3p1" +#endif +); +const MessageType3 ParserMessages::ambiguousModelInitial( +MessageType::error, +&libModule, +133 +#ifndef SP_NO_MESSAGE_TEXT +,"content model is ambiguous: when no tokens have been matched, both the %2 and %3 occurrences of %1 are possible" +#endif +); +const MessageType5 ParserMessages::ambiguousModel( +MessageType::error, +&libModule, +134 +#ifndef SP_NO_MESSAGE_TEXT +,"content model is ambiguous: when the current token is the %2 occurrence of %1, both the %4 and %5 occurrences of %3 are possible" +#endif +); +const MessageType5 ParserMessages::ambiguousModelSingleAnd( +MessageType::error, +&libModule, +135 +#ifndef SP_NO_MESSAGE_TEXT +,"content model is ambiguous: when the current token is the %2 occurrence of %1 and the innermost containing AND group has been matched, both the %4 and %5 occurrences of %3 are possible" +#endif +); +const MessageType6 ParserMessages::ambiguousModelMultipleAnd( +MessageType::error, +&libModule, +136 +#ifndef SP_NO_MESSAGE_TEXT +,"content model is ambiguous: when the current token is the %2 occurrence of %1 and the innermost %3 containing AND groups have been matched, both the %5 and %6 occurrences of %4 are possible" +#endif +); +const MessageType1L ParserMessages::commentDeclarationCharacter( +MessageType::error, +&libModule, +137 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid comment declaration: found character %1 outside comment but inside comment declaration" +,0 +,"comment declaration started here" +#endif +); +const MessageType1 ParserMessages::nonSgmlCharacter( +MessageType::error, +&libModule, +139 +#ifndef SP_NO_MESSAGE_TEXT +,"non SGML character number %1" +#endif +); +const MessageType0 ParserMessages::dataMarkedSectionDeclSubset( +MessageType::error, +&libModule, +140 +#ifndef SP_NO_MESSAGE_TEXT +,"data or replaceable character data in declaration subset" +#endif +); +const MessageType1L ParserMessages::duplicateId( +MessageType::error, +&libModule, +141 +#ifndef SP_NO_MESSAGE_TEXT +,"ID %1 already defined" +,"ISO 8879:1986 4.153" +,"ID %1 first defined here" +#endif +); +const MessageType1 ParserMessages::notFixedValue( +MessageType::error, +&libModule, +143 +#ifndef SP_NO_MESSAGE_TEXT +,"value of fixed attribute %1 not equal to default" +,"ISO 8879:1986 4.136" +#endif +); +const MessageType1 ParserMessages::sdCommentSignificant( +MessageType::error, +&libModule, +144 +#ifndef SP_NO_MESSAGE_TEXT +,"character %1 is not significant in the reference concrete syntax and so cannot occur in a comment in the SGML declaration" +#endif +); +const MessageType1 ParserMessages::standardVersion( +MessageType::error, +&libModule, +145 +#ifndef SP_NO_MESSAGE_TEXT +,"minimum data of first minimum literal in SGML declaration must be \"ISO 8879:1986\" or \"ISO 8879:1986 (ENR)\" or \"ISO 8879:1986 (WWW)\" not %1" +,"ISO 8879:1986 13p2" +#endif +); +const MessageType1 ParserMessages::namingBeforeLcnmstrt( +MessageType::error, +&libModule, +146 +#ifndef SP_NO_MESSAGE_TEXT +,"parameter before LCNMSTRT must be NAMING not %1" +,"ISO 8879:1986 13.4.5p1" +#endif +); +const MessageType1 ParserMessages::sdEntityEnd( +MessageType::error, +&libModule, +147 +#ifndef SP_NO_MESSAGE_TEXT +,"unexpected entity end in SGML declaration: only %1, S separators and comments allowed" +,"ISO 8879:1986 13p1" +#endif +); +const MessageType2 ParserMessages::sdInvalidNameToken( +MessageType::error, +&libModule, +148 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 invalid: only %2 and parameter separators allowed" +#endif +); +const MessageType1 ParserMessages::numberTooBig( +MessageType::error, +&libModule, +149 +#ifndef SP_NO_MESSAGE_TEXT +,"magnitude of %1 too big" +#endif +); +const MessageType1 ParserMessages::sdLiteralSignificant( +MessageType::error, +&libModule, +150 +#ifndef SP_NO_MESSAGE_TEXT +,"character %1 is not significant in the reference concrete syntax and so cannot occur in a literal in the SGML declaration except as the replacement of a character reference" +#endif +); +const MessageType1 ParserMessages::syntaxCharacterNumber( +MessageType::error, +&libModule, +151 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a valid syntax reference character number" +,"ISO 8879:1986 4.36" +#endif +); +const MessageType0 ParserMessages::sdParameterEntity( +MessageType::error, +&libModule, +152 +#ifndef SP_NO_MESSAGE_TEXT +,"a parameter entity reference cannot occur in an SGML declaration" +,"ISO 8879:1986 451p7" +#endif +); +const MessageType2 ParserMessages::sdParamInvalidToken( +MessageType::error, +&libModule, +153 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 invalid: only %2 and parameter separators are allowed" +#endif +); +const MessageType0 ParserMessages::giveUp( +MessageType::error, +&libModule, +154 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot continue because of previous errors" +#endif +); +const MessageType1 ParserMessages::sdMissingCharacters( +MessageType::error, +&libModule, +155 +#ifndef SP_NO_MESSAGE_TEXT +,"SGML declaration cannot be parsed because the character set does not contain characters having the following numbers in ISO 646: %1" +#endif +); +const MessageType1 ParserMessages::missingMinimumChars( +MessageType::error, +&libModule, +156 +#ifndef SP_NO_MESSAGE_TEXT +,"the specified character set is invalid because it does not contain the minimum data characters having the following numbers in ISO 646: %1" +#endif +); +const MessageType1 ParserMessages::duplicateCharNumbers( +MessageType::error, +&libModule, +157 +#ifndef SP_NO_MESSAGE_TEXT +,"character numbers declared more than once: %1" +#endif +); +const MessageType1 ParserMessages::codeSetHoles( +MessageType::error, +&libModule, +158 +#ifndef SP_NO_MESSAGE_TEXT +,"character numbers should have been declared UNUSED: %1" +#endif +); +const MessageType1 ParserMessages::basesetCharsMissing( +MessageType::warning, +&libModule, +159 +#ifndef SP_NO_MESSAGE_TEXT +,"character numbers missing in base set: %1" +#endif +); +const MessageType1 ParserMessages::documentCharMax( +MessageType::warning, +&libModule, +160 +#ifndef SP_NO_MESSAGE_TEXT +,"characters in the document character set with numbers exceeding %1 not supported" +#endif +); +const MessageType1 ParserMessages::fpiMissingField( +MessageType::error, +&libModule, +161 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid formal public identifier %1: missing //" +#endif +); +const MessageType1 ParserMessages::fpiMissingTextClassSpace( +MessageType::error, +&libModule, +162 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid formal public identifier %1: no SPACE after public text class" +#endif +); +const MessageType1 ParserMessages::fpiInvalidTextClass( +MessageType::error, +&libModule, +163 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid formal public identifier %1: invalid public text class" +#endif +); +const MessageType1 ParserMessages::fpiInvalidLanguage( +MessageType::error, +&libModule, +164 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid formal public identifier %1: public text language must be a name containing only upper case letters" +#endif +); +const MessageType1 ParserMessages::fpiIllegalDisplayVersion( +MessageType::error, +&libModule, +165 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid formal public identifer %1: public text display version not permitted with this text class" +#endif +); +const MessageType1 ParserMessages::fpiExtraField( +MessageType::error, +&libModule, +166 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid formal public identifier %1: extra field" +#endif +); +const MessageType0 ParserMessages::notationIdentifierTextClass( +MessageType::error, +&libModule, +167 +#ifndef SP_NO_MESSAGE_TEXT +,"public text class of public identifier in notation identifier must be NOTATION" +#endif +); +const MessageType1 ParserMessages::unknownBaseset( +MessageType::warning, +&libModule, +168 +#ifndef SP_NO_MESSAGE_TEXT +,"base character set %1 is unknown" +#endif +); +const MessageType2 ParserMessages::lexicalAmbiguity( +MessageType::error, +&libModule, +169 +#ifndef SP_NO_MESSAGE_TEXT +,"delimiter set is ambiguous: %1 and %2 can be recognized in the same mode" +,"ISO 8879:1986 13.4.6p2" +#endif +); +const MessageType1 ParserMessages::missingSignificant( +MessageType::error, +&libModule, +170 +#ifndef SP_NO_MESSAGE_TEXT +,"characters with the following numbers in the syntax reference character set are significant in the concrete syntax but are not in the document character set: %1" +#endif +); +const MessageType1 ParserMessages::translateSyntaxCharDoc( +MessageType::error, +&libModule, +171 +#ifndef SP_NO_MESSAGE_TEXT +,"there is no unique character in the document character set corresponding to character number %1 in the syntax reference character set" +#endif +); +const MessageType1 ParserMessages::translateSyntaxCharInternal( +MessageType::error, +&libModule, +172 +#ifndef SP_NO_MESSAGE_TEXT +,"there is no unique character in the internal character set corresponding to character number %1 in the syntax reference character set" +#endif +); +const MessageType1 ParserMessages::missingSyntaxChar( +MessageType::error, +&libModule, +173 +#ifndef SP_NO_MESSAGE_TEXT +,"the character with number %1 in ISO 646 is significant but has no representation in the syntax reference character set" +,"ISO 8879:1986 13.4.3p2" +#endif +); +const MessageType1 ParserMessages::unknownCapacitySet( +MessageType::error, +&libModule, +174 +#ifndef SP_NO_MESSAGE_TEXT +,"capacity set %1 is unknown" +#endif +); +const MessageType1 ParserMessages::duplicateCapacity( +MessageType::warning, +&libModule, +175 +#ifndef SP_NO_MESSAGE_TEXT +,"capacity %1 already specified" +#endif +); +const MessageType1 ParserMessages::capacityExceedsTotalcap( +MessageType::error, +&libModule, +176 +#ifndef SP_NO_MESSAGE_TEXT +,"value of capacity %1 exceeds value of TOTALCAP" +#endif +); +const MessageType1 ParserMessages::unknownPublicSyntax( +MessageType::error, +&libModule, +177 +#ifndef SP_NO_MESSAGE_TEXT +,"syntax %1 is unknown" +#endif +); +const MessageType0 ParserMessages::nmstrtLength( +MessageType::error, +&libModule, +178 +#ifndef SP_NO_MESSAGE_TEXT +,"UCNMSTRT must have the same number of characters as LCNMSTRT" +,"ISO 8879:1986 13.4.5p13" +#endif +); +const MessageType0 ParserMessages::nmcharLength( +MessageType::error, +&libModule, +179 +#ifndef SP_NO_MESSAGE_TEXT +,"UCNMCHAR must have the same number of characters as LCNMCHAR" +,"ISO 8879:1986 13.4.5p13" +#endif +); +const MessageType1 ParserMessages::subdocLevel( +MessageType::error, +&libModule, +180 +#ifndef SP_NO_MESSAGE_TEXT +,"number of open subdocuments exceeds quantity specified for SUBDOC parameter in SGML declaration (%1)" +,"ISO 8879:1986 9.4.2p1" +#endif +); +const MessageType1 ParserMessages::subdocEntity( +MessageType::error, +&libModule, +181 +#ifndef SP_NO_MESSAGE_TEXT +,"entity %1 declared SUBDOC, but SUBDOC NO specified in SGML declaration" +,"ISO 8879:1986 10.5.5p12" +#endif +); +const MessageType0 ParserMessages::parameterEntityNotEnded( +MessageType::error, +&libModule, +182 +#ifndef SP_NO_MESSAGE_TEXT +,"a parameter entity referenced in a parameter separator must end in the same declaration" +,"ISO 8879:1986 10.1.1p2" +#endif +); +const MessageType1 ParserMessages::missingId( +MessageType::idrefError, +&libModule, +183 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to non-existent ID %1" +#endif +); +const MessageType1 ParserMessages::dtdUndefinedElement( +MessageType::warning, +&libModule, +184 +#ifndef SP_NO_MESSAGE_TEXT +,"generic identifier %1 used in DTD but not defined" +#endif +); +const MessageType1 ParserMessages::elementNotFinishedDocumentEnd( +MessageType::error, +&libModule, +185 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 not finished but document ended" +#endif +); +const MessageType0 ParserMessages::subdocGiveUp( +MessageType::error, +&libModule, +186 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot continue with subdocument because of previous errors" +#endif +); +const MessageType0 ParserMessages::noDtd( +MessageType::error, +&libModule, +187 +#ifndef SP_NO_MESSAGE_TEXT +,"no document type declaration; will parse without validation" +#endif +); +const MessageType0 ParserMessages::noDtdSubset( +MessageType::error, +&libModule, +188 +#ifndef SP_NO_MESSAGE_TEXT +,"no internal or external document type declaration subset; will parse without validation" +#endif +); +const MessageType0 ParserMessages::notSgml( +MessageType::error, +&libModule, +189 +#ifndef SP_NO_MESSAGE_TEXT +,"this is not an SGML document" +#endif +); +const MessageType1 ParserMessages::taglen( +MessageType::quantityError, +&libModule, +190 +#ifndef SP_NO_MESSAGE_TEXT +,"length of start-tag before interpretation of literals must not exceed TAGLEN (%1)" +,"ISO 8879:1986 7.4.2p1" +#endif +); +const MessageType0 ParserMessages::groupParameterEntityNotEnded( +MessageType::error, +&libModule, +191 +#ifndef SP_NO_MESSAGE_TEXT +,"a parameter entity referenced in a token separator must end in the same group" +,"ISO 8879:1986 10.1.3p7" +#endif +); +const MessageType1 ParserMessages::invalidSgmlChar( +MessageType::error, +&libModule, +192 +#ifndef SP_NO_MESSAGE_TEXT +,"the following character numbers are shunned characters that are not significant and so should have been declared UNUSED: %1" +,"ISO 8879:1986 13.1.2p3" +#endif +); +const MessageType1 ParserMessages::translateDocChar( +MessageType::error, +&libModule, +193 +#ifndef SP_NO_MESSAGE_TEXT +,"there is no unique character in the specified document character set corresponding to character number %1 in ISO 646" +#endif +); +const MessageType1 ParserMessages::attributeValueLengthNeg( +MessageType::quantityError, +&libModule, +194 +#ifndef SP_NO_MESSAGE_TEXT +,"length of attribute value must not exceed LITLEN less NORMSEP (-%1)" +,"ISO 8879:1986 7.9.4.5" +#endif +); +const MessageType1 ParserMessages::tokenizedAttributeValueLengthNeg( +MessageType::quantityError, +&libModule, +195 +#ifndef SP_NO_MESSAGE_TEXT +,"length of tokenized attribute value must not exceed LITLEN less NORMSEP (-%1)" +,"ISO 8879:1986 7.9.4.5 7.9.3p5" +#endif +); +const MessageType1 ParserMessages::scopeInstanceQuantity( +MessageType::error, +&libModule, +196 +#ifndef SP_NO_MESSAGE_TEXT +,"concrete syntax scope is INSTANCE but value of %1 quantity is less than value in reference quantity set" +,"ISO 8879:1986 13.3p9" +#endif +); +const MessageType1 ParserMessages::basesetTextClass( +MessageType::error, +&libModule, +197 +#ifndef SP_NO_MESSAGE_TEXT +,"public text class of formal public identifier of base character set must be CHARSET" +,"ISO 8879:1986 13.1.1.1p4" +#endif +); +const MessageType1 ParserMessages::capacityTextClass( +MessageType::error, +&libModule, +198 +#ifndef SP_NO_MESSAGE_TEXT +,"public text class of formal public identifier of capacity set must be CAPACITY" +,"ISO 8879:1986 13.2p7" +#endif +); +const MessageType1 ParserMessages::syntaxTextClass( +MessageType::error, +&libModule, +199 +#ifndef SP_NO_MESSAGE_TEXT +,"public text class of formal public identifier of concrete syntax must be SYNTAX" +,"ISO 8879:1986 13.4.1p6" +#endif +); +const MessageType0 ParserMessages::msocharRequiresMsichar( +MessageType::error, +&libModule, +200 +#ifndef SP_NO_MESSAGE_TEXT +,"when there is an MSOCHAR there must also be an MSICHAR" +,"ISO 8879:1986 13.4.4p13" +#endif +); +const MessageType1 ParserMessages::switchNotMarkup( +MessageType::error, +&libModule, +201 +#ifndef SP_NO_MESSAGE_TEXT +,"character number %1 in the syntax reference character set was specified as a character to be switched but is not a markup character" +,"ISO 8879:1986 13.4.1p4" +#endif +); +const MessageType1 ParserMessages::switchNotInCharset( +MessageType::error, +&libModule, +202 +#ifndef SP_NO_MESSAGE_TEXT +,"character number %1 was specified as a character to be switched but is not in the syntax reference character set" +,"ISO 8879:1986 13.4.1p4" +#endif +); +const MessageType1 ParserMessages::ambiguousDocCharacter( +MessageType::warning, +&libModule, +203 +#ifndef SP_NO_MESSAGE_TEXT +,"character numbers %1 in the document character set have been assigned the same meaning, but this is the meaning of a significant character" +#endif +); +const MessageType1 ParserMessages::oneFunction( +MessageType::error, +&libModule, +204 +#ifndef SP_NO_MESSAGE_TEXT +,"character number %1 assigned to more than one function" +,"ISO 8879:1986 13.4.4p11" +#endif +); +const MessageType1 ParserMessages::duplicateFunctionName( +MessageType::error, +&libModule, +205 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is already a function name" +,"ISO 8879:1986 13.4.4p12" +#endif +); +const MessageType1 ParserMessages::missingSignificant646( +MessageType::error, +&libModule, +206 +#ifndef SP_NO_MESSAGE_TEXT +,"characters with the following numbers in ISO 646 are significant in the concrete syntax but are not in the document character set: %1" +#endif +); +const MessageType1 ParserMessages::generalDelimAllFunction( +MessageType::error, +&libModule, +207 +#ifndef SP_NO_MESSAGE_TEXT +,"general delimiter %1 consists solely of function characters" +,"ISO 8879:1986 13.4.6.1p5" +#endif +); +const MessageType1 ParserMessages::nmcharLetter( +MessageType::error, +&libModule, +208 +#ifndef SP_NO_MESSAGE_TEXT +,"letters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +,"ISO 8879:1986 13.4.5p11" +#endif +); +const MessageType1 ParserMessages::nmcharDigit( +MessageType::error, +&libModule, +209 +#ifndef SP_NO_MESSAGE_TEXT +,"digits assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +,"ISO 8879:1986 13.4.5p11" +#endif +); +const MessageType1 ParserMessages::nmcharRe( +MessageType::error, +&libModule, +210 +#ifndef SP_NO_MESSAGE_TEXT +,"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT because it is RE" +,"ISO 8879:1986 13.4.5p11" +#endif +); +const MessageType1 ParserMessages::nmcharRs( +MessageType::error, +&libModule, +211 +#ifndef SP_NO_MESSAGE_TEXT +,"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT because it is RS" +,"ISO 8879:1986 13.4.5p11" +#endif +); +const MessageType1 ParserMessages::nmcharSpace( +MessageType::error, +&libModule, +212 +#ifndef SP_NO_MESSAGE_TEXT +,"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT because it is SPACE" +,"ISO 8879:1986 13.4.5p11" +#endif +); +const MessageType1 ParserMessages::nmcharSepchar( +MessageType::error, +&libModule, +213 +#ifndef SP_NO_MESSAGE_TEXT +,"separator characters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +,"ISO 8879:1986 13.4.5p11" +#endif +); +const MessageType1 ParserMessages::switchLetterDigit( +MessageType::error, +&libModule, +214 +#ifndef SP_NO_MESSAGE_TEXT +,"character number %1 cannot be switched because it is a Digit, LC Letter or UC Letter" +,"ISO 8879:1986 13.4.1p4" +#endif +); +const MessageType0 ParserMessages::zeroNumberOfCharacters( +MessageType::warning, +&libModule, +215 +#ifndef SP_NO_MESSAGE_TEXT +,"pointless for number of characters to be 0" +#endif +); +const MessageType1 ParserMessages::nameReferenceReservedName( +MessageType::error, +&libModule, +216 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 cannot be the replacement for a reference reserved name because it is another reference reserved name" +,"ISO 8879:1986 13.4.7p6" +#endif +); +const MessageType1 ParserMessages::ambiguousReservedName( +MessageType::error, +&libModule, +217 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 cannot be the replacement for a reference reserved name because it is the replacement of another reference reserved name" +,"ISO 8879:1986 13.4.7p6" +#endif +); +const MessageType1 ParserMessages::duplicateReservedName( +MessageType::error, +&libModule, +218 +#ifndef SP_NO_MESSAGE_TEXT +,"replacement for reserved name %1 already specified" +,"ISO 8879:1986 13.4.7p2" +#endif +); +const MessageType1 ParserMessages::reservedNameSyntax( +MessageType::warning, +&libModule, +219 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a valid name in the declared concrete syntax" +#endif +); +const MessageType1 ParserMessages::multipleBSequence( +MessageType::error, +&libModule, +220 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a valid short reference delimiter because it has more than one B sequence" +,"ISO 8879:1986 13.4.6.2p6" +#endif +); +const MessageType1 ParserMessages::blankAdjacentBSequence( +MessageType::error, +&libModule, +221 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a valid short reference delimiter because it is adjacent to a character that can occur in a blank sequence" +,"ISO 8879:1986 13.4.6.2p6" +#endif +); +const MessageType2 ParserMessages::delimiterLength( +MessageType::error, +&libModule, +222 +#ifndef SP_NO_MESSAGE_TEXT +,"length of delimiter %1 exceeds NAMELEN (%2)" +,"ISO 8879:1986 13.4.6p5" +#endif +); +const MessageType2 ParserMessages::reservedNameLength( +MessageType::warning, +&libModule, +223 +#ifndef SP_NO_MESSAGE_TEXT +,"length of reserved name %1 exceeds NAMELEN (%2)" +#endif +); +const MessageType1 ParserMessages::nmcharNmstrt( +MessageType::error, +&libModule, +224 +#ifndef SP_NO_MESSAGE_TEXT +,"character numbers assigned to both LCNMCHAR or UCNMCHAR and LCNMSTRT or UCNMSTRT: %1" +,"ISO 8879:1986 13.4.5p12" +#endif +); +const MessageType0 ParserMessages::scopeInstanceSyntaxCharset( +MessageType::error, +&libModule, +225 +#ifndef SP_NO_MESSAGE_TEXT +,"when the concrete syntax scope is INSTANCE the syntax reference character set of the declared syntax must be the same as that of the reference concrete syntax" +,"ISO 8879:1986 13.3p7" +#endif +); +const MessageType0 ParserMessages::emptyOmitEndTag( +MessageType::warning, +&libModule, +226 +#ifndef SP_NO_MESSAGE_TEXT +,"end-tag minimization should be O for element with declared content of EMPTY" +,"ISO 8879:1986 11.2.2p8" +#endif +); +const MessageType1 ParserMessages::conrefOmitEndTag( +MessageType::warning, +&libModule, +227 +#ifndef SP_NO_MESSAGE_TEXT +,"end-tag minimization should be O for element %1 because it has CONREF attribute" +,"ISO 8879:1986 11.2.2p8" +#endif +); +const MessageType1 ParserMessages::conrefEmpty( +MessageType::error, +&libModule, +228 +#ifndef SP_NO_MESSAGE_TEXT +,"element %1 has a declared content of EMPTY and a CONREF attribute" +,"ISO 8879:1986 11.3.4p12" +#endif +); +const MessageType1 ParserMessages::notationEmpty( +MessageType::error, +&libModule, +229 +#ifndef SP_NO_MESSAGE_TEXT +,"element %1 has a declared content of EMPTY and a NOTATION attribute" +,"ISO 8879:1986 11.3.3p21" +#endif +); +const MessageType0 ParserMessages::dataAttributeDeclaredValue( +MessageType::error, +&libModule, +230 +#ifndef SP_NO_MESSAGE_TEXT +,"declared value of data attribute cannot be ENTITY, ENTITIES, ID, IDREF, IDREFS or NOTATION" +,"ISO 8879:1986 11.4.1p2" +#endif +); +const MessageType0 ParserMessages::dataAttributeDefaultValue( +MessageType::error, +&libModule, +231 +#ifndef SP_NO_MESSAGE_TEXT +,"default value of data attribute cannot be CONREF or CURRENT" +,"ISO 8879:1986 11.4.1p3" +#endif +); +const MessageType2 ParserMessages::attcnt( +MessageType::quantityError, +&libModule, +232 +#ifndef SP_NO_MESSAGE_TEXT +,"number of attribute names and name tokens (%1) exceeds ATTCNT (%2)" +,"ISO 8879:1986 11.3.1" +#endif +); +const MessageType0 ParserMessages::idDeclaredValue( +MessageType::error, +&libModule, +233 +#ifndef SP_NO_MESSAGE_TEXT +,"if the declared value is ID the default value must be IMPLIED or REQUIRED" +,"ISO 8879:1986 11.3.4p11" +#endif +); +const MessageType1 ParserMessages::multipleIdAttributes( +MessageType::error, +&libModule, +234 +#ifndef SP_NO_MESSAGE_TEXT +,"the attribute definition list already declared attribute %1 as the ID attribute" +,"ISO 8879:1986 11.3.3p19" +#endif +); +const MessageType1 ParserMessages::multipleNotationAttributes( +MessageType::error, +&libModule, +235 +#ifndef SP_NO_MESSAGE_TEXT +,"the attribute definition list already declared attribute %1 as the NOTATION attribute" +,"ISO 8879:1986 11.3.3p19" +#endif +); +const MessageType1 ParserMessages::duplicateAttributeToken( +MessageType::error, +&libModule, +236 +#ifndef SP_NO_MESSAGE_TEXT +,"token %1 occurs more than once in attribute definition list" +,"ISO 8879:1986 11.3.3p20" +#endif +); +const MessageType1 ParserMessages::notationNoAttributes( +MessageType::error, +&libModule, +237 +#ifndef SP_NO_MESSAGE_TEXT +,"no attributes defined for notation %1" +,"ISO 8879:1986 11.4.1.2p2" +#endif +); +const MessageType2 ParserMessages::entityNotationUndefined( +MessageType::error, +&libModule, +238 +#ifndef SP_NO_MESSAGE_TEXT +,"notation %1 for entity %2 undefined" +,"ISO 8879:1986 10.5.5p10" +#endif +); +const MessageType2 ParserMessages::mapEntityUndefined( +MessageType::error, +&libModule, +239 +#ifndef SP_NO_MESSAGE_TEXT +,"entity %1 undefined in short reference map %2" +#endif +); +const MessageType1 ParserMessages::attlistNotationUndefined( +MessageType::error, +&libModule, +240 +#ifndef SP_NO_MESSAGE_TEXT +,"notation %1 is undefined but had attribute definition" +,"ISO 8879:1986 11.4.1.1p4" +#endif +); +const MessageType1 ParserMessages::bracketedLitlen( +MessageType::quantityError, +&libModule, +241 +#ifndef SP_NO_MESSAGE_TEXT +,"length of interpreted parameter literal in bracketed text plus the length of the bracketing delimiters must not exceed LITLEN (%1)" +,"ISO 8879:1986 10.5.4.1" +#endif +); +const MessageType1 ParserMessages::genericIdentifierLength( +MessageType::quantityError, +&libModule, +242 +#ifndef SP_NO_MESSAGE_TEXT +,"length of rank stem plus length of rank suffix must not exceed NAMELEN (%1)" +,"ISO 8879:1986 11.2.1.2" +#endif +); +const MessageType0 ParserMessages::instanceStartOmittag( +MessageType::error, +&libModule, +243 +#ifndef SP_NO_MESSAGE_TEXT +,"document instance must start with document element" +,"ISO 8879:1986 7.2p1" +#endif +); +const MessageType1 ParserMessages::grplvl( +MessageType::quantityError, +&libModule, +244 +#ifndef SP_NO_MESSAGE_TEXT +,"content model nesting level exceeds GRPLVL (%1)" +,"ISO 8879:1986 11.2.4.5p1" +#endif +); +const MessageType1 ParserMessages::grpgtcnt( +MessageType::quantityError, +&libModule, +245 +#ifndef SP_NO_MESSAGE_TEXT +,"grand total of content tokens exceeds GRPGTCNT (%1)" +,"ISO 8879:1986 11.2.4.5p2" +#endif +); +const MessageType0 ParserMessages::unclosedStartTagShorttag( +MessageType::error, +&libModule, +246 +#ifndef SP_NO_MESSAGE_TEXT +,"unclosed start-tag requires SHORTTAG YES" +,"ISO 8879:1986 7.4.1p2" +#endif +); +const MessageType0 ParserMessages::netEnablingStartTagShorttag( +MessageType::error, +&libModule, +247 +#ifndef SP_NO_MESSAGE_TEXT +,"NET-enabling start-tag requires SHORTTAG YES" +,"ISO 8879:1986 7.4.1p2" +#endif +); +const MessageType0 ParserMessages::unclosedEndTagShorttag( +MessageType::error, +&libModule, +248 +#ifndef SP_NO_MESSAGE_TEXT +,"unclosed end-tag requires SHORTTAG YES" +,"ISO 8879:1986 7.5.1p2" +#endif +); +const MessageType0 ParserMessages::multipleDtds( +MessageType::error, +&libModule, +249 +#ifndef SP_NO_MESSAGE_TEXT +,"DTDs other than base allowed only if CONCUR YES or EXPLICIT YES" +,"ISO 8879:1986 7.1p6" +#endif +); +const MessageType0 ParserMessages::afterDocumentElementEntityEnd( +MessageType::error, +&libModule, +250 +#ifndef SP_NO_MESSAGE_TEXT +,"end of entity other than document entity after document element" +,"ISO 8879:1986 7.2p1" +#endif +); +const MessageType1 ParserMessages::declarationAfterDocumentElement( +MessageType::error, +&libModule, +251 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 declaration illegal after document element" +,"ISO 8879:1986 7.2p1" +#endif +); +const MessageType0 ParserMessages::characterReferenceAfterDocumentElement( +MessageType::error, +&libModule, +252 +#ifndef SP_NO_MESSAGE_TEXT +,"character reference illegal after document element" +,"ISO 8879:1986 7.2p1" +#endif +); +const MessageType0 ParserMessages::entityReferenceAfterDocumentElement( +MessageType::error, +&libModule, +253 +#ifndef SP_NO_MESSAGE_TEXT +,"entity reference illegal after document element" +,"ISO 8879:1986 7.2p1" +#endif +); +const MessageType0 ParserMessages::markedSectionAfterDocumentElement( +MessageType::error, +&libModule, +254 +#ifndef SP_NO_MESSAGE_TEXT +,"marked section illegal after document element" +,"ISO 8879:1986 7.2p1" +#endif +); +const MessageType3 ParserMessages::requiredElementExcluded( +MessageType::error, +&libModule, +255 +#ifndef SP_NO_MESSAGE_TEXT +,"the %1 occurrence of %2 in the content model for %3 cannot be excluded at this point because it is contextually required" +,"ISO 8879:1986 11.2.5.2p5" +#endif +); +const MessageType3 ParserMessages::invalidExclusion( +MessageType::error, +&libModule, +256 +#ifndef SP_NO_MESSAGE_TEXT +,"the %1 occurrence of %2 in the content model for %3 cannot be excluded because it is neither inherently optional nor a member of an OR group" +,"ISO 8879:1986 11.2.5.2p4" +#endif +); +const MessageType0 ParserMessages::attributeValueShorttag( +MessageType::error, +&libModule, +257 +#ifndef SP_NO_MESSAGE_TEXT +,"an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified" +,"ISO 8879:1986 7.9.3.1" +#endif +); +const MessageType0 ParserMessages::conrefNotation( +MessageType::error, +&libModule, +258 +#ifndef SP_NO_MESSAGE_TEXT +,"value cannot be specified both for notation attribute and content reference attribute" +,"ISO 8879:1986 7.9.4.4p2" +#endif +); +const MessageType1 ParserMessages::duplicateNotationDeclaration( +MessageType::error, +&libModule, +259 +#ifndef SP_NO_MESSAGE_TEXT +,"notation %1 already defined" +,"ISO 8879:1986 11.4p3" +#endif +); +const MessageType1L ParserMessages::duplicateShortrefDeclaration( +MessageType::error, +&libModule, +260 +#ifndef SP_NO_MESSAGE_TEXT +,"short reference map %1 already defined" +,"ISO 8879:1986 11.5p3" +,"first defined here" +#endif +); +const MessageType1 ParserMessages::duplicateDelimGeneral( +MessageType::error, +&libModule, +262 +#ifndef SP_NO_MESSAGE_TEXT +,"general delimiter role %1 already defined" +,"ISO 8879:1986 13.4.6.1" +#endif +); +const MessageType1 ParserMessages::idrefGrpcnt( +MessageType::quantityError, +&libModule, +263 +#ifndef SP_NO_MESSAGE_TEXT +,"number of ID references in start-tag must not exceed GRPCNT (%1)" +,"ISO 8879:1986 7.9.4.5p5" +#endif +); +const MessageType1 ParserMessages::entityNameGrpcnt( +MessageType::quantityError, +&libModule, +264 +#ifndef SP_NO_MESSAGE_TEXT +,"number of entity names in attribute specification list must not exceed GRPCNT (%1)" +,"ISO 8879:1986 7.9.4.5p6" +#endif +); +const MessageType2 ParserMessages::attsplen( +MessageType::quantityError, +&libModule, +265 +#ifndef SP_NO_MESSAGE_TEXT +,"normalized length of attribute specification list must not exceed ATTSPLEN (%1); length was %2" +,"ISO 8879:1986 7.9.2" +#endif +); +const MessageType1 ParserMessages::duplicateDelimShortref( +MessageType::error, +&libModule, +266 +#ifndef SP_NO_MESSAGE_TEXT +,"short reference delimiter %1 already specified" +,"ISO 8879:1986 13.4.6p2" +#endif +); +const MessageType1 ParserMessages::duplicateDelimShortrefSet( +MessageType::error, +&libModule, +267 +#ifndef SP_NO_MESSAGE_TEXT +,"single character short references were already specified for character numbers: %1" +,"ISO 8879:1986 13.4.6.2" +#endif +); +const MessageType1 ParserMessages::defaultEntityInAttribute( +MessageType::warning, +&libModule, +268 +#ifndef SP_NO_MESSAGE_TEXT +,"default entity used in entity attribute %1" +#endif +); +const MessageType1 ParserMessages::defaultEntityReference( +MessageType::warning, +&libModule, +269 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to entity %1 uses default entity" +#endif +); +const MessageType2 ParserMessages::mapDefaultEntity( +MessageType::warning, +&libModule, +270 +#ifndef SP_NO_MESSAGE_TEXT +,"entity %1 in short reference map %2 uses default entity" +#endif +); +const MessageType1 ParserMessages::noSuchDtd( +MessageType::error, +&libModule, +271 +#ifndef SP_NO_MESSAGE_TEXT +,"no DTD %1 declared" +,"ISO 8879:1986 12.1.3p6" +#endif +); +const MessageType1 ParserMessages::noLpdSubset( +MessageType::warning, +&libModule, +272 +#ifndef SP_NO_MESSAGE_TEXT +,"LPD %1 has neither internal nor external subset" +#endif +); +const MessageType0 ParserMessages::assocElementDifferentAtts( +MessageType::error, +&libModule, +273 +#ifndef SP_NO_MESSAGE_TEXT +,"element types have different link attribute definitions" +,"ISO 8879:1986 12.2.1p11" +#endif +); +const MessageType1 ParserMessages::duplicateLinkSet( +MessageType::error, +&libModule, +274 +#ifndef SP_NO_MESSAGE_TEXT +,"link set %1 already defined" +,"ISO 8879:1986 12.2p6" +#endif +); +const MessageType0 ParserMessages::emptyResultAttributeSpec( +MessageType::error, +&libModule, +275 +#ifndef SP_NO_MESSAGE_TEXT +,"empty result attribute specification" +,"ISO 8879:1986 12.2.2p8" +#endif +); +const MessageType1 ParserMessages::noSuchSourceElement( +MessageType::error, +&libModule, +276 +#ifndef SP_NO_MESSAGE_TEXT +,"no source element type %1" +#endif +); +const MessageType1 ParserMessages::noSuchResultElement( +MessageType::error, +&libModule, +277 +#ifndef SP_NO_MESSAGE_TEXT +,"no result element type %1" +#endif +); +const MessageType0 ParserMessages::documentEndLpdSubset( +MessageType::error, +&libModule, +278 +#ifndef SP_NO_MESSAGE_TEXT +,"end of document in LPD subset" +#endif +); +const MessageType1 ParserMessages::lpdSubsetDeclaration( +MessageType::error, +&libModule, +279 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 declaration not allowed in LPD subset" +#endif +); +const MessageType0 ParserMessages::idlinkDeclSimple( +MessageType::error, +&libModule, +280 +#ifndef SP_NO_MESSAGE_TEXT +,"ID link set declaration not allowed in simple link declaration subset" +,"ISO 8879:1986 12.1.4.3" +#endif +); +const MessageType0 ParserMessages::linkDeclSimple( +MessageType::error, +&libModule, +281 +#ifndef SP_NO_MESSAGE_TEXT +,"link set declaration not allowed in simple link declaration subset" +,"ISO 8879:1986 12.1.4.3" +#endif +); +const MessageType1 ParserMessages::simpleLinkAttlistElement( +MessageType::error, +&libModule, +282 +#ifndef SP_NO_MESSAGE_TEXT +,"attributes can only be defined for base document element (not %1) in simple link declaration subset" +,"ISO 8879:1986 12.1.4.3" +#endif +); +const MessageType0 ParserMessages::shortrefOnlyInBaseDtd( +MessageType::error, +&libModule, +283 +#ifndef SP_NO_MESSAGE_TEXT +,"a short reference mapping declaration is allowed only in the base DTD" +,"ISO 8879:1986 11.1p11" +#endif +); +const MessageType0 ParserMessages::usemapOnlyInBaseDtd( +MessageType::error, +&libModule, +284 +#ifndef SP_NO_MESSAGE_TEXT +,"a short reference use declaration is allowed only in the base DTD" +,"ISO 8879:1986 11.1p11" +#endif +); +const MessageType0 ParserMessages::linkAttributeDefaultValue( +MessageType::error, +&libModule, +285 +#ifndef SP_NO_MESSAGE_TEXT +,"default value of link attribute cannot be CURRENT or CONREF" +,"ISO 8879:1986 12.1.4.2p3" +#endif +); +const MessageType0 ParserMessages::linkAttributeDeclaredValue( +MessageType::error, +&libModule, +286 +#ifndef SP_NO_MESSAGE_TEXT +,"declared value of link attribute cannot be ID, IDREF, IDREFS or NOTATION" +,"ISO 8879:1986 12.1.4.2p2" +#endif +); +const MessageType0 ParserMessages::simpleLinkFixedAttribute( +MessageType::error, +&libModule, +287 +#ifndef SP_NO_MESSAGE_TEXT +,"only fixed attributes can be defined in simple LPD" +,"ISO 8879:1986 12.1.4.3" +#endif +); +const MessageType0 ParserMessages::duplicateIdLinkSet( +MessageType::error, +&libModule, +288 +#ifndef SP_NO_MESSAGE_TEXT +,"only one ID link set declaration allowed in an LPD subset" +,"ISO 8879:1986 12.1.4p1" +#endif +); +const MessageType1 ParserMessages::noInitialLinkSet( +MessageType::error, +&libModule, +289 +#ifndef SP_NO_MESSAGE_TEXT +,"no initial link set defined for LPD %1" +,"ISO 8879:1986 12.2p7" +#endif +); +const MessageType1 ParserMessages::notationUndefinedSourceDtd( +MessageType::error, +&libModule, +290 +#ifndef SP_NO_MESSAGE_TEXT +,"notation %1 not defined in source DTD" +#endif +); +const MessageType0 ParserMessages::simpleLinkResultNotImplied( +MessageType::error, +&libModule, +291 +#ifndef SP_NO_MESSAGE_TEXT +,"result document type in simple link specification must be implied" +,"ISO 8879:1986 12.1.1p1" +#endif +); +const MessageType0 ParserMessages::simpleLinkFeature( +MessageType::error, +&libModule, +292 +#ifndef SP_NO_MESSAGE_TEXT +,"simple link requires SIMPLE YES" +,"ISO 8879:1986 12.1.1p5" +#endif +); +const MessageType0 ParserMessages::implicitLinkFeature( +MessageType::error, +&libModule, +293 +#ifndef SP_NO_MESSAGE_TEXT +,"implicit link requires IMPLICIT YES" +,"ISO 8879:1986 12.1.2p4" +#endif +); +const MessageType0 ParserMessages::explicitLinkFeature( +MessageType::error, +&libModule, +294 +#ifndef SP_NO_MESSAGE_TEXT +,"explicit link requires EXPLICIT YES" +,"ISO 8879:1986 12.1.3p4" +#endif +); +const MessageType0 ParserMessages::lpdBeforeBaseDtd( +MessageType::error, +&libModule, +295 +#ifndef SP_NO_MESSAGE_TEXT +,"LPD not allowed before first DTD" +,"ISO 8879:1986 7.1p1" +#endif +); +const MessageType0 ParserMessages::dtdAfterLpd( +MessageType::error, +&libModule, +296 +#ifndef SP_NO_MESSAGE_TEXT +,"DTD not allowed after an LPD" +,"ISO 8879:1986 7.1p1" +#endif +); +const MessageType1 ParserMessages::unstableLpdGeneralEntity( +MessageType::error, +&libModule, +297 +#ifndef SP_NO_MESSAGE_TEXT +,"definition of general entity %1 is unstable" +#endif +); +const MessageType1 ParserMessages::unstableLpdParameterEntity( +MessageType::error, +&libModule, +298 +#ifndef SP_NO_MESSAGE_TEXT +,"definition of parameter entity %1 is unstable" +#endif +); +const MessageType1 ParserMessages::multipleIdLinkRuleAttribute( +MessageType::error, +&libModule, +299 +#ifndef SP_NO_MESSAGE_TEXT +,"multiple link rules for ID %1 but not all have link attribute specifications" +,"ISO 8879:1986 12.2.3p3" +#endif +); +const MessageType1 ParserMessages::multipleLinkRuleAttribute( +MessageType::error, +&libModule, +300 +#ifndef SP_NO_MESSAGE_TEXT +,"multiple link rules for element type %1 but not all have link attribute specifications" +,"ISO 8879:1986 12.2.1p9" +#endif +); +const MessageType2 ParserMessages::uselinkBadLinkSet( +MessageType::error, +&libModule, +301 +#ifndef SP_NO_MESSAGE_TEXT +,"link type %1 does not have a link set %2" +,"ISO 8879:1986 12.3p10" +#endif +); +const MessageType1 ParserMessages::uselinkSimpleLpd( +MessageType::error, +&libModule, +302 +#ifndef SP_NO_MESSAGE_TEXT +,"link set use declaration for simple link process" +#endif +); +const MessageType1 ParserMessages::uselinkBadLinkType( +MessageType::error, +&libModule, +303 +#ifndef SP_NO_MESSAGE_TEXT +,"no link type %1" +,"ISO 8879:1986 12.3p10" +#endif +); +const MessageType1 ParserMessages::duplicateDtdLpd( +MessageType::error, +&libModule, +304 +#ifndef SP_NO_MESSAGE_TEXT +,"both document type and link type %1" +,"ISO 8879:1986 12.1p3" +#endif +); +const MessageType1 ParserMessages::duplicateLpd( +MessageType::error, +&libModule, +305 +#ifndef SP_NO_MESSAGE_TEXT +,"link type %1 already defined" +,"ISO 8879:1986 12.1p3" +#endif +); +const MessageType1 ParserMessages::duplicateDtd( +MessageType::error, +&libModule, +306 +#ifndef SP_NO_MESSAGE_TEXT +,"document type %1 already defined" +,"ISO 8879:1986 11.1p7" +#endif +); +const MessageType1 ParserMessages::undefinedLinkSet( +MessageType::error, +&libModule, +307 +#ifndef SP_NO_MESSAGE_TEXT +,"link set %1 used in LPD but not defined" +,"ISO 8879:1986 12.2.2p8" +#endif +); +const MessageType1 ParserMessages::duplicateImpliedResult( +MessageType::error, +&libModule, +308 +#ifndef SP_NO_MESSAGE_TEXT +,"#IMPLIED already linked to result element type %1" +,"ISO 8879:1986 12.2.2p6" +#endif +); +const MessageType1 ParserMessages::simpleLinkCount( +MessageType::error, +&libModule, +309 +#ifndef SP_NO_MESSAGE_TEXT +,"number of active simple link processes exceeds quantity specified for SIMPLE parameter in SGML declaration (%1)" +,"ISO 8879:1986 12.1.1.1p1" +#endif +); +const MessageType0 ParserMessages::duplicateExplicitChain( +MessageType::error, +&libModule, +310 +#ifndef SP_NO_MESSAGE_TEXT +,"only one chain of explicit link processes can be active" +,"ISO 8879:1986 7.1p11" +#endif +); +const MessageType1 ParserMessages::explicit1RequiresSourceTypeBase( +MessageType::error, +&libModule, +311 +#ifndef SP_NO_MESSAGE_TEXT +,"source document type name for link type %1 must be base document type since EXPLICIT YES 1" +,"ISO 8879:1986 12.1.2p5 12.1.3p5 12.1.3.1" +#endif +); +const MessageType0 ParserMessages::oneImplicitLink( +MessageType::error, +&libModule, +312 +#ifndef SP_NO_MESSAGE_TEXT +,"only one implicit link process can be active" +,"ISO 8879:1986 7.1p10" +#endif +); +const MessageType1 ParserMessages::sorryLink( +MessageType::warning, +&libModule, +313 +#ifndef SP_NO_MESSAGE_TEXT +,"sorry, link type %1 not activated: only one implicit or explicit link process can be active (with base document type as source document type)" +#endif +); +const MessageType0 ParserMessages::entityReferenceMissingName( +MessageType::error, +&libModule, +314 +#ifndef SP_NO_MESSAGE_TEXT +,"name missing after name group in entity reference" +,"ISO 8879:1986 9.4.4p1 9.4.4p2" +#endif +); +const MessageType1 ParserMessages::explicitNoRequiresSourceTypeBase( +MessageType::error, +&libModule, +315 +#ifndef SP_NO_MESSAGE_TEXT +,"source document type name for link type %1 must be base document type since EXPLICIT NO" +,"ISO 8879:1986 12.1.2p5 12.1.3p5 12.1.3.1" +#endif +); +const MessageType0 ParserMessages::linkActivateTooLate( +MessageType::warning, +&libModule, +316 +#ifndef SP_NO_MESSAGE_TEXT +,"link process must be activated before base DTD" +#endif +); +const MessageType0 ParserMessages::pass2Ee( +MessageType::error, +&libModule, +317 +#ifndef SP_NO_MESSAGE_TEXT +,"unexpected entity end while starting second pass" +#endif +); +const MessageType2 ParserMessages::idlinkElementType( +MessageType::error, +&libModule, +318 +#ifndef SP_NO_MESSAGE_TEXT +,"type %1 of element with ID %2 not associated element type for applicable link rule in ID link set" +,"ISO 8879:1986 12.2.3p2" +#endif +); +const MessageType0 ParserMessages::datatagNotImplemented( +MessageType::error, +&libModule, +319 +#ifndef SP_NO_MESSAGE_TEXT +,"DATATAG feature not implemented" +#endif +); +const MessageType0 ParserMessages::startTagMissingName( +MessageType::error, +&libModule, +320 +#ifndef SP_NO_MESSAGE_TEXT +,"generic identifier specification missing after document type specification in start-tag" +,"ISO 8879:1986 7.4p1" +#endif +); +const MessageType0 ParserMessages::endTagMissingName( +MessageType::error, +&libModule, +321 +#ifndef SP_NO_MESSAGE_TEXT +,"generic identifier specification missing after document type specification in end-tag" +,"ISO 8879:1986 7.5p1" +#endif +); +const MessageType0 ParserMessages::startTagGroupNet( +MessageType::error, +&libModule, +322 +#ifndef SP_NO_MESSAGE_TEXT +,"a NET-enabling start-tag cannot include a document type specification" +,"ISO 8879:1986 7.4.1.3p1" +#endif +); +const MessageType0 ParserMessages::documentElementUndefined( +MessageType::error, +&libModule, +323 +#ifndef SP_NO_MESSAGE_TEXT +,"DTD did not contain element declaration for document type name" +,"ISO 8879:1986 11.1p10" +#endif +); +const MessageType0 ParserMessages::badDefaultSgmlDecl( +MessageType::error, +&libModule, +324 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid default SGML declaration" +#endif +); +const MessageType1L ParserMessages::nonExistentEntityRef( +MessageType::error, +&libModule, +325 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to entity %1 for which no system identifier could be generated" +,0 +,"entity was defined here" +#endif +); +const MessageType0 ParserMessages::pcdataUnreachable( +MessageType::warning, +&libModule, +327 +#ifndef SP_NO_MESSAGE_TEXT +,"content model is mixed but does not allow #PCDATA everywhere" +,"ISO 8879:1986 11.2.4p11" +#endif +); +const MessageType0 ParserMessages::sdRangeNotSingleChar( +MessageType::error, +&libModule, +328 +#ifndef SP_NO_MESSAGE_TEXT +,"start or end of range must specify a single character" +#endif +); +const MessageType0 ParserMessages::sdInvalidRange( +MessageType::error, +&libModule, +329 +#ifndef SP_NO_MESSAGE_TEXT +,"number of first character in range must not exceed number of second character in range" +#endif +); +const MessageType0 ParserMessages::sdEmptyDelimiter( +MessageType::error, +&libModule, +330 +#ifndef SP_NO_MESSAGE_TEXT +,"delimiter cannot be an empty string" +#endif +); +const MessageType0 ParserMessages::tooManyCharsMinimumLiteral( +MessageType::warning, +&libModule, +331 +#ifndef SP_NO_MESSAGE_TEXT +,"too many characters assigned same meaning with minimum literal" +#endif +); +const MessageType1 ParserMessages::defaultedEntityDefined( +MessageType::warning, +&libModule, +332 +#ifndef SP_NO_MESSAGE_TEXT +,"earlier reference to entity %1 used default entity" +#endif +); +const MessageType0 ParserMessages::emptyStartTag( +MessageType::warning, +&libModule, +333 +#ifndef SP_NO_MESSAGE_TEXT +,"empty start-tag" +#endif +); +const MessageType0 ParserMessages::emptyEndTag( +MessageType::warning, +&libModule, +334 +#ifndef SP_NO_MESSAGE_TEXT +,"empty end-tag" +#endif +); +const MessageType1 ParserMessages::unusedMap( +MessageType::warning, +&libModule, +335 +#ifndef SP_NO_MESSAGE_TEXT +,"unused short reference map %1" +#endif +); +const MessageType1 ParserMessages::unusedParamEntity( +MessageType::warning, +&libModule, +336 +#ifndef SP_NO_MESSAGE_TEXT +,"unused parameter entity %1" +#endif +); +const MessageType1 ParserMessages::cannotGenerateSystemIdPublic( +MessageType::warning, +&libModule, +337 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot generate system identifier for public text %1" +#endif +); +const MessageType1 ParserMessages::cannotGenerateSystemIdGeneral( +MessageType::warning, +&libModule, +338 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot generate system identifier for general entity %1" +#endif +); +const MessageType1 ParserMessages::cannotGenerateSystemIdParameter( +MessageType::warning, +&libModule, +339 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot generate system identifier for parameter entity %1" +#endif +); +const MessageType1 ParserMessages::cannotGenerateSystemIdDoctype( +MessageType::warning, +&libModule, +340 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot generate system identifier for document type %1" +#endif +); +const MessageType1 ParserMessages::cannotGenerateSystemIdLinktype( +MessageType::warning, +&libModule, +341 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot generate system identifier for link type %1" +#endif +); +const MessageType1 ParserMessages::cannotGenerateSystemIdNotation( +MessageType::warning, +&libModule, +342 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot generate system identifier for notation %1" +#endif +); +const MessageType1 ParserMessages::excludeIncludeSame( +MessageType::warning, +&libModule, +343 +#ifndef SP_NO_MESSAGE_TEXT +,"element type %1 both included and excluded" +#endif +); +const MessageType1 ParserMessages::implyingDtd( +MessageType::error, +&libModule, +344 +#ifndef SP_NO_MESSAGE_TEXT +,"no document type declaration; implying %1" +#endif +); +const MessageType1 ParserMessages::afdrVersion( +MessageType::error, +&libModule, +345 +#ifndef SP_NO_MESSAGE_TEXT +,"minimum data of AFDR declaration must be \"ISO/IEC 10744:1997\" not %1" +#endif +); +const MessageType0 ParserMessages::missingAfdrDecl( +MessageType::error, +&libModule, +346 +#ifndef SP_NO_MESSAGE_TEXT +,"AFDR declaration required before use of AFDR extensions" +#endif +); +const MessageType0 ParserMessages::enrRequired( +MessageType::error, +&libModule, +347 +#ifndef SP_NO_MESSAGE_TEXT +,"ENR extensions were used but minimum literal was not \"ISO 8879:1986 (ENR)\" or \"ISO 8879:1986 (WWW)\"" +#endif +); +const MessageType1 ParserMessages::numericCharRefLiteralNonSgml( +MessageType::error, +&libModule, +348 +#ifndef SP_NO_MESSAGE_TEXT +,"illegal numeric character reference to non-SGML character %1 in literal" +#endif +); +const MessageType2 ParserMessages::numericCharRefUnknownDesc( +MessageType::error, +&libModule, +349 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot convert character reference to number %1 because description %2 unrecognized" +#endif +); +const MessageType3 ParserMessages::numericCharRefUnknownBase( +MessageType::error, +&libModule, +350 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot convert character reference to number %1 because character %2 from baseset %3 unknown" +#endif +); +const MessageType1 ParserMessages::numericCharRefBadInternal( +MessageType::error, +&libModule, +351 +#ifndef SP_NO_MESSAGE_TEXT +,"character reference to number %1 cannot be converted because of problem with internal character set" +#endif +); +const MessageType1 ParserMessages::numericCharRefNoInternal( +MessageType::error, +&libModule, +352 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot convert character reference to number %1 because character not in internal character set" +#endif +); +const MessageType0 ParserMessages::wwwRequired( +MessageType::error, +&libModule, +353 +#ifndef SP_NO_MESSAGE_TEXT +,"Web SGML adaptations were used but minimum literal was not \"ISO 8879:1986 (WWW)\"" +#endif +); +const MessageType1 ParserMessages::attributeTokenNotUnique( +MessageType::error, +&libModule, +354 +#ifndef SP_NO_MESSAGE_TEXT +,"token %1 can be value for multiple attributes so attribute name required" +#endif +); +const MessageType1 ParserMessages::hexNumberLength( +MessageType::quantityError, +&libModule, +355 +#ifndef SP_NO_MESSAGE_TEXT +,"length of hex number must not exceed NAMELEN (%1)" +#endif +); +const MessageType1 ParserMessages::entityNameSyntax( +MessageType::warning, +&libModule, +356 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a valid name in the declared concrete syntax" +#endif +); +const MessageType0 ParserMessages::cdataContent( +MessageType::warning, +&libModule, +357 +#ifndef SP_NO_MESSAGE_TEXT +,"CDATA declared content" +#endif +); +const MessageType0 ParserMessages::rcdataContent( +MessageType::warning, +&libModule, +358 +#ifndef SP_NO_MESSAGE_TEXT +,"RCDATA declared content" +#endif +); +const MessageType0 ParserMessages::inclusion( +MessageType::warning, +&libModule, +359 +#ifndef SP_NO_MESSAGE_TEXT +,"inclusion" +#endif +); +const MessageType0 ParserMessages::exclusion( +MessageType::warning, +&libModule, +360 +#ifndef SP_NO_MESSAGE_TEXT +,"exclusion" +#endif +); +const MessageType0 ParserMessages::numberDeclaredValue( +MessageType::warning, +&libModule, +361 +#ifndef SP_NO_MESSAGE_TEXT +,"NUMBER or NUMBERS declared value" +#endif +); +const MessageType0 ParserMessages::nameDeclaredValue( +MessageType::warning, +&libModule, +362 +#ifndef SP_NO_MESSAGE_TEXT +,"NAME or NAMES declared value" +#endif +); +const MessageType0 ParserMessages::nutokenDeclaredValue( +MessageType::warning, +&libModule, +363 +#ifndef SP_NO_MESSAGE_TEXT +,"NUTOKEN or NUTOKENS declared value" +#endif +); +const MessageType0 ParserMessages::conrefAttribute( +MessageType::warning, +&libModule, +364 +#ifndef SP_NO_MESSAGE_TEXT +,"CONREF attribute" +#endif +); +const MessageType0 ParserMessages::currentAttribute( +MessageType::warning, +&libModule, +365 +#ifndef SP_NO_MESSAGE_TEXT +,"CURRENT attribute" +#endif +); +const MessageType0 ParserMessages::tempMarkedSection( +MessageType::warning, +&libModule, +366 +#ifndef SP_NO_MESSAGE_TEXT +,"TEMP marked section" +#endif +); +const MessageType0 ParserMessages::instanceIncludeMarkedSection( +MessageType::warning, +&libModule, +367 +#ifndef SP_NO_MESSAGE_TEXT +,"included marked section in the instance" +#endif +); +const MessageType0 ParserMessages::instanceIgnoreMarkedSection( +MessageType::warning, +&libModule, +368 +#ifndef SP_NO_MESSAGE_TEXT +,"ignored marked section in the instance" +#endif +); +const MessageType0 ParserMessages::rcdataMarkedSection( +MessageType::warning, +&libModule, +369 +#ifndef SP_NO_MESSAGE_TEXT +,"RCDATA marked section" +#endif +); +const MessageType0 ParserMessages::piEntity( +MessageType::warning, +&libModule, +370 +#ifndef SP_NO_MESSAGE_TEXT +,"processing instruction entity" +#endif +); +const MessageType0 ParserMessages::bracketEntity( +MessageType::warning, +&libModule, +371 +#ifndef SP_NO_MESSAGE_TEXT +,"bracketed text entity" +#endif +); +const MessageType0 ParserMessages::internalCdataEntity( +MessageType::warning, +&libModule, +372 +#ifndef SP_NO_MESSAGE_TEXT +,"internal CDATA entity" +#endif +); +const MessageType0 ParserMessages::internalSdataEntity( +MessageType::warning, +&libModule, +373 +#ifndef SP_NO_MESSAGE_TEXT +,"internal SDATA entity" +#endif +); +const MessageType0 ParserMessages::externalCdataEntity( +MessageType::warning, +&libModule, +374 +#ifndef SP_NO_MESSAGE_TEXT +,"external CDATA entity" +#endif +); +const MessageType0 ParserMessages::externalSdataEntity( +MessageType::warning, +&libModule, +375 +#ifndef SP_NO_MESSAGE_TEXT +,"external SDATA entity" +#endif +); +const MessageType0 ParserMessages::dataAttributes( +MessageType::warning, +&libModule, +376 +#ifndef SP_NO_MESSAGE_TEXT +,"attribute definition list declaration for notation" +#endif +); +const MessageType0 ParserMessages::rank( +MessageType::warning, +&libModule, +377 +#ifndef SP_NO_MESSAGE_TEXT +,"rank stem" +#endif +); +const MessageType0 ParserMessages::missingSystemId( +MessageType::warning, +&libModule, +378 +#ifndef SP_NO_MESSAGE_TEXT +,"no system id specified" +#endif +); +const MessageType0 ParserMessages::psComment( +MessageType::warning, +&libModule, +379 +#ifndef SP_NO_MESSAGE_TEXT +,"comment in parameter separator" +#endif +); +const MessageType0 ParserMessages::namedCharRef( +MessageType::warning, +&libModule, +380 +#ifndef SP_NO_MESSAGE_TEXT +,"named character reference" +#endif +); +const MessageType0 ParserMessages::andGroup( +MessageType::warning, +&libModule, +381 +#ifndef SP_NO_MESSAGE_TEXT +,"AND group" +#endif +); +const MessageType0 ParserMessages::attributeValueNotLiteral( +MessageType::warning, +&libModule, +382 +#ifndef SP_NO_MESSAGE_TEXT +,"attribute value not a literal" +#endif +); +const MessageType0 ParserMessages::missingAttributeName( +MessageType::warning, +&libModule, +383 +#ifndef SP_NO_MESSAGE_TEXT +,"attribute name missing" +#endif +); +const MessageType0 ParserMessages::elementGroupDecl( +MessageType::warning, +&libModule, +384 +#ifndef SP_NO_MESSAGE_TEXT +,"element declaration for group of element types" +#endif +); +const MessageType0 ParserMessages::attlistGroupDecl( +MessageType::warning, +&libModule, +385 +#ifndef SP_NO_MESSAGE_TEXT +,"attribute definition list declaration for group of element types" +#endif +); +const MessageType0 ParserMessages::emptyCommentDecl( +MessageType::warning, +&libModule, +386 +#ifndef SP_NO_MESSAGE_TEXT +,"empty comment declaration" +#endif +); +const MessageType0 ParserMessages::commentDeclS( +MessageType::warning, +&libModule, +387 +#ifndef SP_NO_MESSAGE_TEXT +,"S separator in comment declaration" +#endif +); +const MessageType0 ParserMessages::commentDeclMultiple( +MessageType::warning, +&libModule, +388 +#ifndef SP_NO_MESSAGE_TEXT +,"multiple comments in comment declaration" +#endif +); +const MessageType0 ParserMessages::missingStatusKeyword( +MessageType::warning, +&libModule, +389 +#ifndef SP_NO_MESSAGE_TEXT +,"no status keyword" +#endif +); +const MessageType0 ParserMessages::multipleStatusKeyword( +MessageType::warning, +&libModule, +390 +#ifndef SP_NO_MESSAGE_TEXT +,"multiple status keywords" +#endif +); +const MessageType0 ParserMessages::instanceParamEntityRef( +MessageType::warning, +&libModule, +391 +#ifndef SP_NO_MESSAGE_TEXT +,"parameter entity reference in document instance" +#endif +); +const MessageType0 ParserMessages::current( +MessageType::warning, +&libModule, +392 +#ifndef SP_NO_MESSAGE_TEXT +,"CURRENT attribute" +#endif +); +const MessageType0 ParserMessages::minimizationParam( +MessageType::warning, +&libModule, +393 +#ifndef SP_NO_MESSAGE_TEXT +,"element type minimization parameter" +#endif +); +const MessageType0 ParserMessages::refc( +MessageType::warning, +&libModule, +394 +#ifndef SP_NO_MESSAGE_TEXT +,"reference not terminated by REFC delimiter" +#endif +); +const MessageType0 ParserMessages::pcdataNotFirstInGroup( +MessageType::warning, +&libModule, +395 +#ifndef SP_NO_MESSAGE_TEXT +,"#PCDATA not first in model group" +#endif +); +const MessageType0 ParserMessages::pcdataInSeqGroup( +MessageType::warning, +&libModule, +396 +#ifndef SP_NO_MESSAGE_TEXT +,"#PCDATA in SEQ group" +#endif +); +const MessageType0 ParserMessages::pcdataInNestedModelGroup( +MessageType::warning, +&libModule, +397 +#ifndef SP_NO_MESSAGE_TEXT +,"#PCDATA in nested model group" +#endif +); +const MessageType0 ParserMessages::pcdataGroupNotRep( +MessageType::warning, +&libModule, +398 +#ifndef SP_NO_MESSAGE_TEXT +,"#PCDATA in model group that does not have REP occurrence indicator" +#endif +); +const MessageType0 ParserMessages::nameGroupNotOr( +MessageType::warning, +&libModule, +399 +#ifndef SP_NO_MESSAGE_TEXT +,"name group or name token group used connector other than OR" +#endif +); +const MessageType0 ParserMessages::piMissingName( +MessageType::warning, +&libModule, +400 +#ifndef SP_NO_MESSAGE_TEXT +,"processing instruction does not start with name" +#endif +); +const MessageType0 ParserMessages::instanceStatusKeywordSpecS( +MessageType::warning, +&libModule, +401 +#ifndef SP_NO_MESSAGE_TEXT +,"S separator in status keyword specification in document instance" +#endif +); +const MessageType0 ParserMessages::externalDataEntityRef( +MessageType::warning, +&libModule, +402 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to external data entity" +#endif +); +const MessageType0 ParserMessages::attributeValueExternalEntityRef( +MessageType::warning, +&libModule, +403 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to external entity in attribute value" +#endif +); +const MessageType1 ParserMessages::dataCharDelim( +MessageType::warning, +&libModule, +404 +#ifndef SP_NO_MESSAGE_TEXT +,"character %1 is the first character of a delimiter but occurred as data" +#endif +); +const MessageType0 ParserMessages::explicitSgmlDecl( +MessageType::warning, +&libModule, +405 +#ifndef SP_NO_MESSAGE_TEXT +,"SGML declaration was not implied" +#endif +); +const MessageType0 ParserMessages::internalSubsetMarkedSection( +MessageType::warning, +&libModule, +406 +#ifndef SP_NO_MESSAGE_TEXT +,"marked section in internal DTD subset" +#endif +); +const MessageType0 ParserMessages::nestcWithoutNet( +MessageType::error, +&libModule, +407 +#ifndef SP_NO_MESSAGE_TEXT +,"NET-enabling start-tag not immediately followed by null end-tag" +#endif +); +const MessageType0 ParserMessages::contentAsyncEntityRef( +MessageType::error, +&libModule, +408 +#ifndef SP_NO_MESSAGE_TEXT +,"entity end in different element from entity reference" +#endif +); +const MessageType0 ParserMessages::immednetRequiresEmptynrm( +MessageType::error, +&libModule, +409 +#ifndef SP_NO_MESSAGE_TEXT +,"NETENABL IMMEDNET requires EMPTYNRM YES" +#endif +); +const MessageType0 ParserMessages::nonSgmlCharRef( +MessageType::warning, +&libModule, +410 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to non-SGML character" +#endif +); +const MessageType0 ParserMessages::defaultEntityDecl( +MessageType::warning, +&libModule, +411 +#ifndef SP_NO_MESSAGE_TEXT +,"declaration of default entity" +#endif +); +const MessageType0 ParserMessages::internalSubsetPsParamEntityRef( +MessageType::warning, +&libModule, +412 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to parameter entity in parameter separator in internal subset" +#endif +); +const MessageType0 ParserMessages::internalSubsetTsParamEntityRef( +MessageType::warning, +&libModule, +413 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to parameter entity in token separator in internal subset" +#endif +); +const MessageType0 ParserMessages::internalSubsetLiteralParamEntityRef( +MessageType::warning, +&libModule, +414 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to parameter entity in parameter literal in internal subset" +#endif +); +const MessageType0 ParserMessages::cannotGenerateSystemIdSgml( +MessageType::error, +&libModule, +415 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot generate system identifier for SGML declaration reference" +#endif +); +const MessageType1 ParserMessages::sdTextClass( +MessageType::error, +&libModule, +416 +#ifndef SP_NO_MESSAGE_TEXT +,"public text class of formal public identifier of SGML declaration must be SD" +#endif +); +const MessageType0 ParserMessages::sgmlDeclRefRequiresWww( +MessageType::error, +&libModule, +417 +#ifndef SP_NO_MESSAGE_TEXT +,"SGML declaration reference was used but minimum literal was not \"ISO 8879:1986 (WWW)\"" +#endif +); +const MessageType0 ParserMessages::pcdataGroupMemberOccurrenceIndicator( +MessageType::warning, +&libModule, +418 +#ifndef SP_NO_MESSAGE_TEXT +,"member of model group containing #PCDATA has occurrence indicator" +#endif +); +const MessageType0 ParserMessages::pcdataGroupMemberModelGroup( +MessageType::warning, +&libModule, +419 +#ifndef SP_NO_MESSAGE_TEXT +,"member of model group containing #PCDATA is a model group" +#endif +); +const MessageType0 ParserMessages::entityRefNone( +MessageType::error, +&libModule, +420 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to non-predefined entity" +#endif +); +const MessageType0 ParserMessages::entityRefInternal( +MessageType::error, +&libModule, +421 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to external entity" +#endif +); +const MessageType0 ParserMessages::implydefEntityDefault( +MessageType::error, +&libModule, +422 +#ifndef SP_NO_MESSAGE_TEXT +,"declaration of default entity conflicts with IMPLYDEF ENTITY YES" +#endif +); +const MessageType0 ParserMessages::sorryActiveDoctypes( +MessageType::error, +&libModule, +423 +#ifndef SP_NO_MESSAGE_TEXT +,"parsing with respect to more than one active doctype not supported" +#endif +); +const MessageType0 ParserMessages::activeDocLink( +MessageType::error, +&libModule, +424 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot have active doctypes and link types at the same time" +,"ISO 8879:1986 7.1" +#endif +); +const MessageType1 ParserMessages::concurrentInstances( +MessageType::error, +&libModule, +425 +#ifndef SP_NO_MESSAGE_TEXT +,"number of concurrent document instances exceeds quantity specified for CONCUR parameter in SGML declaration (%1)" +,"ISO 8879:1986 7.2.1" +#endif +); +const MessageType0 ParserMessages::datatagBaseDtd( +MessageType::error, +&libModule, +426 +#ifndef SP_NO_MESSAGE_TEXT +,"datatag group can only be specified in base document type" +,"ISO 8879:1986 11.2.4.4" +#endif +); +const MessageType0 ParserMessages::emptyStartTagBaseDtd( +MessageType::error, +&libModule, +427 +#ifndef SP_NO_MESSAGE_TEXT +,"element not in the base document type can't have an empty start-tag" +,"ISO 8879:1986 7.4.1.1" +#endif +); +const MessageType0 ParserMessages::emptyEndTagBaseDtd( +MessageType::error, +&libModule, +428 +#ifndef SP_NO_MESSAGE_TEXT +,"element not in base document type can't have an empty end-tag" +,"ISO 8879:1986 7.5.1.1" +#endif +); +const MessageType0 ParserMessages::immediateRecursion( +MessageType::warning, +&libModule, +429 +#ifndef SP_NO_MESSAGE_TEXT +,"immediately recursive element" +#endif +); +const MessageType1 ParserMessages::urnMissingField( +MessageType::error, +&libModule, +430 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid URN %1: missing \":\"" +#endif +); +const MessageType1 ParserMessages::urnMissingPrefix( +MessageType::error, +&libModule, +431 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid URN %1: missing \"urn:\" prefix" +#endif +); +const MessageType1 ParserMessages::urnInvalidNid( +MessageType::error, +&libModule, +432 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid URN %1: invalid namespace identifier" +#endif +); +const MessageType1 ParserMessages::urnInvalidNss( +MessageType::error, +&libModule, +433 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid URN %1: invalid namespace specific string" +#endif +); +const MessageType1 ParserMessages::urnExtraField( +MessageType::error, +&libModule, +434 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid URN %1: extra field" +#endif +); +const MessageType0 ParserMessages::omittedProlog( +MessageType::error, +&libModule, +435 +#ifndef SP_NO_MESSAGE_TEXT +,"prolog can't be omitted unless CONCUR NO and LINK EXPLICIT NO and either IMPLYDEF ELEMENT YES or IMPLYDEF DOCTYPE YES" +#endif +); +const MessageType0 ParserMessages::impliedDocumentElement( +MessageType::error, +&libModule, +436 +#ifndef SP_NO_MESSAGE_TEXT +,"can't determine name of #IMPLIED document element" +#endif +); +const MessageType0 ParserMessages::impliedDoctypeConcurLink( +MessageType::error, +&libModule, +437 +#ifndef SP_NO_MESSAGE_TEXT +,"can't use #IMPLICIT doctype unless CONCUR NO and LINK EXPLICIT NO" +#endif +); +const MessageType0 ParserMessages::sorryImpliedDoctype( +MessageType::error, +&libModule, +438 +#ifndef SP_NO_MESSAGE_TEXT +,"Sorry, #IMPLIED doctypes not implemented" +#endif +); +const MessageType0 ParserMessages::dtdDataEntityReference( +MessageType::warning, +&libModule, +439 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to DTD data entity ignored" +#endif +); +const MessageType2 ParserMessages::parameterEntityNotationUndefined( +MessageType::error, +&libModule, +440 +#ifndef SP_NO_MESSAGE_TEXT +,"notation %1 for parameter entity %2 undefined" +#endif +); +const MessageType1 ParserMessages::dsEntityNotationUndefined( +MessageType::error, +&libModule, +441 +#ifndef SP_NO_MESSAGE_TEXT +,"notation %1 for external subset undefined" +#endif +); +const MessageType1 ParserMessages::specifiedAttributeRedeclared( +MessageType::error, +&libModule, +442 +#ifndef SP_NO_MESSAGE_TEXT +,"attribute %1 can't be redeclared" +,"ISO 8879:1986 K4.4" +#endif +); +const MessageType1 ParserMessages::notationMustNotBeDeclared( +MessageType::error, +&libModule, +443 +#ifndef SP_NO_MESSAGE_TEXT +,"#IMPLICIT attributes have already been specified for notation %1" +#endif +); +const MessageType0 ParserMessages::peroGrpoStartTag( +MessageType::error, +&libModule, +444 +#ifndef SP_NO_MESSAGE_TEXT +,"a name group is not allowed in a parameter entity reference in a start tag" +,"ISO 8879:1986 9.4.4p3" +#endif +); +const MessageType0 ParserMessages::peroGrpoEndTag( +MessageType::warning, +&libModule, +445 +#ifndef SP_NO_MESSAGE_TEXT +,"name group in a parameter entity reference in an end tag (SGML forbids them in start tags)" +,"ISO 8879:1986 9.4.4p3" +#endif +); +const MessageType0 ParserMessages::notationConref( +MessageType::warning, +&libModule, +446 +#ifndef SP_NO_MESSAGE_TEXT +,"if the declared value is NOTATION a default value of CONREF is useless" +#endif +); +const MessageType0 ParserMessages::sorryAllImplicit( +MessageType::error, +&libModule, +447 +#ifndef SP_NO_MESSAGE_TEXT +,"Sorry, #ALL and #IMPLICIT content tokens not implemented" +#endif +); +const MessageFragment ParserMessages::delimStart( +&libModule, +1000 +#ifndef SP_NO_MESSAGE_TEXT +,"delimiter " +#endif +); +const MessageFragment ParserMessages::digit( +&libModule, +1002 +#ifndef SP_NO_MESSAGE_TEXT +,"digit" +#endif +); +const MessageFragment ParserMessages::nameStartCharacter( +&libModule, +1003 +#ifndef SP_NO_MESSAGE_TEXT +,"name start character" +#endif +); +const MessageFragment ParserMessages::sepchar( +&libModule, +1004 +#ifndef SP_NO_MESSAGE_TEXT +,"sepchar" +#endif +); +const MessageFragment ParserMessages::separator( +&libModule, +1005 +#ifndef SP_NO_MESSAGE_TEXT +,"separator" +#endif +); +const MessageFragment ParserMessages::nameCharacter( +&libModule, +1006 +#ifndef SP_NO_MESSAGE_TEXT +,"name character" +#endif +); +const MessageFragment ParserMessages::dataCharacter( +&libModule, +1007 +#ifndef SP_NO_MESSAGE_TEXT +,"data character" +#endif +); +const MessageFragment ParserMessages::minimumDataCharacter( +&libModule, +1008 +#ifndef SP_NO_MESSAGE_TEXT +,"minimum data character" +#endif +); +const MessageFragment ParserMessages::significantCharacter( +&libModule, +1009 +#ifndef SP_NO_MESSAGE_TEXT +,"significant character" +#endif +); +const MessageFragment ParserMessages::recordEnd( +&libModule, +1010 +#ifndef SP_NO_MESSAGE_TEXT +,"record end character" +#endif +); +const MessageFragment ParserMessages::recordStart( +&libModule, +1011 +#ifndef SP_NO_MESSAGE_TEXT +,"record start character" +#endif +); +const MessageFragment ParserMessages::space( +&libModule, +1012 +#ifndef SP_NO_MESSAGE_TEXT +,"space character" +#endif +); +const MessageFragment ParserMessages::listSep( +&libModule, +1013 +#ifndef SP_NO_MESSAGE_TEXT +,", " +#endif +); +const MessageFragment ParserMessages::rangeSep( +&libModule, +1014 +#ifndef SP_NO_MESSAGE_TEXT +,"-" +#endif +); +const MessageFragment ParserMessages::parameterLiteral( +&libModule, +1015 +#ifndef SP_NO_MESSAGE_TEXT +,"parameter literal" +#endif +); +const MessageFragment ParserMessages::dataTagGroup( +&libModule, +1016 +#ifndef SP_NO_MESSAGE_TEXT +,"data tag group" +#endif +); +const MessageFragment ParserMessages::modelGroup( +&libModule, +1017 +#ifndef SP_NO_MESSAGE_TEXT +,"model group" +#endif +); +const MessageFragment ParserMessages::dataTagTemplateGroup( +&libModule, +1018 +#ifndef SP_NO_MESSAGE_TEXT +,"data tag template group" +#endif +); +const MessageFragment ParserMessages::name( +&libModule, +1019 +#ifndef SP_NO_MESSAGE_TEXT +,"name" +#endif +); +const MessageFragment ParserMessages::nameToken( +&libModule, +1020 +#ifndef SP_NO_MESSAGE_TEXT +,"name token" +#endif +); +const MessageFragment ParserMessages::elementToken( +&libModule, +1021 +#ifndef SP_NO_MESSAGE_TEXT +,"element token" +#endif +); +const MessageFragment ParserMessages::inclusions( +&libModule, +1022 +#ifndef SP_NO_MESSAGE_TEXT +,"inclusions" +#endif +); +const MessageFragment ParserMessages::exclusions( +&libModule, +1023 +#ifndef SP_NO_MESSAGE_TEXT +,"exclusions" +#endif +); +const MessageFragment ParserMessages::minimumLiteral( +&libModule, +1024 +#ifndef SP_NO_MESSAGE_TEXT +,"minimum literal" +#endif +); +const MessageFragment ParserMessages::attributeValueLiteral( +&libModule, +1025 +#ifndef SP_NO_MESSAGE_TEXT +,"attribute value literal" +#endif +); +const MessageFragment ParserMessages::systemIdentifier( +&libModule, +1026 +#ifndef SP_NO_MESSAGE_TEXT +,"system identifier" +#endif +); +const MessageFragment ParserMessages::number( +&libModule, +1027 +#ifndef SP_NO_MESSAGE_TEXT +,"number" +#endif +); +const MessageFragment ParserMessages::attributeValue( +&libModule, +1028 +#ifndef SP_NO_MESSAGE_TEXT +,"attribute value" +#endif +); +const MessageFragment ParserMessages::capacityName( +&libModule, +1029 +#ifndef SP_NO_MESSAGE_TEXT +,"name of capacity" +#endif +); +const MessageFragment ParserMessages::generalDelimiteRoleName( +&libModule, +1030 +#ifndef SP_NO_MESSAGE_TEXT +,"name of general delimiter role" +#endif +); +const MessageFragment ParserMessages::referenceReservedName( +&libModule, +1031 +#ifndef SP_NO_MESSAGE_TEXT +,"reference reserved name" +#endif +); +const MessageFragment ParserMessages::quantityName( +&libModule, +1032 +#ifndef SP_NO_MESSAGE_TEXT +,"name of quantity" +#endif +); +const MessageFragment ParserMessages::entityEnd( +&libModule, +1033 +#ifndef SP_NO_MESSAGE_TEXT +,"entity end" +#endif +); +const MessageFragment ParserMessages::shortrefDelim( +&libModule, +1034 +#ifndef SP_NO_MESSAGE_TEXT +,"short reference delimiter" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ParserMessages.h b/lib/ParserMessages.h new file mode 100644 index 0000000..c423591 --- /dev/null +++ b/lib/ParserMessages.h @@ -0,0 +1,961 @@ +// This file was automatically generated from ParserMessages.msg by msggen.pl. +#ifndef ParserMessages_INCLUDED +#define ParserMessages_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct ParserMessages { + // 0 + static const MessageType1 nameLength; + // 1 + static const MessageType1 parameterEntityNameLength; + // 2 + static const MessageType1 numberLength; + // 3 + static const MessageType1 attributeValueLength; + // 4 + static const MessageType0 peroGrpoProlog; + // 5 + static const MessageType0 groupLevel; + // 6 + static const MessageType2 groupCharacter; + // 7 + static const MessageType0 psRequired; + // 8 + static const MessageType2 markupDeclarationCharacter; + // 9 + static const MessageType0 declarationLevel; + // 10 + static const MessageType0 groupEntityEnd; + // 11 + static const MessageType1 invalidToken; + // 12 + static const MessageType0 groupEntityReference; + // 13 + static const MessageType1 duplicateGroupToken; + // 14 + static const MessageType1 groupCount; + // 15 + static const MessageType0 literalLevel; + // 16 + static const MessageType1 literalMinimumData; + // 18 + static const MessageType0 dataTagPatternNonSgml; + // 19 + static const MessageType0 dataTagPatternFunction; + // 20 + static const MessageType0 eroGrpoStartTag; + // 21 + static const MessageType0 eroGrpoProlog; + // 22 + static const MessageType1 functionName; + // 23 + static const MessageType1 characterNumber; + // 24 + static const MessageType1 parameterEntityUndefined; + // 25 + static const MessageType1 entityUndefined; + // 26 + static const MessageType0 rniNameStart; + // 28 + static const MessageType0L commentEntityEnd; + // 30 + static const MessageType0 mixedConnectors; + // 31 + static const MessageType1 noSuchReservedName; + // 32 + static const MessageType1 invalidReservedName; + // 33 + static const MessageType1 minimumLiteralLength; + // 34 + static const MessageType1 tokenizedAttributeValueLength; + // 35 + static const MessageType1 systemIdentifierLength; + // 36 + static const MessageType1 parameterLiteralLength; + // 37 + static const MessageType1 dataTagPatternLiteralLength; + // 38 + static const MessageType0 literalClosingDelimiter; + // 39 + static const MessageType2 paramInvalidToken; + // 40 + static const MessageType2 groupTokenInvalidToken; + // 41 + static const MessageType2 connectorInvalidToken; + // 42 + static const MessageType1 noSuchDeclarationType; + // 43 + static const MessageType1 dtdSubsetDeclaration; + // 44 + static const MessageType1 declSubsetCharacter; + // 45 + static const MessageType0 documentEndDtdSubset; + // 46 + static const MessageType1 prologCharacter; + // 47 + static const MessageType0 documentEndProlog; + // 48 + static const MessageType1 prologDeclaration; + // 49 + static const MessageType1 rankStemGenericIdentifier; + // 50 + static const MessageType0 missingTagMinimization; + // 51 + static const MessageType1 duplicateElementDefinition; + // 52 + static const MessageType0 entityApplicableDtd; + // 53 + static const MessageType1L commentDeclInvalidToken; + // 55 + static const MessageType1 instanceDeclaration; + // 56 + static const MessageType0 contentNonSgml; + // 57 + static const MessageType1 noCurrentRank; + // 58 + static const MessageType1 duplicateAttlistNotation; + // 59 + static const MessageType1 duplicateAttlistElement; + // 60 + static const MessageType0 endTagEntityEnd; + // 61 + static const MessageType1 endTagCharacter; + // 62 + static const MessageType1 endTagInvalidToken; + // 63 + static const MessageType0 pcdataNotAllowed; + // 64 + static const MessageType1 elementNotAllowed; + // 65 + static const MessageType2 missingElementMultiple; + // 66 + static const MessageType2 missingElementInferred; + // 67 + static const MessageType1 startTagEmptyElement; + // 68 + static const MessageType1L omitEndTagDeclare; + // 70 + static const MessageType1L omitEndTagOmittag; + // 72 + static const MessageType1 omitStartTagDeclaredContent; + // 73 + static const MessageType1 elementEndTagNotFinished; + // 74 + static const MessageType1 omitStartTagDeclare; + // 75 + static const MessageType1 taglvlOpenElements; + // 76 + static const MessageType1 undefinedElement; + // 77 + static const MessageType0 emptyEndTagNoOpenElements; + // 78 + static const MessageType1 elementNotFinished; + // 79 + static const MessageType1 elementNotOpen; + // 80 + static const MessageType1 internalParameterDataEntity; + // 81 + static const MessageType1 attributeSpecCharacter; + // 82 + static const MessageType0 unquotedAttributeValue; + // 83 + static const MessageType0 attributeSpecEntityEnd; + // 84 + static const MessageType1 externalParameterDataSubdocEntity; + // 85 + static const MessageType1 duplicateEntityDeclaration; + // 86 + static const MessageType1 duplicateParameterEntityDeclaration; + // 87 + static const MessageType0 piEntityReference; + // 88 + static const MessageType0 internalDataEntityReference; + // 89 + static const MessageType0 externalNonTextEntityReference; + // 90 + static const MessageType0 externalNonTextEntityRcdata; + // 91 + static const MessageType1 entlvl; + // 92 + static const MessageType0 piEntityRcdata; + // 93 + static const MessageType1 recursiveEntityReference; + // 94 + static const MessageType1 undefinedShortrefMapInstance; + // 95 + static const MessageType0 usemapAssociatedElementTypeDtd; + // 96 + static const MessageType0 usemapAssociatedElementTypeInstance; + // 97 + static const MessageType2 undefinedShortrefMapDtd; + // 98 + static const MessageType1 unknownShortrefDelim; + // 99 + static const MessageType1 delimDuplicateMap; + // 100 + static const MessageType0 noDocumentElement; + // 102 + static const MessageType0 processingInstructionEntityEnd; + // 103 + static const MessageType1 processingInstructionLength; + // 104 + static const MessageType0 processingInstructionClose; + // 105 + static const MessageType0 attributeSpecNameTokenExpected; + // 106 + static const MessageType1 noSuchAttributeToken; + // 107 + static const MessageType0 attributeNameShorttag; + // 108 + static const MessageType1 noSuchAttribute; + // 109 + static const MessageType0 attributeValueExpected; + // 110 + static const MessageType1 nameTokenLength; + // 111 + static const MessageType0 attributeSpecLiteral; + // 112 + static const MessageType1 duplicateAttributeSpec; + // 113 + static const MessageType1 duplicateAttributeDef; + // 114 + static const MessageType0 emptyDataAttributeSpec; + // 115 + static const MessageType0 markedSectionEnd; + // 116 + static const MessageType1 markedSectionLevel; + // 117 + static const MessageType0L unclosedMarkedSection; + // 119 + static const MessageType0 specialParseEntityEnd; + // 120 + static const MessageType2 normalizedAttributeValueLength; + // 121 + static const MessageType0 attributeValueSyntax; + // 122 + static const MessageType2 attributeValueChar; + // 123 + static const MessageType1 attributeValueMultiple; + // 124 + static const MessageType2 attributeValueNumberToken; + // 125 + static const MessageType2 attributeValueName; + // 126 + static const MessageType1 attributeMissing; + // 127 + static const MessageType1 requiredAttributeMissing; + // 128 + static const MessageType1 currentAttributeMissing; + // 129 + static const MessageType1 invalidNotationAttribute; + // 130 + static const MessageType1 invalidEntityAttribute; + // 131 + static const MessageType3 attributeValueNotInGroup; + // 132 + static const MessageType1 notDataOrSubdocEntity; + // 133 + static const MessageType3 ambiguousModelInitial; + // 134 + static const MessageType5 ambiguousModel; + // 135 + static const MessageType5 ambiguousModelSingleAnd; + // 136 + static const MessageType6 ambiguousModelMultipleAnd; + // 137 + static const MessageType1L commentDeclarationCharacter; + // 139 + static const MessageType1 nonSgmlCharacter; + // 140 + static const MessageType0 dataMarkedSectionDeclSubset; + // 141 + static const MessageType1L duplicateId; + // 143 + static const MessageType1 notFixedValue; + // 144 + static const MessageType1 sdCommentSignificant; + // 145 + static const MessageType1 standardVersion; + // 146 + static const MessageType1 namingBeforeLcnmstrt; + // 147 + static const MessageType1 sdEntityEnd; + // 148 + static const MessageType2 sdInvalidNameToken; + // 149 + static const MessageType1 numberTooBig; + // 150 + static const MessageType1 sdLiteralSignificant; + // 151 + static const MessageType1 syntaxCharacterNumber; + // 152 + static const MessageType0 sdParameterEntity; + // 153 + static const MessageType2 sdParamInvalidToken; + // 154 + static const MessageType0 giveUp; + // 155 + static const MessageType1 sdMissingCharacters; + // 156 + static const MessageType1 missingMinimumChars; + // 157 + static const MessageType1 duplicateCharNumbers; + // 158 + static const MessageType1 codeSetHoles; + // 159 + static const MessageType1 basesetCharsMissing; + // 160 + static const MessageType1 documentCharMax; + // 161 + static const MessageType1 fpiMissingField; + // 162 + static const MessageType1 fpiMissingTextClassSpace; + // 163 + static const MessageType1 fpiInvalidTextClass; + // 164 + static const MessageType1 fpiInvalidLanguage; + // 165 + static const MessageType1 fpiIllegalDisplayVersion; + // 166 + static const MessageType1 fpiExtraField; + // 167 + static const MessageType0 notationIdentifierTextClass; + // 168 + static const MessageType1 unknownBaseset; + // 169 + static const MessageType2 lexicalAmbiguity; + // 170 + static const MessageType1 missingSignificant; + // 171 + static const MessageType1 translateSyntaxCharDoc; + // 172 + static const MessageType1 translateSyntaxCharInternal; + // 173 + static const MessageType1 missingSyntaxChar; + // 174 + static const MessageType1 unknownCapacitySet; + // 175 + static const MessageType1 duplicateCapacity; + // 176 + static const MessageType1 capacityExceedsTotalcap; + // 177 + static const MessageType1 unknownPublicSyntax; + // 178 + static const MessageType0 nmstrtLength; + // 179 + static const MessageType0 nmcharLength; + // 180 + static const MessageType1 subdocLevel; + // 181 + static const MessageType1 subdocEntity; + // 182 + static const MessageType0 parameterEntityNotEnded; + // 183 + static const MessageType1 missingId; + // 184 + static const MessageType1 dtdUndefinedElement; + // 185 + static const MessageType1 elementNotFinishedDocumentEnd; + // 186 + static const MessageType0 subdocGiveUp; + // 187 + static const MessageType0 noDtd; + // 188 + static const MessageType0 noDtdSubset; + // 189 + static const MessageType0 notSgml; + // 190 + static const MessageType1 taglen; + // 191 + static const MessageType0 groupParameterEntityNotEnded; + // 192 + static const MessageType1 invalidSgmlChar; + // 193 + static const MessageType1 translateDocChar; + // 194 + static const MessageType1 attributeValueLengthNeg; + // 195 + static const MessageType1 tokenizedAttributeValueLengthNeg; + // 196 + static const MessageType1 scopeInstanceQuantity; + // 197 + static const MessageType1 basesetTextClass; + // 198 + static const MessageType1 capacityTextClass; + // 199 + static const MessageType1 syntaxTextClass; + // 200 + static const MessageType0 msocharRequiresMsichar; + // 201 + static const MessageType1 switchNotMarkup; + // 202 + static const MessageType1 switchNotInCharset; + // 203 + static const MessageType1 ambiguousDocCharacter; + // 204 + static const MessageType1 oneFunction; + // 205 + static const MessageType1 duplicateFunctionName; + // 206 + static const MessageType1 missingSignificant646; + // 207 + static const MessageType1 generalDelimAllFunction; + // 208 + static const MessageType1 nmcharLetter; + // 209 + static const MessageType1 nmcharDigit; + // 210 + static const MessageType1 nmcharRe; + // 211 + static const MessageType1 nmcharRs; + // 212 + static const MessageType1 nmcharSpace; + // 213 + static const MessageType1 nmcharSepchar; + // 214 + static const MessageType1 switchLetterDigit; + // 215 + static const MessageType0 zeroNumberOfCharacters; + // 216 + static const MessageType1 nameReferenceReservedName; + // 217 + static const MessageType1 ambiguousReservedName; + // 218 + static const MessageType1 duplicateReservedName; + // 219 + static const MessageType1 reservedNameSyntax; + // 220 + static const MessageType1 multipleBSequence; + // 221 + static const MessageType1 blankAdjacentBSequence; + // 222 + static const MessageType2 delimiterLength; + // 223 + static const MessageType2 reservedNameLength; + // 224 + static const MessageType1 nmcharNmstrt; + // 225 + static const MessageType0 scopeInstanceSyntaxCharset; + // 226 + static const MessageType0 emptyOmitEndTag; + // 227 + static const MessageType1 conrefOmitEndTag; + // 228 + static const MessageType1 conrefEmpty; + // 229 + static const MessageType1 notationEmpty; + // 230 + static const MessageType0 dataAttributeDeclaredValue; + // 231 + static const MessageType0 dataAttributeDefaultValue; + // 232 + static const MessageType2 attcnt; + // 233 + static const MessageType0 idDeclaredValue; + // 234 + static const MessageType1 multipleIdAttributes; + // 235 + static const MessageType1 multipleNotationAttributes; + // 236 + static const MessageType1 duplicateAttributeToken; + // 237 + static const MessageType1 notationNoAttributes; + // 238 + static const MessageType2 entityNotationUndefined; + // 239 + static const MessageType2 mapEntityUndefined; + // 240 + static const MessageType1 attlistNotationUndefined; + // 241 + static const MessageType1 bracketedLitlen; + // 242 + static const MessageType1 genericIdentifierLength; + // 243 + static const MessageType0 instanceStartOmittag; + // 244 + static const MessageType1 grplvl; + // 245 + static const MessageType1 grpgtcnt; + // 246 + static const MessageType0 unclosedStartTagShorttag; + // 247 + static const MessageType0 netEnablingStartTagShorttag; + // 248 + static const MessageType0 unclosedEndTagShorttag; + // 249 + static const MessageType0 multipleDtds; + // 250 + static const MessageType0 afterDocumentElementEntityEnd; + // 251 + static const MessageType1 declarationAfterDocumentElement; + // 252 + static const MessageType0 characterReferenceAfterDocumentElement; + // 253 + static const MessageType0 entityReferenceAfterDocumentElement; + // 254 + static const MessageType0 markedSectionAfterDocumentElement; + // 255 + static const MessageType3 requiredElementExcluded; + // 256 + static const MessageType3 invalidExclusion; + // 257 + static const MessageType0 attributeValueShorttag; + // 258 + static const MessageType0 conrefNotation; + // 259 + static const MessageType1 duplicateNotationDeclaration; + // 260 + static const MessageType1L duplicateShortrefDeclaration; + // 262 + static const MessageType1 duplicateDelimGeneral; + // 263 + static const MessageType1 idrefGrpcnt; + // 264 + static const MessageType1 entityNameGrpcnt; + // 265 + static const MessageType2 attsplen; + // 266 + static const MessageType1 duplicateDelimShortref; + // 267 + static const MessageType1 duplicateDelimShortrefSet; + // 268 + static const MessageType1 defaultEntityInAttribute; + // 269 + static const MessageType1 defaultEntityReference; + // 270 + static const MessageType2 mapDefaultEntity; + // 271 + static const MessageType1 noSuchDtd; + // 272 + static const MessageType1 noLpdSubset; + // 273 + static const MessageType0 assocElementDifferentAtts; + // 274 + static const MessageType1 duplicateLinkSet; + // 275 + static const MessageType0 emptyResultAttributeSpec; + // 276 + static const MessageType1 noSuchSourceElement; + // 277 + static const MessageType1 noSuchResultElement; + // 278 + static const MessageType0 documentEndLpdSubset; + // 279 + static const MessageType1 lpdSubsetDeclaration; + // 280 + static const MessageType0 idlinkDeclSimple; + // 281 + static const MessageType0 linkDeclSimple; + // 282 + static const MessageType1 simpleLinkAttlistElement; + // 283 + static const MessageType0 shortrefOnlyInBaseDtd; + // 284 + static const MessageType0 usemapOnlyInBaseDtd; + // 285 + static const MessageType0 linkAttributeDefaultValue; + // 286 + static const MessageType0 linkAttributeDeclaredValue; + // 287 + static const MessageType0 simpleLinkFixedAttribute; + // 288 + static const MessageType0 duplicateIdLinkSet; + // 289 + static const MessageType1 noInitialLinkSet; + // 290 + static const MessageType1 notationUndefinedSourceDtd; + // 291 + static const MessageType0 simpleLinkResultNotImplied; + // 292 + static const MessageType0 simpleLinkFeature; + // 293 + static const MessageType0 implicitLinkFeature; + // 294 + static const MessageType0 explicitLinkFeature; + // 295 + static const MessageType0 lpdBeforeBaseDtd; + // 296 + static const MessageType0 dtdAfterLpd; + // 297 + static const MessageType1 unstableLpdGeneralEntity; + // 298 + static const MessageType1 unstableLpdParameterEntity; + // 299 + static const MessageType1 multipleIdLinkRuleAttribute; + // 300 + static const MessageType1 multipleLinkRuleAttribute; + // 301 + static const MessageType2 uselinkBadLinkSet; + // 302 + static const MessageType1 uselinkSimpleLpd; + // 303 + static const MessageType1 uselinkBadLinkType; + // 304 + static const MessageType1 duplicateDtdLpd; + // 305 + static const MessageType1 duplicateLpd; + // 306 + static const MessageType1 duplicateDtd; + // 307 + static const MessageType1 undefinedLinkSet; + // 308 + static const MessageType1 duplicateImpliedResult; + // 309 + static const MessageType1 simpleLinkCount; + // 310 + static const MessageType0 duplicateExplicitChain; + // 311 + static const MessageType1 explicit1RequiresSourceTypeBase; + // 312 + static const MessageType0 oneImplicitLink; + // 313 + static const MessageType1 sorryLink; + // 314 + static const MessageType0 entityReferenceMissingName; + // 315 + static const MessageType1 explicitNoRequiresSourceTypeBase; + // 316 + static const MessageType0 linkActivateTooLate; + // 317 + static const MessageType0 pass2Ee; + // 318 + static const MessageType2 idlinkElementType; + // 319 + static const MessageType0 datatagNotImplemented; + // 320 + static const MessageType0 startTagMissingName; + // 321 + static const MessageType0 endTagMissingName; + // 322 + static const MessageType0 startTagGroupNet; + // 323 + static const MessageType0 documentElementUndefined; + // 324 + static const MessageType0 badDefaultSgmlDecl; + // 325 + static const MessageType1L nonExistentEntityRef; + // 327 + static const MessageType0 pcdataUnreachable; + // 328 + static const MessageType0 sdRangeNotSingleChar; + // 329 + static const MessageType0 sdInvalidRange; + // 330 + static const MessageType0 sdEmptyDelimiter; + // 331 + static const MessageType0 tooManyCharsMinimumLiteral; + // 332 + static const MessageType1 defaultedEntityDefined; + // 333 + static const MessageType0 emptyStartTag; + // 334 + static const MessageType0 emptyEndTag; + // 335 + static const MessageType1 unusedMap; + // 336 + static const MessageType1 unusedParamEntity; + // 337 + static const MessageType1 cannotGenerateSystemIdPublic; + // 338 + static const MessageType1 cannotGenerateSystemIdGeneral; + // 339 + static const MessageType1 cannotGenerateSystemIdParameter; + // 340 + static const MessageType1 cannotGenerateSystemIdDoctype; + // 341 + static const MessageType1 cannotGenerateSystemIdLinktype; + // 342 + static const MessageType1 cannotGenerateSystemIdNotation; + // 343 + static const MessageType1 excludeIncludeSame; + // 344 + static const MessageType1 implyingDtd; + // 345 + static const MessageType1 afdrVersion; + // 346 + static const MessageType0 missingAfdrDecl; + // 347 + static const MessageType0 enrRequired; + // 348 + static const MessageType1 numericCharRefLiteralNonSgml; + // 349 + static const MessageType2 numericCharRefUnknownDesc; + // 350 + static const MessageType3 numericCharRefUnknownBase; + // 351 + static const MessageType1 numericCharRefBadInternal; + // 352 + static const MessageType1 numericCharRefNoInternal; + // 353 + static const MessageType0 wwwRequired; + // 354 + static const MessageType1 attributeTokenNotUnique; + // 355 + static const MessageType1 hexNumberLength; + // 356 + static const MessageType1 entityNameSyntax; + // 357 + static const MessageType0 cdataContent; + // 358 + static const MessageType0 rcdataContent; + // 359 + static const MessageType0 inclusion; + // 360 + static const MessageType0 exclusion; + // 361 + static const MessageType0 numberDeclaredValue; + // 362 + static const MessageType0 nameDeclaredValue; + // 363 + static const MessageType0 nutokenDeclaredValue; + // 364 + static const MessageType0 conrefAttribute; + // 365 + static const MessageType0 currentAttribute; + // 366 + static const MessageType0 tempMarkedSection; + // 367 + static const MessageType0 instanceIncludeMarkedSection; + // 368 + static const MessageType0 instanceIgnoreMarkedSection; + // 369 + static const MessageType0 rcdataMarkedSection; + // 370 + static const MessageType0 piEntity; + // 371 + static const MessageType0 bracketEntity; + // 372 + static const MessageType0 internalCdataEntity; + // 373 + static const MessageType0 internalSdataEntity; + // 374 + static const MessageType0 externalCdataEntity; + // 375 + static const MessageType0 externalSdataEntity; + // 376 + static const MessageType0 dataAttributes; + // 377 + static const MessageType0 rank; + // 378 + static const MessageType0 missingSystemId; + // 379 + static const MessageType0 psComment; + // 380 + static const MessageType0 namedCharRef; + // 381 + static const MessageType0 andGroup; + // 382 + static const MessageType0 attributeValueNotLiteral; + // 383 + static const MessageType0 missingAttributeName; + // 384 + static const MessageType0 elementGroupDecl; + // 385 + static const MessageType0 attlistGroupDecl; + // 386 + static const MessageType0 emptyCommentDecl; + // 387 + static const MessageType0 commentDeclS; + // 388 + static const MessageType0 commentDeclMultiple; + // 389 + static const MessageType0 missingStatusKeyword; + // 390 + static const MessageType0 multipleStatusKeyword; + // 391 + static const MessageType0 instanceParamEntityRef; + // 392 + static const MessageType0 current; + // 393 + static const MessageType0 minimizationParam; + // 394 + static const MessageType0 refc; + // 395 + static const MessageType0 pcdataNotFirstInGroup; + // 396 + static const MessageType0 pcdataInSeqGroup; + // 397 + static const MessageType0 pcdataInNestedModelGroup; + // 398 + static const MessageType0 pcdataGroupNotRep; + // 399 + static const MessageType0 nameGroupNotOr; + // 400 + static const MessageType0 piMissingName; + // 401 + static const MessageType0 instanceStatusKeywordSpecS; + // 402 + static const MessageType0 externalDataEntityRef; + // 403 + static const MessageType0 attributeValueExternalEntityRef; + // 404 + static const MessageType1 dataCharDelim; + // 405 + static const MessageType0 explicitSgmlDecl; + // 406 + static const MessageType0 internalSubsetMarkedSection; + // 407 + static const MessageType0 nestcWithoutNet; + // 408 + static const MessageType0 contentAsyncEntityRef; + // 409 + static const MessageType0 immednetRequiresEmptynrm; + // 410 + static const MessageType0 nonSgmlCharRef; + // 411 + static const MessageType0 defaultEntityDecl; + // 412 + static const MessageType0 internalSubsetPsParamEntityRef; + // 413 + static const MessageType0 internalSubsetTsParamEntityRef; + // 414 + static const MessageType0 internalSubsetLiteralParamEntityRef; + // 415 + static const MessageType0 cannotGenerateSystemIdSgml; + // 416 + static const MessageType1 sdTextClass; + // 417 + static const MessageType0 sgmlDeclRefRequiresWww; + // 418 + static const MessageType0 pcdataGroupMemberOccurrenceIndicator; + // 419 + static const MessageType0 pcdataGroupMemberModelGroup; + // 420 + static const MessageType0 entityRefNone; + // 421 + static const MessageType0 entityRefInternal; + // 422 + static const MessageType0 implydefEntityDefault; + // 423 + static const MessageType0 sorryActiveDoctypes; + // 424 + static const MessageType0 activeDocLink; + // 425 + static const MessageType1 concurrentInstances; + // 426 + static const MessageType0 datatagBaseDtd; + // 427 + static const MessageType0 emptyStartTagBaseDtd; + // 428 + static const MessageType0 emptyEndTagBaseDtd; + // 429 + static const MessageType0 immediateRecursion; + // 430 + static const MessageType1 urnMissingField; + // 431 + static const MessageType1 urnMissingPrefix; + // 432 + static const MessageType1 urnInvalidNid; + // 433 + static const MessageType1 urnInvalidNss; + // 434 + static const MessageType1 urnExtraField; + // 435 + static const MessageType0 omittedProlog; + // 436 + static const MessageType0 impliedDocumentElement; + // 437 + static const MessageType0 impliedDoctypeConcurLink; + // 438 + static const MessageType0 sorryImpliedDoctype; + // 439 + static const MessageType0 dtdDataEntityReference; + // 440 + static const MessageType2 parameterEntityNotationUndefined; + // 441 + static const MessageType1 dsEntityNotationUndefined; + // 442 + static const MessageType1 specifiedAttributeRedeclared; + // 443 + static const MessageType1 notationMustNotBeDeclared; + // 444 + static const MessageType0 peroGrpoStartTag; + // 445 + static const MessageType0 peroGrpoEndTag; + // 446 + static const MessageType0 notationConref; + // 447 + static const MessageType0 sorryAllImplicit; + // 1000 + static const MessageFragment delimStart; + // 1002 + static const MessageFragment digit; + // 1003 + static const MessageFragment nameStartCharacter; + // 1004 + static const MessageFragment sepchar; + // 1005 + static const MessageFragment separator; + // 1006 + static const MessageFragment nameCharacter; + // 1007 + static const MessageFragment dataCharacter; + // 1008 + static const MessageFragment minimumDataCharacter; + // 1009 + static const MessageFragment significantCharacter; + // 1010 + static const MessageFragment recordEnd; + // 1011 + static const MessageFragment recordStart; + // 1012 + static const MessageFragment space; + // 1013 + static const MessageFragment listSep; + // 1014 + static const MessageFragment rangeSep; + // 1015 + static const MessageFragment parameterLiteral; + // 1016 + static const MessageFragment dataTagGroup; + // 1017 + static const MessageFragment modelGroup; + // 1018 + static const MessageFragment dataTagTemplateGroup; + // 1019 + static const MessageFragment name; + // 1020 + static const MessageFragment nameToken; + // 1021 + static const MessageFragment elementToken; + // 1022 + static const MessageFragment inclusions; + // 1023 + static const MessageFragment exclusions; + // 1024 + static const MessageFragment minimumLiteral; + // 1025 + static const MessageFragment attributeValueLiteral; + // 1026 + static const MessageFragment systemIdentifier; + // 1027 + static const MessageFragment number; + // 1028 + static const MessageFragment attributeValue; + // 1029 + static const MessageFragment capacityName; + // 1030 + static const MessageFragment generalDelimiteRoleName; + // 1031 + static const MessageFragment referenceReservedName; + // 1032 + static const MessageFragment quantityName; + // 1033 + static const MessageFragment entityEnd; + // 1034 + static const MessageFragment shortrefDelim; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ParserMessages_INCLUDED */ diff --git a/lib/ParserMessages.msg b/lib/ParserMessages.msg new file mode 100644 index 0000000..14b27a3 --- /dev/null +++ b/lib/ParserMessages.msg @@ -0,0 +1,487 @@ +# Copyright (c) 1994, 1995, 1996 James Clark +# See the file COPYING for copying permission. +# Next line tells msggen to generate a .cxx file. +!cxx +=0 +# Format is+ +# TN+tag+ISO 8879:1986 relevant clauses+message +# where T is a letter indicating the type, and N is the number of arguments. +Q1+nameLength+ISO 8879:1986 9.3.1+length of name must not exceed NAMELEN (%1) +Q1+parameterEntityNameLength+ISO 8879:1986 10.5.1.1+length of parameter entity name must not exceed NAMELEN less the length of the PERO delimiter (%1) +Q1+numberLength+ISO 8879:1986 9.3.1+length of number must not exceed NAMELEN (%1) +Q1+attributeValueLength+ISO 8879:1986 7.9.4.5+length of attribute value must not exceed LITLEN less NORMSEP (%1) +E0+peroGrpoProlog+ISO 8879:1986 9.4.4p3+a name group is not allowed in a parameter entity reference in the prolog +E0+groupLevel+ISO 8879:1986 10.1.3p8+an entity end in a token separator must terminate an entity referenced in the same group +E2+groupCharacter++character %1 invalid: only %2 and token separators allowed +E0+psRequired+ISO 8879:1986 10.1.1p4+a parameter separator is required after a number that is followed by a name start character +E2+markupDeclarationCharacter++character %1 invalid: only %2 and parameter separators allowed +E0+declarationLevel+ISO 8879:1986 10.1.1p3+an entity end in a parameter separator must terminate an entity referenced in the same declaration +E0+groupEntityEnd+ISO 8879:1986 10.1.3p8+an entity end is not allowed in a token separator that does not follow a token +E1+invalidToken++%1 is not a valid token here +E0+groupEntityReference+ISO 8879:1986 10.1.3p7+a parameter entity reference can only occur in a group where a token could occur +E1+duplicateGroupToken+ISO 8879:1986 10.1.3p6+token %1 has already occurred in this group +Q1+groupCount+ISO 8879:1986 10.1.3.1+the number of tokens in a group must not exceed GRPCNT (%1) +E0+literalLevel+ISO 8879:1986 10.1.2p6 9.1.1p3+an entity end in a literal must terminate an entity referenced in the same literal +E1+literalMinimumData+ISO 8879:1986 10.1.7p3+character %1 invalid: only minimum data characters allowed +-E0+literalNonSgml+ISO 8879:1986 9.2p2+non-SGML character number %1 not allowed in literal +E0+dataTagPatternNonSgml+ISO 8879:1986 11.2.4.4p9+a parameter literal in a data tag pattern must not contain a numeric character reference to a non-SGML character +E0+dataTagPatternFunction+ISO 8879:1986 11.2.4.4p9+a parameter literal in a data tag pattern must not contain a numeric character reference to a function character +E0+eroGrpoStartTag+ISO 8879:1986 9.4.4p3+a name group is not allowed in a general entity reference in a start tag +E0+eroGrpoProlog+ISO 8879:1986 9.4.4p3+a name group is not allowed in a general entity reference in the prolog +E1+functionName+ISO 8879:1986 9.5p4+%1 is not a function name +E1+characterNumber+ISO 8879:1986 4.36+%1 is not a character number in the document character set +E1+parameterEntityUndefined+ISO 8879:1986 9.4.4.1p2+parameter entity %1 not defined +E1+entityUndefined+ISO 8879:1986 9.4.4.1p2+general entity %1 not defined and no default entity +E0+rniNameStart++RNI delimiter must be followed by name start character +-E0+commentNonSgml+ISO 8879:1986 10.3p2+non-SGML character not allowed in comment +E0+commentEntityEnd+ISO 8879:1986 10.3p2+unterminated comment: found end of entity inside comment+comment started here +W0+mixedConnectors+ISO 8879:1986 10.1.3p4+only one type of connector should be used in a single group +E1+noSuchReservedName++%1 is not a reserved name +E1+invalidReservedName++%1 is not allowed as a reserved name here +Q1+minimumLiteralLength+ISO 8879:1986 10.1.7.1+length of interpreted minimum literal must not exceed reference LITLEN (%1) +Q1+tokenizedAttributeValueLength+ISO 8879:1986 7.9.4.5 7.9.3p5+length of tokenized attribute value must not exceed LITLEN less NORMSEP (%1) +Q1+systemIdentifierLength+ISO 8879:1986 10.1.6.1+length of system identifier must not exceed LITLEN (%1) +Q1+parameterLiteralLength+ISO 8879:1986 10.1.2.1+length of interpreted parameter literal must not exceed LITLEN (%1) +Q1+dataTagPatternLiteralLength+ISO 8879:1986 11.2.4.5p3+length of interpreted parameter literal in data tag pattern must not exceed DTEMPLEN (%1) +E0+literalClosingDelimiter++literal is missing closing delimiter +E2+paramInvalidToken++%1 invalid: only %2 and parameter separators are allowed +E2+groupTokenInvalidToken++%1 invalid: only %2 and token separators are allowed +E2+connectorInvalidToken++%1 invalid: only %2 and token separators are allowed +E1+noSuchDeclarationType++unknown declaration type %1 +E1+dtdSubsetDeclaration++%1 declaration not allowed in DTD subset +# +E1+declSubsetCharacter++character %1 not allowed in declaration subset +E0+documentEndDtdSubset++end of document in DTD subset +E1+prologCharacter++character %1 not allowed in prolog +E0+documentEndProlog++end of document in prolog +E1+prologDeclaration++%1 declaration not allowed in prolog +E1+rankStemGenericIdentifier+ISO 8879:1986 11.2.1p2+%1 used both a rank stem and generic identifier +E0+missingTagMinimization+ISO 8879:1986 11.2p3+omitted tag minimization parameter can be omitted only if OMITTAG NO is specified +E1+duplicateElementDefinition+ISO 8879:1986 11.2p2+element type %1 already defined +E0+entityApplicableDtd++entity reference with no applicable DTD +E1+commentDeclInvalidToken+ISO 8879:1986 10.3p1+invalid comment declaration: found %1 outside comment but inside comment declaration+comment declaration started here +E1+instanceDeclaration++%1 declaration not allowed in instance +E0+contentNonSgml++non-SGML character not allowed in content +E1+noCurrentRank++no current rank for rank stem %1 +E1+duplicateAttlistNotation+ISO 8879:1986 11.4.1.1p4+duplicate attribute definition list for notation %1 +E1+duplicateAttlistElement+ISO 8879:1986 11.3p4+duplicate attribute definition list for element %1 +E0+endTagEntityEnd++entity end not allowed in end tag +E1+endTagCharacter++character %1 not allowed in end tag +E1+endTagInvalidToken++%1 invalid: only S separators and TAGC allowed here +E0+pcdataNotAllowed++character data is not allowed here +E1+elementNotAllowed++document type does not allow element %1 here +E2+missingElementMultiple++document type does not allow element %1 here; missing one of %2 start-tag +E2+missingElementInferred++document type does not allow element %1 here; assuming missing %2 start-tag +E1+startTagEmptyElement+ISO 8879:1986 7.3.1.1p3+no start tag specified for implied empty element %1 +E1+omitEndTagDeclare++end tag for %1 omitted, but its declaration does not permit this+start tag was here +E1+omitEndTagOmittag+ISO 8879:1986 7.3.1p1+end tag for %1 omitted, but OMITTAG NO was specified+start tag was here +E1+omitStartTagDeclaredContent+ISO 8879:1986 7.3.1.1p2+start tag omitted for element %1 with declared content +E1+elementEndTagNotFinished++end tag for %1 which is not finished +E1+omitStartTagDeclare++start tag for %1 omitted, but its declaration does not permit this +Q1+taglvlOpenElements++number of open elements exceeds TAGLVL (%1) +E1+undefinedElement++element %1 undefined +E0+emptyEndTagNoOpenElements++empty end tag but no open elements +E1+elementNotFinished++%1 not finished but containing element ended +E1+elementNotOpen++end tag for element %1 which is not open +E1+internalParameterDataEntity++internal parameter entity %1 cannot be CDATA or SDATA +E1+attributeSpecCharacter++character %1 not allowed in attribute specification list +E0+unquotedAttributeValue++an attribute value must be a literal unless it contains only name characters +E0+attributeSpecEntityEnd++entity end not allowed in attribute specification list except in attribute value literal +E1+externalParameterDataSubdocEntity++external parameter entity %1 cannot be CDATA, SDATA, NDATA or SUBDOC +W1+duplicateEntityDeclaration++duplicate declaration of entity %1 +W1+duplicateParameterEntityDeclaration++duplicate declaration of parameter entity %1 +E0+piEntityReference+ISO 8879:1986 10.5.3p9+a reference to a PI entity is allowed only in a context where a processing instruction could occur +E0+internalDataEntityReference+ISO 8879:1986 10.5.3p9+a reference to a CDATA or SDATA entity is allowed only in a context where a data character could occur +E0+externalNonTextEntityReference+ISO 8879:1986 9.4p0+a reference to a subdocument entity or external data entity is allowed only in a context where a data character could occur +E0+externalNonTextEntityRcdata+ISO 8879:1986 9.4p0+a reference to a subdocument entity or external data entity is not allowed in replaceable character data +Q1+entlvl+ISO 8879:1986 9.4.1+the number of open entities cannot exceed ENTLVL (%1) +E0+piEntityRcdata+ISO 8879:1986 10.5.3p9+a reference to a PI entity is not allowed in replaceable character data +E1+recursiveEntityReference+ISO 8879:1986 9.4p4+entity %1 is already open +E1+undefinedShortrefMapInstance+ISO 8879:1986 11.6.2p2+short reference map %1 not defined +E0+usemapAssociatedElementTypeDtd+ISO 8879:1986 11.6.1p1+short reference map in DTD must specify associated element type +E0+usemapAssociatedElementTypeInstance+ISO 8879:1986 11.6.2p1+short reference map in document instance cannot specify associated element type +#092 +E2+undefinedShortrefMapDtd+ISO 8879:1986 11.6.1p2+short reference map %1 for element %2 not defined in DTD +E1+unknownShortrefDelim+ISO 8879:1986 11.5p4+%1 is not a short reference delimiter +E1+delimDuplicateMap+ISO 8879:1986 11.5p6+short reference delimiter %1 already mapped in this declaration +E0+noDocumentElement++no document element +-E0+ +E0+processingInstructionEntityEnd++entity end not allowed in processing instruction +Q1+processingInstructionLength+ISO 8879:1986 8.1p1+length of processing instruction must not exceed PILEN (%1) +E0+processingInstructionClose++missing PIC delimiter +E0+attributeSpecNameTokenExpected+ISO 8879:1986 7.9p2 7.9.1.2p1+an attribute specification must start with a name or name token +E1+noSuchAttributeToken+ISO 8879:1986 7.9.1.2p1+%1 is not a member of a group specified for any attribute +E0+attributeNameShorttag+ISO 8879:1986 7.9.1.2+the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified +E1+noSuchAttribute++there is no attribute %1 +E0+attributeValueExpected+ISO 8879:1986 7.9.3p1+an attribute value specification must start with a literal or a name character +Q1+nameTokenLength+ISO 8879:1986 9.3.1+length of name token must not exceed NAMELEN (%1) +E0+attributeSpecLiteral+ISO 8879:1986 7.9.3p1 7.9.1.2p1+an attribute value literal can occur in an attribute specification list only after a VI delimiter +E1+duplicateAttributeSpec+ISO 8879:1986 7.9p5+duplicate specification of attribute %1 +W1+duplicateAttributeDef+ISO 8879:1986 11.3.2p2+duplicate definition of attribute %1 +E0+emptyDataAttributeSpec+ISO 8879:1986 11.4.1.2p3+data attribute specification must be omitted if attribute specification list is empty +E0+markedSectionEnd+ISO 8879:1986 10.4p6+marked section end not in marked section declaration +E1+markedSectionLevel+ISO 8879:1986 10.4.1p1+number of open marked sections must not exceed TAGLVL (%1) +E0+unclosedMarkedSection+ISO 8879:1986 10.4p1+missing marked section end+marked section started here +E0+specialParseEntityEnd++entity end in character data, replaceable character data or ignored marked section +Q2+normalizedAttributeValueLength+ISO 8879:1986 7.9.4.5+normalized length of attribute value literal must not exceed LITLEN (%1); length was %2 +E0+attributeValueSyntax+ISO 8879:1986 7.9.4.1p1+syntax of attribute value does not conform to declared value +E2+attributeValueChar+ISO 8879:1986 7.9.4.1p1+character %1 is not allowed in the value of attribute %2 +E1+attributeValueMultiple+ISO 8879:1986 7.9.4.1p1+value of attribute %1 must be a single token +E2+attributeValueNumberToken+ISO 8879:1986 7.9.4p1+value of attribute %2 invalid: %1 cannot start a number token +E2+attributeValueName+ISO 8879:1986 7.9.4p1+value of attribute %2 invalid: %1 cannot start a name +E1+attributeMissing+ISO 8879:1986 7.9p4+non-impliable attribute %1 not specified but OMITTAG NO and SHORTTAG NO +E1+requiredAttributeMissing+ISO 8879:1986 7.9p4 7.9.1.1p2+required attribute %1 not specified +E1+currentAttributeMissing+ISO 8879:1986 7.9.1.1p2+first occurrence of CURRENT attribute %1 not specified +E1+invalidNotationAttribute+ISO 8879:1986 7.9.4.4p1+%1 is not a notation name +E1+invalidEntityAttribute+ISO 8879:1986 7.9.4.3p1+%1 is not a general entity name +E3+attributeValueNotInGroup+ISO 8879:1986 7.9.4.1p2+value of attribute %2 cannot be %1; must be one of %3 +E1+notDataOrSubdocEntity+ISO 8879:1986 7.9.4.3p1+%1 is not a data or subdocument entity +E3+ambiguousModelInitial++content model is ambiguous: when no tokens have been matched, both the %2 and %3 occurrences of %1 are possible +E5+ambiguousModel++content model is ambiguous: when the current token is the %2 occurrence of %1, both the %4 and %5 occurrences of %3 are possible +E5+ambiguousModelSingleAnd++content model is ambiguous: when the current token is the %2 occurrence of %1 and the innermost containing AND group has been matched, both the %4 and %5 occurrences of %3 are possible +E6+ambiguousModelMultipleAnd++content model is ambiguous: when the current token is the %2 occurrence of %1 and the innermost %3 containing AND groups have been matched, both the %5 and %6 occurrences of %4 are possible +E1+commentDeclarationCharacter++invalid comment declaration: found character %1 outside comment but inside comment declaration+comment declaration started here +E1+nonSgmlCharacter++non SGML character number %1 +E0+dataMarkedSectionDeclSubset++data or replaceable character data in declaration subset +E1+duplicateId+ISO 8879:1986 4.153+ID %1 already defined+ID %1 first defined here +E1+notFixedValue+ISO 8879:1986 4.136+value of fixed attribute %1 not equal to default +E1+sdCommentSignificant++character %1 is not significant in the reference concrete syntax and so cannot occur in a comment in the SGML declaration +E1+standardVersion+ISO 8879:1986 13p2+minimum data of first minimum literal in SGML declaration must be "ISO 8879:1986" or "ISO 8879:1986 (ENR)" or "ISO 8879:1986 (WWW)" not %1 +E1+namingBeforeLcnmstrt+ISO 8879:1986 13.4.5p1+parameter before LCNMSTRT must be NAMING not %1 +E1+sdEntityEnd+ISO 8879:1986 13p1+unexpected entity end in SGML declaration: only %1, S separators and comments allowed +E2+sdInvalidNameToken++%1 invalid: only %2 and parameter separators allowed +E1+numberTooBig++magnitude of %1 too big +E1+sdLiteralSignificant++character %1 is not significant in the reference concrete syntax and so cannot occur in a literal in the SGML declaration except as the replacement of a character reference +E1+syntaxCharacterNumber+ISO 8879:1986 4.36+%1 is not a valid syntax reference character number +E0+sdParameterEntity+ISO 8879:1986 451p7+a parameter entity reference cannot occur in an SGML declaration +E2+sdParamInvalidToken++%1 invalid: only %2 and parameter separators are allowed +E0+giveUp++cannot continue because of previous errors +E1+sdMissingCharacters++SGML declaration cannot be parsed because the character set does not contain characters having the following numbers in ISO 646: %1 +E1+missingMinimumChars++the specified character set is invalid because it does not contain the minimum data characters having the following numbers in ISO 646: %1 +E1+duplicateCharNumbers++character numbers declared more than once: %1 +E1+codeSetHoles++character numbers should have been declared UNUSED: %1 +W1+basesetCharsMissing++character numbers missing in base set: %1 +W1+documentCharMax++characters in the document character set with numbers exceeding %1 not supported +E1+fpiMissingField++invalid formal public identifier %1: missing // +E1+fpiMissingTextClassSpace++invalid formal public identifier %1: no SPACE after public text class +E1+fpiInvalidTextClass++invalid formal public identifier %1: invalid public text class +E1+fpiInvalidLanguage++invalid formal public identifier %1: public text language must be a name containing only upper case letters +E1+fpiIllegalDisplayVersion++invalid formal public identifer %1: public text display version not permitted with this text class +E1+fpiExtraField++invalid formal public identifier %1: extra field +E0+notationIdentifierTextClass++public text class of public identifier in notation identifier must be NOTATION +W1+unknownBaseset++base character set %1 is unknown +E2+lexicalAmbiguity+ISO 8879:1986 13.4.6p2+delimiter set is ambiguous: %1 and %2 can be recognized in the same mode +E1+missingSignificant++characters with the following numbers in the syntax reference character set are significant in the concrete syntax but are not in the document character set: %1 +E1+translateSyntaxCharDoc++there is no unique character in the document character set corresponding to character number %1 in the syntax reference character set +E1+translateSyntaxCharInternal++there is no unique character in the internal character set corresponding to character number %1 in the syntax reference character set +E1+missingSyntaxChar+ISO 8879:1986 13.4.3p2+the character with number %1 in ISO 646 is significant but has no representation in the syntax reference character set +E1+unknownCapacitySet++capacity set %1 is unknown +W1+duplicateCapacity++capacity %1 already specified +E1+capacityExceedsTotalcap++value of capacity %1 exceeds value of TOTALCAP +E1+unknownPublicSyntax++syntax %1 is unknown +E0+nmstrtLength+ISO 8879:1986 13.4.5p13+UCNMSTRT must have the same number of characters as LCNMSTRT +E0+nmcharLength+ISO 8879:1986 13.4.5p13+UCNMCHAR must have the same number of characters as LCNMCHAR +E1+subdocLevel+ISO 8879:1986 9.4.2p1+number of open subdocuments exceeds quantity specified for SUBDOC parameter in SGML declaration (%1) +E1+subdocEntity+ISO 8879:1986 10.5.5p12+entity %1 declared SUBDOC, but SUBDOC NO specified in SGML declaration +E0+parameterEntityNotEnded+ISO 8879:1986 10.1.1p2+a parameter entity referenced in a parameter separator must end in the same declaration +X1+missingId++reference to non-existent ID %1 +W1+dtdUndefinedElement++generic identifier %1 used in DTD but not defined +E1+elementNotFinishedDocumentEnd++%1 not finished but document ended +E0+subdocGiveUp++cannot continue with subdocument because of previous errors +E0+noDtd++no document type declaration; will parse without validation +E0+noDtdSubset++no internal or external document type declaration subset; will parse without validation +E0+notSgml++this is not an SGML document +Q1+taglen+ISO 8879:1986 7.4.2p1+length of start-tag before interpretation of literals must not exceed TAGLEN (%1) +E0+groupParameterEntityNotEnded+ISO 8879:1986 10.1.3p7+a parameter entity referenced in a token separator must end in the same group +E1+invalidSgmlChar+ISO 8879:1986 13.1.2p3+the following character numbers are shunned characters that are not significant and so should have been declared UNUSED: %1 +E1+translateDocChar++there is no unique character in the specified document character set corresponding to character number %1 in ISO 646 +Q1+attributeValueLengthNeg+ISO 8879:1986 7.9.4.5+length of attribute value must not exceed LITLEN less NORMSEP (-%1) +Q1+tokenizedAttributeValueLengthNeg+ISO 8879:1986 7.9.4.5 7.9.3p5+length of tokenized attribute value must not exceed LITLEN less NORMSEP (-%1) +E1+scopeInstanceQuantity+ISO 8879:1986 13.3p9+concrete syntax scope is INSTANCE but value of %1 quantity is less than value in reference quantity set +E1+basesetTextClass+ISO 8879:1986 13.1.1.1p4+public text class of formal public identifier of base character set must be CHARSET +E1+capacityTextClass+ISO 8879:1986 13.2p7+public text class of formal public identifier of capacity set must be CAPACITY +E1+syntaxTextClass+ISO 8879:1986 13.4.1p6+public text class of formal public identifier of concrete syntax must be SYNTAX +E0+msocharRequiresMsichar+ISO 8879:1986 13.4.4p13+when there is an MSOCHAR there must also be an MSICHAR +E1+switchNotMarkup+ISO 8879:1986 13.4.1p4+character number %1 in the syntax reference character set was specified as a character to be switched but is not a markup character +E1+switchNotInCharset+ISO 8879:1986 13.4.1p4+character number %1 was specified as a character to be switched but is not in the syntax reference character set +W1+ambiguousDocCharacter++character numbers %1 in the document character set have been assigned the same meaning, but this is the meaning of a significant character +E1+oneFunction+ISO 8879:1986 13.4.4p11+character number %1 assigned to more than one function +E1+duplicateFunctionName+ISO 8879:1986 13.4.4p12+%1 is already a function name +E1+missingSignificant646++characters with the following numbers in ISO 646 are significant in the concrete syntax but are not in the document character set: %1 +E1+generalDelimAllFunction+ISO 8879:1986 13.4.6.1p5+general delimiter %1 consists solely of function characters +E1+nmcharLetter+ISO 8879:1986 13.4.5p11+letters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1 +E1+nmcharDigit+ISO 8879:1986 13.4.5p11+digits assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1 +E1+nmcharRe+ISO 8879:1986 13.4.5p11+character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT because it is RE +E1+nmcharRs+ISO 8879:1986 13.4.5p11+character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT because it is RS +E1+nmcharSpace+ISO 8879:1986 13.4.5p11+character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT because it is SPACE +E1+nmcharSepchar+ISO 8879:1986 13.4.5p11+separator characters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1 +E1+switchLetterDigit+ISO 8879:1986 13.4.1p4+character number %1 cannot be switched because it is a Digit, LC Letter or UC Letter +W0+zeroNumberOfCharacters++pointless for number of characters to be 0 +E1+nameReferenceReservedName+ISO 8879:1986 13.4.7p6+%1 cannot be the replacement for a reference reserved name because it is another reference reserved name +E1+ambiguousReservedName+ISO 8879:1986 13.4.7p6+%1 cannot be the replacement for a reference reserved name because it is the replacement of another reference reserved name +E1+duplicateReservedName+ISO 8879:1986 13.4.7p2+replacement for reserved name %1 already specified +W1+reservedNameSyntax++%1 is not a valid name in the declared concrete syntax +E1+multipleBSequence+ISO 8879:1986 13.4.6.2p6+%1 is not a valid short reference delimiter because it has more than one B sequence +E1+blankAdjacentBSequence+ISO 8879:1986 13.4.6.2p6+%1 is not a valid short reference delimiter because it is adjacent to a character that can occur in a blank sequence +E2+delimiterLength+ISO 8879:1986 13.4.6p5+length of delimiter %1 exceeds NAMELEN (%2) +W2+reservedNameLength++length of reserved name %1 exceeds NAMELEN (%2) +E1+nmcharNmstrt+ISO 8879:1986 13.4.5p12+character numbers assigned to both LCNMCHAR or UCNMCHAR and LCNMSTRT or UCNMSTRT: %1 +E0+scopeInstanceSyntaxCharset+ISO 8879:1986 13.3p7+when the concrete syntax scope is INSTANCE the syntax reference character set of the declared syntax must be the same as that of the reference concrete syntax +W0+emptyOmitEndTag+ISO 8879:1986 11.2.2p8+end-tag minimization should be O for element with declared content of EMPTY +W1+conrefOmitEndTag+ISO 8879:1986 11.2.2p8+end-tag minimization should be O for element %1 because it has CONREF attribute +E1+conrefEmpty+ISO 8879:1986 11.3.4p12+element %1 has a declared content of EMPTY and a CONREF attribute +E1+notationEmpty+ISO 8879:1986 11.3.3p21+element %1 has a declared content of EMPTY and a NOTATION attribute +E0+dataAttributeDeclaredValue+ISO 8879:1986 11.4.1p2+declared value of data attribute cannot be ENTITY, ENTITIES, ID, IDREF, IDREFS or NOTATION +E0+dataAttributeDefaultValue+ISO 8879:1986 11.4.1p3+default value of data attribute cannot be CONREF or CURRENT +Q2+attcnt+ISO 8879:1986 11.3.1+number of attribute names and name tokens (%1) exceeds ATTCNT (%2) +E0+idDeclaredValue+ISO 8879:1986 11.3.4p11+if the declared value is ID the default value must be IMPLIED or REQUIRED +E1+multipleIdAttributes+ISO 8879:1986 11.3.3p19+the attribute definition list already declared attribute %1 as the ID attribute +E1+multipleNotationAttributes+ISO 8879:1986 11.3.3p19+the attribute definition list already declared attribute %1 as the NOTATION attribute +E1+duplicateAttributeToken+ISO 8879:1986 11.3.3p20+token %1 occurs more than once in attribute definition list +E1+notationNoAttributes+ISO 8879:1986 11.4.1.2p2+no attributes defined for notation %1 +E2+entityNotationUndefined+ISO 8879:1986 10.5.5p10+notation %1 for entity %2 undefined +E2+mapEntityUndefined++entity %1 undefined in short reference map %2 +E1+attlistNotationUndefined+ISO 8879:1986 11.4.1.1p4+notation %1 is undefined but had attribute definition +Q1+bracketedLitlen+ISO 8879:1986 10.5.4.1+length of interpreted parameter literal in bracketed text plus the length of the bracketing delimiters must not exceed LITLEN (%1) +Q1+genericIdentifierLength+ISO 8879:1986 11.2.1.2+length of rank stem plus length of rank suffix must not exceed NAMELEN (%1) +E0+instanceStartOmittag+ISO 8879:1986 7.2p1+document instance must start with document element +Q1+grplvl+ISO 8879:1986 11.2.4.5p1+content model nesting level exceeds GRPLVL (%1) +Q1+grpgtcnt+ISO 8879:1986 11.2.4.5p2+grand total of content tokens exceeds GRPGTCNT (%1) +E0+unclosedStartTagShorttag+ISO 8879:1986 7.4.1p2+unclosed start-tag requires SHORTTAG YES +E0+netEnablingStartTagShorttag+ISO 8879:1986 7.4.1p2+NET-enabling start-tag requires SHORTTAG YES +E0+unclosedEndTagShorttag+ISO 8879:1986 7.5.1p2+unclosed end-tag requires SHORTTAG YES +E0+multipleDtds+ISO 8879:1986 7.1p6+DTDs other than base allowed only if CONCUR YES or EXPLICIT YES +E0+afterDocumentElementEntityEnd+ISO 8879:1986 7.2p1+end of entity other than document entity after document element +E1+declarationAfterDocumentElement+ISO 8879:1986 7.2p1+%1 declaration illegal after document element +E0+characterReferenceAfterDocumentElement+ISO 8879:1986 7.2p1+character reference illegal after document element +E0+entityReferenceAfterDocumentElement+ISO 8879:1986 7.2p1+entity reference illegal after document element +E0+markedSectionAfterDocumentElement+ISO 8879:1986 7.2p1+marked section illegal after document element +E3+requiredElementExcluded+ISO 8879:1986 11.2.5.2p5+the %1 occurrence of %2 in the content model for %3 cannot be excluded at this point because it is contextually required +E3+invalidExclusion+ISO 8879:1986 11.2.5.2p4+the %1 occurrence of %2 in the content model for %3 cannot be excluded because it is neither inherently optional nor a member of an OR group +E0+attributeValueShorttag+ISO 8879:1986 7.9.3.1+an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified +E0+conrefNotation+ISO 8879:1986 7.9.4.4p2+value cannot be specified both for notation attribute and content reference attribute +E1+duplicateNotationDeclaration+ISO 8879:1986 11.4p3+notation %1 already defined +E1+duplicateShortrefDeclaration+ISO 8879:1986 11.5p3+short reference map %1 already defined+first defined here +E1+duplicateDelimGeneral+ISO 8879:1986 13.4.6.1+general delimiter role %1 already defined +Q1+idrefGrpcnt+ISO 8879:1986 7.9.4.5p5+number of ID references in start-tag must not exceed GRPCNT (%1) +Q1+entityNameGrpcnt+ISO 8879:1986 7.9.4.5p6+number of entity names in attribute specification list must not exceed GRPCNT (%1) +Q2+attsplen+ISO 8879:1986 7.9.2+normalized length of attribute specification list must not exceed ATTSPLEN (%1); length was %2 +E1+duplicateDelimShortref+ISO 8879:1986 13.4.6p2+short reference delimiter %1 already specified +E1+duplicateDelimShortrefSet+ISO 8879:1986 13.4.6.2+single character short references were already specified for character numbers: %1 +W1+defaultEntityInAttribute++default entity used in entity attribute %1 +W1+defaultEntityReference++reference to entity %1 uses default entity +W2+mapDefaultEntity++entity %1 in short reference map %2 uses default entity +E1+noSuchDtd+ISO 8879:1986 12.1.3p6+no DTD %1 declared +W1+noLpdSubset++LPD %1 has neither internal nor external subset +E0+assocElementDifferentAtts+ISO 8879:1986 12.2.1p11+element types have different link attribute definitions +E1+duplicateLinkSet+ISO 8879:1986 12.2p6+link set %1 already defined +E0+emptyResultAttributeSpec+ISO 8879:1986 12.2.2p8+empty result attribute specification +E1+noSuchSourceElement++no source element type %1 +E1+noSuchResultElement++no result element type %1 +E0+documentEndLpdSubset++end of document in LPD subset +E1+lpdSubsetDeclaration++%1 declaration not allowed in LPD subset +E0+idlinkDeclSimple+ISO 8879:1986 12.1.4.3+ID link set declaration not allowed in simple link declaration subset +E0+linkDeclSimple+ISO 8879:1986 12.1.4.3+link set declaration not allowed in simple link declaration subset +E1+simpleLinkAttlistElement+ISO 8879:1986 12.1.4.3+attributes can only be defined for base document element (not %1) in simple link declaration subset +E0+shortrefOnlyInBaseDtd+ISO 8879:1986 11.1p11+a short reference mapping declaration is allowed only in the base DTD +E0+usemapOnlyInBaseDtd+ISO 8879:1986 11.1p11+a short reference use declaration is allowed only in the base DTD +E0+linkAttributeDefaultValue+ISO 8879:1986 12.1.4.2p3+default value of link attribute cannot be CURRENT or CONREF +E0+linkAttributeDeclaredValue+ISO 8879:1986 12.1.4.2p2+declared value of link attribute cannot be ID, IDREF, IDREFS or NOTATION +E0+simpleLinkFixedAttribute+ISO 8879:1986 12.1.4.3+only fixed attributes can be defined in simple LPD +E0+duplicateIdLinkSet+ISO 8879:1986 12.1.4p1+only one ID link set declaration allowed in an LPD subset +E1+noInitialLinkSet+ISO 8879:1986 12.2p7+no initial link set defined for LPD %1 +E1+notationUndefinedSourceDtd++notation %1 not defined in source DTD +E0+simpleLinkResultNotImplied+ISO 8879:1986 12.1.1p1+result document type in simple link specification must be implied +E0+simpleLinkFeature+ISO 8879:1986 12.1.1p5+simple link requires SIMPLE YES +E0+implicitLinkFeature+ISO 8879:1986 12.1.2p4+implicit link requires IMPLICIT YES +E0+explicitLinkFeature+ISO 8879:1986 12.1.3p4+explicit link requires EXPLICIT YES +E0+lpdBeforeBaseDtd+ISO 8879:1986 7.1p1+LPD not allowed before first DTD +E0+dtdAfterLpd+ISO 8879:1986 7.1p1+DTD not allowed after an LPD +E1+unstableLpdGeneralEntity++definition of general entity %1 is unstable +E1+unstableLpdParameterEntity++definition of parameter entity %1 is unstable +E1+multipleIdLinkRuleAttribute+ISO 8879:1986 12.2.3p3+multiple link rules for ID %1 but not all have link attribute specifications +E1+multipleLinkRuleAttribute+ISO 8879:1986 12.2.1p9+multiple link rules for element type %1 but not all have link attribute specifications +E2+uselinkBadLinkSet+ISO 8879:1986 12.3p10+link type %1 does not have a link set %2 +E1+uselinkSimpleLpd++link set use declaration for simple link process +E1+uselinkBadLinkType+ISO 8879:1986 12.3p10+no link type %1 +E1+duplicateDtdLpd+ISO 8879:1986 12.1p3+both document type and link type %1 +E1+duplicateLpd+ISO 8879:1986 12.1p3+link type %1 already defined +E1+duplicateDtd+ISO 8879:1986 11.1p7+document type %1 already defined +E1+undefinedLinkSet+ISO 8879:1986 12.2.2p8+link set %1 used in LPD but not defined +E1+duplicateImpliedResult+ISO 8879:1986 12.2.2p6+#IMPLIED already linked to result element type %1 +E1+simpleLinkCount+ISO 8879:1986 12.1.1.1p1+number of active simple link processes exceeds quantity specified for SIMPLE parameter in SGML declaration (%1) +E0+duplicateExplicitChain+ISO 8879:1986 7.1p11+only one chain of explicit link processes can be active +E1+explicit1RequiresSourceTypeBase+ISO 8879:1986 12.1.2p5 12.1.3p5 12.1.3.1+source document type name for link type %1 must be base document type since EXPLICIT YES 1 +E0+oneImplicitLink+ISO 8879:1986 7.1p10+only one implicit link process can be active +W1+sorryLink++sorry, link type %1 not activated: only one implicit or explicit link process can be active (with base document type as source document type) +E0+entityReferenceMissingName+ISO 8879:1986 9.4.4p1 9.4.4p2+name missing after name group in entity reference +E1+explicitNoRequiresSourceTypeBase+ISO 8879:1986 12.1.2p5 12.1.3p5 12.1.3.1+source document type name for link type %1 must be base document type since EXPLICIT NO +W0+linkActivateTooLate++link process must be activated before base DTD +E0+pass2Ee++unexpected entity end while starting second pass +E2+idlinkElementType+ISO 8879:1986 12.2.3p2+type %1 of element with ID %2 not associated element type for applicable link rule in ID link set +E0+datatagNotImplemented++DATATAG feature not implemented +E0+startTagMissingName+ISO 8879:1986 7.4p1+generic identifier specification missing after document type specification in start-tag +E0+endTagMissingName+ISO 8879:1986 7.5p1+generic identifier specification missing after document type specification in end-tag +E0+startTagGroupNet+ISO 8879:1986 7.4.1.3p1+a NET-enabling start-tag cannot include a document type specification +E0+documentElementUndefined+ISO 8879:1986 11.1p10+DTD did not contain element declaration for document type name +E0+badDefaultSgmlDecl++invalid default SGML declaration +E1+nonExistentEntityRef++reference to entity %1 for which no system identifier could be generated+entity was defined here +W0+pcdataUnreachable+ISO 8879:1986 11.2.4p11+content model is mixed but does not allow #PCDATA everywhere +E0+sdRangeNotSingleChar++start or end of range must specify a single character +E0+sdInvalidRange++number of first character in range must not exceed number of second character in range +E0+sdEmptyDelimiter++delimiter cannot be an empty string +W0+tooManyCharsMinimumLiteral++too many characters assigned same meaning with minimum literal +W1+defaultedEntityDefined++earlier reference to entity %1 used default entity +W0+emptyStartTag++empty start-tag +W0+emptyEndTag++empty end-tag +W1+unusedMap++unused short reference map %1 +W1+unusedParamEntity++unused parameter entity %1 +W1+cannotGenerateSystemIdPublic++cannot generate system identifier for public text %1 +W1+cannotGenerateSystemIdGeneral++cannot generate system identifier for general entity %1 +W1+cannotGenerateSystemIdParameter++cannot generate system identifier for parameter entity %1 +W1+cannotGenerateSystemIdDoctype++cannot generate system identifier for document type %1 +W1+cannotGenerateSystemIdLinktype++cannot generate system identifier for link type %1 +W1+cannotGenerateSystemIdNotation++cannot generate system identifier for notation %1 +W1+excludeIncludeSame++element type %1 both included and excluded +E1+implyingDtd++no document type declaration; implying %1 +E1+afdrVersion++minimum data of AFDR declaration must be "ISO/IEC 10744:1997" not %1 +E0+missingAfdrDecl++AFDR declaration required before use of AFDR extensions +E0+enrRequired++ENR extensions were used but minimum literal was not "ISO 8879:1986 (ENR)" or "ISO 8879:1986 (WWW)" +E1+numericCharRefLiteralNonSgml++illegal numeric character reference to non-SGML character %1 in literal +E2+numericCharRefUnknownDesc++cannot convert character reference to number %1 because description %2 unrecognized +E3+numericCharRefUnknownBase++cannot convert character reference to number %1 because character %2 from baseset %3 unknown +E1+numericCharRefBadInternal++character reference to number %1 cannot be converted because of problem with internal character set +E1+numericCharRefNoInternal++cannot convert character reference to number %1 because character not in internal character set +E0+wwwRequired++Web SGML adaptations were used but minimum literal was not "ISO 8879:1986 (WWW)" +E1+attributeTokenNotUnique++token %1 can be value for multiple attributes so attribute name required +Q1+hexNumberLength++length of hex number must not exceed NAMELEN (%1) +W1+entityNameSyntax++%1 is not a valid name in the declared concrete syntax + +W0+cdataContent++CDATA declared content +W0+rcdataContent++RCDATA declared content +W0+inclusion++inclusion +W0+exclusion++exclusion +W0+numberDeclaredValue++NUMBER or NUMBERS declared value +W0+nameDeclaredValue++NAME or NAMES declared value +W0+nutokenDeclaredValue++NUTOKEN or NUTOKENS declared value +W0+conrefAttribute++CONREF attribute +W0+currentAttribute++CURRENT attribute +W0+tempMarkedSection++TEMP marked section +W0+instanceIncludeMarkedSection++included marked section in the instance +W0+instanceIgnoreMarkedSection++ignored marked section in the instance +W0+rcdataMarkedSection++RCDATA marked section +W0+piEntity++processing instruction entity +W0+bracketEntity++bracketed text entity +W0+internalCdataEntity++internal CDATA entity +W0+internalSdataEntity++internal SDATA entity +W0+externalCdataEntity++external CDATA entity +W0+externalSdataEntity++external SDATA entity +W0+dataAttributes++attribute definition list declaration for notation +W0+rank++rank stem +W0+missingSystemId++no system id specified +W0+psComment++comment in parameter separator +W0+namedCharRef++named character reference +W0+andGroup++AND group +W0+attributeValueNotLiteral++attribute value not a literal +W0+missingAttributeName++attribute name missing +W0+elementGroupDecl++element declaration for group of element types +W0+attlistGroupDecl++attribute definition list declaration for group of element types +W0+emptyCommentDecl++empty comment declaration +W0+commentDeclS++S separator in comment declaration +W0+commentDeclMultiple++multiple comments in comment declaration +W0+missingStatusKeyword++no status keyword +W0+multipleStatusKeyword++multiple status keywords +W0+instanceParamEntityRef++parameter entity reference in document instance +W0+current++CURRENT attribute +W0+minimizationParam++element type minimization parameter +W0+refc++reference not terminated by REFC delimiter +W0+pcdataNotFirstInGroup++#PCDATA not first in model group +W0+pcdataInSeqGroup++#PCDATA in SEQ group +W0+pcdataInNestedModelGroup++#PCDATA in nested model group +W0+pcdataGroupNotRep++#PCDATA in model group that does not have REP occurrence indicator +W0+nameGroupNotOr++name group or name token group used connector other than OR +W0+piMissingName++processing instruction does not start with name +W0+instanceStatusKeywordSpecS++S separator in status keyword specification in document instance +W0+externalDataEntityRef++reference to external data entity +W0+attributeValueExternalEntityRef++reference to external entity in attribute value +W1+dataCharDelim++character %1 is the first character of a delimiter but occurred as data +W0+explicitSgmlDecl++SGML declaration was not implied +W0+internalSubsetMarkedSection++marked section in internal DTD subset +E0+nestcWithoutNet++NET-enabling start-tag not immediately followed by null end-tag +E0+contentAsyncEntityRef++entity end in different element from entity reference +E0+immednetRequiresEmptynrm++NETENABL IMMEDNET requires EMPTYNRM YES +W0+nonSgmlCharRef++reference to non-SGML character +W0+defaultEntityDecl++declaration of default entity +W0+internalSubsetPsParamEntityRef++reference to parameter entity in parameter separator in internal subset +W0+internalSubsetTsParamEntityRef++reference to parameter entity in token separator in internal subset +W0+internalSubsetLiteralParamEntityRef++reference to parameter entity in parameter literal in internal subset +E0+cannotGenerateSystemIdSgml++cannot generate system identifier for SGML declaration reference +E1+sdTextClass++public text class of formal public identifier of SGML declaration must be SD +E0+sgmlDeclRefRequiresWww++SGML declaration reference was used but minimum literal was not "ISO 8879:1986 (WWW)" +W0+pcdataGroupMemberOccurrenceIndicator++member of model group containing #PCDATA has occurrence indicator +W0+pcdataGroupMemberModelGroup++member of model group containing #PCDATA is a model group +E0+entityRefNone++reference to non-predefined entity +E0+entityRefInternal++reference to external entity +E0+implydefEntityDefault++declaration of default entity conflicts with IMPLYDEF ENTITY YES +E0+sorryActiveDoctypes++parsing with respect to more than one active doctype not supported +E0+activeDocLink+ISO 8879:1986 7.1+cannot have active doctypes and link types at the same time +E1+concurrentInstances+ISO 8879:1986 7.2.1+number of concurrent document instances exceeds quantity specified for CONCUR parameter in SGML declaration (%1) +E0+datatagBaseDtd+ISO 8879:1986 11.2.4.4+datatag group can only be specified in base document type +E0+emptyStartTagBaseDtd+ISO 8879:1986 7.4.1.1+element not in the base document type can't have an empty start-tag +E0+emptyEndTagBaseDtd+ISO 8879:1986 7.5.1.1+element not in base document type can't have an empty end-tag +W0+immediateRecursion++immediately recursive element +E1+urnMissingField++invalid URN %1: missing ":" +E1+urnMissingPrefix++invalid URN %1: missing "urn:" prefix +E1+urnInvalidNid++invalid URN %1: invalid namespace identifier +E1+urnInvalidNss++invalid URN %1: invalid namespace specific string +E1+urnExtraField++invalid URN %1: extra field +E0+omittedProlog++prolog can't be omitted unless CONCUR NO and LINK EXPLICIT NO and either IMPLYDEF ELEMENT YES or IMPLYDEF DOCTYPE YES +E0+impliedDocumentElement++can't determine name of #IMPLIED document element +E0+impliedDoctypeConcurLink++can't use #IMPLICIT doctype unless CONCUR NO and LINK EXPLICIT NO +E0+sorryImpliedDoctype++Sorry, #IMPLIED doctypes not implemented +W0+dtdDataEntityReference++reference to DTD data entity ignored +E2+parameterEntityNotationUndefined++notation %1 for parameter entity %2 undefined +E1+dsEntityNotationUndefined++notation %1 for external subset undefined +E1+specifiedAttributeRedeclared+ISO 8879:1986 K4.4+attribute %1 can't be redeclared +E1+notationMustNotBeDeclared++#IMPLICIT attributes have already been specified for notation %1 +E0+peroGrpoStartTag+ISO 8879:1986 9.4.4p3+a name group is not allowed in a parameter entity reference in a start tag +W0+peroGrpoEndTag+ISO 8879:1986 9.4.4p3+name group in a parameter entity reference in an end tag (SGML forbids them in start tags) +# message fragments +W0+notationConref++if the declared value is NOTATION a default value of CONREF is useless +E0+sorryAllImplicit++Sorry, #ALL and #IMPLICIT content tokens not implemented +=1000 ++delimStart++delimiter +-+delimEnd++ ++digit++digit ++nameStartCharacter++name start character ++sepchar++sepchar ++separator++separator ++nameCharacter++name character ++dataCharacter++data character ++minimumDataCharacter++minimum data character ++significantCharacter++significant character ++recordEnd++record end character ++recordStart++record start character ++space++space character ++listSep++, ++rangeSep++- ++parameterLiteral++parameter literal ++dataTagGroup++data tag group ++modelGroup++model group ++dataTagTemplateGroup++data tag template group ++name++name ++nameToken++name token ++elementToken++element token ++inclusions++inclusions ++exclusions++exclusions ++minimumLiteral++minimum literal ++attributeValueLiteral++attribute value literal ++systemIdentifier++system identifier ++number++number ++attributeValue++attribute value ++capacityName++name of capacity ++generalDelimiteRoleName++name of general delimiter role ++referenceReservedName++reference reserved name ++quantityName++name of quantity ++entityEnd++entity end ++shortrefDelim++short reference delimiter diff --git a/lib/ParserMessages.rc b/lib/ParserMessages.rc new file mode 100644 index 0000000..1b3157b --- /dev/null +++ b/lib/ParserMessages.rc @@ -0,0 +1,482 @@ +STRINGTABLE +BEGIN + 0, "length of name must not exceed NAMELEN (%1)" + 1, "length of parameter entity name must not exceed NAMELEN less the length of the PERO delimiter (%1)" + 2, "length of number must not exceed NAMELEN (%1)" + 3, "length of attribute value must not exceed LITLEN less NORMSEP (%1)" + 4, "a name group is not allowed in a parameter entity reference in the prolog" + 5, "an entity end in a token separator must terminate an entity referenced in the same group" + 6, "character %1 invalid: only %2 and token separators allowed" + 7, "a parameter separator is required after a number that is followed by a name start character" + 8, "character %1 invalid: only %2 and parameter separators allowed" + 9, "an entity end in a parameter separator must terminate an entity referenced in the same declaration" + 10, "an entity end is not allowed in a token separator that does not follow a token" + 11, "%1 is not a valid token here" + 12, "a parameter entity reference can only occur in a group where a token could occur" + 13, "token %1 has already occurred in this group" + 14, "the number of tokens in a group must not exceed GRPCNT (%1)" + 15, "an entity end in a literal must terminate an entity referenced in the same literal" + 16, "character %1 invalid: only minimum data characters allowed" + 18, "a parameter literal in a data tag pattern must not contain a numeric character reference to a non-SGML character" + 19, "a parameter literal in a data tag pattern must not contain a numeric character reference to a function character" + 20, "a name group is not allowed in a general entity reference in a start tag" + 21, "a name group is not allowed in a general entity reference in the prolog" + 22, "%1 is not a function name" + 23, "%1 is not a character number in the document character set" + 24, "parameter entity %1 not defined" + 25, "general entity %1 not defined and no default entity" + 26, "RNI delimiter must be followed by name start character" + 28, "unterminated comment: found end of entity inside comment" + 29, "comment started here" + 30, "only one type of connector should be used in a single group" + 31, "%1 is not a reserved name" + 32, "%1 is not allowed as a reserved name here" + 33, "length of interpreted minimum literal must not exceed reference LITLEN (%1)" + 34, "length of tokenized attribute value must not exceed LITLEN less NORMSEP (%1)" + 35, "length of system identifier must not exceed LITLEN (%1)" + 36, "length of interpreted parameter literal must not exceed LITLEN (%1)" + 37, "length of interpreted parameter literal in data tag pattern must not exceed DTEMPLEN (%1)" + 38, "literal is missing closing delimiter" + 39, "%1 invalid: only %2 and parameter separators are allowed" + 40, "%1 invalid: only %2 and token separators are allowed" + 41, "%1 invalid: only %2 and token separators are allowed" + 42, "unknown declaration type %1" + 43, "%1 declaration not allowed in DTD subset" + 44, "character %1 not allowed in declaration subset" + 45, "end of document in DTD subset" + 46, "character %1 not allowed in prolog" + 47, "end of document in prolog" + 48, "%1 declaration not allowed in prolog" + 49, "%1 used both a rank stem and generic identifier" + 50, "omitted tag minimization parameter can be omitted only if OMITTAG NO is specified" + 51, "element type %1 already defined" + 52, "entity reference with no applicable DTD" + 53, "invalid comment declaration: found %1 outside comment but inside comment declaration" + 54, "comment declaration started here" + 55, "%1 declaration not allowed in instance" + 56, "non-SGML character not allowed in content" + 57, "no current rank for rank stem %1" + 58, "duplicate attribute definition list for notation %1" + 59, "duplicate attribute definition list for element %1" + 60, "entity end not allowed in end tag" + 61, "character %1 not allowed in end tag" + 62, "%1 invalid: only S separators and TAGC allowed here" + 63, "character data is not allowed here" + 64, "document type does not allow element %1 here" + 65, "document type does not allow element %1 here; missing one of %2 start-tag" + 66, "document type does not allow element %1 here; assuming missing %2 start-tag" + 67, "no start tag specified for implied empty element %1" + 68, "end tag for %1 omitted, but its declaration does not permit this" + 69, "start tag was here" + 70, "end tag for %1 omitted, but OMITTAG NO was specified" + 71, "start tag was here" + 72, "start tag omitted for element %1 with declared content" + 73, "end tag for %1 which is not finished" + 74, "start tag for %1 omitted, but its declaration does not permit this" + 75, "number of open elements exceeds TAGLVL (%1)" + 76, "element %1 undefined" + 77, "empty end tag but no open elements" + 78, "%1 not finished but containing element ended" + 79, "end tag for element %1 which is not open" + 80, "internal parameter entity %1 cannot be CDATA or SDATA" + 81, "character %1 not allowed in attribute specification list" + 82, "an attribute value must be a literal unless it contains only name characters" + 83, "entity end not allowed in attribute specification list except in attribute value literal" + 84, "external parameter entity %1 cannot be CDATA, SDATA, NDATA or SUBDOC" + 85, "duplicate declaration of entity %1" + 86, "duplicate declaration of parameter entity %1" + 87, "a reference to a PI entity is allowed only in a context where a processing instruction could occur" + 88, "a reference to a CDATA or SDATA entity is allowed only in a context where a data character could occur" + 89, "a reference to a subdocument entity or external data entity is allowed only in a context where a data character could occur" + 90, "a reference to a subdocument entity or external data entity is not allowed in replaceable character data" + 91, "the number of open entities cannot exceed ENTLVL (%1)" + 92, "a reference to a PI entity is not allowed in replaceable character data" + 93, "entity %1 is already open" + 94, "short reference map %1 not defined" + 95, "short reference map in DTD must specify associated element type" + 96, "short reference map in document instance cannot specify associated element type" + 97, "short reference map %1 for element %2 not defined in DTD" + 98, "%1 is not a short reference delimiter" + 99, "short reference delimiter %1 already mapped in this declaration" + 100, "no document element" + 102, "entity end not allowed in processing instruction" + 103, "length of processing instruction must not exceed PILEN (%1)" + 104, "missing PIC delimiter" + 105, "an attribute specification must start with a name or name token" + 106, "%1 is not a member of a group specified for any attribute" + 107, "the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified" + 108, "there is no attribute %1" + 109, "an attribute value specification must start with a literal or a name character" + 110, "length of name token must not exceed NAMELEN (%1)" + 111, "an attribute value literal can occur in an attribute specification list only after a VI delimiter" + 112, "duplicate specification of attribute %1" + 113, "duplicate definition of attribute %1" + 114, "data attribute specification must be omitted if attribute specification list is empty" + 115, "marked section end not in marked section declaration" + 116, "number of open marked sections must not exceed TAGLVL (%1)" + 117, "missing marked section end" + 118, "marked section started here" + 119, "entity end in character data, replaceable character data or ignored marked section" + 120, "normalized length of attribute value literal must not exceed LITLEN (%1); length was %2" + 121, "syntax of attribute value does not conform to declared value" + 122, "character %1 is not allowed in the value of attribute %2" + 123, "value of attribute %1 must be a single token" + 124, "value of attribute %2 invalid: %1 cannot start a number token" + 125, "value of attribute %2 invalid: %1 cannot start a name" + 126, "non-impliable attribute %1 not specified but OMITTAG NO and SHORTTAG NO" + 127, "required attribute %1 not specified" + 128, "first occurrence of CURRENT attribute %1 not specified" + 129, "%1 is not a notation name" + 130, "%1 is not a general entity name" + 131, "value of attribute %2 cannot be %1; must be one of %3" + 132, "%1 is not a data or subdocument entity" + 133, "content model is ambiguous: when no tokens have been matched, both the %2 and %3 occurrences of %1 are possible" + 134, "content model is ambiguous: when the current token is the %2 occurrence of %1, both the %4 and %5 occurrences of %3 are possible" + 135, "content model is ambiguous: when the current token is the %2 occurrence of %1 and the innermost containing AND group has been matched, both the %4 and %5 occurrences of %3 are possible" + 136, "content model is ambiguous: when the current token is the %2 occurrence of %1 and the innermost %3 containing AND groups have been matched, both the %5 and %6 occurrences of %4 are possible" + 137, "invalid comment declaration: found character %1 outside comment but inside comment declaration" + 138, "comment declaration started here" + 139, "non SGML character number %1" + 140, "data or replaceable character data in declaration subset" + 141, "ID %1 already defined" + 142, "ID %1 first defined here" + 143, "value of fixed attribute %1 not equal to default" + 144, "character %1 is not significant in the reference concrete syntax and so cannot occur in a comment in the SGML declaration" + 145, "minimum data of first minimum literal in SGML declaration must be ""ISO 8879:1986"" or ""ISO 8879:1986 (ENR)"" or ""ISO 8879:1986 (WWW)"" not %1" + 146, "parameter before LCNMSTRT must be NAMING not %1" + 147, "unexpected entity end in SGML declaration: only %1, S separators and comments allowed" + 148, "%1 invalid: only %2 and parameter separators allowed" + 149, "magnitude of %1 too big" + 150, "character %1 is not significant in the reference concrete syntax and so cannot occur in a literal in the SGML declaration except as the replacement of a character reference" + 151, "%1 is not a valid syntax reference character number" + 152, "a parameter entity reference cannot occur in an SGML declaration" + 153, "%1 invalid: only %2 and parameter separators are allowed" + 154, "cannot continue because of previous errors" + 155, "SGML declaration cannot be parsed because the character set does not contain characters having the following numbers in ISO 646: %1" + 156, "the specified character set is invalid because it does not contain the minimum data characters having the following numbers in ISO 646: %1" + 157, "character numbers declared more than once: %1" + 158, "character numbers should have been declared UNUSED: %1" + 159, "character numbers missing in base set: %1" + 160, "characters in the document character set with numbers exceeding %1 not supported" + 161, "invalid formal public identifier %1: missing //" + 162, "invalid formal public identifier %1: no SPACE after public text class" + 163, "invalid formal public identifier %1: invalid public text class" + 164, "invalid formal public identifier %1: public text language must be a name containing only upper case letters" + 165, "invalid formal public identifer %1: public text display version not permitted with this text class" + 166, "invalid formal public identifier %1: extra field" + 167, "public text class of public identifier in notation identifier must be NOTATION" + 168, "base character set %1 is unknown" + 169, "delimiter set is ambiguous: %1 and %2 can be recognized in the same mode" + 170, "characters with the following numbers in the syntax reference character set are significant in the concrete syntax but are not in the document character set: %1" + 171, "there is no unique character in the document character set corresponding to character number %1 in the syntax reference character set" + 172, "there is no unique character in the internal character set corresponding to character number %1 in the syntax reference character set" + 173, "the character with number %1 in ISO 646 is significant but has no representation in the syntax reference character set" + 174, "capacity set %1 is unknown" + 175, "capacity %1 already specified" + 176, "value of capacity %1 exceeds value of TOTALCAP" + 177, "syntax %1 is unknown" + 178, "UCNMSTRT must have the same number of characters as LCNMSTRT" + 179, "UCNMCHAR must have the same number of characters as LCNMCHAR" + 180, "number of open subdocuments exceeds quantity specified for SUBDOC parameter in SGML declaration (%1)" + 181, "entity %1 declared SUBDOC, but SUBDOC NO specified in SGML declaration" + 182, "a parameter entity referenced in a parameter separator must end in the same declaration" + 183, "reference to non-existent ID %1" + 184, "generic identifier %1 used in DTD but not defined" + 185, "%1 not finished but document ended" + 186, "cannot continue with subdocument because of previous errors" + 187, "no document type declaration; will parse without validation" + 188, "no internal or external document type declaration subset; will parse without validation" + 189, "this is not an SGML document" + 190, "length of start-tag before interpretation of literals must not exceed TAGLEN (%1)" + 191, "a parameter entity referenced in a token separator must end in the same group" + 192, "the following character numbers are shunned characters that are not significant and so should have been declared UNUSED: %1" + 193, "there is no unique character in the specified document character set corresponding to character number %1 in ISO 646" + 194, "length of attribute value must not exceed LITLEN less NORMSEP (-%1)" + 195, "length of tokenized attribute value must not exceed LITLEN less NORMSEP (-%1)" + 196, "concrete syntax scope is INSTANCE but value of %1 quantity is less than value in reference quantity set" + 197, "public text class of formal public identifier of base character set must be CHARSET" + 198, "public text class of formal public identifier of capacity set must be CAPACITY" + 199, "public text class of formal public identifier of concrete syntax must be SYNTAX" + 200, "when there is an MSOCHAR there must also be an MSICHAR" + 201, "character number %1 in the syntax reference character set was specified as a character to be switched but is not a markup character" + 202, "character number %1 was specified as a character to be switched but is not in the syntax reference character set" + 203, "character numbers %1 in the document character set have been assigned the same meaning, but this is the meaning of a significant character" + 204, "character number %1 assigned to more than one function" + 205, "%1 is already a function name" + 206, "characters with the following numbers in ISO 646 are significant in the concrete syntax but are not in the document character set: %1" + 207, "general delimiter %1 consists solely of function characters" + 208, "letters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" + 209, "digits assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" + 210, "character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT because it is RE" + 211, "character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT because it is RS" + 212, "character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT because it is SPACE" + 213, "separator characters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" + 214, "character number %1 cannot be switched because it is a Digit, LC Letter or UC Letter" + 215, "pointless for number of characters to be 0" + 216, "%1 cannot be the replacement for a reference reserved name because it is another reference reserved name" + 217, "%1 cannot be the replacement for a reference reserved name because it is the replacement of another reference reserved name" + 218, "replacement for reserved name %1 already specified" + 219, "%1 is not a valid name in the declared concrete syntax" + 220, "%1 is not a valid short reference delimiter because it has more than one B sequence" + 221, "%1 is not a valid short reference delimiter because it is adjacent to a character that can occur in a blank sequence" + 222, "length of delimiter %1 exceeds NAMELEN (%2)" + 223, "length of reserved name %1 exceeds NAMELEN (%2)" + 224, "character numbers assigned to both LCNMCHAR or UCNMCHAR and LCNMSTRT or UCNMSTRT: %1" + 225, "when the concrete syntax scope is INSTANCE the syntax reference character set of the declared syntax must be the same as that of the reference concrete syntax" + 226, "end-tag minimization should be O for element with declared content of EMPTY" + 227, "end-tag minimization should be O for element %1 because it has CONREF attribute" + 228, "element %1 has a declared content of EMPTY and a CONREF attribute" + 229, "element %1 has a declared content of EMPTY and a NOTATION attribute" + 230, "declared value of data attribute cannot be ENTITY, ENTITIES, ID, IDREF, IDREFS or NOTATION" + 231, "default value of data attribute cannot be CONREF or CURRENT" + 232, "number of attribute names and name tokens (%1) exceeds ATTCNT (%2)" + 233, "if the declared value is ID the default value must be IMPLIED or REQUIRED" + 234, "the attribute definition list already declared attribute %1 as the ID attribute" + 235, "the attribute definition list already declared attribute %1 as the NOTATION attribute" + 236, "token %1 occurs more than once in attribute definition list" + 237, "no attributes defined for notation %1" + 238, "notation %1 for entity %2 undefined" + 239, "entity %1 undefined in short reference map %2" + 240, "notation %1 is undefined but had attribute definition" + 241, "length of interpreted parameter literal in bracketed text plus the length of the bracketing delimiters must not exceed LITLEN (%1)" + 242, "length of rank stem plus length of rank suffix must not exceed NAMELEN (%1)" + 243, "document instance must start with document element" + 244, "content model nesting level exceeds GRPLVL (%1)" + 245, "grand total of content tokens exceeds GRPGTCNT (%1)" + 246, "unclosed start-tag requires SHORTTAG YES" + 247, "NET-enabling start-tag requires SHORTTAG YES" + 248, "unclosed end-tag requires SHORTTAG YES" + 249, "DTDs other than base allowed only if CONCUR YES or EXPLICIT YES" + 250, "end of entity other than document entity after document element" + 251, "%1 declaration illegal after document element" + 252, "character reference illegal after document element" + 253, "entity reference illegal after document element" + 254, "marked section illegal after document element" + 255, "the %1 occurrence of %2 in the content model for %3 cannot be excluded at this point because it is contextually required" + 256, "the %1 occurrence of %2 in the content model for %3 cannot be excluded because it is neither inherently optional nor a member of an OR group" + 257, "an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified" + 258, "value cannot be specified both for notation attribute and content reference attribute" + 259, "notation %1 already defined" + 260, "short reference map %1 already defined" + 261, "first defined here" + 262, "general delimiter role %1 already defined" + 263, "number of ID references in start-tag must not exceed GRPCNT (%1)" + 264, "number of entity names in attribute specification list must not exceed GRPCNT (%1)" + 265, "normalized length of attribute specification list must not exceed ATTSPLEN (%1); length was %2" + 266, "short reference delimiter %1 already specified" + 267, "single character short references were already specified for character numbers: %1" + 268, "default entity used in entity attribute %1" + 269, "reference to entity %1 uses default entity" + 270, "entity %1 in short reference map %2 uses default entity" + 271, "no DTD %1 declared" + 272, "LPD %1 has neither internal nor external subset" + 273, "element types have different link attribute definitions" + 274, "link set %1 already defined" + 275, "empty result attribute specification" + 276, "no source element type %1" + 277, "no result element type %1" + 278, "end of document in LPD subset" + 279, "%1 declaration not allowed in LPD subset" + 280, "ID link set declaration not allowed in simple link declaration subset" + 281, "link set declaration not allowed in simple link declaration subset" + 282, "attributes can only be defined for base document element (not %1) in simple link declaration subset" + 283, "a short reference mapping declaration is allowed only in the base DTD" + 284, "a short reference use declaration is allowed only in the base DTD" + 285, "default value of link attribute cannot be CURRENT or CONREF" + 286, "declared value of link attribute cannot be ID, IDREF, IDREFS or NOTATION" + 287, "only fixed attributes can be defined in simple LPD" + 288, "only one ID link set declaration allowed in an LPD subset" + 289, "no initial link set defined for LPD %1" + 290, "notation %1 not defined in source DTD" + 291, "result document type in simple link specification must be implied" + 292, "simple link requires SIMPLE YES" + 293, "implicit link requires IMPLICIT YES" + 294, "explicit link requires EXPLICIT YES" + 295, "LPD not allowed before first DTD" + 296, "DTD not allowed after an LPD" + 297, "definition of general entity %1 is unstable" + 298, "definition of parameter entity %1 is unstable" + 299, "multiple link rules for ID %1 but not all have link attribute specifications" + 300, "multiple link rules for element type %1 but not all have link attribute specifications" + 301, "link type %1 does not have a link set %2" + 302, "link set use declaration for simple link process" + 303, "no link type %1" + 304, "both document type and link type %1" + 305, "link type %1 already defined" + 306, "document type %1 already defined" + 307, "link set %1 used in LPD but not defined" + 308, "#IMPLIED already linked to result element type %1" + 309, "number of active simple link processes exceeds quantity specified for SIMPLE parameter in SGML declaration (%1)" + 310, "only one chain of explicit link processes can be active" + 311, "source document type name for link type %1 must be base document type since EXPLICIT YES 1" + 312, "only one implicit link process can be active" + 313, "sorry, link type %1 not activated: only one implicit or explicit link process can be active (with base document type as source document type)" + 314, "name missing after name group in entity reference" + 315, "source document type name for link type %1 must be base document type since EXPLICIT NO" + 316, "link process must be activated before base DTD" + 317, "unexpected entity end while starting second pass" + 318, "type %1 of element with ID %2 not associated element type for applicable link rule in ID link set" + 319, "DATATAG feature not implemented" + 320, "generic identifier specification missing after document type specification in start-tag" + 321, "generic identifier specification missing after document type specification in end-tag" + 322, "a NET-enabling start-tag cannot include a document type specification" + 323, "DTD did not contain element declaration for document type name" + 324, "invalid default SGML declaration" + 325, "reference to entity %1 for which no system identifier could be generated" + 326, "entity was defined here" + 327, "content model is mixed but does not allow #PCDATA everywhere" + 328, "start or end of range must specify a single character" + 329, "number of first character in range must not exceed number of second character in range" + 330, "delimiter cannot be an empty string" + 331, "too many characters assigned same meaning with minimum literal" + 332, "earlier reference to entity %1 used default entity" + 333, "empty start-tag" + 334, "empty end-tag" + 335, "unused short reference map %1" + 336, "unused parameter entity %1" + 337, "cannot generate system identifier for public text %1" + 338, "cannot generate system identifier for general entity %1" + 339, "cannot generate system identifier for parameter entity %1" + 340, "cannot generate system identifier for document type %1" + 341, "cannot generate system identifier for link type %1" + 342, "cannot generate system identifier for notation %1" + 343, "element type %1 both included and excluded" + 344, "no document type declaration; implying %1" + 345, "minimum data of AFDR declaration must be ""ISO/IEC 10744:1997"" not %1" + 346, "AFDR declaration required before use of AFDR extensions" + 347, "ENR extensions were used but minimum literal was not ""ISO 8879:1986 (ENR)"" or ""ISO 8879:1986 (WWW)""" + 348, "illegal numeric character reference to non-SGML character %1 in literal" + 349, "cannot convert character reference to number %1 because description %2 unrecognized" + 350, "cannot convert character reference to number %1 because character %2 from baseset %3 unknown" + 351, "character reference to number %1 cannot be converted because of problem with internal character set" + 352, "cannot convert character reference to number %1 because character not in internal character set" + 353, "Web SGML adaptations were used but minimum literal was not ""ISO 8879:1986 (WWW)""" + 354, "token %1 can be value for multiple attributes so attribute name required" + 355, "length of hex number must not exceed NAMELEN (%1)" + 356, "%1 is not a valid name in the declared concrete syntax" + 357, "CDATA declared content" + 358, "RCDATA declared content" + 359, "inclusion" + 360, "exclusion" + 361, "NUMBER or NUMBERS declared value" + 362, "NAME or NAMES declared value" + 363, "NUTOKEN or NUTOKENS declared value" + 364, "CONREF attribute" + 365, "CURRENT attribute" + 366, "TEMP marked section" + 367, "included marked section in the instance" + 368, "ignored marked section in the instance" + 369, "RCDATA marked section" + 370, "processing instruction entity" + 371, "bracketed text entity" + 372, "internal CDATA entity" + 373, "internal SDATA entity" + 374, "external CDATA entity" + 375, "external SDATA entity" + 376, "attribute definition list declaration for notation" + 377, "rank stem" + 378, "no system id specified" + 379, "comment in parameter separator" + 380, "named character reference" + 381, "AND group" + 382, "attribute value not a literal" + 383, "attribute name missing" + 384, "element declaration for group of element types" + 385, "attribute definition list declaration for group of element types" + 386, "empty comment declaration" + 387, "S separator in comment declaration" + 388, "multiple comments in comment declaration" + 389, "no status keyword" + 390, "multiple status keywords" + 391, "parameter entity reference in document instance" + 392, "CURRENT attribute" + 393, "element type minimization parameter" + 394, "reference not terminated by REFC delimiter" + 395, "#PCDATA not first in model group" + 396, "#PCDATA in SEQ group" + 397, "#PCDATA in nested model group" + 398, "#PCDATA in model group that does not have REP occurrence indicator" + 399, "name group or name token group used connector other than OR" + 400, "processing instruction does not start with name" + 401, "S separator in status keyword specification in document instance" + 402, "reference to external data entity" + 403, "reference to external entity in attribute value" + 404, "character %1 is the first character of a delimiter but occurred as data" + 405, "SGML declaration was not implied" + 406, "marked section in internal DTD subset" + 407, "NET-enabling start-tag not immediately followed by null end-tag" + 408, "entity end in different element from entity reference" + 409, "NETENABL IMMEDNET requires EMPTYNRM YES" + 410, "reference to non-SGML character" + 411, "declaration of default entity" + 412, "reference to parameter entity in parameter separator in internal subset" + 413, "reference to parameter entity in token separator in internal subset" + 414, "reference to parameter entity in parameter literal in internal subset" + 415, "cannot generate system identifier for SGML declaration reference" + 416, "public text class of formal public identifier of SGML declaration must be SD" + 417, "SGML declaration reference was used but minimum literal was not ""ISO 8879:1986 (WWW)""" + 418, "member of model group containing #PCDATA has occurrence indicator" + 419, "member of model group containing #PCDATA is a model group" + 420, "reference to non-predefined entity" + 421, "reference to external entity" + 422, "declaration of default entity conflicts with IMPLYDEF ENTITY YES" + 423, "parsing with respect to more than one active doctype not supported" + 424, "cannot have active doctypes and link types at the same time" + 425, "number of concurrent document instances exceeds quantity specified for CONCUR parameter in SGML declaration (%1)" + 426, "datatag group can only be specified in base document type" + 427, "element not in the base document type can't have an empty start-tag" + 428, "element not in base document type can't have an empty end-tag" + 429, "immediately recursive element" + 430, "invalid URN %1: missing "":""" + 431, "invalid URN %1: missing ""urn:"" prefix" + 432, "invalid URN %1: invalid namespace identifier" + 433, "invalid URN %1: invalid namespace specific string" + 434, "invalid URN %1: extra field" + 435, "prolog can't be omitted unless CONCUR NO and LINK EXPLICIT NO and either IMPLYDEF ELEMENT YES or IMPLYDEF DOCTYPE YES" + 436, "can't determine name of #IMPLIED document element" + 437, "can't use #IMPLICIT doctype unless CONCUR NO and LINK EXPLICIT NO" + 438, "Sorry, #IMPLIED doctypes not implemented" + 439, "reference to DTD data entity ignored" + 440, "notation %1 for parameter entity %2 undefined" + 441, "notation %1 for external subset undefined" + 442, "attribute %1 can't be redeclared" + 443, "#IMPLICIT attributes have already been specified for notation %1" + 444, "a name group is not allowed in a parameter entity reference in a start tag" + 445, "name group in a parameter entity reference in an end tag (SGML forbids them in start tags)" + 446, "if the declared value is NOTATION a default value of CONREF is useless" + 447, "Sorry, #ALL and #IMPLICIT content tokens not implemented" + 1000, "delimiter " + 1002, "digit" + 1003, "name start character" + 1004, "sepchar" + 1005, "separator" + 1006, "name character" + 1007, "data character" + 1008, "minimum data character" + 1009, "significant character" + 1010, "record end character" + 1011, "record start character" + 1012, "space character" + 1013, ", " + 1014, "-" + 1015, "parameter literal" + 1016, "data tag group" + 1017, "model group" + 1018, "data tag template group" + 1019, "name" + 1020, "name token" + 1021, "element token" + 1022, "inclusions" + 1023, "exclusions" + 1024, "minimum literal" + 1025, "attribute value literal" + 1026, "system identifier" + 1027, "number" + 1028, "attribute value" + 1029, "name of capacity" + 1030, "name of general delimiter role" + 1031, "reference reserved name" + 1032, "name of quantity" + 1033, "entity end" + 1034, "short reference delimiter" +END diff --git a/lib/ParserOptions.cxx b/lib/ParserOptions.cxx new file mode 100644 index 0000000..bd35485 --- /dev/null +++ b/lib/ParserOptions.cxx @@ -0,0 +1,59 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "ParserOptions.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +ParserOptions::ParserOptions() +: datatag(0), + omittag(1), + rank(1), + shorttag(1), + emptynrm(0), + linkSimple(1000), + linkImplicit(1), + linkExplicit(1), + concur(0), + subdoc(99999999), + formal(1), + typeValid(sgmlDeclTypeValid), + shortref(1), + errorIdref(1), + errorSignificant(1), + errorAfdr(1), + noUnclosedTag(0), + noNet(0), + fullyDeclared(0), + fullyTagged(0), + amplyTagged(0), + amplyTaggedAnyother(0), + valid(0), + entityRef(0), + externalEntityRef(0), + integral(0) +{ + for (int i = 0; i < nQuantity; i++) + quantity[i] = 99999999; + quantity[BSEQLEN] = 960; + quantity[NORMSEP] = 2; + quantity[LITLEN] = 24000; + quantity[PILEN] = 24000; + quantity[DTEMPLEN] = 24000; +} + +Warnings::Warnings() +{ + memset(this, 0, sizeof(Warnings)); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ParserState.cxx b/lib/ParserState.cxx new file mode 100644 index 0000000..fb6c605 --- /dev/null +++ b/lib/ParserState.cxx @@ -0,0 +1,906 @@ +// Copyright (c) 1994 James Clark, 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "ParserState.h" +#include "InternalInputSource.h" +#include "MessageArg.h" +#include "macros.h" +#include "SgmlParser.h" +#include "IListIter.h" +#include "ParserMessages.h" +#include "Undo.h" +#include "Trie.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const Location ParserState::nullLocation_; +sig_atomic_t ParserState::dummyCancel_ = 0; + +static const size_t eventSizes[] = { +#define EVENT(c, f) sizeof(c), +#include "events.h" +#undef EVENT +}; + +static const size_t internalSizes[] = { + sizeof(InternalInputSource), + sizeof(OpenElement), + sizeof(UndoStartTag), + sizeof(UndoEndTag), + sizeof(UndoTransition) +}; + +static +size_t maxSize(const size_t *v, size_t n, size_t max = 0) +{ + for (size_t i = 0; i < n; i++) { + if (v[i] > max) + max = v[i]; + } + return max; +} + +ParserState::ParserState(const Ptr &em, + const ParserOptions &opt, + unsigned subdocLevel, + Phase finalPhase) +: entityManager_(em), + options_(opt), + inInstance_(0), + inStartTag_(0), + inEndTag_(0), + keepingMessages_(0), + eventAllocator_(maxSize(eventSizes, SIZEOF(eventSizes)), 50), + internalAllocator_(maxSize(internalSizes, SIZEOF(internalSizes), EntityOrigin::allocSize), 50), + handler_(&eventQueue_), + subdocLevel_(subdocLevel), + inputLevel_(0), + specialParseInputLevel_(0), + markedSectionLevel_(0), + markedSectionSpecialLevel_(0), + currentMode_(proMode), + hadLpd_(0), + resultAttributeSpecMode_(0), + pass2_(0), + activeLinkTypesSubsted_(0), + allowPass2_(0), + hadPass2Start_(0), + pcdataRecovering_(0), + currentMarkup_(0), + cancelPtr_(&dummyCancel_), + finalPhase_(finalPhase), + hadAfdrDecl_(0), + instantiatedDtds_(0) +{ +} + +void ParserState::inheritActiveLinkTypes(const ParserState &parent) +{ + activeLinkTypes_ = parent.activeLinkTypes_; + activeLinkTypesSubsted_ = parent.activeLinkTypesSubsted_; +} + +void ParserState::allDone() +{ + phase_ = noPhase; +} + +void ParserState::setPass2Start() +{ + ASSERT(inputLevel_ == 1); + if (hadPass2Start_) + return; + hadPass2Start_ = 1; + if (!pass2() && sd().link() && activeLinkTypes_.size() > 0) { + allowPass2_ = 1; + pass1Handler_.init(handler_); + handler_ = &pass1Handler_; + const InputSourceOrigin *p + = currentLocation().origin()->asInputSourceOrigin(); + pass2StartOffset_= p->startOffset(currentLocation().index()); + } + else { + allowPass2_ = 0; + currentInput()->willNotRewind(); + } +} + +void ParserState::allLinkTypesActivated() +{ + if (activeLinkTypes_.size() == 0 && inputLevel_ == 1) + currentInput()->willNotRewind(); +} + +Boolean ParserState::maybeStartPass2() +{ + if (pass2_ || !allowPass2_) + return 0; + handler_ = pass1Handler_.origHandler(); + if (!nActiveLink() || pass1Handler_.hadError()) { + while (!pass1Handler_.empty()) { + if (cancelled()) + return 0; + pass1Handler_.get()->handle(*handler_); + } + InputSource *top = 0; + for (IListIter iter(inputStack_); + !iter.done(); + iter.next()) + top = iter.cur(); + if (top) + top->willNotRewind(); + return 0; + } + pass1Handler_.clear(); + while (inputLevel_ > 1) { + InputSource *p = inputStack_.get(); + inputLevel_--; + delete p; + } + // Caller will call allDone() if inputLevel_ is 0. + if (inputLevel_ == 0) + return 0; + if (!inputStack_.head()->rewind(*this)) { + inputLevel_ = 0; + delete inputStack_.get(); + return 0; + } + inputStack_.head()->willNotRewind(); + for (; pass2StartOffset_ > 0; pass2StartOffset_--) + if (inputStack_.head()->get(messenger()) == InputSource::eE) { + message(ParserMessages::pass2Ee); + inputLevel_ = 0; + delete inputStack_.get(); + return 0; + } + specialParseInputLevel_ = 0; + markedSectionLevel_ = 0; + markedSectionSpecialLevel_ = 0; + currentMode_ = proMode; + hadLpd_ = 0; + allowPass2_ = 0; + hadPass2Start_ = 0; + currentMarkup_ = 0; + inputLevel_ = 1; + inInstance_ = 0; + inStartTag_ = 0; + inEndTag_ = 0; + defDtd_.clear(); + defLpd_.clear(); + dtd_[0].swap(pass1Dtd_); + dtd_.clear(); + dsEntity_.clear(); + currentDtd_.clear(); + currentDtdConst_.clear(); + phase_ = noPhase; + pass2_ = 1; + lpd_.clear(); + allLpd_.clear(); + return 1; +} + +Boolean ParserState::referenceDsEntity(const Location &loc) +{ + if (dsEntity_.isNull()) + return 0; + Ptr origin + = EntityOrigin::make(internalAllocator(), dsEntity_, loc); + dsEntity_->dsReference(*this, origin); + dsEntity_.clear(); + return inputLevel() > 1; +} + +void ParserState::startDtd(const StringC &name) +{ + defDtd_ = new Dtd(name, dtd_.size() == 0); + defLpd_.clear(); + for (size_t i = 0; i < options().includes.size(); i++) { + StringC name = options().includes[i]; + syntax().entitySubstTable()->subst(name); + Text text; + text.addChars(syntax().reservedName(Syntax::rINCLUDE), Location()); + Entity *entity + = new InternalTextEntity(name, + Entity::parameterEntity, + Location(), + text, + InternalTextEntity::none); + entity->setUsed(); + defDtd_->insertEntity(entity); + } + size_t nEntities = instanceSyntax_->nEntities(); + for (size_t i = 0; i < nEntities; i++) { + Text text; + text.addChar(instanceSyntax_->entityChar(i), Location()); + Entity *entity + = new PredefinedEntity(instanceSyntax_->entityName(i), + Location(), + text); + defDtd_->insertEntity(entity); + } + currentDtd_ = defDtd_; + currentDtdConst_ = defDtd_; + currentMode_ = dsMode; +} + +void ParserState::enterTag(Boolean start) +{ + (start ? inStartTag_ : inEndTag_) = 1; +} + +void ParserState::leaveTag() +{ + inStartTag_ = 0; + inEndTag_ = 0; +} + +Boolean ParserState::inTag(Boolean &start) const +{ + start = inStartTag_; + return inStartTag_ || inEndTag_; +} + +void ParserState::endDtd() +{ + dtd_.push_back(defDtd_); + defDtd_.clear(); + currentDtd_.clear(); + currentDtdConst_.clear(); + currentMode_ = proMode; +} + +void ParserState::startLpd(Ptr &lpd) +{ + defLpd_ = lpd; + defDtd_ = defLpd_->sourceDtd(); + currentDtd_ = defLpd_->sourceDtd(); + currentDtdConst_ = defLpd_->sourceDtd(); + currentMode_ = dsMode; +} + +void ParserState::endLpd() +{ + hadLpd_ = 1; + if (defLpd_->active()) + lpd_.push_back(defLpd_); + allLpd_.push_back(defLpd_); + defLpd_.clear(); + currentDtd_.clear(); + currentDtdConst_.clear(); + currentMode_ = proMode; +} + +void ParserState::popInputStack() +{ + ASSERT(inputLevel_ > 0); + InputSource *p = inputStack_.get(); + + if (handler_ != 0 && inputLevel_ > 1) { + handler_->inputClosed(p); + } + + inputLevel_--; + delete p; + if (specialParseInputLevel_ > 0 && inputLevel_ == specialParseInputLevel_) + currentMode_ = specialParseMode_; + if (currentMode_ == dsiMode + && inputLevel_ == 1 + && markedSectionLevel_ == 0) + currentMode_ = dsMode; + if (inputLevelElementIndex_.size()) + inputLevelElementIndex_.resize(inputLevelElementIndex_.size() - 1); +} + +void ParserState::setSd(ConstPtr sd) +{ + sd_ = sd; + mayDefaultAttribute_ = (sd_->omittag() || sd_->attributeDefault()); + validate_ = sd_->typeValid(); + implydefElement_ = sd_->implydefElement(); + implydefAttlist_ = sd_->implydefAttlist(); +} + +void ParserState::setSyntax(ConstPtr syntax) +{ + syntax_ = syntax; + prologSyntax_ = syntax; + instanceSyntax_ = syntax; +} + +void ParserState::setSyntaxes(ConstPtr prologSyntax, + ConstPtr instanceSyntax) +{ + syntax_ = prologSyntax; + prologSyntax_ = prologSyntax; + instanceSyntax_ = instanceSyntax; +} + +void ParserState::pushInput(InputSource *in) +{ + if (!in) + return; + + if (handler_ != 0 && inputLevel_ > 0) { + handler_->inputOpened(in); + } + + if (!syntax_.isNull() && syntax_->multicode()) + in->setMarkupScanTable(syntax_->markupScanTable()); + inputStack_.insert(in); + inputLevel_++; + if (specialParseInputLevel_ > 0 && inputLevel_ > specialParseInputLevel_) + currentMode_ = rcconeMode; // mode for rcdata in an entity + else if (currentMode_ == dsMode) + currentMode_ = dsiMode; + if (inInstance_ && sd().integrallyStored()) + inputLevelElementIndex_.push_back(tagLevel() ? currentElement().index() : 0); +} + +void ParserState::startMarkedSection(const Location &loc) +{ + markedSectionLevel_++; + markedSectionStartLocation_.push_back(loc); + if (currentMode_ == dsMode) + currentMode_ = dsiMode; + if (markedSectionSpecialLevel_) + markedSectionSpecialLevel_++; +} + +void ParserState::startSpecialMarkedSection(Mode mode, const Location &loc) +{ + markedSectionLevel_++; + markedSectionStartLocation_.push_back(loc); + specialParseInputLevel_ = inputLevel_; + markedSectionSpecialLevel_ = 1; + specialParseMode_ = currentMode_ = mode; +} + +void ParserState::endMarkedSection() +{ + ASSERT(markedSectionLevel_ > 0); + markedSectionLevel_--; + markedSectionStartLocation_.resize(markedSectionStartLocation_.size() + - 1); + if (markedSectionSpecialLevel_ > 0) { + markedSectionSpecialLevel_--; + if (markedSectionSpecialLevel_ > 0) + return; // remain in imsMode + specialParseInputLevel_ = 0; + if (inInstance_) + currentMode_ = contentMode(); + else + currentMode_ = dsiMode; + } + if (currentMode_ == dsiMode + && inputLevel_ == 1 + && markedSectionLevel_ == 0) + currentMode_ = dsMode; +} + +void ParserState::pushElement(OpenElement *e) +{ + ContentState::pushElement(e); + pcdataRecovering_ = 0; + // the start tag of this element may have been implied by data + // inside a cdata or rcdata marked section + if (markedSectionSpecialLevel_ == 0) { + currentMode_ = contentMode(); + if (e->requiresSpecialParse()) { + specialParseMode_ = currentMode_; + specialParseInputLevel_ = inputLevel_; + } + } +} + +// PCDATA was encountered somewhere where it was not allowed. +// Change the current mode to improve recovery. + +void ParserState::pcdataRecover() +{ + switch (currentMode_) { + case econMode: + currentMode_ = mconMode; + break; + case econnetMode: + currentMode_ = mconnetMode; + break; + default: + break; + } + pcdataRecovering_ = 1; +} + +OpenElement *ParserState::popSaveElement() +{ + OpenElement *e = ContentState::popSaveElement(); + // the end tag of this element may have been implied by data + // inside a cdata or rcdata marked section + if (markedSectionSpecialLevel_ == 0) { + currentMode_ = contentMode(); + specialParseInputLevel_ = 0; + } + pcdataRecovering_ = 0; + return e; +} + +void ParserState::popElement() +{ + delete popSaveElement(); +} + +Boolean ParserState::entityIsOpen(const EntityDecl *entityDecl) const +{ + for (IListIter iter(inputStack_); !iter.done(); iter.next()) + if (iter.cur()->currentLocation().origin()->entityDecl() == entityDecl) + return 1; + return 0; +} + +void ParserState::startInstance() +{ + if (!instanceSyntax_.isNull()) + syntax_ = instanceSyntax_; + currentMode_ = econMode; + + currentDtd_.clear(); + for (size_t i = 0; i < dtd_.size(); i++) { + if (shouldActivateLink(dtd_[i]->name())) { + if (nActiveLink() > 0) { + message(ParserMessages::activeDocLink); + break; + } + else if (!currentDtd_.isNull()) { + message(ParserMessages::sorryActiveDoctypes); + break; + } + else + currentDtd_ = dtd_[i]; + } + } + if (currentDtd_.isNull()) + currentDtd_ = dtd_[0]; + currentDtdConst_ = currentDtd_; + + startContent(currentDtd()); + inInstance_ = 1; + if (sd().rank()) + currentRank_.assign(currentDtd().nRankStem(), StringC()); + currentAttributes_.clear(); + currentAttributes_.resize(currentDtd().nCurrentAttribute()); + idTable_.clear(); +} + +Id *ParserState::lookupCreateId(const StringC &name) +{ + Id *id = idTable_.lookup(name); + if (!id) { + id = new Id(name); + idTable_.insert(id); + } + return id; +} + +ConstPtr +ParserState::lookupEntity(Boolean isParameter, + const StringC &name, + const Location &useLocation, + Boolean referenced) +{ + Dtd *dtd; + if (resultAttributeSpecMode_) + dtd = defComplexLpd().resultDtd().pointer(); + else + dtd = currentDtd_.pointer(); + if (dtd) { + Ptr entity(dtd->lookupEntity(isParameter, name)); + // Did we find it in pass1Dtd? + // Did we look at the defaultEntity? + if (!inInstance_ && pass2() && dtd->isBase() + && !resultAttributeSpecMode_ + && (entity.isNull() || !entity->declInActiveLpd())) { + ConstPtr entity1 + = pass1Dtd_->lookupEntity(isParameter, name); + if (!entity1.isNull() && entity1->declInActiveLpd() + && !entity1->defaulted()) { + if (referenced) + noteReferencedEntity(entity1, 1, 0); + return entity1; + } + else if (!entity.isNull()) { + if (referenced) + noteReferencedEntity(entity, 0, 0); + entity->setUsed(); + return entity; + } + } + else if (!entity.isNull()) { + entity->setUsed(); + eventHandler().entityDefaulted + (new (eventAllocator())EntityDefaultedEvent + (entity, useLocation)); + return entity; + } + if (!isParameter) { + ConstPtr entity(dtd->defaultEntity()); + Boolean note = 0; + Boolean usedPass1 = 0; + if (!inInstance_ && pass2() && dtd->isBase() + && !resultAttributeSpecMode_ + && (entity.isNull() || !entity->declInActiveLpd())) { + if (referenced) + note = 1; + ConstPtr entity1 = pass1Dtd_->defaultEntity(); + if (!entity1.isNull() && entity1->declInActiveLpd()) { + usedPass1 = 1; + entity = entity1; + } + } + if (!entity.isNull()) { + Boolean mustCopy = 1; + if (inInstance_) { + ConstPtr tem + = instanceDefaultedEntityTable_.lookupConst(name); + if (!tem.isNull()) { + entity = tem; + mustCopy = 0; + } + } + if (mustCopy) { + Ptr p(entity->copy()); + p->setName(name); + p->generateSystemId(*this); + p->setDefaulted(); + entity = p; + if (inInstance_) { + instanceDefaultedEntityTable_.insert(p); + eventHandler().entityDefaulted(new (eventAllocator()) + EntityDefaultedEvent(entity, + useLocation)); + } + else + dtd->insertEntity(p); + } + if (note) + noteReferencedEntity(entity, usedPass1, 1); + } + else + entity = undefinedEntityTable_.lookupConst(name); + return entity; + } + } + return (Entity *)0; +} + +ConstPtr ParserState::createUndefinedEntity(const StringC &name, const Location &loc) +{ + ExternalId extid; + Ptr entity(new ExternalTextEntity(name, EntityDecl::generalEntity, + loc, extid)); + undefinedEntityTable_.insert(entity); + entity->generateSystemId(*this); + return entity; +} + +void ParserState::noteReferencedEntity(const ConstPtr &entity, + Boolean foundInPass1Dtd, + Boolean lookedAtDefault) +{ + LpdEntityRef ref; + ref.entity = entity; + ref.lookedAtDefault = lookedAtDefault; + ref.foundInPass1Dtd = foundInPass1Dtd; + LpdEntityRef *old = lpdEntityRefs_.lookup(ref); + if (!old) + lpdEntityRefs_.insert(new LpdEntityRef(ref)); +} + +// Compare entity definitions. +// e1 is the original (will not be an external non-text entity). +// FIXME should look at generated sysids as well. +static +Boolean sameEntityDef(const Entity *e1, const Entity *e2) +{ + if (e1->dataType() != e2->dataType()) + return 0; + const InternalEntity *i1 = e1->asInternalEntity(); + const InternalEntity *i2 = e2->asInternalEntity(); + if (i1) { + if (!i2) + return 0; + if (i1->string() != i2->string()) + return 0; + return 1; + } + else if (i2) + return 0; + const ExternalEntity *x1 = e1->asExternalEntity(); + const ExternalEntity *x2 = e2->asExternalEntity(); + const StringC *s1 = x1->externalId().systemIdString(); + const StringC *s2 = x2->externalId().systemIdString(); + if (s1) { + if (!s2) + return 0; + if (*s1 != *s2) + return 0; + } + else if (s2) + return 0; + s1 = x1->externalId().publicIdString(); + s2 = x2->externalId().publicIdString(); + if (s1) { + if (!s2) + return 0; + if (*s1 != *s2) + return 0; + } + else if (s2) + return 0; + return 1; +} + +void ParserState::checkEntityStability() +{ + LpdEntityRefSetIter iter(lpdEntityRefs_); + LpdEntityRef *ref; + while ((ref = iter.next()) != 0) { + ConstPtr entity + = dtd_[0]->lookupEntity(ref->entity->declType() + == Entity::parameterEntity, + ref->entity->name()); + if (entity.isNull() && ref->lookedAtDefault) + entity = dtd_[0]->defaultEntity(); + if (entity.isNull() + ? ref->foundInPass1Dtd + : !sameEntityDef(ref->entity.pointer(), entity.pointer())) + message(((ref->entity->declType() + == Entity::parameterEntity) + ? ParserMessages::unstableLpdParameterEntity + : ParserMessages::unstableLpdGeneralEntity), + StringMessageArg(ref->entity->name())); + } + { + // Ensure that the memory is released. + LpdEntityRefSet tem; + lpdEntityRefs_.swap(tem); + } +} + +Boolean ParserState::appendCurrentRank(StringC &str, const RankStem *stem) + const +{ + const StringC &suffix = currentRank_[stem->index()]; + if (suffix.size() > 0) { + str += suffix; + return 1; + } + return 0; +} + +void ParserState::setCurrentRank(const RankStem *stem, const StringC &suffix) +{ + currentRank_[stem->index()] = suffix; +} + +void ParserState::getCurrentToken(const SubstTable *subst, + StringC &str) const +{ + InputSource *in = currentInput(); + const Char *p = in->currentTokenStart(); + size_t count = in->currentTokenLength(); + str.resize(count); + StringC::iterator s = str.begin(); + for (; count > 0; --count) + *s++ = (*subst)[*p++]; +} + +void ParserState::queueMessage(MessageEvent *event) +{ + if (cancelled()) { + delete event; + return; + } + if (keepingMessages_) + keptMessages_.append(event); + else + handler_->message(event); +} + +void ParserState::releaseKeptMessages() +{ + keepingMessages_ = 0; + while (!keptMessages_.empty()) { + if (cancelled()) { + allDone(); + return; + } + handler_->message(keptMessages_.get()); + } +} + +void ParserState::discardKeptMessages() +{ + keepingMessages_ = 0; + keptMessages_.clear(); +} + +void ParserState::initMessage(Message &msg) +{ + if (inInstance()) { + StringC rniPcdata = syntax().delimGeneral(Syntax::dRNI); + rniPcdata += syntax().reservedName(Syntax::rPCDATA); + getOpenElementInfo(msg.openElementInfo, rniPcdata); + } + msg.loc = currentLocation(); +} + +void ParserState::dispatchMessage(Message &msg) +{ + queueMessage(new MessageEvent(msg)); +} + +void ParserState::dispatchMessage(const Message &msg) +{ + queueMessage(new MessageEvent(msg)); +} + +AttributeList * +ParserState::allocAttributeList(const ConstPtr &def, + unsigned i) +{ + if (i < attributeLists_.size()) + attributeLists_[i]->init(def); + else { + attributeLists_.resize(i + 1); + attributeLists_[i] = new AttributeList(def); + } + return attributeLists_[i].pointer(); +} + +void ParserState::activateLinkType(const StringC &name) +{ + if (!hadPass2Start_ && !pass2_) + activeLinkTypes_.push_back(name); + else + message(ParserMessages::linkActivateTooLate); +} + +Boolean ParserState::shouldActivateLink(const StringC &name) const +{ + if (!activeLinkTypesSubsted_) { + for (size_t i = 0; i < activeLinkTypes_.size(); i++) + syntax().generalSubstTable()->subst( +#ifndef HAVE_MUTABLE + ((ParserState *)this)-> +#endif + activeLinkTypes_[i] + ); +#ifndef HAVE_MUTABLE + ((ParserState *)this)-> +#endif + activeLinkTypesSubsted_ = 1; + } + for (size_t i = 0; i < activeLinkTypes_.size(); i++) + if (name == activeLinkTypes_[i]) + return 1; + return 0; +} + +Ptr ParserState::lookupDtd(const StringC &name) +{ + for (size_t i = 0; i < dtd_.size(); i++) + if (dtd_[i]->name() == name) + return dtd_[i]; + return Ptr(); +} + +ConstPtr ParserState::lookupLpd(const StringC &name) const +{ + for (size_t i = 0; i < allLpd_.size(); i++) + if (allLpd_[i]->name() == name) + return allLpd_[i]; + return ConstPtr(); +} + +ConstPtr ParserState::getAttributeNotation(const StringC &name, + const Location &) +{ + ConstPtr notation; + if (haveCurrentDtd()) { + notation = currentDtd().lookupNotation(name); + if (notation.isNull() && sd().implydefNotation()) { + Ptr nt = new Notation(name, + currentDtd().namePointer(), + currentDtd().isBase()); + ExternalId id; + nt->setExternalId(id, Location()); + nt->generateSystemId(*this); + nt->setAttributeDef(currentDtdNonConst().implicitNotationAttributeDef()); + currentDtdNonConst().insertNotation(nt); + notation = currentDtd().lookupNotation(name); + } + } + else if (resultAttributeSpecMode_) { + const Dtd *resultDtd = defComplexLpd().resultDtd().pointer(); + if (!resultDtd) + return 0; + notation = resultDtd->lookupNotation(name); + } + return notation; +} + +ConstPtr ParserState::getAttributeEntity(const StringC &str, + const Location &loc) +{ + ConstPtr entity = lookupEntity(0, str, loc, 0); + if (!entity.isNull() + && entity->defaulted() + && options().warnDefaultEntityReference) { + setNextLocation(loc); + message(ParserMessages::defaultEntityInAttribute, + StringMessageArg(str)); + } + return entity; +} + +Boolean ParserState::defineId(const StringC &str, const Location &loc, + Location &prevLoc) +{ + if (!inInstance() || !validate()) + return 1; + Id *id = lookupCreateId(str); + if (id->defined()) { + prevLoc = id->defLocation(); + return 0; + } + id->define(loc); + return 1; +} + +void ParserState::noteIdref(const StringC &str, const Location &loc) +{ + if (!inInstance() || !options().errorIdref || !validate()) + return; + Id *id = lookupCreateId(str); + if (!id->defined()) + id->addPendingRef(loc); +} + +void ParserState::noteCurrentAttribute(size_t i, AttributeValue *value) +{ + if (inInstance()) + currentAttributes_[i] = value; +} + +ConstPtr ParserState::getCurrentAttribute(size_t i) const +{ + if (!inInstance()) + return ConstPtr(); + return currentAttributes_[i]; +} + +const Syntax &ParserState::attributeSyntax() const +{ + return syntax(); +} + +unsigned ParserState::instantiateDtd(Ptr &dtd) +{ + if (!dtd->isInstantiated()) { + dtd->instantiate(); + if (instantiatedDtds_ == sd().concur()) + message(ParserMessages::concurrentInstances, + NumberMessageArg(sd().concur())); + instantiatedDtds_++; + } + return instantiatedDtds_; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ParserState.h b/lib/ParserState.h new file mode 100644 index 0000000..e27290d --- /dev/null +++ b/lib/ParserState.h @@ -0,0 +1,859 @@ +// Copyright (c) 1994 James Clark, 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#ifndef ParserState_INCLUDED +#define ParserState_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include +#include +#include "Allocator.h" +#include "Attribute.h" +#include "Boolean.h" +#include "Vector.h" +#include "StringC.h" +#include "Dtd.h" +#include "Entity.h" +#include "EntityCatalog.h" +#include "EntityManager.h" +#include "Event.h" +#include "EventQueue.h" +#include "Id.h" +#include "InputSource.h" +#include "IList.h" +#include "IQueue.h" +#include "Location.h" +#include "Message.h" +#include "Mode.h" +#include "OpenElement.h" +#include "OutputState.h" +#include "ParserOptions.h" +#include "Ptr.h" +#include "Recognizer.h" +#include "Sd.h" +#include "Syntax.h" +#include "NCVector.h" +#include "Owner.h" +#include "Lpd.h" +#include "LpdEntityRef.h" +#include "Markup.h" +#include "ContentState.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class ParserState : public ContentState, public AttributeContext { +public: + enum Phase { + noPhase, + initPhase, + prologPhase, + declSubsetPhase, + instanceStartPhase, + contentPhase + }; + ParserState(const Ptr &, + const ParserOptions &, + unsigned subdocLevel, + Phase finalPhase); + void setHandler(EventHandler *, const volatile sig_atomic_t *cancelPtr); + void unsetHandler(); + Boolean inInstance() const; + Boolean inTag(Boolean &start) const; + void enterTag(Boolean start); + void leaveTag(); + Boolean hadDtd() const; + void allDone(); + void startDtd(const StringC &); + void endDtd(); + void startInstance(); + unsigned subdocLevel() const; + Boolean haveDefLpd() const; + Dtd &defDtd(); + const Ptr &defDtdPointer() const; + Boolean haveCurrentDtd() const; + const Dtd ¤tDtd() const; + Dtd ¤tDtdNonConst() const; + const ConstPtr ¤tDtdPointer() const; + void startLpd(Ptr &lpd); + void endLpd(); + Lpd &defLpd(); + Ptr &defLpdPointer(); + Ptr defComplexLpdPointer(); + size_t nActiveLink() const; + const Lpd &activeLpd(size_t i) const; + ComplexLpd &defComplexLpd(); + Ptr lookupDtd(const StringC &name); + unsigned instantiateDtd(Ptr &dtd); + Ptr baseDtd(); + void activateLinkType(const StringC &); + void allLinkTypesActivated(); + void setResultAttributeSpecMode(); + void clearResultAttributeSpecMode(); + Boolean haveApplicableDtd() const; + Boolean hadLpd() const; + Boolean pass2() const; + void setPass2Start(); + Boolean maybeStartPass2(); + void checkEntityStability(); + void noteReferencedEntity(const ConstPtr &entity, + Boolean, Boolean); + ConstPtr lookupLpd(const StringC &name) const; + Boolean shouldActivateLink(const StringC &) const; + Char currentChar() const; + const Location ¤tLocation() const; + InputSource *currentInput() const; + EntityManager &entityManager() const; + Ptr entityManagerPtr() const; + const EntityCatalog &entityCatalog() const; + ConstPtr entityCatalogPtr() const; + void setEntityCatalog(const ConstPtr &); + void setSyntax(ConstPtr); + void setSyntaxes(ConstPtr, ConstPtr); + void setSd(ConstPtr); + const Syntax &syntax() const; + const Syntax &instanceSyntax() const; + const ConstPtr &syntaxPointer() const; + const ConstPtr &prologSyntaxPointer() const; + const ConstPtr &instanceSyntaxPointer() const; + const Sd &sd() const; + const ConstPtr &sdPointer() const; + void setPhase(Phase phase); + Phase phase() const; + Phase finalPhase() const; + Mode currentMode() const; + void setRecognizer(Mode, ConstPtr); + void setNormalMap(const XcharMap &); + const XcharMap &normalMap() const; + Xchar getChar(); + void skipChar(); + Token getToken(Mode mode); + StringC currentToken() const; + void getCurrentToken(StringC &) const; + void getCurrentToken(const SubstTable *, StringC &) const; + unsigned inputLevel() const; + unsigned specialParseInputLevel() const; + unsigned markedSectionLevel() const; + unsigned markedSectionSpecialLevel() const; + unsigned currentInputElementIndex() const; + const Location ¤tMarkedSectionStartLocation() const; + Boolean entityIsOpen(const EntityDecl *) const; + void popInputStack(); + void pushInput(InputSource *); + Boolean referenceDsEntity(const Location &); + void setDsEntity(const ConstPtr &); + const ConstPtr &dsEntity() const; + Boolean eventQueueEmpty() const; + Event *eventQueueGet(); + EventHandler &eventHandler(); + void pushElement(OpenElement *); + OpenElement *popSaveElement(); + void popElement(); + void pcdataRecover(); + Boolean pcdataRecovering() const; + ConstPtr lookupEntity(Boolean isParameter, + const StringC &name, + const Location &, + Boolean referenced); + ConstPtr createUndefinedEntity(const StringC &, + const Location &); + Boolean appendCurrentRank(StringC &, const RankStem *) const; + void setCurrentRank(const RankStem *, const StringC &); + void startMarkedSection(const Location &); + void startSpecialMarkedSection(Mode, const Location &); + void endMarkedSection(); + void queueRe(const Location &); + void noteMarkup(); + void noteData(); + void noteRs(); + void noteStartElement(Boolean included); + void noteEndElement(Boolean included); + // size of objects allocated with this must not exceed + // sizeof(StartElementEvent) + Allocator &eventAllocator(); + // size of objects allocated with this must not exceed + // sizeof(OpenElement) + Allocator &internalAllocator(); + AttributeList *allocAttributeList(const ConstPtr &, + unsigned i); + + static void freeEvent(void *); + Boolean wantMarkup() const; + const EventsWanted &eventsWanted() const; + StringC &nameBuffer(); + typedef NamedTableIter IdTableIter; + IdTableIter idTableIter(); + const ParserOptions &options() const; + void enableImplydef(); + Sd::ImplydefElement implydefElement(); + Boolean implydefAttlist(); + void keepMessages(); + void releaseKeptMessages(); + void discardKeptMessages(); + Messenger &messenger(); + + Markup *currentMarkup(); + const Location &markupLocation() const; + Markup *startMarkup(Boolean, const Location &); + void inheritActiveLinkTypes(const ParserState &parent); + Boolean cancelled() const; + + // AFDR extensions + void setHadAfdrDecl(); + Boolean hadAfdrDecl() const; + + // Implementation of AttributeContext. + Boolean defineId(const StringC &, const Location &, Location &); + void noteIdref(const StringC &, const Location &); + void noteCurrentAttribute(size_t, AttributeValue *); + ConstPtr getCurrentAttribute(size_t) const; + ConstPtr getAttributeEntity(const StringC &, + const Location &); + ConstPtr getAttributeNotation(const StringC &, + const Location &); + const Syntax &attributeSyntax() const; + + friend class PiAttspecParser; +private: + ParserState(const ParserState &); // undefined + void operator=(const ParserState &); // undefined + void dispatchMessage(Message &); + void dispatchMessage(const Message &); + void initMessage(Message &); + void queueMessage(MessageEvent *); + Id *lookupCreateId(const StringC &); + + ParserOptions options_; + EventHandler *handler_; + Pass1EventHandler pass1Handler_; + Boolean allowPass2_; + Offset pass2StartOffset_; + Boolean hadPass2Start_; + EventQueue eventQueue_; + OutputState outputState_; + ConstPtr prologSyntax_; + ConstPtr instanceSyntax_; + ConstPtr sd_; + unsigned subdocLevel_; + Ptr entityManager_; + ConstPtr entityCatalog_; + Phase phase_; + Phase finalPhase_; + Boolean inInstance_; + Boolean inStartTag_; + Boolean inEndTag_; + Ptr defDtd_; + Ptr defLpd_; + Vector > allLpd_; + Vector > lpd_; // active LPDs + mutable Vector activeLinkTypes_; + mutable Boolean activeLinkTypesSubsted_; + Boolean hadLpd_; + Boolean resultAttributeSpecMode_; + Boolean pass2_; + typedef OwnerTable + LpdEntityRefSet; + typedef OwnerTableIter + LpdEntityRefSetIter; + LpdEntityRefSet lpdEntityRefs_; + // external entity to be referenced at the end of the declaration subset + ConstPtr dsEntity_; + Allocator eventAllocator_; + Allocator internalAllocator_; + NCVector > attributeLists_; + StringC nameBuffer_; + Boolean keepingMessages_; + IQueue keptMessages_; + Mode currentMode_; + Boolean pcdataRecovering_; + // if in a special parse (cdata, rcdata, ignore), the input level + // at which the special parse started. + unsigned specialParseInputLevel_; + Mode specialParseMode_; + unsigned markedSectionLevel_; + unsigned markedSectionSpecialLevel_; + Vector markedSectionStartLocation_; + ConstPtr recognizers_[nModes]; + XcharMap normalMap_; + unsigned inputLevel_; + IList inputStack_; + Vector inputLevelElementIndex_; + Ptr currentDtd_; + ConstPtr currentDtdConst_; + Vector > dtd_; + Ptr pass1Dtd_; + unsigned instantiatedDtds_; + ConstPtr syntax_; + Vector currentRank_; + NamedTable idTable_; + NamedResourceTable instanceDefaultedEntityTable_; + NamedResourceTable undefinedEntityTable_; + Vector > currentAttributes_; + Markup *currentMarkup_; + Markup markup_; + Location markupLocation_; + Boolean hadAfdrDecl_; + Sd::ImplydefElement implydefElement_; + Boolean implydefAttlist_; + const volatile sig_atomic_t *cancelPtr_; + static sig_atomic_t dummyCancel_; + static const Location nullLocation_; +}; + +inline +Messenger &ParserState::messenger() +{ + return *this; +} + +inline +Boolean ParserState::wantMarkup() const +{ + return (inInstance_ + ? options_.eventsWanted.wantInstanceMarkup() + : options_.eventsWanted.wantPrologMarkup()); +} + + + +inline +const EventsWanted &ParserState::eventsWanted() const +{ + return options_.eventsWanted; +} + +inline +InputSource *ParserState::currentInput() const +{ + return inputStack_.head(); +} + +inline +const Location &ParserState::currentLocation() const +{ + InputSource *in = currentInput(); + return in ? in->currentLocation() : nullLocation_; +} + +inline +Boolean ParserState::pcdataRecovering() const +{ + return pcdataRecovering_; +} + +inline +unsigned ParserState::inputLevel() const +{ + return inputLevel_; +} + +inline +unsigned ParserState::specialParseInputLevel() const +{ + return specialParseInputLevel_; +} + +inline +unsigned ParserState::markedSectionLevel() const +{ + return markedSectionLevel_; +} + +inline +unsigned ParserState::markedSectionSpecialLevel() const +{ + return markedSectionSpecialLevel_; +} + +inline +const Location &ParserState::currentMarkedSectionStartLocation() const +{ + return markedSectionStartLocation_.back(); +} + +inline +unsigned ParserState::currentInputElementIndex() const +{ + return inputLevelElementIndex_.back(); +} + +inline +Char ParserState::currentChar() const +{ + return currentInput()->currentTokenStart()[0]; +} + +inline +StringC ParserState::currentToken() const +{ + return StringC(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength()); +} + +inline +void ParserState::getCurrentToken(StringC &str) const +{ + InputSource *in = currentInput(); + str.assign(in->currentTokenStart(), in->currentTokenLength()); +} + +inline +void ParserState::setRecognizer(Mode mode, ConstPtr p) +{ + recognizers_[mode] = p; +} + +inline +void ParserState::setNormalMap(const XcharMap &map) +{ + normalMap_ = map; +} + +inline +const XcharMap &ParserState::normalMap() const +{ + return normalMap_; +} + +inline +Boolean ParserState::haveDefLpd() const +{ + return !defLpd_.isNull(); +} + +inline +Boolean ParserState::haveCurrentDtd() const +{ + return !currentDtd_.isNull(); +} + +inline +Dtd &ParserState::defDtd() +{ + return *defDtd_; +} + +inline +const Dtd &ParserState::currentDtd() const +{ + return *currentDtd_; +} + +inline +Dtd &ParserState::currentDtdNonConst() const +{ + return *currentDtd_; +} + +inline +const Ptr &ParserState::defDtdPointer() const +{ + return defDtd_; +} + +inline +const ConstPtr &ParserState::currentDtdPointer() const +{ + return currentDtdConst_; +} + +inline +Boolean ParserState::inInstance() const +{ + return inInstance_; +} + +inline +const Syntax &ParserState::syntax() const +{ + return *syntax_; +} + +inline +const Syntax &ParserState::instanceSyntax() const +{ + return *instanceSyntax_; +} + +inline +const ConstPtr &ParserState::syntaxPointer() const +{ + return syntax_; +} + +inline +const ConstPtr &ParserState::instanceSyntaxPointer() const +{ + return instanceSyntax_; +} + +inline +const ConstPtr &ParserState::prologSyntaxPointer() const +{ + return prologSyntax_; +} + +inline +const Sd &ParserState::sd() const +{ + return *sd_; +} + +inline +const ConstPtr &ParserState::sdPointer() const +{ + return sd_; +} + +inline +void ParserState::setPhase(Phase phase) +{ + phase_ = phase; +} + +inline +Mode ParserState::currentMode() const +{ + return currentMode_; +} + +inline +Xchar ParserState::getChar() +{ + return inputStack_.head()->get(messenger()); +} + +inline +void ParserState::skipChar() +{ + (void)getChar(); +} + +inline +Token ParserState::getToken(Mode mode) +{ + return recognizers_[mode]->recognize(inputStack_.head(), messenger()); +} + +inline +Boolean ParserState::hadDtd() const +{ + return dtd_.size() > 0; +} + +inline +Boolean ParserState::eventQueueEmpty() const +{ + return eventQueue_.empty(); +} + +inline +Event *ParserState::eventQueueGet() +{ + return eventQueue_.get(); +} + +inline +ParserState::Phase ParserState::phase() const +{ + return phase_; +} + +inline +ParserState::Phase ParserState::finalPhase() const +{ + return finalPhase_; +} + +inline +EntityManager &ParserState::entityManager() const +{ + return *entityManager_; +} + +inline +Ptr ParserState::entityManagerPtr() const +{ + return entityManager_; +} + +inline +const EntityCatalog &ParserState::entityCatalog() const +{ + return *entityCatalog_; +} + +inline +ConstPtr ParserState::entityCatalogPtr() const +{ + return entityCatalog_; +} + +inline +void ParserState::setEntityCatalog(const ConstPtr &catalog) +{ + entityCatalog_ = catalog; +} + +inline +void ParserState::setDsEntity(const ConstPtr &entity) +{ + dsEntity_ = entity; +} + +inline +Allocator &ParserState::eventAllocator() +{ + return eventAllocator_; +} + +inline +Allocator &ParserState::internalAllocator() +{ + return internalAllocator_; +} + +inline +StringC &ParserState::nameBuffer() +{ + return nameBuffer_; +} + +inline +void ParserState::setHandler(EventHandler *handler, + const volatile sig_atomic_t *cancelPtr) +{ + handler_ = handler; + cancelPtr_ = cancelPtr ? cancelPtr : &dummyCancel_; +} + +inline +void ParserState::unsetHandler() +{ + handler_ = &eventQueue_; + cancelPtr_ = &dummyCancel_; +} + +inline +void ParserState::queueRe(const Location &location) +{ + outputState_.handleRe(*handler_, eventAllocator_, options_.eventsWanted, + syntax().standardFunction(Syntax::fRE), + location); +} + +inline +void ParserState::noteMarkup() +{ + if (inInstance_) + outputState_.noteMarkup(*handler_, eventAllocator_, options_.eventsWanted); +} + +inline +void ParserState::noteRs() +{ + outputState_.noteRs(*handler_, eventAllocator_, options_.eventsWanted); +} + +inline +void ParserState::noteStartElement(Boolean included) +{ + outputState_.noteStartElement(included, *handler_, eventAllocator_, + options_.eventsWanted); +} + +inline +void ParserState::noteEndElement(Boolean included) +{ + outputState_.noteEndElement(included, *handler_, eventAllocator_, + options_.eventsWanted); +} + +inline +void ParserState::noteData() +{ + outputState_.noteData(*handler_, eventAllocator_, options_.eventsWanted); +} + +inline +unsigned ParserState::subdocLevel() const +{ + return subdocLevel_; +} + +inline +EventHandler &ParserState::eventHandler() +{ + return *handler_; +} + +inline +ParserState::IdTableIter ParserState::idTableIter() +{ + // Avoid use of typedef to work around MSVC 2.0 bug. + return NamedTableIter(idTable_); +} + +inline +const ParserOptions &ParserState::options() const +{ + return options_; +} + +inline +Sd::ImplydefElement ParserState::implydefElement() +{ + return implydefElement_; +} + +inline +Boolean ParserState::implydefAttlist() +{ + return implydefAttlist_; +} + +inline +void ParserState::enableImplydef() +{ + implydefElement_ = Sd::implydefElementYes; + implydefAttlist_ = 1; +} + +inline +void ParserState::keepMessages() +{ + keepingMessages_ = 1; +} + +inline +Boolean ParserState::haveApplicableDtd() const +{ + return !currentDtd_.isNull(); +} + +inline +Boolean ParserState::hadLpd() const +{ + return hadLpd_; +} + +inline +Boolean ParserState::pass2() const +{ + return pass2_; +} + +inline +size_t ParserState::nActiveLink() const +{ + return lpd_.size(); +} + +inline +const Lpd &ParserState::activeLpd(size_t i) const +{ + return *lpd_[i]; +} + +inline +Lpd &ParserState::defLpd() +{ + return *defLpd_; +} + +inline +Ptr &ParserState::defLpdPointer() +{ + return defLpd_; +} + +inline +Ptr ParserState::defComplexLpdPointer() +{ + return (ComplexLpd *)defLpd_.pointer(); +} + +inline +ComplexLpd &ParserState::defComplexLpd() +{ + return (ComplexLpd &)defLpd(); +} + +inline +Ptr ParserState::baseDtd() +{ + if (dtd_.size() > 0) + return dtd_[0]; + else + return Ptr(); +} + +inline +void ParserState::setResultAttributeSpecMode() +{ + resultAttributeSpecMode_ = 1; +} + +inline +void ParserState::clearResultAttributeSpecMode() +{ + resultAttributeSpecMode_ = 0; +} + +inline +Markup *ParserState::currentMarkup() +{ + return currentMarkup_; +} + +inline +const Location &ParserState::markupLocation() const +{ + return markupLocation_; +} + +inline +Markup *ParserState::startMarkup(Boolean storing, const Location &loc) +{ + markupLocation_ = loc; + if (storing) { + markup_.clear(); + return currentMarkup_ = &markup_; + } + else + return currentMarkup_ = 0; +} + +inline +Boolean ParserState::cancelled() const +{ + return *cancelPtr_ != 0; +} + +inline +void ParserState::setHadAfdrDecl() +{ + hadAfdrDecl_ = 1; +} + +inline +Boolean ParserState::hadAfdrDecl() const +{ + return hadAfdrDecl_; +} + +inline +const ConstPtr &ParserState::dsEntity() const +{ + return dsEntity_; +} + + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not ParserState_INCLUDED */ diff --git a/lib/Partition.cxx b/lib/Partition.cxx new file mode 100644 index 0000000..f98ca91 --- /dev/null +++ b/lib/Partition.cxx @@ -0,0 +1,219 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Partition.h" +#include "ISet.h" +#include "ISetIter.h" +#include "SubstTable.h" +#include "Link.h" +#include "IList.h" +#include "IListIter.h" +#include "Owner.h" +#include "macros.h" +#include "EquivClass.h" +#include "constant.h" +#include "StringC.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +static void refineByChar(IList *, Char); +static void refineBySet(IList *, const ISet &, unsigned); + +#if _MSC_VER == 900 +// Work around MSVC 2.0 bug. +typedef SubstTable _msvc_dummy; +#endif + +Partition::Partition(const ISet &chars, + const ISet **sets, + int nSets, + const SubstTable &subst) +: map_(0) // eE gets code 0 +{ + IList classes; + classes.insert(new EquivClass); + classes.head()->set.addRange(0, charMax); + + { + ISetIter iter(chars); + Char min, max; + while (iter.next(min, max)) { + do { + refineByChar(&classes, subst[min]); + } while (min++ != max); + } + } + + int i; + for (i = 0; i < nSets; i++) + refineBySet(&classes, *sets[i], (1 << i)); + + maxCode_ = 0; + + setCodes_.resize(nSets); + + for (IListIter listIter(classes); + !listIter.done(); + listIter.next()) { + ++maxCode_; + ASSERT(maxCode_ != 0); + EquivClass *p = listIter.cur(); + for (i = 0; i < nSets; i++) + if ((1 << i) & p->inSets) + setCodes_[i] += maxCode_; + ISetIter setIter(p->set); + Char min, max; + while (setIter.next(min, max)) + map_.setRange(min, max, maxCode_); + } + + { + ISetIter iter(chars); + Char min, max; + while (iter.next(min, max)) { + do { + StringC str(subst.inverse(min)); + EquivCode code = map_[min]; + for (size_t i = 0; i < str.size(); i++) + map_.setChar(str[i], code); + } while (min++ != max); + } + } +} + +static +void refineByChar(IList *classes, Char c) +{ + // Avoid modifying *classes, while there's an active iter on it. + EquivClass *found = 0; + { + for (IListIter iter(*classes); !iter.done(); iter.next()) { + if (iter.cur()->set.contains(c)) { + found = iter.cur(); + break; + } + } + } + if (found && !found->set.isSingleton()) { + found->set.remove(c); + classes->insert(new EquivClass(found->inSets)); + classes->head()->set.add(c); + } +} + +static +void addUpTo(ISet *to, Char limit, const ISet &from) +{ + ISetIter iter(from); + Char min, max; + while (iter.next(min, max) && min < limit) + to->addRange(min, max >= limit ? limit - 1 : max); +} + +enum RefineResult { allIn, allOut, someInSomeOut }; + +static +RefineResult refine(const ISet &set, const ISet &refiner, + ISet *inp, ISet *outp) +{ + Char setMin, setMax, refMin, refMax; + ISetIter refIter(refiner); + ISetIter setIter(set); + Boolean oneIn = 0; + Boolean oneOut = 0; + + if (!refIter.next(refMin, refMax)) + return allOut; + while (setIter.next(setMin, setMax)) { + while (setMin <= setMax) { + while (refMax < setMin && refIter.next(refMin, refMax)) + ; + if (refMax < setMin || setMin < refMin) { + if (!oneOut) { + if (oneIn) + addUpTo(inp, setMin, set); + oneOut = 1; + } + if (refMax < setMin || refMin > setMax) { + if (oneIn) + outp->addRange(setMin, setMax); + break; + } + else { + if (oneIn) + outp->addRange(setMin, refMin - 1); + setMin = refMin; + } + } + else { + if (!oneIn) { + if (oneOut) + addUpTo(outp, setMin, set); + oneIn = 1; + } + if (setMax <= refMax) { + if (oneOut) + inp->addRange(setMin, setMax); + break; + } + else { + // refMax < setMax + if (oneOut) + inp->addRange(setMin, refMax); + // avoid wrapping round + if (refMax == charMax) + break; + setMin = refMax + 1; + } + } + } + } + if (oneIn) + return oneOut ? someInSomeOut : allIn; + else + return allOut; +} + +static +void refineBySet(IList *classes, const ISet &set, + unsigned setFlag) +{ + Owner in(new EquivClass), out(new EquivClass); + IList newClasses; + for (;;) { + EquivClass *p = classes->head(); + if (!p) + break; + if (!out) + out = new EquivClass; + switch (refine(p->set, set, &in->set, &out->set)) { + case someInSomeOut: + in->inSets = p->inSets | setFlag; + newClasses.insert(in.extract()); + out->inSets = p->inSets; + newClasses.insert(out.extract()); + in = classes->get(); + in->set.clear(); + in->inSets = 0; + break; + case allIn: + p->inSets |= setFlag; + newClasses.insert(classes->get()); + break; + case allOut: + newClasses.insert(classes->get()); + break; + } + } + classes->swap(newClasses); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Partition.h b/lib/Partition.h new file mode 100644 index 0000000..964d947 --- /dev/null +++ b/lib/Partition.h @@ -0,0 +1,74 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Partition_INCLUDED +#define Partition_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "SubstTable.h" +#include "StringOf.h" +#include "ISet.h" +#include "XcharMap.h" +#include "Vector.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Partition { +public: + Partition(const ISet &chars, + const ISet **sets, + int nSets, + const SubstTable &subst); + EquivCode maxCode() const; + EquivCode charCode(Char c) const; + EquivCode eECode() const; + const String &setCodes(int i) const; + const XcharMap &map() const; +private: + Partition(const Partition &); // undefined + void operator=(const Partition &); // undefined + EquivCode maxCode_; + Vector > setCodes_; + XcharMap map_; +}; + +inline +EquivCode Partition::maxCode() const +{ + return maxCode_; +} + +inline +EquivCode Partition::charCode(Char c) const +{ + return map_[c]; +} + +inline +EquivCode Partition::eECode() const +{ + return 0; +} + +inline +const String &Partition::setCodes(int i) const +{ + return setCodes_[i]; +} + +inline +const XcharMap &Partition::map() const +{ + return map_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Partition_INCLUDED */ diff --git a/lib/PosixStorage.cxx b/lib/PosixStorage.cxx new file mode 100644 index 0000000..857dc78 --- /dev/null +++ b/lib/PosixStorage.cxx @@ -0,0 +1,771 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "PosixStorage.h" +#include "RewindStorageObject.h" +#include "StorageManager.h" +#include "DescriptorManager.h" +#include "MessageArg.h" +#include "ErrnoMessageArg.h" +#include "SearchResultMessageArg.h" +#include "Message.h" +#include "StringC.h" +#include "StringOf.h" +#include "CharsetInfo.h" +#include "CodingSystem.h" +#include "macros.h" +#include "PosixStorageMessages.h" + +#include +#include +#include + +#ifdef SP_INCLUDE_IO_H +#include // for open, fstat, lseek, read prototypes +#endif + +#ifdef SP_INCLUDE_UNISTD_H +#include +#endif + +#ifdef SP_INCLUDE_OSFCN_H +#include +#endif + +#include +#include +#include +#include + +#ifndef S_ISREG +#ifndef S_IFREG +#define S_IFREG _S_IFREG +#endif +#ifndef S_IFMT +#define S_IFMT _S_IFMT +#endif +#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) +#endif /* not S_ISREG */ + +#ifndef O_BINARY +#define O_BINARY 0 +#endif + +#ifdef SP_WIDE_SYSTEM +#include +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#ifdef SP_WIDE_SYSTEM +typedef wchar_t FChar; +#else +typedef char FChar; +#endif + +class PosixBaseStorageObject : public RewindStorageObject { +public: + PosixBaseStorageObject(int fd, Boolean mayRewind); + size_t getBlockSize() const; +protected: + enum { defaultBlockSize = 8192 }; + int fd_; + PackedBoolean eof_; + + Boolean seekToStart(Messenger &); + virtual Boolean seek(off_t, Messenger &) = 0; + static int xclose(int fd); +private: + Boolean canSeek(int fd); + off_t startOffset_; +}; + +PosixBaseStorageObject::PosixBaseStorageObject(int fd, Boolean mayRewind) +: fd_(fd), eof_(0), + RewindStorageObject(mayRewind, mayRewind && canSeek(fd)) +{ +} + +Boolean PosixBaseStorageObject::canSeek(int fd) +{ + struct stat sb; + if (fstat(fd, &sb) < 0 || !S_ISREG(sb.st_mode) + || (startOffset_ = lseek(fd, off_t(0), SEEK_CUR)) < 0) + return 0; + else + return 1; +} + +Boolean PosixBaseStorageObject::seekToStart(Messenger &mgr) +{ + eof_ = 0; + return seek(startOffset_, mgr); +} + +int PosixBaseStorageObject::xclose(int fd) +{ + int ret; + do { + ret = ::close(fd); + } while (ret < 0 && errno == EINTR); + return ret; +} + +class PosixStorageObject : public PosixBaseStorageObject, private DescriptorUser { +public: + PosixStorageObject(int fd, + const StringC &, + const String &, + Boolean mayRewind, + DescriptorManager *); + ~PosixStorageObject(); + Boolean read(char *buf, size_t bufSize, Messenger &mgr, size_t &nread); + Boolean suspend(); + Boolean seek(off_t, Messenger &); + void willNotRewind(); +private: + void resume(Messenger &); + + PackedBoolean suspended_; + off_t suspendPos_; + const MessageType2 *suspendFailedMessage_; + int suspendErrno_; + StringC filename_; + String cfilename_; + + void systemError(Messenger &, const MessageType2 &, int); +}; + +inline int openFile(const FChar *s) { +#ifdef SP_WIDE_SYSTEM + int fd = _wopen(s, O_RDONLY|O_BINARY); + if (fd < 0 && errno != ENOENT) { + String buf; + int len = WideCharToMultiByte(CP_ACP, 0, s, -1, 0, 0, 0, 0); + buf.resize(len + 1); + WideCharToMultiByte(CP_ACP, 0, s, -1, buf.begin(), len, 0, 0); + buf[len] = '\0'; + return ::open(buf.data(), O_RDONLY|O_BINARY); + } + return fd; +#else + return ::open(s, O_RDONLY|O_BINARY); +#endif + } + +PosixStorageManager::PosixStorageManager(const char *type, + const CharsetInfo *filenameCharset, +#ifndef SP_WIDE_SYSTEM + const OutputCodingSystem *filenameCodingSystem, +#endif + int maxFDs, + Boolean restrictFileReading) +: IdStorageManager(filenameCharset), + type_(type), +#ifndef SP_WIDE_SYSTEM + filenameCodingSystem_(filenameCodingSystem), +#endif + descriptorManager_(maxFDs), + restrictFileReading_(restrictFileReading) +{ + Char newline = idCharset()->execToDesc('\n'); + reString_.assign(&newline, 1); +} + +const char *PosixStorageManager::type() const +{ + return type_; +} + +void PosixStorageManager::addSearchDir(const StringC &str) +{ + searchDirs_.push_back(str); +} + +Boolean PosixStorageManager::isSafe(const StringC &file) const +{ + size_t i = 0; + for (; i < file.size(); i++) { + if (file[i] == '.' && i > 0 && file[i - 1] == '.') return 0; + if (!( (file[i] >= 'a' && file[i] <= 'z') + || (file[i] >= 'A' && file[i] <= 'Z') + || (file[i] >= '0' && file[i] <= '9') + || file[i] == '/' + || file[i] == '.' + || file[i] == '-' + || file[i] == '_' +#ifdef SP_MSDOS_FILENAMES + || file[i] == '\\' + || file[i] == ':' +#endif + )) return 0; + } + + const StringC &dir = extractDir(file); + + for (i = 0; i < searchDirs_.size(); i++) { + const StringC &searchDir = searchDirs_[i]; + + if (dir.size() >= searchDir.size()) { + size_t j = 0; + for (; j < searchDir.size(); j++) { + if (searchDir[j] != dir[j] +#ifdef SP_MSDOS_FILENAMES + && ((searchDir[j] != '/' && dir[j] == '\\') || + (searchDir[j] != '\\' && dir[j] == '/')) +#endif + ) break; + } + + if (j == searchDir.size() && + (dir.size() == searchDir.size() || dir[j] == '/' +#ifdef SP_MSDOS_FILENAMES + || dir[j] == '\\' +#endif + )) return 1; + } + } + + return 0; +} + +#ifdef SP_POSIX_FILENAMES + +#define FILENAME_TYPE_DEFINED + +// FIXME should use idCharset. + +Boolean PosixStorageManager::isAbsolute(const StringC &file) const +{ + return file.size() > 0 && file[0] == '/'; +} + +StringC PosixStorageManager::extractDir(const StringC &str) const +{ + for (size_t i = str.size(); i > 0; i--) + if (str[i - 1] == '/') + return StringC(str.data(), i); // include slash for root case + return StringC(); +} + +StringC PosixStorageManager::combineDir(const StringC &dir, + const StringC &base) const +{ + StringC result(dir); + if (dir.size() > 0 && dir[dir.size() - 1] != '/') + result += '/'; + result += base; + return result; +} + +Boolean PosixStorageManager::transformNeutral(StringC &str, Boolean fold, + Messenger &) const +{ + if (fold) + for (size_t i = 0; i < str.size(); i++) { + Char c = str[i]; + if (c <= (unsigned char)-1) + str[i] = tolower(str[i]); + } + return 1; +} + +#endif /* SP_POSIX_FILENAMES */ + +#ifdef SP_MSDOS_FILENAMES + +#define FILENAME_TYPE_DEFINED + +Boolean PosixStorageManager::isAbsolute(const StringC &s) const +{ + if (s.size() == 0) + return 0; + return s[0] == '/' || s[0] == '\\' || (s.size() > 1 && s[1] == ':'); +} + +StringC PosixStorageManager::extractDir(const StringC &str) const +{ + for (size_t i = str.size(); i > 0; i--) + if (str[i - 1] == '/' || str[i - 1] == '\\' + || (i == 2 && str[i - 1] == ':')) + return StringC(str.data(), i); // include separator + return StringC(); +} + +StringC PosixStorageManager::combineDir(const StringC &dir, + const StringC &base) const +{ + StringC result(dir); + if (dir.size() > 0) { + Char lastChar = dir[dir.size() - 1]; + if (lastChar != '/' && lastChar != '\\' + && !(dir.size() == 2 && lastChar == ':')) + result += '\\'; + } + result += base; + return result; +} + +Boolean PosixStorageManager::transformNeutral(StringC &str, Boolean, + Messenger &) const +{ + for (size_t i = 0; i < str.size(); i++) + if (str[i] == '/') + str[i] = '\\'; + return 1; +} + +#endif /* SP_MSDOS_FILENAMES */ + +#ifdef SP_MAC_FILENAMES +// Colons separate directory names +// relative path-names start with a colon, or have no colons +// absolute path-names don't start with a colon and have at least one colon +#define FILENAME_TYPE_DEFINED + +Boolean PosixStorageManager::isAbsolute(const StringC &s) const +{ + if (s.size() == 0) + return 0; + if (s[0] == ':') + return 0; // starts with a colon => relative + size_t ss = s.size(); + for (size_t i = 0; i < ss; i++) + if (s[i] == ':') + return 1; // absolute + return 0; // no colons => relative +} + +StringC PosixStorageManager::extractDir(const StringC &str) const +{ + for (size_t i = str.size(); i > 0; i--) + if (str[i - 1] == ':') + return StringC(str.data(), i); // include separator + return StringC(); +} + +StringC PosixStorageManager::combineDir(const StringC &dir, + const StringC &base) const +{ + StringC result(dir); + if (dir.size() > 0) { + Char lastChar = dir[dir.size() - 1]; + if (lastChar != ':') + result += ':'; + } + if (base[0] == ':') { + StringC newbase(base.data() + 1,base.size() - 1); + result += newbase; + } + else result += base; + return result; +} + +Boolean PosixStorageManager::transformNeutral(StringC &str, Boolean, + Messenger &) const +{ + if (str[0] == '/') { // absolute + StringC nstr(str.data() + 1,str.size()-1); + str = nstr; + } + else { // relative + Char cc = ':'; + StringC colon(&cc,1); + str.insert(0,colon); + } + for (size_t i = 0; i < str.size(); i++) + if (str[i] == '/') + str[i] = ':'; + return 1; +} + +#endif /* SP_MAC_FILENAMES */ + +#ifndef FILENAME_TYPE_DEFINED + +Boolean PosixStorageManager::isAbsolute(const StringC &) const +{ + return 1; +} + +StringC PosixStorageManager::extractDir(const StringC &) const +{ + return StringC(); +} + +StringC PosixStorageManager::combineDir(const StringC &, + const StringC &base) const +{ + return base; +} + +Boolean PosixStorageManager::transformNeutral(StringC &, Boolean, + Messenger &) const +{ + return 1; +} + +#endif /* not FILENAME_TYPE_DEFINED */ + +Boolean PosixStorageManager::resolveRelative(const StringC &baseId, + StringC &specId, + Boolean search) const +{ + if (isAbsolute(specId)) + return 1; + if (!search || searchDirs_.size() == 0) { + specId = combineDir(extractDir(baseId), specId); + return 1; + } + return 0; +} + +StorageObject * +PosixStorageManager::makeStorageObject(const StringC &spec, + const StringC &base, + Boolean search, + Boolean mayRewind, + Messenger &mgr, + StringC &found) +{ + if (spec.size() == 0) { + mgr.message(PosixStorageMessages::invalidFilename, + StringMessageArg(spec)); + return 0; + } + descriptorManager_.acquireD(); + Boolean absolute = isAbsolute(spec); + SearchResultMessageArg sr; + for (size_t i = 0; i < searchDirs_.size() + 1; i++) { + StringC filename; + if (absolute) + filename = spec; + else if (i == 0) + filename = combineDir(extractDir(base), spec); + else + filename = combineDir(searchDirs_[i - 1], spec); + + if (restrictFileReading_ && !isSafe(filename)) continue; + +#ifdef SP_WIDE_SYSTEM + String cfilename; + for (size_t j = 0; j < filename.size(); j++) + cfilename += FChar(filename[j]); + cfilename += FChar(0); +#else + String cfilename = filenameCodingSystem_->convertOut(filename); +#endif + int fd; + do { + fd = openFile(cfilename.data()); + } while (fd < 0 && errno == EINTR); + if (fd >= 0) { + found = filename; + return new PosixStorageObject(fd, + filename, + cfilename, + mayRewind, + &descriptorManager_); + } + int savedErrno = errno; + if ((absolute || !search || searchDirs_.size() == 0) && !restrictFileReading_) { + ParentLocationMessenger(mgr).message(PosixStorageMessages::openSystemCall, + StringMessageArg(filename), + ErrnoMessageArg(savedErrno)); + descriptorManager_.releaseD(); + return 0; + } + if (!restrictFileReading_) sr.add(filename, savedErrno); + } + descriptorManager_.releaseD(); + ParentLocationMessenger(mgr).message(PosixStorageMessages::cannotFind, + StringMessageArg(spec), sr); + return 0; +} + +PosixStorageObject::PosixStorageObject(int fd, + const StringC &filename, + const String &cfilename, + Boolean mayRewind, + DescriptorManager *manager) +: DescriptorUser(manager), + PosixBaseStorageObject(fd, mayRewind), + suspended_(0), + filename_(filename), + cfilename_(cfilename) +{ +} + +PosixStorageObject::~PosixStorageObject() +{ + if (fd_ >= 0) { + (void)xclose(fd_); + releaseD(); + } +} + +Boolean PosixStorageObject::seek(off_t off, Messenger &mgr) +{ + if (lseek(fd_, off, SEEK_SET) < 0) { + fd_ = -1; + systemError(mgr, PosixStorageMessages::lseekSystemCall, errno); + return 0; + } + else + return 1; +} + +Boolean PosixStorageObject::read(char *buf, size_t bufSize, Messenger &mgr, + size_t &nread) +{ + if (readSaved(buf, bufSize, nread)) + return 1; + if (suspended_) + resume(mgr); + if (fd_ < 0 || eof_) + return 0; + long n; + do { + n = ::read(fd_, buf, bufSize); + } while (n < 0 && errno == EINTR); + if (n > 0) { + nread = size_t(n); + saveBytes(buf, nread); + return 1; + } + if (n < 0) { + int saveErrno = errno; + releaseD(); + (void)xclose(fd_); + systemError(mgr, PosixStorageMessages::readSystemCall, saveErrno); + fd_ = -1; + } + else { + eof_ = 1; + // n == 0, so end of file + if (!mayRewind_) { + releaseD(); + if (xclose(fd_) < 0) + systemError(mgr, PosixStorageMessages::closeSystemCall, errno); + fd_ = -1; + } + + } + return 0; +} + +void PosixStorageObject::willNotRewind() +{ + RewindStorageObject::willNotRewind(); + if (eof_ && fd_ >= 0) { + releaseD(); + (void)xclose(fd_); + fd_ = -1; + } +} + +Boolean PosixStorageObject::suspend() +{ + if (fd_ < 0 || suspended_) + return 0; + struct stat sb; + if (fstat(fd_, &sb) < 0 || !S_ISREG(sb.st_mode)) + return 0; + suspendFailedMessage_ = 0; + suspendPos_ = lseek(fd_, 0, SEEK_CUR); + if (suspendPos_ == (off_t)-1) { + suspendFailedMessage_ = &PosixStorageMessages::lseekSystemCall; + suspendErrno_ = errno; + } + if (xclose(fd_) < 0 && !suspendFailedMessage_) { + suspendFailedMessage_ = &PosixStorageMessages::closeSystemCall; + suspendErrno_ = errno; + } + fd_ = -1; + suspended_ = 1; + releaseD(); + return 1; +} + +void PosixStorageObject::resume(Messenger &mgr) +{ + ASSERT(suspended_); + if (suspendFailedMessage_) { + systemError(mgr, *suspendFailedMessage_, suspendErrno_); + suspended_ = 0; + return; + } + acquireD(); + // suspended_ must be 1 until after acquireD() is called, + // so that we don't try to suspend this one before it is resumed. + suspended_ = 0; + do { + fd_ = openFile(cfilename_.data()); + } while (fd_ < 0 && errno == EINTR); + if (fd_ < 0) { + releaseD(); + systemError(mgr, PosixStorageMessages::openSystemCall, errno); + return; + } + if (lseek(fd_, suspendPos_, SEEK_SET) < 0) { + systemError(mgr, PosixStorageMessages::lseekSystemCall, errno); + (void)xclose(fd_); + fd_ = -1; + releaseD(); + } +} + +#ifdef SP_STAT_BLKSIZE + +size_t PosixBaseStorageObject::getBlockSize() const +{ + struct stat sb; + long sz; + if (fstat(fd_, &sb) < 0) + return defaultBlockSize; + if (!S_ISREG(sb.st_mode)) + return defaultBlockSize; + if ((unsigned long)sb.st_blksize > size_t(-1)) + sz = size_t(-1); + else + sz = sb.st_blksize; + return sz; +} + +#else /* not SP_STAT_BLKSIZE */ + +size_t PosixBaseStorageObject::getBlockSize() const +{ + return defaultBlockSize; +} + +#endif /* not SP_STAT_BLKSIZE */ + +void PosixStorageObject::systemError(Messenger &mgr, + const MessageType2 &msg, + int err) +{ + ParentLocationMessenger(mgr).message(msg, + StringMessageArg(filename_), + ErrnoMessageArg(err)); +} + +class PosixFdStorageObject : public PosixBaseStorageObject { +public: + PosixFdStorageObject(int, Boolean mayRewind); + Boolean read(char *buf, size_t bufSize, Messenger &mgr, size_t &nread); + Boolean seek(off_t, Messenger &); + enum { + noError, + readError, + invalidNumberError, + lseekError + }; +private: + int origFd_; +}; + +PosixFdStorageManager::PosixFdStorageManager(const char *type, + const CharsetInfo *idCharset) +: IdStorageManager(idCharset), type_(type) +{ +} + +Boolean PosixFdStorageManager::inheritable() const +{ + return 0; +} + +StorageObject *PosixFdStorageManager::makeStorageObject(const StringC &id, + const StringC &, + Boolean, + Boolean mayRewind, + Messenger &mgr, + StringC &foundId) +{ + int n = 0; + size_t i; + for (i = 0; i < id.size(); i++) { + UnivChar ch; + if (!idCharset()->descToUniv(id[i], ch)) + break; + if (ch < UnivCharsetDesc::zero || ch > UnivCharsetDesc::zero + 9) + break; + int digit = ch - UnivCharsetDesc::zero; + // Allow the division to be done at compile-time. + if (n > INT_MAX/10) + break; + n *= 10; + if (n > INT_MAX - digit) + break; + n += digit; + } + if (i < id.size() || i == 0) { + mgr.message(PosixStorageMessages::invalidNumber, + StringMessageArg(id)); + return 0; + } + foundId = id; + // Could check access mode with fcntl(n, F_GETFL). + return new PosixFdStorageObject(n, mayRewind); +} + +PosixFdStorageObject::PosixFdStorageObject(int fd, Boolean mayRewind) +: PosixBaseStorageObject(fd, mayRewind), origFd_(fd) +{ +} + +const char *PosixFdStorageManager::type() const +{ + return type_; +} + +Boolean PosixFdStorageObject::read(char *buf, size_t bufSize, Messenger &mgr, + size_t &nread) +{ + if (readSaved(buf, bufSize, nread)) + return 1; + if (fd_ < 0 || eof_) + return 0; + long n; + do { + n = ::read(fd_, buf, bufSize); + } while (n < 0 && errno == EINTR); + if (n > 0) { + nread = size_t(n); + saveBytes(buf, nread); + return 1; + } + if (n < 0) { + ParentLocationMessenger(mgr).message(PosixStorageMessages::fdRead, + NumberMessageArg(fd_), + ErrnoMessageArg(errno)); + fd_ = -1; + } + else + eof_ = 1; + return 0; +} + +Boolean PosixFdStorageObject::seek(off_t off, Messenger &mgr) +{ + if (lseek(fd_, off, SEEK_SET) < 0) { + ParentLocationMessenger(mgr).message(PosixStorageMessages::fdLseek, + NumberMessageArg(fd_), + ErrnoMessageArg(errno)); + return 0; + } + else + return 1; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/PosixStorageMessages.h b/lib/PosixStorageMessages.h new file mode 100644 index 0000000..d6ee661 --- /dev/null +++ b/lib/PosixStorageMessages.h @@ -0,0 +1,102 @@ +// This file was automatically generated from PosixStorageMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct PosixStorageMessages { + // 2200 + static const MessageType2 readSystemCall; + // 2201 + static const MessageType2 openSystemCall; + // 2202 + static const MessageType2 closeSystemCall; + // 2203 + static const MessageType2 lseekSystemCall; + // 2204 + static const MessageType1 invalidFilename; + // 2205 + static const MessageType2 fdRead; + // 2206 + static const MessageType2 fdLseek; + // 2207 + static const MessageType1 invalidNumber; + // 2208 + static const MessageType2 cannotFind; +}; +const MessageType2 PosixStorageMessages::readSystemCall( +MessageType::error, +&libModule, +2200 +#ifndef SP_NO_MESSAGE_TEXT +,"error reading %1 (%2)" +#endif +); +const MessageType2 PosixStorageMessages::openSystemCall( +MessageType::error, +&libModule, +2201 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot open %1 (%2)" +#endif +); +const MessageType2 PosixStorageMessages::closeSystemCall( +MessageType::error, +&libModule, +2202 +#ifndef SP_NO_MESSAGE_TEXT +,"error closing %1 (%2)" +#endif +); +const MessageType2 PosixStorageMessages::lseekSystemCall( +MessageType::error, +&libModule, +2203 +#ifndef SP_NO_MESSAGE_TEXT +,"error seeking on %1 (%2)" +#endif +); +const MessageType1 PosixStorageMessages::invalidFilename( +MessageType::error, +&libModule, +2204 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid filename %1" +#endif +); +const MessageType2 PosixStorageMessages::fdRead( +MessageType::error, +&libModule, +2205 +#ifndef SP_NO_MESSAGE_TEXT +,"error reading file descriptor %1 (%2)" +#endif +); +const MessageType2 PosixStorageMessages::fdLseek( +MessageType::error, +&libModule, +2206 +#ifndef SP_NO_MESSAGE_TEXT +,"error seeking on file descriptor %1 (%2)" +#endif +); +const MessageType1 PosixStorageMessages::invalidNumber( +MessageType::error, +&libModule, +2207 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is not a valid file descriptor number" +#endif +); +const MessageType2 PosixStorageMessages::cannotFind( +MessageType::error, +&libModule, +2208 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot find %1; tried %2" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/PosixStorageMessages.msg b/lib/PosixStorageMessages.msg new file mode 100644 index 0000000..737f1c5 --- /dev/null +++ b/lib/PosixStorageMessages.msg @@ -0,0 +1,15 @@ +# Copyright (c) 1994 James Clark +# See the file COPYING for copying permission. + +# PosixStorage message definitions + +=2200 +E2+readSystemCall++error reading %1 (%2) +E2+openSystemCall++cannot open %1 (%2) +E2+closeSystemCall++error closing %1 (%2) +E2+lseekSystemCall++error seeking on %1 (%2) +E1+invalidFilename++invalid filename %1 +E2+fdRead++error reading file descriptor %1 (%2) +E2+fdLseek++error seeking on file descriptor %1 (%2) +E1+invalidNumber++%1 is not a valid file descriptor number +E2+cannotFind++cannot find %1; tried %2 diff --git a/lib/PosixStorageMessages.rc b/lib/PosixStorageMessages.rc new file mode 100644 index 0000000..feaf228 --- /dev/null +++ b/lib/PosixStorageMessages.rc @@ -0,0 +1,12 @@ +STRINGTABLE +BEGIN + 2200, "error reading %1 (%2)" + 2201, "cannot open %1 (%2)" + 2202, "error closing %1 (%2)" + 2203, "error seeking on %1 (%2)" + 2204, "invalid filename %1" + 2205, "error reading file descriptor %1 (%2)" + 2206, "error seeking on file descriptor %1 (%2)" + 2207, "%1 is not a valid file descriptor number" + 2208, "cannot find %1; tried %2" +END diff --git a/lib/Priority.h b/lib/Priority.h new file mode 100644 index 0000000..5635b1a --- /dev/null +++ b/lib/Priority.h @@ -0,0 +1,36 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Priority_INCLUDED +#define Priority_INCLUDED 1 + +#include +#include "Boolean.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Priority { +public: + typedef unsigned char Type; + enum { + data = 0, + dataDelim = 1, + function = 2, + delim = UCHAR_MAX + }; + static inline Type blank(int n) { + // `Priority::' works round gcc 2.5.5 bug + return Priority::Type(n + function); + } + static inline Boolean isBlank(Type t) { + return function < t && t < delim; + } +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Priority_INCLUDED */ diff --git a/lib/Recognizer.cxx b/lib/Recognizer.cxx new file mode 100644 index 0000000..e372dd8 --- /dev/null +++ b/lib/Recognizer.cxx @@ -0,0 +1,77 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Resource.h" +#include "Trie.h" +#include "Owner.h" +#include "XcharMap.h" +#include "Recognizer.h" +#include "InputSource.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Recognizer::Recognizer(Trie *trie, const XcharMap &map) +: trie_(trie), map_(map), multicode_(0) +{ +} + +Recognizer::Recognizer(Trie *trie, const XcharMap &map, + Vector &suppressTokens) +: trie_(trie), map_(map), multicode_(1) +{ + suppressTokens.swap(suppressTokens_); +} + +Recognizer::~Recognizer() {} + +Token Recognizer::recognize(InputSource *in, Messenger &mgr) const +{ + if (multicode_) { + in->startToken(); + if (in->scanSuppress()) + return suppressTokens_[map_[in->tokenChar(mgr)]]; + } + else + in->startTokenNoMulticode(); + register const Trie *pos = trie_.pointer(); + do { + pos = pos->next(map_[in->tokenChar(mgr)]); + } while (pos->hasNext()); + if (!pos->blank()) { + in->endToken(pos->tokenLength()); + return pos->token(); + } + const BlankTrie *b = pos->blank(); + const Trie *newPos = b; + size_t maxBlanks = b->maxBlanksToScan(); + size_t nBlanks; + for (nBlanks = 0; nBlanks < maxBlanks; nBlanks++) { + EquivCode code = map_[in->tokenChar(mgr)]; + if (!b->codeIsBlank(code)) { + if (newPos->hasNext()) + newPos = newPos->next(code); + break; + } + } + while (newPos->hasNext()) + newPos = newPos->next(map_[in->tokenChar(mgr)]); + if (newPos->token() != 0) { + in->endToken(newPos->tokenLength() + b->additionalLength() + nBlanks); + return newPos->token(); + } + else { + in->endToken(pos->tokenLength() + (pos->includeBlanks() ? nBlanks : 0)); + return pos->token(); + } +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Recognizer.h b/lib/Recognizer.h new file mode 100644 index 0000000..e4606fd --- /dev/null +++ b/lib/Recognizer.h @@ -0,0 +1,43 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Recognizer_INCLUDED +#define Recognizer_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Resource.h" +#include "Owner.h" +#include "XcharMap.h" +#include "types.h" +#include "Vector.h" +#include "Trie.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class Messenger; +class InputSource; + +class Recognizer : public Resource { +public: + Recognizer(Trie *, const XcharMap &); + Recognizer(Trie *, const XcharMap &, Vector &); + ~Recognizer(); + Token recognize(InputSource *, Messenger &) const; +private: + Recognizer(const Recognizer &); // undefined + void operator=(const Recognizer &); // undefined + Boolean multicode_; + Owner trie_; + XcharMap map_; + Vector suppressTokens_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Recognizer_INCLUDED */ diff --git a/lib/RewindStorageObject.cxx b/lib/RewindStorageObject.cxx new file mode 100644 index 0000000..4ddc85b --- /dev/null +++ b/lib/RewindStorageObject.cxx @@ -0,0 +1,78 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "RewindStorageObject.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +RewindStorageObject::RewindStorageObject(Boolean mayRewind, Boolean canSeek) +: mayRewind_(mayRewind), canSeek_(canSeek), + savingBytes_(mayRewind && !canSeek), readingSaved_(0) +{ +} + +Boolean RewindStorageObject::rewind(Messenger &mgr) +{ + ASSERT(mayRewind_); + if (canSeek_) + return seekToStart(mgr); + else { + readingSaved_ = 1; + nBytesRead_ = 0; + return 1; + } +} + +void RewindStorageObject::unread(const char *s, size_t n) +{ + savedBytes_.append(s, n); + if (!readingSaved_) { + readingSaved_ = 1; + nBytesRead_ = 0; + } +} + +void RewindStorageObject::willNotRewind() +{ + mayRewind_ = 0; + savingBytes_ = 0; + if (!readingSaved_) { + // Ensure that memory is released now. + String tem; + tem.swap(savedBytes_); + } +} + +Boolean RewindStorageObject::readSaved(char *buf, size_t bufSize, + size_t &nread) +{ + if (!readingSaved_) + return 0; + if (nBytesRead_ >= savedBytes_.size()) { + if (!mayRewind_) { + // Ensure that memory is released now. + String tem; + tem.swap(savedBytes_); + } + readingSaved_ = 0; + return 0; + } + nread = savedBytes_.size() - nBytesRead_; + if (nread > bufSize) + nread = bufSize; + memcpy(buf, savedBytes_.data() + nBytesRead_, nread); + nBytesRead_ += nread; + return 1; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/SGMLApplication.cxx b/lib/SGMLApplication.cxx new file mode 100644 index 0000000..c28107d --- /dev/null +++ b/lib/SGMLApplication.cxx @@ -0,0 +1,159 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "Boolean.h" +#include "SGMLApplication.h" + +SGMLApplication::~SGMLApplication() +{ +} + +void SGMLApplication::appinfo(const AppinfoEvent &) +{ +} + +void SGMLApplication::startDtd(const StartDtdEvent &) +{ +} + +void SGMLApplication::endDtd(const EndDtdEvent &) +{ +} + +void SGMLApplication::endProlog(const EndPrologEvent &) +{ +} + +void SGMLApplication::startElement(const StartElementEvent &) +{ +} + +void SGMLApplication::endElement(const EndElementEvent &) +{ +} + +void SGMLApplication::data(const DataEvent &) +{ +} + +void SGMLApplication::sdata(const SdataEvent &) +{ +} + +void SGMLApplication::pi(const PiEvent &) +{ +} + +void SGMLApplication::externalDataEntityRef(const ExternalDataEntityRefEvent &) +{ +} + +void SGMLApplication::subdocEntityRef(const SubdocEntityRefEvent &) +{ +} + +void SGMLApplication::nonSgmlChar(const NonSgmlCharEvent &) +{ +} + +void SGMLApplication::commentDecl(const CommentDeclEvent &) +{ +} + +void SGMLApplication::markedSectionStart(const MarkedSectionStartEvent &) +{ +} + +void SGMLApplication::markedSectionEnd(const MarkedSectionEndEvent &) +{ +} + +void SGMLApplication::ignoredChars(const IgnoredCharsEvent &) +{ +} + +void SGMLApplication::generalEntity(const GeneralEntityEvent &) +{ +} + +void SGMLApplication::error(const ErrorEvent &) +{ +} + +void SGMLApplication::openEntityChange(const OpenEntityPtr &) +{ +} + + +SGMLApplication::OpenEntity::OpenEntity() +: count_(0) +{ +} + +SGMLApplication::OpenEntity::~OpenEntity() +{ +} + +SGMLApplication::OpenEntityPtr::OpenEntityPtr() +: ptr_(0) +{ +} + +SGMLApplication::OpenEntityPtr::OpenEntityPtr(const OpenEntityPtr &ptr) +: ptr_(ptr.ptr_) +{ + if (ptr_) + ptr_->count_ += 1; +} + +SGMLApplication::OpenEntityPtr::~OpenEntityPtr() +{ + if (ptr_) { + ptr_->count_ -= 1; + if (ptr_->count_ == 0) + delete ptr_; + } +} + +void SGMLApplication::OpenEntityPtr::operator=(OpenEntity *p) +{ + if (p) + p->count_ += 1; + if (ptr_) { + ptr_->count_ -= 1; + if (ptr_->count_ == 0) + delete ptr_; + } + ptr_ = p; +} + +SGMLApplication::Location::Location() +{ + init(); +} + +SGMLApplication::Location::Location(const OpenEntityPtr &ptr, Position pos) +{ + if (ptr) + *this = ptr->location(pos); + else + init(); +} + +void SGMLApplication::Location::init() +{ + entityName.ptr = 0; + entityName.len = 0; + filename.ptr = 0; + filename.len = 0; + lineNumber = (unsigned long)-1; + columnNumber = (unsigned long)-1; + byteOffset = (unsigned long)-1; + entityOffset = (unsigned long)-1; + other = 0; +} diff --git a/lib/SJISCodingSystem.cxx b/lib/SJISCodingSystem.cxx new file mode 100644 index 0000000..1ec5f03 --- /dev/null +++ b/lib/SJISCodingSystem.cxx @@ -0,0 +1,176 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MULTI_BYTE + +#include "SJISCodingSystem.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SJISDecoder : public Decoder { +public: + SJISDecoder(); + size_t decode(Char *, const char *, size_t, const char **); +private: +}; + +class SJISEncoder : public RecoveringEncoder { +public: + SJISEncoder(); + void output(const Char *, size_t, OutputByteStream *); +}; + +Decoder *SJISCodingSystem::makeDecoder() const +{ + return new SJISDecoder; +} + +Encoder *SJISCodingSystem::makeEncoder() const +{ + return new SJISEncoder; +} + + +SJISDecoder::SJISDecoder() +{ +} + +size_t SJISDecoder::decode(Char *to, const char *s, + size_t slen, const char **rest) +{ + Char *start = to; + while (slen > 0) { + unsigned char c = *(unsigned char *)s; + if (!(c & 0x80)) { + *to++ = c; + s++; + slen--; + } + else if (129 <= c && c <= 159) { + if (slen < 2) + break; + s++; + slen -= 2; + unsigned char c2 = *(unsigned char *)s++; + unsigned short n = ((c - 112) << 9) | c2; + if (64 <= c2 && c2 <= 127) + n -= 31 + (1 << 8); + else if (c2 <= 158) + n -= 32 + (1 << 8); + else if (c2 <= 252) + n -= 126; + else + continue; + n |= 0x8080; + *to++ = n; + } + else if (224 <= c && c <= 239) { + if (slen < 2) + break; + s++; + slen -= 2; + unsigned char c2 = *(unsigned char *)s++; + unsigned short n = ((c - 176) << 9) | c2; + if (64 <= c2 && c2 <= 127) + n -= 31 + (1 << 8); + else if (c2 <= 158) + n -= 32 + (1 << 8); + else if (c2 <= 252) + n -= 126; + else + continue; + n |= 0x8080; + *to++ = n; + } + else if (161 <= c && c <= 223) { + slen--; + s++; + *to++ = c; + } + else { + // 128, 160, 240-255 + slen--; + s++; + } + } + *rest = s; + return to - start; +} + +SJISEncoder::SJISEncoder() +{ +} + +void SJISEncoder::output(const Char *s, size_t n, OutputByteStream *sb) +{ + for (; n > 0; s++, n--) { + Char c = *s; + unsigned short mask = (unsigned short)(c & 0x8080); + if (mask == 0) + sb->sputc((unsigned char)(c & 0xff)); + else if (mask == 0x8080) { + unsigned char c1 = (c >> 8) & 0x7f; + unsigned char c2 = c & 0x7f; + unsigned char out1; + if (c1 < 33) + out1 = 0; + else if (c1 < 95) + out1 = ((c1 + 1) >> 1) + 112; + else if (c1 < 127) + out1 = ((c1 + 1) >> 1) + 176; + else + out1 = 0; + if (out1) { + unsigned char out2; + if (c1 & 1) { + if (c2 < 33) + out2 = 0; + else if (c2 <= 95) + out2 = c2 + 31; + else if (c2 <= 126) + out2 = c2 + 32; + else + out2 = 0; + } + else { + if (33 <= c2 && c2 <= 126) + out2 = c2 + 126; + else + out2 = 0; + } + if (out2) { + sb->sputc(out1); + sb->sputc(out2); + } + else + handleUnencodable(c, sb); + } + else + handleUnencodable(c, sb); + } + else if (mask == 0x0080) { + if (161 <= c && c <= 223) + sb->sputc((unsigned char)(c & 0xff)); + else + handleUnencodable(c, sb); + } + else + handleUnencodable(c, sb); + } +} + +#ifdef SP_NAMESPACE +} +#endif + +#else /* not SP_MULTI_BYTE */ + +#ifndef __GNUG__ +static char non_empty_translation_unit; // sigh +#endif + +#endif /* not SP_MULTI_BYTE */ diff --git a/lib/SOEntityCatalog.cxx b/lib/SOEntityCatalog.cxx new file mode 100644 index 0000000..7eb3454 --- /dev/null +++ b/lib/SOEntityCatalog.cxx @@ -0,0 +1,1209 @@ +// Copyright (c) 1994, 1995, 1996 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "CharsetInfo.h" +#include "MessageArg.h" +#include "CatalogMessages.h" +#include "SOEntityCatalog.h" +#include "EntityDecl.h" +#include "EntityCatalog.h" +#include "Message.h" +#include "StringC.h" +#include "types.h" +#include "HashTable.h" +#include "InputSource.h" +#include "Boolean.h" +#include "SubstTable.h" +#include "CatalogEntry.h" +#include "Vector.h" +#include "StorageManager.h" +#include "macros.h" +#include "ParserOptions.h" +#include "SgmlParser.h" +#include "DtdDeclEventHandler.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class CatalogParser; +class SOEntityCatalog; + +class SOCatalogManagerImpl : public SOCatalogManager { +public: + SOCatalogManagerImpl(const Vector &sysids, + size_t nSysidsMustExist, + const CharsetInfo *sysidCharset, + const CharsetInfo *catalogCharset, + Boolean useDocCatalog); + ConstPtr makeCatalog(StringC &systemId, + const CharsetInfo &charset, + ExtendEntityManager *, + Messenger &) const; + Boolean mapCatalog(ParsedSystemId &systemId, + ExtendEntityManager *em, + Messenger &mgr) const; +private: + void addCatalogsForDocument(CatalogParser &parser, + StringC &sysid, + SOEntityCatalog *, + const CharsetInfo &charset, + Messenger &mgr) const; + size_t nSystemCatalogsMustExist_; + Vector systemCatalogs_; + const CharsetInfo *sysidCharset_; + const CharsetInfo *catalogCharset_; + Boolean useDocCatalog_; +}; + +class SOEntityCatalog : public EntityCatalog { +public: + SOEntityCatalog(Ptr em); + typedef EntityDecl::DeclType DeclType; + Boolean document(const CharsetInfo &, Messenger &, StringC &) const; + Boolean sgmlDecl(const CharsetInfo &, Messenger &, const StringC &, StringC &) const; + Boolean lookup(const EntityDecl &entity, + const Syntax &, + const CharsetInfo &, + Messenger &, + StringC &) const; + Boolean lookupPublic(const StringC &, + const CharsetInfo &, + Messenger &, + StringC &) const; + Boolean lookupChar(const StringC &, + const CharsetInfo &, + Messenger &, + UnivChar &) const; + void addPublicId(StringC &publicId, StringC &systemId, const Location &, + Boolean override); + void addDtdDecl(StringC &publicId, StringC &systemId, const Location &, + Boolean override); + void addDelegate(StringC &prefix, StringC &systemId, const Location &, + Boolean override); + void addSystemId(StringC &systemId, StringC &replSystemId, const Location &); + void addName(StringC &name, DeclType, StringC &systemId, const Location &, + Boolean override); + void setSgmlDecl(StringC &str, const Location &loc); + void setDocument(StringC &str, const Location &loc); + void setBase(const Location &loc); + void endCatalog(); + const Ptr &entityManager() { + return em_; + } +private: + SOEntityCatalog(const SOEntityCatalog &); // undefined + void operator=(const SOEntityCatalog &); // undefined + + Boolean expandCatalogSystemId(const StringC &str, + const Location &loc, + size_t baseNumber, + Boolean isNdata, + const CharsetInfo &charset, + const StringC *lookupPublicId, + Messenger &mgr, + StringC &result) const; + const CatalogEntry * + findBestPublicEntry(const StringC &publicId, Boolean overrideOnly, + const CharsetInfo &charset, Boolean &delegated) const; + + class Table { + public: + Table(); + const CatalogEntry *lookup(const StringC &, Boolean overrideOnly) const; + const CatalogEntry *lookup(const StringC &key, + const SubstTable &substTable, + Boolean overrideOnly) const; + void insert(const StringC &, const CatalogEntry &, Boolean override); + size_t count() const; + private: + Table(const Table &); // undefined + void operator=(const Table &); // undefined + // These are entries that are applicable when an explicit system id + // was specified in the external identifier. + HashTable overrideEntries_; + // This specifies the entries that should substitute for the + // overrideEntries_ when an explicit system identifier was not specified. + HashTable normalEntries_; + }; + + Table publicIds_; + Table delegates_; + HashTable dtdDecls_; + static StringC dtdDeclSpec_; + static Boolean dtdDeclRunning_; + HashTable systemIds_; + Table names_[5]; + size_t catalogNumber_; + Boolean haveSgmlDecl_; + StringC sgmlDecl_; + Location sgmlDeclLoc_; + size_t sgmlDeclBaseNumber_; + StringC document_; + Boolean haveDocument_; + Location documentLoc_; + size_t documentBaseNumber_; + Boolean haveCurrentBase_; + Vector base_; + Ptr em_; +}; + +class CatalogParser : private Messenger { +public: + CatalogParser(const CharsetInfo &); + void parseCatalog(const StringC &sysid, + Boolean mustExist, + const CharsetInfo &sysidCharset, + const CharsetInfo &catalogCharset, + InputSourceOrigin *origin, + SOEntityCatalog *catalog, + Messenger &mgr); +public: + // Since it's a return type, it has to be public to keep some + // (broken) compilers happy. + enum Param { + eofParam, + literalParam, + nameParam, + percentParam + }; +private: + enum { + data, + eof, + nul, + lit, + lita, + minus, + s, + min // other minimum data characters + }; + enum { minimumLiteral = 01 }; + + Messenger &messenger() { return *this; } + void dispatchMessage(Message &); + void dispatchMessage(const Message &); + void initMessage(Message &); + void parsePublic(); + void parseDelegate(); + void parseDtddecl(); + void parseSystem(); + void parseNameMap(EntityDecl::DeclType declType); + void parseOverride(); + Param parseParam(unsigned flags = 0); + Boolean parseArg(); + void parseLiteral(Char delim, unsigned flags); + void parseName(); + void skipComment(); + void upcase(StringC &); + Boolean inLoop(const Location &loc); + Boolean isMinimumData(Xchar c) { + int cat = categoryTable_[c]; + return (cat == min || (cat == s && c != tab_) + || cat == minus || cat == lita); + } + Xchar get() { return in_->get(messenger()); } + void unget() { in_->ungetToken(); } + Messenger *mgr_; + InputSource *in_; + SOEntityCatalog *catalog_; + StringC param_; + Location paramLoc_; + Char minus_; + Char tab_; + Char rs_; + Char re_; + Char space_; + StringC publicKey_; + StringC systemKey_; + StringC entityKey_; + StringC doctypeKey_; + StringC linktypeKey_; + StringC notationKey_; + StringC overrideKey_; + StringC sgmlDeclKey_; + StringC documentKey_; + StringC catalogKey_; + StringC yesKey_; + StringC noKey_; + StringC baseKey_; + StringC delegateKey_; + StringC dtddeclKey_; + StringC sgmlKey_; + XcharMap categoryTable_; + SubstTable substTable_; + Boolean override_; +}; + +ExtendEntityManager::CatalogManager * +SOCatalogManager::make(const Vector &sysids, + size_t nSysidsMustExist, + const CharsetInfo *sysidCharset, + const CharsetInfo *catalogCharset, + Boolean useDocCatalog) +{ + return new SOCatalogManagerImpl(sysids, + nSysidsMustExist, + sysidCharset, + catalogCharset, + useDocCatalog); +} + +SOCatalogManagerImpl::SOCatalogManagerImpl(const Vector &systemCatalogs, + size_t nSystemCatalogsMustExist, + const CharsetInfo *sysidCharset, + const CharsetInfo *catalogCharset, + Boolean useDocCatalog) +: systemCatalogs_(systemCatalogs), + nSystemCatalogsMustExist_(nSystemCatalogsMustExist), + sysidCharset_(sysidCharset), + catalogCharset_(catalogCharset), + useDocCatalog_(useDocCatalog) +{ +} + +Boolean SOCatalogManagerImpl::mapCatalog(ParsedSystemId &systemId, + ExtendEntityManager *em, + Messenger &mgr) const +{ + Vector maps; + systemId.maps.swap(maps); + while (maps.size() > 0) { + StringC catalogSystemId; + systemId.unparse(*sysidCharset_, 0, catalogSystemId); + SOEntityCatalog *catalog = new SOEntityCatalog(em); + ConstPtr deleter(catalog); + CatalogParser parser(*catalogCharset_); + parser.parseCatalog(catalogSystemId, 1, *sysidCharset_, *catalogCharset_, + InputSourceOrigin::make(), catalog, mgr); + // FIXME do catalog caching here + StringC s; + if (maps.back().type == ParsedSystemId::Map::catalogDocument) { + if (!catalog->document(*sysidCharset_, mgr, s)) { + mgr.message(CatalogMessages::noDocumentEntry, + StringMessageArg(catalogSystemId)); + return 0; + } + } + else { + ASSERT(maps.back().type == ParsedSystemId::Map::catalogPublic); + if (!catalog->lookupPublic(maps.back().publicId, *sysidCharset_, mgr, + s)) { + mgr.message(CatalogMessages::noPublicEntry, + StringMessageArg(maps.back().publicId), + StringMessageArg(catalogSystemId)); + return 0; + } + } + ParsedSystemId tem; + if (!em->parseSystemId(s, *sysidCharset_, 0, 0, mgr, tem)) + return 0; + systemId = tem; + maps.resize(maps.size() - 1); + for (size_t i = 0; i < systemId.maps.size(); i++) + maps.push_back(systemId.maps[i]); + systemId.maps.clear(); + } + return 1; +} + +ConstPtr +SOCatalogManagerImpl::makeCatalog(StringC &systemId, + const CharsetInfo &charset, + ExtendEntityManager *em, + Messenger &mgr) const +{ + SOEntityCatalog *entityCatalog = new SOEntityCatalog(em); + CatalogParser parser(*catalogCharset_); + size_t i; + for (i = 0; i < nSystemCatalogsMustExist_; i++) + parser.parseCatalog(systemCatalogs_[i], 1, + *sysidCharset_, *catalogCharset_, + InputSourceOrigin::make(), entityCatalog, + mgr); + if (useDocCatalog_) + addCatalogsForDocument(parser, systemId, entityCatalog, charset, mgr); + for (i = nSystemCatalogsMustExist_; i < systemCatalogs_.size(); i++) + parser.parseCatalog(systemCatalogs_[i], 0, + *sysidCharset_, *catalogCharset_, + InputSourceOrigin::make(), entityCatalog, + mgr); + + return entityCatalog; +} + + +void SOCatalogManagerImpl::addCatalogsForDocument(CatalogParser &parser, + StringC &sysid, + SOEntityCatalog *impl, + const CharsetInfo &charset, + Messenger &mgr) const +{ + ParsedSystemId v; + if (!impl->entityManager()->parseSystemId(sysid, charset, 0, 0, mgr, v)) + return; + if (v.maps.size() > 0) { + if (v.maps[0].type == ParsedSystemId::Map::catalogDocument) { + v.maps.erase(v.maps.begin(), v.maps.begin() + 1); + StringC tem; + v.unparse(charset, 0, tem); + parser.parseCatalog(tem, 1, charset, *catalogCharset_, + InputSourceOrigin::make(), impl, mgr); + if (!impl->document(charset, mgr, sysid)) { + mgr.message(CatalogMessages::noDocumentEntry, StringMessageArg(tem)); + sysid.resize(0); + } + } + return; + } + Vector catalogs; + size_t i; + for (i = 0; i < v.size(); i++) + if (v[i].storageManager->inheritable()) { + ParsedSystemId catalogId; + catalogId.resize(1); + StorageObjectSpec &spec = catalogId.back(); + spec.storageManager = v[i].storageManager; + spec.codingSystemType = v[i].codingSystemType; + spec.codingSystemName = v[i].codingSystemName; + spec.specId = spec.storageManager->idCharset()->execToDesc("catalog"); + spec.storageManager->resolveRelative(v[i].specId, spec.specId, 0); + spec.baseId = v[i].baseId; + spec.records = v[i].records; + StringC tem; + catalogId.unparse(charset, 0, tem); + for (size_t j = 0; j < catalogs.size(); j++) + if (tem == catalogs[j]) { + tem.resize(0); + break; + } + if (tem.size() > 0) { + catalogs.resize(catalogs.size() + 1); + tem.swap(catalogs.back()); + } + } + for (i = 0; i < catalogs.size(); i++) + parser.parseCatalog(catalogs[i], 0, charset, + *catalogCharset_, InputSourceOrigin::make(), impl, + mgr); +} + +SOEntityCatalog::SOEntityCatalog(Ptr em) +: em_(em), catalogNumber_(0), haveSgmlDecl_(0), haveDocument_(0), + haveCurrentBase_(0) +{ +} + +void SOEntityCatalog::endCatalog() +{ + catalogNumber_++; + haveCurrentBase_ = 0; +} + +Boolean SOEntityCatalog::expandCatalogSystemId(const StringC &str, + const Location &loc, + size_t baseNumber, + Boolean isNdata, + const CharsetInfo &charset, + const StringC *lookupPublicId, + Messenger &mgr, + StringC &result) const +{ + return em_->expandSystemId(str, + (baseNumber ? base_[baseNumber - 1] : loc), + isNdata, + charset, + lookupPublicId, + mgr, + result); +} + +Boolean SOEntityCatalog::lookup(const EntityDecl &entity, + const Syntax &syntax, + const CharsetInfo &charset, + Messenger &mgr, + StringC &result) const +{ + const CatalogEntry *entry = 0; + const CatalogEntry *delegatedEntry = 0; + if (entity.systemIdPointer()) + entry = systemIds_.lookup(*entity.systemIdPointer()); + if (entity.publicIdPointer()) { + const CatalogEntry *publicEntry; + Boolean delegated; + publicEntry = findBestPublicEntry(*entity.publicIdPointer(), + entity.systemIdPointer() != 0, + charset, + delegated); + if (publicEntry && delegated) + delegatedEntry = publicEntry; + // match for system id has priority over match for public id in same + // catalog + if (publicEntry + && (!entry || publicEntry->catalogNumber < entry->catalogNumber)) + entry = publicEntry; + } + if (entity.name().size() > 0 + && (!entry || entry->catalogNumber > 0)) { + const CatalogEntry *entityEntry; + int tableIndex = (entity.declType() >= EntityDecl::parameterEntity + ? int(entity.declType()) - 1 + : int(entity.declType())); + StringC name(entity.name()); + Boolean subst; + switch (entity.declType()) { + case EntityDecl::parameterEntity: + { + StringC tem(name); + name = syntax.peroDelim(); + name += tem; + } + // fall through + case EntityDecl::generalEntity: + subst = syntax.namecaseEntity(); + break; + default: + subst = syntax.namecaseGeneral(); + break; + } + if (!subst) + entityEntry = names_[tableIndex].lookup(name, + entity.systemIdPointer() != 0); + else + entityEntry = names_[tableIndex].lookup(name, + syntax.upperSubstTable(), + entity.systemIdPointer() != 0); + // match for public id has priority over match for entity in same + // catalog + if (entityEntry + && (!entry || entityEntry->catalogNumber < entry->catalogNumber)) + entry = entityEntry; + } + if (entry) + return expandCatalogSystemId(entry->to, + entry->loc, + entry->baseNumber, + entity.dataType() == EntityDecl::ndata, + charset, + entry == delegatedEntry + ? entity.publicIdPointer() + : 0, + mgr, + result); + if (entity.systemIdPointer()) + return em_->expandSystemId(*entity.systemIdPointer(), + entity.defLocation(), + entity.dataType() == EntityDecl::ndata, + charset, + 0, + mgr, + result); + return 0; +} + +Boolean SOEntityCatalog::lookupPublic(const StringC &publicId, + const CharsetInfo &charset, + Messenger &mgr, + StringC &result) const +{ + Boolean delegated; + const CatalogEntry *entry = findBestPublicEntry(publicId, 0, charset, + delegated); + return (entry + && expandCatalogSystemId(entry->to, entry->loc, entry->baseNumber, + 0, charset, delegated ? &publicId : 0, + mgr, result)); + +} + +Boolean SOEntityCatalog::lookupChar(const StringC &name, + const CharsetInfo &charset, + Messenger &mgr, + UnivChar &result) const +{ + Boolean delegated; + const CatalogEntry *entry = findBestPublicEntry(name, 0, charset, + delegated); + if (!entry) + return 0; + if (delegated) + return 0; // FIXME + const StringC &number = entry->to; + if (number.size() == 0) + return 0; + UnivChar n = 0; + for (size_t i = 0; i < number.size(); i++) { + int d = charset.digitWeight(number[i]); + if (d < 0) + return 0; + if (n <= univCharMax/10 && (n *= 10) <= univCharMax - d) + n += d; + } + result = n; + return 1; +} + +const CatalogEntry * +SOEntityCatalog::findBestPublicEntry(const StringC &publicId, + Boolean overrideOnly, + const CharsetInfo &charset, + Boolean &delegated) const +{ + Char slash = charset.execToDesc('/'); + Char colon = charset.execToDesc(':'); + const CatalogEntry *bestEntry = 0; + for (size_t i = 0; i <= publicId.size(); i++) { + if ((i + 1 < publicId.size() + && (publicId[i] == slash || publicId[i] == colon) + && publicId[i + 1] == publicId[i]) + || (i >= 2 + && (publicId[i - 1] == slash || publicId[i - 1] == colon) + && publicId[i - 2] == publicId[i - 1])) { + StringC tem(publicId.data(), i); + const CatalogEntry *entry = delegates_.lookup(tem, overrideOnly); + if (entry + && (!bestEntry + || entry->catalogNumber <= bestEntry->catalogNumber)) { + bestEntry = entry; + delegated = 1; + } + } + } + const CatalogEntry *entry = publicIds_.lookup(publicId, overrideOnly); + if (entry + && (!bestEntry || entry->catalogNumber <= bestEntry->catalogNumber)) { + bestEntry = entry; + delegated = 0; + } + return bestEntry; +} + + +Boolean SOEntityCatalog::dtdDeclRunning_ = 0; +StringC SOEntityCatalog::dtdDeclSpec_; + +Boolean SOEntityCatalog::sgmlDecl(const CharsetInfo &charset, + Messenger &mgr, + const StringC &sysid, + StringC &result) const + +{ +#if SP_DTDDECL + if (dtdDeclRunning_) { + result = dtdDeclSpec_; + return 1; + } + HashTableIter iter(dtdDecls_); + const StringC *key; + const CatalogEntry *entry; + while (iter.next(key, entry)) { + expandCatalogSystemId(entry->to, entry->loc, entry->baseNumber, + 0, charset, 0, mgr, dtdDeclSpec_); + ParserOptions options; + SgmlParser::Params params; + params.sysid = sysid; + params.entityType = SgmlParser::Params::document; + params.entityManager = em_.pointer(); + params.options = &options; + SgmlParser parser(params); + DtdDeclEventHandler eh(*key); + dtdDeclRunning_ = 1; + parser.parseAll(eh, eh.cancelPtr()); + dtdDeclRunning_ = 0; + if (eh.match()) { + result = dtdDeclSpec_; + return 1; + } + } +#endif + + return haveSgmlDecl_ && expandCatalogSystemId(sgmlDecl_, sgmlDeclLoc_, + sgmlDeclBaseNumber_, + 0, charset, 0, mgr, result); +} + +Boolean SOEntityCatalog::document(const CharsetInfo &charset, + Messenger &mgr, + StringC &result) const + +{ + return haveDocument_ && expandCatalogSystemId(document_, documentLoc_, + documentBaseNumber_, + 0, charset, 0, mgr, result); +} + +void SOEntityCatalog::addPublicId(StringC &publicId, StringC &systemId, + const Location &loc, Boolean override) +{ + CatalogEntry entry; + entry.loc = loc; + entry.catalogNumber = catalogNumber_; + entry.baseNumber = haveCurrentBase_ ? base_.size() : 0; + systemId.swap(entry.to); + publicIds_.insert(publicId, entry, override); +} + +void SOEntityCatalog::addDtdDecl(StringC &publicId, StringC &systemId, + const Location &loc, Boolean override) +{ + CatalogEntry entry; + entry.loc = loc; + entry.catalogNumber = catalogNumber_; + entry.baseNumber = haveCurrentBase_ ? base_.size() : 0; + systemId.swap(entry.to); + dtdDecls_.insert(publicId, entry); +} + +void SOEntityCatalog::addDelegate(StringC &prefix, StringC &systemId, + const Location &loc, Boolean override) +{ + CatalogEntry entry; + entry.loc = loc; + entry.catalogNumber = catalogNumber_; + entry.baseNumber = haveCurrentBase_ ? base_.size() : 0; + systemId.swap(entry.to); + delegates_.insert(prefix, entry, override); +} + +void SOEntityCatalog::addSystemId(StringC &systemId, StringC &toSystemId, + const Location &loc) +{ + CatalogEntry entry; + entry.loc = loc; + entry.catalogNumber = catalogNumber_; + entry.baseNumber = haveCurrentBase_ ? base_.size() : 0; + toSystemId.swap(entry.to); + systemIds_.insert(systemId, entry, false); +} + +void SOEntityCatalog::addName(StringC &name, DeclType declType, + StringC &systemId, const Location &loc, + Boolean override) +{ + CatalogEntry entry; + entry.loc = loc; + entry.catalogNumber = catalogNumber_; + entry.baseNumber = haveCurrentBase_ ? base_.size() : 0; + int tableIndex = (declType >= EntityDecl::parameterEntity + ? int(declType) - 1 + : int(declType)); + entry.serial = names_[tableIndex].count(); + systemId.swap(entry.to); + names_[tableIndex].insert(name, entry, override); +} + +void SOEntityCatalog::setSgmlDecl(StringC &str, const Location &loc) +{ + if (!haveSgmlDecl_) { + haveSgmlDecl_ = true; + str.swap(sgmlDecl_); + sgmlDeclLoc_ = loc; + sgmlDeclBaseNumber_ = haveCurrentBase_ ? base_.size() : 0; + + } +} + +void SOEntityCatalog::setDocument(StringC &str, const Location &loc) +{ + if (!haveDocument_) { + haveDocument_ = true; + str.swap(document_); + documentLoc_ = loc; + documentBaseNumber_ = haveCurrentBase_ ? base_.size() : 0; + } +} + +void SOEntityCatalog::setBase(const Location &loc) +{ + if (loc.origin().isNull()) + haveCurrentBase_ = 0; + else { + haveCurrentBase_ = 1; + base_.push_back(loc); + } +} + +SOEntityCatalog::Table::Table() +{ +} + +void SOEntityCatalog::Table::insert(const StringC &key, + const CatalogEntry &entry, + Boolean override) +{ + if (override) + overrideEntries_.insert(key, entry, false); + else { + const CatalogEntry *e = overrideEntries_.lookup(key); + if (!e) + normalEntries_.insert(key, entry, false); + } +} + +const CatalogEntry *SOEntityCatalog::Table::lookup(const StringC &key, + Boolean overrideOnly) const +{ + if (!overrideOnly) { + const CatalogEntry *e = normalEntries_.lookup(key); + if (e) + return e; + } + return overrideEntries_.lookup(key); +} + +const CatalogEntry * +SOEntityCatalog::Table::lookup(const StringC &name, + const SubstTable &substTable, + Boolean overrideOnly) const +{ + HashTableIter iter1(overrideEntries_); + HashTableIter iter2(normalEntries_); + HashTableIter *iters[2]; + int nIter = 0; + iters[nIter++] = &iter1; + if (!overrideOnly) + iters[nIter++] = &iter2; + const CatalogEntry *entry = 0; + for (int i = 0; i < nIter; i++) { + HashTableIter &iter = *iters[i]; + const StringC *key; + const CatalogEntry *value; + StringC buffer; + while (iter.next(key, value)) { + buffer = *key; + substTable.subst(buffer); + if (buffer == name) { + if (!entry || value->serial < entry->serial) + entry = value; + } + } + } + return entry; +} + +size_t SOEntityCatalog::Table::count() const +{ + return normalEntries_.count() + overrideEntries_.count(); +} + +CatalogParser::CatalogParser(const CharsetInfo &charset) +: categoryTable_(data), + entityKey_(charset.execToDesc("ENTITY")), + publicKey_(charset.execToDesc("PUBLIC")), + systemKey_(charset.execToDesc("SYSTEM")), + doctypeKey_(charset.execToDesc("DOCTYPE")), + linktypeKey_(charset.execToDesc("LINKTYPE")), + notationKey_(charset.execToDesc("NOTATION")), + overrideKey_(charset.execToDesc("OVERRIDE")), + sgmlDeclKey_(charset.execToDesc("SGMLDECL")), + documentKey_(charset.execToDesc("DOCUMENT")), + catalogKey_(charset.execToDesc("CATALOG")), + yesKey_(charset.execToDesc("YES")), + noKey_(charset.execToDesc("NO")), + baseKey_(charset.execToDesc("BASE")), + delegateKey_(charset.execToDesc("DELEGATE")), + dtddeclKey_(charset.execToDesc("DTDDECL")), + sgmlKey_(charset.execToDesc("SGML")) +{ + static const char lcletters[] = "abcdefghijklmnopqrstuvwxyz"; + static const char ucletters[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + // minimum data other than lcletter, ucletter + static const char minChars[] = "0123456789-.'()+,/:=?"; + static const char wwwMinChars[] = { 33, 35, 36, 37, 42, 59, 64, 95, 0 }; + static const char sChars[] = " \n\r\t"; + categoryTable_.setChar(0, nul); + const char *p; + const char *q; + for (p = lcletters, q = ucletters; *p; p++, q++) { + Char lc = charset.execToDesc(*p); + Char uc = charset.execToDesc(*q); + substTable_.addSubst(lc, uc); + categoryTable_.setChar(lc, min); + categoryTable_.setChar(uc, min); + } + for (p = sChars; *p; p++) + categoryTable_.setChar(charset.execToDesc(*p), s); + for (p = minChars; *p; p++) + categoryTable_.setChar(charset.execToDesc(*p), min); + for (p = wwwMinChars; *p; p++) { + WideChar c; + ISet set; + if (charset.univToDesc(*p, c, set) > 0 && c <= charMax) + categoryTable_.setChar(Char(c), min); + } + categoryTable_.setChar(charset.execToDesc('\''), lita); + categoryTable_.setChar(charset.execToDesc('"'), lit); + minus_ = charset.execToDesc('-'); + categoryTable_.setChar(minus_, minus); + tab_ = charset.execToDesc('\t'); + re_ = charset.execToDesc('\r'); + rs_ = charset.execToDesc('\n'); + space_ = charset.execToDesc(' '); + categoryTable_.setEe(eof); +} + +void CatalogParser::parseCatalog(const StringC &sysid, + Boolean mustExist, + const CharsetInfo &sysidCharset, + const CharsetInfo &catalogCharset, + InputSourceOrigin *origin, + SOEntityCatalog *catalog, + Messenger &mgr) +{ + const Ptr &em = catalog->entityManager(); + in_ = em->open(sysid, sysidCharset, origin, + mustExist ? 0 : ExtendEntityManager::mayNotExist, mgr); + if (!in_) + return; + catalog_ = catalog; + mgr_ = &mgr; + override_ = 0; + Boolean recovering = false; + Vector subSysids; + Vector subSysidLocs; + for (;;) { + Param parm = parseParam(); + if (parm == nameParam) { + upcase(param_); + Boolean wasRecovering = recovering; + recovering = false; + if (param_ == publicKey_) + parsePublic(); + else if (param_ == systemKey_) + parseSystem(); + else if (param_ == entityKey_) + parseNameMap(EntityDecl::generalEntity); + else if (param_ == doctypeKey_) + parseNameMap(EntityDecl::doctype); + else if (param_ == linktypeKey_) + parseNameMap(EntityDecl::linktype); + else if (param_ == notationKey_) + parseNameMap(EntityDecl::notation); + else if (param_ == sgmlKey_) + parseNameMap(EntityDecl::sgml); + else if (param_ == sgmlDeclKey_) { + if (parseArg()) + catalog_->setSgmlDecl(param_, paramLoc_); + } + else if (param_ == documentKey_) { + if (parseArg()) + catalog_->setDocument(param_, paramLoc_); + } + else if (param_ == overrideKey_) + parseOverride(); + else if (param_ == catalogKey_) { + if (parseArg()) { + if (inLoop(paramLoc_)) + break; + subSysids.resize(subSysids.size() + 1); + param_.swap(subSysids.back()); + subSysidLocs.push_back(paramLoc_); + } + } + else if (param_ == baseKey_) { + if (parseArg()) { + StringC tem; + if (em->expandSystemId(param_, + paramLoc_, + 0, + catalogCharset, + 0, + mgr, + tem)) { + InputSource *in = em->open(tem, + catalogCharset, + InputSourceOrigin::make(paramLoc_), + 0, + mgr); + if (in && (in->get(mgr) != InputSource::eE || !in->accessError())) + catalog->setBase(in->currentLocation()); + } + } + } + else if (param_ == delegateKey_) + parseDelegate(); + else if (param_ == dtddeclKey_) + parseDtddecl(); + else { + if (!wasRecovering && parseParam() == eofParam) + break; + recovering = true; + } + } + else if (parm == eofParam) + break; + else if (!recovering) { + recovering = true; + message(CatalogMessages::nameExpected); + } + } + delete in_; + catalog->endCatalog(); + for (size_t i = 0; i < subSysids.size(); i++) { + StringC tem; + if (em->expandSystemId(subSysids[i], subSysidLocs[i], 0, catalogCharset, + 0, mgr, tem)) + parseCatalog(tem, 1, catalogCharset, catalogCharset, + InputSourceOrigin::make(subSysidLocs[i]), catalog, mgr); + } +} + +Boolean CatalogParser::inLoop(const Location &loc) +{ + const InputSourceOrigin *origin = paramLoc_.origin()->asInputSourceOrigin(); + if (!origin) + return 0; + const ExternalInfo *info = origin->externalInfo(); + if (!info) + return 0; + StorageObjectLocation soLoc; + if (!ExtendEntityManager::externalize(info, + origin->startOffset(paramLoc_.index()), + soLoc)) + return 0; + for (;;) { + const Location &parent = origin->parent(); + if (parent.origin().isNull()) + break; + origin = parent.origin()->asInputSourceOrigin(); + if (!origin) + break; + const ExternalInfo *info1 = origin->externalInfo(); + if (info1) { + StorageObjectLocation soLoc1; + if (ExtendEntityManager::externalize(info1, + origin->startOffset(parent.index()), + soLoc1)) { + if (soLoc.storageObjectSpec->storageManager + == soLoc1.storageObjectSpec->storageManager + && soLoc.actualStorageId == soLoc1.actualStorageId) { + setNextLocation(loc.origin()->parent()); + message(CatalogMessages::inLoop); + return 1; + } + } + } + } + return 0; +} + +void CatalogParser::parseOverride() +{ + if (parseParam() != nameParam) { + message(CatalogMessages::overrideYesOrNo); + return; + } + upcase(param_); + if (param_ == yesKey_) + override_ = 1; + else if (param_ == noKey_) + override_ = 0; + else + message(CatalogMessages::overrideYesOrNo); +} + +void CatalogParser::parsePublic() +{ + if (parseParam(minimumLiteral) != literalParam) { + message(CatalogMessages::literalExpected); + return; + } + StringC publicId; + param_.swap(publicId); + if (!parseArg()) + return; + catalog_->addPublicId(publicId, param_, paramLoc_, override_); +} + +void CatalogParser::parseDelegate() +{ + if (parseParam(minimumLiteral) != literalParam) { + message(CatalogMessages::literalExpected); + return; + } + StringC publicId; + param_.swap(publicId); + if (!parseArg()) + return; + catalog_->addDelegate(publicId, param_, paramLoc_, override_); +} + +void CatalogParser::parseDtddecl() +{ + if (parseParam(minimumLiteral) != literalParam) { + message(CatalogMessages::literalExpected); + return; + } + StringC publicId; + param_.swap(publicId); + if (!parseArg()) + return; + catalog_->addDtdDecl(publicId, param_, paramLoc_, override_); +} + +void CatalogParser::parseSystem() +{ + if (!parseArg()) + return; + StringC systemId; + param_.swap(systemId); + Param parm = parseParam(); + if (parm == nameParam) + message(CatalogMessages::systemShouldQuote); + else if (parm != literalParam) { + message(CatalogMessages::literalExpected); + return; + } + catalog_->addSystemId(systemId, param_, paramLoc_); +} + +void CatalogParser::parseNameMap(EntityDecl::DeclType declType) +{ + if (!parseArg()) + return; + StringC name; + param_.swap(name); + if (!parseArg()) + return; + catalog_->addName(name, declType, param_, paramLoc_, override_); +} + +Boolean CatalogParser::parseArg() +{ + Param parm = parseParam(); + if (parm != nameParam && parm != literalParam) { + message(CatalogMessages::nameOrLiteralExpected); + return false; + } + return true; +} + +CatalogParser::Param CatalogParser::parseParam(unsigned flags) +{ + for (;;) { + Xchar c = get(); + switch (categoryTable_[c]) { + case eof: + return eofParam; + case lit: + case lita: + parseLiteral(c, flags); + return literalParam; + case s: + break; + case nul: + message(CatalogMessages::nulChar); + break; + case minus: + c = get(); + if (c == minus_) { + skipComment(); + break; + } + unget(); + // fall through + default: + parseName(); + return nameParam; + } + } +} + +void CatalogParser::skipComment() +{ + for (;;) { + Xchar c = get(); + if (c == minus_) { + c = get(); + if (c == minus_) + break; + } + if (c == InputSource::eE) { + message(CatalogMessages::eofInComment); + break; + } + } +} + +void CatalogParser::parseLiteral(Char delim, unsigned flags) +{ + paramLoc_ = in_->currentLocation(); + enum { no, yesBegin, yesMiddle } skipping = yesBegin; + param_.resize(0); + for (;;) { + Xchar c = get(); + if (c == InputSource::eE) { + message(CatalogMessages::eofInLiteral); + break; + } + if (Char(c) == delim) + break; + if (flags & minimumLiteral) { + if (!isMinimumData(c)) + message(CatalogMessages::minimumData); + if (c == rs_) + ; + else if (c == space_ || c == re_) { + if (skipping == no) { + param_ += space_; + skipping = yesMiddle; + } + } + else { + skipping = no; + param_ += Char(c); + } + } + else + param_ += Char(c); + } + if (skipping == yesMiddle) + param_.resize(param_.size() - 1); +} + +void CatalogParser::parseName() +{ + paramLoc_ = in_->currentLocation(); + size_t length; + for (length = 1;; length++) { + Xchar c = in_->tokenChar(messenger()); + int cat = categoryTable_[c]; + if (cat == eof || cat == s) + break; + // FIXME maybe check for LIT or LITA + if (cat == nul) + message(CatalogMessages::nulChar); + } + in_->endToken(length); + param_.assign(in_->currentTokenStart(), in_->currentTokenLength()); +} + +void CatalogParser::upcase(StringC &str) +{ + substTable_.subst(str); +} + +void CatalogParser::dispatchMessage(const Message &msg) +{ + mgr_->dispatchMessage(msg); +} + +void CatalogParser::dispatchMessage(Message &msg) +{ + mgr_->dispatchMessage(msg); +} + +void CatalogParser::initMessage(Message &msg) +{ + msg.loc = in_->currentLocation(); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Sd.cxx b/lib/Sd.cxx new file mode 100644 index 0000000..759b5c0 --- /dev/null +++ b/lib/Sd.cxx @@ -0,0 +1,277 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Sd.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Sd::Sd(const Ptr &entityManager) +: entityManager_(entityManager), + internalCharsetIsDocCharset_(entityManager->internalCharsetIsDocCharset()), + docCharset_(entityManager->charset()), + scopeInstance_(0), + www_(0), + netEnable_(netEnableNo), + entityRef_(entityRefAny), + typeValid_(1), + integrallyStored_(0), + implydefElement_(Sd::implydefElementNo) +{ + int i; + for (i = 0; i < nBooleanFeature; i++) + booleanFeature_[i] = 0; + for (i = 0; i < nNumberFeature; i++) + numberFeature_[i] = 0; + for (i = 0; i < nCapacity; i++) + capacity_[i] = 35000; + if (internalCharsetIsDocCharset_) + internalCharsetPtr_ = 0; + else + internalCharsetPtr_ = &entityManager->charset(); +} + +Sd::~Sd() {} + +void Sd::setDocCharsetDesc(const UnivCharsetDesc &desc) +{ + docCharset_.set(desc); +} + +const char *const Sd::reservedName_[] = { + "ALL", + "ANY", + "ANYOTHER", + "APPINFO", + "ATTLIST", + "ATTRIB", + "BASESET", + "CAPACITY", + "CHARSET", + "CONCUR", + "CONTROLS", + "DATATAG", + "DEFAULT", + "DELIM", + "DESCSET", + "DOCTYPE", + "DOCUMENT", + "ELEMENT", + "EMPTY", + "EMPTYNRM", + "ENDTAG", + "ENTITIES", + "ENTITY", + "EXPLICIT", + "FEATURES", + "FORMAL", + "FUNCHAR", + "FUNCTION", + "GENERAL", + "IMMEDNET", + "IMPLICIT", + "IMPLYDEF", + "INSTANCE", + "INTEGRAL", + "INTERNAL", + "KEEPRSRE", + "LCNMCHAR", + "LCNMSTRT", + "LINK", + "MINIMIZE", + "MSICHAR", + "MSOCHAR", + "MSSCHAR", + "NAMECASE", + "NAMECHAR", + "NAMES", + "NAMESTRT", + "NAMING", + "NETENABL", + "NO", + "NOASSERT", + "NONE", + "NOTATION", + "OMITNAME", + "OMITTAG", + "OTHER", + "PUBLIC", + "QUANTITY", + "RANK", + "RE", + "REF", + "RS", + "SCOPE", + "SEEALSO", + "SEPCHAR", + "SGML", + "SGMLREF", + "SHORTREF", + "SHORTTAG", + "SHUNCHAR", + "SIMPLE", + "SPACE", + "STARTTAG", + "SUBDOC", + "SWITCHES", + "SYNTAX", + "SYSTEM", + "TYPE", + "UCNMCHAR", + "UCNMSTRT", + "UNCLOSED", + "UNUSED", + "URN", + "VALIDITY", + "VALUE", + "YES" +}; + +const char *const Sd::capacityName_[] = { + "TOTALCAP", + "ENTCAP", + "ENTCHCAP", + "ELEMCAP", + "GRPCAP", + "EXGRPCAP", + "EXNMCAP", + "ATTCAP", + "ATTCHCAP", + "AVGRPCAP", + "NOTCAP", + "NOTCHCAP", + "IDCAP", + "IDREFCAP", + "MAPCAP", + "LKSETCAP", + "LKNMCAP" +}; + + +const char *const Sd::quantityName_[] = { + "ATTCNT", + "ATTSPLEN", + "BSEQLEN", + "DTAGLEN", + "DTEMPLEN", + "ENTLVL", + "GRPCNT", + "GRPGTCNT", + "GRPLVL", + "LITLEN", + "NAMELEN", + "NORMSEP", + "PILEN", + "TAGLEN", + "TAGLVL" +}; + +const char *const Sd::generalDelimiterName_[] = { + "AND", + "COM", + "CRO", + "DSC", + "DSO", + "DTGC", + "DTGO", + "ERO", + "ETAGO", + "GRPC", + "GRPO", + "HCRO", + "LIT", + "LITA", + "MDC", + "MDO", + "MINUS", + "MSC", + "NET", + "NESTC", + "OPT", + "OR", + "PERO", + "PIC", + "PIO", + "PLUS", + "REFC", + "REP", + "RNI", + "SEQ", + "STAGO", + "TAGC", + "VI" +}; + +Boolean Sd::lookupQuantityName(const StringC &name, Syntax::Quantity &quantity) + const +{ + for (size_t i = 0; i < SIZEOF(quantityName_); i++) + if (execToInternal(quantityName_[i]) == name) { + quantity = Syntax::Quantity(i); + return 1; + } + return 0; +} + +Boolean Sd::lookupCapacityName(const StringC &name, Sd::Capacity &capacity) + const +{ + for (size_t i = 0; i < SIZEOF(capacityName_); i++) + if (execToInternal(capacityName_[i]) == name) { + capacity = Sd::Capacity(i); + return 1; + } + return 0; +} + +Boolean Sd::lookupGeneralDelimiterName(const StringC &name, + Syntax::DelimGeneral &delimGeneral) + const +{ + for (size_t i = 0; i < SIZEOF(generalDelimiterName_); i++) + if (execToInternal(generalDelimiterName_[i]) == name) { + delimGeneral = Syntax::DelimGeneral(i); + return 1; + } + return 0; +} + +StringC Sd::quantityName(Syntax::Quantity q) const +{ + return execToInternal(quantityName_[q]); +} + +StringC Sd::generalDelimiterName(Syntax::DelimGeneral d) const +{ + return execToInternal(generalDelimiterName_[d]); +} + +UnivChar Sd::nameToUniv(const StringC &name) +{ + const int *p = namedCharTable_.lookup(name); + int n; + if (p) + n = *p; + else { + n = int(namedCharTable_.count()); + namedCharTable_.insert(name, n); + } + return n + 0x60000000; // 10646 private use group +} + +void Sd::setShorttag(Boolean b) +{ + for (int i = fSHORTTAG_FIRST; i <= fSHORTTAG_LAST; i++) + booleanFeature_[i] = b; + netEnable_ = netEnableAll; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/SdFormalError.h b/lib/SdFormalError.h new file mode 100644 index 0000000..a2741c7 --- /dev/null +++ b/lib/SdFormalError.h @@ -0,0 +1,32 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef SdFormalError_INCLUDED +#define SdFormalError_INCLUDED 1 + +#include "Link.h" +#include "StringC.h" +#include "Message.h" +#include "Location.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class ParserState; + +class SdFormalError : public Link { +public: + SdFormalError(const Location &, const MessageType1 &, const StringC &); + void send(ParserState &); +private: + const MessageType1 *message_; + Location location_; + StringC id_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not SdFormalError_INCLUDED */ diff --git a/lib/SdText.cxx b/lib/SdText.cxx new file mode 100644 index 0000000..67f2c73 --- /dev/null +++ b/lib/SdText.cxx @@ -0,0 +1,100 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "SdText.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +SdText::SdText() +{ +} + +SdText::SdText(const Location &loc, Boolean lita) +: lita_(lita) +{ + items_.resize(items_.size() + 1); + items_.back().loc = loc; + items_.back().index = 0; +} + +void SdText::addChar(SyntaxChar c, const Location &loc) +{ + if (items_.size() == 0 + || loc.origin().pointer() != items_.back().loc.origin().pointer() + || loc.index() != (items_.back().loc.index() + + (chars_.size() - items_.back().index))) { + items_.resize(items_.size() + 1); + items_.back().loc = loc; + items_.back().index = chars_.size(); + } + chars_ += c; +} + +void SdText::swap(SdText &to) +{ + items_.swap(to.items_); + chars_.swap(to.chars_); + { + Boolean tem = to.lita_; + to.lita_ = lita_; + lita_ = tem; + } +} + +Location SdText::endDelimLocation() const +{ + Location loc(items_.back().loc); + loc += chars_.size() - items_.back().index; + return loc; +} + +SdTextItem::SdTextItem() +{ +} + +SdTextItem::SdTextItem(const SdTextItem& x) +: loc(x.loc), + index(x.index) +{ +} + +void SdTextItem::operator=(const SdTextItem& x) +{ + loc = x.loc; + index = x.index; +} + +SdTextItem::~SdTextItem() {} + +SdTextIter::SdTextIter(const SdText &text) +: ptr_(&text), + itemIndex_(0) +{ +} + +Boolean SdTextIter::next(const SyntaxChar *&ptr, size_t &length, Location &loc) +{ + const Vector &items = ptr_->items_; + if (itemIndex_ >= items.size()) + return 0; + loc = items[itemIndex_].loc; + const String &chars = ptr_->chars_; + size_t charsIndex = items[itemIndex_].index; + ptr = chars.data() + charsIndex; + if (itemIndex_ + 1 < items.size()) + length = items[itemIndex_ + 1].index - charsIndex; + else + length = chars.size() - charsIndex; + itemIndex_++; + return 1; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/SearchResultMessageArg.cxx b/lib/SearchResultMessageArg.cxx new file mode 100644 index 0000000..8b955c0 --- /dev/null +++ b/lib/SearchResultMessageArg.cxx @@ -0,0 +1,35 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "SearchResultMessageArg.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +RTTI_DEF1(SearchResultMessageArg, OtherMessageArg); + +SearchResultMessageArg::SearchResultMessageArg() +{ +} + +MessageArg *SearchResultMessageArg::copy() const +{ + return new SearchResultMessageArg(*this); +} + +void SearchResultMessageArg::add(StringC &str, int n) +{ + filename_.resize(filename_.size() + 1); + str.swap(filename_.back()); + errno_.push_back(n); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/SgmlParser.cxx b/lib/SgmlParser.cxx new file mode 100644 index 0000000..79e6778 --- /dev/null +++ b/lib/SgmlParser.cxx @@ -0,0 +1,113 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "SgmlParser.h" +#include "Parser.h" +#include "Trie.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +SgmlParser::SgmlParser() +: parser_(0) +{ +} + +SgmlParser::SgmlParser(const Params ¶ms) +: parser_(new Parser(params)) +{ +} + +void SgmlParser::init(const Params ¶ms) +{ + delete parser_; + parser_ = new Parser(params); +} + +SgmlParser::~SgmlParser() +{ + delete parser_; +} + +Event *SgmlParser::nextEvent() +{ + return parser_->nextEvent(); +} + +void SgmlParser::parseAll(EventHandler &handler, + const volatile sig_atomic_t *cancelPtr) +{ + parser_->parseAll(handler, cancelPtr); +} + +ConstPtr SgmlParser::sd() const +{ + return parser_->sdPointer(); +} + +ConstPtr SgmlParser::instanceSyntax() const +{ + return parser_->instanceSyntaxPointer(); +} + +ConstPtr SgmlParser::prologSyntax() const +{ + return parser_->prologSyntaxPointer(); +} + +EntityManager &SgmlParser::entityManager() const +{ + return parser_->entityManager(); +} + +const EntityCatalog &SgmlParser::entityCatalog() const +{ + return parser_->entityCatalog(); +} + +void SgmlParser::activateLinkType(const StringC &name) +{ + parser_->activateLinkType(name); +} + +void SgmlParser::allLinkTypesActivated() +{ + parser_->allLinkTypesActivated(); +} + +void SgmlParser::swap(SgmlParser &s) +{ + Parser *tem = parser_; + parser_ = s.parser_; + s.parser_ = tem; +} + +Ptr SgmlParser::baseDtd() +{ + return parser_->baseDtd(); +} + +const ParserOptions &SgmlParser::options() const +{ + return parser_->options(); +} + +SgmlParser::Params::Params() +: entityType(document), + parent(0), + options(0), + subdocInheritActiveLinkTypes(0), + subdocReferenced(0), + subdocLevel(0) +{ +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/ShortReferenceMap.cxx b/lib/ShortReferenceMap.cxx new file mode 100644 index 0000000..85c1db3 --- /dev/null +++ b/lib/ShortReferenceMap.cxx @@ -0,0 +1,35 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "ShortReferenceMap.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +ShortReferenceMap::ShortReferenceMap() +: Named(StringC()), used_(0) +{ +} + +ShortReferenceMap::ShortReferenceMap(const StringC &name) +: Named(name) +{ +} + +void ShortReferenceMap::setNameMap(Vector &map) +{ + map.swap(nameMap_); + // Make sure we know it's defined. + if (nameMap_.size() == 0) + nameMap_.resize(1); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/SrInfo.h b/lib/SrInfo.h new file mode 100644 index 0000000..c80a9f0 --- /dev/null +++ b/lib/SrInfo.h @@ -0,0 +1,24 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef SrInfo_INCLUDED +#define SrInfo_INCLUDED + +#include "types.h" +#include "StringOf.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct SrInfo { + String chars; + int bSequenceLength; + String chars2; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not SrInfo_INCLUDED */ diff --git a/lib/StdioStorage.cxx b/lib/StdioStorage.cxx new file mode 100644 index 0000000..694f475 --- /dev/null +++ b/lib/StdioStorage.cxx @@ -0,0 +1,156 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" +#include "StdioStorage.h" +#include "Message.h" +#include "types.h" +#include "ErrnoMessageArg.h" +#include "StringOf.h" +#include "StringC.h" +#include "CodingSystem.h" + +#include "StdioStorageMessages.h" + +#include +#include +#include +#include + +#ifndef SEEK_SET +#define SEEK_SET 0 +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class StdioStorageObject : public StorageObject { +public: + StdioStorageObject(FILE *fp, const StringC &filename); + ~StdioStorageObject(); + Boolean read(char *buf, size_t bufSize, Messenger &mgr, size_t &nread); + Boolean rewind(Messenger &mgr); + size_t getBlockSize() const; +private: + enum ErrorIndex { + invalidErrorIndex, + fopenFailed, + readError, + seekError + }; + void error(Messenger &mgr, const MessageType2 &, int err); + + FILE *fp_; + StringC filename_; + String filenameBytes_; +}; + +StdioStorageManager::StdioStorageManager(const char *type, + const CharsetInfo *filenameCharset, + const OutputCodingSystem *filenameCodingSystem) +: IdStorageManager(filenameCharset), + type_(type), + filenameCodingSystem_(filenameCodingSystem) +{ +} + +StorageObject *StdioStorageManager::makeStorageObject(const StringC &str, + const StringC &, + Boolean, + Boolean, + Messenger &mgr, + StringC &filename) +{ + filename = str; + String filenameBytes = filenameCodingSystem_->convertOut(filename); + errno = 0; + FILE *fp = fopen(filenameBytes.data(), "r"); + if (!fp) { + ParentLocationMessenger(mgr).message(StdioStorageMessages::openFailed, + StringMessageArg(filename), + ErrnoMessageArg(errno)); + + return 0; + } + return new StdioStorageObject(fp, filename); +} + +const char *StdioStorageManager::type() const +{ + return type_; +} + +StdioStorageObject::StdioStorageObject(FILE *fp, const StringC &filename) +: fp_(fp), filename_(filename) +{ +} + +StdioStorageObject::~StdioStorageObject() +{ + if (fp_) { + fclose(fp_); + fp_ = 0; + } +} + +Boolean StdioStorageObject::rewind(Messenger &mgr) +{ + if (fp_) { + errno = 0; + if (fseek(fp_, 0L, SEEK_SET) < 0) { + error(mgr, StdioStorageMessages::seekFailed, errno); + return 0; + } + return 1; + } + return 1; +} + +size_t StdioStorageObject::getBlockSize() const +{ + return BUFSIZ; +} + +Boolean StdioStorageObject::read(char *buf, size_t bufSize, Messenger &mgr, + size_t &nread) +{ + if (!fp_) + return 0; + errno = 0; + size_t n = 0; + FILE *fp = fp_; + while (n < bufSize) { + int c = getc(fp); + if (c == EOF) { + if (ferror(fp)) { + error(mgr, StdioStorageMessages::readFailed, errno); + (void)fclose(fp); + return 0; + } + fclose(fp); + fp_ = 0; + break; + } + buf[n++] = c; + } + nread = n; + return n > 0; +} + +void StdioStorageObject::error(Messenger &mgr, + const MessageType2 &msg, + int err) +{ + ParentLocationMessenger(mgr).message(msg, + StringMessageArg(filename_), + ErrnoMessageArg(err)); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/StdioStorageMessages.h b/lib/StdioStorageMessages.h new file mode 100644 index 0000000..6d3a96d --- /dev/null +++ b/lib/StdioStorageMessages.h @@ -0,0 +1,42 @@ +// This file was automatically generated from StdioStorageMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct StdioStorageMessages { + // 2400 + static const MessageType2 openFailed; + // 2401 + static const MessageType2 readFailed; + // 2402 + static const MessageType2 seekFailed; +}; +const MessageType2 StdioStorageMessages::openFailed( +MessageType::error, +&libModule, +2400 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot open %1 (%2)" +#endif +); +const MessageType2 StdioStorageMessages::readFailed( +MessageType::error, +&libModule, +2401 +#ifndef SP_NO_MESSAGE_TEXT +,"error reading %1 (%2)" +#endif +); +const MessageType2 StdioStorageMessages::seekFailed( +MessageType::error, +&libModule, +2402 +#ifndef SP_NO_MESSAGE_TEXT +,"error seeking %1 (%2)" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/StdioStorageMessages.msg b/lib/StdioStorageMessages.msg new file mode 100644 index 0000000..726c38b --- /dev/null +++ b/lib/StdioStorageMessages.msg @@ -0,0 +1,9 @@ +# Copyright (c) 1994 James Clark +# See the file COPYING for copying permission. + +# StdioStorage message definitions + +=2400 +E2+openFailed++cannot open %1 (%2) +E2+readFailed++error reading %1 (%2) +E2+seekFailed++error seeking %1 (%2) diff --git a/lib/StdioStorageMessages.rc b/lib/StdioStorageMessages.rc new file mode 100644 index 0000000..64db8d7 --- /dev/null +++ b/lib/StdioStorageMessages.rc @@ -0,0 +1,6 @@ +STRINGTABLE +BEGIN + 2400, "cannot open %1 (%2)" + 2401, "error reading %1 (%2)" + 2402, "error seeking %1 (%2)" +END diff --git a/lib/StorageManager.cxx b/lib/StorageManager.cxx new file mode 100644 index 0000000..52233e5 --- /dev/null +++ b/lib/StorageManager.cxx @@ -0,0 +1,99 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "StorageManager.h" +#define DEFAULT_BLOCK_SIZE 1024 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +StorageObject::StorageObject() +{ +} + +StorageObject::~StorageObject() +{ +} + +void StorageObject::willNotRewind() +{ +} + +size_t StorageObject::getBlockSize() const +{ + return DEFAULT_BLOCK_SIZE; +} + +StorageManager::StorageManager() +{ +} + +StorageManager::~StorageManager() +{ +} + +Boolean StorageManager::inheritable() const +{ + return 1; +} + +Boolean StorageManager::resolveRelative(const StringC &, StringC &, + Boolean) const +{ + return 1; +} + +Boolean StorageManager::guessIsId(const StringC &, const CharsetInfo &) const +{ + return 0; +} + +Boolean StorageManager::transformNeutral(StringC &, Boolean, Messenger &) const +{ + return 0; +} + +const InputCodingSystem *StorageManager::requiredCodingSystem() const +{ + return 0; +} + +Boolean StorageManager::requiresCr() const +{ + return 0; +} + +const CharsetInfo *StorageManager::idCharset() const +{ + return 0; +} + +const StringC *StorageManager::reString() const +{ + return 0; +} + +IdStorageManager::IdStorageManager(const CharsetInfo *idCharset) +: idCharset_(idCharset) +{ +} + +const CharsetInfo *IdStorageManager::idCharset() const +{ + return idCharset_; +} + +const StringC *IdStorageManager::reString() const +{ + return &reString_; +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/StorageObjectPosition.h b/lib/StorageObjectPosition.h new file mode 100644 index 0000000..cc72ff2 --- /dev/null +++ b/lib/StorageObjectPosition.h @@ -0,0 +1,35 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef StorageObjectPosition_INCLUDED +#define StorageObjectPosition_INCLUDED 1 + +#include "Boolean.h" +#include "types.h" +#include "Owner.h" +#include "CodingSystem.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct StorageObjectPosition { + StorageObjectPosition(); + // the number of RSs preceding line 1 of this storage object + // or -1 if this hasn't been computed yet. + size_t line1RS; + Owner decoder; + // Does the storage object start with an RS? + PackedBoolean startsWithRS; + // Were the RSs other than the first in the storage object inserted? + PackedBoolean insertedRSs; + Offset endOffset; + StringC id; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not StorageObjectPosition_INCLUDED */ diff --git a/lib/SubstTable.cxx b/lib/SubstTable.cxx new file mode 100644 index 0000000..bffff71 --- /dev/null +++ b/lib/SubstTable.cxx @@ -0,0 +1,112 @@ +// Copyright (c) 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#include "splib.h" +#include "SubstTable.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +SubstTable::SubstTable() +: isSorted_(1) +{ + for (size_t i = 0; i < 256; i++) + lo_[i] = i; +} + +void SubstTable::addSubst(Char from, Char to) +{ + if (from < 256) + lo_[from] = to; + else { + for (size_t i = 0; i < map_.size(); i++) + if (map_[i].from == from) { + map_[i].to = to; + return; + } + if (from != to) { + isSorted_ = isSorted_ && (map_.size() == 0 || map_.back().from < from); + map_.push_back(Pair(from, to)); + } + } +} + +Char SubstTable::at(Char t) const +{ + if (!isSorted_) { + sort(); +#ifndef HAVE_MUTABLE + ((SubstTable *)this)-> +#endif + isSorted_ = 1; + } + size_t min = 0; + size_t max = map_.size() - 1; + if (map_.size() == 0 || t < map_[min].from || t > map_[max].from) + return t; + if (t == map_[min].from) + return map_[min].to; + if (t == map_[max].from) + return map_[max].to; + for(;;) { + size_t mid = (min + max) / 2; + if (mid == min || mid == max) + return t; + if (t == map_[mid].from) + return map_[mid].to; + if (t < map_[mid].from) + max = mid; + else + min = mid; + } +} + +extern "C" { + +static +int comparePairs(const void *p1, const void *p2) +{ + return ((SubstTable::Pair *)p1)->from - ((SubstTable::Pair *)p2)->from; +} + +} + +void SubstTable::sort() const +{ + qsort((void *)&map_[0], map_.size(), sizeof(map_[0]), comparePairs); +} + +StringC SubstTable::inverse(Char c) const +{ + StringC res; + bool cSeen = (c < 256); + for (size_t i = 0; i < 256; i++) + if (lo_[i] == c) + res += i; + for (size_t i = 0; i < map_.size(); i++) { + cSeen = cSeen || (map_[i].from == c); + if (map_[i].to == c) + res += map_[i].from; + } + if (!cSeen) + res += c; + return res; +} + +void SubstTable::inverseTable(SubstTable &inverse) const +{ + for (size_t i = 0; i < 256; i++) + inverse.lo_[i] = i; + inverse.map_.resize(0); + inverse.isSorted_ = 1; + for (size_t i = 0; i < 256; i++) + inverse.addSubst(lo_[i], i); + for (size_t i = 0; i < map_.size(); i++) + inverse.addSubst(map_[i].to, map_[i].from); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Syntax.cxx b/lib/Syntax.cxx new file mode 100644 index 0000000..8ebe355 --- /dev/null +++ b/lib/Syntax.cxx @@ -0,0 +1,470 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Syntax.h" +#include "Sd.h" +#include "CharsetInfo.h" +#include "ISetIter.h" +#include "macros.h" +#include "MarkupScan.h" +#include "constant.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const int Syntax::referenceQuantity_[] = { + 40, + 960, + 960, + 16, + 16, + 16, + 32, + 96, + 16, + 240, + 8, + 2, + 240, + 960, + 24 +}; + +Syntax::Syntax(const Sd &sd) +: generalSubst_(0), + entitySubst_(0), + categoryTable_(otherCategory), + shuncharControls_(0), + multicode_(0), + hasMarkupScanTable_(0) +{ + static const char lcletter[] = "abcdefghijklmnopqrstuvwxyz"; + static const char ucletter[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + int i; + for (i = 0; i < 26; i++) { + Char lc = sd.execToInternal(lcletter[i]); + Char uc = sd.execToInternal(ucletter[i]); + set_[nameStart] += lc; + set_[nameStart] += uc; + set_[minimumData] += lc; + set_[minimumData] += uc; + set_[significant] += lc; + set_[significant] += uc; + if (i < 6) { + set_[hexDigit] += lc; + set_[hexDigit] += uc; + } + categoryTable_.setChar(lc, nameStartCategory); + categoryTable_.setChar(uc, nameStartCategory); + subst(lc, uc); + } + static const char digits[] = "0123456789"; + for (i = 0; i < 10; i++) { + Char c = sd.execToInternal(digits[i]); + set_[digit] += c; + set_[hexDigit] += c; + set_[minimumData] += c; + set_[significant] += c; + categoryTable_.setChar(c, digitCategory); + } + static const char special[] = "'()+,-./:=?"; + for (i = 0; special[i] != '\0'; i++) { + Char c = sd.execToInternal(special[i]); + set_[minimumData] += c; + set_[significant] += c; + } + + if (sd.www()) { + static const char wwwSpecial[] = { 33, 35, 36, 37, 42, 59, 64, 95, 0 }; + for (i = 0; wwwSpecial[i] != '\0'; i++) { + const CharsetInfo &charset = sd.internalCharset(); + WideChar c; + ISet set; + if (charset.univToDesc(wwwSpecial[i], c, set) > 0 && c <= charMax) { + set_[minimumData] += Char(c); + set_[significant] += c; + } + } + } + + for (i = 0; i < nQuantity; i++) + quantity_[i] = referenceQuantity_[i]; + for (i = 0; i < 3; i++) + standardFunctionValid_[i] = 0; +} + +Syntax::~Syntax() {} + +void Syntax::addNameCharacters(const ISet &set) +{ + ISetIter iter(set); + Char min, max; + while (iter.next(min, max)) { + set_[nmchar].addRange(min, max); + set_[significant].addRange(min, max); + categoryTable_.setRange(min, max, otherNameCategory); + } +} + +void Syntax::addNameStartCharacters(const ISet &set) +{ + ISetIter iter(set); + Char min, max; + while (iter.next(min, max)) { + set_[nameStart].addRange(min, max); + set_[significant].addRange(min, max); + categoryTable_.setRange(min, max, nameStartCategory); + } +} + +void Syntax::addSubst(Char lc, Char uc) +{ + subst(lc, uc); +} + +void Syntax::setStandardFunction(StandardFunction f, Char c) +{ + standardFunction_[f] = c; + standardFunctionValid_[f] = 1; + set_[minimumData] += c; + set_[s] += c; + categoryTable_.setChar(c, sCategory); + set_[functionChar] += c; + set_[significant] += c; + switch (f) { + case fSPACE: + set_[blank] += c; + break; + case fRE: + case fRS: + break; + } +} + +void Syntax::enterStandardFunctionNames() +{ + static Syntax::ReservedName name[3] = { + rRE, rRS, rSPACE + }; + for (int i = 0; i < 3; i++) + if (standardFunctionValid_[i]) + functionTable_.insert(reservedName(name[i]), standardFunction_[i]); +} + +void Syntax::setDelimGeneral(int i, const StringC &str) +{ + delimGeneral_[i] = str; + for (size_t j = 0; j < str.size(); j++) + set_[significant] += str[j]; +} + +void Syntax::addDelimShortref(const StringC &str, const CharsetInfo &charset) +{ + if (str.size() == 1 && str[0] != charset.execToDesc('B') && !isB(str[0])) + delimShortrefSimple_.add(str[0]); + else + delimShortrefComplex_.push_back(str); + for (size_t i = 0; i < str.size(); i++) + set_[significant] += str[i]; +} + +void Syntax::addDelimShortrefs(const ISet &shortrefChars, + const CharsetInfo &charset) +{ + ISetIter blankIter(set_[blank]); + Char min, max; + StringC specialChars; + while (blankIter.next(min, max)) { + do { + specialChars += min; + } while (min++ != max); + } + specialChars += charset.execToDesc('B'); + const ISet *simpleCharsPtr = &shortrefChars; + ISet simpleChars; + for (size_t i = 0; i < specialChars.size(); i++) + if (shortrefChars.contains(specialChars[i])) { + if (simpleCharsPtr != &simpleChars) { + simpleChars = shortrefChars; + simpleCharsPtr = &simpleChars; + } + simpleChars.remove(specialChars[i]); + } + ISetIter iter(*simpleCharsPtr); + while (iter.next(min, max)) { + delimShortrefSimple_.addRange(min, max); + set_[significant].addRange(min, max); + } +} + +void Syntax::addFunctionChar(const StringC &str, FunctionClass fun, Char c) +{ + switch (fun) { + case cFUNCHAR: + break; + case cSEPCHAR: + set_[s] += c; + categoryTable_.setChar(c, sCategory); + set_[blank] += c; + set_[sepchar] += c; + break; + case cMSOCHAR: + multicode_ = 1; + if (!hasMarkupScanTable_) { + markupScanTable_ = XcharMap(MarkupScan::normal); + hasMarkupScanTable_ = 1; + } + markupScanTable_.setChar(c, MarkupScan::out); + break; + case cMSICHAR: + // don't need to do anything special if we just have MSICHARs + if (!hasMarkupScanTable_) { + markupScanTable_ = XcharMap(MarkupScan::normal); + hasMarkupScanTable_ = 1; + } + markupScanTable_.setChar(c, MarkupScan::in); + break; + case cMSSCHAR: + multicode_ = 1; + if (!hasMarkupScanTable_) { + markupScanTable_ = XcharMap(MarkupScan::normal); + hasMarkupScanTable_ = 1; + } + markupScanTable_.setChar(c, MarkupScan::suppress); + break; + } + set_[functionChar] += c; + set_[significant] += c; + functionTable_.insert(str, c); +} + +void Syntax::setName(int i, const StringC &str) +{ + names_[i] = str; + nameTable_.insert(str, i); +} + +void Syntax::setNamecaseGeneral(Boolean b) +{ + namecaseGeneral_ = b; + generalSubst_ = b ? &upperSubst_ : &identitySubst_; +} + +void Syntax::setNamecaseEntity(Boolean b) +{ + namecaseEntity_ = b; + entitySubst_ = b ? &upperSubst_ : &identitySubst_; +} + +void Syntax::subst(Char from, Char to) +{ + upperSubst_.addSubst(from, to); +} + +void Syntax::addShunchar(Char c) +{ + shunchar_.add(c); +} + +Boolean Syntax::lookupReservedName(const StringC &str, + ReservedName *result) const +{ + const int *tem = nameTable_.lookup(str); + if (tem) { + *result = ReservedName(*tem); + return 1; + } + else + return 0; +} + +Boolean Syntax::lookupFunctionChar(const StringC &name, Char *result) const +{ + const Char *p = functionTable_.lookup(name); + if (p) { + *result = *p; + return 1; + } + else + return 0; +} + +#ifdef __GNUG__ +typedef HashTableIter Dummy_HashTableIter_StringC_Char; +#endif + +HashTableIter Syntax::functionIter() const +{ + return HashTableIter(functionTable_); +} + +Boolean Syntax::charFunctionName(Char c, const StringC *&name) const +{ + HashTableIter iter(functionTable_); + const Char *cp; + while (iter.next(name, cp)) + if (*cp == c) + return 1; + return 0; +} + +Boolean Syntax::isValidShortref(const StringC &str) const +{ + if (str.size() == 1 && delimShortrefSimple_.contains(str[0])) + return 1; + for (size_t i = 0; i < delimShortrefComplex_.size(); i++) + if (str == delimShortrefComplex_[i]) + return 1; + return 0; +} + +void Syntax::implySgmlChar(const Sd &sd) + +{ + const CharsetInfo &internalCharset = sd.internalCharset(); + internalCharset.getDescSet(set_[sgmlChar]); + ISet invalid; + checkSgmlChar(sd, 0, 0, invalid); + ISetIter iter(invalid); + WideChar min, max; + while (iter.next(min, max)) { + do { + if (min <= charMax) + set_[sgmlChar].remove(Char(min)); + } while (min++ != max); + } +} + +void Syntax::checkSgmlChar(const Sd &sd, + const ::SP_NAMESPACE_SCOPE Syntax *otherSyntax, + Boolean invalidUseDocumentCharset, + ISet &invalid) const +{ + ISetIter iter(shunchar_); + Char min, max; + while (iter.next(min, max)) { + if (min <= max) { + do { + Char c; + if (!sd.internalCharsetIsDocCharset()) { + UnivChar univ; + WideChar tem; + ISet set; + if (sd.docCharset().descToUniv(min, univ) + && sd.internalCharset().univToDesc(univ, tem, set) + && tem <= charMax) + c = Char(tem); + else { + const PublicId *base; + StringC lit; + Number n; + CharsetDeclRange::Type type; + // If it's a declared but unknown character, + // then it can't be significant, + if (invalidUseDocumentCharset + && sd.docCharsetDecl().getCharInfo(min, + base, + type, + n, + lit) + && type != CharsetDeclRange::unused) + invalid += min; + continue; + } + } + else + c = min; + if (!set_[significant].contains(c) + && (!otherSyntax || !otherSyntax->set_[significant].contains(c)) + && set_[sgmlChar].contains(c)) + invalid += invalidUseDocumentCharset ? min : c; + } while (min++ != max); + } + } + if (shuncharControls_) { + UnivChar i; + const CharsetInfo &charset = invalidUseDocumentCharset ? sd.docCharset() : sd.internalCharset(); + for (i = 0; i < 32; i++) + checkUnivControlChar(i, charset, otherSyntax, invalid); + for (i = 127; i < 160; i++) + checkUnivControlChar(i, charset, otherSyntax, invalid); + } +} + +void Syntax::checkUnivControlChar(UnivChar univChar, + const CharsetInfo &internalCharset, + const ::SP_NAMESPACE_SCOPE Syntax *otherSyntax, + ISet &invalid) const +{ + WideChar c; + ISet set; + switch (internalCharset.univToDesc(univChar, c, set)) { + case 0: + break; + case 1: + set += c; + // fall through + default: + { + ISetIter iter(set); + WideChar min, max; + while (iter.next(min, max)) { + do { + if (min > charMax) + break; + Char ch = Char(min); + if (!set_[significant].contains(ch) + && (!otherSyntax + || !otherSyntax->set_[significant].contains(ch)) + && set_[sgmlChar].contains(ch)) + invalid += ch; + } while (min++ != max); + } + } + } +} + +StringC Syntax::rniReservedName(ReservedName i) const +{ + StringC result = delimGeneral(dRNI); + result += reservedName(i); + return result; +} + +const SubstTable &Syntax::upperSubstTable() const +{ + return upperSubst_; +} + +const StringC &Syntax::peroDelim() const +{ + return delimGeneral(dPERO); +} + +Boolean Syntax::isHexDigit(Xchar c) const +{ + switch (categoryTable_[c]) { + case digitCategory: + return 1; + case nameStartCategory: + break; + default: + return 0; + } + return set_[hexDigit].contains(Char(c)); +} + +void Syntax::addEntity(const StringC &name, Char c) +{ + entityNames_.push_back(name); + entityChars_ += c; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Text.cxx b/lib/Text.cxx new file mode 100644 index 0000000..d2dc2c5 --- /dev/null +++ b/lib/Text.cxx @@ -0,0 +1,433 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Text.h" +// for memcmp() +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Text::Text() +{ +} + +Text::~Text() +{ +} + +void Text::addChar(Char c, const Location &loc) +{ + if (items_.size() == 0 + || items_.back().type != TextItem::data + || loc.origin().pointer() != items_.back().loc.origin().pointer() + || loc.index() != (items_.back().loc.index() + + (chars_.size() - items_.back().index))) { + items_.resize(items_.size() + 1); + items_.back().loc = loc; + items_.back().type = TextItem::data; + items_.back().index = chars_.size(); + } + chars_ += c; +} + +void Text::addChars(const Char *p, size_t length, const Location &loc) +{ + if (items_.size() == 0 + || items_.back().type != TextItem::data + || loc.origin().pointer() != items_.back().loc.origin().pointer() + || loc.index() != (items_.back().loc.index() + + (chars_.size() - items_.back().index))) { + items_.resize(items_.size() + 1); + items_.back().loc = loc; + items_.back().type = TextItem::data; + items_.back().index = chars_.size(); + } + chars_.append(p, length); +} + +void Text::addCdata(const StringC &str, + const ConstPtr &origin) +{ + addSimple(TextItem::cdata, Location(origin, 0)); + chars_.append(str.data(), str.size()); +} + +void Text::addSdata(const StringC &str, + const ConstPtr &origin) +{ + addSimple(TextItem::sdata, Location(origin, 0)); + chars_.append(str.data(), str.size()); +} + +void Text::addNonSgmlChar(Char c, const Location &loc) +{ + addSimple(TextItem::nonSgml, loc); + chars_ += c; +} + +void Text::addCharsTokenize(const Char *str, size_t n, const Location &loc, + Char space) +{ + Location loci(loc); + // FIXME speed this up + for (size_t i = 0; i < n; loci += 1, i++) { + if (str[i] == space && (size() == 0 || lastChar() == space)) + ignoreChar(str[i], loci); + else + addChar(str[i], loci); + } +} + +void Text::tokenize(Char space, Text &text) const +{ + TextIter iter(*this); + TextItem::Type type; + const Char *p; + size_t n; + const Location *loc; + while (iter.next(type, p, n, loc)) { + switch (type) { + case TextItem::data: + text.addCharsTokenize(p, n, *loc, space); + break; + case TextItem::sdata: + case TextItem::cdata: + { + text.addEntityStart(*loc); + text.addCharsTokenize(p, n, *loc, space); + Location tem(*loc); + tem += n; + text.addEntityEnd(tem); + } + break; + case TextItem::ignore: + text.ignoreChar(*p, *loc); + break; + default: + text.addSimple(type, *loc); + break; + } + } + if (text.size() > 0 && text.lastChar() == space) + text.ignoreLastChar(); +} + +void Text::addSimple(TextItem::Type type, const Location &loc) +{ + items_.resize(items_.size() + 1); + items_.back().loc = loc; + items_.back().type = type; + items_.back().index = chars_.size(); +} + +void Text::ignoreChar(Char c, const Location &loc) +{ + items_.resize(items_.size() + 1); + items_.back().loc = loc; + items_.back().type = TextItem::ignore; + items_.back().c = c; + items_.back().index = chars_.size(); +} + +void Text::ignoreLastChar() +{ + size_t lastIndex = chars_.size() - 1; + size_t i; + for (i = items_.size() - 1; items_[i].index > lastIndex; i--) + ; + // lastIndex >= items_[i].index + if (items_[i].index != lastIndex) { + items_.resize(items_.size() + 1); + i++; + for (size_t j = items_.size() - 1; j > i; j--) + items_[j] = items_[j - 1]; + items_[i].index = lastIndex; + items_[i].loc = items_[i - 1].loc; + items_[i].loc += lastIndex - items_[i - 1].index; + } + + items_[i].c = chars_[chars_.size() - 1]; + items_[i].type = TextItem::ignore; + for (size_t j = i + 1; j < items_.size(); j++) + items_[j].index = lastIndex; + chars_.resize(chars_.size() - 1); +} + +// All characters other than spaces are substed. + +void Text::subst(const SubstTable &table, Char space) +{ + for (size_t i = 0; i < items_.size(); i++) + if (items_[i].type == TextItem::data) { + size_t lim = (i + 1 < items_.size() + ? items_[i + 1].index + : chars_.size()); + size_t j; + for (j = items_[i].index; j < lim; j++) { + Char c = chars_[j]; + if (c != space && c != table[c]) + break; + } + if (j < lim) { + size_t start = items_[i].index; + StringC origChars(chars_.data() + start, lim - start); + for (; j < lim; j++) + if (chars_[j] != space) + table.subst(chars_[j]); + items_[i].loc = Location(new MultiReplacementOrigin(items_[i].loc, + origChars), + 0); + } + } +} + +void Text::clear() +{ + chars_.resize(0); + items_.clear(); +} + +Boolean Text::startDelimLocation(Location &loc) const +{ + if (items_.size() == 0 || items_[0].type != TextItem::startDelim) + return 0; + loc = items_[0].loc; + return 1; +} + +Boolean Text::endDelimLocation(Location &loc) const +{ + if (items_.size() == 0) + return 0; + switch (items_.back().type) { + case TextItem::endDelim: + case TextItem::endDelimA: + break; + default: + return 0; + } + loc = items_.back().loc; + return 1; +} + +Boolean Text::delimType(Boolean &lita) const +{ + if (items_.size() == 0) + return 0; + switch (items_.back().type) { + case TextItem::endDelim: + lita = 0; + return 1; + case TextItem::endDelimA: + lita = 1; + return 1; + default: + break; + } + return 0; +} + +TextItem::TextItem() +{ +} + +TextItem::~TextItem() +{ +} + +TextItem::TextItem(const TextItem& from) +: type(from.type), + c(from.c), + loc(from.loc), + index(from.index) +{ +} + +TextItem& TextItem::operator=(const TextItem& from) +{ + if (this != &from) { + type = from.type; + c = from.c; + loc = from.loc; + index = from.index; + } + return *this; +} + +void Text::swap(Text &to) +{ + items_.swap(to.items_); + chars_.swap(to.chars_); +} + +TextIter::TextIter(const Text &text) +: ptr_(text.items_.begin()), text_(&text) +{ +} + +const Char *TextIter::chars(size_t &length) const +{ + if (ptr_->type == TextItem::ignore) { + length = 1; + return &ptr_->c; + } + else { + const StringC &chars = text_->chars_; + size_t charsIndex = ptr_->index; + if (ptr_ + 1 != text_->items_.begin() + text_->items_.size()) + length = ptr_[1].index - charsIndex; + else + length = chars.size() - charsIndex; + return chars.data() + charsIndex; + } +} + +Boolean TextIter::next(TextItem::Type &type, const Char *&str, size_t &length, + const Location *&loc) +{ + const TextItem *end = text_->items_.begin() + text_->items_.size(); + if (ptr_ == end) + return 0; + type = ptr_->type; + loc = &ptr_->loc; + if (type == TextItem::ignore) { + str = &ptr_->c; + length = 1; + } + else { + const StringC &chars = text_->chars_; + size_t charsIndex = ptr_->index; + str = chars.data() + charsIndex; + if (ptr_ + 1 != end) + length = ptr_[1].index - charsIndex; + else + length = chars.size() - charsIndex; + } + ptr_++; + return 1; +} + +void Text::insertChars(const StringC &s, const Location &loc) +{ + chars_.insert(0, s); + items_.resize(items_.size() + 1); + for (size_t i = items_.size() - 1; i > 0; i--) { + items_[i] = items_[i - 1]; + items_[i].index += s.size(); + } + items_[0].loc = loc; + items_[0].type = TextItem::data; + items_[0].index = 0; +} + +size_t Text::normalizedLength(size_t normsep) const +{ + size_t n = size(); + n += normsep; + for (size_t i = 0; i < items_.size(); i++) + switch (items_[i].type) { + case TextItem::sdata: + case TextItem::cdata: + n += normsep; + break; + default: + break; + } + return n; +} + +// This is used to determine for a FIXED CDATA attribute +// whether a specified value if equal to the default value. + +Boolean Text::fixedEqual(const Text &text) const +{ + if (string() != text.string()) + return 0; + size_t j = 0; + for (size_t i = 0; i < items_.size(); i++) + switch (items_[i].type) { + case TextItem::cdata: + case TextItem::sdata: + for (;;) { + if (j >= text.items_.size()) + return 0; + if (text.items_[j].type == TextItem::nonSgml) + return 0; + if (text.items_[j].type == TextItem::cdata + || text.items_[j].type == TextItem::sdata) + break; + j++; + } + if (text.items_[j].index != items_[i].index + || (text.items_[j].loc.origin()->entityDecl() + != items_[i].loc.origin()->entityDecl())) + return 0; + break; + case TextItem::nonSgml: + for (;;) { + if (j >= text.items_.size()) + return 0; + if (text.items_[j].type == TextItem::cdata + || text.items_[j].type == TextItem::sdata) + return 0; + if (text.items_[j].type == TextItem::nonSgml) + break; + j++; + } + if (text.items_[j].index != items_[i].index) + return 0; + break; + default: + break; + } + for (; j < text.items_.size(); j++) + switch (text.items_[j].type) { + case TextItem::cdata: + case TextItem::sdata: + case TextItem::nonSgml: + return 0; + default: + break; + } + return 1; +} + +Boolean Text::charLocation(size_t ind, const ConstPtr *&origin, Index &index) const +{ + // Find the last item whose index <= ind. + // Invariant: + // indexes < i implies index <= ind + // indexes >= lim implies index > ind + // The first item will always have index 0. + size_t i = 1; + size_t lim = items_.size(); + while (i < lim) { + size_t mid = i + (lim - i)/2; + if (items_[mid].index > ind) + lim = mid; + else + i = mid + 1; + } +#if 0 + for (size_t i = 1; i < items_.size(); i++) + if (items_[i].index > ind) + break; +#endif + i--; + // If items_.size() == 0, then i == lim. + if (i < lim) { + origin = &items_[i].loc.origin(); + index = items_[i].loc.index() + (ind - items_[i].index); + } + return 1; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/TokenMessageArg.cxx b/lib/TokenMessageArg.cxx new file mode 100644 index 0000000..0ee6bc3 --- /dev/null +++ b/lib/TokenMessageArg.cxx @@ -0,0 +1,114 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "TokenMessageArg.h" +#include "MessageBuilder.h" +#include "token.h" +#include "ParserMessages.h" +#include "Mode.h" +#include "ModeInfo.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +TokenMessageArg::TokenMessageArg(Token token, Mode mode, + const ConstPtr &syntax, + const ConstPtr &sd) +: token_(token), mode_(mode), syntax_(syntax), sd_(sd) +{ +} + +MessageArg *TokenMessageArg::copy() const +{ + return new TokenMessageArg(*this); +} + +void TokenMessageArg::append(MessageBuilder &builder) const +{ + // FIXME translate function characters in delimiters into + // &#NAME; form. + if (token_ >= tokenFirstShortref) { + builder.appendFragment(ParserMessages::shortrefDelim); + return; + } + if (token_ == tokenEe) { + builder.appendFragment(ParserMessages::entityEnd); + return; + } + ModeInfo iter(mode_, *sd_); + TokenInfo info; + const MessageFragment *fragment = 0; + while (iter.nextToken(&info)) + if (info.token == token_) { + switch (info.type) { + case TokenInfo::delimType: + case TokenInfo::delimDelimType: + case TokenInfo::delimSetType: + { + const StringC &delim = syntax_->delimGeneral(info.delim1); + builder.appendFragment(ParserMessages::delimStart); + builder.appendChars(delim.data(), delim.size()); +#if 0 + fragment = &ParserMessages::delimEnd; +#endif + } + break; + case TokenInfo::setType: + switch (info.set) { + case Syntax::digit: + fragment = &ParserMessages::digit; + break; + case Syntax::nameStart: + fragment = &ParserMessages::nameStartCharacter; + break; + case Syntax::sepchar: + fragment = &ParserMessages::sepchar; + break; + case Syntax::s: + fragment = &ParserMessages::separator; + break; + case Syntax::nmchar: + fragment = &ParserMessages::nameCharacter; + break; + case Syntax::sgmlChar: + fragment = &ParserMessages::dataCharacter; + break; + case Syntax::minimumData: + fragment = &ParserMessages::minimumDataCharacter; + break; + case Syntax::significant: + fragment = &ParserMessages::significantCharacter; + break; + default: + CANNOT_HAPPEN(); + } + break; + case TokenInfo::functionType: + switch (info.function) { + case Syntax::fRE: + fragment = &ParserMessages::recordEnd; + break; + case Syntax::fRS: + fragment = &ParserMessages::recordStart; + break; + case Syntax::fSPACE: + fragment = &ParserMessages::space; + break; + } + break; + } + break; + } + if (fragment) + builder.appendFragment(*fragment); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/TokenMessageArg.h b/lib/TokenMessageArg.h new file mode 100644 index 0000000..942fb10 --- /dev/null +++ b/lib/TokenMessageArg.h @@ -0,0 +1,39 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef TokenMessageArg_INCLUDED +#define TokenMessageArg_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "MessageArg.h" +#include "types.h" +#include "Mode.h" +#include "Syntax.h" +#include "Sd.h" +#include "Ptr.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class TokenMessageArg : public MessageArg { +public: + TokenMessageArg(Token token, Mode mode, + const ConstPtr &syntax, + const ConstPtr &sd); + MessageArg *copy() const; + void append(MessageBuilder &) const; +private: + Token token_; + Mode mode_; + ConstPtr syntax_; + ConstPtr sd_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not TokenMessageArg_INCLUDED */ diff --git a/lib/TranslateCodingSystem.cxx b/lib/TranslateCodingSystem.cxx new file mode 100644 index 0000000..f2b18aa --- /dev/null +++ b/lib/TranslateCodingSystem.cxx @@ -0,0 +1,209 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#include "TranslateCodingSystem.h" +#include "types.h" +#include "Owner.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class TranslateDecoder : public Decoder { +public: + TranslateDecoder(Decoder *, const ConstPtr > &); + size_t decode(Char *, const char *, size_t, const char **); + Boolean convertOffset(unsigned long &offset) const; +private: + Owner decoder_; + ConstPtr > map_; +}; + +TranslateDecoder::TranslateDecoder(Decoder *decoder, + const ConstPtr > &map) +: Decoder(decoder->minBytesPerChar()), decoder_(decoder), map_(map) +{ +} + + +Boolean TranslateDecoder::convertOffset(unsigned long &offset) const +{ + return decoder_->convertOffset(offset); +} + +size_t TranslateDecoder::decode(Char *to, const char *s, + size_t slen, const char **rest) +{ + size_t n = decoder_->decode(to, s, slen, rest); + for (size_t i = 0; i < n; i++) + to[i] = (*map_)[to[i]]; + return n; +} + +// FIXME set unencodeable handler for underlying encoder + +class TranslateEncoder : public RecoveringEncoder { +public: + TranslateEncoder(Encoder *, const ConstPtr > &map, + Char illegalChar); + void output(const Char *, size_t, OutputByteStream *); + void output(Char *, size_t, OutputByteStream *); + void startFile(OutputByteStream *); +private: + Owner encoder_; + ConstPtr > map_; + Char illegalChar_; + enum { bufSize = 256 }; + Char buf_[bufSize]; +}; + +TranslateEncoder::TranslateEncoder(Encoder *encoder, + const ConstPtr > &map, + Char illegalChar) +: encoder_(encoder), map_(map), illegalChar_(illegalChar) +{ +} + +void TranslateEncoder::startFile(OutputByteStream *sbuf) +{ + encoder_->startFile(sbuf); +} + +void TranslateEncoder::output(const Char *s, size_t n, OutputByteStream *sbuf) +{ + size_t j = 0; + for (; n > 0; s++, n--) { + Char c = (*map_)[*s]; + if (c == illegalChar_) { + if (j > 0) { + encoder_->output(buf_, j, sbuf); + j = 0; + } + handleUnencodable(*s, sbuf); + } + else { + if (j >= bufSize) { + encoder_->output(buf_, j, sbuf); + j = 0; + } + buf_[j++] = c; + } + } + if (j > 0) + encoder_->output(buf_, j, sbuf); +} + +void TranslateEncoder::output(Char *s, size_t n, OutputByteStream *sbuf) +{ + size_t i = 0; + for (;;) { + if (i == n) { + if (n > 0) + encoder_->output(s, n, sbuf); + break; + } + Char c = (*map_)[s[i]]; + if (c == illegalChar_) { + if (i > 0) + encoder_->output(s, i, sbuf); + handleUnencodable(s[i], sbuf); + i++; + s += i; + n -= i; + i = 0; + } + else + s[i++] = c; + } +} + +TranslateCodingSystem::TranslateCodingSystem(const CodingSystem *sub, + const Desc *desc, + const CharsetInfo *charset, + Char illegalChar, + Char replacementChar) +: sub_(sub), + desc_(desc), + charset_(charset), + illegalChar_(illegalChar), + replacementChar_(replacementChar) +{ +} + +Decoder *TranslateCodingSystem::makeDecoder() const +{ + if (decodeMap_.isNull()) { + CharMapResource *map = new CharMapResource(replacementChar_); + *(ConstPtr > *)&decodeMap_ = map; + for (const Desc *d = desc_; d->number != CharsetRegistry::UNREGISTERED; d++) { + Owner iter(CharsetRegistry::makeIter(d->number)); + if (iter) { + WideChar min; + WideChar max; + UnivChar univ; + while (iter->next(min, max, univ)) { + do { + ISet set; + WideChar sysChar; + WideChar count; + int n = charset_->univToDesc(univ, sysChar, set, count); + if (count > (max - min) + 1) + count = (max - min) + 1; + if (n) { + for (WideChar i = 0; i < count; i++) + map->setChar(min + d->add + i, sysChar + i); + } + min += count - 1; + univ += count; + } while (min++ != max); + } + } + } + } + return new TranslateDecoder(sub_->makeDecoder(), decodeMap_); +} + +Encoder *TranslateCodingSystem::makeEncoder() const +{ + if (encodeMap_.isNull()) { + CharMapResource *map = new CharMapResource(illegalChar_); + *(ConstPtr > *)&encodeMap_ = map; + for (const Desc *d = desc_; d->number != CharsetRegistry::UNREGISTERED; d++) { + Owner iter(CharsetRegistry::makeIter(d->number)); + if (iter) { + WideChar min; + WideChar max; + UnivChar univ; + while (iter->next(min, max, univ)) { + do { + ISet set; + WideChar sysChar; + WideChar count; + int n = charset_->univToDesc(univ, sysChar, set, count); + if (count > (max - min) + 1) + count = (max - min) + 1; + if (n) { + for (WideChar i = 0; i < count; i++) + map->setChar(sysChar + i, min + d->add + i); + } + min += count - 1; + univ += count; + } while (min++ != max); + } + } + } + } + return new TranslateEncoder(sub_->makeEncoder(), encodeMap_, illegalChar_); +} + +unsigned TranslateCodingSystem::fixedBytesPerChar() const +{ + return sub_->fixedBytesPerChar(); +} + +#ifdef SP_NAMESPACE +} +#endif + diff --git a/lib/Trie.h b/lib/Trie.h new file mode 100644 index 0000000..6b4f141 --- /dev/null +++ b/lib/Trie.h @@ -0,0 +1,70 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Trie_INCLUDED +#define Trie_INCLUDED 1 + +#include +#include "types.h" +#include "Boolean.h" +#include "Vector.h" +#include "CopyOwner.h" +#include "Priority.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class BlankTrie; + +class Trie { +public: + Trie() : next_(0), nCodes_(0) { } + Trie(const Trie &); + ~Trie(); + Trie &operator=(const Trie &); + const Trie *next(int i) const { return &next_[i]; } + Boolean hasNext() const { return next_ != 0; } + Token token() const { return token_; } + int tokenLength() const { return tokenLength_; } + const BlankTrie *blank() const; + Boolean includeBlanks() const { + return Priority::isBlank(priority_); + } + friend class TrieBuilder; +private: + Trie *next_; + int nCodes_; + unsigned short token_; + unsigned char tokenLength_; + Priority::Type priority_; + CopyOwner blank_; +}; + +class BlankTrie : public Trie { +public: + BlankTrie() { } + Boolean codeIsBlank(EquivCode c) const { return codeIsBlank_[c]; } + // maximum number of blanks to scan (minimum is 0) + size_t maxBlanksToScan() const { return maxBlanksToScan_; } + // length to add to tokenLengths in this trie (for those > 0). + int additionalLength() const { return additionalLength_; } + BlankTrie *copy() const { return new BlankTrie(*this); } +private: + unsigned char additionalLength_; + size_t maxBlanksToScan_; + Vector codeIsBlank_; + friend class TrieBuilder; +}; + +inline +const BlankTrie *Trie::blank() const +{ + return blank_.pointer(); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Trie_INCLUDED */ diff --git a/lib/TrieBuilder.cxx b/lib/TrieBuilder.cxx new file mode 100644 index 0000000..37dbcd2 --- /dev/null +++ b/lib/TrieBuilder.cxx @@ -0,0 +1,252 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "types.h" +#include "macros.h" +#include "StringOf.h" +#include "Trie.h" +#include "TrieBuilder.h" +#include "Priority.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Trie::~Trie() +{ + if (next_) + delete [] next_; +} + +Trie::Trie(const Trie &t) +: nCodes_(t.nCodes_), + token_(t.token_), + tokenLength_(t.tokenLength_), + priority_(t.priority_), + blank_(t.blank_) +{ + if (t.next_) { + next_ = new Trie[nCodes_]; + for (int i = 0; i < nCodes_; i++) + next_[i] = t.next_[i]; + } + else + next_ = 0; +} + +Trie &Trie::operator=(const Trie &t) +{ + if (next_) + delete [] next_; + nCodes_ = t.nCodes_; + token_ = t.token_; + tokenLength_ = t.tokenLength_; + priority_ = t.priority_; + blank_ = t.blank_; + if (t.next_) { + next_ = new Trie[nCodes_]; + for (int i = 0; i < nCodes_; i++) + next_[i] = t.next_[i]; + } + else + next_ = 0; + return *this; +} + +TrieBuilder::TrieBuilder(int nCodes) +: nCodes_(nCodes), root_(new Trie) +{ + root_->token_ = 0; + root_->tokenLength_ = 0; + root_->priority_ = Priority::data; + root_->nCodes_ = nCodes; +} + +void TrieBuilder::recognize(const String &chars, + Token t, + Priority::Type priority, + TokenVector &ambiguities) +{ + setToken(extendTrie(root_.pointer(), chars), chars.size(), t, priority, + ambiguities); +} + +void TrieBuilder::recognize(const String &chars, + const String &set, + Token t, + Priority::Type priority, + TokenVector &ambiguities) +{ + Trie *trie = extendTrie(root_.pointer(), chars); + + for (size_t i = 0; i < set.size(); i++) + setToken(forceNext(trie, set[i]), chars.size() + 1, t, priority, + ambiguities); +} + +void TrieBuilder::recognizeB(const String &chars, + int bSequenceLength, + size_t maxBlankSequence, + const String &blankCodes, + const String &chars2, + Token token, + TokenVector &ambiguities) +{ + doB(extendTrie(root_.pointer(), chars), + chars.size(), + bSequenceLength, + maxBlankSequence, + blankCodes, + chars2, + token, + Priority::blank(bSequenceLength), + ambiguities); +} + +void TrieBuilder::recognizeEE(EquivCode code, Token t) +{ + Trie *trie = forceNext(root_.pointer(), code); + trie->tokenLength_ = 0; // it has length 0 in the buffer + trie->token_ = t; + trie->priority_ = Priority::data; +} + +void TrieBuilder::doB(Trie *trie, + int tokenLength, + int minBLength, + size_t maxLength, + const String &blankCodes, + const String &chars2, + Token token, + Priority::Type pri, + TokenVector &ambiguities) +{ + if (minBLength == 0 && trie->next_ == 0) { + if (!trie->blank_) { + BlankTrie *b = new BlankTrie; + trie->blank_ = b; + b->maxBlanksToScan_ = maxLength; + b->additionalLength_ = tokenLength; + b->codeIsBlank_.assign(nCodes_, 0); + for (size_t i = 0; i < blankCodes.size(); i++) + b->codeIsBlank_[blankCodes[i]] = 1; + b->tokenLength_ = 0; + b->token_ = 0; + b->priority_ = Priority::data; + b->nCodes_ = nCodes_; + } + else { + // A B sequence is not allowed to be adjacent to a character + // that can occur in a blank sequence, so maxLength will be + // the same at a node, no matter how we got there. + ASSERT(trie->blank_->maxBlanksToScan_ == maxLength); + ASSERT(trie->blank_->additionalLength_ == tokenLength); + } + if (chars2.size() == 0) + setToken(trie, tokenLength, token, pri, ambiguities); + else + setToken(extendTrie(trie->blank_.pointer(), chars2), + chars2.size(), + token, + pri, + ambiguities); + } + else { + if (minBLength == 0) + setToken(extendTrie(trie, chars2), tokenLength + chars2.size(), + token, pri, ambiguities); + for (size_t i = 0; i < blankCodes.size(); i++) + doB(forceNext(trie, blankCodes[i]), + tokenLength + 1, + minBLength == 0 ? 0 : minBLength - 1, + maxLength - 1, + blankCodes, + chars2, + token, + pri, + ambiguities); + } +} + +Trie *TrieBuilder::extendTrie(Trie *trie, const String &s) +{ + for (size_t i = 0; i < s.size(); i++) + trie = forceNext(trie, s[i]); + return trie; +} + +void TrieBuilder::setToken(Trie *trie, + int tokenLength, + Token token, + Priority::Type pri, + TokenVector &ambiguities) +{ + if (tokenLength > trie->tokenLength_ + || (tokenLength == trie->tokenLength_ + && pri > trie->priority_)) { + trie->tokenLength_ = tokenLength; + trie->token_ = token; + trie->priority_ = pri; + } + else if (trie->tokenLength_ == tokenLength + && trie->priority_ == pri + && trie->token_ != token + && trie->token_ != 0) { + ambiguities.push_back(Token(trie->token_)); + ambiguities.push_back(token); + } + if (trie->hasNext()) { + for (int i = 0; i < nCodes_; i++) + setToken(&trie->next_[i], tokenLength, token, pri, ambiguities); + } +} + +void TrieBuilder::copyInto(Trie *into, const Trie *from, int additionalLength) +{ + if (from->token_ != 0) { + TokenVector ambiguities; + setToken(into, from->tokenLength_ + additionalLength, from->token_, + from->priority_, ambiguities); + ASSERT(ambiguities.size() == 0); + } + if (from->hasNext()) + for (int i = 0; i < nCodes_; i++) + copyInto(forceNext(into, i), &from->next_[i], additionalLength); +} + +Trie *TrieBuilder::forceNext(Trie *trie, EquivCode c) +{ + if (!trie->hasNext()) { + trie->next_ = new Trie[nCodes_]; + if (trie->blank_) { + trie->blank_->additionalLength_ += 1; + trie->blank_->maxBlanksToScan_ -= 1; + } + Owner blankOwner(trie->blank_.extract()); + const BlankTrie *b = blankOwner.pointer(); + for (int i = 0; i < nCodes_; i++) { + Trie *p = &trie->next_[i]; + if (b && b->codeIsBlank(i)) + trie->next_[i].blank_ = (blankOwner + ? blankOwner.extract() + : new BlankTrie(*b)); + p->token_ = trie->token_; + p->tokenLength_ = trie->tokenLength_; + p->priority_ = trie->priority_; + p->nCodes_ = nCodes_; + } + if (b) + // -1 because 1 was added above + copyInto(trie, b, b->additionalLength_ - 1); + } + return &trie->next_[c]; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/TrieBuilder.h b/lib/TrieBuilder.h new file mode 100644 index 0000000..02bfd37 --- /dev/null +++ b/lib/TrieBuilder.h @@ -0,0 +1,70 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef TrieBuilder_INCLUDED +#define TrieBuilder_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "types.h" +#include "StringOf.h" +#include "Owner.h" +#include "Trie.h" +#include "Vector.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class TrieBuilder { +public: + typedef Vector TokenVector; + TrieBuilder(int nCodes); + void recognize(const String &chars, + Token t, + Priority::Type pri, + TokenVector &ambiguities); + void recognize(const String &chars, + const String &set, + Token t, + Priority::Type pri, + TokenVector &ambiguities); + // recognize a delimiter with a blank sequence + void recognizeB(const String &chars, + int bSequenceLength, // >= 1 + size_t maxBlankSequenceLength, + const String &blankCodes, + const String &chars2, + Token t, + TokenVector &ambiguities); + void recognizeEE(EquivCode code, Token t); + Trie *extractTrie() { return root_.extract(); } +private: + TrieBuilder(const TrieBuilder &); // undefined + void operator=(const TrieBuilder &); // undefined + void doB(Trie *trie, + int tokenLength, + int minBLength, + size_t maxLength, + const String &blankCodes, + const String &chars2, + Token token, + Priority::Type pri, + TokenVector &ambiguities); + Trie *extendTrie(Trie *, const String &); + void setToken(Trie *trie, int tokenLength, Token token, Priority::Type pri, + TokenVector &ambiguities); + + Trie *forceNext(Trie *trie, EquivCode); + void copyInto(Trie *, const Trie *, int); + + int nCodes_; + Owner root_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not TrieBuilder_INCLUDED */ diff --git a/lib/TypeId.cxx b/lib/TypeId.cxx new file mode 100644 index 0000000..677f499 --- /dev/null +++ b/lib/TypeId.cxx @@ -0,0 +1,28 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "TypeId.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +int TypeId::isA(TypeId ti) const +{ + if (*this == ti) + return 1; + for (const void *const *p = bases_; *p; p++) + if (TypeId((const void *const *)*p).isA(ti)) + return 1; + return 0; +} + +int TypeId::canCast(TypeId to, TypeId from) const +{ + return isA(to) && to.isA(from); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/URLStorage.cxx b/lib/URLStorage.cxx new file mode 100644 index 0000000..05de97e --- /dev/null +++ b/lib/URLStorage.cxx @@ -0,0 +1,814 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +// FIXME This implementation won't work on an EBCDIC machine. + +#include "splib.h" +#ifdef WINSOCK +#include +#define readsocket(s, p, n) ::recv(s, p, n, 0) +#define writesocket(s, p, n) ::send(s, p, n, 0) +#define errnosocket (WSAGetLastError()) +#define SocketMessageArg(n) WinsockMessageArg(n) +#define SOCKET_EINTR (WSAEINTR) +#define SP_HAVE_SOCKET +#else +#ifdef SP_HAVE_SOCKET +#include +#include +#include +#include +#include +#include +#ifdef SP_INCLUDE_UNISTD_H +#include +#endif + +#ifdef SP_INCLUDE_OSFCN_H +#include +#endif + +#ifdef SP_DECLARE_H_ERRNO +extern int h_errno; +#endif + +typedef int SOCKET; +#define SOCKET_ERROR (-1) +#define INVALID_SOCKET (-1) +#define SOCKET_EINTR (EINTR) +#define closesocket(s) close(s) +#define writesocket(fd, p, n) ::write(fd, p, n) +#define readsocket(s, p, n) ::read(s, p, n) +#define errnosocket (errno) +#define SocketMessageArg(n) ErrnoMessageArg(n) +#include "ErrnoMessageArg.h" + +#endif /* SP_HAVE_SOCKET */ + +#endif /* not WINSOCK */ + +#include "URLStorage.h" +#include "URLStorageMessages.h" +#include "RewindStorageObject.h" +#include "UnivCharsetDesc.h" +#include "MessageArg.h" +#include "MessageBuilder.h" +#include "macros.h" + +#include +#include +#include +#include +#include +#include + + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +static UnivCharsetDesc::Range range = { 0, 128, 0 }; +static CharsetInfo iso646Charset(UnivCharsetDesc(&range, 1)); + +#ifdef SP_HAVE_SOCKET + +typedef enum { + HTTP_OK , + HTTP_REDIRECT , + HTTP_ERROR +} HTTP_RESPONSE_TYPE ; + +class HttpSocketStorageObject : public RewindStorageObject { +public: + HttpSocketStorageObject(SOCKET fd, Boolean mayRewind, const StringC &hostStr); + ~HttpSocketStorageObject(); + HTTP_RESPONSE_TYPE open(const String &host, + unsigned short port, + const String &path, + Messenger &, + char[]); + Boolean read(char *buf, size_t bufSize, Messenger &mgr, size_t &nread); + Boolean seekToStart(Messenger &); + static SOCKET openHttp(const String &host, + unsigned short port, + const StringC &hostStr, + Messenger &mgr); +private: + HttpSocketStorageObject(const HttpSocketStorageObject &); // undefined + void operator=(const HttpSocketStorageObject &); // undefined + HTTP_RESPONSE_TYPE readHeader(Messenger &, char[]); + Boolean readLine(Messenger &mgr, String &line, String &leftOver); + static Boolean parseStatus(const char *&ptr, int &val); + StringC hostStr_; + String path_; + Boolean eof_; + SOCKET fd_; +}; + +#ifdef WINSOCK + +class WinsockMessageArg : public MessageArg { +public: + WinsockMessageArg(int n) : n_(n) { } + MessageArg *copy() const { return new WinsockMessageArg(*this); } + void append(MessageBuilder &) const; +private: + int n_; +}; + +void WinsockMessageArg::append(MessageBuilder &builder) const +{ + // I can't figure out how to get a string associated + // with this error number. FormatMessage() doesn't seem + // to work. + builder.appendFragment(URLStorageMessages::winsockErrorNumber); + builder.appendNumber(n_); +} + +class WinsockIniter { +public: + WinsockIniter(); + ~WinsockIniter(); + Boolean init(Messenger &mgr); +private: + Boolean inited_; + Boolean initSuccess_; +}; + +static WinsockIniter winsockIniter; + +WinsockIniter::WinsockIniter() +: inited_(0) +{ +} + +WinsockIniter::~WinsockIniter() +{ + if (inited_ && initSuccess_) + (void)WSACleanup(); +} + +Boolean WinsockIniter::init(Messenger &mgr) +{ + if (!inited_) { + inited_ = 1; + initSuccess_ = 0; + WORD version = MAKEWORD(1, 1); + WSADATA wsaData; + int err = WSAStartup(version, &wsaData); + if (err) + mgr.message(URLStorageMessages::winsockInitialize, + WinsockMessageArg(err)); + else if (LOBYTE(wsaData.wVersion) != 1 + || HIBYTE(wsaData.wVersion) != 1) { + mgr.message(URLStorageMessages::winsockVersion); + WSACleanup(); + } + else + initSuccess_ = 1; + } + return initSuccess_; +} + +#endif /* WINSOCK */ + +#endif /* SP_HAVE_SOCKET */ + +URLStorageManager::URLStorageManager(const char *type) +: type_(type), IdStorageManager(&iso646Charset) +{ +} + +const char *URLStorageManager::type() const +{ + return type_; +} + +Boolean URLStorageManager::guessIsId(const StringC &id, + const CharsetInfo &charset) const +{ + if (id.size() < 8) + return 0; + size_t i = 0; + for (const char *s = "http://"; *s; s++, i++) + if (id[i] != charset.execToDesc(*s) + && (!islower(*s) || id[i] != charset.execToDesc(toupper(*s)))) + return 0; + return 1; +} + +inline int strdiff(const char* str, char* buf) { + if ( ! *buf ) + return 1 ; + if ( strlen(buf) <= strlen (str) ) + return 2 ; +// if ( strncasecmp(buf, str, strlen(str)) ) + for ( int i = 0; i < strlen(str); ++i) + if ( tolower(buf[i]) != tolower(str[i]) ) + return 3 ; + return 0 ; +} + +StorageObject *URLStorageManager::makeStorageObject(const StringC &specId, + const StringC &baseId, + Boolean, + Boolean mayRewind, + Messenger &mgr, + StringC &id) +{ +#ifdef SP_HAVE_SOCKET + id = specId; + resolveRelative(baseId, id, 0); + if (id.size() < 5 + || (id[0] != 'h' && id[0] != 'H') + || (id[1] != 't' && id[1] != 'T') + || (id[2] != 't' && id[2] != 'T') + || (id[3] != 'p' && id[3] != 'P') + || id[4] != ':') { + mgr.message(URLStorageMessages::onlyHTTP); + return 0; + } + if (id.size() < 7 || id[5] != '/' || id[6] != '/') { + mgr.message(URLStorageMessages::badRelative, + StringMessageArg(id)); + return 0; + } + size_t i = 7; + String host; + while (i < id.size()) { + if (id[i] == '/') + break; + if (id[i] == ':') + break; + host += char(id[i]); + i++; + } + if (host.size() == 0) { + mgr.message(URLStorageMessages::emptyHost, + StringMessageArg(id)); + return 0; + } + unsigned short port; + if (i < id.size() && id[i] == ':') { + i++; + String digits; + while (i < id.size() && id[i] != '/') { + digits += char(id[i]); + i++; + } + if (digits.size() == 0) { + mgr.message(URLStorageMessages::emptyPort, + StringMessageArg(id)); + return 0; + } + digits += '\0'; + char *endptr; + long n = strtol(digits.data(), &endptr, 10); + if (endptr != digits.data() + digits.size() - 1 + || n < 0 + || n > 65535L) { + mgr.message(URLStorageMessages::invalidPort, + StringMessageArg(id)); + return 0; + } + port = (unsigned short)n; + } + else + port = 80; + String path; + if (i < id.size()) { + while (i < id.size() && id[i] != '#') { + path += char(id[i]); + i++; + } + } + + for ( int tries=0; tries<20; ++tries ) { + if (path.size() == 0) + path += '/'; + StringC hostStr; + for (i = 0; i < host.size(); i++) + hostStr += host[i]; + +// Support HTTP redirect but limit number against an infinite loop + + SOCKET fd = HttpSocketStorageObject::openHttp(host, port, hostStr, mgr); + if (fd == INVALID_SOCKET) + return 0; + HttpSocketStorageObject *p + = new HttpSocketStorageObject(fd, mayRewind, hostStr); + char locbuf[256] ; + static String nullStringC("", 0) ; + char* line ; + switch (p->open(host, port, path, mgr, locbuf)) { + case HTTP_OK: + return p ; + case HTTP_REDIRECT: +// (void)closesocket(fd); + delete p ; + + // reassign host, port and path + // and go round the loop again + line = locbuf ; + + if ( strdiff ("location:", line) ) + return 0 ; + line += strlen("location:") ; + + + while ( isspace(*line) ) + ++line ; + + // call ourself recursively with our new URL + + // construct message - there must be a better way even without + // hacking on other source files + { + StringC sline ; + for ( char* x = line; *x; ++x) + sline += (Char)(*x) ; + mgr.message(URLStorageMessages::Redirect, StringMessageArg(sline)) ; + } + + host = nullStringC ; + path = nullStringC ; + port = 0 ; + + if ( strdiff ("http://", line) ) + return 0 ; + line += strlen("http://") ; + + while ( *line != ':' && *line != '/' ) + host += *line++ ; + + if ( *line == ':' ) + while ( isdigit(*++line) ) + port = 10 * port + ( *line - '0' ) ; + else + port = 80 ; + + while ( *line && ! isspace(*line) ) + path += *line++ ; + + break ; + + case HTTP_ERROR: + delete p; + return 0; + } + } + return 0 ; // we were in an infinite redirection loop + +#else /* not SP_HAVE_SOCKET */ + ParentLocationMessenger(mgr).message(URLStorageMessages::notSupported); + return 0; +#endif /* not SP_HAVE_SOCKET */ +} + +Boolean URLStorageManager::resolveRelative(const StringC &baseId, + StringC &id, + Boolean) const +{ + static const char schemeChars[] = + "abcdefghijklmnopqrstuvwxyz" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "01234567879" + "+-."; + size_t i; + // If it has a scheme, it is absolute. + for (i = 0; i < id.size(); i++) { + if (id[i] == ':') { + if (i == 0) + break; + else + return 1; + } + else if (!strchr(schemeChars, id[i])) + break; + } + for (i = 0; i < id.size(); i++) { + if (id[i] != '/') + break; + } + size_t slashCount = i; + if (slashCount > 0) { + Boolean foundSameSlash = 0; + size_t sameSlashPos; + for (size_t j = 0; j < baseId.size(); j++) { + size_t thisSlashCount = 0; + for (size_t k = j; k < baseId.size() && baseId[k] == '/'; k++) + thisSlashCount++; + if (thisSlashCount == slashCount && !foundSameSlash) { + foundSameSlash = 1; + sameSlashPos = j; + } + else if (thisSlashCount > slashCount) + foundSameSlash = 0; + } + if (foundSameSlash) { + StringC tem(baseId.data(), sameSlashPos); + tem += id; + tem.swap(id); + } + } + else { + size_t j; + for (j = baseId.size(); j > 0; j--) + if (baseId[j - 1] == '/') + break; + if (j > 0) { + StringC tem(baseId.data(), j); + tem += id; + tem.swap(id); + } + } + // FIXME remove xxx/../, and /. + return 1; +} + +Boolean URLStorageManager::transformNeutral(StringC &str, Boolean fold, + Messenger &) const +{ + if (fold) + for (size_t i = 0; i < str.size(); i++) { + Char c = str[i]; + if (c <= (unsigned char)-1) + str[i] = tolower(str[i]); + } + return 1; +} + +#ifdef SP_HAVE_SOCKET + +SOCKET HttpSocketStorageObject::openHttp(const String &theHost, + unsigned short port, + const StringC &hostStr, + Messenger &mgr) +{ + String host = theHost; + host += '\0'; + +#ifdef WINSOCK + if (!winsockIniter.init(mgr)) + return INVALID_SOCKET; +#endif + struct sockaddr_in sock; + sock.sin_family = AF_INET; + sock.sin_port = htons(port); + if (isdigit((unsigned char)host[0])) { + unsigned long n = inet_addr(host.data()); + if (n == (unsigned long)-1) { + ParentLocationMessenger(mgr).message(URLStorageMessages::invalidHostNumber, + StringMessageArg(hostStr)); + return INVALID_SOCKET; + } + sock.sin_addr.s_addr = n; + } + else { + struct hostent *hp = gethostbyname(host.data()); + if (!hp) { + const MessageType1 *message; + switch (h_errno) { + case HOST_NOT_FOUND: + message = &URLStorageMessages::hostNotFound; + break; + case TRY_AGAIN: + message = &URLStorageMessages::hostTryAgain; + break; + case NO_RECOVERY: + message = &URLStorageMessages::hostNoRecovery; + break; + case NO_DATA: +#ifdef NO_ADDRESS +#if NO_ADDRESS != NO_DATA + case NO_ADDRESS: +#endif +#endif + message = &URLStorageMessages::hostNoData; + break; + default: +#ifdef WINSOCK + ParentLocationMessenger(mgr).message(URLStorageMessages::hostOtherError, + StringMessageArg(hostStr), + WinsockMessageArg(h_errno)); + return INVALID_SOCKET; +#else + message = &URLStorageMessages::hostUnknownError; + break; +#endif + } + ParentLocationMessenger(mgr).message(*message, + StringMessageArg(hostStr)); + return INVALID_SOCKET; + } + memcpy(&sock.sin_addr, hp->h_addr, hp->h_length); + } + SOCKET fd = socket(PF_INET, SOCK_STREAM, 0); + if (fd == INVALID_SOCKET) { + ParentLocationMessenger(mgr).message(URLStorageMessages::cannotCreateSocket, + SocketMessageArg(errnosocket)); + return INVALID_SOCKET; + } + if (connect(fd, (struct sockaddr *)&sock, sizeof(sock)) == SOCKET_ERROR) { + ParentLocationMessenger(mgr).message(URLStorageMessages::cannotConnect, + StringMessageArg(hostStr), + SocketMessageArg(errnosocket)); + (void)closesocket(fd); + return INVALID_SOCKET; + } + return fd; +} + +HttpSocketStorageObject::HttpSocketStorageObject(SOCKET fd, + Boolean mayRewind, + const StringC &hostStr) + +: RewindStorageObject(mayRewind, 0), hostStr_(hostStr), fd_(fd), eof_(0) +{ +} + +HttpSocketStorageObject::~HttpSocketStorageObject() +{ + if (fd_ != INVALID_SOCKET) + (void)closesocket(fd_); +} + +HTTP_RESPONSE_TYPE HttpSocketStorageObject::open(const String &host, + unsigned short port, + const String &path, + Messenger &mgr, + char locbuf[]) +{ + path_ = path; + String request; + request.append("GET ", 4); + request += path_; + request += ' '; + request.append("HTTP/1.0\r\n", 10); + request.append("Host: ", 6); + if (!isdigit((unsigned char)host[0])) { + request += host; + if (port != 80) { + char portstr[sizeof(unsigned short)*3 + 1]; + sprintf(portstr, "%u", port); + request.append(":", 1); + request.append(portstr, strlen(portstr)); + } + } + request.append("\r\n", 2); + char* http_ua = getenv("SP_HTTP_USER_AGENT") ; + if ( ! http_ua ) + http_ua = "libosp 1.5" ; + request.append("User-Agent: ", 12) ; + request.append(http_ua, strlen(http_ua)) ; + request.append("\r\n", 2); + const char* http_accept = getenv("SP_HTTP_ACCEPT") ; + if ( http_accept ) { + request.append("Accept: ", 8) ; + request.append(http_accept, strlen(http_accept)) ; + request.append("\r\n", 2); + } + request.append("\r\n", 2); + + // FIXME check length of write + if (writesocket(fd_, request.data(), request.size()) == SOCKET_ERROR) { + ParentLocationMessenger(mgr).message(URLStorageMessages::writeError, + StringMessageArg(hostStr_), + SocketMessageArg(errnosocket)); + (void)closesocket(fd_); + fd_ = INVALID_SOCKET; + return HTTP_ERROR ; + } + switch ( readHeader(mgr, locbuf) ) { + case HTTP_OK: + return HTTP_OK ; + case HTTP_REDIRECT: + (void)closesocket(fd_); + return HTTP_REDIRECT ; + case HTTP_ERROR: + (void)closesocket(fd_); + fd_ = INVALID_SOCKET; + return HTTP_ERROR ; + } + return HTTP_ERROR ; +} + +HTTP_RESPONSE_TYPE HttpSocketStorageObject::readHeader(Messenger &mgr, + char locbuf[]) +{ + String buf ; + String leftOver; + if (!readLine(mgr, buf, leftOver)) + return HTTP_ERROR; + buf += '\0'; + const char *ptr = &buf[0]; + int val; + if (!parseStatus(ptr, val)) { + if (buf.size() > 0) + unread(buf.data(), buf.size() - 1); + return HTTP_OK; + } + if (val < 200 || val >= 400) { + StringC reason; + while (*ptr && *ptr != '\n' && *ptr != '\r') { + reason += Char(*ptr); + ptr++; + } + StringC pathStr; + for (size_t i = 0; i < path_.size(); i++) + pathStr += path_[i]; + ParentLocationMessenger(mgr).message(URLStorageMessages::getFailed, + StringMessageArg(hostStr_), + StringMessageArg(pathStr), + StringMessageArg(reason)); + return HTTP_ERROR; + } + for (;;) { + if (!readLine(mgr, buf, leftOver)) + return HTTP_ERROR; + if ( ! strdiff("location:", (char*) buf.data() ) ) { + unsigned int sz = buf.size() > 255 ? 255 : buf.size() ; + strncpy(locbuf, buf.data(), sz) ; + locbuf[sz] = 0 ; + for (int i=0; i &line, + String &leftOver) +{ + line.resize(0); + Boolean hadCr = 0; + Boolean gotLine = 0; + size_t li; + for (li = 0; li < leftOver.size(); li++) { + if (leftOver[li] == '\r') { + if (hadCr) { + gotLine = 1; + break; + } + line += '\r'; + hadCr = 1; + } + else if (leftOver[li] == '\n') { + line += '\n'; + li++; + gotLine = 1; + break; + } + else if (hadCr) { + gotLine = 1; + break; + } + else + line += leftOver[li]; + } + if (gotLine) { + for (size_t i = li; i < leftOver.size(); i++) + leftOver[i - li] = leftOver[i]; + leftOver.resize(leftOver.size() - li); + return 1; + } + leftOver.resize(0); + if (eof_) + return 1; + for (;;) { + char c; + long n; + do { + n = readsocket(fd_, &c, 1); + } while (n < 0 && errnosocket == SOCKET_EINTR); + if (n == 0) { + (void)closesocket(fd_); + eof_ = 1; + return 1; + } + if (n < 0) { + ParentLocationMessenger(mgr).message(URLStorageMessages::readError, + StringMessageArg(hostStr_), + SocketMessageArg(errnosocket)); + (void)closesocket(fd_); + fd_ = INVALID_SOCKET; + return 0; + } + switch (c) { + case '\r': + if (hadCr) { + leftOver += c; + return 1; + } + hadCr = 1; + line += c; + break; + case '\n': + line += c; + return 1; + default: + if (hadCr) { + leftOver += c; + return 1; + } + line += c; + break; + } + } + return 0; // not reached +} + +Boolean HttpSocketStorageObject::read(char *buf, size_t bufSize, Messenger &mgr, + size_t &nread) +{ + if (readSaved(buf, bufSize, nread)) + return 1; + if (fd_ == INVALID_SOCKET || eof_) + return 0; + long n; + do { + n = readsocket(fd_, buf, bufSize); + } while (n < 0 && errnosocket == SOCKET_EINTR); + if (n > 0) { + nread = size_t(n); + saveBytes(buf, nread); + return 1; + } + if (n < 0) { + ParentLocationMessenger(mgr).message(URLStorageMessages::readError, + StringMessageArg(hostStr_), + SocketMessageArg(errnosocket)); + fd_ = INVALID_SOCKET; + } + else { + eof_ = 1; + if (closesocket(fd_) == SOCKET_ERROR) + ParentLocationMessenger(mgr).message(URLStorageMessages::closeError, + StringMessageArg(hostStr_), + SocketMessageArg(errnosocket)); + fd_ = INVALID_SOCKET; + } + return 0; +} + +Boolean HttpSocketStorageObject::seekToStart(Messenger &) +{ + CANNOT_HAPPEN(); + return 0; +} + +#endif /* SP_HAVE_SOCKET */ + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/URLStorageMessages.h b/lib/URLStorageMessages.h new file mode 100644 index 0000000..490b879 --- /dev/null +++ b/lib/URLStorageMessages.h @@ -0,0 +1,241 @@ +// This file was automatically generated from URLStorageMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct URLStorageMessages { + // 2300 + static const MessageType1 emptyHost; + // 2301 + static const MessageType1 badRelative; + // 2302 + static const MessageType1 emptyPort; + // 2303 + static const MessageType1 invalidPort; + // 2304 + static const MessageType1 hostNotFound; + // 2305 + static const MessageType1 hostTryAgain; + // 2306 + static const MessageType1 hostNoRecovery; + // 2307 + static const MessageType1 hostNoData; + // 2308 + static const MessageType2 hostOtherError; + // 2309 + static const MessageType1 hostUnknownError; + // 2310 + static const MessageType1 cannotCreateSocket; + // 2311 + static const MessageType2 cannotConnect; + // 2312 + static const MessageType2 writeError; + // 2313 + static const MessageType2 readError; + // 2314 + static const MessageType2 closeError; + // 2315 + static const MessageType1 invalidHostNumber; + // 2316 + static const MessageType3 getFailed; + // 2317 + static const MessageType0 notSupported; + // 2318 + static const MessageType0 onlyHTTP; + // 2319 + static const MessageType1 winsockInitialize; + // 2320 + static const MessageType0 winsockVersion; + // 2321 + static const MessageFragment winsockErrorNumber; + // 2322 + static const MessageType1 Redirect; +}; +const MessageType1 URLStorageMessages::emptyHost( +MessageType::error, +&libModule, +2300 +#ifndef SP_NO_MESSAGE_TEXT +,"empty host in HTTP URL %1" +#endif +); +const MessageType1 URLStorageMessages::badRelative( +MessageType::error, +&libModule, +2301 +#ifndef SP_NO_MESSAGE_TEXT +,"uncompletable relative HTTP URL %1" +#endif +); +const MessageType1 URLStorageMessages::emptyPort( +MessageType::error, +&libModule, +2302 +#ifndef SP_NO_MESSAGE_TEXT +,"empty port number in HTTP URL %1" +#endif +); +const MessageType1 URLStorageMessages::invalidPort( +MessageType::error, +&libModule, +2303 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid port number in HTTP URL %1" +#endif +); +const MessageType1 URLStorageMessages::hostNotFound( +MessageType::error, +&libModule, +2304 +#ifndef SP_NO_MESSAGE_TEXT +,"host %1 not found" +#endif +); +const MessageType1 URLStorageMessages::hostTryAgain( +MessageType::error, +&libModule, +2305 +#ifndef SP_NO_MESSAGE_TEXT +,"could not resolve host %1 (try again later)" +#endif +); +const MessageType1 URLStorageMessages::hostNoRecovery( +MessageType::error, +&libModule, +2306 +#ifndef SP_NO_MESSAGE_TEXT +,"could not resolve host %1 (unrecoverable error)" +#endif +); +const MessageType1 URLStorageMessages::hostNoData( +MessageType::error, +&libModule, +2307 +#ifndef SP_NO_MESSAGE_TEXT +,"no address record for host name %1" +#endif +); +const MessageType2 URLStorageMessages::hostOtherError( +MessageType::error, +&libModule, +2308 +#ifndef SP_NO_MESSAGE_TEXT +,"could not resolve host %1 (%2)" +#endif +); +const MessageType1 URLStorageMessages::hostUnknownError( +MessageType::error, +&libModule, +2309 +#ifndef SP_NO_MESSAGE_TEXT +,"could not resolve host %1 (unknown error)" +#endif +); +const MessageType1 URLStorageMessages::cannotCreateSocket( +MessageType::error, +&libModule, +2310 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot create socket (%1)" +#endif +); +const MessageType2 URLStorageMessages::cannotConnect( +MessageType::error, +&libModule, +2311 +#ifndef SP_NO_MESSAGE_TEXT +,"error connecting to %1 (%2)" +#endif +); +const MessageType2 URLStorageMessages::writeError( +MessageType::error, +&libModule, +2312 +#ifndef SP_NO_MESSAGE_TEXT +,"error sending request to %1 (%2)" +#endif +); +const MessageType2 URLStorageMessages::readError( +MessageType::error, +&libModule, +2313 +#ifndef SP_NO_MESSAGE_TEXT +,"error receiving from host %1 (%2)" +#endif +); +const MessageType2 URLStorageMessages::closeError( +MessageType::error, +&libModule, +2314 +#ifndef SP_NO_MESSAGE_TEXT +,"error closing connection to host %1 (%2)" +#endif +); +const MessageType1 URLStorageMessages::invalidHostNumber( +MessageType::error, +&libModule, +2315 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid host number %1" +#endif +); +const MessageType3 URLStorageMessages::getFailed( +MessageType::error, +&libModule, +2316 +#ifndef SP_NO_MESSAGE_TEXT +,"could not get %2 from %1 (reason given was %3)" +#endif +); +const MessageType0 URLStorageMessages::notSupported( +MessageType::error, +&libModule, +2317 +#ifndef SP_NO_MESSAGE_TEXT +,"URL not supported by this version" +#endif +); +const MessageType0 URLStorageMessages::onlyHTTP( +MessageType::error, +&libModule, +2318 +#ifndef SP_NO_MESSAGE_TEXT +,"only HTTP scheme supported" +#endif +); +const MessageType1 URLStorageMessages::winsockInitialize( +MessageType::error, +&libModule, +2319 +#ifndef SP_NO_MESSAGE_TEXT +,"could not initialize Windows Sockets (%1)" +#endif +); +const MessageType0 URLStorageMessages::winsockVersion( +MessageType::error, +&libModule, +2320 +#ifndef SP_NO_MESSAGE_TEXT +,"incompatible Windows Sockets version" +#endif +); +const MessageFragment URLStorageMessages::winsockErrorNumber( +&libModule, +2321 +#ifndef SP_NO_MESSAGE_TEXT +,"error number " +#endif +); +const MessageType1 URLStorageMessages::Redirect( +MessageType::warning, +&libModule, +2322 +#ifndef SP_NO_MESSAGE_TEXT +,"URL Redirected to %1" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/URLStorageMessages.msg b/lib/URLStorageMessages.msg new file mode 100644 index 0000000..2f8a357 --- /dev/null +++ b/lib/URLStorageMessages.msg @@ -0,0 +1,29 @@ +# Copyright (c) 1995 James Clark +# See the file COPYING for copying permission. + +# URLStorage message definitions + +=2300 +E1+emptyHost++empty host in HTTP URL %1 +E1+badRelative++uncompletable relative HTTP URL %1 +E1+emptyPort++empty port number in HTTP URL %1 +E1+invalidPort++invalid port number in HTTP URL %1 +E1+hostNotFound++host %1 not found +E1+hostTryAgain++could not resolve host %1 (try again later) +E1+hostNoRecovery++could not resolve host %1 (unrecoverable error) +E1+hostNoData++no address record for host name %1 +E2+hostOtherError++could not resolve host %1 (%2) +E1+hostUnknownError++could not resolve host %1 (unknown error) +E1+cannotCreateSocket++cannot create socket (%1) +E2+cannotConnect++error connecting to %1 (%2) +E2+writeError++error sending request to %1 (%2) +E2+readError++error receiving from host %1 (%2) +E2+closeError++error closing connection to host %1 (%2) +E1+invalidHostNumber++invalid host number %1 +E3+getFailed++could not get %2 from %1 (reason given was %3) +E0+notSupported++URL not supported by this version +E0+onlyHTTP++only HTTP scheme supported +E1+winsockInitialize++could not initialize Windows Sockets (%1) +E0+winsockVersion++incompatible Windows Sockets version ++winsockErrorNumber++error number +W1+Redirect++URL Redirected to %1 diff --git a/lib/URLStorageMessages.rc b/lib/URLStorageMessages.rc new file mode 100644 index 0000000..4caaf57 --- /dev/null +++ b/lib/URLStorageMessages.rc @@ -0,0 +1,26 @@ +STRINGTABLE +BEGIN + 2300, "empty host in HTTP URL %1" + 2301, "uncompletable relative HTTP URL %1" + 2302, "empty port number in HTTP URL %1" + 2303, "invalid port number in HTTP URL %1" + 2304, "host %1 not found" + 2305, "could not resolve host %1 (try again later)" + 2306, "could not resolve host %1 (unrecoverable error)" + 2307, "no address record for host name %1" + 2308, "could not resolve host %1 (%2)" + 2309, "could not resolve host %1 (unknown error)" + 2310, "cannot create socket (%1)" + 2311, "error connecting to %1 (%2)" + 2312, "error sending request to %1 (%2)" + 2313, "error receiving from host %1 (%2)" + 2314, "error closing connection to host %1 (%2)" + 2315, "invalid host number %1" + 2316, "could not get %2 from %1 (reason given was %3)" + 2317, "URL not supported by this version" + 2318, "only HTTP scheme supported" + 2319, "could not initialize Windows Sockets (%1)" + 2320, "incompatible Windows Sockets version" + 2321, "error number " + 2322, "URL Redirected to %1" +END diff --git a/lib/UTF16CodingSystem.cxx b/lib/UTF16CodingSystem.cxx new file mode 100644 index 0000000..27b523b --- /dev/null +++ b/lib/UTF16CodingSystem.cxx @@ -0,0 +1,130 @@ +// Copyright (c) 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MULTI_BYTE + +#include "UTF16CodingSystem.h" +#include "constant.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class UTF16Decoder : public Decoder { +public: + UTF16Decoder(Boolean lsbFirst); + size_t decode(Char *, const char *, size_t, const char **); +private: + // value for encoding error + enum { invalid = 0xfffd }; + Boolean lsbFirst_; +}; + +class UTF16Encoder : public Encoder { +public: + UTF16Encoder(); + void output(const Char *, size_t, OutputByteStream *); +}; + +Decoder *UTF16CodingSystem::makeDecoder(Boolean lsbFirst) const +{ + return new UTF16Decoder(lsbFirst); +} + +Encoder *UTF16CodingSystem::makeEncoder() const +{ + return new UTF16Encoder; +} + + +UTF16Decoder::UTF16Decoder(Boolean lsbFirst) +: lsbFirst_(lsbFirst) +{ +} + +size_t UTF16Decoder::decode(Char *to, const char *from, + size_t fromLen, const char **rest) +{ + Char *start = to; + const unsigned char *us = (const unsigned char *)from; + for (;;) { + if (fromLen < 2) + break; + Unsigned32 x = lsbFirst_ ? (us[1] << 8) + us[0] + : (us[0] << 8) + us[1]; + if (x < 0xd800 || x > 0xdfff) { + *to++ = x; + us += 2; + fromLen -= 2; + continue; + } + if (x > 0xdbff) { + // FIXME: unpaired RC element + *to++ = invalid; + us += 2; + fromLen -= 2; + continue; + } + if (fromLen < 4) + break; + Unsigned32 y = lsbFirst_ ? (us[3] << 8) + us[2] + : (us[2] << 8) + us[3]; + if (y < 0xd800 || y > 0xdfff) { + // FIXME: unpaired RC element + *to++ = invalid; + *to++ = y; + us += 4; + fromLen -= 4; + continue; + } + if (y < 0xdc00) { + // FIXME: unpaired RC element + *to++ = invalid; + us += 2; + fromLen -= 2; + continue; + } + *to++ = ((x - 0xd800) * 0x400 + (y - 0xdc00)) + 0x10000; + us += 4; + fromLen -= 4; + } + *rest = (char *)us; + return to - start; +} + +UTF16Encoder::UTF16Encoder() +{ +} + +void UTF16Encoder::output(const Char *s, size_t n, OutputByteStream *sb) +{ + for (;n > 0;n--, s++) { + Char c = *s; + if (c < 0x10000) { + sb->sputc((c >> 8) & 0xff); + sb->sputc(c & 0xff); + } + else { + Unsigned32 y = ((c - 0x10000) / 0x400) + 0xd800; + Unsigned32 z = ((c - 0x10000) % 0x400) + 0xdc00; + sb->sputc((y >> 8) & 0xff); + sb->sputc(y & 0xff); + sb->sputc((z >> 8) & 0xff); + sb->sputc(z & 0xff); + } + } +} + +#ifdef SP_NAMESPACE +} +#endif + +#else /* not SP_MULTI_BYTE */ + +#ifndef __GNUG__ +static char non_empty_translation_unit; // sigh +#endif + +#endif /* not SP_MULTI_BYTE */ diff --git a/lib/UTF8CodingSystem.cxx b/lib/UTF8CodingSystem.cxx new file mode 100644 index 0000000..ad5bc2c --- /dev/null +++ b/lib/UTF8CodingSystem.cxx @@ -0,0 +1,282 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MULTI_BYTE + +#include "UTF8CodingSystem.h" +#include "constant.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +enum { + // cmaskN is mask for first byte to test for N byte sequence + cmask1 = 0x80, + cmask2 = 0xe0, + cmask3 = 0xf0, + cmask4 = 0xf8, + cmask5 = 0xfc, + cmask6 = 0xfe, + // cvalN is value of masked first byte of N byte sequence + cval1 = 0x00, + cval2 = 0xc0, + cval3 = 0xe0, + cval4 = 0xf0, + cval5 = 0xf8, + cval6 = 0xfc, + // vmaskN is mask to get value from first byte in N byte sequence + vmask2 = 0x1f, + vmask3 = 0xf, + vmask4 = 0x7, + vmask5 = 0x3, + vmask6 = 0x1, + // minN is minimum legal resulting value for N byte sequence + min2 = 0x80, + min3 = 0x800, + min4 = 0x10000, + min5 = 0x200000, + min6 = 0x4000000, + max6 = 0x7fffffff +}; + +class UTF8Decoder : public Decoder { +public: + UTF8Decoder(); + size_t decode(Char *, const char *, size_t, const char **); + Boolean convertOffset(unsigned long &offset) const; +private: + // value for encoding error + enum { invalid = 0xfffd }; + Boolean recovering_; + PackedBoolean hadFirstChar_; + PackedBoolean hadByteOrderMark_; +}; + +class UTF8Encoder : public Encoder { +public: + UTF8Encoder(); + void output(const Char *, size_t, OutputByteStream *); +}; + +Decoder *UTF8CodingSystem::makeDecoder() const +{ + return new UTF8Decoder; +} + +Encoder *UTF8CodingSystem::makeEncoder() const +{ + return new UTF8Encoder; +} + + +UTF8Decoder::UTF8Decoder() +: recovering_(0), hadFirstChar_(0), hadByteOrderMark_(0) +{ +} + +size_t UTF8Decoder::decode(Char *to, const char *s, + size_t slen, const char **result) +{ + // Check for byte-order mark + if (!hadFirstChar_ && slen >= 3) { + hadFirstChar_ = 1; + + if ((unsigned char)s[0] == 0xEF && + (unsigned char)s[1] == 0xBB && + (unsigned char)s[2] == 0xBF) { + s += 3; + slen -= 3; + hadByteOrderMark_ = 1; + } + } + Char *start = to; + const unsigned char *us = (const unsigned char *)s; + if (recovering_) { + recovering_ = 0; + goto recover; + } + while (slen > 0) { + unsigned c0; + c0 = us[0]; + if ((c0 & cmask1) == cval1) { + *to++ = c0; + us++; + slen--; + } + else if ((c0 & cmask2) == cval2) { + if (slen < 2) + goto done; + unsigned c1 = us[1] ^ 0x80; + if (c1 & 0xc0) + goto error; + unsigned c = ((c0 & vmask2) << 6) | c1; + if (c < min2) + c = invalid; + *to++ = c; + slen -= 2; + us += 2; + } + else if ((c0 & cmask3) == cval3) { + if (slen < 3) + goto done; + unsigned c1 = us[1] ^ 0x80; + unsigned c2 = us[2] ^ 0x80; + if ((c1 | c2) & 0xc0) + goto error; + unsigned c = ((((c0 & vmask3) << 6) | c1) << 6) | c2; + if (c < min3) + c = invalid; + *to++ = c; + slen -= 3; + us += 3; + } + else if ((c0 & cmask4) == cval4) { + if (slen < 4) + goto done; + unsigned c1 = us[1] ^ 0x80; + unsigned c2 = us[2] ^ 0x80; + unsigned c3 = us[3] ^ 0x80; + if ((c1 | c2 | c3) & 0xc0) + goto error; + if (charMax < min5 - 1) + *to++ = invalid; + else { + unsigned long c = ((((c0 & vmask4) << 6) | c1) << 6) | c2; + c = (c << 6) | c3; + if (c < min4) + c = invalid; + *to++ = c; + } + slen -= 4; + us += 4; + } + else if ((c0 & cmask5) == cval5) { + if (slen < 5) + goto done; + unsigned c1 = us[1] ^ 0x80; + unsigned c2 = us[2] ^ 0x80; + unsigned c3 = us[3] ^ 0x80; + unsigned c4 = us[4] ^ 0x80; + if ((c1 | c2 | c3 | c4) & 0xc0) + goto error; + if (charMax < min6 - 1) + *to++ = invalid; + else { + unsigned long c = ((((c0 & vmask5) << 6) | c1) << 6) | c2; + c = (((c << 6) | c3) << 6) | c4; + if (c < min5) + c = invalid; + *to++ = c; + } + slen -= 5; + us += 5; + } + else if ((c0 & cmask6) == cval6) { + if (slen < 6) + goto done; + unsigned c1 = us[1] ^ 0x80; + unsigned c2 = us[2] ^ 0x80; + unsigned c3 = us[3] ^ 0x80; + unsigned c4 = us[4] ^ 0x80; + unsigned c5 = us[5] ^ 0x80; + if ((c1 | c2 | c3 | c4 | c5) & 0xc0) + goto error; + if (charMax < max6) + *to++ = invalid; + else { + unsigned long c = ((((c0 & vmask6) << 6) | c1) << 6) | c2; + c = (((((c << 6) | c3) << 6) | c4) << 6) | c5; + if (c < min6) + c = invalid; + *to++ = c; + } + slen -= 6; + us += 6; + } + else { + error: + us++; + slen--; + *to++ = invalid; + recover: + for (;;) { + if (slen == 0) { + recovering_ = 1; + goto done; + } + if ((*us & 0xc0) != 0x80) + break; + us++; + slen--; + } + } + } + done: + *result = (char *)us; + return to - start; +} + +Boolean UTF8Decoder::convertOffset(unsigned long &n) const +{ + if (hadByteOrderMark_) + n += 3; + + return true; +} + +UTF8Encoder::UTF8Encoder() +{ +} + +void UTF8Encoder::output(const Char *s, size_t n, OutputByteStream *sb) +{ + for (; n > 0; s++, n--) { + Char c = *s; + if (c < min2) + sb->sputc((unsigned char)c); + else if (c < min3) { + sb->sputc((c >> 6) | cval2); + sb->sputc((c & 0x3f) | 0x80); + } + else if (c < min4) { + sb->sputc((c >> 12) | cval3); + sb->sputc(((c >> 6) & 0x3f) | 0x80); + sb->sputc((c & 0x3f) | 0x80); + } + else if (c < min5) { + sb->sputc((c >> 18) | cval4); + sb->sputc(((c >> 12) & 0x3f) | 0x80); + sb->sputc(((c >> 6) & 0x3f) | 0x80); + sb->sputc((c & 0x3f) | 0x80); + } + else if (c < min6) { + sb->sputc((c >> 24) | cval5); + sb->sputc(((c >> 18) & 0x3f) | 0x80); + sb->sputc(((c >> 12) & 0x3f) | 0x80); + sb->sputc(((c >> 6) & 0x3f) | 0x80); + sb->sputc((c & 0x3f) | 0x80); + } + else if (c <= max6) { + sb->sputc((c >> 30) | cval6); + sb->sputc(((c >> 24) & 0x3f) | 0x80); + sb->sputc(((c >> 18) & 0x3f) | 0x80); + sb->sputc(((c >> 12) & 0x3f) | 0x80); + sb->sputc(((c >> 6) & 0x3f) | 0x80); + sb->sputc((c & 0x3f) | 0x80); + } + } +} +#ifdef SP_NAMESPACE +} +#endif + +#else /* not SP_MULTI_BYTE */ + +#ifndef __GNUG__ +static char non_empty_translation_unit; // sigh +#endif + +#endif /* not SP_MULTI_BYTE */ diff --git a/lib/Undo.cxx b/lib/Undo.cxx new file mode 100644 index 0000000..99e2386 --- /dev/null +++ b/lib/Undo.cxx @@ -0,0 +1,54 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "Undo.h" +#include "ParserState.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Undo::Undo() +{ +} + +Undo::~Undo() +{ +} + +UndoTransition::UndoTransition(const MatchState &state) +: state_(state) +{ +} + +void UndoTransition::undo(ParserState *parser) +{ + parser->currentElement().setMatchState(state_); +} + +UndoStartTag::UndoStartTag() +{ +} + +void UndoStartTag::undo(ParserState *parser) +{ + parser->popElement(); +} + +UndoEndTag::UndoEndTag(OpenElement *e) +: element_(e) +{ +} + +void UndoEndTag::undo(ParserState *parser) +{ + parser->pushElement(element_.extract()); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Undo.h b/lib/Undo.h new file mode 100644 index 0000000..bd646f9 --- /dev/null +++ b/lib/Undo.h @@ -0,0 +1,71 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Undo_INCLUDED +#define Undo_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Link.h" +#include "ContentToken.h" +#include "OpenElement.h" +#include "Allocator.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class ParserState; +class Event; + +class Undo : public Link { +public: + void *operator new(size_t sz, Allocator &alloc) { return alloc.alloc(sz); } + void *operator new(size_t sz) { return Allocator::allocSimple(sz); } + void operator delete(void *p) { Allocator::free(p); } +#ifdef SP_HAVE_PLACEMENT_OPERATOR_DELETE + void operator delete(void *p, Allocator &) { Allocator::free(p); } +#endif + Undo(); + virtual ~Undo(); + virtual void undo(ParserState *) = 0; +private: + Undo(const Undo &); // undefined + void operator=(const Undo &); // undefined +}; + +class UndoTransition : public Undo { +public: + UndoTransition(const MatchState &); + void undo(ParserState *); +private: + UndoTransition(const UndoTransition &); // undefined + void operator=(const UndoTransition &); // undefined + MatchState state_; +}; + +class UndoStartTag : public Undo { +public: + UndoStartTag(); + void undo(ParserState *); +private: + UndoStartTag(const UndoStartTag &); // undefined + void operator=(const UndoStartTag &); // undefined +}; + +class UndoEndTag : public Undo { +public: + UndoEndTag(OpenElement *); + void undo(ParserState *); +private: + UndoEndTag(const UndoEndTag &); // undefined + void operator=(const UndoEndTag &); // undefined + Owner element_; +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not Undo_INCLUDED */ diff --git a/lib/UnicodeCodingSystem.cxx b/lib/UnicodeCodingSystem.cxx new file mode 100644 index 0000000..e2a31bb --- /dev/null +++ b/lib/UnicodeCodingSystem.cxx @@ -0,0 +1,143 @@ +// Copyright (c) 1994 James Clark, 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MULTI_BYTE + +#include "UnicodeCodingSystem.h" +#include "UTF16CodingSystem.h" +#include "macros.h" +#include "Owner.h" + +#include +#include +#ifdef DECLARE_MEMMOVE +extern "C" { + void *memmove(void *, const void *, size_t); +} +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const unsigned short byteOrderMark = 0xfeff; +const unsigned short swappedByteOrderMark = 0xfffe; + +class UnicodeDecoder : public Decoder { +public: + UnicodeDecoder(const InputCodingSystem *sub); + size_t decode(Char *to, const char *from, size_t fromLen, + const char **rest); + Boolean convertOffset(unsigned long &offset) const; +private: + PackedBoolean hadByteOrderMark_; + PackedBoolean swapBytes_; + Owner subDecoder_; + const InputCodingSystem *subCodingSystem_; +}; + +class UnicodeEncoder : public Encoder { +public: + UnicodeEncoder(); + void output(const Char *, size_t, OutputByteStream *); + void startFile(OutputByteStream *); +private: + Owner subEncoder_; +}; + +UnicodeCodingSystem::UnicodeCodingSystem(const InputCodingSystem *sub) +: sub_(sub) +{ +} + +Decoder *UnicodeCodingSystem::makeDecoder() const +{ + return new UnicodeDecoder(sub_); +} + +Encoder *UnicodeCodingSystem::makeEncoder() const +{ + return new UnicodeEncoder; +} + +UnicodeDecoder::UnicodeDecoder(const InputCodingSystem *subCodingSystem) +: Decoder(subCodingSystem ? 1 : 2), subCodingSystem_(subCodingSystem), + hadByteOrderMark_(0), swapBytes_(0) +{ +} + + +size_t UnicodeDecoder::decode(Char *to, const char *from, size_t fromLen, + const char **rest) +{ + union U { + unsigned short word; + char bytes[2]; + }; + + if (subDecoder_) + return subDecoder_->decode(to, from, fromLen, rest); + if (fromLen < 2) { + *rest = from; + return 0; + } + minBytesPerChar_ = 2; + U u; + u.bytes[0] = from[0]; + u.bytes[1] = from[1]; + if (u.word == byteOrderMark) { + hadByteOrderMark_ = 1; + from += 2; + fromLen -= 2; + } + else if (u.word == swappedByteOrderMark) { + hadByteOrderMark_ = 1; + from += 2; + fromLen -= 2; + swapBytes_ = 1; + } + if (hadByteOrderMark_ || !subCodingSystem_) + subCodingSystem_ = new UTF16CodingSystem; + subDecoder_ = subCodingSystem_->makeDecoder(swapBytes_); + minBytesPerChar_ = subDecoder_->minBytesPerChar(); + return subDecoder_->decode(to, from, fromLen, rest); +} + +Boolean UnicodeDecoder::convertOffset(unsigned long &n) const +{ + subDecoder_->convertOffset(n); + if (hadByteOrderMark_) + n += 2; + return true; +} + +UnicodeEncoder::UnicodeEncoder() +{ + UTF16CodingSystem utf16; + subEncoder_ = utf16.makeEncoder(); +} + +void UnicodeEncoder::startFile(OutputByteStream *sb) +{ + const unsigned short n = byteOrderMark; + sb->sputn((char *)&n, 2); +} + +void UnicodeEncoder::output(const Char *s, size_t n, OutputByteStream *sb) +{ + subEncoder_->output(s, n, sb); +} + +#ifdef SP_NAMESPACE +} +#endif + +#else /* not SP_MULTI_BYTE */ + +#ifndef __GNUG__ +static char non_empty_translation_unit; // sigh +#endif + +#endif /* not SP_MULTI_BYTE */ diff --git a/lib/UnivCharsetDesc.cxx b/lib/UnivCharsetDesc.cxx new file mode 100644 index 0000000..6d92ca8 --- /dev/null +++ b/lib/UnivCharsetDesc.cxx @@ -0,0 +1,171 @@ +// Copyright (c) 1994, 1997 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" +#include "UnivCharsetDesc.h" +#include "macros.h" +#include "constant.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +UnivCharsetDesc::UnivCharsetDesc() +: charMap_(unsigned(1) << 31) +{ +} + +UnivCharsetDesc::UnivCharsetDesc(const Range *p, size_t n) +: charMap_(unsigned(1) << 31) +{ + set(p, n); +} + +void UnivCharsetDesc::set(const Range *p, size_t n) +{ + for (size_t i = 0; i < n; i++) { + const Range &r = p[i]; + Char max; + if (r.count > charMax || r.descMin > charMax - r.count) + max = charMax; + else + max = r.descMin + (r.count - 1); + if (max - r.descMin > univCharMax + || r.univMin > univCharMax - (max - r.descMin)) + max = r.descMin + (univCharMax - r.univMin); + addRange(r.descMin, max, r.univMin); + } +} + +void UnivCharsetDesc::addRange(WideChar descMin, + WideChar descMax, + UnivChar univMin) +{ + if (descMin <= charMax) { + Char max = descMax > charMax ? charMax : descMax; + charMap_.setRange(descMin, max, wrapChar(univMin, descMin)); + } + if (descMax > charMax) { + if (descMin > charMax) + rangeMap_.addRange(descMin, descMax, univMin); + else + rangeMap_.addRange(charMax, descMax, univMin + (charMax - descMin)); + } +} + +void UnivCharsetDesc::addBaseRange(const UnivCharsetDesc &baseSet, + WideChar descMin, + WideChar descMax, + WideChar baseMin, + ISet &baseMissing) +{ + UnivCharsetDescIter iter(baseSet); + iter.skipTo(baseMin); + WideChar baseMax = baseMin + (descMax - descMin); + WideChar iDescMin, iDescMax; + UnivChar iBaseMin; + WideChar missingBaseMin = baseMin; + Boolean usedAll = 0; + while (iter.next(iDescMin, iDescMax, iBaseMin) && iDescMin <= baseMax) { + // baseMin baseMax + // iDescMin iDescMax + if (iDescMax >= baseMin) { + WideChar min = baseMin > iDescMin ? baseMin : iDescMin; + if (min > missingBaseMin) + baseMissing.addRange(missingBaseMin, min - 1); + WideChar max = baseMax < iDescMax ? baseMax : iDescMax; + missingBaseMin = max + 1; + if (missingBaseMin == 0) + usedAll = 1; + ASSERT(min <= max); + addRange(descMin + (min - baseMin), + descMin + (max - baseMin), + iBaseMin + (min - iDescMin)); + } + } + if (!usedAll && baseMax >= missingBaseMin) + baseMissing.addRange(missingBaseMin, baseMax); +} + +unsigned UnivCharsetDesc::univToDesc(UnivChar to, WideChar &from, + ISet &fromSet, + WideChar &count) const +{ + unsigned ret = rangeMap_.inverseMap(to, from, fromSet, count); + Char min = 0; + do { + Char max; + Unsigned32 tem = charMap_.getRange(min, max); + if (!noDesc(tem)) { + UnivChar toMin = extractChar(tem, min); + if (toMin <= to && to <= toMin + (max - min)) { + Char n = min + (to - toMin); + WideChar thisCount = max - n + 1; + if (ret > 1) { + fromSet.add(n); + if (thisCount < count) + count = thisCount; + if (n < from) + from = n; + } + else if (ret == 1) { + fromSet.add(from); + fromSet.add(n); + ret = 2; + if (thisCount < count) + count = thisCount; + if (n < from) + from = n; + } + else { + count = thisCount; + from = n; + ret = 1; + } + } + else if (ret == 0 && toMin > to && toMin - to < count) + count = toMin - to; + } + min = max; + } while (min++ != charMax); + return ret; +} + +UnivCharsetDescIter::UnivCharsetDescIter(const UnivCharsetDesc &desc) +: charMap_(&desc.charMap_), doneCharMap_(0), nextChar_(0), + rangeMapIter_(desc.rangeMap_) +{ +} + +Boolean UnivCharsetDescIter::next(WideChar &descMin, + WideChar &descMax, + UnivChar &univMin) +{ + while (!doneCharMap_) { + Char ch = nextChar_; + Unsigned32 tem = charMap_->getRange(nextChar_, nextChar_); + descMax = nextChar_; + if (!UnivCharsetDesc::noDesc(tem)) { + descMin = ch; + descMax = nextChar_; + univMin = UnivCharsetDesc::extractChar(tem, ch); + if (nextChar_ == charMax) + doneCharMap_ = 1; + else + nextChar_++; + return 1; + } + if (nextChar_ == charMax) + doneCharMap_ = 1; + else + nextChar_++; + } + return rangeMapIter_.next(descMin, descMax, univMin); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/Win32CodingSystem.cxx b/lib/Win32CodingSystem.cxx new file mode 100644 index 0000000..ae9de2d --- /dev/null +++ b/lib/Win32CodingSystem.cxx @@ -0,0 +1,218 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "splib.h" + +#ifdef SP_MULTI_BYTE + +#include +#include +#include "Win32CodingSystem.h" +#include "Boolean.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SingleByteWin32Decoder : public Decoder { +public: + SingleByteWin32Decoder(unsigned int codePage, Char defaultChar); + size_t decode(Char *to, const char *from, size_t fromLen, + const char **rest); + Boolean convertOffset(unsigned long &offset) const; +private: + Char map_[256]; +}; + +class MultiByteWin32Decoder : public Decoder { +public: + MultiByteWin32Decoder(unsigned int codePage, Char defaultChar, + unsigned char *leadByte); + size_t decode(Char *to, const char *from, size_t fromLen, + const char **rest); +private: + unsigned int codePage_; + Char defaultChar_; + PackedBoolean isLeadByte_[256]; +}; + +class Win32Encoder : public Encoder { +public: + Win32Encoder(unsigned int codePage); + ~Win32Encoder(); + void output(const Char *, size_t, OutputByteStream *); +private: + char *buf_; + size_t bufLen_; + unsigned int codePage_; +}; + +Win32CodingSystem::Win32CodingSystem(unsigned int codePage, Char defaultChar) +: codePage_(codePage), defaultChar_(defaultChar) +{ +} + +Win32CodingSystem::Win32CodingSystem(SpecialCodePage codePage, + Char defaultChar) +: defaultChar_(defaultChar) +{ + if (codePage == codePageAnsi) + codePage_ = GetACP(); + else + codePage_ = GetOEMCP(); +} + +Boolean Win32CodingSystem::isValid() const +{ + return IsValidCodePage(codePage_); +} + +Encoder *Win32CodingSystem::makeEncoder() const +{ + return new Win32Encoder(codePage_); +} + +Decoder *Win32CodingSystem::makeDecoder() const +{ + CPINFO info; + if (GetCPInfo(codePage_, &info) && info.MaxCharSize > 1) + return new MultiByteWin32Decoder(codePage_, defaultChar_, info.LeadByte); + else + return new SingleByteWin32Decoder(codePage_, defaultChar_); +} + +SingleByteWin32Decoder::SingleByteWin32Decoder(unsigned int codePage, + Char defaultChar) +{ + for (int i = 0; i < 256; i++) { + char c = i; + wchar_t mapped; + if (MultiByteToWideChar(codePage, MB_PRECOMPOSED|MB_ERR_INVALID_CHARS, + &c, 1, &mapped, 1) == 0) + map_[i] = defaultChar; + else + map_[i] = Char(mapped); + } +} + +size_t SingleByteWin32Decoder::decode(Char *to, const char *from, + size_t fromLen, const char **rest) +{ + for (size_t n = fromLen; n > 0; n--) + *to++ = map_[(unsigned char)*from++]; // zero extend + *rest = from; + return fromLen; +} + +Boolean SingleByteWin32Decoder::convertOffset(unsigned long &) const +{ + return 1; +} + +MultiByteWin32Decoder::MultiByteWin32Decoder(unsigned int codePage, + Char defaultChar, + unsigned char *leadByte) +: defaultChar_(defaultChar), codePage_(codePage) +{ + for (int i = 0; i < 256; i++) + isLeadByte_[i] = 0; + for (int i = 0; i < MAX_LEADBYTES; i += 2) { + if (leadByte[i] == 0 && leadByte[i + 1] == 0) + break; + int lim = leadByte[i + 1]; + for (int j = leadByte[i]; j < lim; j++) + isLeadByte_[j] = 1; + } +} + +size_t MultiByteWin32Decoder::decode(Char *to, const char *from, + size_t fromLen, const char **rest) +{ + size_t i; + for (i = fromLen; i > 0; i--) + if (!isLeadByte_[(unsigned char)from[i - 1]]) + break; + if ((fromLen - i) & 1) + fromLen--; + + String tow; + tow.resize(fromLen); + int count = MultiByteToWideChar(codePage_, + MB_PRECOMPOSED|MB_ERR_INVALID_CHARS, + from, fromLen, (wchar_t *)tow.data(), fromLen); + for (size_t i = 0; i < count; i++) + to[i] = Char(tow[i]); + if (count) { + *rest = from + fromLen; + return count; + } + Char *start = to; + // Try it character by character. + while (fromLen > 0) { + int nBytes = 1 + isLeadByte_[(unsigned char)*from]; + ASSERT(nBytes <= fromLen); + wchar_t tow; + if (MultiByteToWideChar(codePage_, MB_PRECOMPOSED|MB_ERR_INVALID_CHARS, + from, nBytes, &tow, 1) != 1) + *to = defaultChar_; + else + *to = Char(tow); + from += nBytes; + fromLen -= nBytes; + to++; + } + *rest = from; + return to - start; +} + +Win32Encoder::Win32Encoder(unsigned int codePage) +: codePage_(codePage), buf_(0), bufLen_(0) +{ +} + +Win32Encoder::~Win32Encoder() +{ + delete [] buf_; +} + +void Win32Encoder::output(const Char *s, size_t n, OutputByteStream *sb) +{ + if (n == 0) + return; + if (n*2 > bufLen_) { + delete [] buf_; + bufLen_ = n*2; + buf_ = new char[bufLen_]; + } + String ws; + ws.resize(n); + for (size_t i = 0; i < n; i++) + ws[i] = wchar_t(s[i]); + int nBytes = WideCharToMultiByte(codePage_, + 0, + ws.data(), + n, + buf_, + bufLen_, + 0, + 0); + if (nBytes) + sb->sputn(buf_, nBytes); +} + +#ifdef SP_NAMESPACE +} +#endif + +#else /* not SP_MULTI_BYTE */ + +#ifndef __GNUG__ +static char non_empty_translation_unit; // sigh +#endif + +#endif /* not SP_MULTI_BYTE */ diff --git a/lib/WinApp.cxx b/lib/WinApp.cxx new file mode 100644 index 0000000..c958ff2 --- /dev/null +++ b/lib/WinApp.cxx @@ -0,0 +1,229 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_WIDE_SYSTEM + +#include "WinApp.h" +#include "CodingSystemKit.h" +#include "Ptr.h" +#include "ExtendEntityManager.h" +#include "SOEntityCatalog.h" +#include "SgmlParser.h" +#include "PosixStorage.h" +#include "LiteralStorage.h" +#ifdef SP_WININET +#include "WinInetStorage.h" +#else +#include "URLStorage.h" +#endif +#define STRICT +#include +#include "macros.h" + +#ifndef SP_DEFAULT_ENCODING +#define SP_DEFAULT_ENCODING "WINDOWS" +#endif + +#ifndef SP_REGISTRY_KEY +#define SP_REGISTRY_KEY "Software\\James Clark\\SP" +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +static +StringC asStringC(const char *s) +{ + StringC tem; + if (s) { + while (*s) + tem += (unsigned char)*s++; + } + return tem; +} + +WinApp::WinApp() +{ + getRegistry("Catalogs", defaultCatalogs_); + getRegistry("Directories", defaultDirectories_); + getRegistry("Encoding", defaultEncoding_); + if (defaultEncoding_.size() == 0 || !getCodingSystem(defaultEncoding_)) { + defaultEncoding_ = asStringC(SP_DEFAULT_ENCODING); + } +} + +const InputCodingSystem * +WinApp::getCodingSystem(const StringC &name) +{ + if (name.size() == 0) + return 0; + if (codingSystemKit_.isNull()) + codingSystemKit_ = CodingSystemKit::make(0); + const char *tem; + return codingSystemKit_->makeInputCodingSystem(name, + codingSystemKit_->systemCharset(), + 0, + tem); +} + +static +void split(const StringC &str, Char sep, Vector &result) +{ + Boolean started = 0; + for (size_t i = 0; i < str.size(); i++) { + if (str[i] == sep) + started = 0; + else { + if (!started) { + result.resize(result.size() + 1); + started = 1; + } + result.back() += str[i]; + } + } +} + +void WinApp::initParser(const StringC &sysid, SgmlParser &parser) +{ + Ptr em; + initParser(sysid, parser, em); +} + +void WinApp::initParser(const StringC &sysid, SgmlParser &parser, + Ptr &em) +{ + const InputCodingSystem *codingSystem = getCodingSystem(encoding_); + if (!codingSystem) + codingSystem = getCodingSystem(defaultEncoding_); + ConstPtr icsk; + icsk.swap(codingSystemKit_); + const CharsetInfo *systemCharset = &icsk->systemCharset(); + + PosixStorageManager *sm + = new PosixStorageManager("OSFILE", + systemCharset, + 5); + { + Vector dirs; + split(extraDirectories_, ';', dirs); + split(defaultDirectories_, ';', dirs); + for (size_t i = 0; i < dirs.size(); i++) + sm->addSearchDir(dirs[i]); + } + ExtendEntityManager *xem + = ExtendEntityManager::make(sm, + codingSystem, + icsk, + 0); + em = xem; + xem + ->registerStorageManager(new PosixFdStorageManager("OSFD", + systemCharset)); +#ifdef SP_WININET + xem->registerStorageManager(new WinInetStorageManager("URL")); +#else + xem->registerStorageManager(new URLStorageManager("URL")); +#endif + xem->registerStorageManager(new LiteralStorageManager("LITERAL")); + Vector catalogSysids; + split(extraCatalogs_, ';', catalogSysids); + size_t nExtra = catalogSysids.size(); + split(defaultCatalogs_, ';', catalogSysids); + xem->setCatalogManager(SOCatalogManager::make(catalogSysids, + nExtra, + systemCharset, + systemCharset, + 1)); + SgmlParser::Params params; + params.sysid = sysid; + params.entityManager = em.pointer(); + params.options = &options; + parser.init(params); +} + +void WinApp::setDefaultCatalogs(StringC &tem) +{ + if (tem != defaultCatalogs_) { + tem.swap(defaultCatalogs_); + setRegistry("Catalogs", defaultCatalogs_); + } +} + +void WinApp::setDefaultDirectories(StringC &tem) +{ + if (tem != defaultDirectories_) { + tem.swap(defaultDirectories_); + setRegistry("Directories", defaultDirectories_); + } +} + +Boolean WinApp::setEncoding(StringC &str) +{ + if (!getCodingSystem(str)) + return 0; + str.swap(encoding_); + return 1; +} + +Boolean WinApp::setDefaultEncoding(StringC &str) +{ + if (!getCodingSystem(str)) + return 0; + str.swap(defaultEncoding_); + setRegistry("Encoding", defaultEncoding_); + return 1; +} + +void WinApp::setRegistry(const char *name, const StringC &value) +{ + HKEY hk; + if (RegCreateKeyA(HKEY_CURRENT_USER, SP_REGISTRY_KEY, &hk) != ERROR_SUCCESS) + return; + String buf; + String valuew; + for (size_t i = 0; i < value.size(); i++) + valuew += wchar_t(value[i]); + int len = WideCharToMultiByte(CP_ACP, 0, valuew.data(), valuew.size(), 0, 0, 0, 0); + buf.resize(len + 1); + WideCharToMultiByte(CP_ACP, 0, valuew.data(), valuew.size(), buf.begin(), len, 0, 0); + buf[len] = '\0'; + RegSetValueA(hk, name, REG_SZ, buf.data(), len); + RegCloseKey(hk); +} + +Boolean WinApp::getRegistry(const char *name, StringC &value) +{ + HKEY hk; + if (RegOpenKeyA(HKEY_CURRENT_USER, SP_REGISTRY_KEY, &hk) != ERROR_SUCCESS) + return 0; + String buf; + long size; + Boolean retval = 0; + if (RegQueryValueA(hk, name, 0, &size) == ERROR_SUCCESS) { + buf.resize(size); + if (RegQueryValueA(hk, name, &buf[0], &size) == ERROR_SUCCESS) { + int nChars = MultiByteToWideChar(CP_ACP, 0, buf.data(), size - 1, 0, 0); + if (nChars || GetLastError() == ERROR_SUCCESS) { + value.resize(nChars); + String valuew; + for (size_t i = 0; i < value.size(); i++) + valuew += wchar_t(value[i]); + if (MultiByteToWideChar(CP_ACP, 0, buf.data(), size - 1, (wchar_t *)valuew.data(), nChars) == nChars) + retval = 1; + else + value.resize(0); + } + } + } + RegCloseKey(hk); + return retval; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_WIDE_SYSTEM */ diff --git a/lib/WinInetStorage.cxx b/lib/WinInetStorage.cxx new file mode 100644 index 0000000..9f1fede --- /dev/null +++ b/lib/WinInetStorage.cxx @@ -0,0 +1,234 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_WININET + +#include "WinInetStorage.h" +#include "WinInetStorageMessages.h" +#include "RewindStorageObject.h" +#include "UnivCharsetDesc.h" +#include "MessageArg.h" +#include "MessageBuilder.h" +#include "macros.h" + +#define STRICT +#include +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +static UnivCharsetDesc::Range range = { 0, 128, 0 }; +static CharsetInfo iso646Charset(UnivCharsetDesc(&range, 1)); + +String toAscii(const StringC &buf) +{ + String s; + for (size_t i = 0; i < buf.size(); i++) + s += buf[i]; + s += '\0'; + return s; +} +class Win32MessageArg : public MessageArg { +public: + Win32MessageArg(DWORD n) : n_(n) { } + MessageArg *copy() const { return new Win32MessageArg(*this); } + void append(MessageBuilder &) const; +private: + DWORD n_; +}; + +void Win32MessageArg::append(MessageBuilder &builder) const +{ + void *msg; + if (!FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM + |FORMAT_MESSAGE_ALLOCATE_BUFFER, + 0, + n_, + MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), + (LPSTR)&msg, + 0, + 0)) { + // FIXME interpret common internet messages here + builder.appendNumber(n_); + return; + } + String s; + for (char *tem = (char *)msg; *tem; tem++) + s += *tem; + LocalFree(msg); + builder.appendChars(s.data(), s.size()); +} + +class WinInetStorageObject : public RewindStorageObject { +public: + WinInetStorageObject(HINTERNET fd, Boolean mayRewind, const StringC &url); + ~WinInetStorageObject(); + Boolean read(char *buf, size_t bufSize, Messenger &mgr, size_t &nread); + Boolean seekToStart(Messenger &); +private: + WinInetStorageObject(const WinInetStorageObject &); // undefined + void operator=(const WinInetStorageObject &); // undefined + Boolean eof_; + HINTERNET fd_; + StringC url_; +}; + +WinInetStorageManager::WinInetStorageManager(const char *type) +: type_(type), IdStorageManager(&iso646Charset), session_(0) +{ +} + +WinInetStorageManager::~WinInetStorageManager() +{ + if (session_) { + InternetCloseHandle(session_); + session_ = 0; + } +} + +const char *WinInetStorageManager::type() const +{ + return type_; +} + +Boolean WinInetStorageManager::initSession() +{ + if (!session_) { + session_ = InternetOpenA("SP", + INTERNET_OPEN_TYPE_PRECONFIG, + 0, + 0, + 0); + } + return 1; +} + +Boolean WinInetStorageManager::guessIsId(const StringC &id, + const CharsetInfo &charset) const +{ + if (id.size() < 8) + return 0; + size_t i = 0; + // guess other schemes supported by download protocols + for (const char *s = "http://"; *s; s++, i++) + if (id[i] != charset.execToDesc(*s) + && (!islower(*s) || id[i] != charset.execToDesc(toupper(*s)))) + return 0; + return 1; +} + +StorageObject *WinInetStorageManager::makeStorageObject(const StringC &specId, + const StringC &baseId, + Boolean, + Boolean mayRewind, + Messenger &mgr, + StringC &id) +{ + if (!initSession()) + return 0; + id = specId; + resolveRelative(baseId, id, 0); + String tem(toAscii(id)); + HINTERNET fd = InternetOpenUrlA(session_, tem.data(), 0, 0, 0, 0); + if (!fd) { + DWORD err = GetLastError(); + mgr.message(WinInetStorageMessages::cannotOpen, + StringMessageArg(id), + Win32MessageArg(err)); + return 0; + } + // FIXME report an error + return new WinInetStorageObject(fd, mayRewind, id); +} + +Boolean WinInetStorageManager::resolveRelative(const StringC &baseId, + StringC &id, + Boolean) const +{ + DWORD bufSize = baseId.size() + id.size() + 1; + char *buf = new char[bufSize]; + String baseIdA (toAscii(baseId)); + String idA(toAscii(id)); + if (InternetCombineUrlA(baseIdA.data(), + idA.data(), + buf, + &bufSize, + 0)) { + id.resize(0); + for (size_t i = 0; i < bufSize; i++) + id += buf[i]; + delete [] buf; + return 1; + } + delete [] buf; + return 0; +} + +Boolean WinInetStorageManager::transformNeutral(StringC &str, Boolean fold, + Messenger &) const +{ + if (fold) + for (size_t i = 0; i < str.size(); i++) { + Char c = str[i]; + if (c <= (unsigned char)-1) + str[i] = tolower(str[i]); + } + return 1; +} + + +WinInetStorageObject::WinInetStorageObject(HINTERNET fd, + Boolean mayRewind, + const StringC &url) +: RewindStorageObject(mayRewind, 0), fd_(fd), url_(url), eof_(0) +{ +} + +WinInetStorageObject::~WinInetStorageObject() +{ + if (fd_ != 0) { + (void)InternetCloseHandle(fd_); + fd_ = 0; + } +} + +Boolean WinInetStorageObject::read(char *buf, size_t bufSize, Messenger &mgr, + size_t &nread) +{ + if (readSaved(buf, bufSize, nread)) + return 1; + if (fd_ == 0 || eof_) + return 0; + DWORD n; + if (!InternetReadFile(fd_, buf, bufSize, &n)) { + DWORD err = GetLastError(); + mgr.message(WinInetStorageMessages::readFailed, + StringMessageArg(url_), + Win32MessageArg(err)); + return 0; + } + if (n) { + nread = n; + return 1; + } + eof_ = 1; + InternetCloseHandle(fd_); + fd_ = 0; + return 0; +} + +Boolean WinInetStorageObject::seekToStart(Messenger &) +{ + CANNOT_HAPPEN(); + return 0; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_WININET */ diff --git a/lib/WinInetStorageMessages.h b/lib/WinInetStorageMessages.h new file mode 100644 index 0000000..45d9ace --- /dev/null +++ b/lib/WinInetStorageMessages.h @@ -0,0 +1,32 @@ +// This file was automatically generated from WinInetStorageMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct WinInetStorageMessages { + // 2500 + static const MessageType2 cannotOpen; + // 2501 + static const MessageType2 readFailed; +}; +const MessageType2 WinInetStorageMessages::cannotOpen( +MessageType::error, +&libModule, +2500 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot open URL %1 (%2)" +#endif +); +const MessageType2 WinInetStorageMessages::readFailed( +MessageType::error, +&libModule, +2501 +#ifndef SP_NO_MESSAGE_TEXT +,"error reading URL %1 (%2)" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/WinInetStorageMessages.msg b/lib/WinInetStorageMessages.msg new file mode 100644 index 0000000..7d56cb9 --- /dev/null +++ b/lib/WinInetStorageMessages.msg @@ -0,0 +1,9 @@ +# Copyright (c) 1996 James Clark +# See the file COPYING for copying permission. + +# WinInetStorage message definitions + +=2500 +E2+cannotOpen++cannot open URL %1 (%2) +E2+readFailed++error reading URL %1 (%2) + diff --git a/lib/WinInetStorageMessages.rc b/lib/WinInetStorageMessages.rc new file mode 100644 index 0000000..7eec3cd --- /dev/null +++ b/lib/WinInetStorageMessages.rc @@ -0,0 +1,5 @@ +STRINGTABLE +BEGIN + 2500, "cannot open URL %1 (%2)" + 2501, "error reading URL %1 (%2)" +END diff --git a/lib/XMLCodingSystem.cxx b/lib/XMLCodingSystem.cxx new file mode 100644 index 0000000..a6ba90c --- /dev/null +++ b/lib/XMLCodingSystem.cxx @@ -0,0 +1,424 @@ +// Copyright (c) 1994, 1997 James Clark, 2000 Matthias Clasen +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif +#include "splib.h" + +#ifdef SP_MULTI_BYTE + +#include "XMLCodingSystem.h" +#include "UTF8CodingSystem.h" +#include "UTF16CodingSystem.h" +#include "Fixed4CodingSystem.h" +#include "CodingSystemKit.h" +#include "Boolean.h" +#include "Owner.h" +#include "macros.h" +#include +#include + +#ifdef SP_DECLARE_MEMMOVE +extern "C" { + void *memmove(void *, const void *, size_t); +} +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const Char ISO646_TAB = 0x9; +const Char ISO646_LF = 0xA; +const Char ISO646_CR = 0xD; +const Char ISO646_SPACE = 0x20; +const Char ISO646_QUOT = 0x22; +const Char ISO646_APOS = 0x27; +const Char ISO646_LT = 0x3C; +const Char ISO646_EQUAL = 0x3D; +const Char ISO646_GT = 0x3E; +const Char ISO646_QUEST = 0x3F; +const Char ISO646_LETTER_a = 0x61; +const Char ISO646_LETTER_c = 0x63; +const Char ISO646_LETTER_d = 0x64; +const Char ISO646_LETTER_e = 0x65; +const Char ISO646_LETTER_g = 0x67; +const Char ISO646_LETTER_i = 0x69; +const Char ISO646_LETTER_l = 0x6C; +const Char ISO646_LETTER_m = 0x6D; +const Char ISO646_LETTER_n = 0x6E; +const Char ISO646_LETTER_o = 0x6F; +const Char ISO646_LETTER_x = 0x78; + +class XMLDecoder : public Decoder { +public: + XMLDecoder(const InputCodingSystemKit *); + size_t decode(Char *to, const char *from, size_t fromLen, + const char **rest); + Boolean convertOffset(unsigned long &offset) const; +private: + + // Don't keep parsing a PI longer than this. + // We want to avoid reading some enormous file into memory just because + // some quote was left off. + enum { piMaxSize = 1024*32 }; + + void initDecoderDefault(); + void initDecoderPI(); + Boolean extractEncoding(StringC &name); + static Boolean isWS(Char); + + enum DetectPhase { + phaseInit, + phasePI, + phaseFinish + }; + DetectPhase phase_; + Boolean byteOrderMark_; + Boolean lsbFirst_; + Boolean lswFirst_; + int guessBytesPerChar_; + Owner subDecoder_; + // Contains all the characters passed to caller that were + // not produced by subDecoder_. + StringC pi_; + Char piLiteral_; + const InputCodingSystemKit *kit_; +}; + +XMLCodingSystem::XMLCodingSystem(const InputCodingSystemKit *kit) +: kit_(kit) +{ +} + +Decoder *XMLCodingSystem::makeDecoder() const +{ + return new XMLDecoder(kit_); +} + +Encoder *XMLCodingSystem::makeEncoder() const +{ + UTF8CodingSystem utf8; + return utf8.makeEncoder(); +} + +XMLDecoder::XMLDecoder(const InputCodingSystemKit *kit) +: Decoder(1), + kit_(kit), + phase_(phaseInit), + byteOrderMark_(0), + lsbFirst_(0), + lswFirst_(0), + guessBytesPerChar_(1), + piLiteral_(0) +{ +} + +size_t XMLDecoder::decode(Char *to, const char *from, size_t fromLen, + const char **rest) +{ + if (phase_ == phaseFinish) + return subDecoder_->decode(to, from, fromLen, rest); + if (phase_ == phaseInit) { + if (fromLen == 0) { + *rest = from; + return 0; + } + switch ((unsigned char)*from) { + case 0x00: + case 0x3C: + case 0xFF: + case 0xFE: + if (fromLen < 2) { + *rest = from; + return 0; + } + switch (((unsigned char)from[0] << 8) | (unsigned char)from[1]) { + case 0xFEFF: + phase_ = phasePI; + byteOrderMark_ = 1; + guessBytesPerChar_ = 2; + from += 2; + fromLen -= 2; + break; + case 0xFFFE: + lsbFirst_ = 1; + phase_ = phasePI; + byteOrderMark_ = 1; + guessBytesPerChar_ = 2; + from += 2; + fromLen -= 2; + break; + case 0x3C3F: + phase_ = phasePI; + break; + case 0x0000: + case 0x3C00: + case 0x003C: + if (fromLen < 4) { + *rest = from; + return 0; + } + switch (((unsigned char)from[0] << 24) + | ((unsigned char)from[1] << 16) + | ((unsigned char)from[2] << 8) + | (unsigned char)from[3]) { + case 0x0000003C: + lsbFirst_ = 0; + lswFirst_ = 0; + phase_ = phasePI; + guessBytesPerChar_ = 4; + break; + case 0x00003C00: + lsbFirst_ = 1; + lswFirst_ = 0; + phase_ = phasePI; + guessBytesPerChar_ = 4; + break; + case 0x003C0000: + lsbFirst_ = 0; + lswFirst_ = 1; + phase_ = phasePI; + guessBytesPerChar_ = 4; + break; + case 0x3C000000: + lsbFirst_ = 1; + lswFirst_ = 1; + phase_ = phasePI; + guessBytesPerChar_ = 4; + break; + case 0x003C003F: + lsbFirst_ = 1; + phase_ = phasePI; + guessBytesPerChar_ = 2; + break; + case 0x3C003F00: + lsbFirst_ = 0; + phase_ = phasePI; + guessBytesPerChar_ = 2; + break; + default: + break; + } + default: + break; + } + if (phase_ == phasePI) + break; + // fall through + default: + phase_ = phaseFinish; + guessBytesPerChar_ = 1; + initDecoderDefault(); + return subDecoder_->decode(to, from, fromLen, rest); + } + } + ASSERT(phase_ == phasePI); + Char *p = to; + for (; fromLen > guessBytesPerChar_; + fromLen -= guessBytesPerChar_, from += guessBytesPerChar_) { + if (!piLiteral_ && pi_.size() > 0 && pi_[pi_.size() - 1] == ISO646_GT) { + initDecoderPI(); + phase_ = phaseFinish; + return (p - to) + subDecoder_->decode(p, from, fromLen, rest); + } + Char c; + switch (guessBytesPerChar_) { + case 1: + c = (unsigned char)from[0]; + break; + case 2: + c = lsbFirst_ ? ((unsigned char)from[1] << 8) | (unsigned char)from[0] + : ((unsigned char)from[0] << 8) | (unsigned char)from[1]; + break; + case 4: + { + size_t shift0 = 8*(!lsbFirst_ + 2*!lswFirst_); + size_t shift1 = 8*(lsbFirst_ + 2*!lswFirst_); + size_t shift2 = 8*(!lsbFirst_ + 2*lswFirst_); + size_t shift3 = 8*(lsbFirst_ + 2*lswFirst_); + c = ((unsigned char)from[0] << shift0) + | ((unsigned char)from[1] << shift1) + | ((unsigned char)from[2] << shift2) + | ((unsigned char)from[3] << shift3); + } + break; + default: + CANNOT_HAPPEN(); + } + static const Char startBytes[] = { + ISO646_LT, ISO646_QUEST, ISO646_LETTER_x, ISO646_LETTER_m, ISO646_LETTER_l + }; + // Stop accumulating the PI if we get characters that are illegal in the PI. + if (c == 0 + || c >= 0x7F + || (pi_.size() > 0 && c == ISO646_LT) + || pi_.size() > piMaxSize + || (pi_.size() < 5 && c != startBytes[pi_.size()]) + || (pi_.size() == 5 && !isWS(c))) { + initDecoderDefault(); + phase_ = phaseFinish; + break; + } + *p++ = c; + pi_ += c; + if (piLiteral_) { + if (c == piLiteral_) + piLiteral_ = 0; + } + else if (c == ISO646_QUOT || c == ISO646_APOS) + piLiteral_ = c; + } + size_t n = p - to; + if (phase_ == phaseFinish && fromLen > 0) + n += subDecoder_->decode(p, from, fromLen, rest); + else + *rest = from; + return n; +} + +Boolean XMLDecoder::convertOffset(unsigned long &n) const +{ + if (n <= pi_.size()) + n *= guessBytesPerChar_; + else { + if (!subDecoder_) + return 0; + unsigned long tem = n - pi_.size(); + if (!subDecoder_->convertOffset(tem)) + return 0; + n = tem + pi_.size() * guessBytesPerChar_; + } + if (byteOrderMark_) + n += 2; + return 1; +} + +void XMLDecoder::initDecoderDefault() +{ + switch (guessBytesPerChar_) { + case 1: + { + UTF8CodingSystem utf8; + subDecoder_ = utf8.makeDecoder(); + } + break; + case 2: + { + UTF16CodingSystem utf16; + subDecoder_ = utf16.makeDecoder(lsbFirst_); + } + break; + case 4: + { + Fixed4CodingSystem utf32; + subDecoder_ = utf32.makeDecoder(lsbFirst_, lswFirst_); + } + break; + default: + CANNOT_HAPPEN(); + } + minBytesPerChar_ = subDecoder_->minBytesPerChar(); +} + +void XMLDecoder::initDecoderPI() +{ + StringC name; + if (!extractEncoding(name)) + initDecoderDefault(); + const char *dummy; + static const UnivCharsetDesc::Range range = { 0, 128, 0 }; + CharsetInfo piCharset(UnivCharsetDesc(&range, 1)); + const InputCodingSystem *ics + = kit_->makeInputCodingSystem(name, + piCharset, + 0, + dummy); + if (ics) { + subDecoder_ = ics->makeDecoder(lsbFirst_, lswFirst_); + minBytesPerChar_ = subDecoder_->minBytesPerChar(); + } + if (!subDecoder_) + initDecoderDefault(); +} + +Boolean XMLDecoder::isWS(Char c) +{ + switch (c) { + case ISO646_CR: + case ISO646_LF: + case ISO646_SPACE: + case ISO646_TAB: + return 1; + } + return 0; +} + +Boolean XMLDecoder::extractEncoding(StringC &name) +{ + Char lit = 0; + for (size_t i = 5; i < pi_.size(); i++) { + if (!lit) { + if (pi_[i] == ISO646_APOS || pi_[i] == ISO646_QUOT) + lit = pi_[i]; + else if (pi_[i] == ISO646_EQUAL) { + size_t j = i; + for (; j > 0; j--) { + if (!isWS(pi_[j - 1])) + break; + } + size_t nameEnd = j; + for (; j > 0; j--) { + if (isWS(pi_[j - 1]) || pi_[j - 1] == ISO646_QUOT || pi_[j - 1] == ISO646_APOS) + break; + } + static const Char encodingName[] = { + ISO646_LETTER_e, ISO646_LETTER_n, ISO646_LETTER_c, ISO646_LETTER_o, + ISO646_LETTER_d, ISO646_LETTER_i, ISO646_LETTER_n, ISO646_LETTER_g, + 0 + }; + const Char *s = encodingName; + for (; *s && j < nameEnd; j++, s++) + if (pi_[j] != *s) + break; + if (j == nameEnd && *s == 0) { + size_t j = i + 1; + for (; j < pi_.size(); j++) { + if (!isWS(pi_[j])) + break; + } + if (pi_[j] == ISO646_QUOT || pi_[j] == ISO646_APOS) { + Char lit = pi_[j]; + size_t nameStart = j + 1; + for (++j; j < pi_.size(); j++) { + if (pi_[j] == lit) { + if (j > nameStart) { + name.assign(&pi_[nameStart], j - nameStart); + return 1; + } + break; + } + } + } + return 0; + } + } + } + else if (pi_[i] == lit) + lit = 0; + } + return 0; +} + +#ifdef SP_NAMESPACE +} +#endif + +#else /* not SP_MULTI_BYTE */ + +#ifndef __GNUG__ +static char non_empty_translation_unit; // sigh +#endif + +#endif /* not SP_MULTI_BYTE */ diff --git a/lib/app_inst.cxx b/lib/app_inst.cxx new file mode 100644 index 0000000..08f98a4 --- /dev/null +++ b/lib/app_inst.cxx @@ -0,0 +1,153 @@ +#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 "Vector.h" +#include "Owner.h" +#include "Options.h" +#undef SP_DEFINE_TEMPLATES + +#include +#include "CodingSystem.h" +#include "CmdLineApp.h" +#include "Event.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#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_0; +#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_1; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template Options +#else +#ifdef __xlC__ +#pragma define(Options) +#else +#ifdef SP_ANSI_CLASS_INST +template class Options; +#else +typedef Options Dummy_2; +#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_3; +#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_4; +#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_5; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template LongOption +#else +#ifdef __xlC__ +#pragma define(LongOption) +#else +#ifdef SP_ANSI_CLASS_INST +template class LongOption; +#else +typedef LongOption Dummy_6; +#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_7; +#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_8; +#endif +#endif +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/lib/app_inst.m4 b/lib/app_inst.m4 new file mode 100644 index 0000000..5f93f98 --- /dev/null +++ b/lib/app_inst.m4 @@ -0,0 +1,37 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "Vector.h" +#include "Owner.h" +#include "Options.h" +#undef SP_DEFINE_TEMPLATES + +#include +#include "CodingSystem.h" +#include "CmdLineApp.h" +#include "Event.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +__instantiate(Vector) +__instantiate(Owner) +__instantiate(Options) +__instantiate(Owner) +__instantiate(Vector) +__instantiate(Vector) +__instantiate(LongOption) +__instantiate(Vector >) +__instantiate(Owner) + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/lib/arc_inst.cxx b/lib/arc_inst.cxx new file mode 100644 index 0000000..7d61695 --- /dev/null +++ b/lib/arc_inst.cxx @@ -0,0 +1,72 @@ +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + + +#ifdef SP_NAMESPACE +} +#endif +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "Vector.h" +#include "NCVector.h" +#include "Owner.h" +#undef SP_DEFINE_TEMPLATES + +#include "ArcProcessor.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#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_0; +#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_1; +#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_2; +#endif +#endif +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/lib/arc_inst.m4 b/lib/arc_inst.m4 new file mode 100644 index 0000000..c7d58a2 --- /dev/null +++ b/lib/arc_inst.m4 @@ -0,0 +1,28 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "Vector.h" +#include "NCVector.h" +#include "Owner.h" +#undef SP_DEFINE_TEMPLATES + +#include "ArcProcessor.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +__instantiate(NCVector) +__instantiate(Owner) +__instantiate(NCVector >) + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/lib/assert.cxx b/lib/assert.cxx new file mode 100644 index 0000000..98cf683 --- /dev/null +++ b/lib/assert.cxx @@ -0,0 +1,28 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +// config.h included by splib.h +#ifdef SP_USE_OWN_ASSERT + +#include +#include "macros.h" + +#ifdef __GNUG__ +void exit(int) __attribute__((noreturn)); +#endif + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +void assertionFailed(const char *, const char *, int) +{ + abort(); + exit(1); +} + +#ifdef SP_NAMESPACE +} +#endif +#endif /* SP_USE_OWN_ASSERT */ diff --git a/lib/big5.h b/lib/big5.h new file mode 100644 index 0000000..e230d82 --- /dev/null +++ b/lib/big5.h @@ -0,0 +1,1895 @@ +/* Mapping from Big 5 to Unicode. */ +/* This is the same as MS code page 950, with 0xA2CC, 0xA2CE, +0xF9DD-0xF9FE removed (because they are duplicates). */ +63, 0xa140, +0x3000, 0xff0c, 0x3001, 0x3002, 0xff0e, 0x2027, 0xff1b, 0xff1a, +0xff1f, 0xff01, 0xfe30, 0x2026, 0x2025, 0xfe50, 0xfe51, 0xfe52, +0x00b7, 0xfe54, 0xfe55, 0xfe56, 0xfe57, 0xff5c, 0x2013, 0xfe31, +0x2014, 0xfe33, 0x2574, 0xfe34, 0xfe4f, 0xff08, 0xff09, 0xfe35, +0xfe36, 0xff5b, 0xff5d, 0xfe37, 0xfe38, 0x3014, 0x3015, 0xfe39, +0xfe3a, 0x3010, 0x3011, 0xfe3b, 0xfe3c, 0x300a, 0x300b, 0xfe3d, +0xfe3e, 0x3008, 0x3009, 0xfe3f, 0xfe40, 0x300c, 0x300d, 0xfe41, +0xfe42, 0x300e, 0x300f, 0xfe43, 0xfe44, 0xfe59, 0xfe5a, +94, 0xa1a1, +0xfe5b, 0xfe5c, 0xfe5d, 0xfe5e, 0x2018, 0x2019, 0x201c, 0x201d, +0x301d, 0x301e, 0x2035, 0x2032, 0xff03, 0xff06, 0xff0a, 0x203b, +0x00a7, 0x3003, 0x25cb, 0x25cf, 0x25b3, 0x25b2, 0x25ce, 0x2606, +0x2605, 0x25c7, 0x25c6, 0x25a1, 0x25a0, 0x25bd, 0x25bc, 0x32a3, +0x2105, 0x00af, 0xffe3, 0xff3f, 0x02cd, 0xfe49, 0xfe4a, 0xfe4d, +0xfe4e, 0xfe4b, 0xfe4c, 0xfe5f, 0xfe60, 0xfe61, 0xff0b, 0xff0d, +0x00d7, 0x00f7, 0x00b1, 0x221a, 0xff1c, 0xff1e, 0xff1d, 0x2266, +0x2267, 0x2260, 0x221e, 0x2252, 0x2261, 0xfe62, 0xfe63, 0xfe64, +0xfe65, 0xfe66, 0xff5e, 0x2229, 0x222a, 0x22a5, 0x2220, 0x221f, +0x22bf, 0x33d2, 0x33d1, 0x222b, 0x222e, 0x2235, 0x2234, 0x2640, +0x2642, 0x2295, 0x2299, 0x2191, 0x2193, 0x2190, 0x2192, 0x2196, +0x2197, 0x2199, 0x2198, 0x2225, 0x2223, 0xff0f, +63, 0xa240, +0xff3c, 0x2215, 0xfe68, 0xff04, 0xffe5, 0x3012, 0xffe0, 0xffe1, +0xff05, 0xff20, 0x2103, 0x2109, 0xfe69, 0xfe6a, 0xfe6b, 0x33d5, +0x339c, 0x339d, 0x339e, 0x33ce, 0x33a1, 0x338e, 0x338f, 0x33c4, +0x00b0, 0x5159, 0x515b, 0x515e, 0x515d, 0x5161, 0x5163, 0x55e7, +0x74e9, 0x7cce, 0x2581, 0x2582, 0x2583, 0x2584, 0x2585, 0x2586, +0x2587, 0x2588, 0x258f, 0x258e, 0x258d, 0x258c, 0x258b, 0x258a, +0x2589, 0x253c, 0x2534, 0x252c, 0x2524, 0x251c, 0x2594, 0x2500, +0x2502, 0x2595, 0x250c, 0x2510, 0x2514, 0x2518, 0x256d, +43, 0xa2a1, +0x256e, 0x2570, 0x256f, 0x2550, 0x255e, 0x256a, 0x2561, 0x25e2, +0x25e3, 0x25e5, 0x25e4, 0x2571, 0x2572, 0x2573, 0xff10, 0xff11, +0xff12, 0xff13, 0xff14, 0xff15, 0xff16, 0xff17, 0xff18, 0xff19, +0x2160, 0x2161, 0x2162, 0x2163, 0x2164, 0x2165, 0x2166, 0x2167, +0x2168, 0x2169, 0x3021, 0x3022, 0x3023, 0x3024, 0x3025, 0x3026, +0x3027, 0x3028, 0x3029, +1, 0xa2cd, +0x5344, +48, 0xa2cf, +0xff21, 0xff22, 0xff23, 0xff24, 0xff25, 0xff26, 0xff27, 0xff28, +0xff29, 0xff2a, 0xff2b, 0xff2c, 0xff2d, 0xff2e, 0xff2f, 0xff30, +0xff31, 0xff32, 0xff33, 0xff34, 0xff35, 0xff36, 0xff37, 0xff38, +0xff39, 0xff3a, 0xff41, 0xff42, 0xff43, 0xff44, 0xff45, 0xff46, +0xff47, 0xff48, 0xff49, 0xff4a, 0xff4b, 0xff4c, 0xff4d, 0xff4e, +0xff4f, 0xff50, 0xff51, 0xff52, 0xff53, 0xff54, 0xff55, 0xff56, +63, 0xa340, +0xff57, 0xff58, 0xff59, 0xff5a, 0x0391, 0x0392, 0x0393, 0x0394, +0x0395, 0x0396, 0x0397, 0x0398, 0x0399, 0x039a, 0x039b, 0x039c, +0x039d, 0x039e, 0x039f, 0x03a0, 0x03a1, 0x03a3, 0x03a4, 0x03a5, +0x03a6, 0x03a7, 0x03a8, 0x03a9, 0x03b1, 0x03b2, 0x03b3, 0x03b4, +0x03b5, 0x03b6, 0x03b7, 0x03b8, 0x03b9, 0x03ba, 0x03bb, 0x03bc, +0x03bd, 0x03be, 0x03bf, 0x03c0, 0x03c1, 0x03c3, 0x03c4, 0x03c5, +0x03c6, 0x03c7, 0x03c8, 0x03c9, 0x3105, 0x3106, 0x3107, 0x3108, +0x3109, 0x310a, 0x310b, 0x310c, 0x310d, 0x310e, 0x310f, +31, 0xa3a1, +0x3110, 0x3111, 0x3112, 0x3113, 0x3114, 0x3115, 0x3116, 0x3117, +0x3118, 0x3119, 0x311a, 0x311b, 0x311c, 0x311d, 0x311e, 0x311f, +0x3120, 0x3121, 0x3122, 0x3123, 0x3124, 0x3125, 0x3126, 0x3127, +0x3128, 0x3129, 0x02d9, 0x02c9, 0x02ca, 0x02c7, 0x02cb, +63, 0xa440, +0x4e00, 0x4e59, 0x4e01, 0x4e03, 0x4e43, 0x4e5d, 0x4e86, 0x4e8c, +0x4eba, 0x513f, 0x5165, 0x516b, 0x51e0, 0x5200, 0x5201, 0x529b, +0x5315, 0x5341, 0x535c, 0x53c8, 0x4e09, 0x4e0b, 0x4e08, 0x4e0a, +0x4e2b, 0x4e38, 0x51e1, 0x4e45, 0x4e48, 0x4e5f, 0x4e5e, 0x4e8e, +0x4ea1, 0x5140, 0x5203, 0x52fa, 0x5343, 0x53c9, 0x53e3, 0x571f, +0x58eb, 0x5915, 0x5927, 0x5973, 0x5b50, 0x5b51, 0x5b53, 0x5bf8, +0x5c0f, 0x5c22, 0x5c38, 0x5c71, 0x5ddd, 0x5de5, 0x5df1, 0x5df2, +0x5df3, 0x5dfe, 0x5e72, 0x5efe, 0x5f0b, 0x5f13, 0x624d, +94, 0xa4a1, +0x4e11, 0x4e10, 0x4e0d, 0x4e2d, 0x4e30, 0x4e39, 0x4e4b, 0x5c39, +0x4e88, 0x4e91, 0x4e95, 0x4e92, 0x4e94, 0x4ea2, 0x4ec1, 0x4ec0, +0x4ec3, 0x4ec6, 0x4ec7, 0x4ecd, 0x4eca, 0x4ecb, 0x4ec4, 0x5143, +0x5141, 0x5167, 0x516d, 0x516e, 0x516c, 0x5197, 0x51f6, 0x5206, +0x5207, 0x5208, 0x52fb, 0x52fe, 0x52ff, 0x5316, 0x5339, 0x5348, +0x5347, 0x5345, 0x535e, 0x5384, 0x53cb, 0x53ca, 0x53cd, 0x58ec, +0x5929, 0x592b, 0x592a, 0x592d, 0x5b54, 0x5c11, 0x5c24, 0x5c3a, +0x5c6f, 0x5df4, 0x5e7b, 0x5eff, 0x5f14, 0x5f15, 0x5fc3, 0x6208, +0x6236, 0x624b, 0x624e, 0x652f, 0x6587, 0x6597, 0x65a4, 0x65b9, +0x65e5, 0x66f0, 0x6708, 0x6728, 0x6b20, 0x6b62, 0x6b79, 0x6bcb, +0x6bd4, 0x6bdb, 0x6c0f, 0x6c34, 0x706b, 0x722a, 0x7236, 0x723b, +0x7247, 0x7259, 0x725b, 0x72ac, 0x738b, 0x4e19, +63, 0xa540, +0x4e16, 0x4e15, 0x4e14, 0x4e18, 0x4e3b, 0x4e4d, 0x4e4f, 0x4e4e, +0x4ee5, 0x4ed8, 0x4ed4, 0x4ed5, 0x4ed6, 0x4ed7, 0x4ee3, 0x4ee4, +0x4ed9, 0x4ede, 0x5145, 0x5144, 0x5189, 0x518a, 0x51ac, 0x51f9, +0x51fa, 0x51f8, 0x520a, 0x52a0, 0x529f, 0x5305, 0x5306, 0x5317, +0x531d, 0x4edf, 0x534a, 0x5349, 0x5361, 0x5360, 0x536f, 0x536e, +0x53bb, 0x53ef, 0x53e4, 0x53f3, 0x53ec, 0x53ee, 0x53e9, 0x53e8, +0x53fc, 0x53f8, 0x53f5, 0x53eb, 0x53e6, 0x53ea, 0x53f2, 0x53f1, +0x53f0, 0x53e5, 0x53ed, 0x53fb, 0x56db, 0x56da, 0x5916, +94, 0xa5a1, +0x592e, 0x5931, 0x5974, 0x5976, 0x5b55, 0x5b83, 0x5c3c, 0x5de8, +0x5de7, 0x5de6, 0x5e02, 0x5e03, 0x5e73, 0x5e7c, 0x5f01, 0x5f18, +0x5f17, 0x5fc5, 0x620a, 0x6253, 0x6254, 0x6252, 0x6251, 0x65a5, +0x65e6, 0x672e, 0x672c, 0x672a, 0x672b, 0x672d, 0x6b63, 0x6bcd, +0x6c11, 0x6c10, 0x6c38, 0x6c41, 0x6c40, 0x6c3e, 0x72af, 0x7384, +0x7389, 0x74dc, 0x74e6, 0x7518, 0x751f, 0x7528, 0x7529, 0x7530, +0x7531, 0x7532, 0x7533, 0x758b, 0x767d, 0x76ae, 0x76bf, 0x76ee, +0x77db, 0x77e2, 0x77f3, 0x793a, 0x79be, 0x7a74, 0x7acb, 0x4e1e, +0x4e1f, 0x4e52, 0x4e53, 0x4e69, 0x4e99, 0x4ea4, 0x4ea6, 0x4ea5, +0x4eff, 0x4f09, 0x4f19, 0x4f0a, 0x4f15, 0x4f0d, 0x4f10, 0x4f11, +0x4f0f, 0x4ef2, 0x4ef6, 0x4efb, 0x4ef0, 0x4ef3, 0x4efd, 0x4f01, +0x4f0b, 0x5149, 0x5147, 0x5146, 0x5148, 0x5168, +63, 0xa640, +0x5171, 0x518d, 0x51b0, 0x5217, 0x5211, 0x5212, 0x520e, 0x5216, +0x52a3, 0x5308, 0x5321, 0x5320, 0x5370, 0x5371, 0x5409, 0x540f, +0x540c, 0x540a, 0x5410, 0x5401, 0x540b, 0x5404, 0x5411, 0x540d, +0x5408, 0x5403, 0x540e, 0x5406, 0x5412, 0x56e0, 0x56de, 0x56dd, +0x5733, 0x5730, 0x5728, 0x572d, 0x572c, 0x572f, 0x5729, 0x5919, +0x591a, 0x5937, 0x5938, 0x5984, 0x5978, 0x5983, 0x597d, 0x5979, +0x5982, 0x5981, 0x5b57, 0x5b58, 0x5b87, 0x5b88, 0x5b85, 0x5b89, +0x5bfa, 0x5c16, 0x5c79, 0x5dde, 0x5e06, 0x5e76, 0x5e74, +94, 0xa6a1, +0x5f0f, 0x5f1b, 0x5fd9, 0x5fd6, 0x620e, 0x620c, 0x620d, 0x6210, +0x6263, 0x625b, 0x6258, 0x6536, 0x65e9, 0x65e8, 0x65ec, 0x65ed, +0x66f2, 0x66f3, 0x6709, 0x673d, 0x6734, 0x6731, 0x6735, 0x6b21, +0x6b64, 0x6b7b, 0x6c16, 0x6c5d, 0x6c57, 0x6c59, 0x6c5f, 0x6c60, +0x6c50, 0x6c55, 0x6c61, 0x6c5b, 0x6c4d, 0x6c4e, 0x7070, 0x725f, +0x725d, 0x767e, 0x7af9, 0x7c73, 0x7cf8, 0x7f36, 0x7f8a, 0x7fbd, +0x8001, 0x8003, 0x800c, 0x8012, 0x8033, 0x807f, 0x8089, 0x808b, +0x808c, 0x81e3, 0x81ea, 0x81f3, 0x81fc, 0x820c, 0x821b, 0x821f, +0x826e, 0x8272, 0x827e, 0x866b, 0x8840, 0x884c, 0x8863, 0x897f, +0x9621, 0x4e32, 0x4ea8, 0x4f4d, 0x4f4f, 0x4f47, 0x4f57, 0x4f5e, +0x4f34, 0x4f5b, 0x4f55, 0x4f30, 0x4f50, 0x4f51, 0x4f3d, 0x4f3a, +0x4f38, 0x4f43, 0x4f54, 0x4f3c, 0x4f46, 0x4f63, +63, 0xa740, +0x4f5c, 0x4f60, 0x4f2f, 0x4f4e, 0x4f36, 0x4f59, 0x4f5d, 0x4f48, +0x4f5a, 0x514c, 0x514b, 0x514d, 0x5175, 0x51b6, 0x51b7, 0x5225, +0x5224, 0x5229, 0x522a, 0x5228, 0x52ab, 0x52a9, 0x52aa, 0x52ac, +0x5323, 0x5373, 0x5375, 0x541d, 0x542d, 0x541e, 0x543e, 0x5426, +0x544e, 0x5427, 0x5446, 0x5443, 0x5433, 0x5448, 0x5442, 0x541b, +0x5429, 0x544a, 0x5439, 0x543b, 0x5438, 0x542e, 0x5435, 0x5436, +0x5420, 0x543c, 0x5440, 0x5431, 0x542b, 0x541f, 0x542c, 0x56ea, +0x56f0, 0x56e4, 0x56eb, 0x574a, 0x5751, 0x5740, 0x574d, +94, 0xa7a1, +0x5747, 0x574e, 0x573e, 0x5750, 0x574f, 0x573b, 0x58ef, 0x593e, +0x599d, 0x5992, 0x59a8, 0x599e, 0x59a3, 0x5999, 0x5996, 0x598d, +0x59a4, 0x5993, 0x598a, 0x59a5, 0x5b5d, 0x5b5c, 0x5b5a, 0x5b5b, +0x5b8c, 0x5b8b, 0x5b8f, 0x5c2c, 0x5c40, 0x5c41, 0x5c3f, 0x5c3e, +0x5c90, 0x5c91, 0x5c94, 0x5c8c, 0x5deb, 0x5e0c, 0x5e8f, 0x5e87, +0x5e8a, 0x5ef7, 0x5f04, 0x5f1f, 0x5f64, 0x5f62, 0x5f77, 0x5f79, +0x5fd8, 0x5fcc, 0x5fd7, 0x5fcd, 0x5ff1, 0x5feb, 0x5ff8, 0x5fea, +0x6212, 0x6211, 0x6284, 0x6297, 0x6296, 0x6280, 0x6276, 0x6289, +0x626d, 0x628a, 0x627c, 0x627e, 0x6279, 0x6273, 0x6292, 0x626f, +0x6298, 0x626e, 0x6295, 0x6293, 0x6291, 0x6286, 0x6539, 0x653b, +0x6538, 0x65f1, 0x66f4, 0x675f, 0x674e, 0x674f, 0x6750, 0x6751, +0x675c, 0x6756, 0x675e, 0x6749, 0x6746, 0x6760, +63, 0xa840, +0x6753, 0x6757, 0x6b65, 0x6bcf, 0x6c42, 0x6c5e, 0x6c99, 0x6c81, +0x6c88, 0x6c89, 0x6c85, 0x6c9b, 0x6c6a, 0x6c7a, 0x6c90, 0x6c70, +0x6c8c, 0x6c68, 0x6c96, 0x6c92, 0x6c7d, 0x6c83, 0x6c72, 0x6c7e, +0x6c74, 0x6c86, 0x6c76, 0x6c8d, 0x6c94, 0x6c98, 0x6c82, 0x7076, +0x707c, 0x707d, 0x7078, 0x7262, 0x7261, 0x7260, 0x72c4, 0x72c2, +0x7396, 0x752c, 0x752b, 0x7537, 0x7538, 0x7682, 0x76ef, 0x77e3, +0x79c1, 0x79c0, 0x79bf, 0x7a76, 0x7cfb, 0x7f55, 0x8096, 0x8093, +0x809d, 0x8098, 0x809b, 0x809a, 0x80b2, 0x826f, 0x8292, +94, 0xa8a1, +0x828b, 0x828d, 0x898b, 0x89d2, 0x8a00, 0x8c37, 0x8c46, 0x8c55, +0x8c9d, 0x8d64, 0x8d70, 0x8db3, 0x8eab, 0x8eca, 0x8f9b, 0x8fb0, +0x8fc2, 0x8fc6, 0x8fc5, 0x8fc4, 0x5de1, 0x9091, 0x90a2, 0x90aa, +0x90a6, 0x90a3, 0x9149, 0x91c6, 0x91cc, 0x9632, 0x962e, 0x9631, +0x962a, 0x962c, 0x4e26, 0x4e56, 0x4e73, 0x4e8b, 0x4e9b, 0x4e9e, +0x4eab, 0x4eac, 0x4f6f, 0x4f9d, 0x4f8d, 0x4f73, 0x4f7f, 0x4f6c, +0x4f9b, 0x4f8b, 0x4f86, 0x4f83, 0x4f70, 0x4f75, 0x4f88, 0x4f69, +0x4f7b, 0x4f96, 0x4f7e, 0x4f8f, 0x4f91, 0x4f7a, 0x5154, 0x5152, +0x5155, 0x5169, 0x5177, 0x5176, 0x5178, 0x51bd, 0x51fd, 0x523b, +0x5238, 0x5237, 0x523a, 0x5230, 0x522e, 0x5236, 0x5241, 0x52be, +0x52bb, 0x5352, 0x5354, 0x5353, 0x5351, 0x5366, 0x5377, 0x5378, +0x5379, 0x53d6, 0x53d4, 0x53d7, 0x5473, 0x5475, +63, 0xa940, +0x5496, 0x5478, 0x5495, 0x5480, 0x547b, 0x5477, 0x5484, 0x5492, +0x5486, 0x547c, 0x5490, 0x5471, 0x5476, 0x548c, 0x549a, 0x5462, +0x5468, 0x548b, 0x547d, 0x548e, 0x56fa, 0x5783, 0x5777, 0x576a, +0x5769, 0x5761, 0x5766, 0x5764, 0x577c, 0x591c, 0x5949, 0x5947, +0x5948, 0x5944, 0x5954, 0x59be, 0x59bb, 0x59d4, 0x59b9, 0x59ae, +0x59d1, 0x59c6, 0x59d0, 0x59cd, 0x59cb, 0x59d3, 0x59ca, 0x59af, +0x59b3, 0x59d2, 0x59c5, 0x5b5f, 0x5b64, 0x5b63, 0x5b97, 0x5b9a, +0x5b98, 0x5b9c, 0x5b99, 0x5b9b, 0x5c1a, 0x5c48, 0x5c45, +94, 0xa9a1, +0x5c46, 0x5cb7, 0x5ca1, 0x5cb8, 0x5ca9, 0x5cab, 0x5cb1, 0x5cb3, +0x5e18, 0x5e1a, 0x5e16, 0x5e15, 0x5e1b, 0x5e11, 0x5e78, 0x5e9a, +0x5e97, 0x5e9c, 0x5e95, 0x5e96, 0x5ef6, 0x5f26, 0x5f27, 0x5f29, +0x5f80, 0x5f81, 0x5f7f, 0x5f7c, 0x5fdd, 0x5fe0, 0x5ffd, 0x5ff5, +0x5fff, 0x600f, 0x6014, 0x602f, 0x6035, 0x6016, 0x602a, 0x6015, +0x6021, 0x6027, 0x6029, 0x602b, 0x601b, 0x6216, 0x6215, 0x623f, +0x623e, 0x6240, 0x627f, 0x62c9, 0x62cc, 0x62c4, 0x62bf, 0x62c2, +0x62b9, 0x62d2, 0x62db, 0x62ab, 0x62d3, 0x62d4, 0x62cb, 0x62c8, +0x62a8, 0x62bd, 0x62bc, 0x62d0, 0x62d9, 0x62c7, 0x62cd, 0x62b5, +0x62da, 0x62b1, 0x62d8, 0x62d6, 0x62d7, 0x62c6, 0x62ac, 0x62ce, +0x653e, 0x65a7, 0x65bc, 0x65fa, 0x6614, 0x6613, 0x660c, 0x6606, +0x6602, 0x660e, 0x6600, 0x660f, 0x6615, 0x660a, +63, 0xaa40, +0x6607, 0x670d, 0x670b, 0x676d, 0x678b, 0x6795, 0x6771, 0x679c, +0x6773, 0x6777, 0x6787, 0x679d, 0x6797, 0x676f, 0x6770, 0x677f, +0x6789, 0x677e, 0x6790, 0x6775, 0x679a, 0x6793, 0x677c, 0x676a, +0x6772, 0x6b23, 0x6b66, 0x6b67, 0x6b7f, 0x6c13, 0x6c1b, 0x6ce3, +0x6ce8, 0x6cf3, 0x6cb1, 0x6ccc, 0x6ce5, 0x6cb3, 0x6cbd, 0x6cbe, +0x6cbc, 0x6ce2, 0x6cab, 0x6cd5, 0x6cd3, 0x6cb8, 0x6cc4, 0x6cb9, +0x6cc1, 0x6cae, 0x6cd7, 0x6cc5, 0x6cf1, 0x6cbf, 0x6cbb, 0x6ce1, +0x6cdb, 0x6cca, 0x6cac, 0x6cef, 0x6cdc, 0x6cd6, 0x6ce0, +94, 0xaaa1, +0x7095, 0x708e, 0x7092, 0x708a, 0x7099, 0x722c, 0x722d, 0x7238, +0x7248, 0x7267, 0x7269, 0x72c0, 0x72ce, 0x72d9, 0x72d7, 0x72d0, +0x73a9, 0x73a8, 0x739f, 0x73ab, 0x73a5, 0x753d, 0x759d, 0x7599, +0x759a, 0x7684, 0x76c2, 0x76f2, 0x76f4, 0x77e5, 0x77fd, 0x793e, +0x7940, 0x7941, 0x79c9, 0x79c8, 0x7a7a, 0x7a79, 0x7afa, 0x7cfe, +0x7f54, 0x7f8c, 0x7f8b, 0x8005, 0x80ba, 0x80a5, 0x80a2, 0x80b1, +0x80a1, 0x80ab, 0x80a9, 0x80b4, 0x80aa, 0x80af, 0x81e5, 0x81fe, +0x820d, 0x82b3, 0x829d, 0x8299, 0x82ad, 0x82bd, 0x829f, 0x82b9, +0x82b1, 0x82ac, 0x82a5, 0x82af, 0x82b8, 0x82a3, 0x82b0, 0x82be, +0x82b7, 0x864e, 0x8671, 0x521d, 0x8868, 0x8ecb, 0x8fce, 0x8fd4, +0x8fd1, 0x90b5, 0x90b8, 0x90b1, 0x90b6, 0x91c7, 0x91d1, 0x9577, +0x9580, 0x961c, 0x9640, 0x963f, 0x963b, 0x9644, +63, 0xab40, +0x9642, 0x96b9, 0x96e8, 0x9752, 0x975e, 0x4e9f, 0x4ead, 0x4eae, +0x4fe1, 0x4fb5, 0x4faf, 0x4fbf, 0x4fe0, 0x4fd1, 0x4fcf, 0x4fdd, +0x4fc3, 0x4fb6, 0x4fd8, 0x4fdf, 0x4fca, 0x4fd7, 0x4fae, 0x4fd0, +0x4fc4, 0x4fc2, 0x4fda, 0x4fce, 0x4fde, 0x4fb7, 0x5157, 0x5192, +0x5191, 0x51a0, 0x524e, 0x5243, 0x524a, 0x524d, 0x524c, 0x524b, +0x5247, 0x52c7, 0x52c9, 0x52c3, 0x52c1, 0x530d, 0x5357, 0x537b, +0x539a, 0x53db, 0x54ac, 0x54c0, 0x54a8, 0x54ce, 0x54c9, 0x54b8, +0x54a6, 0x54b3, 0x54c7, 0x54c2, 0x54bd, 0x54aa, 0x54c1, +94, 0xaba1, +0x54c4, 0x54c8, 0x54af, 0x54ab, 0x54b1, 0x54bb, 0x54a9, 0x54a7, +0x54bf, 0x56ff, 0x5782, 0x578b, 0x57a0, 0x57a3, 0x57a2, 0x57ce, +0x57ae, 0x5793, 0x5955, 0x5951, 0x594f, 0x594e, 0x5950, 0x59dc, +0x59d8, 0x59ff, 0x59e3, 0x59e8, 0x5a03, 0x59e5, 0x59ea, 0x59da, +0x59e6, 0x5a01, 0x59fb, 0x5b69, 0x5ba3, 0x5ba6, 0x5ba4, 0x5ba2, +0x5ba5, 0x5c01, 0x5c4e, 0x5c4f, 0x5c4d, 0x5c4b, 0x5cd9, 0x5cd2, +0x5df7, 0x5e1d, 0x5e25, 0x5e1f, 0x5e7d, 0x5ea0, 0x5ea6, 0x5efa, +0x5f08, 0x5f2d, 0x5f65, 0x5f88, 0x5f85, 0x5f8a, 0x5f8b, 0x5f87, +0x5f8c, 0x5f89, 0x6012, 0x601d, 0x6020, 0x6025, 0x600e, 0x6028, +0x604d, 0x6070, 0x6068, 0x6062, 0x6046, 0x6043, 0x606c, 0x606b, +0x606a, 0x6064, 0x6241, 0x62dc, 0x6316, 0x6309, 0x62fc, 0x62ed, +0x6301, 0x62ee, 0x62fd, 0x6307, 0x62f1, 0x62f7, +63, 0xac40, +0x62ef, 0x62ec, 0x62fe, 0x62f4, 0x6311, 0x6302, 0x653f, 0x6545, +0x65ab, 0x65bd, 0x65e2, 0x6625, 0x662d, 0x6620, 0x6627, 0x662f, +0x661f, 0x6628, 0x6631, 0x6624, 0x66f7, 0x67ff, 0x67d3, 0x67f1, +0x67d4, 0x67d0, 0x67ec, 0x67b6, 0x67af, 0x67f5, 0x67e9, 0x67ef, +0x67c4, 0x67d1, 0x67b4, 0x67da, 0x67e5, 0x67b8, 0x67cf, 0x67de, +0x67f3, 0x67b0, 0x67d9, 0x67e2, 0x67dd, 0x67d2, 0x6b6a, 0x6b83, +0x6b86, 0x6bb5, 0x6bd2, 0x6bd7, 0x6c1f, 0x6cc9, 0x6d0b, 0x6d32, +0x6d2a, 0x6d41, 0x6d25, 0x6d0c, 0x6d31, 0x6d1e, 0x6d17, +94, 0xaca1, +0x6d3b, 0x6d3d, 0x6d3e, 0x6d36, 0x6d1b, 0x6cf5, 0x6d39, 0x6d27, +0x6d38, 0x6d29, 0x6d2e, 0x6d35, 0x6d0e, 0x6d2b, 0x70ab, 0x70ba, +0x70b3, 0x70ac, 0x70af, 0x70ad, 0x70b8, 0x70ae, 0x70a4, 0x7230, +0x7272, 0x726f, 0x7274, 0x72e9, 0x72e0, 0x72e1, 0x73b7, 0x73ca, +0x73bb, 0x73b2, 0x73cd, 0x73c0, 0x73b3, 0x751a, 0x752d, 0x754f, +0x754c, 0x754e, 0x754b, 0x75ab, 0x75a4, 0x75a5, 0x75a2, 0x75a3, +0x7678, 0x7686, 0x7687, 0x7688, 0x76c8, 0x76c6, 0x76c3, 0x76c5, +0x7701, 0x76f9, 0x76f8, 0x7709, 0x770b, 0x76fe, 0x76fc, 0x7707, +0x77dc, 0x7802, 0x7814, 0x780c, 0x780d, 0x7946, 0x7949, 0x7948, +0x7947, 0x79b9, 0x79ba, 0x79d1, 0x79d2, 0x79cb, 0x7a7f, 0x7a81, +0x7aff, 0x7afd, 0x7c7d, 0x7d02, 0x7d05, 0x7d00, 0x7d09, 0x7d07, +0x7d04, 0x7d06, 0x7f38, 0x7f8e, 0x7fbf, 0x8004, +63, 0xad40, +0x8010, 0x800d, 0x8011, 0x8036, 0x80d6, 0x80e5, 0x80da, 0x80c3, +0x80c4, 0x80cc, 0x80e1, 0x80db, 0x80ce, 0x80de, 0x80e4, 0x80dd, +0x81f4, 0x8222, 0x82e7, 0x8303, 0x8305, 0x82e3, 0x82db, 0x82e6, +0x8304, 0x82e5, 0x8302, 0x8309, 0x82d2, 0x82d7, 0x82f1, 0x8301, +0x82dc, 0x82d4, 0x82d1, 0x82de, 0x82d3, 0x82df, 0x82ef, 0x8306, +0x8650, 0x8679, 0x867b, 0x867a, 0x884d, 0x886b, 0x8981, 0x89d4, +0x8a08, 0x8a02, 0x8a03, 0x8c9e, 0x8ca0, 0x8d74, 0x8d73, 0x8db4, +0x8ecd, 0x8ecc, 0x8ff0, 0x8fe6, 0x8fe2, 0x8fea, 0x8fe5, +94, 0xada1, +0x8fed, 0x8feb, 0x8fe4, 0x8fe8, 0x90ca, 0x90ce, 0x90c1, 0x90c3, +0x914b, 0x914a, 0x91cd, 0x9582, 0x9650, 0x964b, 0x964c, 0x964d, +0x9762, 0x9769, 0x97cb, 0x97ed, 0x97f3, 0x9801, 0x98a8, 0x98db, +0x98df, 0x9996, 0x9999, 0x4e58, 0x4eb3, 0x500c, 0x500d, 0x5023, +0x4fef, 0x5026, 0x5025, 0x4ff8, 0x5029, 0x5016, 0x5006, 0x503c, +0x501f, 0x501a, 0x5012, 0x5011, 0x4ffa, 0x5000, 0x5014, 0x5028, +0x4ff1, 0x5021, 0x500b, 0x5019, 0x5018, 0x4ff3, 0x4fee, 0x502d, +0x502a, 0x4ffe, 0x502b, 0x5009, 0x517c, 0x51a4, 0x51a5, 0x51a2, +0x51cd, 0x51cc, 0x51c6, 0x51cb, 0x5256, 0x525c, 0x5254, 0x525b, +0x525d, 0x532a, 0x537f, 0x539f, 0x539d, 0x53df, 0x54e8, 0x5510, +0x5501, 0x5537, 0x54fc, 0x54e5, 0x54f2, 0x5506, 0x54fa, 0x5514, +0x54e9, 0x54ed, 0x54e1, 0x5509, 0x54ee, 0x54ea, +63, 0xae40, +0x54e6, 0x5527, 0x5507, 0x54fd, 0x550f, 0x5703, 0x5704, 0x57c2, +0x57d4, 0x57cb, 0x57c3, 0x5809, 0x590f, 0x5957, 0x5958, 0x595a, +0x5a11, 0x5a18, 0x5a1c, 0x5a1f, 0x5a1b, 0x5a13, 0x59ec, 0x5a20, +0x5a23, 0x5a29, 0x5a25, 0x5a0c, 0x5a09, 0x5b6b, 0x5c58, 0x5bb0, +0x5bb3, 0x5bb6, 0x5bb4, 0x5bae, 0x5bb5, 0x5bb9, 0x5bb8, 0x5c04, +0x5c51, 0x5c55, 0x5c50, 0x5ced, 0x5cfd, 0x5cfb, 0x5cea, 0x5ce8, +0x5cf0, 0x5cf6, 0x5d01, 0x5cf4, 0x5dee, 0x5e2d, 0x5e2b, 0x5eab, +0x5ead, 0x5ea7, 0x5f31, 0x5f92, 0x5f91, 0x5f90, 0x6059, +94, 0xaea1, +0x6063, 0x6065, 0x6050, 0x6055, 0x606d, 0x6069, 0x606f, 0x6084, +0x609f, 0x609a, 0x608d, 0x6094, 0x608c, 0x6085, 0x6096, 0x6247, +0x62f3, 0x6308, 0x62ff, 0x634e, 0x633e, 0x632f, 0x6355, 0x6342, +0x6346, 0x634f, 0x6349, 0x633a, 0x6350, 0x633d, 0x632a, 0x632b, +0x6328, 0x634d, 0x634c, 0x6548, 0x6549, 0x6599, 0x65c1, 0x65c5, +0x6642, 0x6649, 0x664f, 0x6643, 0x6652, 0x664c, 0x6645, 0x6641, +0x66f8, 0x6714, 0x6715, 0x6717, 0x6821, 0x6838, 0x6848, 0x6846, +0x6853, 0x6839, 0x6842, 0x6854, 0x6829, 0x68b3, 0x6817, 0x684c, +0x6851, 0x683d, 0x67f4, 0x6850, 0x6840, 0x683c, 0x6843, 0x682a, +0x6845, 0x6813, 0x6818, 0x6841, 0x6b8a, 0x6b89, 0x6bb7, 0x6c23, +0x6c27, 0x6c28, 0x6c26, 0x6c24, 0x6cf0, 0x6d6a, 0x6d95, 0x6d88, +0x6d87, 0x6d66, 0x6d78, 0x6d77, 0x6d59, 0x6d93, +63, 0xaf40, +0x6d6c, 0x6d89, 0x6d6e, 0x6d5a, 0x6d74, 0x6d69, 0x6d8c, 0x6d8a, +0x6d79, 0x6d85, 0x6d65, 0x6d94, 0x70ca, 0x70d8, 0x70e4, 0x70d9, +0x70c8, 0x70cf, 0x7239, 0x7279, 0x72fc, 0x72f9, 0x72fd, 0x72f8, +0x72f7, 0x7386, 0x73ed, 0x7409, 0x73ee, 0x73e0, 0x73ea, 0x73de, +0x7554, 0x755d, 0x755c, 0x755a, 0x7559, 0x75be, 0x75c5, 0x75c7, +0x75b2, 0x75b3, 0x75bd, 0x75bc, 0x75b9, 0x75c2, 0x75b8, 0x768b, +0x76b0, 0x76ca, 0x76cd, 0x76ce, 0x7729, 0x771f, 0x7720, 0x7728, +0x77e9, 0x7830, 0x7827, 0x7838, 0x781d, 0x7834, 0x7837, +94, 0xafa1, +0x7825, 0x782d, 0x7820, 0x781f, 0x7832, 0x7955, 0x7950, 0x7960, +0x795f, 0x7956, 0x795e, 0x795d, 0x7957, 0x795a, 0x79e4, 0x79e3, +0x79e7, 0x79df, 0x79e6, 0x79e9, 0x79d8, 0x7a84, 0x7a88, 0x7ad9, +0x7b06, 0x7b11, 0x7c89, 0x7d21, 0x7d17, 0x7d0b, 0x7d0a, 0x7d20, +0x7d22, 0x7d14, 0x7d10, 0x7d15, 0x7d1a, 0x7d1c, 0x7d0d, 0x7d19, +0x7d1b, 0x7f3a, 0x7f5f, 0x7f94, 0x7fc5, 0x7fc1, 0x8006, 0x8018, +0x8015, 0x8019, 0x8017, 0x803d, 0x803f, 0x80f1, 0x8102, 0x80f0, +0x8105, 0x80ed, 0x80f4, 0x8106, 0x80f8, 0x80f3, 0x8108, 0x80fd, +0x810a, 0x80fc, 0x80ef, 0x81ed, 0x81ec, 0x8200, 0x8210, 0x822a, +0x822b, 0x8228, 0x822c, 0x82bb, 0x832b, 0x8352, 0x8354, 0x834a, +0x8338, 0x8350, 0x8349, 0x8335, 0x8334, 0x834f, 0x8332, 0x8339, +0x8336, 0x8317, 0x8340, 0x8331, 0x8328, 0x8343, +63, 0xb040, +0x8654, 0x868a, 0x86aa, 0x8693, 0x86a4, 0x86a9, 0x868c, 0x86a3, +0x869c, 0x8870, 0x8877, 0x8881, 0x8882, 0x887d, 0x8879, 0x8a18, +0x8a10, 0x8a0e, 0x8a0c, 0x8a15, 0x8a0a, 0x8a17, 0x8a13, 0x8a16, +0x8a0f, 0x8a11, 0x8c48, 0x8c7a, 0x8c79, 0x8ca1, 0x8ca2, 0x8d77, +0x8eac, 0x8ed2, 0x8ed4, 0x8ecf, 0x8fb1, 0x9001, 0x9006, 0x8ff7, +0x9000, 0x8ffa, 0x8ff4, 0x9003, 0x8ffd, 0x9005, 0x8ff8, 0x9095, +0x90e1, 0x90dd, 0x90e2, 0x9152, 0x914d, 0x914c, 0x91d8, 0x91dd, +0x91d7, 0x91dc, 0x91d9, 0x9583, 0x9662, 0x9663, 0x9661, +94, 0xb0a1, +0x965b, 0x965d, 0x9664, 0x9658, 0x965e, 0x96bb, 0x98e2, 0x99ac, +0x9aa8, 0x9ad8, 0x9b25, 0x9b32, 0x9b3c, 0x4e7e, 0x507a, 0x507d, +0x505c, 0x5047, 0x5043, 0x504c, 0x505a, 0x5049, 0x5065, 0x5076, +0x504e, 0x5055, 0x5075, 0x5074, 0x5077, 0x504f, 0x500f, 0x506f, +0x506d, 0x515c, 0x5195, 0x51f0, 0x526a, 0x526f, 0x52d2, 0x52d9, +0x52d8, 0x52d5, 0x5310, 0x530f, 0x5319, 0x533f, 0x5340, 0x533e, +0x53c3, 0x66fc, 0x5546, 0x556a, 0x5566, 0x5544, 0x555e, 0x5561, +0x5543, 0x554a, 0x5531, 0x5556, 0x554f, 0x5555, 0x552f, 0x5564, +0x5538, 0x552e, 0x555c, 0x552c, 0x5563, 0x5533, 0x5541, 0x5557, +0x5708, 0x570b, 0x5709, 0x57df, 0x5805, 0x580a, 0x5806, 0x57e0, +0x57e4, 0x57fa, 0x5802, 0x5835, 0x57f7, 0x57f9, 0x5920, 0x5962, +0x5a36, 0x5a41, 0x5a49, 0x5a66, 0x5a6a, 0x5a40, +63, 0xb140, +0x5a3c, 0x5a62, 0x5a5a, 0x5a46, 0x5a4a, 0x5b70, 0x5bc7, 0x5bc5, +0x5bc4, 0x5bc2, 0x5bbf, 0x5bc6, 0x5c09, 0x5c08, 0x5c07, 0x5c60, +0x5c5c, 0x5c5d, 0x5d07, 0x5d06, 0x5d0e, 0x5d1b, 0x5d16, 0x5d22, +0x5d11, 0x5d29, 0x5d14, 0x5d19, 0x5d24, 0x5d27, 0x5d17, 0x5de2, +0x5e38, 0x5e36, 0x5e33, 0x5e37, 0x5eb7, 0x5eb8, 0x5eb6, 0x5eb5, +0x5ebe, 0x5f35, 0x5f37, 0x5f57, 0x5f6c, 0x5f69, 0x5f6b, 0x5f97, +0x5f99, 0x5f9e, 0x5f98, 0x5fa1, 0x5fa0, 0x5f9c, 0x607f, 0x60a3, +0x6089, 0x60a0, 0x60a8, 0x60cb, 0x60b4, 0x60e6, 0x60bd, +94, 0xb1a1, +0x60c5, 0x60bb, 0x60b5, 0x60dc, 0x60bc, 0x60d8, 0x60d5, 0x60c6, +0x60df, 0x60b8, 0x60da, 0x60c7, 0x621a, 0x621b, 0x6248, 0x63a0, +0x63a7, 0x6372, 0x6396, 0x63a2, 0x63a5, 0x6377, 0x6367, 0x6398, +0x63aa, 0x6371, 0x63a9, 0x6389, 0x6383, 0x639b, 0x636b, 0x63a8, +0x6384, 0x6388, 0x6399, 0x63a1, 0x63ac, 0x6392, 0x638f, 0x6380, +0x637b, 0x6369, 0x6368, 0x637a, 0x655d, 0x6556, 0x6551, 0x6559, +0x6557, 0x555f, 0x654f, 0x6558, 0x6555, 0x6554, 0x659c, 0x659b, +0x65ac, 0x65cf, 0x65cb, 0x65cc, 0x65ce, 0x665d, 0x665a, 0x6664, +0x6668, 0x6666, 0x665e, 0x66f9, 0x52d7, 0x671b, 0x6881, 0x68af, +0x68a2, 0x6893, 0x68b5, 0x687f, 0x6876, 0x68b1, 0x68a7, 0x6897, +0x68b0, 0x6883, 0x68c4, 0x68ad, 0x6886, 0x6885, 0x6894, 0x689d, +0x68a8, 0x689f, 0x68a1, 0x6882, 0x6b32, 0x6bba, +63, 0xb240, +0x6beb, 0x6bec, 0x6c2b, 0x6d8e, 0x6dbc, 0x6df3, 0x6dd9, 0x6db2, +0x6de1, 0x6dcc, 0x6de4, 0x6dfb, 0x6dfa, 0x6e05, 0x6dc7, 0x6dcb, +0x6daf, 0x6dd1, 0x6dae, 0x6dde, 0x6df9, 0x6db8, 0x6df7, 0x6df5, +0x6dc5, 0x6dd2, 0x6e1a, 0x6db5, 0x6dda, 0x6deb, 0x6dd8, 0x6dea, +0x6df1, 0x6dee, 0x6de8, 0x6dc6, 0x6dc4, 0x6daa, 0x6dec, 0x6dbf, +0x6de6, 0x70f9, 0x7109, 0x710a, 0x70fd, 0x70ef, 0x723d, 0x727d, +0x7281, 0x731c, 0x731b, 0x7316, 0x7313, 0x7319, 0x7387, 0x7405, +0x740a, 0x7403, 0x7406, 0x73fe, 0x740d, 0x74e0, 0x74f6, +94, 0xb2a1, +0x74f7, 0x751c, 0x7522, 0x7565, 0x7566, 0x7562, 0x7570, 0x758f, +0x75d4, 0x75d5, 0x75b5, 0x75ca, 0x75cd, 0x768e, 0x76d4, 0x76d2, +0x76db, 0x7737, 0x773e, 0x773c, 0x7736, 0x7738, 0x773a, 0x786b, +0x7843, 0x784e, 0x7965, 0x7968, 0x796d, 0x79fb, 0x7a92, 0x7a95, +0x7b20, 0x7b28, 0x7b1b, 0x7b2c, 0x7b26, 0x7b19, 0x7b1e, 0x7b2e, +0x7c92, 0x7c97, 0x7c95, 0x7d46, 0x7d43, 0x7d71, 0x7d2e, 0x7d39, +0x7d3c, 0x7d40, 0x7d30, 0x7d33, 0x7d44, 0x7d2f, 0x7d42, 0x7d32, +0x7d31, 0x7f3d, 0x7f9e, 0x7f9a, 0x7fcc, 0x7fce, 0x7fd2, 0x801c, +0x804a, 0x8046, 0x812f, 0x8116, 0x8123, 0x812b, 0x8129, 0x8130, +0x8124, 0x8202, 0x8235, 0x8237, 0x8236, 0x8239, 0x838e, 0x839e, +0x8398, 0x8378, 0x83a2, 0x8396, 0x83bd, 0x83ab, 0x8392, 0x838a, +0x8393, 0x8389, 0x83a0, 0x8377, 0x837b, 0x837c, +63, 0xb340, +0x8386, 0x83a7, 0x8655, 0x5f6a, 0x86c7, 0x86c0, 0x86b6, 0x86c4, +0x86b5, 0x86c6, 0x86cb, 0x86b1, 0x86af, 0x86c9, 0x8853, 0x889e, +0x8888, 0x88ab, 0x8892, 0x8896, 0x888d, 0x888b, 0x8993, 0x898f, +0x8a2a, 0x8a1d, 0x8a23, 0x8a25, 0x8a31, 0x8a2d, 0x8a1f, 0x8a1b, +0x8a22, 0x8c49, 0x8c5a, 0x8ca9, 0x8cac, 0x8cab, 0x8ca8, 0x8caa, +0x8ca7, 0x8d67, 0x8d66, 0x8dbe, 0x8dba, 0x8edb, 0x8edf, 0x9019, +0x900d, 0x901a, 0x9017, 0x9023, 0x901f, 0x901d, 0x9010, 0x9015, +0x901e, 0x9020, 0x900f, 0x9022, 0x9016, 0x901b, 0x9014, +94, 0xb3a1, +0x90e8, 0x90ed, 0x90fd, 0x9157, 0x91ce, 0x91f5, 0x91e6, 0x91e3, +0x91e7, 0x91ed, 0x91e9, 0x9589, 0x966a, 0x9675, 0x9673, 0x9678, +0x9670, 0x9674, 0x9676, 0x9677, 0x966c, 0x96c0, 0x96ea, 0x96e9, +0x7ae0, 0x7adf, 0x9802, 0x9803, 0x9b5a, 0x9ce5, 0x9e75, 0x9e7f, +0x9ea5, 0x9ebb, 0x50a2, 0x508d, 0x5085, 0x5099, 0x5091, 0x5080, +0x5096, 0x5098, 0x509a, 0x6700, 0x51f1, 0x5272, 0x5274, 0x5275, +0x5269, 0x52de, 0x52dd, 0x52db, 0x535a, 0x53a5, 0x557b, 0x5580, +0x55a7, 0x557c, 0x558a, 0x559d, 0x5598, 0x5582, 0x559c, 0x55aa, +0x5594, 0x5587, 0x558b, 0x5583, 0x55b3, 0x55ae, 0x559f, 0x553e, +0x55b2, 0x559a, 0x55bb, 0x55ac, 0x55b1, 0x557e, 0x5589, 0x55ab, +0x5599, 0x570d, 0x582f, 0x582a, 0x5834, 0x5824, 0x5830, 0x5831, +0x5821, 0x581d, 0x5820, 0x58f9, 0x58fa, 0x5960, +63, 0xb440, +0x5a77, 0x5a9a, 0x5a7f, 0x5a92, 0x5a9b, 0x5aa7, 0x5b73, 0x5b71, +0x5bd2, 0x5bcc, 0x5bd3, 0x5bd0, 0x5c0a, 0x5c0b, 0x5c31, 0x5d4c, +0x5d50, 0x5d34, 0x5d47, 0x5dfd, 0x5e45, 0x5e3d, 0x5e40, 0x5e43, +0x5e7e, 0x5eca, 0x5ec1, 0x5ec2, 0x5ec4, 0x5f3c, 0x5f6d, 0x5fa9, +0x5faa, 0x5fa8, 0x60d1, 0x60e1, 0x60b2, 0x60b6, 0x60e0, 0x611c, +0x6123, 0x60fa, 0x6115, 0x60f0, 0x60fb, 0x60f4, 0x6168, 0x60f1, +0x610e, 0x60f6, 0x6109, 0x6100, 0x6112, 0x621f, 0x6249, 0x63a3, +0x638c, 0x63cf, 0x63c0, 0x63e9, 0x63c9, 0x63c6, 0x63cd, +94, 0xb4a1, +0x63d2, 0x63e3, 0x63d0, 0x63e1, 0x63d6, 0x63ed, 0x63ee, 0x6376, +0x63f4, 0x63ea, 0x63db, 0x6452, 0x63da, 0x63f9, 0x655e, 0x6566, +0x6562, 0x6563, 0x6591, 0x6590, 0x65af, 0x666e, 0x6670, 0x6674, +0x6676, 0x666f, 0x6691, 0x667a, 0x667e, 0x6677, 0x66fe, 0x66ff, +0x671f, 0x671d, 0x68fa, 0x68d5, 0x68e0, 0x68d8, 0x68d7, 0x6905, +0x68df, 0x68f5, 0x68ee, 0x68e7, 0x68f9, 0x68d2, 0x68f2, 0x68e3, +0x68cb, 0x68cd, 0x690d, 0x6912, 0x690e, 0x68c9, 0x68da, 0x696e, +0x68fb, 0x6b3e, 0x6b3a, 0x6b3d, 0x6b98, 0x6b96, 0x6bbc, 0x6bef, +0x6c2e, 0x6c2f, 0x6c2c, 0x6e2f, 0x6e38, 0x6e54, 0x6e21, 0x6e32, +0x6e67, 0x6e4a, 0x6e20, 0x6e25, 0x6e23, 0x6e1b, 0x6e5b, 0x6e58, +0x6e24, 0x6e56, 0x6e6e, 0x6e2d, 0x6e26, 0x6e6f, 0x6e34, 0x6e4d, +0x6e3a, 0x6e2c, 0x6e43, 0x6e1d, 0x6e3e, 0x6ecb, +63, 0xb540, +0x6e89, 0x6e19, 0x6e4e, 0x6e63, 0x6e44, 0x6e72, 0x6e69, 0x6e5f, +0x7119, 0x711a, 0x7126, 0x7130, 0x7121, 0x7136, 0x716e, 0x711c, +0x724c, 0x7284, 0x7280, 0x7336, 0x7325, 0x7334, 0x7329, 0x743a, +0x742a, 0x7433, 0x7422, 0x7425, 0x7435, 0x7436, 0x7434, 0x742f, +0x741b, 0x7426, 0x7428, 0x7525, 0x7526, 0x756b, 0x756a, 0x75e2, +0x75db, 0x75e3, 0x75d9, 0x75d8, 0x75de, 0x75e0, 0x767b, 0x767c, +0x7696, 0x7693, 0x76b4, 0x76dc, 0x774f, 0x77ed, 0x785d, 0x786c, +0x786f, 0x7a0d, 0x7a08, 0x7a0b, 0x7a05, 0x7a00, 0x7a98, +94, 0xb5a1, +0x7a97, 0x7a96, 0x7ae5, 0x7ae3, 0x7b49, 0x7b56, 0x7b46, 0x7b50, +0x7b52, 0x7b54, 0x7b4d, 0x7b4b, 0x7b4f, 0x7b51, 0x7c9f, 0x7ca5, +0x7d5e, 0x7d50, 0x7d68, 0x7d55, 0x7d2b, 0x7d6e, 0x7d72, 0x7d61, +0x7d66, 0x7d62, 0x7d70, 0x7d73, 0x5584, 0x7fd4, 0x7fd5, 0x800b, +0x8052, 0x8085, 0x8155, 0x8154, 0x814b, 0x8151, 0x814e, 0x8139, +0x8146, 0x813e, 0x814c, 0x8153, 0x8174, 0x8212, 0x821c, 0x83e9, +0x8403, 0x83f8, 0x840d, 0x83e0, 0x83c5, 0x840b, 0x83c1, 0x83ef, +0x83f1, 0x83f4, 0x8457, 0x840a, 0x83f0, 0x840c, 0x83cc, 0x83fd, +0x83f2, 0x83ca, 0x8438, 0x840e, 0x8404, 0x83dc, 0x8407, 0x83d4, +0x83df, 0x865b, 0x86df, 0x86d9, 0x86ed, 0x86d4, 0x86db, 0x86e4, +0x86d0, 0x86de, 0x8857, 0x88c1, 0x88c2, 0x88b1, 0x8983, 0x8996, +0x8a3b, 0x8a60, 0x8a55, 0x8a5e, 0x8a3c, 0x8a41, +63, 0xb640, +0x8a54, 0x8a5b, 0x8a50, 0x8a46, 0x8a34, 0x8a3a, 0x8a36, 0x8a56, +0x8c61, 0x8c82, 0x8caf, 0x8cbc, 0x8cb3, 0x8cbd, 0x8cc1, 0x8cbb, +0x8cc0, 0x8cb4, 0x8cb7, 0x8cb6, 0x8cbf, 0x8cb8, 0x8d8a, 0x8d85, +0x8d81, 0x8dce, 0x8ddd, 0x8dcb, 0x8dda, 0x8dd1, 0x8dcc, 0x8ddb, +0x8dc6, 0x8efb, 0x8ef8, 0x8efc, 0x8f9c, 0x902e, 0x9035, 0x9031, +0x9038, 0x9032, 0x9036, 0x9102, 0x90f5, 0x9109, 0x90fe, 0x9163, +0x9165, 0x91cf, 0x9214, 0x9215, 0x9223, 0x9209, 0x921e, 0x920d, +0x9210, 0x9207, 0x9211, 0x9594, 0x958f, 0x958b, 0x9591, +94, 0xb6a1, +0x9593, 0x9592, 0x958e, 0x968a, 0x968e, 0x968b, 0x967d, 0x9685, +0x9686, 0x968d, 0x9672, 0x9684, 0x96c1, 0x96c5, 0x96c4, 0x96c6, +0x96c7, 0x96ef, 0x96f2, 0x97cc, 0x9805, 0x9806, 0x9808, 0x98e7, +0x98ea, 0x98ef, 0x98e9, 0x98f2, 0x98ed, 0x99ae, 0x99ad, 0x9ec3, +0x9ecd, 0x9ed1, 0x4e82, 0x50ad, 0x50b5, 0x50b2, 0x50b3, 0x50c5, +0x50be, 0x50ac, 0x50b7, 0x50bb, 0x50af, 0x50c7, 0x527f, 0x5277, +0x527d, 0x52df, 0x52e6, 0x52e4, 0x52e2, 0x52e3, 0x532f, 0x55df, +0x55e8, 0x55d3, 0x55e6, 0x55ce, 0x55dc, 0x55c7, 0x55d1, 0x55e3, +0x55e4, 0x55ef, 0x55da, 0x55e1, 0x55c5, 0x55c6, 0x55e5, 0x55c9, +0x5712, 0x5713, 0x585e, 0x5851, 0x5858, 0x5857, 0x585a, 0x5854, +0x586b, 0x584c, 0x586d, 0x584a, 0x5862, 0x5852, 0x584b, 0x5967, +0x5ac1, 0x5ac9, 0x5acc, 0x5abe, 0x5abd, 0x5abc, +63, 0xb740, +0x5ab3, 0x5ac2, 0x5ab2, 0x5d69, 0x5d6f, 0x5e4c, 0x5e79, 0x5ec9, +0x5ec8, 0x5f12, 0x5f59, 0x5fac, 0x5fae, 0x611a, 0x610f, 0x6148, +0x611f, 0x60f3, 0x611b, 0x60f9, 0x6101, 0x6108, 0x614e, 0x614c, +0x6144, 0x614d, 0x613e, 0x6134, 0x6127, 0x610d, 0x6106, 0x6137, +0x6221, 0x6222, 0x6413, 0x643e, 0x641e, 0x642a, 0x642d, 0x643d, +0x642c, 0x640f, 0x641c, 0x6414, 0x640d, 0x6436, 0x6416, 0x6417, +0x6406, 0x656c, 0x659f, 0x65b0, 0x6697, 0x6689, 0x6687, 0x6688, +0x6696, 0x6684, 0x6698, 0x668d, 0x6703, 0x6994, 0x696d, +94, 0xb7a1, +0x695a, 0x6977, 0x6960, 0x6954, 0x6975, 0x6930, 0x6982, 0x694a, +0x6968, 0x696b, 0x695e, 0x6953, 0x6979, 0x6986, 0x695d, 0x6963, +0x695b, 0x6b47, 0x6b72, 0x6bc0, 0x6bbf, 0x6bd3, 0x6bfd, 0x6ea2, +0x6eaf, 0x6ed3, 0x6eb6, 0x6ec2, 0x6e90, 0x6e9d, 0x6ec7, 0x6ec5, +0x6ea5, 0x6e98, 0x6ebc, 0x6eba, 0x6eab, 0x6ed1, 0x6e96, 0x6e9c, +0x6ec4, 0x6ed4, 0x6eaa, 0x6ea7, 0x6eb4, 0x714e, 0x7159, 0x7169, +0x7164, 0x7149, 0x7167, 0x715c, 0x716c, 0x7166, 0x714c, 0x7165, +0x715e, 0x7146, 0x7168, 0x7156, 0x723a, 0x7252, 0x7337, 0x7345, +0x733f, 0x733e, 0x746f, 0x745a, 0x7455, 0x745f, 0x745e, 0x7441, +0x743f, 0x7459, 0x745b, 0x745c, 0x7576, 0x7578, 0x7600, 0x75f0, +0x7601, 0x75f2, 0x75f1, 0x75fa, 0x75ff, 0x75f4, 0x75f3, 0x76de, +0x76df, 0x775b, 0x776b, 0x7766, 0x775e, 0x7763, +63, 0xb840, +0x7779, 0x776a, 0x776c, 0x775c, 0x7765, 0x7768, 0x7762, 0x77ee, +0x788e, 0x78b0, 0x7897, 0x7898, 0x788c, 0x7889, 0x787c, 0x7891, +0x7893, 0x787f, 0x797a, 0x797f, 0x7981, 0x842c, 0x79bd, 0x7a1c, +0x7a1a, 0x7a20, 0x7a14, 0x7a1f, 0x7a1e, 0x7a9f, 0x7aa0, 0x7b77, +0x7bc0, 0x7b60, 0x7b6e, 0x7b67, 0x7cb1, 0x7cb3, 0x7cb5, 0x7d93, +0x7d79, 0x7d91, 0x7d81, 0x7d8f, 0x7d5b, 0x7f6e, 0x7f69, 0x7f6a, +0x7f72, 0x7fa9, 0x7fa8, 0x7fa4, 0x8056, 0x8058, 0x8086, 0x8084, +0x8171, 0x8170, 0x8178, 0x8165, 0x816e, 0x8173, 0x816b, +94, 0xb8a1, +0x8179, 0x817a, 0x8166, 0x8205, 0x8247, 0x8482, 0x8477, 0x843d, +0x8431, 0x8475, 0x8466, 0x846b, 0x8449, 0x846c, 0x845b, 0x843c, +0x8435, 0x8461, 0x8463, 0x8469, 0x846d, 0x8446, 0x865e, 0x865c, +0x865f, 0x86f9, 0x8713, 0x8708, 0x8707, 0x8700, 0x86fe, 0x86fb, +0x8702, 0x8703, 0x8706, 0x870a, 0x8859, 0x88df, 0x88d4, 0x88d9, +0x88dc, 0x88d8, 0x88dd, 0x88e1, 0x88ca, 0x88d5, 0x88d2, 0x899c, +0x89e3, 0x8a6b, 0x8a72, 0x8a73, 0x8a66, 0x8a69, 0x8a70, 0x8a87, +0x8a7c, 0x8a63, 0x8aa0, 0x8a71, 0x8a85, 0x8a6d, 0x8a62, 0x8a6e, +0x8a6c, 0x8a79, 0x8a7b, 0x8a3e, 0x8a68, 0x8c62, 0x8c8a, 0x8c89, +0x8cca, 0x8cc7, 0x8cc8, 0x8cc4, 0x8cb2, 0x8cc3, 0x8cc2, 0x8cc5, +0x8de1, 0x8ddf, 0x8de8, 0x8def, 0x8df3, 0x8dfa, 0x8dea, 0x8de4, +0x8de6, 0x8eb2, 0x8f03, 0x8f09, 0x8efe, 0x8f0a, +63, 0xb940, +0x8f9f, 0x8fb2, 0x904b, 0x904a, 0x9053, 0x9042, 0x9054, 0x903c, +0x9055, 0x9050, 0x9047, 0x904f, 0x904e, 0x904d, 0x9051, 0x903e, +0x9041, 0x9112, 0x9117, 0x916c, 0x916a, 0x9169, 0x91c9, 0x9237, +0x9257, 0x9238, 0x923d, 0x9240, 0x923e, 0x925b, 0x924b, 0x9264, +0x9251, 0x9234, 0x9249, 0x924d, 0x9245, 0x9239, 0x923f, 0x925a, +0x9598, 0x9698, 0x9694, 0x9695, 0x96cd, 0x96cb, 0x96c9, 0x96ca, +0x96f7, 0x96fb, 0x96f9, 0x96f6, 0x9756, 0x9774, 0x9776, 0x9810, +0x9811, 0x9813, 0x980a, 0x9812, 0x980c, 0x98fc, 0x98f4, +94, 0xb9a1, +0x98fd, 0x98fe, 0x99b3, 0x99b1, 0x99b4, 0x9ae1, 0x9ce9, 0x9e82, +0x9f0e, 0x9f13, 0x9f20, 0x50e7, 0x50ee, 0x50e5, 0x50d6, 0x50ed, +0x50da, 0x50d5, 0x50cf, 0x50d1, 0x50f1, 0x50ce, 0x50e9, 0x5162, +0x51f3, 0x5283, 0x5282, 0x5331, 0x53ad, 0x55fe, 0x5600, 0x561b, +0x5617, 0x55fd, 0x5614, 0x5606, 0x5609, 0x560d, 0x560e, 0x55f7, +0x5616, 0x561f, 0x5608, 0x5610, 0x55f6, 0x5718, 0x5716, 0x5875, +0x587e, 0x5883, 0x5893, 0x588a, 0x5879, 0x5885, 0x587d, 0x58fd, +0x5925, 0x5922, 0x5924, 0x596a, 0x5969, 0x5ae1, 0x5ae6, 0x5ae9, +0x5ad7, 0x5ad6, 0x5ad8, 0x5ae3, 0x5b75, 0x5bde, 0x5be7, 0x5be1, +0x5be5, 0x5be6, 0x5be8, 0x5be2, 0x5be4, 0x5bdf, 0x5c0d, 0x5c62, +0x5d84, 0x5d87, 0x5e5b, 0x5e63, 0x5e55, 0x5e57, 0x5e54, 0x5ed3, +0x5ed6, 0x5f0a, 0x5f46, 0x5f70, 0x5fb9, 0x6147, +63, 0xba40, +0x613f, 0x614b, 0x6177, 0x6162, 0x6163, 0x615f, 0x615a, 0x6158, +0x6175, 0x622a, 0x6487, 0x6458, 0x6454, 0x64a4, 0x6478, 0x645f, +0x647a, 0x6451, 0x6467, 0x6434, 0x646d, 0x647b, 0x6572, 0x65a1, +0x65d7, 0x65d6, 0x66a2, 0x66a8, 0x669d, 0x699c, 0x69a8, 0x6995, +0x69c1, 0x69ae, 0x69d3, 0x69cb, 0x699b, 0x69b7, 0x69bb, 0x69ab, +0x69b4, 0x69d0, 0x69cd, 0x69ad, 0x69cc, 0x69a6, 0x69c3, 0x69a3, +0x6b49, 0x6b4c, 0x6c33, 0x6f33, 0x6f14, 0x6efe, 0x6f13, 0x6ef4, +0x6f29, 0x6f3e, 0x6f20, 0x6f2c, 0x6f0f, 0x6f02, 0x6f22, +94, 0xbaa1, +0x6eff, 0x6eef, 0x6f06, 0x6f31, 0x6f38, 0x6f32, 0x6f23, 0x6f15, +0x6f2b, 0x6f2f, 0x6f88, 0x6f2a, 0x6eec, 0x6f01, 0x6ef2, 0x6ecc, +0x6ef7, 0x7194, 0x7199, 0x717d, 0x718a, 0x7184, 0x7192, 0x723e, +0x7292, 0x7296, 0x7344, 0x7350, 0x7464, 0x7463, 0x746a, 0x7470, +0x746d, 0x7504, 0x7591, 0x7627, 0x760d, 0x760b, 0x7609, 0x7613, +0x76e1, 0x76e3, 0x7784, 0x777d, 0x777f, 0x7761, 0x78c1, 0x789f, +0x78a7, 0x78b3, 0x78a9, 0x78a3, 0x798e, 0x798f, 0x798d, 0x7a2e, +0x7a31, 0x7aaa, 0x7aa9, 0x7aed, 0x7aef, 0x7ba1, 0x7b95, 0x7b8b, +0x7b75, 0x7b97, 0x7b9d, 0x7b94, 0x7b8f, 0x7bb8, 0x7b87, 0x7b84, +0x7cb9, 0x7cbd, 0x7cbe, 0x7dbb, 0x7db0, 0x7d9c, 0x7dbd, 0x7dbe, +0x7da0, 0x7dca, 0x7db4, 0x7db2, 0x7db1, 0x7dba, 0x7da2, 0x7dbf, +0x7db5, 0x7db8, 0x7dad, 0x7dd2, 0x7dc7, 0x7dac, +63, 0xbb40, +0x7f70, 0x7fe0, 0x7fe1, 0x7fdf, 0x805e, 0x805a, 0x8087, 0x8150, +0x8180, 0x818f, 0x8188, 0x818a, 0x817f, 0x8182, 0x81e7, 0x81fa, +0x8207, 0x8214, 0x821e, 0x824b, 0x84c9, 0x84bf, 0x84c6, 0x84c4, +0x8499, 0x849e, 0x84b2, 0x849c, 0x84cb, 0x84b8, 0x84c0, 0x84d3, +0x8490, 0x84bc, 0x84d1, 0x84ca, 0x873f, 0x871c, 0x873b, 0x8722, +0x8725, 0x8734, 0x8718, 0x8755, 0x8737, 0x8729, 0x88f3, 0x8902, +0x88f4, 0x88f9, 0x88f8, 0x88fd, 0x88e8, 0x891a, 0x88ef, 0x8aa6, +0x8a8c, 0x8a9e, 0x8aa3, 0x8a8d, 0x8aa1, 0x8a93, 0x8aa4, +94, 0xbba1, +0x8aaa, 0x8aa5, 0x8aa8, 0x8a98, 0x8a91, 0x8a9a, 0x8aa7, 0x8c6a, +0x8c8d, 0x8c8c, 0x8cd3, 0x8cd1, 0x8cd2, 0x8d6b, 0x8d99, 0x8d95, +0x8dfc, 0x8f14, 0x8f12, 0x8f15, 0x8f13, 0x8fa3, 0x9060, 0x9058, +0x905c, 0x9063, 0x9059, 0x905e, 0x9062, 0x905d, 0x905b, 0x9119, +0x9118, 0x911e, 0x9175, 0x9178, 0x9177, 0x9174, 0x9278, 0x9280, +0x9285, 0x9298, 0x9296, 0x927b, 0x9293, 0x929c, 0x92a8, 0x927c, +0x9291, 0x95a1, 0x95a8, 0x95a9, 0x95a3, 0x95a5, 0x95a4, 0x9699, +0x969c, 0x969b, 0x96cc, 0x96d2, 0x9700, 0x977c, 0x9785, 0x97f6, +0x9817, 0x9818, 0x98af, 0x98b1, 0x9903, 0x9905, 0x990c, 0x9909, +0x99c1, 0x9aaf, 0x9ab0, 0x9ae6, 0x9b41, 0x9b42, 0x9cf4, 0x9cf6, +0x9cf3, 0x9ebc, 0x9f3b, 0x9f4a, 0x5104, 0x5100, 0x50fb, 0x50f5, +0x50f9, 0x5102, 0x5108, 0x5109, 0x5105, 0x51dc, +63, 0xbc40, +0x5287, 0x5288, 0x5289, 0x528d, 0x528a, 0x52f0, 0x53b2, 0x562e, +0x563b, 0x5639, 0x5632, 0x563f, 0x5634, 0x5629, 0x5653, 0x564e, +0x5657, 0x5674, 0x5636, 0x562f, 0x5630, 0x5880, 0x589f, 0x589e, +0x58b3, 0x589c, 0x58ae, 0x58a9, 0x58a6, 0x596d, 0x5b09, 0x5afb, +0x5b0b, 0x5af5, 0x5b0c, 0x5b08, 0x5bee, 0x5bec, 0x5be9, 0x5beb, +0x5c64, 0x5c65, 0x5d9d, 0x5d94, 0x5e62, 0x5e5f, 0x5e61, 0x5ee2, +0x5eda, 0x5edf, 0x5edd, 0x5ee3, 0x5ee0, 0x5f48, 0x5f71, 0x5fb7, +0x5fb5, 0x6176, 0x6167, 0x616e, 0x615d, 0x6155, 0x6182, +94, 0xbca1, +0x617c, 0x6170, 0x616b, 0x617e, 0x61a7, 0x6190, 0x61ab, 0x618e, +0x61ac, 0x619a, 0x61a4, 0x6194, 0x61ae, 0x622e, 0x6469, 0x646f, +0x6479, 0x649e, 0x64b2, 0x6488, 0x6490, 0x64b0, 0x64a5, 0x6493, +0x6495, 0x64a9, 0x6492, 0x64ae, 0x64ad, 0x64ab, 0x649a, 0x64ac, +0x6499, 0x64a2, 0x64b3, 0x6575, 0x6577, 0x6578, 0x66ae, 0x66ab, +0x66b4, 0x66b1, 0x6a23, 0x6a1f, 0x69e8, 0x6a01, 0x6a1e, 0x6a19, +0x69fd, 0x6a21, 0x6a13, 0x6a0a, 0x69f3, 0x6a02, 0x6a05, 0x69ed, +0x6a11, 0x6b50, 0x6b4e, 0x6ba4, 0x6bc5, 0x6bc6, 0x6f3f, 0x6f7c, +0x6f84, 0x6f51, 0x6f66, 0x6f54, 0x6f86, 0x6f6d, 0x6f5b, 0x6f78, +0x6f6e, 0x6f8e, 0x6f7a, 0x6f70, 0x6f64, 0x6f97, 0x6f58, 0x6ed5, +0x6f6f, 0x6f60, 0x6f5f, 0x719f, 0x71ac, 0x71b1, 0x71a8, 0x7256, +0x729b, 0x734e, 0x7357, 0x7469, 0x748b, 0x7483, +63, 0xbd40, +0x747e, 0x7480, 0x757f, 0x7620, 0x7629, 0x761f, 0x7624, 0x7626, +0x7621, 0x7622, 0x769a, 0x76ba, 0x76e4, 0x778e, 0x7787, 0x778c, +0x7791, 0x778b, 0x78cb, 0x78c5, 0x78ba, 0x78ca, 0x78be, 0x78d5, +0x78bc, 0x78d0, 0x7a3f, 0x7a3c, 0x7a40, 0x7a3d, 0x7a37, 0x7a3b, +0x7aaf, 0x7aae, 0x7bad, 0x7bb1, 0x7bc4, 0x7bb4, 0x7bc6, 0x7bc7, +0x7bc1, 0x7ba0, 0x7bcc, 0x7cca, 0x7de0, 0x7df4, 0x7def, 0x7dfb, +0x7dd8, 0x7dec, 0x7ddd, 0x7de8, 0x7de3, 0x7dda, 0x7dde, 0x7de9, +0x7d9e, 0x7dd9, 0x7df2, 0x7df9, 0x7f75, 0x7f77, 0x7faf, +94, 0xbda1, +0x7fe9, 0x8026, 0x819b, 0x819c, 0x819d, 0x81a0, 0x819a, 0x8198, +0x8517, 0x853d, 0x851a, 0x84ee, 0x852c, 0x852d, 0x8513, 0x8511, +0x8523, 0x8521, 0x8514, 0x84ec, 0x8525, 0x84ff, 0x8506, 0x8782, +0x8774, 0x8776, 0x8760, 0x8766, 0x8778, 0x8768, 0x8759, 0x8757, +0x874c, 0x8753, 0x885b, 0x885d, 0x8910, 0x8907, 0x8912, 0x8913, +0x8915, 0x890a, 0x8abc, 0x8ad2, 0x8ac7, 0x8ac4, 0x8a95, 0x8acb, +0x8af8, 0x8ab2, 0x8ac9, 0x8ac2, 0x8abf, 0x8ab0, 0x8ad6, 0x8acd, +0x8ab6, 0x8ab9, 0x8adb, 0x8c4c, 0x8c4e, 0x8c6c, 0x8ce0, 0x8cde, +0x8ce6, 0x8ce4, 0x8cec, 0x8ced, 0x8ce2, 0x8ce3, 0x8cdc, 0x8cea, +0x8ce1, 0x8d6d, 0x8d9f, 0x8da3, 0x8e2b, 0x8e10, 0x8e1d, 0x8e22, +0x8e0f, 0x8e29, 0x8e1f, 0x8e21, 0x8e1e, 0x8eba, 0x8f1d, 0x8f1b, +0x8f1f, 0x8f29, 0x8f26, 0x8f2a, 0x8f1c, 0x8f1e, +63, 0xbe40, +0x8f25, 0x9069, 0x906e, 0x9068, 0x906d, 0x9077, 0x9130, 0x912d, +0x9127, 0x9131, 0x9187, 0x9189, 0x918b, 0x9183, 0x92c5, 0x92bb, +0x92b7, 0x92ea, 0x92ac, 0x92e4, 0x92c1, 0x92b3, 0x92bc, 0x92d2, +0x92c7, 0x92f0, 0x92b2, 0x95ad, 0x95b1, 0x9704, 0x9706, 0x9707, +0x9709, 0x9760, 0x978d, 0x978b, 0x978f, 0x9821, 0x982b, 0x981c, +0x98b3, 0x990a, 0x9913, 0x9912, 0x9918, 0x99dd, 0x99d0, 0x99df, +0x99db, 0x99d1, 0x99d5, 0x99d2, 0x99d9, 0x9ab7, 0x9aee, 0x9aef, +0x9b27, 0x9b45, 0x9b44, 0x9b77, 0x9b6f, 0x9d06, 0x9d09, +94, 0xbea1, +0x9d03, 0x9ea9, 0x9ebe, 0x9ece, 0x58a8, 0x9f52, 0x5112, 0x5118, +0x5114, 0x5110, 0x5115, 0x5180, 0x51aa, 0x51dd, 0x5291, 0x5293, +0x52f3, 0x5659, 0x566b, 0x5679, 0x5669, 0x5664, 0x5678, 0x566a, +0x5668, 0x5665, 0x5671, 0x566f, 0x566c, 0x5662, 0x5676, 0x58c1, +0x58be, 0x58c7, 0x58c5, 0x596e, 0x5b1d, 0x5b34, 0x5b78, 0x5bf0, +0x5c0e, 0x5f4a, 0x61b2, 0x6191, 0x61a9, 0x618a, 0x61cd, 0x61b6, +0x61be, 0x61ca, 0x61c8, 0x6230, 0x64c5, 0x64c1, 0x64cb, 0x64bb, +0x64bc, 0x64da, 0x64c4, 0x64c7, 0x64c2, 0x64cd, 0x64bf, 0x64d2, +0x64d4, 0x64be, 0x6574, 0x66c6, 0x66c9, 0x66b9, 0x66c4, 0x66c7, +0x66b8, 0x6a3d, 0x6a38, 0x6a3a, 0x6a59, 0x6a6b, 0x6a58, 0x6a39, +0x6a44, 0x6a62, 0x6a61, 0x6a4b, 0x6a47, 0x6a35, 0x6a5f, 0x6a48, +0x6b59, 0x6b77, 0x6c05, 0x6fc2, 0x6fb1, 0x6fa1, +63, 0xbf40, +0x6fc3, 0x6fa4, 0x6fc1, 0x6fa7, 0x6fb3, 0x6fc0, 0x6fb9, 0x6fb6, +0x6fa6, 0x6fa0, 0x6fb4, 0x71be, 0x71c9, 0x71d0, 0x71d2, 0x71c8, +0x71d5, 0x71b9, 0x71ce, 0x71d9, 0x71dc, 0x71c3, 0x71c4, 0x7368, +0x749c, 0x74a3, 0x7498, 0x749f, 0x749e, 0x74e2, 0x750c, 0x750d, +0x7634, 0x7638, 0x763a, 0x76e7, 0x76e5, 0x77a0, 0x779e, 0x779f, +0x77a5, 0x78e8, 0x78da, 0x78ec, 0x78e7, 0x79a6, 0x7a4d, 0x7a4e, +0x7a46, 0x7a4c, 0x7a4b, 0x7aba, 0x7bd9, 0x7c11, 0x7bc9, 0x7be4, +0x7bdb, 0x7be1, 0x7be9, 0x7be6, 0x7cd5, 0x7cd6, 0x7e0a, +94, 0xbfa1, +0x7e11, 0x7e08, 0x7e1b, 0x7e23, 0x7e1e, 0x7e1d, 0x7e09, 0x7e10, +0x7f79, 0x7fb2, 0x7ff0, 0x7ff1, 0x7fee, 0x8028, 0x81b3, 0x81a9, +0x81a8, 0x81fb, 0x8208, 0x8258, 0x8259, 0x854a, 0x8559, 0x8548, +0x8568, 0x8569, 0x8543, 0x8549, 0x856d, 0x856a, 0x855e, 0x8783, +0x879f, 0x879e, 0x87a2, 0x878d, 0x8861, 0x892a, 0x8932, 0x8925, +0x892b, 0x8921, 0x89aa, 0x89a6, 0x8ae6, 0x8afa, 0x8aeb, 0x8af1, +0x8b00, 0x8adc, 0x8ae7, 0x8aee, 0x8afe, 0x8b01, 0x8b02, 0x8af7, +0x8aed, 0x8af3, 0x8af6, 0x8afc, 0x8c6b, 0x8c6d, 0x8c93, 0x8cf4, +0x8e44, 0x8e31, 0x8e34, 0x8e42, 0x8e39, 0x8e35, 0x8f3b, 0x8f2f, +0x8f38, 0x8f33, 0x8fa8, 0x8fa6, 0x9075, 0x9074, 0x9078, 0x9072, +0x907c, 0x907a, 0x9134, 0x9192, 0x9320, 0x9336, 0x92f8, 0x9333, +0x932f, 0x9322, 0x92fc, 0x932b, 0x9304, 0x931a, +63, 0xc040, +0x9310, 0x9326, 0x9321, 0x9315, 0x932e, 0x9319, 0x95bb, 0x96a7, +0x96a8, 0x96aa, 0x96d5, 0x970e, 0x9711, 0x9716, 0x970d, 0x9713, +0x970f, 0x975b, 0x975c, 0x9766, 0x9798, 0x9830, 0x9838, 0x983b, +0x9837, 0x982d, 0x9839, 0x9824, 0x9910, 0x9928, 0x991e, 0x991b, +0x9921, 0x991a, 0x99ed, 0x99e2, 0x99f1, 0x9ab8, 0x9abc, 0x9afb, +0x9aed, 0x9b28, 0x9b91, 0x9d15, 0x9d23, 0x9d26, 0x9d28, 0x9d12, +0x9d1b, 0x9ed8, 0x9ed4, 0x9f8d, 0x9f9c, 0x512a, 0x511f, 0x5121, +0x5132, 0x52f5, 0x568e, 0x5680, 0x5690, 0x5685, 0x5687, +94, 0xc0a1, +0x568f, 0x58d5, 0x58d3, 0x58d1, 0x58ce, 0x5b30, 0x5b2a, 0x5b24, +0x5b7a, 0x5c37, 0x5c68, 0x5dbc, 0x5dba, 0x5dbd, 0x5db8, 0x5e6b, +0x5f4c, 0x5fbd, 0x61c9, 0x61c2, 0x61c7, 0x61e6, 0x61cb, 0x6232, +0x6234, 0x64ce, 0x64ca, 0x64d8, 0x64e0, 0x64f0, 0x64e6, 0x64ec, +0x64f1, 0x64e2, 0x64ed, 0x6582, 0x6583, 0x66d9, 0x66d6, 0x6a80, +0x6a94, 0x6a84, 0x6aa2, 0x6a9c, 0x6adb, 0x6aa3, 0x6a7e, 0x6a97, +0x6a90, 0x6aa0, 0x6b5c, 0x6bae, 0x6bda, 0x6c08, 0x6fd8, 0x6ff1, +0x6fdf, 0x6fe0, 0x6fdb, 0x6fe4, 0x6feb, 0x6fef, 0x6f80, 0x6fec, +0x6fe1, 0x6fe9, 0x6fd5, 0x6fee, 0x6ff0, 0x71e7, 0x71df, 0x71ee, +0x71e6, 0x71e5, 0x71ed, 0x71ec, 0x71f4, 0x71e0, 0x7235, 0x7246, +0x7370, 0x7372, 0x74a9, 0x74b0, 0x74a6, 0x74a8, 0x7646, 0x7642, +0x764c, 0x76ea, 0x77b3, 0x77aa, 0x77b0, 0x77ac, +63, 0xc140, +0x77a7, 0x77ad, 0x77ef, 0x78f7, 0x78fa, 0x78f4, 0x78ef, 0x7901, +0x79a7, 0x79aa, 0x7a57, 0x7abf, 0x7c07, 0x7c0d, 0x7bfe, 0x7bf7, +0x7c0c, 0x7be0, 0x7ce0, 0x7cdc, 0x7cde, 0x7ce2, 0x7cdf, 0x7cd9, +0x7cdd, 0x7e2e, 0x7e3e, 0x7e46, 0x7e37, 0x7e32, 0x7e43, 0x7e2b, +0x7e3d, 0x7e31, 0x7e45, 0x7e41, 0x7e34, 0x7e39, 0x7e48, 0x7e35, +0x7e3f, 0x7e2f, 0x7f44, 0x7ff3, 0x7ffc, 0x8071, 0x8072, 0x8070, +0x806f, 0x8073, 0x81c6, 0x81c3, 0x81ba, 0x81c2, 0x81c0, 0x81bf, +0x81bd, 0x81c9, 0x81be, 0x81e8, 0x8209, 0x8271, 0x85aa, +94, 0xc1a1, +0x8584, 0x857e, 0x859c, 0x8591, 0x8594, 0x85af, 0x859b, 0x8587, +0x85a8, 0x858a, 0x8667, 0x87c0, 0x87d1, 0x87b3, 0x87d2, 0x87c6, +0x87ab, 0x87bb, 0x87ba, 0x87c8, 0x87cb, 0x893b, 0x8936, 0x8944, +0x8938, 0x893d, 0x89ac, 0x8b0e, 0x8b17, 0x8b19, 0x8b1b, 0x8b0a, +0x8b20, 0x8b1d, 0x8b04, 0x8b10, 0x8c41, 0x8c3f, 0x8c73, 0x8cfa, +0x8cfd, 0x8cfc, 0x8cf8, 0x8cfb, 0x8da8, 0x8e49, 0x8e4b, 0x8e48, +0x8e4a, 0x8f44, 0x8f3e, 0x8f42, 0x8f45, 0x8f3f, 0x907f, 0x907d, +0x9084, 0x9081, 0x9082, 0x9080, 0x9139, 0x91a3, 0x919e, 0x919c, +0x934d, 0x9382, 0x9328, 0x9375, 0x934a, 0x9365, 0x934b, 0x9318, +0x937e, 0x936c, 0x935b, 0x9370, 0x935a, 0x9354, 0x95ca, 0x95cb, +0x95cc, 0x95c8, 0x95c6, 0x96b1, 0x96b8, 0x96d6, 0x971c, 0x971e, +0x97a0, 0x97d3, 0x9846, 0x98b6, 0x9935, 0x9a01, +63, 0xc240, +0x99ff, 0x9bae, 0x9bab, 0x9baa, 0x9bad, 0x9d3b, 0x9d3f, 0x9e8b, +0x9ecf, 0x9ede, 0x9edc, 0x9edd, 0x9edb, 0x9f3e, 0x9f4b, 0x53e2, +0x5695, 0x56ae, 0x58d9, 0x58d8, 0x5b38, 0x5f5d, 0x61e3, 0x6233, +0x64f4, 0x64f2, 0x64fe, 0x6506, 0x64fa, 0x64fb, 0x64f7, 0x65b7, +0x66dc, 0x6726, 0x6ab3, 0x6aac, 0x6ac3, 0x6abb, 0x6ab8, 0x6ac2, +0x6aae, 0x6aaf, 0x6b5f, 0x6b78, 0x6baf, 0x7009, 0x700b, 0x6ffe, +0x7006, 0x6ffa, 0x7011, 0x700f, 0x71fb, 0x71fc, 0x71fe, 0x71f8, +0x7377, 0x7375, 0x74a7, 0x74bf, 0x7515, 0x7656, 0x7658, +94, 0xc2a1, +0x7652, 0x77bd, 0x77bf, 0x77bb, 0x77bc, 0x790e, 0x79ae, 0x7a61, +0x7a62, 0x7a60, 0x7ac4, 0x7ac5, 0x7c2b, 0x7c27, 0x7c2a, 0x7c1e, +0x7c23, 0x7c21, 0x7ce7, 0x7e54, 0x7e55, 0x7e5e, 0x7e5a, 0x7e61, +0x7e52, 0x7e59, 0x7f48, 0x7ff9, 0x7ffb, 0x8077, 0x8076, 0x81cd, +0x81cf, 0x820a, 0x85cf, 0x85a9, 0x85cd, 0x85d0, 0x85c9, 0x85b0, +0x85ba, 0x85b9, 0x85a6, 0x87ef, 0x87ec, 0x87f2, 0x87e0, 0x8986, +0x89b2, 0x89f4, 0x8b28, 0x8b39, 0x8b2c, 0x8b2b, 0x8c50, 0x8d05, +0x8e59, 0x8e63, 0x8e66, 0x8e64, 0x8e5f, 0x8e55, 0x8ec0, 0x8f49, +0x8f4d, 0x9087, 0x9083, 0x9088, 0x91ab, 0x91ac, 0x91d0, 0x9394, +0x938a, 0x9396, 0x93a2, 0x93b3, 0x93ae, 0x93ac, 0x93b0, 0x9398, +0x939a, 0x9397, 0x95d4, 0x95d6, 0x95d0, 0x95d5, 0x96e2, 0x96dc, +0x96d9, 0x96db, 0x96de, 0x9724, 0x97a3, 0x97a6, +63, 0xc340, +0x97ad, 0x97f9, 0x984d, 0x984f, 0x984c, 0x984e, 0x9853, 0x98ba, +0x993e, 0x993f, 0x993d, 0x992e, 0x99a5, 0x9a0e, 0x9ac1, 0x9b03, +0x9b06, 0x9b4f, 0x9b4e, 0x9b4d, 0x9bca, 0x9bc9, 0x9bfd, 0x9bc8, +0x9bc0, 0x9d51, 0x9d5d, 0x9d60, 0x9ee0, 0x9f15, 0x9f2c, 0x5133, +0x56a5, 0x58de, 0x58df, 0x58e2, 0x5bf5, 0x9f90, 0x5eec, 0x61f2, +0x61f7, 0x61f6, 0x61f5, 0x6500, 0x650f, 0x66e0, 0x66dd, 0x6ae5, +0x6add, 0x6ada, 0x6ad3, 0x701b, 0x701f, 0x7028, 0x701a, 0x701d, +0x7015, 0x7018, 0x7206, 0x720d, 0x7258, 0x72a2, 0x7378, +94, 0xc3a1, +0x737a, 0x74bd, 0x74ca, 0x74e3, 0x7587, 0x7586, 0x765f, 0x7661, +0x77c7, 0x7919, 0x79b1, 0x7a6b, 0x7a69, 0x7c3e, 0x7c3f, 0x7c38, +0x7c3d, 0x7c37, 0x7c40, 0x7e6b, 0x7e6d, 0x7e79, 0x7e69, 0x7e6a, +0x7f85, 0x7e73, 0x7fb6, 0x7fb9, 0x7fb8, 0x81d8, 0x85e9, 0x85dd, +0x85ea, 0x85d5, 0x85e4, 0x85e5, 0x85f7, 0x87fb, 0x8805, 0x880d, +0x87f9, 0x87fe, 0x8960, 0x895f, 0x8956, 0x895e, 0x8b41, 0x8b5c, +0x8b58, 0x8b49, 0x8b5a, 0x8b4e, 0x8b4f, 0x8b46, 0x8b59, 0x8d08, +0x8d0a, 0x8e7c, 0x8e72, 0x8e87, 0x8e76, 0x8e6c, 0x8e7a, 0x8e74, +0x8f54, 0x8f4e, 0x8fad, 0x908a, 0x908b, 0x91b1, 0x91ae, 0x93e1, +0x93d1, 0x93df, 0x93c3, 0x93c8, 0x93dc, 0x93dd, 0x93d6, 0x93e2, +0x93cd, 0x93d8, 0x93e4, 0x93d7, 0x93e8, 0x95dc, 0x96b4, 0x96e3, +0x972a, 0x9727, 0x9761, 0x97dc, 0x97fb, 0x985e, +63, 0xc440, +0x9858, 0x985b, 0x98bc, 0x9945, 0x9949, 0x9a16, 0x9a19, 0x9b0d, +0x9be8, 0x9be7, 0x9bd6, 0x9bdb, 0x9d89, 0x9d61, 0x9d72, 0x9d6a, +0x9d6c, 0x9e92, 0x9e97, 0x9e93, 0x9eb4, 0x52f8, 0x56a8, 0x56b7, +0x56b6, 0x56b4, 0x56bc, 0x58e4, 0x5b40, 0x5b43, 0x5b7d, 0x5bf6, +0x5dc9, 0x61f8, 0x61fa, 0x6518, 0x6514, 0x6519, 0x66e6, 0x6727, +0x6aec, 0x703e, 0x7030, 0x7032, 0x7210, 0x737b, 0x74cf, 0x7662, +0x7665, 0x7926, 0x792a, 0x792c, 0x792b, 0x7ac7, 0x7af6, 0x7c4c, +0x7c43, 0x7c4d, 0x7cef, 0x7cf0, 0x8fae, 0x7e7d, 0x7e7c, +94, 0xc4a1, +0x7e82, 0x7f4c, 0x8000, 0x81da, 0x8266, 0x85fb, 0x85f9, 0x8611, +0x85fa, 0x8606, 0x860b, 0x8607, 0x860a, 0x8814, 0x8815, 0x8964, +0x89ba, 0x89f8, 0x8b70, 0x8b6c, 0x8b66, 0x8b6f, 0x8b5f, 0x8b6b, +0x8d0f, 0x8d0d, 0x8e89, 0x8e81, 0x8e85, 0x8e82, 0x91b4, 0x91cb, +0x9418, 0x9403, 0x93fd, 0x95e1, 0x9730, 0x98c4, 0x9952, 0x9951, +0x99a8, 0x9a2b, 0x9a30, 0x9a37, 0x9a35, 0x9c13, 0x9c0d, 0x9e79, +0x9eb5, 0x9ee8, 0x9f2f, 0x9f5f, 0x9f63, 0x9f61, 0x5137, 0x5138, +0x56c1, 0x56c0, 0x56c2, 0x5914, 0x5c6c, 0x5dcd, 0x61fc, 0x61fe, +0x651d, 0x651c, 0x6595, 0x66e9, 0x6afb, 0x6b04, 0x6afa, 0x6bb2, +0x704c, 0x721b, 0x72a7, 0x74d6, 0x74d4, 0x7669, 0x77d3, 0x7c50, +0x7e8f, 0x7e8c, 0x7fbc, 0x8617, 0x862d, 0x861a, 0x8823, 0x8822, +0x8821, 0x881f, 0x896a, 0x896c, 0x89bd, 0x8b74, +63, 0xc540, +0x8b77, 0x8b7d, 0x8d13, 0x8e8a, 0x8e8d, 0x8e8b, 0x8f5f, 0x8faf, +0x91ba, 0x942e, 0x9433, 0x9435, 0x943a, 0x9438, 0x9432, 0x942b, +0x95e2, 0x9738, 0x9739, 0x9732, 0x97ff, 0x9867, 0x9865, 0x9957, +0x9a45, 0x9a43, 0x9a40, 0x9a3e, 0x9acf, 0x9b54, 0x9b51, 0x9c2d, +0x9c25, 0x9daf, 0x9db4, 0x9dc2, 0x9db8, 0x9e9d, 0x9eef, 0x9f19, +0x9f5c, 0x9f66, 0x9f67, 0x513c, 0x513b, 0x56c8, 0x56ca, 0x56c9, +0x5b7f, 0x5dd4, 0x5dd2, 0x5f4e, 0x61ff, 0x6524, 0x6b0a, 0x6b61, +0x7051, 0x7058, 0x7380, 0x74e4, 0x758a, 0x766e, 0x766c, +94, 0xc5a1, +0x79b3, 0x7c60, 0x7c5f, 0x807e, 0x807d, 0x81df, 0x8972, 0x896f, +0x89fc, 0x8b80, 0x8d16, 0x8d17, 0x8e91, 0x8e93, 0x8f61, 0x9148, +0x9444, 0x9451, 0x9452, 0x973d, 0x973e, 0x97c3, 0x97c1, 0x986b, +0x9955, 0x9a55, 0x9a4d, 0x9ad2, 0x9b1a, 0x9c49, 0x9c31, 0x9c3e, +0x9c3b, 0x9dd3, 0x9dd7, 0x9f34, 0x9f6c, 0x9f6a, 0x9f94, 0x56cc, +0x5dd6, 0x6200, 0x6523, 0x652b, 0x652a, 0x66ec, 0x6b10, 0x74da, +0x7aca, 0x7c64, 0x7c63, 0x7c65, 0x7e93, 0x7e96, 0x7e94, 0x81e2, +0x8638, 0x863f, 0x8831, 0x8b8a, 0x9090, 0x908f, 0x9463, 0x9460, +0x9464, 0x9768, 0x986f, 0x995c, 0x9a5a, 0x9a5b, 0x9a57, 0x9ad3, +0x9ad4, 0x9ad1, 0x9c54, 0x9c57, 0x9c56, 0x9de5, 0x9e9f, 0x9ef4, +0x56d1, 0x58e9, 0x652c, 0x705e, 0x7671, 0x7672, 0x77d7, 0x7f50, +0x7f88, 0x8836, 0x8839, 0x8862, 0x8b93, 0x8b92, +63, 0xc640, +0x8b96, 0x8277, 0x8d1b, 0x91c0, 0x946a, 0x9742, 0x9748, 0x9744, +0x97c6, 0x9870, 0x9a5f, 0x9b22, 0x9b58, 0x9c5f, 0x9df9, 0x9dfa, +0x9e7c, 0x9e7d, 0x9f07, 0x9f77, 0x9f72, 0x5ef3, 0x6b16, 0x7063, +0x7c6c, 0x7c6e, 0x883b, 0x89c0, 0x8ea1, 0x91c1, 0x9472, 0x9470, +0x9871, 0x995e, 0x9ad6, 0x9b23, 0x9ecc, 0x7064, 0x77da, 0x8b9a, +0x9477, 0x97c9, 0x9a62, 0x9a65, 0x7e9c, 0x8b9c, 0x8eaa, 0x91c5, +0x947d, 0x947e, 0x947c, 0x9c77, 0x9c78, 0x9ef7, 0x8c54, 0x947f, +0x9e1a, 0x7228, 0x9a6a, 0x9b31, 0x9e1b, 0x9e1e, 0x7c72, +63, 0xc940, +0x4e42, 0x4e5c, 0x51f5, 0x531a, 0x5382, 0x4e07, 0x4e0c, 0x4e47, +0x4e8d, 0x56d7, 0xfa0c, 0x5c6e, 0x5f73, 0x4e0f, 0x5187, 0x4e0e, +0x4e2e, 0x4e93, 0x4ec2, 0x4ec9, 0x4ec8, 0x5198, 0x52fc, 0x536c, +0x53b9, 0x5720, 0x5903, 0x592c, 0x5c10, 0x5dff, 0x65e1, 0x6bb3, +0x6bcc, 0x6c14, 0x723f, 0x4e31, 0x4e3c, 0x4ee8, 0x4edc, 0x4ee9, +0x4ee1, 0x4edd, 0x4eda, 0x520c, 0x531c, 0x534c, 0x5722, 0x5723, +0x5917, 0x592f, 0x5b81, 0x5b84, 0x5c12, 0x5c3b, 0x5c74, 0x5c73, +0x5e04, 0x5e80, 0x5e82, 0x5fc9, 0x6209, 0x6250, 0x6c15, +94, 0xc9a1, +0x6c36, 0x6c43, 0x6c3f, 0x6c3b, 0x72ae, 0x72b0, 0x738a, 0x79b8, +0x808a, 0x961e, 0x4f0e, 0x4f18, 0x4f2c, 0x4ef5, 0x4f14, 0x4ef1, +0x4f00, 0x4ef7, 0x4f08, 0x4f1d, 0x4f02, 0x4f05, 0x4f22, 0x4f13, +0x4f04, 0x4ef4, 0x4f12, 0x51b1, 0x5213, 0x5209, 0x5210, 0x52a6, +0x5322, 0x531f, 0x534d, 0x538a, 0x5407, 0x56e1, 0x56df, 0x572e, +0x572a, 0x5734, 0x593c, 0x5980, 0x597c, 0x5985, 0x597b, 0x597e, +0x5977, 0x597f, 0x5b56, 0x5c15, 0x5c25, 0x5c7c, 0x5c7a, 0x5c7b, +0x5c7e, 0x5ddf, 0x5e75, 0x5e84, 0x5f02, 0x5f1a, 0x5f74, 0x5fd5, +0x5fd4, 0x5fcf, 0x625c, 0x625e, 0x6264, 0x6261, 0x6266, 0x6262, +0x6259, 0x6260, 0x625a, 0x6265, 0x65ef, 0x65ee, 0x673e, 0x6739, +0x6738, 0x673b, 0x673a, 0x673f, 0x673c, 0x6733, 0x6c18, 0x6c46, +0x6c52, 0x6c5c, 0x6c4f, 0x6c4a, 0x6c54, 0x6c4b, +63, 0xca40, +0x6c4c, 0x7071, 0x725e, 0x72b4, 0x72b5, 0x738e, 0x752a, 0x767f, +0x7a75, 0x7f51, 0x8278, 0x827c, 0x8280, 0x827d, 0x827f, 0x864d, +0x897e, 0x9099, 0x9097, 0x9098, 0x909b, 0x9094, 0x9622, 0x9624, +0x9620, 0x9623, 0x4f56, 0x4f3b, 0x4f62, 0x4f49, 0x4f53, 0x4f64, +0x4f3e, 0x4f67, 0x4f52, 0x4f5f, 0x4f41, 0x4f58, 0x4f2d, 0x4f33, +0x4f3f, 0x4f61, 0x518f, 0x51b9, 0x521c, 0x521e, 0x5221, 0x52ad, +0x52ae, 0x5309, 0x5363, 0x5372, 0x538e, 0x538f, 0x5430, 0x5437, +0x542a, 0x5454, 0x5445, 0x5419, 0x541c, 0x5425, 0x5418, +94, 0xcaa1, +0x543d, 0x544f, 0x5441, 0x5428, 0x5424, 0x5447, 0x56ee, 0x56e7, +0x56e5, 0x5741, 0x5745, 0x574c, 0x5749, 0x574b, 0x5752, 0x5906, +0x5940, 0x59a6, 0x5998, 0x59a0, 0x5997, 0x598e, 0x59a2, 0x5990, +0x598f, 0x59a7, 0x59a1, 0x5b8e, 0x5b92, 0x5c28, 0x5c2a, 0x5c8d, +0x5c8f, 0x5c88, 0x5c8b, 0x5c89, 0x5c92, 0x5c8a, 0x5c86, 0x5c93, +0x5c95, 0x5de0, 0x5e0a, 0x5e0e, 0x5e8b, 0x5e89, 0x5e8c, 0x5e88, +0x5e8d, 0x5f05, 0x5f1d, 0x5f78, 0x5f76, 0x5fd2, 0x5fd1, 0x5fd0, +0x5fed, 0x5fe8, 0x5fee, 0x5ff3, 0x5fe1, 0x5fe4, 0x5fe3, 0x5ffa, +0x5fef, 0x5ff7, 0x5ffb, 0x6000, 0x5ff4, 0x623a, 0x6283, 0x628c, +0x628e, 0x628f, 0x6294, 0x6287, 0x6271, 0x627b, 0x627a, 0x6270, +0x6281, 0x6288, 0x6277, 0x627d, 0x6272, 0x6274, 0x6537, 0x65f0, +0x65f4, 0x65f3, 0x65f2, 0x65f5, 0x6745, 0x6747, +63, 0xcb40, +0x6759, 0x6755, 0x674c, 0x6748, 0x675d, 0x674d, 0x675a, 0x674b, +0x6bd0, 0x6c19, 0x6c1a, 0x6c78, 0x6c67, 0x6c6b, 0x6c84, 0x6c8b, +0x6c8f, 0x6c71, 0x6c6f, 0x6c69, 0x6c9a, 0x6c6d, 0x6c87, 0x6c95, +0x6c9c, 0x6c66, 0x6c73, 0x6c65, 0x6c7b, 0x6c8e, 0x7074, 0x707a, +0x7263, 0x72bf, 0x72bd, 0x72c3, 0x72c6, 0x72c1, 0x72ba, 0x72c5, +0x7395, 0x7397, 0x7393, 0x7394, 0x7392, 0x753a, 0x7539, 0x7594, +0x7595, 0x7681, 0x793d, 0x8034, 0x8095, 0x8099, 0x8090, 0x8092, +0x809c, 0x8290, 0x828f, 0x8285, 0x828e, 0x8291, 0x8293, +94, 0xcba1, +0x828a, 0x8283, 0x8284, 0x8c78, 0x8fc9, 0x8fbf, 0x909f, 0x90a1, +0x90a5, 0x909e, 0x90a7, 0x90a0, 0x9630, 0x9628, 0x962f, 0x962d, +0x4e33, 0x4f98, 0x4f7c, 0x4f85, 0x4f7d, 0x4f80, 0x4f87, 0x4f76, +0x4f74, 0x4f89, 0x4f84, 0x4f77, 0x4f4c, 0x4f97, 0x4f6a, 0x4f9a, +0x4f79, 0x4f81, 0x4f78, 0x4f90, 0x4f9c, 0x4f94, 0x4f9e, 0x4f92, +0x4f82, 0x4f95, 0x4f6b, 0x4f6e, 0x519e, 0x51bc, 0x51be, 0x5235, +0x5232, 0x5233, 0x5246, 0x5231, 0x52bc, 0x530a, 0x530b, 0x533c, +0x5392, 0x5394, 0x5487, 0x547f, 0x5481, 0x5491, 0x5482, 0x5488, +0x546b, 0x547a, 0x547e, 0x5465, 0x546c, 0x5474, 0x5466, 0x548d, +0x546f, 0x5461, 0x5460, 0x5498, 0x5463, 0x5467, 0x5464, 0x56f7, +0x56f9, 0x576f, 0x5772, 0x576d, 0x576b, 0x5771, 0x5770, 0x5776, +0x5780, 0x5775, 0x577b, 0x5773, 0x5774, 0x5762, +63, 0xcc40, +0x5768, 0x577d, 0x590c, 0x5945, 0x59b5, 0x59ba, 0x59cf, 0x59ce, +0x59b2, 0x59cc, 0x59c1, 0x59b6, 0x59bc, 0x59c3, 0x59d6, 0x59b1, +0x59bd, 0x59c0, 0x59c8, 0x59b4, 0x59c7, 0x5b62, 0x5b65, 0x5b93, +0x5b95, 0x5c44, 0x5c47, 0x5cae, 0x5ca4, 0x5ca0, 0x5cb5, 0x5caf, +0x5ca8, 0x5cac, 0x5c9f, 0x5ca3, 0x5cad, 0x5ca2, 0x5caa, 0x5ca7, +0x5c9d, 0x5ca5, 0x5cb6, 0x5cb0, 0x5ca6, 0x5e17, 0x5e14, 0x5e19, +0x5f28, 0x5f22, 0x5f23, 0x5f24, 0x5f54, 0x5f82, 0x5f7e, 0x5f7d, +0x5fde, 0x5fe5, 0x602d, 0x6026, 0x6019, 0x6032, 0x600b, +94, 0xcca1, +0x6034, 0x600a, 0x6017, 0x6033, 0x601a, 0x601e, 0x602c, 0x6022, +0x600d, 0x6010, 0x602e, 0x6013, 0x6011, 0x600c, 0x6009, 0x601c, +0x6214, 0x623d, 0x62ad, 0x62b4, 0x62d1, 0x62be, 0x62aa, 0x62b6, +0x62ca, 0x62ae, 0x62b3, 0x62af, 0x62bb, 0x62a9, 0x62b0, 0x62b8, +0x653d, 0x65a8, 0x65bb, 0x6609, 0x65fc, 0x6604, 0x6612, 0x6608, +0x65fb, 0x6603, 0x660b, 0x660d, 0x6605, 0x65fd, 0x6611, 0x6610, +0x66f6, 0x670a, 0x6785, 0x676c, 0x678e, 0x6792, 0x6776, 0x677b, +0x6798, 0x6786, 0x6784, 0x6774, 0x678d, 0x678c, 0x677a, 0x679f, +0x6791, 0x6799, 0x6783, 0x677d, 0x6781, 0x6778, 0x6779, 0x6794, +0x6b25, 0x6b80, 0x6b7e, 0x6bde, 0x6c1d, 0x6c93, 0x6cec, 0x6ceb, +0x6cee, 0x6cd9, 0x6cb6, 0x6cd4, 0x6cad, 0x6ce7, 0x6cb7, 0x6cd0, +0x6cc2, 0x6cba, 0x6cc3, 0x6cc6, 0x6ced, 0x6cf2, +63, 0xcd40, +0x6cd2, 0x6cdd, 0x6cb4, 0x6c8a, 0x6c9d, 0x6c80, 0x6cde, 0x6cc0, +0x6d30, 0x6ccd, 0x6cc7, 0x6cb0, 0x6cf9, 0x6ccf, 0x6ce9, 0x6cd1, +0x7094, 0x7098, 0x7085, 0x7093, 0x7086, 0x7084, 0x7091, 0x7096, +0x7082, 0x709a, 0x7083, 0x726a, 0x72d6, 0x72cb, 0x72d8, 0x72c9, +0x72dc, 0x72d2, 0x72d4, 0x72da, 0x72cc, 0x72d1, 0x73a4, 0x73a1, +0x73ad, 0x73a6, 0x73a2, 0x73a0, 0x73ac, 0x739d, 0x74dd, 0x74e8, +0x753f, 0x7540, 0x753e, 0x758c, 0x7598, 0x76af, 0x76f3, 0x76f1, +0x76f0, 0x76f5, 0x77f8, 0x77fc, 0x77f9, 0x77fb, 0x77fa, +94, 0xcda1, +0x77f7, 0x7942, 0x793f, 0x79c5, 0x7a78, 0x7a7b, 0x7afb, 0x7c75, +0x7cfd, 0x8035, 0x808f, 0x80ae, 0x80a3, 0x80b8, 0x80b5, 0x80ad, +0x8220, 0x82a0, 0x82c0, 0x82ab, 0x829a, 0x8298, 0x829b, 0x82b5, +0x82a7, 0x82ae, 0x82bc, 0x829e, 0x82ba, 0x82b4, 0x82a8, 0x82a1, +0x82a9, 0x82c2, 0x82a4, 0x82c3, 0x82b6, 0x82a2, 0x8670, 0x866f, +0x866d, 0x866e, 0x8c56, 0x8fd2, 0x8fcb, 0x8fd3, 0x8fcd, 0x8fd6, +0x8fd5, 0x8fd7, 0x90b2, 0x90b4, 0x90af, 0x90b3, 0x90b0, 0x9639, +0x963d, 0x963c, 0x963a, 0x9643, 0x4fcd, 0x4fc5, 0x4fd3, 0x4fb2, +0x4fc9, 0x4fcb, 0x4fc1, 0x4fd4, 0x4fdc, 0x4fd9, 0x4fbb, 0x4fb3, +0x4fdb, 0x4fc7, 0x4fd6, 0x4fba, 0x4fc0, 0x4fb9, 0x4fec, 0x5244, +0x5249, 0x52c0, 0x52c2, 0x533d, 0x537c, 0x5397, 0x5396, 0x5399, +0x5398, 0x54ba, 0x54a1, 0x54ad, 0x54a5, 0x54cf, +63, 0xce40, +0x54c3, 0x830d, 0x54b7, 0x54ae, 0x54d6, 0x54b6, 0x54c5, 0x54c6, +0x54a0, 0x5470, 0x54bc, 0x54a2, 0x54be, 0x5472, 0x54de, 0x54b0, +0x57b5, 0x579e, 0x579f, 0x57a4, 0x578c, 0x5797, 0x579d, 0x579b, +0x5794, 0x5798, 0x578f, 0x5799, 0x57a5, 0x579a, 0x5795, 0x58f4, +0x590d, 0x5953, 0x59e1, 0x59de, 0x59ee, 0x5a00, 0x59f1, 0x59dd, +0x59fa, 0x59fd, 0x59fc, 0x59f6, 0x59e4, 0x59f2, 0x59f7, 0x59db, +0x59e9, 0x59f3, 0x59f5, 0x59e0, 0x59fe, 0x59f4, 0x59ed, 0x5ba8, +0x5c4c, 0x5cd0, 0x5cd8, 0x5ccc, 0x5cd7, 0x5ccb, 0x5cdb, +94, 0xcea1, +0x5cde, 0x5cda, 0x5cc9, 0x5cc7, 0x5cca, 0x5cd6, 0x5cd3, 0x5cd4, +0x5ccf, 0x5cc8, 0x5cc6, 0x5cce, 0x5cdf, 0x5cf8, 0x5df9, 0x5e21, +0x5e22, 0x5e23, 0x5e20, 0x5e24, 0x5eb0, 0x5ea4, 0x5ea2, 0x5e9b, +0x5ea3, 0x5ea5, 0x5f07, 0x5f2e, 0x5f56, 0x5f86, 0x6037, 0x6039, +0x6054, 0x6072, 0x605e, 0x6045, 0x6053, 0x6047, 0x6049, 0x605b, +0x604c, 0x6040, 0x6042, 0x605f, 0x6024, 0x6044, 0x6058, 0x6066, +0x606e, 0x6242, 0x6243, 0x62cf, 0x630d, 0x630b, 0x62f5, 0x630e, +0x6303, 0x62eb, 0x62f9, 0x630f, 0x630c, 0x62f8, 0x62f6, 0x6300, +0x6313, 0x6314, 0x62fa, 0x6315, 0x62fb, 0x62f0, 0x6541, 0x6543, +0x65aa, 0x65bf, 0x6636, 0x6621, 0x6632, 0x6635, 0x661c, 0x6626, +0x6622, 0x6633, 0x662b, 0x663a, 0x661d, 0x6634, 0x6639, 0x662e, +0x670f, 0x6710, 0x67c1, 0x67f2, 0x67c8, 0x67ba, +63, 0xcf40, +0x67dc, 0x67bb, 0x67f8, 0x67d8, 0x67c0, 0x67b7, 0x67c5, 0x67eb, +0x67e4, 0x67df, 0x67b5, 0x67cd, 0x67b3, 0x67f7, 0x67f6, 0x67ee, +0x67e3, 0x67c2, 0x67b9, 0x67ce, 0x67e7, 0x67f0, 0x67b2, 0x67fc, +0x67c6, 0x67ed, 0x67cc, 0x67ae, 0x67e6, 0x67db, 0x67fa, 0x67c9, +0x67ca, 0x67c3, 0x67ea, 0x67cb, 0x6b28, 0x6b82, 0x6b84, 0x6bb6, +0x6bd6, 0x6bd8, 0x6be0, 0x6c20, 0x6c21, 0x6d28, 0x6d34, 0x6d2d, +0x6d1f, 0x6d3c, 0x6d3f, 0x6d12, 0x6d0a, 0x6cda, 0x6d33, 0x6d04, +0x6d19, 0x6d3a, 0x6d1a, 0x6d11, 0x6d00, 0x6d1d, 0x6d42, +94, 0xcfa1, +0x6d01, 0x6d18, 0x6d37, 0x6d03, 0x6d0f, 0x6d40, 0x6d07, 0x6d20, +0x6d2c, 0x6d08, 0x6d22, 0x6d09, 0x6d10, 0x70b7, 0x709f, 0x70be, +0x70b1, 0x70b0, 0x70a1, 0x70b4, 0x70b5, 0x70a9, 0x7241, 0x7249, +0x724a, 0x726c, 0x7270, 0x7273, 0x726e, 0x72ca, 0x72e4, 0x72e8, +0x72eb, 0x72df, 0x72ea, 0x72e6, 0x72e3, 0x7385, 0x73cc, 0x73c2, +0x73c8, 0x73c5, 0x73b9, 0x73b6, 0x73b5, 0x73b4, 0x73eb, 0x73bf, +0x73c7, 0x73be, 0x73c3, 0x73c6, 0x73b8, 0x73cb, 0x74ec, 0x74ee, +0x752e, 0x7547, 0x7548, 0x75a7, 0x75aa, 0x7679, 0x76c4, 0x7708, +0x7703, 0x7704, 0x7705, 0x770a, 0x76f7, 0x76fb, 0x76fa, 0x77e7, +0x77e8, 0x7806, 0x7811, 0x7812, 0x7805, 0x7810, 0x780f, 0x780e, +0x7809, 0x7803, 0x7813, 0x794a, 0x794c, 0x794b, 0x7945, 0x7944, +0x79d5, 0x79cd, 0x79cf, 0x79d6, 0x79ce, 0x7a80, +63, 0xd040, +0x7a7e, 0x7ad1, 0x7b00, 0x7b01, 0x7c7a, 0x7c78, 0x7c79, 0x7c7f, +0x7c80, 0x7c81, 0x7d03, 0x7d08, 0x7d01, 0x7f58, 0x7f91, 0x7f8d, +0x7fbe, 0x8007, 0x800e, 0x800f, 0x8014, 0x8037, 0x80d8, 0x80c7, +0x80e0, 0x80d1, 0x80c8, 0x80c2, 0x80d0, 0x80c5, 0x80e3, 0x80d9, +0x80dc, 0x80ca, 0x80d5, 0x80c9, 0x80cf, 0x80d7, 0x80e6, 0x80cd, +0x81ff, 0x8221, 0x8294, 0x82d9, 0x82fe, 0x82f9, 0x8307, 0x82e8, +0x8300, 0x82d5, 0x833a, 0x82eb, 0x82d6, 0x82f4, 0x82ec, 0x82e1, +0x82f2, 0x82f5, 0x830c, 0x82fb, 0x82f6, 0x82f0, 0x82ea, +94, 0xd0a1, +0x82e4, 0x82e0, 0x82fa, 0x82f3, 0x82ed, 0x8677, 0x8674, 0x867c, +0x8673, 0x8841, 0x884e, 0x8867, 0x886a, 0x8869, 0x89d3, 0x8a04, +0x8a07, 0x8d72, 0x8fe3, 0x8fe1, 0x8fee, 0x8fe0, 0x90f1, 0x90bd, +0x90bf, 0x90d5, 0x90c5, 0x90be, 0x90c7, 0x90cb, 0x90c8, 0x91d4, +0x91d3, 0x9654, 0x964f, 0x9651, 0x9653, 0x964a, 0x964e, 0x501e, +0x5005, 0x5007, 0x5013, 0x5022, 0x5030, 0x501b, 0x4ff5, 0x4ff4, +0x5033, 0x5037, 0x502c, 0x4ff6, 0x4ff7, 0x5017, 0x501c, 0x5020, +0x5027, 0x5035, 0x502f, 0x5031, 0x500e, 0x515a, 0x5194, 0x5193, +0x51ca, 0x51c4, 0x51c5, 0x51c8, 0x51ce, 0x5261, 0x525a, 0x5252, +0x525e, 0x525f, 0x5255, 0x5262, 0x52cd, 0x530e, 0x539e, 0x5526, +0x54e2, 0x5517, 0x5512, 0x54e7, 0x54f3, 0x54e4, 0x551a, 0x54ff, +0x5504, 0x5508, 0x54eb, 0x5511, 0x5505, 0x54f1, +63, 0xd140, +0x550a, 0x54fb, 0x54f7, 0x54f8, 0x54e0, 0x550e, 0x5503, 0x550b, +0x5701, 0x5702, 0x57cc, 0x5832, 0x57d5, 0x57d2, 0x57ba, 0x57c6, +0x57bd, 0x57bc, 0x57b8, 0x57b6, 0x57bf, 0x57c7, 0x57d0, 0x57b9, +0x57c1, 0x590e, 0x594a, 0x5a19, 0x5a16, 0x5a2d, 0x5a2e, 0x5a15, +0x5a0f, 0x5a17, 0x5a0a, 0x5a1e, 0x5a33, 0x5b6c, 0x5ba7, 0x5bad, +0x5bac, 0x5c03, 0x5c56, 0x5c54, 0x5cec, 0x5cff, 0x5cee, 0x5cf1, +0x5cf7, 0x5d00, 0x5cf9, 0x5e29, 0x5e28, 0x5ea8, 0x5eae, 0x5eaa, +0x5eac, 0x5f33, 0x5f30, 0x5f67, 0x605d, 0x605a, 0x6067, +94, 0xd1a1, +0x6041, 0x60a2, 0x6088, 0x6080, 0x6092, 0x6081, 0x609d, 0x6083, +0x6095, 0x609b, 0x6097, 0x6087, 0x609c, 0x608e, 0x6219, 0x6246, +0x62f2, 0x6310, 0x6356, 0x632c, 0x6344, 0x6345, 0x6336, 0x6343, +0x63e4, 0x6339, 0x634b, 0x634a, 0x633c, 0x6329, 0x6341, 0x6334, +0x6358, 0x6354, 0x6359, 0x632d, 0x6347, 0x6333, 0x635a, 0x6351, +0x6338, 0x6357, 0x6340, 0x6348, 0x654a, 0x6546, 0x65c6, 0x65c3, +0x65c4, 0x65c2, 0x664a, 0x665f, 0x6647, 0x6651, 0x6712, 0x6713, +0x681f, 0x681a, 0x6849, 0x6832, 0x6833, 0x683b, 0x684b, 0x684f, +0x6816, 0x6831, 0x681c, 0x6835, 0x682b, 0x682d, 0x682f, 0x684e, +0x6844, 0x6834, 0x681d, 0x6812, 0x6814, 0x6826, 0x6828, 0x682e, +0x684d, 0x683a, 0x6825, 0x6820, 0x6b2c, 0x6b2f, 0x6b2d, 0x6b31, +0x6b34, 0x6b6d, 0x8082, 0x6b88, 0x6be6, 0x6be4, +63, 0xd240, +0x6be8, 0x6be3, 0x6be2, 0x6be7, 0x6c25, 0x6d7a, 0x6d63, 0x6d64, +0x6d76, 0x6d0d, 0x6d61, 0x6d92, 0x6d58, 0x6d62, 0x6d6d, 0x6d6f, +0x6d91, 0x6d8d, 0x6def, 0x6d7f, 0x6d86, 0x6d5e, 0x6d67, 0x6d60, +0x6d97, 0x6d70, 0x6d7c, 0x6d5f, 0x6d82, 0x6d98, 0x6d2f, 0x6d68, +0x6d8b, 0x6d7e, 0x6d80, 0x6d84, 0x6d16, 0x6d83, 0x6d7b, 0x6d7d, +0x6d75, 0x6d90, 0x70dc, 0x70d3, 0x70d1, 0x70dd, 0x70cb, 0x7f39, +0x70e2, 0x70d7, 0x70d2, 0x70de, 0x70e0, 0x70d4, 0x70cd, 0x70c5, +0x70c6, 0x70c7, 0x70da, 0x70ce, 0x70e1, 0x7242, 0x7278, +94, 0xd2a1, +0x7277, 0x7276, 0x7300, 0x72fa, 0x72f4, 0x72fe, 0x72f6, 0x72f3, +0x72fb, 0x7301, 0x73d3, 0x73d9, 0x73e5, 0x73d6, 0x73bc, 0x73e7, +0x73e3, 0x73e9, 0x73dc, 0x73d2, 0x73db, 0x73d4, 0x73dd, 0x73da, +0x73d7, 0x73d8, 0x73e8, 0x74de, 0x74df, 0x74f4, 0x74f5, 0x7521, +0x755b, 0x755f, 0x75b0, 0x75c1, 0x75bb, 0x75c4, 0x75c0, 0x75bf, +0x75b6, 0x75ba, 0x768a, 0x76c9, 0x771d, 0x771b, 0x7710, 0x7713, +0x7712, 0x7723, 0x7711, 0x7715, 0x7719, 0x771a, 0x7722, 0x7727, +0x7823, 0x782c, 0x7822, 0x7835, 0x782f, 0x7828, 0x782e, 0x782b, +0x7821, 0x7829, 0x7833, 0x782a, 0x7831, 0x7954, 0x795b, 0x794f, +0x795c, 0x7953, 0x7952, 0x7951, 0x79eb, 0x79ec, 0x79e0, 0x79ee, +0x79ed, 0x79ea, 0x79dc, 0x79de, 0x79dd, 0x7a86, 0x7a89, 0x7a85, +0x7a8b, 0x7a8c, 0x7a8a, 0x7a87, 0x7ad8, 0x7b10, +63, 0xd340, +0x7b04, 0x7b13, 0x7b05, 0x7b0f, 0x7b08, 0x7b0a, 0x7b0e, 0x7b09, +0x7b12, 0x7c84, 0x7c91, 0x7c8a, 0x7c8c, 0x7c88, 0x7c8d, 0x7c85, +0x7d1e, 0x7d1d, 0x7d11, 0x7d0e, 0x7d18, 0x7d16, 0x7d13, 0x7d1f, +0x7d12, 0x7d0f, 0x7d0c, 0x7f5c, 0x7f61, 0x7f5e, 0x7f60, 0x7f5d, +0x7f5b, 0x7f96, 0x7f92, 0x7fc3, 0x7fc2, 0x7fc0, 0x8016, 0x803e, +0x8039, 0x80fa, 0x80f2, 0x80f9, 0x80f5, 0x8101, 0x80fb, 0x8100, +0x8201, 0x822f, 0x8225, 0x8333, 0x832d, 0x8344, 0x8319, 0x8351, +0x8325, 0x8356, 0x833f, 0x8341, 0x8326, 0x831c, 0x8322, +94, 0xd3a1, +0x8342, 0x834e, 0x831b, 0x832a, 0x8308, 0x833c, 0x834d, 0x8316, +0x8324, 0x8320, 0x8337, 0x832f, 0x8329, 0x8347, 0x8345, 0x834c, +0x8353, 0x831e, 0x832c, 0x834b, 0x8327, 0x8348, 0x8653, 0x8652, +0x86a2, 0x86a8, 0x8696, 0x868d, 0x8691, 0x869e, 0x8687, 0x8697, +0x8686, 0x868b, 0x869a, 0x8685, 0x86a5, 0x8699, 0x86a1, 0x86a7, +0x8695, 0x8698, 0x868e, 0x869d, 0x8690, 0x8694, 0x8843, 0x8844, +0x886d, 0x8875, 0x8876, 0x8872, 0x8880, 0x8871, 0x887f, 0x886f, +0x8883, 0x887e, 0x8874, 0x887c, 0x8a12, 0x8c47, 0x8c57, 0x8c7b, +0x8ca4, 0x8ca3, 0x8d76, 0x8d78, 0x8db5, 0x8db7, 0x8db6, 0x8ed1, +0x8ed3, 0x8ffe, 0x8ff5, 0x9002, 0x8fff, 0x8ffb, 0x9004, 0x8ffc, +0x8ff6, 0x90d6, 0x90e0, 0x90d9, 0x90da, 0x90e3, 0x90df, 0x90e5, +0x90d8, 0x90db, 0x90d7, 0x90dc, 0x90e4, 0x9150, +63, 0xd440, +0x914e, 0x914f, 0x91d5, 0x91e2, 0x91da, 0x965c, 0x965f, 0x96bc, +0x98e3, 0x9adf, 0x9b2f, 0x4e7f, 0x5070, 0x506a, 0x5061, 0x505e, +0x5060, 0x5053, 0x504b, 0x505d, 0x5072, 0x5048, 0x504d, 0x5041, +0x505b, 0x504a, 0x5062, 0x5015, 0x5045, 0x505f, 0x5069, 0x506b, +0x5063, 0x5064, 0x5046, 0x5040, 0x506e, 0x5073, 0x5057, 0x5051, +0x51d0, 0x526b, 0x526d, 0x526c, 0x526e, 0x52d6, 0x52d3, 0x532d, +0x539c, 0x5575, 0x5576, 0x553c, 0x554d, 0x5550, 0x5534, 0x552a, +0x5551, 0x5562, 0x5536, 0x5535, 0x5530, 0x5552, 0x5545, +94, 0xd4a1, +0x550c, 0x5532, 0x5565, 0x554e, 0x5539, 0x5548, 0x552d, 0x553b, +0x5540, 0x554b, 0x570a, 0x5707, 0x57fb, 0x5814, 0x57e2, 0x57f6, +0x57dc, 0x57f4, 0x5800, 0x57ed, 0x57fd, 0x5808, 0x57f8, 0x580b, +0x57f3, 0x57cf, 0x5807, 0x57ee, 0x57e3, 0x57f2, 0x57e5, 0x57ec, +0x57e1, 0x580e, 0x57fc, 0x5810, 0x57e7, 0x5801, 0x580c, 0x57f1, +0x57e9, 0x57f0, 0x580d, 0x5804, 0x595c, 0x5a60, 0x5a58, 0x5a55, +0x5a67, 0x5a5e, 0x5a38, 0x5a35, 0x5a6d, 0x5a50, 0x5a5f, 0x5a65, +0x5a6c, 0x5a53, 0x5a64, 0x5a57, 0x5a43, 0x5a5d, 0x5a52, 0x5a44, +0x5a5b, 0x5a48, 0x5a8e, 0x5a3e, 0x5a4d, 0x5a39, 0x5a4c, 0x5a70, +0x5a69, 0x5a47, 0x5a51, 0x5a56, 0x5a42, 0x5a5c, 0x5b72, 0x5b6e, +0x5bc1, 0x5bc0, 0x5c59, 0x5d1e, 0x5d0b, 0x5d1d, 0x5d1a, 0x5d20, +0x5d0c, 0x5d28, 0x5d0d, 0x5d26, 0x5d25, 0x5d0f, +63, 0xd540, +0x5d30, 0x5d12, 0x5d23, 0x5d1f, 0x5d2e, 0x5e3e, 0x5e34, 0x5eb1, +0x5eb4, 0x5eb9, 0x5eb2, 0x5eb3, 0x5f36, 0x5f38, 0x5f9b, 0x5f96, +0x5f9f, 0x608a, 0x6090, 0x6086, 0x60be, 0x60b0, 0x60ba, 0x60d3, +0x60d4, 0x60cf, 0x60e4, 0x60d9, 0x60dd, 0x60c8, 0x60b1, 0x60db, +0x60b7, 0x60ca, 0x60bf, 0x60c3, 0x60cd, 0x60c0, 0x6332, 0x6365, +0x638a, 0x6382, 0x637d, 0x63bd, 0x639e, 0x63ad, 0x639d, 0x6397, +0x63ab, 0x638e, 0x636f, 0x6387, 0x6390, 0x636e, 0x63af, 0x6375, +0x639c, 0x636d, 0x63ae, 0x637c, 0x63a4, 0x633b, 0x639f, +94, 0xd5a1, +0x6378, 0x6385, 0x6381, 0x6391, 0x638d, 0x6370, 0x6553, 0x65cd, +0x6665, 0x6661, 0x665b, 0x6659, 0x665c, 0x6662, 0x6718, 0x6879, +0x6887, 0x6890, 0x689c, 0x686d, 0x686e, 0x68ae, 0x68ab, 0x6956, +0x686f, 0x68a3, 0x68ac, 0x68a9, 0x6875, 0x6874, 0x68b2, 0x688f, +0x6877, 0x6892, 0x687c, 0x686b, 0x6872, 0x68aa, 0x6880, 0x6871, +0x687e, 0x689b, 0x6896, 0x688b, 0x68a0, 0x6889, 0x68a4, 0x6878, +0x687b, 0x6891, 0x688c, 0x688a, 0x687d, 0x6b36, 0x6b33, 0x6b37, +0x6b38, 0x6b91, 0x6b8f, 0x6b8d, 0x6b8e, 0x6b8c, 0x6c2a, 0x6dc0, +0x6dab, 0x6db4, 0x6db3, 0x6e74, 0x6dac, 0x6de9, 0x6de2, 0x6db7, +0x6df6, 0x6dd4, 0x6e00, 0x6dc8, 0x6de0, 0x6ddf, 0x6dd6, 0x6dbe, +0x6de5, 0x6ddc, 0x6ddd, 0x6ddb, 0x6df4, 0x6dca, 0x6dbd, 0x6ded, +0x6df0, 0x6dba, 0x6dd5, 0x6dc2, 0x6dcf, 0x6dc9, +63, 0xd640, +0x6dd0, 0x6df2, 0x6dd3, 0x6dfd, 0x6dd7, 0x6dcd, 0x6de3, 0x6dbb, +0x70fa, 0x710d, 0x70f7, 0x7117, 0x70f4, 0x710c, 0x70f0, 0x7104, +0x70f3, 0x7110, 0x70fc, 0x70ff, 0x7106, 0x7113, 0x7100, 0x70f8, +0x70f6, 0x710b, 0x7102, 0x710e, 0x727e, 0x727b, 0x727c, 0x727f, +0x731d, 0x7317, 0x7307, 0x7311, 0x7318, 0x730a, 0x7308, 0x72ff, +0x730f, 0x731e, 0x7388, 0x73f6, 0x73f8, 0x73f5, 0x7404, 0x7401, +0x73fd, 0x7407, 0x7400, 0x73fa, 0x73fc, 0x73ff, 0x740c, 0x740b, +0x73f4, 0x7408, 0x7564, 0x7563, 0x75ce, 0x75d2, 0x75cf, +94, 0xd6a1, +0x75cb, 0x75cc, 0x75d1, 0x75d0, 0x768f, 0x7689, 0x76d3, 0x7739, +0x772f, 0x772d, 0x7731, 0x7732, 0x7734, 0x7733, 0x773d, 0x7725, +0x773b, 0x7735, 0x7848, 0x7852, 0x7849, 0x784d, 0x784a, 0x784c, +0x7826, 0x7845, 0x7850, 0x7964, 0x7967, 0x7969, 0x796a, 0x7963, +0x796b, 0x7961, 0x79bb, 0x79fa, 0x79f8, 0x79f6, 0x79f7, 0x7a8f, +0x7a94, 0x7a90, 0x7b35, 0x7b47, 0x7b34, 0x7b25, 0x7b30, 0x7b22, +0x7b24, 0x7b33, 0x7b18, 0x7b2a, 0x7b1d, 0x7b31, 0x7b2b, 0x7b2d, +0x7b2f, 0x7b32, 0x7b38, 0x7b1a, 0x7b23, 0x7c94, 0x7c98, 0x7c96, +0x7ca3, 0x7d35, 0x7d3d, 0x7d38, 0x7d36, 0x7d3a, 0x7d45, 0x7d2c, +0x7d29, 0x7d41, 0x7d47, 0x7d3e, 0x7d3f, 0x7d4a, 0x7d3b, 0x7d28, +0x7f63, 0x7f95, 0x7f9c, 0x7f9d, 0x7f9b, 0x7fca, 0x7fcb, 0x7fcd, +0x7fd0, 0x7fd1, 0x7fc7, 0x7fcf, 0x7fc9, 0x801f, +63, 0xd740, +0x801e, 0x801b, 0x8047, 0x8043, 0x8048, 0x8118, 0x8125, 0x8119, +0x811b, 0x812d, 0x811f, 0x812c, 0x811e, 0x8121, 0x8115, 0x8127, +0x811d, 0x8122, 0x8211, 0x8238, 0x8233, 0x823a, 0x8234, 0x8232, +0x8274, 0x8390, 0x83a3, 0x83a8, 0x838d, 0x837a, 0x8373, 0x83a4, +0x8374, 0x838f, 0x8381, 0x8395, 0x8399, 0x8375, 0x8394, 0x83a9, +0x837d, 0x8383, 0x838c, 0x839d, 0x839b, 0x83aa, 0x838b, 0x837e, +0x83a5, 0x83af, 0x8388, 0x8397, 0x83b0, 0x837f, 0x83a6, 0x8387, +0x83ae, 0x8376, 0x839a, 0x8659, 0x8656, 0x86bf, 0x86b7, +94, 0xd7a1, +0x86c2, 0x86c1, 0x86c5, 0x86ba, 0x86b0, 0x86c8, 0x86b9, 0x86b3, +0x86b8, 0x86cc, 0x86b4, 0x86bb, 0x86bc, 0x86c3, 0x86bd, 0x86be, +0x8852, 0x8889, 0x8895, 0x88a8, 0x88a2, 0x88aa, 0x889a, 0x8891, +0x88a1, 0x889f, 0x8898, 0x88a7, 0x8899, 0x889b, 0x8897, 0x88a4, +0x88ac, 0x888c, 0x8893, 0x888e, 0x8982, 0x89d6, 0x89d9, 0x89d5, +0x8a30, 0x8a27, 0x8a2c, 0x8a1e, 0x8c39, 0x8c3b, 0x8c5c, 0x8c5d, +0x8c7d, 0x8ca5, 0x8d7d, 0x8d7b, 0x8d79, 0x8dbc, 0x8dc2, 0x8db9, +0x8dbf, 0x8dc1, 0x8ed8, 0x8ede, 0x8edd, 0x8edc, 0x8ed7, 0x8ee0, +0x8ee1, 0x9024, 0x900b, 0x9011, 0x901c, 0x900c, 0x9021, 0x90ef, +0x90ea, 0x90f0, 0x90f4, 0x90f2, 0x90f3, 0x90d4, 0x90eb, 0x90ec, +0x90e9, 0x9156, 0x9158, 0x915a, 0x9153, 0x9155, 0x91ec, 0x91f4, +0x91f1, 0x91f3, 0x91f8, 0x91e4, 0x91f9, 0x91ea, +63, 0xd840, +0x91eb, 0x91f7, 0x91e8, 0x91ee, 0x957a, 0x9586, 0x9588, 0x967c, +0x966d, 0x966b, 0x9671, 0x966f, 0x96bf, 0x976a, 0x9804, 0x98e5, +0x9997, 0x509b, 0x5095, 0x5094, 0x509e, 0x508b, 0x50a3, 0x5083, +0x508c, 0x508e, 0x509d, 0x5068, 0x509c, 0x5092, 0x5082, 0x5087, +0x515f, 0x51d4, 0x5312, 0x5311, 0x53a4, 0x53a7, 0x5591, 0x55a8, +0x55a5, 0x55ad, 0x5577, 0x5645, 0x55a2, 0x5593, 0x5588, 0x558f, +0x55b5, 0x5581, 0x55a3, 0x5592, 0x55a4, 0x557d, 0x558c, 0x55a6, +0x557f, 0x5595, 0x55a1, 0x558e, 0x570c, 0x5829, 0x5837, +94, 0xd8a1, +0x5819, 0x581e, 0x5827, 0x5823, 0x5828, 0x57f5, 0x5848, 0x5825, +0x581c, 0x581b, 0x5833, 0x583f, 0x5836, 0x582e, 0x5839, 0x5838, +0x582d, 0x582c, 0x583b, 0x5961, 0x5aaf, 0x5a94, 0x5a9f, 0x5a7a, +0x5aa2, 0x5a9e, 0x5a78, 0x5aa6, 0x5a7c, 0x5aa5, 0x5aac, 0x5a95, +0x5aae, 0x5a37, 0x5a84, 0x5a8a, 0x5a97, 0x5a83, 0x5a8b, 0x5aa9, +0x5a7b, 0x5a7d, 0x5a8c, 0x5a9c, 0x5a8f, 0x5a93, 0x5a9d, 0x5bea, +0x5bcd, 0x5bcb, 0x5bd4, 0x5bd1, 0x5bca, 0x5bce, 0x5c0c, 0x5c30, +0x5d37, 0x5d43, 0x5d6b, 0x5d41, 0x5d4b, 0x5d3f, 0x5d35, 0x5d51, +0x5d4e, 0x5d55, 0x5d33, 0x5d3a, 0x5d52, 0x5d3d, 0x5d31, 0x5d59, +0x5d42, 0x5d39, 0x5d49, 0x5d38, 0x5d3c, 0x5d32, 0x5d36, 0x5d40, +0x5d45, 0x5e44, 0x5e41, 0x5f58, 0x5fa6, 0x5fa5, 0x5fab, 0x60c9, +0x60b9, 0x60cc, 0x60e2, 0x60ce, 0x60c4, 0x6114, +63, 0xd940, +0x60f2, 0x610a, 0x6116, 0x6105, 0x60f5, 0x6113, 0x60f8, 0x60fc, +0x60fe, 0x60c1, 0x6103, 0x6118, 0x611d, 0x6110, 0x60ff, 0x6104, +0x610b, 0x624a, 0x6394, 0x63b1, 0x63b0, 0x63ce, 0x63e5, 0x63e8, +0x63ef, 0x63c3, 0x649d, 0x63f3, 0x63ca, 0x63e0, 0x63f6, 0x63d5, +0x63f2, 0x63f5, 0x6461, 0x63df, 0x63be, 0x63dd, 0x63dc, 0x63c4, +0x63d8, 0x63d3, 0x63c2, 0x63c7, 0x63cc, 0x63cb, 0x63c8, 0x63f0, +0x63d7, 0x63d9, 0x6532, 0x6567, 0x656a, 0x6564, 0x655c, 0x6568, +0x6565, 0x658c, 0x659d, 0x659e, 0x65ae, 0x65d0, 0x65d2, +94, 0xd9a1, +0x667c, 0x666c, 0x667b, 0x6680, 0x6671, 0x6679, 0x666a, 0x6672, +0x6701, 0x690c, 0x68d3, 0x6904, 0x68dc, 0x692a, 0x68ec, 0x68ea, +0x68f1, 0x690f, 0x68d6, 0x68f7, 0x68eb, 0x68e4, 0x68f6, 0x6913, +0x6910, 0x68f3, 0x68e1, 0x6907, 0x68cc, 0x6908, 0x6970, 0x68b4, +0x6911, 0x68ef, 0x68c6, 0x6914, 0x68f8, 0x68d0, 0x68fd, 0x68fc, +0x68e8, 0x690b, 0x690a, 0x6917, 0x68ce, 0x68c8, 0x68dd, 0x68de, +0x68e6, 0x68f4, 0x68d1, 0x6906, 0x68d4, 0x68e9, 0x6915, 0x6925, +0x68c7, 0x6b39, 0x6b3b, 0x6b3f, 0x6b3c, 0x6b94, 0x6b97, 0x6b99, +0x6b95, 0x6bbd, 0x6bf0, 0x6bf2, 0x6bf3, 0x6c30, 0x6dfc, 0x6e46, +0x6e47, 0x6e1f, 0x6e49, 0x6e88, 0x6e3c, 0x6e3d, 0x6e45, 0x6e62, +0x6e2b, 0x6e3f, 0x6e41, 0x6e5d, 0x6e73, 0x6e1c, 0x6e33, 0x6e4b, +0x6e40, 0x6e51, 0x6e3b, 0x6e03, 0x6e2e, 0x6e5e, +63, 0xda40, +0x6e68, 0x6e5c, 0x6e61, 0x6e31, 0x6e28, 0x6e60, 0x6e71, 0x6e6b, +0x6e39, 0x6e22, 0x6e30, 0x6e53, 0x6e65, 0x6e27, 0x6e78, 0x6e64, +0x6e77, 0x6e55, 0x6e79, 0x6e52, 0x6e66, 0x6e35, 0x6e36, 0x6e5a, +0x7120, 0x711e, 0x712f, 0x70fb, 0x712e, 0x7131, 0x7123, 0x7125, +0x7122, 0x7132, 0x711f, 0x7128, 0x713a, 0x711b, 0x724b, 0x725a, +0x7288, 0x7289, 0x7286, 0x7285, 0x728b, 0x7312, 0x730b, 0x7330, +0x7322, 0x7331, 0x7333, 0x7327, 0x7332, 0x732d, 0x7326, 0x7323, +0x7335, 0x730c, 0x742e, 0x742c, 0x7430, 0x742b, 0x7416, +94, 0xdaa1, +0x741a, 0x7421, 0x742d, 0x7431, 0x7424, 0x7423, 0x741d, 0x7429, +0x7420, 0x7432, 0x74fb, 0x752f, 0x756f, 0x756c, 0x75e7, 0x75da, +0x75e1, 0x75e6, 0x75dd, 0x75df, 0x75e4, 0x75d7, 0x7695, 0x7692, +0x76da, 0x7746, 0x7747, 0x7744, 0x774d, 0x7745, 0x774a, 0x774e, +0x774b, 0x774c, 0x77de, 0x77ec, 0x7860, 0x7864, 0x7865, 0x785c, +0x786d, 0x7871, 0x786a, 0x786e, 0x7870, 0x7869, 0x7868, 0x785e, +0x7862, 0x7974, 0x7973, 0x7972, 0x7970, 0x7a02, 0x7a0a, 0x7a03, +0x7a0c, 0x7a04, 0x7a99, 0x7ae6, 0x7ae4, 0x7b4a, 0x7b3b, 0x7b44, +0x7b48, 0x7b4c, 0x7b4e, 0x7b40, 0x7b58, 0x7b45, 0x7ca2, 0x7c9e, +0x7ca8, 0x7ca1, 0x7d58, 0x7d6f, 0x7d63, 0x7d53, 0x7d56, 0x7d67, +0x7d6a, 0x7d4f, 0x7d6d, 0x7d5c, 0x7d6b, 0x7d52, 0x7d54, 0x7d69, +0x7d51, 0x7d5f, 0x7d4e, 0x7f3e, 0x7f3f, 0x7f65, +63, 0xdb40, +0x7f66, 0x7fa2, 0x7fa0, 0x7fa1, 0x7fd7, 0x8051, 0x804f, 0x8050, +0x80fe, 0x80d4, 0x8143, 0x814a, 0x8152, 0x814f, 0x8147, 0x813d, +0x814d, 0x813a, 0x81e6, 0x81ee, 0x81f7, 0x81f8, 0x81f9, 0x8204, +0x823c, 0x823d, 0x823f, 0x8275, 0x833b, 0x83cf, 0x83f9, 0x8423, +0x83c0, 0x83e8, 0x8412, 0x83e7, 0x83e4, 0x83fc, 0x83f6, 0x8410, +0x83c6, 0x83c8, 0x83eb, 0x83e3, 0x83bf, 0x8401, 0x83dd, 0x83e5, +0x83d8, 0x83ff, 0x83e1, 0x83cb, 0x83ce, 0x83d6, 0x83f5, 0x83c9, +0x8409, 0x840f, 0x83de, 0x8411, 0x8406, 0x83c2, 0x83f3, +94, 0xdba1, +0x83d5, 0x83fa, 0x83c7, 0x83d1, 0x83ea, 0x8413, 0x83c3, 0x83ec, +0x83ee, 0x83c4, 0x83fb, 0x83d7, 0x83e2, 0x841b, 0x83db, 0x83fe, +0x86d8, 0x86e2, 0x86e6, 0x86d3, 0x86e3, 0x86da, 0x86ea, 0x86dd, +0x86eb, 0x86dc, 0x86ec, 0x86e9, 0x86d7, 0x86e8, 0x86d1, 0x8848, +0x8856, 0x8855, 0x88ba, 0x88d7, 0x88b9, 0x88b8, 0x88c0, 0x88be, +0x88b6, 0x88bc, 0x88b7, 0x88bd, 0x88b2, 0x8901, 0x88c9, 0x8995, +0x8998, 0x8997, 0x89dd, 0x89da, 0x89db, 0x8a4e, 0x8a4d, 0x8a39, +0x8a59, 0x8a40, 0x8a57, 0x8a58, 0x8a44, 0x8a45, 0x8a52, 0x8a48, +0x8a51, 0x8a4a, 0x8a4c, 0x8a4f, 0x8c5f, 0x8c81, 0x8c80, 0x8cba, +0x8cbe, 0x8cb0, 0x8cb9, 0x8cb5, 0x8d84, 0x8d80, 0x8d89, 0x8dd8, +0x8dd3, 0x8dcd, 0x8dc7, 0x8dd6, 0x8ddc, 0x8dcf, 0x8dd5, 0x8dd9, +0x8dc8, 0x8dd7, 0x8dc5, 0x8eef, 0x8ef7, 0x8efa, +63, 0xdc40, +0x8ef9, 0x8ee6, 0x8eee, 0x8ee5, 0x8ef5, 0x8ee7, 0x8ee8, 0x8ef6, +0x8eeb, 0x8ef1, 0x8eec, 0x8ef4, 0x8ee9, 0x902d, 0x9034, 0x902f, +0x9106, 0x912c, 0x9104, 0x90ff, 0x90fc, 0x9108, 0x90f9, 0x90fb, +0x9101, 0x9100, 0x9107, 0x9105, 0x9103, 0x9161, 0x9164, 0x915f, +0x9162, 0x9160, 0x9201, 0x920a, 0x9225, 0x9203, 0x921a, 0x9226, +0x920f, 0x920c, 0x9200, 0x9212, 0x91ff, 0x91fd, 0x9206, 0x9204, +0x9227, 0x9202, 0x921c, 0x9224, 0x9219, 0x9217, 0x9205, 0x9216, +0x957b, 0x958d, 0x958c, 0x9590, 0x9687, 0x967e, 0x9688, +94, 0xdca1, +0x9689, 0x9683, 0x9680, 0x96c2, 0x96c8, 0x96c3, 0x96f1, 0x96f0, +0x976c, 0x9770, 0x976e, 0x9807, 0x98a9, 0x98eb, 0x9ce6, 0x9ef9, +0x4e83, 0x4e84, 0x4eb6, 0x50bd, 0x50bf, 0x50c6, 0x50ae, 0x50c4, +0x50ca, 0x50b4, 0x50c8, 0x50c2, 0x50b0, 0x50c1, 0x50ba, 0x50b1, +0x50cb, 0x50c9, 0x50b6, 0x50b8, 0x51d7, 0x527a, 0x5278, 0x527b, +0x527c, 0x55c3, 0x55db, 0x55cc, 0x55d0, 0x55cb, 0x55ca, 0x55dd, +0x55c0, 0x55d4, 0x55c4, 0x55e9, 0x55bf, 0x55d2, 0x558d, 0x55cf, +0x55d5, 0x55e2, 0x55d6, 0x55c8, 0x55f2, 0x55cd, 0x55d9, 0x55c2, +0x5714, 0x5853, 0x5868, 0x5864, 0x584f, 0x584d, 0x5849, 0x586f, +0x5855, 0x584e, 0x585d, 0x5859, 0x5865, 0x585b, 0x583d, 0x5863, +0x5871, 0x58fc, 0x5ac7, 0x5ac4, 0x5acb, 0x5aba, 0x5ab8, 0x5ab1, +0x5ab5, 0x5ab0, 0x5abf, 0x5ac8, 0x5abb, 0x5ac6, +63, 0xdd40, +0x5ab7, 0x5ac0, 0x5aca, 0x5ab4, 0x5ab6, 0x5acd, 0x5ab9, 0x5a90, +0x5bd6, 0x5bd8, 0x5bd9, 0x5c1f, 0x5c33, 0x5d71, 0x5d63, 0x5d4a, +0x5d65, 0x5d72, 0x5d6c, 0x5d5e, 0x5d68, 0x5d67, 0x5d62, 0x5df0, +0x5e4f, 0x5e4e, 0x5e4a, 0x5e4d, 0x5e4b, 0x5ec5, 0x5ecc, 0x5ec6, +0x5ecb, 0x5ec7, 0x5f40, 0x5faf, 0x5fad, 0x60f7, 0x6149, 0x614a, +0x612b, 0x6145, 0x6136, 0x6132, 0x612e, 0x6146, 0x612f, 0x614f, +0x6129, 0x6140, 0x6220, 0x9168, 0x6223, 0x6225, 0x6224, 0x63c5, +0x63f1, 0x63eb, 0x6410, 0x6412, 0x6409, 0x6420, 0x6424, +94, 0xdda1, +0x6433, 0x6443, 0x641f, 0x6415, 0x6418, 0x6439, 0x6437, 0x6422, +0x6423, 0x640c, 0x6426, 0x6430, 0x6428, 0x6441, 0x6435, 0x642f, +0x640a, 0x641a, 0x6440, 0x6425, 0x6427, 0x640b, 0x63e7, 0x641b, +0x642e, 0x6421, 0x640e, 0x656f, 0x6592, 0x65d3, 0x6686, 0x668c, +0x6695, 0x6690, 0x668b, 0x668a, 0x6699, 0x6694, 0x6678, 0x6720, +0x6966, 0x695f, 0x6938, 0x694e, 0x6962, 0x6971, 0x693f, 0x6945, +0x696a, 0x6939, 0x6942, 0x6957, 0x6959, 0x697a, 0x6948, 0x6949, +0x6935, 0x696c, 0x6933, 0x693d, 0x6965, 0x68f0, 0x6978, 0x6934, +0x6969, 0x6940, 0x696f, 0x6944, 0x6976, 0x6958, 0x6941, 0x6974, +0x694c, 0x693b, 0x694b, 0x6937, 0x695c, 0x694f, 0x6951, 0x6932, +0x6952, 0x692f, 0x697b, 0x693c, 0x6b46, 0x6b45, 0x6b43, 0x6b42, +0x6b48, 0x6b41, 0x6b9b, 0xfa0d, 0x6bfb, 0x6bfc, +63, 0xde40, +0x6bf9, 0x6bf7, 0x6bf8, 0x6e9b, 0x6ed6, 0x6ec8, 0x6e8f, 0x6ec0, +0x6e9f, 0x6e93, 0x6e94, 0x6ea0, 0x6eb1, 0x6eb9, 0x6ec6, 0x6ed2, +0x6ebd, 0x6ec1, 0x6e9e, 0x6ec9, 0x6eb7, 0x6eb0, 0x6ecd, 0x6ea6, +0x6ecf, 0x6eb2, 0x6ebe, 0x6ec3, 0x6edc, 0x6ed8, 0x6e99, 0x6e92, +0x6e8e, 0x6e8d, 0x6ea4, 0x6ea1, 0x6ebf, 0x6eb3, 0x6ed0, 0x6eca, +0x6e97, 0x6eae, 0x6ea3, 0x7147, 0x7154, 0x7152, 0x7163, 0x7160, +0x7141, 0x715d, 0x7162, 0x7172, 0x7178, 0x716a, 0x7161, 0x7142, +0x7158, 0x7143, 0x714b, 0x7170, 0x715f, 0x7150, 0x7153, +94, 0xdea1, +0x7144, 0x714d, 0x715a, 0x724f, 0x728d, 0x728c, 0x7291, 0x7290, +0x728e, 0x733c, 0x7342, 0x733b, 0x733a, 0x7340, 0x734a, 0x7349, +0x7444, 0x744a, 0x744b, 0x7452, 0x7451, 0x7457, 0x7440, 0x744f, +0x7450, 0x744e, 0x7442, 0x7446, 0x744d, 0x7454, 0x74e1, 0x74ff, +0x74fe, 0x74fd, 0x751d, 0x7579, 0x7577, 0x6983, 0x75ef, 0x760f, +0x7603, 0x75f7, 0x75fe, 0x75fc, 0x75f9, 0x75f8, 0x7610, 0x75fb, +0x75f6, 0x75ed, 0x75f5, 0x75fd, 0x7699, 0x76b5, 0x76dd, 0x7755, +0x775f, 0x7760, 0x7752, 0x7756, 0x775a, 0x7769, 0x7767, 0x7754, +0x7759, 0x776d, 0x77e0, 0x7887, 0x789a, 0x7894, 0x788f, 0x7884, +0x7895, 0x7885, 0x7886, 0x78a1, 0x7883, 0x7879, 0x7899, 0x7880, +0x7896, 0x787b, 0x797c, 0x7982, 0x797d, 0x7979, 0x7a11, 0x7a18, +0x7a19, 0x7a12, 0x7a17, 0x7a15, 0x7a22, 0x7a13, +63, 0xdf40, +0x7a1b, 0x7a10, 0x7aa3, 0x7aa2, 0x7a9e, 0x7aeb, 0x7b66, 0x7b64, +0x7b6d, 0x7b74, 0x7b69, 0x7b72, 0x7b65, 0x7b73, 0x7b71, 0x7b70, +0x7b61, 0x7b78, 0x7b76, 0x7b63, 0x7cb2, 0x7cb4, 0x7caf, 0x7d88, +0x7d86, 0x7d80, 0x7d8d, 0x7d7f, 0x7d85, 0x7d7a, 0x7d8e, 0x7d7b, +0x7d83, 0x7d7c, 0x7d8c, 0x7d94, 0x7d84, 0x7d7d, 0x7d92, 0x7f6d, +0x7f6b, 0x7f67, 0x7f68, 0x7f6c, 0x7fa6, 0x7fa5, 0x7fa7, 0x7fdb, +0x7fdc, 0x8021, 0x8164, 0x8160, 0x8177, 0x815c, 0x8169, 0x815b, +0x8162, 0x8172, 0x6721, 0x815e, 0x8176, 0x8167, 0x816f, +94, 0xdfa1, +0x8144, 0x8161, 0x821d, 0x8249, 0x8244, 0x8240, 0x8242, 0x8245, +0x84f1, 0x843f, 0x8456, 0x8476, 0x8479, 0x848f, 0x848d, 0x8465, +0x8451, 0x8440, 0x8486, 0x8467, 0x8430, 0x844d, 0x847d, 0x845a, +0x8459, 0x8474, 0x8473, 0x845d, 0x8507, 0x845e, 0x8437, 0x843a, +0x8434, 0x847a, 0x8443, 0x8478, 0x8432, 0x8445, 0x8429, 0x83d9, +0x844b, 0x842f, 0x8442, 0x842d, 0x845f, 0x8470, 0x8439, 0x844e, +0x844c, 0x8452, 0x846f, 0x84c5, 0x848e, 0x843b, 0x8447, 0x8436, +0x8433, 0x8468, 0x847e, 0x8444, 0x842b, 0x8460, 0x8454, 0x846e, +0x8450, 0x870b, 0x8704, 0x86f7, 0x870c, 0x86fa, 0x86d6, 0x86f5, +0x874d, 0x86f8, 0x870e, 0x8709, 0x8701, 0x86f6, 0x870d, 0x8705, +0x88d6, 0x88cb, 0x88cd, 0x88ce, 0x88de, 0x88db, 0x88da, 0x88cc, +0x88d0, 0x8985, 0x899b, 0x89df, 0x89e5, 0x89e4, +63, 0xe040, +0x89e1, 0x89e0, 0x89e2, 0x89dc, 0x89e6, 0x8a76, 0x8a86, 0x8a7f, +0x8a61, 0x8a3f, 0x8a77, 0x8a82, 0x8a84, 0x8a75, 0x8a83, 0x8a81, +0x8a74, 0x8a7a, 0x8c3c, 0x8c4b, 0x8c4a, 0x8c65, 0x8c64, 0x8c66, +0x8c86, 0x8c84, 0x8c85, 0x8ccc, 0x8d68, 0x8d69, 0x8d91, 0x8d8c, +0x8d8e, 0x8d8f, 0x8d8d, 0x8d93, 0x8d94, 0x8d90, 0x8d92, 0x8df0, +0x8de0, 0x8dec, 0x8df1, 0x8dee, 0x8dd0, 0x8de9, 0x8de3, 0x8de2, +0x8de7, 0x8df2, 0x8deb, 0x8df4, 0x8f06, 0x8eff, 0x8f01, 0x8f00, +0x8f05, 0x8f07, 0x8f08, 0x8f02, 0x8f0b, 0x9052, 0x903f, +94, 0xe0a1, +0x9044, 0x9049, 0x903d, 0x9110, 0x910d, 0x910f, 0x9111, 0x9116, +0x9114, 0x910b, 0x910e, 0x916e, 0x916f, 0x9248, 0x9252, 0x9230, +0x923a, 0x9266, 0x9233, 0x9265, 0x925e, 0x9283, 0x922e, 0x924a, +0x9246, 0x926d, 0x926c, 0x924f, 0x9260, 0x9267, 0x926f, 0x9236, +0x9261, 0x9270, 0x9231, 0x9254, 0x9263, 0x9250, 0x9272, 0x924e, +0x9253, 0x924c, 0x9256, 0x9232, 0x959f, 0x959c, 0x959e, 0x959b, +0x9692, 0x9693, 0x9691, 0x9697, 0x96ce, 0x96fa, 0x96fd, 0x96f8, +0x96f5, 0x9773, 0x9777, 0x9778, 0x9772, 0x980f, 0x980d, 0x980e, +0x98ac, 0x98f6, 0x98f9, 0x99af, 0x99b2, 0x99b0, 0x99b5, 0x9aad, +0x9aab, 0x9b5b, 0x9cea, 0x9ced, 0x9ce7, 0x9e80, 0x9efd, 0x50e6, +0x50d4, 0x50d7, 0x50e8, 0x50f3, 0x50db, 0x50ea, 0x50dd, 0x50e4, +0x50d3, 0x50ec, 0x50f0, 0x50ef, 0x50e3, 0x50e0, +63, 0xe140, +0x51d8, 0x5280, 0x5281, 0x52e9, 0x52eb, 0x5330, 0x53ac, 0x5627, +0x5615, 0x560c, 0x5612, 0x55fc, 0x560f, 0x561c, 0x5601, 0x5613, +0x5602, 0x55fa, 0x561d, 0x5604, 0x55ff, 0x55f9, 0x5889, 0x587c, +0x5890, 0x5898, 0x5886, 0x5881, 0x587f, 0x5874, 0x588b, 0x587a, +0x5887, 0x5891, 0x588e, 0x5876, 0x5882, 0x5888, 0x587b, 0x5894, +0x588f, 0x58fe, 0x596b, 0x5adc, 0x5aee, 0x5ae5, 0x5ad5, 0x5aea, +0x5ada, 0x5aed, 0x5aeb, 0x5af3, 0x5ae2, 0x5ae0, 0x5adb, 0x5aec, +0x5ade, 0x5add, 0x5ad9, 0x5ae8, 0x5adf, 0x5b77, 0x5be0, +94, 0xe1a1, +0x5be3, 0x5c63, 0x5d82, 0x5d80, 0x5d7d, 0x5d86, 0x5d7a, 0x5d81, +0x5d77, 0x5d8a, 0x5d89, 0x5d88, 0x5d7e, 0x5d7c, 0x5d8d, 0x5d79, +0x5d7f, 0x5e58, 0x5e59, 0x5e53, 0x5ed8, 0x5ed1, 0x5ed7, 0x5ece, +0x5edc, 0x5ed5, 0x5ed9, 0x5ed2, 0x5ed4, 0x5f44, 0x5f43, 0x5f6f, +0x5fb6, 0x612c, 0x6128, 0x6141, 0x615e, 0x6171, 0x6173, 0x6152, +0x6153, 0x6172, 0x616c, 0x6180, 0x6174, 0x6154, 0x617a, 0x615b, +0x6165, 0x613b, 0x616a, 0x6161, 0x6156, 0x6229, 0x6227, 0x622b, +0x642b, 0x644d, 0x645b, 0x645d, 0x6474, 0x6476, 0x6472, 0x6473, +0x647d, 0x6475, 0x6466, 0x64a6, 0x644e, 0x6482, 0x645e, 0x645c, +0x644b, 0x6453, 0x6460, 0x6450, 0x647f, 0x643f, 0x646c, 0x646b, +0x6459, 0x6465, 0x6477, 0x6573, 0x65a0, 0x66a1, 0x66a0, 0x669f, +0x6705, 0x6704, 0x6722, 0x69b1, 0x69b6, 0x69c9, +63, 0xe240, +0x69a0, 0x69ce, 0x6996, 0x69b0, 0x69ac, 0x69bc, 0x6991, 0x6999, +0x698e, 0x69a7, 0x698d, 0x69a9, 0x69be, 0x69af, 0x69bf, 0x69c4, +0x69bd, 0x69a4, 0x69d4, 0x69b9, 0x69ca, 0x699a, 0x69cf, 0x69b3, +0x6993, 0x69aa, 0x69a1, 0x699e, 0x69d9, 0x6997, 0x6990, 0x69c2, +0x69b5, 0x69a5, 0x69c6, 0x6b4a, 0x6b4d, 0x6b4b, 0x6b9e, 0x6b9f, +0x6ba0, 0x6bc3, 0x6bc4, 0x6bfe, 0x6ece, 0x6ef5, 0x6ef1, 0x6f03, +0x6f25, 0x6ef8, 0x6f37, 0x6efb, 0x6f2e, 0x6f09, 0x6f4e, 0x6f19, +0x6f1a, 0x6f27, 0x6f18, 0x6f3b, 0x6f12, 0x6eed, 0x6f0a, +94, 0xe2a1, +0x6f36, 0x6f73, 0x6ef9, 0x6eee, 0x6f2d, 0x6f40, 0x6f30, 0x6f3c, +0x6f35, 0x6eeb, 0x6f07, 0x6f0e, 0x6f43, 0x6f05, 0x6efd, 0x6ef6, +0x6f39, 0x6f1c, 0x6efc, 0x6f3a, 0x6f1f, 0x6f0d, 0x6f1e, 0x6f08, +0x6f21, 0x7187, 0x7190, 0x7189, 0x7180, 0x7185, 0x7182, 0x718f, +0x717b, 0x7186, 0x7181, 0x7197, 0x7244, 0x7253, 0x7297, 0x7295, +0x7293, 0x7343, 0x734d, 0x7351, 0x734c, 0x7462, 0x7473, 0x7471, +0x7475, 0x7472, 0x7467, 0x746e, 0x7500, 0x7502, 0x7503, 0x757d, +0x7590, 0x7616, 0x7608, 0x760c, 0x7615, 0x7611, 0x760a, 0x7614, +0x76b8, 0x7781, 0x777c, 0x7785, 0x7782, 0x776e, 0x7780, 0x776f, +0x777e, 0x7783, 0x78b2, 0x78aa, 0x78b4, 0x78ad, 0x78a8, 0x787e, +0x78ab, 0x789e, 0x78a5, 0x78a0, 0x78ac, 0x78a2, 0x78a4, 0x7998, +0x798a, 0x798b, 0x7996, 0x7995, 0x7994, 0x7993, +63, 0xe340, +0x7997, 0x7988, 0x7992, 0x7990, 0x7a2b, 0x7a4a, 0x7a30, 0x7a2f, +0x7a28, 0x7a26, 0x7aa8, 0x7aab, 0x7aac, 0x7aee, 0x7b88, 0x7b9c, +0x7b8a, 0x7b91, 0x7b90, 0x7b96, 0x7b8d, 0x7b8c, 0x7b9b, 0x7b8e, +0x7b85, 0x7b98, 0x5284, 0x7b99, 0x7ba4, 0x7b82, 0x7cbb, 0x7cbf, +0x7cbc, 0x7cba, 0x7da7, 0x7db7, 0x7dc2, 0x7da3, 0x7daa, 0x7dc1, +0x7dc0, 0x7dc5, 0x7d9d, 0x7dce, 0x7dc4, 0x7dc6, 0x7dcb, 0x7dcc, +0x7daf, 0x7db9, 0x7d96, 0x7dbc, 0x7d9f, 0x7da6, 0x7dae, 0x7da9, +0x7da1, 0x7dc9, 0x7f73, 0x7fe2, 0x7fe3, 0x7fe5, 0x7fde, +94, 0xe3a1, +0x8024, 0x805d, 0x805c, 0x8189, 0x8186, 0x8183, 0x8187, 0x818d, +0x818c, 0x818b, 0x8215, 0x8497, 0x84a4, 0x84a1, 0x849f, 0x84ba, +0x84ce, 0x84c2, 0x84ac, 0x84ae, 0x84ab, 0x84b9, 0x84b4, 0x84c1, +0x84cd, 0x84aa, 0x849a, 0x84b1, 0x84d0, 0x849d, 0x84a7, 0x84bb, +0x84a2, 0x8494, 0x84c7, 0x84cc, 0x849b, 0x84a9, 0x84af, 0x84a8, +0x84d6, 0x8498, 0x84b6, 0x84cf, 0x84a0, 0x84d7, 0x84d4, 0x84d2, +0x84db, 0x84b0, 0x8491, 0x8661, 0x8733, 0x8723, 0x8728, 0x876b, +0x8740, 0x872e, 0x871e, 0x8721, 0x8719, 0x871b, 0x8743, 0x872c, +0x8741, 0x873e, 0x8746, 0x8720, 0x8732, 0x872a, 0x872d, 0x873c, +0x8712, 0x873a, 0x8731, 0x8735, 0x8742, 0x8726, 0x8727, 0x8738, +0x8724, 0x871a, 0x8730, 0x8711, 0x88f7, 0x88e7, 0x88f1, 0x88f2, +0x88fa, 0x88fe, 0x88ee, 0x88fc, 0x88f6, 0x88fb, +63, 0xe440, +0x88f0, 0x88ec, 0x88eb, 0x899d, 0x89a1, 0x899f, 0x899e, 0x89e9, +0x89eb, 0x89e8, 0x8aab, 0x8a99, 0x8a8b, 0x8a92, 0x8a8f, 0x8a96, +0x8c3d, 0x8c68, 0x8c69, 0x8cd5, 0x8ccf, 0x8cd7, 0x8d96, 0x8e09, +0x8e02, 0x8dff, 0x8e0d, 0x8dfd, 0x8e0a, 0x8e03, 0x8e07, 0x8e06, +0x8e05, 0x8dfe, 0x8e00, 0x8e04, 0x8f10, 0x8f11, 0x8f0e, 0x8f0d, +0x9123, 0x911c, 0x9120, 0x9122, 0x911f, 0x911d, 0x911a, 0x9124, +0x9121, 0x911b, 0x917a, 0x9172, 0x9179, 0x9173, 0x92a5, 0x92a4, +0x9276, 0x929b, 0x927a, 0x92a0, 0x9294, 0x92aa, 0x928d, +94, 0xe4a1, +0x92a6, 0x929a, 0x92ab, 0x9279, 0x9297, 0x927f, 0x92a3, 0x92ee, +0x928e, 0x9282, 0x9295, 0x92a2, 0x927d, 0x9288, 0x92a1, 0x928a, +0x9286, 0x928c, 0x9299, 0x92a7, 0x927e, 0x9287, 0x92a9, 0x929d, +0x928b, 0x922d, 0x969e, 0x96a1, 0x96ff, 0x9758, 0x977d, 0x977a, +0x977e, 0x9783, 0x9780, 0x9782, 0x977b, 0x9784, 0x9781, 0x977f, +0x97ce, 0x97cd, 0x9816, 0x98ad, 0x98ae, 0x9902, 0x9900, 0x9907, +0x999d, 0x999c, 0x99c3, 0x99b9, 0x99bb, 0x99ba, 0x99c2, 0x99bd, +0x99c7, 0x9ab1, 0x9ae3, 0x9ae7, 0x9b3e, 0x9b3f, 0x9b60, 0x9b61, +0x9b5f, 0x9cf1, 0x9cf2, 0x9cf5, 0x9ea7, 0x50ff, 0x5103, 0x5130, +0x50f8, 0x5106, 0x5107, 0x50f6, 0x50fe, 0x510b, 0x510c, 0x50fd, +0x510a, 0x528b, 0x528c, 0x52f1, 0x52ef, 0x5648, 0x5642, 0x564c, +0x5635, 0x5641, 0x564a, 0x5649, 0x5646, 0x5658, +63, 0xe540, +0x565a, 0x5640, 0x5633, 0x563d, 0x562c, 0x563e, 0x5638, 0x562a, +0x563a, 0x571a, 0x58ab, 0x589d, 0x58b1, 0x58a0, 0x58a3, 0x58af, +0x58ac, 0x58a5, 0x58a1, 0x58ff, 0x5aff, 0x5af4, 0x5afd, 0x5af7, +0x5af6, 0x5b03, 0x5af8, 0x5b02, 0x5af9, 0x5b01, 0x5b07, 0x5b05, +0x5b0f, 0x5c67, 0x5d99, 0x5d97, 0x5d9f, 0x5d92, 0x5da2, 0x5d93, +0x5d95, 0x5da0, 0x5d9c, 0x5da1, 0x5d9a, 0x5d9e, 0x5e69, 0x5e5d, +0x5e60, 0x5e5c, 0x7df3, 0x5edb, 0x5ede, 0x5ee1, 0x5f49, 0x5fb2, +0x618b, 0x6183, 0x6179, 0x61b1, 0x61b0, 0x61a2, 0x6189, +94, 0xe5a1, +0x619b, 0x6193, 0x61af, 0x61ad, 0x619f, 0x6192, 0x61aa, 0x61a1, +0x618d, 0x6166, 0x61b3, 0x622d, 0x646e, 0x6470, 0x6496, 0x64a0, +0x6485, 0x6497, 0x649c, 0x648f, 0x648b, 0x648a, 0x648c, 0x64a3, +0x649f, 0x6468, 0x64b1, 0x6498, 0x6576, 0x657a, 0x6579, 0x657b, +0x65b2, 0x65b3, 0x66b5, 0x66b0, 0x66a9, 0x66b2, 0x66b7, 0x66aa, +0x66af, 0x6a00, 0x6a06, 0x6a17, 0x69e5, 0x69f8, 0x6a15, 0x69f1, +0x69e4, 0x6a20, 0x69ff, 0x69ec, 0x69e2, 0x6a1b, 0x6a1d, 0x69fe, +0x6a27, 0x69f2, 0x69ee, 0x6a14, 0x69f7, 0x69e7, 0x6a40, 0x6a08, +0x69e6, 0x69fb, 0x6a0d, 0x69fc, 0x69eb, 0x6a09, 0x6a04, 0x6a18, +0x6a25, 0x6a0f, 0x69f6, 0x6a26, 0x6a07, 0x69f4, 0x6a16, 0x6b51, +0x6ba5, 0x6ba3, 0x6ba2, 0x6ba6, 0x6c01, 0x6c00, 0x6bff, 0x6c02, +0x6f41, 0x6f26, 0x6f7e, 0x6f87, 0x6fc6, 0x6f92, +63, 0xe640, +0x6f8d, 0x6f89, 0x6f8c, 0x6f62, 0x6f4f, 0x6f85, 0x6f5a, 0x6f96, +0x6f76, 0x6f6c, 0x6f82, 0x6f55, 0x6f72, 0x6f52, 0x6f50, 0x6f57, +0x6f94, 0x6f93, 0x6f5d, 0x6f00, 0x6f61, 0x6f6b, 0x6f7d, 0x6f67, +0x6f90, 0x6f53, 0x6f8b, 0x6f69, 0x6f7f, 0x6f95, 0x6f63, 0x6f77, +0x6f6a, 0x6f7b, 0x71b2, 0x71af, 0x719b, 0x71b0, 0x71a0, 0x719a, +0x71a9, 0x71b5, 0x719d, 0x71a5, 0x719e, 0x71a4, 0x71a1, 0x71aa, +0x719c, 0x71a7, 0x71b3, 0x7298, 0x729a, 0x7358, 0x7352, 0x735e, +0x735f, 0x7360, 0x735d, 0x735b, 0x7361, 0x735a, 0x7359, +94, 0xe6a1, +0x7362, 0x7487, 0x7489, 0x748a, 0x7486, 0x7481, 0x747d, 0x7485, +0x7488, 0x747c, 0x7479, 0x7508, 0x7507, 0x757e, 0x7625, 0x761e, +0x7619, 0x761d, 0x761c, 0x7623, 0x761a, 0x7628, 0x761b, 0x769c, +0x769d, 0x769e, 0x769b, 0x778d, 0x778f, 0x7789, 0x7788, 0x78cd, +0x78bb, 0x78cf, 0x78cc, 0x78d1, 0x78ce, 0x78d4, 0x78c8, 0x78c3, +0x78c4, 0x78c9, 0x799a, 0x79a1, 0x79a0, 0x799c, 0x79a2, 0x799b, +0x6b76, 0x7a39, 0x7ab2, 0x7ab4, 0x7ab3, 0x7bb7, 0x7bcb, 0x7bbe, +0x7bac, 0x7bce, 0x7baf, 0x7bb9, 0x7bca, 0x7bb5, 0x7cc5, 0x7cc8, +0x7ccc, 0x7ccb, 0x7df7, 0x7ddb, 0x7dea, 0x7de7, 0x7dd7, 0x7de1, +0x7e03, 0x7dfa, 0x7de6, 0x7df6, 0x7df1, 0x7df0, 0x7dee, 0x7ddf, +0x7f76, 0x7fac, 0x7fb0, 0x7fad, 0x7fed, 0x7feb, 0x7fea, 0x7fec, +0x7fe6, 0x7fe8, 0x8064, 0x8067, 0x81a3, 0x819f, +63, 0xe740, +0x819e, 0x8195, 0x81a2, 0x8199, 0x8197, 0x8216, 0x824f, 0x8253, +0x8252, 0x8250, 0x824e, 0x8251, 0x8524, 0x853b, 0x850f, 0x8500, +0x8529, 0x850e, 0x8509, 0x850d, 0x851f, 0x850a, 0x8527, 0x851c, +0x84fb, 0x852b, 0x84fa, 0x8508, 0x850c, 0x84f4, 0x852a, 0x84f2, +0x8515, 0x84f7, 0x84eb, 0x84f3, 0x84fc, 0x8512, 0x84ea, 0x84e9, +0x8516, 0x84fe, 0x8528, 0x851d, 0x852e, 0x8502, 0x84fd, 0x851e, +0x84f6, 0x8531, 0x8526, 0x84e7, 0x84e8, 0x84f0, 0x84ef, 0x84f9, +0x8518, 0x8520, 0x8530, 0x850b, 0x8519, 0x852f, 0x8662, +94, 0xe7a1, +0x8756, 0x8763, 0x8764, 0x8777, 0x87e1, 0x8773, 0x8758, 0x8754, +0x875b, 0x8752, 0x8761, 0x875a, 0x8751, 0x875e, 0x876d, 0x876a, +0x8750, 0x874e, 0x875f, 0x875d, 0x876f, 0x876c, 0x877a, 0x876e, +0x875c, 0x8765, 0x874f, 0x877b, 0x8775, 0x8762, 0x8767, 0x8769, +0x885a, 0x8905, 0x890c, 0x8914, 0x890b, 0x8917, 0x8918, 0x8919, +0x8906, 0x8916, 0x8911, 0x890e, 0x8909, 0x89a2, 0x89a4, 0x89a3, +0x89ed, 0x89f0, 0x89ec, 0x8acf, 0x8ac6, 0x8ab8, 0x8ad3, 0x8ad1, +0x8ad4, 0x8ad5, 0x8abb, 0x8ad7, 0x8abe, 0x8ac0, 0x8ac5, 0x8ad8, +0x8ac3, 0x8aba, 0x8abd, 0x8ad9, 0x8c3e, 0x8c4d, 0x8c8f, 0x8ce5, +0x8cdf, 0x8cd9, 0x8ce8, 0x8cda, 0x8cdd, 0x8ce7, 0x8da0, 0x8d9c, +0x8da1, 0x8d9b, 0x8e20, 0x8e23, 0x8e25, 0x8e24, 0x8e2e, 0x8e15, +0x8e1b, 0x8e16, 0x8e11, 0x8e19, 0x8e26, 0x8e27, +63, 0xe840, +0x8e14, 0x8e12, 0x8e18, 0x8e13, 0x8e1c, 0x8e17, 0x8e1a, 0x8f2c, +0x8f24, 0x8f18, 0x8f1a, 0x8f20, 0x8f23, 0x8f16, 0x8f17, 0x9073, +0x9070, 0x906f, 0x9067, 0x906b, 0x912f, 0x912b, 0x9129, 0x912a, +0x9132, 0x9126, 0x912e, 0x9185, 0x9186, 0x918a, 0x9181, 0x9182, +0x9184, 0x9180, 0x92d0, 0x92c3, 0x92c4, 0x92c0, 0x92d9, 0x92b6, +0x92cf, 0x92f1, 0x92df, 0x92d8, 0x92e9, 0x92d7, 0x92dd, 0x92cc, +0x92ef, 0x92c2, 0x92e8, 0x92ca, 0x92c8, 0x92ce, 0x92e6, 0x92cd, +0x92d5, 0x92c9, 0x92e0, 0x92de, 0x92e7, 0x92d1, 0x92d3, +94, 0xe8a1, +0x92b5, 0x92e1, 0x92c6, 0x92b4, 0x957c, 0x95ac, 0x95ab, 0x95ae, +0x95b0, 0x96a4, 0x96a2, 0x96d3, 0x9705, 0x9708, 0x9702, 0x975a, +0x978a, 0x978e, 0x9788, 0x97d0, 0x97cf, 0x981e, 0x981d, 0x9826, +0x9829, 0x9828, 0x9820, 0x981b, 0x9827, 0x98b2, 0x9908, 0x98fa, +0x9911, 0x9914, 0x9916, 0x9917, 0x9915, 0x99dc, 0x99cd, 0x99cf, +0x99d3, 0x99d4, 0x99ce, 0x99c9, 0x99d6, 0x99d8, 0x99cb, 0x99d7, +0x99cc, 0x9ab3, 0x9aec, 0x9aeb, 0x9af3, 0x9af2, 0x9af1, 0x9b46, +0x9b43, 0x9b67, 0x9b74, 0x9b71, 0x9b66, 0x9b76, 0x9b75, 0x9b70, +0x9b68, 0x9b64, 0x9b6c, 0x9cfc, 0x9cfa, 0x9cfd, 0x9cff, 0x9cf7, +0x9d07, 0x9d00, 0x9cf9, 0x9cfb, 0x9d08, 0x9d05, 0x9d04, 0x9e83, +0x9ed3, 0x9f0f, 0x9f10, 0x511c, 0x5113, 0x5117, 0x511a, 0x5111, +0x51de, 0x5334, 0x53e1, 0x5670, 0x5660, 0x566e, +63, 0xe940, +0x5673, 0x5666, 0x5663, 0x566d, 0x5672, 0x565e, 0x5677, 0x571c, +0x571b, 0x58c8, 0x58bd, 0x58c9, 0x58bf, 0x58ba, 0x58c2, 0x58bc, +0x58c6, 0x5b17, 0x5b19, 0x5b1b, 0x5b21, 0x5b14, 0x5b13, 0x5b10, +0x5b16, 0x5b28, 0x5b1a, 0x5b20, 0x5b1e, 0x5bef, 0x5dac, 0x5db1, +0x5da9, 0x5da7, 0x5db5, 0x5db0, 0x5dae, 0x5daa, 0x5da8, 0x5db2, +0x5dad, 0x5daf, 0x5db4, 0x5e67, 0x5e68, 0x5e66, 0x5e6f, 0x5ee9, +0x5ee7, 0x5ee6, 0x5ee8, 0x5ee5, 0x5f4b, 0x5fbc, 0x619d, 0x61a8, +0x6196, 0x61c5, 0x61b4, 0x61c6, 0x61c1, 0x61cc, 0x61ba, +94, 0xe9a1, +0x61bf, 0x61b8, 0x618c, 0x64d7, 0x64d6, 0x64d0, 0x64cf, 0x64c9, +0x64bd, 0x6489, 0x64c3, 0x64db, 0x64f3, 0x64d9, 0x6533, 0x657f, +0x657c, 0x65a2, 0x66c8, 0x66be, 0x66c0, 0x66ca, 0x66cb, 0x66cf, +0x66bd, 0x66bb, 0x66ba, 0x66cc, 0x6723, 0x6a34, 0x6a66, 0x6a49, +0x6a67, 0x6a32, 0x6a68, 0x6a3e, 0x6a5d, 0x6a6d, 0x6a76, 0x6a5b, +0x6a51, 0x6a28, 0x6a5a, 0x6a3b, 0x6a3f, 0x6a41, 0x6a6a, 0x6a64, +0x6a50, 0x6a4f, 0x6a54, 0x6a6f, 0x6a69, 0x6a60, 0x6a3c, 0x6a5e, +0x6a56, 0x6a55, 0x6a4d, 0x6a4e, 0x6a46, 0x6b55, 0x6b54, 0x6b56, +0x6ba7, 0x6baa, 0x6bab, 0x6bc8, 0x6bc7, 0x6c04, 0x6c03, 0x6c06, +0x6fad, 0x6fcb, 0x6fa3, 0x6fc7, 0x6fbc, 0x6fce, 0x6fc8, 0x6f5e, +0x6fc4, 0x6fbd, 0x6f9e, 0x6fca, 0x6fa8, 0x7004, 0x6fa5, 0x6fae, +0x6fba, 0x6fac, 0x6faa, 0x6fcf, 0x6fbf, 0x6fb8, +63, 0xea40, +0x6fa2, 0x6fc9, 0x6fab, 0x6fcd, 0x6faf, 0x6fb2, 0x6fb0, 0x71c5, +0x71c2, 0x71bf, 0x71b8, 0x71d6, 0x71c0, 0x71c1, 0x71cb, 0x71d4, +0x71ca, 0x71c7, 0x71cf, 0x71bd, 0x71d8, 0x71bc, 0x71c6, 0x71da, +0x71db, 0x729d, 0x729e, 0x7369, 0x7366, 0x7367, 0x736c, 0x7365, +0x736b, 0x736a, 0x747f, 0x749a, 0x74a0, 0x7494, 0x7492, 0x7495, +0x74a1, 0x750b, 0x7580, 0x762f, 0x762d, 0x7631, 0x763d, 0x7633, +0x763c, 0x7635, 0x7632, 0x7630, 0x76bb, 0x76e6, 0x779a, 0x779d, +0x77a1, 0x779c, 0x779b, 0x77a2, 0x77a3, 0x7795, 0x7799, +94, 0xeaa1, +0x7797, 0x78dd, 0x78e9, 0x78e5, 0x78ea, 0x78de, 0x78e3, 0x78db, +0x78e1, 0x78e2, 0x78ed, 0x78df, 0x78e0, 0x79a4, 0x7a44, 0x7a48, +0x7a47, 0x7ab6, 0x7ab8, 0x7ab5, 0x7ab1, 0x7ab7, 0x7bde, 0x7be3, +0x7be7, 0x7bdd, 0x7bd5, 0x7be5, 0x7bda, 0x7be8, 0x7bf9, 0x7bd4, +0x7bea, 0x7be2, 0x7bdc, 0x7beb, 0x7bd8, 0x7bdf, 0x7cd2, 0x7cd4, +0x7cd7, 0x7cd0, 0x7cd1, 0x7e12, 0x7e21, 0x7e17, 0x7e0c, 0x7e1f, +0x7e20, 0x7e13, 0x7e0e, 0x7e1c, 0x7e15, 0x7e1a, 0x7e22, 0x7e0b, +0x7e0f, 0x7e16, 0x7e0d, 0x7e14, 0x7e25, 0x7e24, 0x7f43, 0x7f7b, +0x7f7c, 0x7f7a, 0x7fb1, 0x7fef, 0x802a, 0x8029, 0x806c, 0x81b1, +0x81a6, 0x81ae, 0x81b9, 0x81b5, 0x81ab, 0x81b0, 0x81ac, 0x81b4, +0x81b2, 0x81b7, 0x81a7, 0x81f2, 0x8255, 0x8256, 0x8257, 0x8556, +0x8545, 0x856b, 0x854d, 0x8553, 0x8561, 0x8558, +63, 0xeb40, +0x8540, 0x8546, 0x8564, 0x8541, 0x8562, 0x8544, 0x8551, 0x8547, +0x8563, 0x853e, 0x855b, 0x8571, 0x854e, 0x856e, 0x8575, 0x8555, +0x8567, 0x8560, 0x858c, 0x8566, 0x855d, 0x8554, 0x8565, 0x856c, +0x8663, 0x8665, 0x8664, 0x879b, 0x878f, 0x8797, 0x8793, 0x8792, +0x8788, 0x8781, 0x8796, 0x8798, 0x8779, 0x8787, 0x87a3, 0x8785, +0x8790, 0x8791, 0x879d, 0x8784, 0x8794, 0x879c, 0x879a, 0x8789, +0x891e, 0x8926, 0x8930, 0x892d, 0x892e, 0x8927, 0x8931, 0x8922, +0x8929, 0x8923, 0x892f, 0x892c, 0x891f, 0x89f1, 0x8ae0, +94, 0xeba1, +0x8ae2, 0x8af2, 0x8af4, 0x8af5, 0x8add, 0x8b14, 0x8ae4, 0x8adf, +0x8af0, 0x8ac8, 0x8ade, 0x8ae1, 0x8ae8, 0x8aff, 0x8aef, 0x8afb, +0x8c91, 0x8c92, 0x8c90, 0x8cf5, 0x8cee, 0x8cf1, 0x8cf0, 0x8cf3, +0x8d6c, 0x8d6e, 0x8da5, 0x8da7, 0x8e33, 0x8e3e, 0x8e38, 0x8e40, +0x8e45, 0x8e36, 0x8e3c, 0x8e3d, 0x8e41, 0x8e30, 0x8e3f, 0x8ebd, +0x8f36, 0x8f2e, 0x8f35, 0x8f32, 0x8f39, 0x8f37, 0x8f34, 0x9076, +0x9079, 0x907b, 0x9086, 0x90fa, 0x9133, 0x9135, 0x9136, 0x9193, +0x9190, 0x9191, 0x918d, 0x918f, 0x9327, 0x931e, 0x9308, 0x931f, +0x9306, 0x930f, 0x937a, 0x9338, 0x933c, 0x931b, 0x9323, 0x9312, +0x9301, 0x9346, 0x932d, 0x930e, 0x930d, 0x92cb, 0x931d, 0x92fa, +0x9325, 0x9313, 0x92f9, 0x92f7, 0x9334, 0x9302, 0x9324, 0x92ff, +0x9329, 0x9339, 0x9335, 0x932a, 0x9314, 0x930c, +63, 0xec40, +0x930b, 0x92fe, 0x9309, 0x9300, 0x92fb, 0x9316, 0x95bc, 0x95cd, +0x95be, 0x95b9, 0x95ba, 0x95b6, 0x95bf, 0x95b5, 0x95bd, 0x96a9, +0x96d4, 0x970b, 0x9712, 0x9710, 0x9799, 0x9797, 0x9794, 0x97f0, +0x97f8, 0x9835, 0x982f, 0x9832, 0x9924, 0x991f, 0x9927, 0x9929, +0x999e, 0x99ee, 0x99ec, 0x99e5, 0x99e4, 0x99f0, 0x99e3, 0x99ea, +0x99e9, 0x99e7, 0x9ab9, 0x9abf, 0x9ab4, 0x9abb, 0x9af6, 0x9afa, +0x9af9, 0x9af7, 0x9b33, 0x9b80, 0x9b85, 0x9b87, 0x9b7c, 0x9b7e, +0x9b7b, 0x9b82, 0x9b93, 0x9b92, 0x9b90, 0x9b7a, 0x9b95, +94, 0xeca1, +0x9b7d, 0x9b88, 0x9d25, 0x9d17, 0x9d20, 0x9d1e, 0x9d14, 0x9d29, +0x9d1d, 0x9d18, 0x9d22, 0x9d10, 0x9d19, 0x9d1f, 0x9e88, 0x9e86, +0x9e87, 0x9eae, 0x9ead, 0x9ed5, 0x9ed6, 0x9efa, 0x9f12, 0x9f3d, +0x5126, 0x5125, 0x5122, 0x5124, 0x5120, 0x5129, 0x52f4, 0x5693, +0x568c, 0x568d, 0x5686, 0x5684, 0x5683, 0x567e, 0x5682, 0x567f, +0x5681, 0x58d6, 0x58d4, 0x58cf, 0x58d2, 0x5b2d, 0x5b25, 0x5b32, +0x5b23, 0x5b2c, 0x5b27, 0x5b26, 0x5b2f, 0x5b2e, 0x5b7b, 0x5bf1, +0x5bf2, 0x5db7, 0x5e6c, 0x5e6a, 0x5fbe, 0x5fbb, 0x61c3, 0x61b5, +0x61bc, 0x61e7, 0x61e0, 0x61e5, 0x61e4, 0x61e8, 0x61de, 0x64ef, +0x64e9, 0x64e3, 0x64eb, 0x64e4, 0x64e8, 0x6581, 0x6580, 0x65b6, +0x65da, 0x66d2, 0x6a8d, 0x6a96, 0x6a81, 0x6aa5, 0x6a89, 0x6a9f, +0x6a9b, 0x6aa1, 0x6a9e, 0x6a87, 0x6a93, 0x6a8e, +63, 0xed40, +0x6a95, 0x6a83, 0x6aa8, 0x6aa4, 0x6a91, 0x6a7f, 0x6aa6, 0x6a9a, +0x6a85, 0x6a8c, 0x6a92, 0x6b5b, 0x6bad, 0x6c09, 0x6fcc, 0x6fa9, +0x6ff4, 0x6fd4, 0x6fe3, 0x6fdc, 0x6fed, 0x6fe7, 0x6fe6, 0x6fde, +0x6ff2, 0x6fdd, 0x6fe2, 0x6fe8, 0x71e1, 0x71f1, 0x71e8, 0x71f2, +0x71e4, 0x71f0, 0x71e2, 0x7373, 0x736e, 0x736f, 0x7497, 0x74b2, +0x74ab, 0x7490, 0x74aa, 0x74ad, 0x74b1, 0x74a5, 0x74af, 0x7510, +0x7511, 0x7512, 0x750f, 0x7584, 0x7643, 0x7648, 0x7649, 0x7647, +0x76a4, 0x76e9, 0x77b5, 0x77ab, 0x77b2, 0x77b7, 0x77b6, +94, 0xeda1, +0x77b4, 0x77b1, 0x77a8, 0x77f0, 0x78f3, 0x78fd, 0x7902, 0x78fb, +0x78fc, 0x78f2, 0x7905, 0x78f9, 0x78fe, 0x7904, 0x79ab, 0x79a8, +0x7a5c, 0x7a5b, 0x7a56, 0x7a58, 0x7a54, 0x7a5a, 0x7abe, 0x7ac0, +0x7ac1, 0x7c05, 0x7c0f, 0x7bf2, 0x7c00, 0x7bff, 0x7bfb, 0x7c0e, +0x7bf4, 0x7c0b, 0x7bf3, 0x7c02, 0x7c09, 0x7c03, 0x7c01, 0x7bf8, +0x7bfd, 0x7c06, 0x7bf0, 0x7bf1, 0x7c10, 0x7c0a, 0x7ce8, 0x7e2d, +0x7e3c, 0x7e42, 0x7e33, 0x9848, 0x7e38, 0x7e2a, 0x7e49, 0x7e40, +0x7e47, 0x7e29, 0x7e4c, 0x7e30, 0x7e3b, 0x7e36, 0x7e44, 0x7e3a, +0x7f45, 0x7f7f, 0x7f7e, 0x7f7d, 0x7ff4, 0x7ff2, 0x802c, 0x81bb, +0x81c4, 0x81cc, 0x81ca, 0x81c5, 0x81c7, 0x81bc, 0x81e9, 0x825b, +0x825a, 0x825c, 0x8583, 0x8580, 0x858f, 0x85a7, 0x8595, 0x85a0, +0x858b, 0x85a3, 0x857b, 0x85a4, 0x859a, 0x859e, +63, 0xee40, +0x8577, 0x857c, 0x8589, 0x85a1, 0x857a, 0x8578, 0x8557, 0x858e, +0x8596, 0x8586, 0x858d, 0x8599, 0x859d, 0x8581, 0x85a2, 0x8582, +0x8588, 0x8585, 0x8579, 0x8576, 0x8598, 0x8590, 0x859f, 0x8668, +0x87be, 0x87aa, 0x87ad, 0x87c5, 0x87b0, 0x87ac, 0x87b9, 0x87b5, +0x87bc, 0x87ae, 0x87c9, 0x87c3, 0x87c2, 0x87cc, 0x87b7, 0x87af, +0x87c4, 0x87ca, 0x87b4, 0x87b6, 0x87bf, 0x87b8, 0x87bd, 0x87de, +0x87b2, 0x8935, 0x8933, 0x893c, 0x893e, 0x8941, 0x8952, 0x8937, +0x8942, 0x89ad, 0x89af, 0x89ae, 0x89f2, 0x89f3, 0x8b1e, +94, 0xeea1, +0x8b18, 0x8b16, 0x8b11, 0x8b05, 0x8b0b, 0x8b22, 0x8b0f, 0x8b12, +0x8b15, 0x8b07, 0x8b0d, 0x8b08, 0x8b06, 0x8b1c, 0x8b13, 0x8b1a, +0x8c4f, 0x8c70, 0x8c72, 0x8c71, 0x8c6f, 0x8c95, 0x8c94, 0x8cf9, +0x8d6f, 0x8e4e, 0x8e4d, 0x8e53, 0x8e50, 0x8e4c, 0x8e47, 0x8f43, +0x8f40, 0x9085, 0x907e, 0x9138, 0x919a, 0x91a2, 0x919b, 0x9199, +0x919f, 0x91a1, 0x919d, 0x91a0, 0x93a1, 0x9383, 0x93af, 0x9364, +0x9356, 0x9347, 0x937c, 0x9358, 0x935c, 0x9376, 0x9349, 0x9350, +0x9351, 0x9360, 0x936d, 0x938f, 0x934c, 0x936a, 0x9379, 0x9357, +0x9355, 0x9352, 0x934f, 0x9371, 0x9377, 0x937b, 0x9361, 0x935e, +0x9363, 0x9367, 0x9380, 0x934e, 0x9359, 0x95c7, 0x95c0, 0x95c9, +0x95c3, 0x95c5, 0x95b7, 0x96ae, 0x96b0, 0x96ac, 0x9720, 0x971f, +0x9718, 0x971d, 0x9719, 0x979a, 0x97a1, 0x979c, +63, 0xef40, +0x979e, 0x979d, 0x97d5, 0x97d4, 0x97f1, 0x9841, 0x9844, 0x984a, +0x9849, 0x9845, 0x9843, 0x9925, 0x992b, 0x992c, 0x992a, 0x9933, +0x9932, 0x992f, 0x992d, 0x9931, 0x9930, 0x9998, 0x99a3, 0x99a1, +0x9a02, 0x99fa, 0x99f4, 0x99f7, 0x99f9, 0x99f8, 0x99f6, 0x99fb, +0x99fd, 0x99fe, 0x99fc, 0x9a03, 0x9abe, 0x9afe, 0x9afd, 0x9b01, +0x9afc, 0x9b48, 0x9b9a, 0x9ba8, 0x9b9e, 0x9b9b, 0x9ba6, 0x9ba1, +0x9ba5, 0x9ba4, 0x9b86, 0x9ba2, 0x9ba0, 0x9baf, 0x9d33, 0x9d41, +0x9d67, 0x9d36, 0x9d2e, 0x9d2f, 0x9d31, 0x9d38, 0x9d30, +94, 0xefa1, +0x9d45, 0x9d42, 0x9d43, 0x9d3e, 0x9d37, 0x9d40, 0x9d3d, 0x7ff5, +0x9d2d, 0x9e8a, 0x9e89, 0x9e8d, 0x9eb0, 0x9ec8, 0x9eda, 0x9efb, +0x9eff, 0x9f24, 0x9f23, 0x9f22, 0x9f54, 0x9fa0, 0x5131, 0x512d, +0x512e, 0x5698, 0x569c, 0x5697, 0x569a, 0x569d, 0x5699, 0x5970, +0x5b3c, 0x5c69, 0x5c6a, 0x5dc0, 0x5e6d, 0x5e6e, 0x61d8, 0x61df, +0x61ed, 0x61ee, 0x61f1, 0x61ea, 0x61f0, 0x61eb, 0x61d6, 0x61e9, +0x64ff, 0x6504, 0x64fd, 0x64f8, 0x6501, 0x6503, 0x64fc, 0x6594, +0x65db, 0x66da, 0x66db, 0x66d8, 0x6ac5, 0x6ab9, 0x6abd, 0x6ae1, +0x6ac6, 0x6aba, 0x6ab6, 0x6ab7, 0x6ac7, 0x6ab4, 0x6aad, 0x6b5e, +0x6bc9, 0x6c0b, 0x7007, 0x700c, 0x700d, 0x7001, 0x7005, 0x7014, +0x700e, 0x6fff, 0x7000, 0x6ffb, 0x7026, 0x6ffc, 0x6ff7, 0x700a, +0x7201, 0x71ff, 0x71f9, 0x7203, 0x71fd, 0x7376, +63, 0xf040, +0x74b8, 0x74c0, 0x74b5, 0x74c1, 0x74be, 0x74b6, 0x74bb, 0x74c2, +0x7514, 0x7513, 0x765c, 0x7664, 0x7659, 0x7650, 0x7653, 0x7657, +0x765a, 0x76a6, 0x76bd, 0x76ec, 0x77c2, 0x77ba, 0x78ff, 0x790c, +0x7913, 0x7914, 0x7909, 0x7910, 0x7912, 0x7911, 0x79ad, 0x79ac, +0x7a5f, 0x7c1c, 0x7c29, 0x7c19, 0x7c20, 0x7c1f, 0x7c2d, 0x7c1d, +0x7c26, 0x7c28, 0x7c22, 0x7c25, 0x7c30, 0x7e5c, 0x7e50, 0x7e56, +0x7e63, 0x7e58, 0x7e62, 0x7e5f, 0x7e51, 0x7e60, 0x7e57, 0x7e53, +0x7fb5, 0x7fb3, 0x7ff7, 0x7ff8, 0x8075, 0x81d1, 0x81d2, +94, 0xf0a1, +0x81d0, 0x825f, 0x825e, 0x85b4, 0x85c6, 0x85c0, 0x85c3, 0x85c2, +0x85b3, 0x85b5, 0x85bd, 0x85c7, 0x85c4, 0x85bf, 0x85cb, 0x85ce, +0x85c8, 0x85c5, 0x85b1, 0x85b6, 0x85d2, 0x8624, 0x85b8, 0x85b7, +0x85be, 0x8669, 0x87e7, 0x87e6, 0x87e2, 0x87db, 0x87eb, 0x87ea, +0x87e5, 0x87df, 0x87f3, 0x87e4, 0x87d4, 0x87dc, 0x87d3, 0x87ed, +0x87d8, 0x87e3, 0x87a4, 0x87d7, 0x87d9, 0x8801, 0x87f4, 0x87e8, +0x87dd, 0x8953, 0x894b, 0x894f, 0x894c, 0x8946, 0x8950, 0x8951, +0x8949, 0x8b2a, 0x8b27, 0x8b23, 0x8b33, 0x8b30, 0x8b35, 0x8b47, +0x8b2f, 0x8b3c, 0x8b3e, 0x8b31, 0x8b25, 0x8b37, 0x8b26, 0x8b36, +0x8b2e, 0x8b24, 0x8b3b, 0x8b3d, 0x8b3a, 0x8c42, 0x8c75, 0x8c99, +0x8c98, 0x8c97, 0x8cfe, 0x8d04, 0x8d02, 0x8d00, 0x8e5c, 0x8e62, +0x8e60, 0x8e57, 0x8e56, 0x8e5e, 0x8e65, 0x8e67, +63, 0xf140, +0x8e5b, 0x8e5a, 0x8e61, 0x8e5d, 0x8e69, 0x8e54, 0x8f46, 0x8f47, +0x8f48, 0x8f4b, 0x9128, 0x913a, 0x913b, 0x913e, 0x91a8, 0x91a5, +0x91a7, 0x91af, 0x91aa, 0x93b5, 0x938c, 0x9392, 0x93b7, 0x939b, +0x939d, 0x9389, 0x93a7, 0x938e, 0x93aa, 0x939e, 0x93a6, 0x9395, +0x9388, 0x9399, 0x939f, 0x938d, 0x93b1, 0x9391, 0x93b2, 0x93a4, +0x93a8, 0x93b4, 0x93a3, 0x93a5, 0x95d2, 0x95d3, 0x95d1, 0x96b3, +0x96d7, 0x96da, 0x5dc2, 0x96df, 0x96d8, 0x96dd, 0x9723, 0x9722, +0x9725, 0x97ac, 0x97ae, 0x97a8, 0x97ab, 0x97a4, 0x97aa, +94, 0xf1a1, +0x97a2, 0x97a5, 0x97d7, 0x97d9, 0x97d6, 0x97d8, 0x97fa, 0x9850, +0x9851, 0x9852, 0x98b8, 0x9941, 0x993c, 0x993a, 0x9a0f, 0x9a0b, +0x9a09, 0x9a0d, 0x9a04, 0x9a11, 0x9a0a, 0x9a05, 0x9a07, 0x9a06, +0x9ac0, 0x9adc, 0x9b08, 0x9b04, 0x9b05, 0x9b29, 0x9b35, 0x9b4a, +0x9b4c, 0x9b4b, 0x9bc7, 0x9bc6, 0x9bc3, 0x9bbf, 0x9bc1, 0x9bb5, +0x9bb8, 0x9bd3, 0x9bb6, 0x9bc4, 0x9bb9, 0x9bbd, 0x9d5c, 0x9d53, +0x9d4f, 0x9d4a, 0x9d5b, 0x9d4b, 0x9d59, 0x9d56, 0x9d4c, 0x9d57, +0x9d52, 0x9d54, 0x9d5f, 0x9d58, 0x9d5a, 0x9e8e, 0x9e8c, 0x9edf, +0x9f01, 0x9f00, 0x9f16, 0x9f25, 0x9f2b, 0x9f2a, 0x9f29, 0x9f28, +0x9f4c, 0x9f55, 0x5134, 0x5135, 0x5296, 0x52f7, 0x53b4, 0x56ab, +0x56ad, 0x56a6, 0x56a7, 0x56aa, 0x56ac, 0x58da, 0x58dd, 0x58db, +0x5912, 0x5b3d, 0x5b3e, 0x5b3f, 0x5dc3, 0x5e70, +63, 0xf240, +0x5fbf, 0x61fb, 0x6507, 0x6510, 0x650d, 0x6509, 0x650c, 0x650e, +0x6584, 0x65de, 0x65dd, 0x66de, 0x6ae7, 0x6ae0, 0x6acc, 0x6ad1, +0x6ad9, 0x6acb, 0x6adf, 0x6adc, 0x6ad0, 0x6aeb, 0x6acf, 0x6acd, +0x6ade, 0x6b60, 0x6bb0, 0x6c0c, 0x7019, 0x7027, 0x7020, 0x7016, +0x702b, 0x7021, 0x7022, 0x7023, 0x7029, 0x7017, 0x7024, 0x701c, +0x702a, 0x720c, 0x720a, 0x7207, 0x7202, 0x7205, 0x72a5, 0x72a6, +0x72a4, 0x72a3, 0x72a1, 0x74cb, 0x74c5, 0x74b7, 0x74c3, 0x7516, +0x7660, 0x77c9, 0x77ca, 0x77c4, 0x77f1, 0x791d, 0x791b, +94, 0xf2a1, +0x7921, 0x791c, 0x7917, 0x791e, 0x79b0, 0x7a67, 0x7a68, 0x7c33, +0x7c3c, 0x7c39, 0x7c2c, 0x7c3b, 0x7cec, 0x7cea, 0x7e76, 0x7e75, +0x7e78, 0x7e70, 0x7e77, 0x7e6f, 0x7e7a, 0x7e72, 0x7e74, 0x7e68, +0x7f4b, 0x7f4a, 0x7f83, 0x7f86, 0x7fb7, 0x7ffd, 0x7ffe, 0x8078, +0x81d7, 0x81d5, 0x8264, 0x8261, 0x8263, 0x85eb, 0x85f1, 0x85ed, +0x85d9, 0x85e1, 0x85e8, 0x85da, 0x85d7, 0x85ec, 0x85f2, 0x85f8, +0x85d8, 0x85df, 0x85e3, 0x85dc, 0x85d1, 0x85f0, 0x85e6, 0x85ef, +0x85de, 0x85e2, 0x8800, 0x87fa, 0x8803, 0x87f6, 0x87f7, 0x8809, +0x880c, 0x880b, 0x8806, 0x87fc, 0x8808, 0x87ff, 0x880a, 0x8802, +0x8962, 0x895a, 0x895b, 0x8957, 0x8961, 0x895c, 0x8958, 0x895d, +0x8959, 0x8988, 0x89b7, 0x89b6, 0x89f6, 0x8b50, 0x8b48, 0x8b4a, +0x8b40, 0x8b53, 0x8b56, 0x8b54, 0x8b4b, 0x8b55, +63, 0xf340, +0x8b51, 0x8b42, 0x8b52, 0x8b57, 0x8c43, 0x8c77, 0x8c76, 0x8c9a, +0x8d06, 0x8d07, 0x8d09, 0x8dac, 0x8daa, 0x8dad, 0x8dab, 0x8e6d, +0x8e78, 0x8e73, 0x8e6a, 0x8e6f, 0x8e7b, 0x8ec2, 0x8f52, 0x8f51, +0x8f4f, 0x8f50, 0x8f53, 0x8fb4, 0x9140, 0x913f, 0x91b0, 0x91ad, +0x93de, 0x93c7, 0x93cf, 0x93c2, 0x93da, 0x93d0, 0x93f9, 0x93ec, +0x93cc, 0x93d9, 0x93a9, 0x93e6, 0x93ca, 0x93d4, 0x93ee, 0x93e3, +0x93d5, 0x93c4, 0x93ce, 0x93c0, 0x93d2, 0x93e7, 0x957d, 0x95da, +0x95db, 0x96e1, 0x9729, 0x972b, 0x972c, 0x9728, 0x9726, +94, 0xf3a1, +0x97b3, 0x97b7, 0x97b6, 0x97dd, 0x97de, 0x97df, 0x985c, 0x9859, +0x985d, 0x9857, 0x98bf, 0x98bd, 0x98bb, 0x98be, 0x9948, 0x9947, +0x9943, 0x99a6, 0x99a7, 0x9a1a, 0x9a15, 0x9a25, 0x9a1d, 0x9a24, +0x9a1b, 0x9a22, 0x9a20, 0x9a27, 0x9a23, 0x9a1e, 0x9a1c, 0x9a14, +0x9ac2, 0x9b0b, 0x9b0a, 0x9b0e, 0x9b0c, 0x9b37, 0x9bea, 0x9beb, +0x9be0, 0x9bde, 0x9be4, 0x9be6, 0x9be2, 0x9bf0, 0x9bd4, 0x9bd7, +0x9bec, 0x9bdc, 0x9bd9, 0x9be5, 0x9bd5, 0x9be1, 0x9bda, 0x9d77, +0x9d81, 0x9d8a, 0x9d84, 0x9d88, 0x9d71, 0x9d80, 0x9d78, 0x9d86, +0x9d8b, 0x9d8c, 0x9d7d, 0x9d6b, 0x9d74, 0x9d75, 0x9d70, 0x9d69, +0x9d85, 0x9d73, 0x9d7b, 0x9d82, 0x9d6f, 0x9d79, 0x9d7f, 0x9d87, +0x9d68, 0x9e94, 0x9e91, 0x9ec0, 0x9efc, 0x9f2d, 0x9f40, 0x9f41, +0x9f4d, 0x9f56, 0x9f57, 0x9f58, 0x5337, 0x56b2, +63, 0xf440, +0x56b5, 0x56b3, 0x58e3, 0x5b45, 0x5dc6, 0x5dc7, 0x5eee, 0x5eef, +0x5fc0, 0x5fc1, 0x61f9, 0x6517, 0x6516, 0x6515, 0x6513, 0x65df, +0x66e8, 0x66e3, 0x66e4, 0x6af3, 0x6af0, 0x6aea, 0x6ae8, 0x6af9, +0x6af1, 0x6aee, 0x6aef, 0x703c, 0x7035, 0x702f, 0x7037, 0x7034, +0x7031, 0x7042, 0x7038, 0x703f, 0x703a, 0x7039, 0x7040, 0x703b, +0x7033, 0x7041, 0x7213, 0x7214, 0x72a8, 0x737d, 0x737c, 0x74ba, +0x76ab, 0x76aa, 0x76be, 0x76ed, 0x77cc, 0x77ce, 0x77cf, 0x77cd, +0x77f2, 0x7925, 0x7923, 0x7927, 0x7928, 0x7924, 0x7929, +94, 0xf4a1, +0x79b2, 0x7a6e, 0x7a6c, 0x7a6d, 0x7af7, 0x7c49, 0x7c48, 0x7c4a, +0x7c47, 0x7c45, 0x7cee, 0x7e7b, 0x7e7e, 0x7e81, 0x7e80, 0x7fba, +0x7fff, 0x8079, 0x81db, 0x81d9, 0x820b, 0x8268, 0x8269, 0x8622, +0x85ff, 0x8601, 0x85fe, 0x861b, 0x8600, 0x85f6, 0x8604, 0x8609, +0x8605, 0x860c, 0x85fd, 0x8819, 0x8810, 0x8811, 0x8817, 0x8813, +0x8816, 0x8963, 0x8966, 0x89b9, 0x89f7, 0x8b60, 0x8b6a, 0x8b5d, +0x8b68, 0x8b63, 0x8b65, 0x8b67, 0x8b6d, 0x8dae, 0x8e86, 0x8e88, +0x8e84, 0x8f59, 0x8f56, 0x8f57, 0x8f55, 0x8f58, 0x8f5a, 0x908d, +0x9143, 0x9141, 0x91b7, 0x91b5, 0x91b2, 0x91b3, 0x940b, 0x9413, +0x93fb, 0x9420, 0x940f, 0x9414, 0x93fe, 0x9415, 0x9410, 0x9428, +0x9419, 0x940d, 0x93f5, 0x9400, 0x93f7, 0x9407, 0x940e, 0x9416, +0x9412, 0x93fa, 0x9409, 0x93f8, 0x940a, 0x93ff, +63, 0xf540, +0x93fc, 0x940c, 0x93f6, 0x9411, 0x9406, 0x95de, 0x95e0, 0x95df, +0x972e, 0x972f, 0x97b9, 0x97bb, 0x97fd, 0x97fe, 0x9860, 0x9862, +0x9863, 0x985f, 0x98c1, 0x98c2, 0x9950, 0x994e, 0x9959, 0x994c, +0x994b, 0x9953, 0x9a32, 0x9a34, 0x9a31, 0x9a2c, 0x9a2a, 0x9a36, +0x9a29, 0x9a2e, 0x9a38, 0x9a2d, 0x9ac7, 0x9aca, 0x9ac6, 0x9b10, +0x9b12, 0x9b11, 0x9c0b, 0x9c08, 0x9bf7, 0x9c05, 0x9c12, 0x9bf8, +0x9c40, 0x9c07, 0x9c0e, 0x9c06, 0x9c17, 0x9c14, 0x9c09, 0x9d9f, +0x9d99, 0x9da4, 0x9d9d, 0x9d92, 0x9d98, 0x9d90, 0x9d9b, +94, 0xf5a1, +0x9da0, 0x9d94, 0x9d9c, 0x9daa, 0x9d97, 0x9da1, 0x9d9a, 0x9da2, +0x9da8, 0x9d9e, 0x9da3, 0x9dbf, 0x9da9, 0x9d96, 0x9da6, 0x9da7, +0x9e99, 0x9e9b, 0x9e9a, 0x9ee5, 0x9ee4, 0x9ee7, 0x9ee6, 0x9f30, +0x9f2e, 0x9f5b, 0x9f60, 0x9f5e, 0x9f5d, 0x9f59, 0x9f91, 0x513a, +0x5139, 0x5298, 0x5297, 0x56c3, 0x56bd, 0x56be, 0x5b48, 0x5b47, +0x5dcb, 0x5dcf, 0x5ef1, 0x61fd, 0x651b, 0x6b02, 0x6afc, 0x6b03, +0x6af8, 0x6b00, 0x7043, 0x7044, 0x704a, 0x7048, 0x7049, 0x7045, +0x7046, 0x721d, 0x721a, 0x7219, 0x737e, 0x7517, 0x766a, 0x77d0, +0x792d, 0x7931, 0x792f, 0x7c54, 0x7c53, 0x7cf2, 0x7e8a, 0x7e87, +0x7e88, 0x7e8b, 0x7e86, 0x7e8d, 0x7f4d, 0x7fbb, 0x8030, 0x81dd, +0x8618, 0x862a, 0x8626, 0x861f, 0x8623, 0x861c, 0x8619, 0x8627, +0x862e, 0x8621, 0x8620, 0x8629, 0x861e, 0x8625, +63, 0xf640, +0x8829, 0x881d, 0x881b, 0x8820, 0x8824, 0x881c, 0x882b, 0x884a, +0x896d, 0x8969, 0x896e, 0x896b, 0x89fa, 0x8b79, 0x8b78, 0x8b45, +0x8b7a, 0x8b7b, 0x8d10, 0x8d14, 0x8daf, 0x8e8e, 0x8e8c, 0x8f5e, +0x8f5b, 0x8f5d, 0x9146, 0x9144, 0x9145, 0x91b9, 0x943f, 0x943b, +0x9436, 0x9429, 0x943d, 0x943c, 0x9430, 0x9439, 0x942a, 0x9437, +0x942c, 0x9440, 0x9431, 0x95e5, 0x95e4, 0x95e3, 0x9735, 0x973a, +0x97bf, 0x97e1, 0x9864, 0x98c9, 0x98c6, 0x98c0, 0x9958, 0x9956, +0x9a39, 0x9a3d, 0x9a46, 0x9a44, 0x9a42, 0x9a41, 0x9a3a, +94, 0xf6a1, +0x9a3f, 0x9acd, 0x9b15, 0x9b17, 0x9b18, 0x9b16, 0x9b3a, 0x9b52, +0x9c2b, 0x9c1d, 0x9c1c, 0x9c2c, 0x9c23, 0x9c28, 0x9c29, 0x9c24, +0x9c21, 0x9db7, 0x9db6, 0x9dbc, 0x9dc1, 0x9dc7, 0x9dca, 0x9dcf, +0x9dbe, 0x9dc5, 0x9dc3, 0x9dbb, 0x9db5, 0x9dce, 0x9db9, 0x9dba, +0x9dac, 0x9dc8, 0x9db1, 0x9dad, 0x9dcc, 0x9db3, 0x9dcd, 0x9db2, +0x9e7a, 0x9e9c, 0x9eeb, 0x9eee, 0x9eed, 0x9f1b, 0x9f18, 0x9f1a, +0x9f31, 0x9f4e, 0x9f65, 0x9f64, 0x9f92, 0x4eb9, 0x56c6, 0x56c5, +0x56cb, 0x5971, 0x5b4b, 0x5b4c, 0x5dd5, 0x5dd1, 0x5ef2, 0x6521, +0x6520, 0x6526, 0x6522, 0x6b0b, 0x6b08, 0x6b09, 0x6c0d, 0x7055, +0x7056, 0x7057, 0x7052, 0x721e, 0x721f, 0x72a9, 0x737f, 0x74d8, +0x74d5, 0x74d9, 0x74d7, 0x766d, 0x76ad, 0x7935, 0x79b4, 0x7a70, +0x7a71, 0x7c57, 0x7c5c, 0x7c59, 0x7c5b, 0x7c5a, +63, 0xf740, +0x7cf4, 0x7cf1, 0x7e91, 0x7f4f, 0x7f87, 0x81de, 0x826b, 0x8634, +0x8635, 0x8633, 0x862c, 0x8632, 0x8636, 0x882c, 0x8828, 0x8826, +0x882a, 0x8825, 0x8971, 0x89bf, 0x89be, 0x89fb, 0x8b7e, 0x8b84, +0x8b82, 0x8b86, 0x8b85, 0x8b7f, 0x8d15, 0x8e95, 0x8e94, 0x8e9a, +0x8e92, 0x8e90, 0x8e96, 0x8e97, 0x8f60, 0x8f62, 0x9147, 0x944c, +0x9450, 0x944a, 0x944b, 0x944f, 0x9447, 0x9445, 0x9448, 0x9449, +0x9446, 0x973f, 0x97e3, 0x986a, 0x9869, 0x98cb, 0x9954, 0x995b, +0x9a4e, 0x9a53, 0x9a54, 0x9a4c, 0x9a4f, 0x9a48, 0x9a4a, +94, 0xf7a1, +0x9a49, 0x9a52, 0x9a50, 0x9ad0, 0x9b19, 0x9b2b, 0x9b3b, 0x9b56, +0x9b55, 0x9c46, 0x9c48, 0x9c3f, 0x9c44, 0x9c39, 0x9c33, 0x9c41, +0x9c3c, 0x9c37, 0x9c34, 0x9c32, 0x9c3d, 0x9c36, 0x9ddb, 0x9dd2, +0x9dde, 0x9dda, 0x9dcb, 0x9dd0, 0x9ddc, 0x9dd1, 0x9ddf, 0x9de9, +0x9dd9, 0x9dd8, 0x9dd6, 0x9df5, 0x9dd5, 0x9ddd, 0x9eb6, 0x9ef0, +0x9f35, 0x9f33, 0x9f32, 0x9f42, 0x9f6b, 0x9f95, 0x9fa2, 0x513d, +0x5299, 0x58e8, 0x58e7, 0x5972, 0x5b4d, 0x5dd8, 0x882f, 0x5f4f, +0x6201, 0x6203, 0x6204, 0x6529, 0x6525, 0x6596, 0x66eb, 0x6b11, +0x6b12, 0x6b0f, 0x6bca, 0x705b, 0x705a, 0x7222, 0x7382, 0x7381, +0x7383, 0x7670, 0x77d4, 0x7c67, 0x7c66, 0x7e95, 0x826c, 0x863a, +0x8640, 0x8639, 0x863c, 0x8631, 0x863b, 0x863e, 0x8830, 0x8832, +0x882e, 0x8833, 0x8976, 0x8974, 0x8973, 0x89fe, +63, 0xf840, +0x8b8c, 0x8b8e, 0x8b8b, 0x8b88, 0x8c45, 0x8d19, 0x8e98, 0x8f64, +0x8f63, 0x91bc, 0x9462, 0x9455, 0x945d, 0x9457, 0x945e, 0x97c4, +0x97c5, 0x9800, 0x9a56, 0x9a59, 0x9b1e, 0x9b1f, 0x9b20, 0x9c52, +0x9c58, 0x9c50, 0x9c4a, 0x9c4d, 0x9c4b, 0x9c55, 0x9c59, 0x9c4c, +0x9c4e, 0x9dfb, 0x9df7, 0x9def, 0x9de3, 0x9deb, 0x9df8, 0x9de4, +0x9df6, 0x9de1, 0x9dee, 0x9de6, 0x9df2, 0x9df0, 0x9de2, 0x9dec, +0x9df4, 0x9df3, 0x9de8, 0x9ded, 0x9ec2, 0x9ed0, 0x9ef2, 0x9ef3, +0x9f06, 0x9f1c, 0x9f38, 0x9f37, 0x9f36, 0x9f43, 0x9f4f, +94, 0xf8a1, +0x9f71, 0x9f70, 0x9f6e, 0x9f6f, 0x56d3, 0x56cd, 0x5b4e, 0x5c6d, +0x652d, 0x66ed, 0x66ee, 0x6b13, 0x705f, 0x7061, 0x705d, 0x7060, +0x7223, 0x74db, 0x74e5, 0x77d5, 0x7938, 0x79b7, 0x79b6, 0x7c6a, +0x7e97, 0x7f89, 0x826d, 0x8643, 0x8838, 0x8837, 0x8835, 0x884b, +0x8b94, 0x8b95, 0x8e9e, 0x8e9f, 0x8ea0, 0x8e9d, 0x91be, 0x91bd, +0x91c2, 0x946b, 0x9468, 0x9469, 0x96e5, 0x9746, 0x9743, 0x9747, +0x97c7, 0x97e5, 0x9a5e, 0x9ad5, 0x9b59, 0x9c63, 0x9c67, 0x9c66, +0x9c62, 0x9c5e, 0x9c60, 0x9e02, 0x9dfe, 0x9e07, 0x9e03, 0x9e06, +0x9e05, 0x9e00, 0x9e01, 0x9e09, 0x9dff, 0x9dfd, 0x9e04, 0x9ea0, +0x9f1e, 0x9f46, 0x9f74, 0x9f75, 0x9f76, 0x56d4, 0x652e, 0x65b8, +0x6b18, 0x6b19, 0x6b17, 0x6b1a, 0x7062, 0x7226, 0x72aa, 0x77d8, +0x77d9, 0x7939, 0x7c69, 0x7c6b, 0x7cf6, 0x7e9a, +63, 0xf940, +0x7e98, 0x7e9b, 0x7e99, 0x81e0, 0x81e1, 0x8646, 0x8647, 0x8648, +0x8979, 0x897a, 0x897c, 0x897b, 0x89ff, 0x8b98, 0x8b99, 0x8ea5, +0x8ea4, 0x8ea3, 0x946e, 0x946d, 0x946f, 0x9471, 0x9473, 0x9749, +0x9872, 0x995f, 0x9c68, 0x9c6e, 0x9c6d, 0x9e0b, 0x9e0d, 0x9e10, +0x9e0f, 0x9e12, 0x9e11, 0x9ea1, 0x9ef5, 0x9f09, 0x9f47, 0x9f78, +0x9f7b, 0x9f7a, 0x9f79, 0x571e, 0x7066, 0x7c6f, 0x883c, 0x8db2, +0x8ea6, 0x91c3, 0x9474, 0x9478, 0x9476, 0x9475, 0x9a60, 0x9c74, +0x9c73, 0x9c71, 0x9c75, 0x9e14, 0x9e13, 0x9ef6, 0x9f0a, +53, 0xf9a1, +0x9fa4, 0x7068, 0x7065, 0x7cf7, 0x866a, 0x883e, 0x883d, 0x883f, +0x8b9e, 0x8c9c, 0x8ea9, 0x8ec9, 0x974b, 0x9873, 0x9874, 0x98cc, +0x9961, 0x99ab, 0x9a64, 0x9a66, 0x9a67, 0x9b24, 0x9e15, 0x9e17, +0x9f48, 0x6207, 0x6b1e, 0x7227, 0x864c, 0x8ea8, 0x9482, 0x9480, +0x9481, 0x9a69, 0x9a68, 0x9b2e, 0x9e19, 0x7229, 0x864b, 0x8b9f, +0x9483, 0x9c79, 0x9eb7, 0x7675, 0x9a6b, 0x9c7a, 0x9e1d, 0x7069, +0x706a, 0x9ea4, 0x9f7e, 0x9f49, 0x9f98, +0 diff --git a/lib/entmgr_inst.cxx b/lib/entmgr_inst.cxx new file mode 100644 index 0000000..6853631 --- /dev/null +++ b/lib/entmgr_inst.cxx @@ -0,0 +1,727 @@ +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + + +#ifdef SP_NAMESPACE +} +#endif +// Copyright (c) 1995 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 "RangeMap.h" +#include "Ptr.h" +#include "StringOf.h" +#include "StringC.h" +#include "Vector.h" +#include "ISet.h" +#include "ISetIter.h" +#include "XcharMap.h" +#include "StringResource.h" +#include "SubstTable.h" +#include "CharMap.h" +#undef SP_DEFINE_TEMPLATES + +#include "types.h" +#include "Location.h" +#include "Message.h" +#include "NamedResource.h" +#include "EntityManager.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 Owner +#else +#ifdef __xlC__ +#pragma define(Owner) +#else +#ifdef SP_ANSI_CLASS_INST +template class Owner; +#else +typedef Owner Dummy_18; +#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_19; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template String +#else +#ifdef __xlC__ +#pragma define(String) +#else +#ifdef SP_ANSI_CLASS_INST +template class String; +#else +typedef String Dummy_20; +#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_21; +#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_22; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template SharedXcharMap +#else +#ifdef __xlC__ +#pragma define(SharedXcharMap) +#else +#ifdef SP_ANSI_CLASS_INST +template class SharedXcharMap; +#else +typedef SharedXcharMap Dummy_23; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template XcharMap +#else +#ifdef __xlC__ +#pragma define(XcharMap) +#else +#ifdef SP_ANSI_CLASS_INST +template class XcharMap; +#else +typedef XcharMap Dummy_24; +#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_25; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template RangeMapIter +#else +#ifdef __xlC__ +#pragma define(RangeMapIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class RangeMapIter; +#else +typedef RangeMapIter Dummy_26; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template RangeMap +#else +#ifdef __xlC__ +#pragma define(RangeMap) +#else +#ifdef SP_ANSI_CLASS_INST +template class RangeMap; +#else +typedef RangeMap Dummy_27; +#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_28; +#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_29; +#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_30; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ISet +#else +#ifdef __xlC__ +#pragma define(ISet) +#else +#ifdef SP_ANSI_CLASS_INST +template class ISet; +#else +typedef ISet Dummy_31; +#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_32; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ISet +#else +#ifdef __xlC__ +#pragma define(ISet) +#else +#ifdef SP_ANSI_CLASS_INST +template class ISet; +#else +typedef ISet Dummy_33; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ISetIter +#else +#ifdef __xlC__ +#pragma define(ISetIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class ISetIter; +#else +typedef ISetIter Dummy_34; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ISetIter +#else +#ifdef __xlC__ +#pragma define(ISetIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class ISetIter; +#else +typedef ISetIter Dummy_35; +#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_36; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template SharedXcharMap +#else +#ifdef __xlC__ +#pragma define(SharedXcharMap) +#else +#ifdef SP_ANSI_CLASS_INST +template class SharedXcharMap; +#else +typedef SharedXcharMap Dummy_37; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template SharedXcharMap +#else +#ifdef __xlC__ +#pragma define(SharedXcharMap) +#else +#ifdef SP_ANSI_CLASS_INST +template class SharedXcharMap; +#else +typedef SharedXcharMap Dummy_38; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template String +#else +#ifdef __xlC__ +#pragma define(String) +#else +#ifdef SP_ANSI_CLASS_INST +template class String; +#else +typedef String Dummy_39; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template XcharMap +#else +#ifdef __xlC__ +#pragma define(XcharMap) +#else +#ifdef SP_ANSI_CLASS_INST +template class XcharMap; +#else +typedef XcharMap Dummy_40; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template XcharMap +#else +#ifdef __xlC__ +#pragma define(XcharMap) +#else +#ifdef SP_ANSI_CLASS_INST +template class XcharMap; +#else +typedef XcharMap Dummy_41; +#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_42; +#endif +#endif +#endif +#if defined(SP_HAVE_BOOL) && defined(SP_SIZEOF_BOOL_1) +#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_43; +#endif +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CharMap +#else +#ifdef __xlC__ +#pragma define(CharMap) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMap; +#else +typedef CharMap Dummy_44; +#endif +#endif +#endif +#ifdef SP_MULTI_BYTE +#ifdef __DECCXX +#pragma define_template CharMapPlane +#else +#ifdef __xlC__ +#pragma define(CharMapPlane) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapPlane; +#else +typedef CharMapPlane Dummy_45; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CharMapPage +#else +#ifdef __xlC__ +#pragma define(CharMapPage) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapPage; +#else +typedef CharMapPage Dummy_46; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CharMapColumn +#else +#ifdef __xlC__ +#pragma define(CharMapColumn) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapColumn; +#else +typedef CharMapColumn Dummy_47; +#endif +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CharMapResource +#else +#ifdef __xlC__ +#pragma define(CharMapResource) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapResource; +#else +typedef CharMapResource Dummy_48; +#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_49; +#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_50; +#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_51; +#endif +#endif +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/lib/entmgr_inst.m4 b/lib/entmgr_inst.m4 new file mode 100644 index 0000000..ee5bf22 --- /dev/null +++ b/lib/entmgr_inst.m4 @@ -0,0 +1,95 @@ +// Copyright (c) 1995 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 "RangeMap.h" +#include "Ptr.h" +#include "StringOf.h" +#include "StringC.h" +#include "Vector.h" +#include "ISet.h" +#include "ISetIter.h" +#include "XcharMap.h" +#include "StringResource.h" +#include "SubstTable.h" +#include "CharMap.h" +#undef SP_DEFINE_TEMPLATES + +#include "types.h" +#include "Location.h" +#include "Message.h" +#include "NamedResource.h" +#include "EntityManager.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(Owner) +__instantiate(CopyOwner) +__instantiate(String) +__instantiate(Vector) +__instantiate(Vector >) +__instantiate(SharedXcharMap) +__instantiate(XcharMap) +__instantiate(`Vector >') +__instantiate(`RangeMapIter') +__instantiate(`RangeMap') +__instantiate(Vector) +__instantiate(Vector) +__instantiate(Owner) +__instantiate(ISet) +__instantiate(Vector >) +__instantiate(ISet) +__instantiate(ISetIter) +__instantiate(ISetIter) +__instantiate(Vector >) +__instantiate(SharedXcharMap) +__instantiate(SharedXcharMap) +__instantiate(String) +__instantiate(XcharMap) +__instantiate(XcharMap) +__instantiate(Vector) +#if defined(SP_HAVE_BOOL) && defined(SP_SIZEOF_BOOL_1) +__instantiate(Vector) +#endif +__instantiate(CharMap) +#ifdef SP_MULTI_BYTE +__instantiate(CharMapPlane) +__instantiate(CharMapPage) +__instantiate(CharMapColumn) +#endif +__instantiate(CharMapResource) +__instantiate(Ptr >) +__instantiate(ConstPtr >) +__instantiate(Vector) + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/lib/events.h b/lib/events.h new file mode 100644 index 0000000..b5cca10 --- /dev/null +++ b/lib/events.h @@ -0,0 +1,43 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +EVENT(MessageEvent, message) +EVENT(DataEvent, data) +EVENT(StartElementEvent, startElement) +EVENT(EndElementEvent, endElement) +EVENT(PiEvent, pi) +EVENT(SdataEntityEvent, sdataEntity) +EVENT(ExternalDataEntityEvent, externalDataEntity) +EVENT(SubdocEntityEvent, subdocEntity) +EVENT(NonSgmlCharEvent, nonSgmlChar) +EVENT(AppinfoEvent, appinfo) +EVENT(UselinkEvent, uselink) +EVENT(UsemapEvent, usemap) +EVENT(StartDtdEvent, startDtd) +EVENT(EndDtdEvent, endDtd) +EVENT(StartLpdEvent, startLpd) +EVENT(EndLpdEvent, endLpd) +EVENT(EndPrologEvent, endProlog) +EVENT(SgmlDeclEvent, sgmlDecl) +EVENT(CommentDeclEvent, commentDecl) +EVENT(SSepEvent, sSep) +EVENT(IgnoredReEvent, ignoredRe) +EVENT(ReOriginEvent, reOrigin) +EVENT(IgnoredRsEvent, ignoredRs) +EVENT(IgnoredCharsEvent, ignoredChars) +EVENT(MarkedSectionStartEvent, markedSectionStart) +EVENT(MarkedSectionEndEvent, markedSectionEnd) +EVENT(EntityStartEvent, entityStart) +EVENT(EntityEndEvent, entityEnd) +EVENT(EntityDeclEvent, entityDecl) +EVENT(NotationDeclEvent, notationDecl) +EVENT(ElementDeclEvent, elementDecl) +EVENT(AttlistDeclEvent, attlistDecl) +EVENT(LinkAttlistDeclEvent, linkAttlistDecl) +EVENT(AttlistNotationDeclEvent, attlistNotationDecl) +EVENT(LinkDeclEvent, linkDecl) +EVENT(IdLinkDeclEvent, idLinkDecl) +EVENT(ShortrefDeclEvent, shortrefDecl) +EVENT(IgnoredMarkupEvent, ignoredMarkup) +EVENT(EntityDefaultedEvent, entityDefaulted) +EVENT(SgmlDeclEntityEvent, sgmlDeclEntity) diff --git a/lib/gb2312.h b/lib/gb2312.h new file mode 100644 index 0000000..96be886 --- /dev/null +++ b/lib/gb2312.h @@ -0,0 +1,1043 @@ +94, 0x2121, +0x3000, 0x3001, 0x3002, 0x30fb, 0x02c9, 0x02c7, 0x00a8, 0x3003, +0x3005, 0x2015, 0xff5e, 0x2225, 0x2026, 0x2018, 0x2019, 0x201c, +0x201d, 0x3014, 0x3015, 0x3008, 0x3009, 0x300a, 0x300b, 0x300c, +0x300d, 0x300e, 0x300f, 0x3016, 0x3017, 0x3010, 0x3011, 0x00b1, +0x00d7, 0x00f7, 0x2236, 0x2227, 0x2228, 0x2211, 0x220f, 0x222a, +0x2229, 0x2208, 0x2237, 0x221a, 0x22a5, 0x2225, 0x2220, 0x2312, +0x2299, 0x222b, 0x222e, 0x2261, 0x224c, 0x2248, 0x223d, 0x221d, +0x2260, 0x226e, 0x226f, 0x2264, 0x2265, 0x221e, 0x2235, 0x2234, +0x2642, 0x2640, 0x00b0, 0x2032, 0x2033, 0x2103, 0xff04, 0x00a4, +0xffe0, 0xffe1, 0x2030, 0x00a7, 0x2116, 0x2606, 0x2605, 0x25cb, +0x25cf, 0x25ce, 0x25c7, 0x25c6, 0x25a1, 0x25a0, 0x25b3, 0x25b2, +0x203b, 0x2192, 0x2190, 0x2191, 0x2193, 0x3013, +50, 0x2231, +0x2488, 0x2489, 0x248a, 0x248b, 0x248c, 0x248d, 0x248e, 0x248f, +0x2490, 0x2491, 0x2492, 0x2493, 0x2494, 0x2495, 0x2496, 0x2497, +0x2498, 0x2499, 0x249a, 0x249b, 0x2474, 0x2475, 0x2476, 0x2477, +0x2478, 0x2479, 0x247a, 0x247b, 0x247c, 0x247d, 0x247e, 0x247f, +0x2480, 0x2481, 0x2482, 0x2483, 0x2484, 0x2485, 0x2486, 0x2487, +0x2460, 0x2461, 0x2462, 0x2463, 0x2464, 0x2465, 0x2466, 0x2467, +0x2468, 0x2469, +10, 0x2265, +0x3220, 0x3221, 0x3222, 0x3223, 0x3224, 0x3225, 0x3226, 0x3227, +0x3228, 0x3229, +12, 0x2271, +0x2160, 0x2161, 0x2162, 0x2163, 0x2164, 0x2165, 0x2166, 0x2167, +0x2168, 0x2169, 0x216a, 0x216b, +94, 0x2321, +0xff01, 0xff02, 0xff03, 0xffe5, 0xff05, 0xff06, 0xff07, 0xff08, +0xff09, 0xff0a, 0xff0b, 0xff0c, 0xff0d, 0xff0e, 0xff0f, 0xff10, +0xff11, 0xff12, 0xff13, 0xff14, 0xff15, 0xff16, 0xff17, 0xff18, +0xff19, 0xff1a, 0xff1b, 0xff1c, 0xff1d, 0xff1e, 0xff1f, 0xff20, +0xff21, 0xff22, 0xff23, 0xff24, 0xff25, 0xff26, 0xff27, 0xff28, +0xff29, 0xff2a, 0xff2b, 0xff2c, 0xff2d, 0xff2e, 0xff2f, 0xff30, +0xff31, 0xff32, 0xff33, 0xff34, 0xff35, 0xff36, 0xff37, 0xff38, +0xff39, 0xff3a, 0xff3b, 0xff3c, 0xff3d, 0xff3e, 0xff3f, 0xff40, +0xff41, 0xff42, 0xff43, 0xff44, 0xff45, 0xff46, 0xff47, 0xff48, +0xff49, 0xff4a, 0xff4b, 0xff4c, 0xff4d, 0xff4e, 0xff4f, 0xff50, +0xff51, 0xff52, 0xff53, 0xff54, 0xff55, 0xff56, 0xff57, 0xff58, +0xff59, 0xff5a, 0xff5b, 0xff5c, 0xff5d, 0xffe3, +83, 0x2421, +0x3041, 0x3042, 0x3043, 0x3044, 0x3045, 0x3046, 0x3047, 0x3048, +0x3049, 0x304a, 0x304b, 0x304c, 0x304d, 0x304e, 0x304f, 0x3050, +0x3051, 0x3052, 0x3053, 0x3054, 0x3055, 0x3056, 0x3057, 0x3058, +0x3059, 0x305a, 0x305b, 0x305c, 0x305d, 0x305e, 0x305f, 0x3060, +0x3061, 0x3062, 0x3063, 0x3064, 0x3065, 0x3066, 0x3067, 0x3068, +0x3069, 0x306a, 0x306b, 0x306c, 0x306d, 0x306e, 0x306f, 0x3070, +0x3071, 0x3072, 0x3073, 0x3074, 0x3075, 0x3076, 0x3077, 0x3078, +0x3079, 0x307a, 0x307b, 0x307c, 0x307d, 0x307e, 0x307f, 0x3080, +0x3081, 0x3082, 0x3083, 0x3084, 0x3085, 0x3086, 0x3087, 0x3088, +0x3089, 0x308a, 0x308b, 0x308c, 0x308d, 0x308e, 0x308f, 0x3090, +0x3091, 0x3092, 0x3093, +86, 0x2521, +0x30a1, 0x30a2, 0x30a3, 0x30a4, 0x30a5, 0x30a6, 0x30a7, 0x30a8, +0x30a9, 0x30aa, 0x30ab, 0x30ac, 0x30ad, 0x30ae, 0x30af, 0x30b0, +0x30b1, 0x30b2, 0x30b3, 0x30b4, 0x30b5, 0x30b6, 0x30b7, 0x30b8, +0x30b9, 0x30ba, 0x30bb, 0x30bc, 0x30bd, 0x30be, 0x30bf, 0x30c0, +0x30c1, 0x30c2, 0x30c3, 0x30c4, 0x30c5, 0x30c6, 0x30c7, 0x30c8, +0x30c9, 0x30ca, 0x30cb, 0x30cc, 0x30cd, 0x30ce, 0x30cf, 0x30d0, +0x30d1, 0x30d2, 0x30d3, 0x30d4, 0x30d5, 0x30d6, 0x30d7, 0x30d8, +0x30d9, 0x30da, 0x30db, 0x30dc, 0x30dd, 0x30de, 0x30df, 0x30e0, +0x30e1, 0x30e2, 0x30e3, 0x30e4, 0x30e5, 0x30e6, 0x30e7, 0x30e8, +0x30e9, 0x30ea, 0x30eb, 0x30ec, 0x30ed, 0x30ee, 0x30ef, 0x30f0, +0x30f1, 0x30f2, 0x30f3, 0x30f4, 0x30f5, 0x30f6, +24, 0x2621, +0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, 0x0398, +0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, 0x039f, 0x03a0, +0x03a1, 0x03a3, 0x03a4, 0x03a5, 0x03a6, 0x03a7, 0x03a8, 0x03a9, +24, 0x2641, +0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, 0x03b8, +0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, 0x03c0, +0x03c1, 0x03c3, 0x03c4, 0x03c5, 0x03c6, 0x03c7, 0x03c8, 0x03c9, +33, 0x2721, +0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0401, 0x0416, +0x0417, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, +0x041f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, +0x0427, 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, +0x042f, +33, 0x2751, +0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0451, 0x0436, +0x0437, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, +0x043f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, +0x0447, 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, +0x044f, +26, 0x2821, +0x0101, 0x00e1, 0x01ce, 0x00e0, 0x0113, 0x00e9, 0x011b, 0x00e8, +0x012b, 0x00ed, 0x01d0, 0x00ec, 0x014d, 0x00f3, 0x01d2, 0x00f2, +0x016b, 0x00fa, 0x01d4, 0x00f9, 0x01d6, 0x01d8, 0x01da, 0x01dc, +0x00fc, 0x00ea, +37, 0x2845, +0x3105, 0x3106, 0x3107, 0x3108, 0x3109, 0x310a, 0x310b, 0x310c, +0x310d, 0x310e, 0x310f, 0x3110, 0x3111, 0x3112, 0x3113, 0x3114, +0x3115, 0x3116, 0x3117, 0x3118, 0x3119, 0x311a, 0x311b, 0x311c, +0x311d, 0x311e, 0x311f, 0x3120, 0x3121, 0x3122, 0x3123, 0x3124, +0x3125, 0x3126, 0x3127, 0x3128, 0x3129, +76, 0x2924, +0x2500, 0x2501, 0x2502, 0x2503, 0x2504, 0x2505, 0x2506, 0x2507, +0x2508, 0x2509, 0x250a, 0x250b, 0x250c, 0x250d, 0x250e, 0x250f, +0x2510, 0x2511, 0x2512, 0x2513, 0x2514, 0x2515, 0x2516, 0x2517, +0x2518, 0x2519, 0x251a, 0x251b, 0x251c, 0x251d, 0x251e, 0x251f, +0x2520, 0x2521, 0x2522, 0x2523, 0x2524, 0x2525, 0x2526, 0x2527, +0x2528, 0x2529, 0x252a, 0x252b, 0x252c, 0x252d, 0x252e, 0x252f, +0x2530, 0x2531, 0x2532, 0x2533, 0x2534, 0x2535, 0x2536, 0x2537, +0x2538, 0x2539, 0x253a, 0x253b, 0x253c, 0x253d, 0x253e, 0x253f, +0x2540, 0x2541, 0x2542, 0x2543, 0x2544, 0x2545, 0x2546, 0x2547, +0x2548, 0x2549, 0x254a, 0x254b, +94, 0x3021, +0x554a, 0x963f, 0x57c3, 0x6328, 0x54ce, 0x5509, 0x54c0, 0x7691, +0x764c, 0x853c, 0x77ee, 0x827e, 0x788d, 0x7231, 0x9698, 0x978d, +0x6c28, 0x5b89, 0x4ffa, 0x6309, 0x6697, 0x5cb8, 0x80fa, 0x6848, +0x80ae, 0x6602, 0x76ce, 0x51f9, 0x6556, 0x71ac, 0x7ff1, 0x8884, +0x50b2, 0x5965, 0x61ca, 0x6fb3, 0x82ad, 0x634c, 0x6252, 0x53ed, +0x5427, 0x7b06, 0x516b, 0x75a4, 0x5df4, 0x62d4, 0x8dcb, 0x9776, +0x628a, 0x8019, 0x575d, 0x9738, 0x7f62, 0x7238, 0x767d, 0x67cf, +0x767e, 0x6446, 0x4f70, 0x8d25, 0x62dc, 0x7a17, 0x6591, 0x73ed, +0x642c, 0x6273, 0x822c, 0x9881, 0x677f, 0x7248, 0x626e, 0x62cc, +0x4f34, 0x74e3, 0x534a, 0x529e, 0x7eca, 0x90a6, 0x5e2e, 0x6886, +0x699c, 0x8180, 0x7ed1, 0x68d2, 0x78c5, 0x868c, 0x9551, 0x508d, +0x8c24, 0x82de, 0x80de, 0x5305, 0x8912, 0x5265, +94, 0x3121, +0x8584, 0x96f9, 0x4fdd, 0x5821, 0x9971, 0x5b9d, 0x62b1, 0x62a5, +0x66b4, 0x8c79, 0x9c8d, 0x7206, 0x676f, 0x7891, 0x60b2, 0x5351, +0x5317, 0x8f88, 0x80cc, 0x8d1d, 0x94a1, 0x500d, 0x72c8, 0x5907, +0x60eb, 0x7119, 0x88ab, 0x5954, 0x82ef, 0x672c, 0x7b28, 0x5d29, +0x7ef7, 0x752d, 0x6cf5, 0x8e66, 0x8ff8, 0x903c, 0x9f3b, 0x6bd4, +0x9119, 0x7b14, 0x5f7c, 0x78a7, 0x84d6, 0x853d, 0x6bd5, 0x6bd9, +0x6bd6, 0x5e01, 0x5e87, 0x75f9, 0x95ed, 0x655d, 0x5f0a, 0x5fc5, +0x8f9f, 0x58c1, 0x81c2, 0x907f, 0x965b, 0x97ad, 0x8fb9, 0x7f16, +0x8d2c, 0x6241, 0x4fbf, 0x53d8, 0x535e, 0x8fa8, 0x8fa9, 0x8fab, +0x904d, 0x6807, 0x5f6a, 0x8198, 0x8868, 0x9cd6, 0x618b, 0x522b, +0x762a, 0x5f6c, 0x658c, 0x6fd2, 0x6ee8, 0x5bbe, 0x6448, 0x5175, +0x51b0, 0x67c4, 0x4e19, 0x79c9, 0x997c, 0x70b3, +94, 0x3221, +0x75c5, 0x5e76, 0x73bb, 0x83e0, 0x64ad, 0x62e8, 0x94b5, 0x6ce2, +0x535a, 0x52c3, 0x640f, 0x94c2, 0x7b94, 0x4f2f, 0x5e1b, 0x8236, +0x8116, 0x818a, 0x6e24, 0x6cca, 0x9a73, 0x6355, 0x535c, 0x54fa, +0x8865, 0x57e0, 0x4e0d, 0x5e03, 0x6b65, 0x7c3f, 0x90e8, 0x6016, +0x64e6, 0x731c, 0x88c1, 0x6750, 0x624d, 0x8d22, 0x776c, 0x8e29, +0x91c7, 0x5f69, 0x83dc, 0x8521, 0x9910, 0x53c2, 0x8695, 0x6b8b, +0x60ed, 0x60e8, 0x707f, 0x82cd, 0x8231, 0x4ed3, 0x6ca7, 0x85cf, +0x64cd, 0x7cd9, 0x69fd, 0x66f9, 0x8349, 0x5395, 0x7b56, 0x4fa7, +0x518c, 0x6d4b, 0x5c42, 0x8e6d, 0x63d2, 0x53c9, 0x832c, 0x8336, +0x67e5, 0x78b4, 0x643d, 0x5bdf, 0x5c94, 0x5dee, 0x8be7, 0x62c6, +0x67f4, 0x8c7a, 0x6400, 0x63ba, 0x8749, 0x998b, 0x8c17, 0x7f20, +0x94f2, 0x4ea7, 0x9610, 0x98a4, 0x660c, 0x7316, +94, 0x3321, +0x573a, 0x5c1d, 0x5e38, 0x957f, 0x507f, 0x80a0, 0x5382, 0x655e, +0x7545, 0x5531, 0x5021, 0x8d85, 0x6284, 0x949e, 0x671d, 0x5632, +0x6f6e, 0x5de2, 0x5435, 0x7092, 0x8f66, 0x626f, 0x64a4, 0x63a3, +0x5f7b, 0x6f88, 0x90f4, 0x81e3, 0x8fb0, 0x5c18, 0x6668, 0x5ff1, +0x6c89, 0x9648, 0x8d81, 0x886c, 0x6491, 0x79f0, 0x57ce, 0x6a59, +0x6210, 0x5448, 0x4e58, 0x7a0b, 0x60e9, 0x6f84, 0x8bda, 0x627f, +0x901e, 0x9a8b, 0x79e4, 0x5403, 0x75f4, 0x6301, 0x5319, 0x6c60, +0x8fdf, 0x5f1b, 0x9a70, 0x803b, 0x9f7f, 0x4f88, 0x5c3a, 0x8d64, +0x7fc5, 0x65a5, 0x70bd, 0x5145, 0x51b2, 0x866b, 0x5d07, 0x5ba0, +0x62bd, 0x916c, 0x7574, 0x8e0c, 0x7a20, 0x6101, 0x7b79, 0x4ec7, +0x7ef8, 0x7785, 0x4e11, 0x81ed, 0x521d, 0x51fa, 0x6a71, 0x53a8, +0x8e87, 0x9504, 0x96cf, 0x6ec1, 0x9664, 0x695a, +94, 0x3421, +0x7840, 0x50a8, 0x77d7, 0x6410, 0x89e6, 0x5904, 0x63e3, 0x5ddd, +0x7a7f, 0x693d, 0x4f20, 0x8239, 0x5598, 0x4e32, 0x75ae, 0x7a97, +0x5e62, 0x5e8a, 0x95ef, 0x521b, 0x5439, 0x708a, 0x6376, 0x9524, +0x5782, 0x6625, 0x693f, 0x9187, 0x5507, 0x6df3, 0x7eaf, 0x8822, +0x6233, 0x7ef0, 0x75b5, 0x8328, 0x78c1, 0x96cc, 0x8f9e, 0x6148, +0x74f7, 0x8bcd, 0x6b64, 0x523a, 0x8d50, 0x6b21, 0x806a, 0x8471, +0x56f1, 0x5306, 0x4ece, 0x4e1b, 0x51d1, 0x7c97, 0x918b, 0x7c07, +0x4fc3, 0x8e7f, 0x7be1, 0x7a9c, 0x6467, 0x5d14, 0x50ac, 0x8106, +0x7601, 0x7cb9, 0x6dec, 0x7fe0, 0x6751, 0x5b58, 0x5bf8, 0x78cb, +0x64ae, 0x6413, 0x63aa, 0x632b, 0x9519, 0x642d, 0x8fbe, 0x7b54, +0x7629, 0x6253, 0x5927, 0x5446, 0x6b79, 0x50a3, 0x6234, 0x5e26, +0x6b86, 0x4ee3, 0x8d37, 0x888b, 0x5f85, 0x902e, +94, 0x3521, +0x6020, 0x803d, 0x62c5, 0x4e39, 0x5355, 0x90f8, 0x63b8, 0x80c6, +0x65e6, 0x6c2e, 0x4f46, 0x60ee, 0x6de1, 0x8bde, 0x5f39, 0x86cb, +0x5f53, 0x6321, 0x515a, 0x8361, 0x6863, 0x5200, 0x6363, 0x8e48, +0x5012, 0x5c9b, 0x7977, 0x5bfc, 0x5230, 0x7a3b, 0x60bc, 0x9053, +0x76d7, 0x5fb7, 0x5f97, 0x7684, 0x8e6c, 0x706f, 0x767b, 0x7b49, +0x77aa, 0x51f3, 0x9093, 0x5824, 0x4f4e, 0x6ef4, 0x8fea, 0x654c, +0x7b1b, 0x72c4, 0x6da4, 0x7fdf, 0x5ae1, 0x62b5, 0x5e95, 0x5730, +0x8482, 0x7b2c, 0x5e1d, 0x5f1f, 0x9012, 0x7f14, 0x98a0, 0x6382, +0x6ec7, 0x7898, 0x70b9, 0x5178, 0x975b, 0x57ab, 0x7535, 0x4f43, +0x7538, 0x5e97, 0x60e6, 0x5960, 0x6dc0, 0x6bbf, 0x7889, 0x53fc, +0x96d5, 0x51cb, 0x5201, 0x6389, 0x540a, 0x9493, 0x8c03, 0x8dcc, +0x7239, 0x789f, 0x8776, 0x8fed, 0x8c0d, 0x53e0, +94, 0x3621, +0x4e01, 0x76ef, 0x53ee, 0x9489, 0x9876, 0x9f0e, 0x952d, 0x5b9a, +0x8ba2, 0x4e22, 0x4e1c, 0x51ac, 0x8463, 0x61c2, 0x52a8, 0x680b, +0x4f97, 0x606b, 0x51bb, 0x6d1e, 0x515c, 0x6296, 0x6597, 0x9661, +0x8c46, 0x9017, 0x75d8, 0x90fd, 0x7763, 0x6bd2, 0x728a, 0x72ec, +0x8bfb, 0x5835, 0x7779, 0x8d4c, 0x675c, 0x9540, 0x809a, 0x5ea6, +0x6e21, 0x5992, 0x7aef, 0x77ed, 0x953b, 0x6bb5, 0x65ad, 0x7f0e, +0x5806, 0x5151, 0x961f, 0x5bf9, 0x58a9, 0x5428, 0x8e72, 0x6566, +0x987f, 0x56e4, 0x949d, 0x76fe, 0x9041, 0x6387, 0x54c6, 0x591a, +0x593a, 0x579b, 0x8eb2, 0x6735, 0x8dfa, 0x8235, 0x5241, 0x60f0, +0x5815, 0x86fe, 0x5ce8, 0x9e45, 0x4fc4, 0x989d, 0x8bb9, 0x5a25, +0x6076, 0x5384, 0x627c, 0x904f, 0x9102, 0x997f, 0x6069, 0x800c, +0x513f, 0x8033, 0x5c14, 0x9975, 0x6d31, 0x4e8c, +94, 0x3721, +0x8d30, 0x53d1, 0x7f5a, 0x7b4f, 0x4f10, 0x4e4f, 0x9600, 0x6cd5, +0x73d0, 0x85e9, 0x5e06, 0x756a, 0x7ffb, 0x6a0a, 0x77fe, 0x9492, +0x7e41, 0x51e1, 0x70e6, 0x53cd, 0x8fd4, 0x8303, 0x8d29, 0x72af, +0x996d, 0x6cdb, 0x574a, 0x82b3, 0x65b9, 0x80aa, 0x623f, 0x9632, +0x59a8, 0x4eff, 0x8bbf, 0x7eba, 0x653e, 0x83f2, 0x975e, 0x5561, +0x98de, 0x80a5, 0x532a, 0x8bfd, 0x5420, 0x80ba, 0x5e9f, 0x6cb8, +0x8d39, 0x82ac, 0x915a, 0x5429, 0x6c1b, 0x5206, 0x7eb7, 0x575f, +0x711a, 0x6c7e, 0x7c89, 0x594b, 0x4efd, 0x5fff, 0x6124, 0x7caa, +0x4e30, 0x5c01, 0x67ab, 0x8702, 0x5cf0, 0x950b, 0x98ce, 0x75af, +0x70fd, 0x9022, 0x51af, 0x7f1d, 0x8bbd, 0x5949, 0x51e4, 0x4f5b, +0x5426, 0x592b, 0x6577, 0x80a4, 0x5b75, 0x6276, 0x62c2, 0x8f90, +0x5e45, 0x6c1f, 0x7b26, 0x4f0f, 0x4fd8, 0x670d, +94, 0x3821, +0x6d6e, 0x6daa, 0x798f, 0x88b1, 0x5f17, 0x752b, 0x629a, 0x8f85, +0x4fef, 0x91dc, 0x65a7, 0x812f, 0x8151, 0x5e9c, 0x8150, 0x8d74, +0x526f, 0x8986, 0x8d4b, 0x590d, 0x5085, 0x4ed8, 0x961c, 0x7236, +0x8179, 0x8d1f, 0x5bcc, 0x8ba3, 0x9644, 0x5987, 0x7f1a, 0x5490, +0x5676, 0x560e, 0x8be5, 0x6539, 0x6982, 0x9499, 0x76d6, 0x6e89, +0x5e72, 0x7518, 0x6746, 0x67d1, 0x7aff, 0x809d, 0x8d76, 0x611f, +0x79c6, 0x6562, 0x8d63, 0x5188, 0x521a, 0x94a2, 0x7f38, 0x809b, +0x7eb2, 0x5c97, 0x6e2f, 0x6760, 0x7bd9, 0x768b, 0x9ad8, 0x818f, +0x7f94, 0x7cd5, 0x641e, 0x9550, 0x7a3f, 0x544a, 0x54e5, 0x6b4c, +0x6401, 0x6208, 0x9e3d, 0x80f3, 0x7599, 0x5272, 0x9769, 0x845b, +0x683c, 0x86e4, 0x9601, 0x9694, 0x94ec, 0x4e2a, 0x5404, 0x7ed9, +0x6839, 0x8ddf, 0x8015, 0x66f4, 0x5e9a, 0x7fb9, +94, 0x3921, +0x57c2, 0x803f, 0x6897, 0x5de5, 0x653b, 0x529f, 0x606d, 0x9f9a, +0x4f9b, 0x8eac, 0x516c, 0x5bab, 0x5f13, 0x5de9, 0x6c5e, 0x62f1, +0x8d21, 0x5171, 0x94a9, 0x52fe, 0x6c9f, 0x82df, 0x72d7, 0x57a2, +0x6784, 0x8d2d, 0x591f, 0x8f9c, 0x83c7, 0x5495, 0x7b8d, 0x4f30, +0x6cbd, 0x5b64, 0x59d1, 0x9f13, 0x53e4, 0x86ca, 0x9aa8, 0x8c37, +0x80a1, 0x6545, 0x987e, 0x56fa, 0x96c7, 0x522e, 0x74dc, 0x5250, +0x5be1, 0x6302, 0x8902, 0x4e56, 0x62d0, 0x602a, 0x68fa, 0x5173, +0x5b98, 0x51a0, 0x89c2, 0x7ba1, 0x9986, 0x7f50, 0x60ef, 0x704c, +0x8d2f, 0x5149, 0x5e7f, 0x901b, 0x7470, 0x89c4, 0x572d, 0x7845, +0x5f52, 0x9f9f, 0x95fa, 0x8f68, 0x9b3c, 0x8be1, 0x7678, 0x6842, +0x67dc, 0x8dea, 0x8d35, 0x523d, 0x8f8a, 0x6eda, 0x68cd, 0x9505, +0x90ed, 0x56fd, 0x679c, 0x88f9, 0x8fc7, 0x54c8, +94, 0x3a21, +0x9ab8, 0x5b69, 0x6d77, 0x6c26, 0x4ea5, 0x5bb3, 0x9a87, 0x9163, +0x61a8, 0x90af, 0x97e9, 0x542b, 0x6db5, 0x5bd2, 0x51fd, 0x558a, +0x7f55, 0x7ff0, 0x64bc, 0x634d, 0x65f1, 0x61be, 0x608d, 0x710a, +0x6c57, 0x6c49, 0x592f, 0x676d, 0x822a, 0x58d5, 0x568e, 0x8c6a, +0x6beb, 0x90dd, 0x597d, 0x8017, 0x53f7, 0x6d69, 0x5475, 0x559d, +0x8377, 0x83cf, 0x6838, 0x79be, 0x548c, 0x4f55, 0x5408, 0x76d2, +0x8c89, 0x9602, 0x6cb3, 0x6db8, 0x8d6b, 0x8910, 0x9e64, 0x8d3a, +0x563f, 0x9ed1, 0x75d5, 0x5f88, 0x72e0, 0x6068, 0x54fc, 0x4ea8, +0x6a2a, 0x8861, 0x6052, 0x8f70, 0x54c4, 0x70d8, 0x8679, 0x9e3f, +0x6d2a, 0x5b8f, 0x5f18, 0x7ea2, 0x5589, 0x4faf, 0x7334, 0x543c, +0x539a, 0x5019, 0x540e, 0x547c, 0x4e4e, 0x5ffd, 0x745a, 0x58f6, +0x846b, 0x80e1, 0x8774, 0x72d0, 0x7cca, 0x6e56, +94, 0x3b21, +0x5f27, 0x864e, 0x552c, 0x62a4, 0x4e92, 0x6caa, 0x6237, 0x82b1, +0x54d7, 0x534e, 0x733e, 0x6ed1, 0x753b, 0x5212, 0x5316, 0x8bdd, +0x69d0, 0x5f8a, 0x6000, 0x6dee, 0x574f, 0x6b22, 0x73af, 0x6853, +0x8fd8, 0x7f13, 0x6362, 0x60a3, 0x5524, 0x75ea, 0x8c62, 0x7115, +0x6da3, 0x5ba6, 0x5e7b, 0x8352, 0x614c, 0x9ec4, 0x78fa, 0x8757, +0x7c27, 0x7687, 0x51f0, 0x60f6, 0x714c, 0x6643, 0x5e4c, 0x604d, +0x8c0e, 0x7070, 0x6325, 0x8f89, 0x5fbd, 0x6062, 0x86d4, 0x56de, +0x6bc1, 0x6094, 0x6167, 0x5349, 0x60e0, 0x6666, 0x8d3f, 0x79fd, +0x4f1a, 0x70e9, 0x6c47, 0x8bb3, 0x8bf2, 0x7ed8, 0x8364, 0x660f, +0x5a5a, 0x9b42, 0x6d51, 0x6df7, 0x8c41, 0x6d3b, 0x4f19, 0x706b, +0x83b7, 0x6216, 0x60d1, 0x970d, 0x8d27, 0x7978, 0x51fb, 0x573e, +0x57fa, 0x673a, 0x7578, 0x7a3d, 0x79ef, 0x7b95, +94, 0x3c21, +0x808c, 0x9965, 0x8ff9, 0x6fc0, 0x8ba5, 0x9e21, 0x59ec, 0x7ee9, +0x7f09, 0x5409, 0x6781, 0x68d8, 0x8f91, 0x7c4d, 0x96c6, 0x53ca, +0x6025, 0x75be, 0x6c72, 0x5373, 0x5ac9, 0x7ea7, 0x6324, 0x51e0, +0x810a, 0x5df1, 0x84df, 0x6280, 0x5180, 0x5b63, 0x4f0e, 0x796d, +0x5242, 0x60b8, 0x6d4e, 0x5bc4, 0x5bc2, 0x8ba1, 0x8bb0, 0x65e2, +0x5fcc, 0x9645, 0x5993, 0x7ee7, 0x7eaa, 0x5609, 0x67b7, 0x5939, +0x4f73, 0x5bb6, 0x52a0, 0x835a, 0x988a, 0x8d3e, 0x7532, 0x94be, +0x5047, 0x7a3c, 0x4ef7, 0x67b6, 0x9a7e, 0x5ac1, 0x6b7c, 0x76d1, +0x575a, 0x5c16, 0x7b3a, 0x95f4, 0x714e, 0x517c, 0x80a9, 0x8270, +0x5978, 0x7f04, 0x8327, 0x68c0, 0x67ec, 0x78b1, 0x7877, 0x62e3, +0x6361, 0x7b80, 0x4fed, 0x526a, 0x51cf, 0x8350, 0x69db, 0x9274, +0x8df5, 0x8d31, 0x89c1, 0x952e, 0x7bad, 0x4ef6, +94, 0x3d21, +0x5065, 0x8230, 0x5251, 0x996f, 0x6e10, 0x6e85, 0x6da7, 0x5efa, +0x50f5, 0x59dc, 0x5c06, 0x6d46, 0x6c5f, 0x7586, 0x848b, 0x6868, +0x5956, 0x8bb2, 0x5320, 0x9171, 0x964d, 0x8549, 0x6912, 0x7901, +0x7126, 0x80f6, 0x4ea4, 0x90ca, 0x6d47, 0x9a84, 0x5a07, 0x56bc, +0x6405, 0x94f0, 0x77eb, 0x4fa5, 0x811a, 0x72e1, 0x89d2, 0x997a, +0x7f34, 0x7ede, 0x527f, 0x6559, 0x9175, 0x8f7f, 0x8f83, 0x53eb, +0x7a96, 0x63ed, 0x63a5, 0x7686, 0x79f8, 0x8857, 0x9636, 0x622a, +0x52ab, 0x8282, 0x6854, 0x6770, 0x6377, 0x776b, 0x7aed, 0x6d01, +0x7ed3, 0x89e3, 0x59d0, 0x6212, 0x85c9, 0x82a5, 0x754c, 0x501f, +0x4ecb, 0x75a5, 0x8beb, 0x5c4a, 0x5dfe, 0x7b4b, 0x65a4, 0x91d1, +0x4eca, 0x6d25, 0x895f, 0x7d27, 0x9526, 0x4ec5, 0x8c28, 0x8fdb, +0x9773, 0x664b, 0x7981, 0x8fd1, 0x70ec, 0x6d78, +94, 0x3e21, +0x5c3d, 0x52b2, 0x8346, 0x5162, 0x830e, 0x775b, 0x6676, 0x9cb8, +0x4eac, 0x60ca, 0x7cbe, 0x7cb3, 0x7ecf, 0x4e95, 0x8b66, 0x666f, +0x9888, 0x9759, 0x5883, 0x656c, 0x955c, 0x5f84, 0x75c9, 0x9756, +0x7adf, 0x7ade, 0x51c0, 0x70af, 0x7a98, 0x63ea, 0x7a76, 0x7ea0, +0x7396, 0x97ed, 0x4e45, 0x7078, 0x4e5d, 0x9152, 0x53a9, 0x6551, +0x65e7, 0x81fc, 0x8205, 0x548e, 0x5c31, 0x759a, 0x97a0, 0x62d8, +0x72d9, 0x75bd, 0x5c45, 0x9a79, 0x83ca, 0x5c40, 0x5480, 0x77e9, +0x4e3e, 0x6cae, 0x805a, 0x62d2, 0x636e, 0x5de8, 0x5177, 0x8ddd, +0x8e1e, 0x952f, 0x4ff1, 0x53e5, 0x60e7, 0x70ac, 0x5267, 0x6350, +0x9e43, 0x5a1f, 0x5026, 0x7737, 0x5377, 0x7ee2, 0x6485, 0x652b, +0x6289, 0x6398, 0x5014, 0x7235, 0x89c9, 0x51b3, 0x8bc0, 0x7edd, +0x5747, 0x83cc, 0x94a7, 0x519b, 0x541b, 0x5cfb, +94, 0x3f21, +0x4fca, 0x7ae3, 0x6d5a, 0x90e1, 0x9a8f, 0x5580, 0x5496, 0x5361, +0x54af, 0x5f00, 0x63e9, 0x6977, 0x51ef, 0x6168, 0x520a, 0x582a, +0x52d8, 0x574e, 0x780d, 0x770b, 0x5eb7, 0x6177, 0x7ce0, 0x625b, +0x6297, 0x4ea2, 0x7095, 0x8003, 0x62f7, 0x70e4, 0x9760, 0x5777, +0x82db, 0x67ef, 0x68f5, 0x78d5, 0x9897, 0x79d1, 0x58f3, 0x54b3, +0x53ef, 0x6e34, 0x514b, 0x523b, 0x5ba2, 0x8bfe, 0x80af, 0x5543, +0x57a6, 0x6073, 0x5751, 0x542d, 0x7a7a, 0x6050, 0x5b54, 0x63a7, +0x62a0, 0x53e3, 0x6263, 0x5bc7, 0x67af, 0x54ed, 0x7a9f, 0x82e6, +0x9177, 0x5e93, 0x88e4, 0x5938, 0x57ae, 0x630e, 0x8de8, 0x80ef, +0x5757, 0x7b77, 0x4fa9, 0x5feb, 0x5bbd, 0x6b3e, 0x5321, 0x7b50, +0x72c2, 0x6846, 0x77ff, 0x7736, 0x65f7, 0x51b5, 0x4e8f, 0x76d4, +0x5cbf, 0x7aa5, 0x8475, 0x594e, 0x9b41, 0x5080, +94, 0x4021, +0x9988, 0x6127, 0x6e83, 0x5764, 0x6606, 0x6346, 0x56f0, 0x62ec, +0x6269, 0x5ed3, 0x9614, 0x5783, 0x62c9, 0x5587, 0x8721, 0x814a, +0x8fa3, 0x5566, 0x83b1, 0x6765, 0x8d56, 0x84dd, 0x5a6a, 0x680f, +0x62e6, 0x7bee, 0x9611, 0x5170, 0x6f9c, 0x8c30, 0x63fd, 0x89c8, +0x61d2, 0x7f06, 0x70c2, 0x6ee5, 0x7405, 0x6994, 0x72fc, 0x5eca, +0x90ce, 0x6717, 0x6d6a, 0x635e, 0x52b3, 0x7262, 0x8001, 0x4f6c, +0x59e5, 0x916a, 0x70d9, 0x6d9d, 0x52d2, 0x4e50, 0x96f7, 0x956d, +0x857e, 0x78ca, 0x7d2f, 0x5121, 0x5792, 0x64c2, 0x808b, 0x7c7b, +0x6cea, 0x68f1, 0x695e, 0x51b7, 0x5398, 0x68a8, 0x7281, 0x9ece, +0x7bf1, 0x72f8, 0x79bb, 0x6f13, 0x7406, 0x674e, 0x91cc, 0x9ca4, +0x793c, 0x8389, 0x8354, 0x540f, 0x6817, 0x4e3d, 0x5389, 0x52b1, +0x783e, 0x5386, 0x5229, 0x5088, 0x4f8b, 0x4fd0, +94, 0x4121, +0x75e2, 0x7acb, 0x7c92, 0x6ca5, 0x96b6, 0x529b, 0x7483, 0x54e9, +0x4fe9, 0x8054, 0x83b2, 0x8fde, 0x9570, 0x5ec9, 0x601c, 0x6d9f, +0x5e18, 0x655b, 0x8138, 0x94fe, 0x604b, 0x70bc, 0x7ec3, 0x7cae, +0x51c9, 0x6881, 0x7cb1, 0x826f, 0x4e24, 0x8f86, 0x91cf, 0x667e, +0x4eae, 0x8c05, 0x64a9, 0x804a, 0x50da, 0x7597, 0x71ce, 0x5be5, +0x8fbd, 0x6f66, 0x4e86, 0x6482, 0x9563, 0x5ed6, 0x6599, 0x5217, +0x88c2, 0x70c8, 0x52a3, 0x730e, 0x7433, 0x6797, 0x78f7, 0x9716, +0x4e34, 0x90bb, 0x9cde, 0x6dcb, 0x51db, 0x8d41, 0x541d, 0x62ce, +0x73b2, 0x83f1, 0x96f6, 0x9f84, 0x94c3, 0x4f36, 0x7f9a, 0x51cc, +0x7075, 0x9675, 0x5cad, 0x9886, 0x53e6, 0x4ee4, 0x6e9c, 0x7409, +0x69b4, 0x786b, 0x998f, 0x7559, 0x5218, 0x7624, 0x6d41, 0x67f3, +0x516d, 0x9f99, 0x804b, 0x5499, 0x7b3c, 0x7abf, +94, 0x4221, +0x9686, 0x5784, 0x62e2, 0x9647, 0x697c, 0x5a04, 0x6402, 0x7bd3, +0x6f0f, 0x964b, 0x82a6, 0x5362, 0x9885, 0x5e90, 0x7089, 0x63b3, +0x5364, 0x864f, 0x9c81, 0x9e93, 0x788c, 0x9732, 0x8def, 0x8d42, +0x9e7f, 0x6f5e, 0x7984, 0x5f55, 0x9646, 0x622e, 0x9a74, 0x5415, +0x94dd, 0x4fa3, 0x65c5, 0x5c65, 0x5c61, 0x7f15, 0x8651, 0x6c2f, +0x5f8b, 0x7387, 0x6ee4, 0x7eff, 0x5ce6, 0x631b, 0x5b6a, 0x6ee6, +0x5375, 0x4e71, 0x63a0, 0x7565, 0x62a1, 0x8f6e, 0x4f26, 0x4ed1, +0x6ca6, 0x7eb6, 0x8bba, 0x841d, 0x87ba, 0x7f57, 0x903b, 0x9523, +0x7ba9, 0x9aa1, 0x88f8, 0x843d, 0x6d1b, 0x9a86, 0x7edc, 0x5988, +0x9ebb, 0x739b, 0x7801, 0x8682, 0x9a6c, 0x9a82, 0x561b, 0x5417, +0x57cb, 0x4e70, 0x9ea6, 0x5356, 0x8fc8, 0x8109, 0x7792, 0x9992, +0x86ee, 0x6ee1, 0x8513, 0x66fc, 0x6162, 0x6f2b, +94, 0x4321, +0x8c29, 0x8292, 0x832b, 0x76f2, 0x6c13, 0x5fd9, 0x83bd, 0x732b, +0x8305, 0x951a, 0x6bdb, 0x77db, 0x94c6, 0x536f, 0x8302, 0x5192, +0x5e3d, 0x8c8c, 0x8d38, 0x4e48, 0x73ab, 0x679a, 0x6885, 0x9176, +0x9709, 0x7164, 0x6ca1, 0x7709, 0x5a92, 0x9541, 0x6bcf, 0x7f8e, +0x6627, 0x5bd0, 0x59b9, 0x5a9a, 0x95e8, 0x95f7, 0x4eec, 0x840c, +0x8499, 0x6aac, 0x76df, 0x9530, 0x731b, 0x68a6, 0x5b5f, 0x772f, +0x919a, 0x9761, 0x7cdc, 0x8ff7, 0x8c1c, 0x5f25, 0x7c73, 0x79d8, +0x89c5, 0x6ccc, 0x871c, 0x5bc6, 0x5e42, 0x68c9, 0x7720, 0x7ef5, +0x5195, 0x514d, 0x52c9, 0x5a29, 0x7f05, 0x9762, 0x82d7, 0x63cf, +0x7784, 0x85d0, 0x79d2, 0x6e3a, 0x5e99, 0x5999, 0x8511, 0x706d, +0x6c11, 0x62bf, 0x76bf, 0x654f, 0x60af, 0x95fd, 0x660e, 0x879f, +0x9e23, 0x94ed, 0x540d, 0x547d, 0x8c2c, 0x6478, +94, 0x4421, +0x6479, 0x8611, 0x6a21, 0x819c, 0x78e8, 0x6469, 0x9b54, 0x62b9, +0x672b, 0x83ab, 0x58a8, 0x9ed8, 0x6cab, 0x6f20, 0x5bde, 0x964c, +0x8c0b, 0x725f, 0x67d0, 0x62c7, 0x7261, 0x4ea9, 0x59c6, 0x6bcd, +0x5893, 0x66ae, 0x5e55, 0x52df, 0x6155, 0x6728, 0x76ee, 0x7766, +0x7267, 0x7a46, 0x62ff, 0x54ea, 0x5450, 0x94a0, 0x90a3, 0x5a1c, +0x7eb3, 0x6c16, 0x4e43, 0x5976, 0x8010, 0x5948, 0x5357, 0x7537, +0x96be, 0x56ca, 0x6320, 0x8111, 0x607c, 0x95f9, 0x6dd6, 0x5462, +0x9981, 0x5185, 0x5ae9, 0x80fd, 0x59ae, 0x9713, 0x502a, 0x6ce5, +0x5c3c, 0x62df, 0x4f60, 0x533f, 0x817b, 0x9006, 0x6eba, 0x852b, +0x62c8, 0x5e74, 0x78be, 0x64b5, 0x637b, 0x5ff5, 0x5a18, 0x917f, +0x9e1f, 0x5c3f, 0x634f, 0x8042, 0x5b7d, 0x556e, 0x954a, 0x954d, +0x6d85, 0x60a8, 0x67e0, 0x72de, 0x51dd, 0x5b81, +94, 0x4521, +0x62e7, 0x6cde, 0x725b, 0x626d, 0x94ae, 0x7ebd, 0x8113, 0x6d53, +0x519c, 0x5f04, 0x5974, 0x52aa, 0x6012, 0x5973, 0x6696, 0x8650, +0x759f, 0x632a, 0x61e6, 0x7cef, 0x8bfa, 0x54e6, 0x6b27, 0x9e25, +0x6bb4, 0x85d5, 0x5455, 0x5076, 0x6ca4, 0x556a, 0x8db4, 0x722c, +0x5e15, 0x6015, 0x7436, 0x62cd, 0x6392, 0x724c, 0x5f98, 0x6e43, +0x6d3e, 0x6500, 0x6f58, 0x76d8, 0x78d0, 0x76fc, 0x7554, 0x5224, +0x53db, 0x4e53, 0x5e9e, 0x65c1, 0x802a, 0x80d6, 0x629b, 0x5486, +0x5228, 0x70ae, 0x888d, 0x8dd1, 0x6ce1, 0x5478, 0x80da, 0x57f9, +0x88f4, 0x8d54, 0x966a, 0x914d, 0x4f69, 0x6c9b, 0x55b7, 0x76c6, +0x7830, 0x62a8, 0x70f9, 0x6f8e, 0x5f6d, 0x84ec, 0x68da, 0x787c, +0x7bf7, 0x81a8, 0x670b, 0x9e4f, 0x6367, 0x78b0, 0x576f, 0x7812, +0x9739, 0x6279, 0x62ab, 0x5288, 0x7435, 0x6bd7, +94, 0x4621, +0x5564, 0x813e, 0x75b2, 0x76ae, 0x5339, 0x75de, 0x50fb, 0x5c41, +0x8b6c, 0x7bc7, 0x504f, 0x7247, 0x9a97, 0x98d8, 0x6f02, 0x74e2, +0x7968, 0x6487, 0x77a5, 0x62fc, 0x9891, 0x8d2b, 0x54c1, 0x8058, +0x4e52, 0x576a, 0x82f9, 0x840d, 0x5e73, 0x51ed, 0x74f6, 0x8bc4, +0x5c4f, 0x5761, 0x6cfc, 0x9887, 0x5a46, 0x7834, 0x9b44, 0x8feb, +0x7c95, 0x5256, 0x6251, 0x94fa, 0x4ec6, 0x8386, 0x8461, 0x83e9, +0x84b2, 0x57d4, 0x6734, 0x5703, 0x666e, 0x6d66, 0x8c31, 0x66dd, +0x7011, 0x671f, 0x6b3a, 0x6816, 0x621a, 0x59bb, 0x4e03, 0x51c4, +0x6f06, 0x67d2, 0x6c8f, 0x5176, 0x68cb, 0x5947, 0x6b67, 0x7566, +0x5d0e, 0x8110, 0x9f50, 0x65d7, 0x7948, 0x7941, 0x9a91, 0x8d77, +0x5c82, 0x4e5e, 0x4f01, 0x542f, 0x5951, 0x780c, 0x5668, 0x6c14, +0x8fc4, 0x5f03, 0x6c7d, 0x6ce3, 0x8bab, 0x6390, +94, 0x4721, +0x6070, 0x6d3d, 0x7275, 0x6266, 0x948e, 0x94c5, 0x5343, 0x8fc1, +0x7b7e, 0x4edf, 0x8c26, 0x4e7e, 0x9ed4, 0x94b1, 0x94b3, 0x524d, +0x6f5c, 0x9063, 0x6d45, 0x8c34, 0x5811, 0x5d4c, 0x6b20, 0x6b49, +0x67aa, 0x545b, 0x8154, 0x7f8c, 0x5899, 0x8537, 0x5f3a, 0x62a2, +0x6a47, 0x9539, 0x6572, 0x6084, 0x6865, 0x77a7, 0x4e54, 0x4fa8, +0x5de7, 0x9798, 0x64ac, 0x7fd8, 0x5ced, 0x4fcf, 0x7a8d, 0x5207, +0x8304, 0x4e14, 0x602f, 0x7a83, 0x94a6, 0x4fb5, 0x4eb2, 0x79e6, +0x7434, 0x52e4, 0x82b9, 0x64d2, 0x79bd, 0x5bdd, 0x6c81, 0x9752, +0x8f7b, 0x6c22, 0x503e, 0x537f, 0x6e05, 0x64ce, 0x6674, 0x6c30, +0x60c5, 0x9877, 0x8bf7, 0x5e86, 0x743c, 0x7a77, 0x79cb, 0x4e18, +0x90b1, 0x7403, 0x6c42, 0x56da, 0x914b, 0x6cc5, 0x8d8b, 0x533a, +0x86c6, 0x66f2, 0x8eaf, 0x5c48, 0x9a71, 0x6e20, +94, 0x4821, +0x53d6, 0x5a36, 0x9f8b, 0x8da3, 0x53bb, 0x5708, 0x98a7, 0x6743, +0x919b, 0x6cc9, 0x5168, 0x75ca, 0x62f3, 0x72ac, 0x5238, 0x529d, +0x7f3a, 0x7094, 0x7638, 0x5374, 0x9e4a, 0x69b7, 0x786e, 0x96c0, +0x88d9, 0x7fa4, 0x7136, 0x71c3, 0x5189, 0x67d3, 0x74e4, 0x58e4, +0x6518, 0x56b7, 0x8ba9, 0x9976, 0x6270, 0x7ed5, 0x60f9, 0x70ed, +0x58ec, 0x4ec1, 0x4eba, 0x5fcd, 0x97e7, 0x4efb, 0x8ba4, 0x5203, +0x598a, 0x7eab, 0x6254, 0x4ecd, 0x65e5, 0x620e, 0x8338, 0x84c9, +0x8363, 0x878d, 0x7194, 0x6eb6, 0x5bb9, 0x7ed2, 0x5197, 0x63c9, +0x67d4, 0x8089, 0x8339, 0x8815, 0x5112, 0x5b7a, 0x5982, 0x8fb1, +0x4e73, 0x6c5d, 0x5165, 0x8925, 0x8f6f, 0x962e, 0x854a, 0x745e, +0x9510, 0x95f0, 0x6da6, 0x82e5, 0x5f31, 0x6492, 0x6d12, 0x8428, +0x816e, 0x9cc3, 0x585e, 0x8d5b, 0x4e09, 0x53c1, +94, 0x4921, +0x4f1e, 0x6563, 0x6851, 0x55d3, 0x4e27, 0x6414, 0x9a9a, 0x626b, +0x5ac2, 0x745f, 0x8272, 0x6da9, 0x68ee, 0x50e7, 0x838e, 0x7802, +0x6740, 0x5239, 0x6c99, 0x7eb1, 0x50bb, 0x5565, 0x715e, 0x7b5b, +0x6652, 0x73ca, 0x82eb, 0x6749, 0x5c71, 0x5220, 0x717d, 0x886b, +0x95ea, 0x9655, 0x64c5, 0x8d61, 0x81b3, 0x5584, 0x6c55, 0x6247, +0x7f2e, 0x5892, 0x4f24, 0x5546, 0x8d4f, 0x664c, 0x4e0a, 0x5c1a, +0x88f3, 0x68a2, 0x634e, 0x7a0d, 0x70e7, 0x828d, 0x52fa, 0x97f6, +0x5c11, 0x54e8, 0x90b5, 0x7ecd, 0x5962, 0x8d4a, 0x86c7, 0x820c, +0x820d, 0x8d66, 0x6444, 0x5c04, 0x6151, 0x6d89, 0x793e, 0x8bbe, +0x7837, 0x7533, 0x547b, 0x4f38, 0x8eab, 0x6df1, 0x5a20, 0x7ec5, +0x795e, 0x6c88, 0x5ba1, 0x5a76, 0x751a, 0x80be, 0x614e, 0x6e17, +0x58f0, 0x751f, 0x7525, 0x7272, 0x5347, 0x7ef3, +94, 0x4a21, +0x7701, 0x76db, 0x5269, 0x80dc, 0x5723, 0x5e08, 0x5931, 0x72ee, +0x65bd, 0x6e7f, 0x8bd7, 0x5c38, 0x8671, 0x5341, 0x77f3, 0x62fe, +0x65f6, 0x4ec0, 0x98df, 0x8680, 0x5b9e, 0x8bc6, 0x53f2, 0x77e2, +0x4f7f, 0x5c4e, 0x9a76, 0x59cb, 0x5f0f, 0x793a, 0x58eb, 0x4e16, +0x67ff, 0x4e8b, 0x62ed, 0x8a93, 0x901d, 0x52bf, 0x662f, 0x55dc, +0x566c, 0x9002, 0x4ed5, 0x4f8d, 0x91ca, 0x9970, 0x6c0f, 0x5e02, +0x6043, 0x5ba4, 0x89c6, 0x8bd5, 0x6536, 0x624b, 0x9996, 0x5b88, +0x5bff, 0x6388, 0x552e, 0x53d7, 0x7626, 0x517d, 0x852c, 0x67a2, +0x68b3, 0x6b8a, 0x6292, 0x8f93, 0x53d4, 0x8212, 0x6dd1, 0x758f, +0x4e66, 0x8d4e, 0x5b70, 0x719f, 0x85af, 0x6691, 0x66d9, 0x7f72, +0x8700, 0x9ecd, 0x9f20, 0x5c5e, 0x672f, 0x8ff0, 0x6811, 0x675f, +0x620d, 0x7ad6, 0x5885, 0x5eb6, 0x6570, 0x6f31, +94, 0x4b21, +0x6055, 0x5237, 0x800d, 0x6454, 0x8870, 0x7529, 0x5e05, 0x6813, +0x62f4, 0x971c, 0x53cc, 0x723d, 0x8c01, 0x6c34, 0x7761, 0x7a0e, +0x542e, 0x77ac, 0x987a, 0x821c, 0x8bf4, 0x7855, 0x6714, 0x70c1, +0x65af, 0x6495, 0x5636, 0x601d, 0x79c1, 0x53f8, 0x4e1d, 0x6b7b, +0x8086, 0x5bfa, 0x55e3, 0x56db, 0x4f3a, 0x4f3c, 0x9972, 0x5df3, +0x677e, 0x8038, 0x6002, 0x9882, 0x9001, 0x5b8b, 0x8bbc, 0x8bf5, +0x641c, 0x8258, 0x64de, 0x55fd, 0x82cf, 0x9165, 0x4fd7, 0x7d20, +0x901f, 0x7c9f, 0x50f3, 0x5851, 0x6eaf, 0x5bbf, 0x8bc9, 0x8083, +0x9178, 0x849c, 0x7b97, 0x867d, 0x968b, 0x968f, 0x7ee5, 0x9ad3, +0x788e, 0x5c81, 0x7a57, 0x9042, 0x96a7, 0x795f, 0x5b59, 0x635f, +0x7b0b, 0x84d1, 0x68ad, 0x5506, 0x7f29, 0x7410, 0x7d22, 0x9501, +0x6240, 0x584c, 0x4ed6, 0x5b83, 0x5979, 0x5854, +94, 0x4c21, +0x736d, 0x631e, 0x8e4b, 0x8e0f, 0x80ce, 0x82d4, 0x62ac, 0x53f0, +0x6cf0, 0x915e, 0x592a, 0x6001, 0x6c70, 0x574d, 0x644a, 0x8d2a, +0x762b, 0x6ee9, 0x575b, 0x6a80, 0x75f0, 0x6f6d, 0x8c2d, 0x8c08, +0x5766, 0x6bef, 0x8892, 0x78b3, 0x63a2, 0x53f9, 0x70ad, 0x6c64, +0x5858, 0x642a, 0x5802, 0x68e0, 0x819b, 0x5510, 0x7cd6, 0x5018, +0x8eba, 0x6dcc, 0x8d9f, 0x70eb, 0x638f, 0x6d9b, 0x6ed4, 0x7ee6, +0x8404, 0x6843, 0x9003, 0x6dd8, 0x9676, 0x8ba8, 0x5957, 0x7279, +0x85e4, 0x817e, 0x75bc, 0x8a8a, 0x68af, 0x5254, 0x8e22, 0x9511, +0x63d0, 0x9898, 0x8e44, 0x557c, 0x4f53, 0x66ff, 0x568f, 0x60d5, +0x6d95, 0x5243, 0x5c49, 0x5929, 0x6dfb, 0x586b, 0x7530, 0x751c, +0x606c, 0x8214, 0x8146, 0x6311, 0x6761, 0x8fe2, 0x773a, 0x8df3, +0x8d34, 0x94c1, 0x5e16, 0x5385, 0x542c, 0x70c3, +94, 0x4d21, +0x6c40, 0x5ef7, 0x505c, 0x4ead, 0x5ead, 0x633a, 0x8247, 0x901a, +0x6850, 0x916e, 0x77b3, 0x540c, 0x94dc, 0x5f64, 0x7ae5, 0x6876, +0x6345, 0x7b52, 0x7edf, 0x75db, 0x5077, 0x6295, 0x5934, 0x900f, +0x51f8, 0x79c3, 0x7a81, 0x56fe, 0x5f92, 0x9014, 0x6d82, 0x5c60, +0x571f, 0x5410, 0x5154, 0x6e4d, 0x56e2, 0x63a8, 0x9893, 0x817f, +0x8715, 0x892a, 0x9000, 0x541e, 0x5c6f, 0x81c0, 0x62d6, 0x6258, +0x8131, 0x9e35, 0x9640, 0x9a6e, 0x9a7c, 0x692d, 0x59a5, 0x62d3, +0x553e, 0x6316, 0x54c7, 0x86d9, 0x6d3c, 0x5a03, 0x74e6, 0x889c, +0x6b6a, 0x5916, 0x8c4c, 0x5f2f, 0x6e7e, 0x73a9, 0x987d, 0x4e38, +0x70f7, 0x5b8c, 0x7897, 0x633d, 0x665a, 0x7696, 0x60cb, 0x5b9b, +0x5a49, 0x4e07, 0x8155, 0x6c6a, 0x738b, 0x4ea1, 0x6789, 0x7f51, +0x5f80, 0x65fa, 0x671b, 0x5fd8, 0x5984, 0x5a01, +94, 0x4e21, +0x5dcd, 0x5fae, 0x5371, 0x97e6, 0x8fdd, 0x6845, 0x56f4, 0x552f, +0x60df, 0x4e3a, 0x6f4d, 0x7ef4, 0x82c7, 0x840e, 0x59d4, 0x4f1f, +0x4f2a, 0x5c3e, 0x7eac, 0x672a, 0x851a, 0x5473, 0x754f, 0x80c3, +0x5582, 0x9b4f, 0x4f4d, 0x6e2d, 0x8c13, 0x5c09, 0x6170, 0x536b, +0x761f, 0x6e29, 0x868a, 0x6587, 0x95fb, 0x7eb9, 0x543b, 0x7a33, +0x7d0a, 0x95ee, 0x55e1, 0x7fc1, 0x74ee, 0x631d, 0x8717, 0x6da1, +0x7a9d, 0x6211, 0x65a1, 0x5367, 0x63e1, 0x6c83, 0x5deb, 0x545c, +0x94a8, 0x4e4c, 0x6c61, 0x8bec, 0x5c4b, 0x65e0, 0x829c, 0x68a7, +0x543e, 0x5434, 0x6bcb, 0x6b66, 0x4e94, 0x6342, 0x5348, 0x821e, +0x4f0d, 0x4fae, 0x575e, 0x620a, 0x96fe, 0x6664, 0x7269, 0x52ff, +0x52a1, 0x609f, 0x8bef, 0x6614, 0x7199, 0x6790, 0x897f, 0x7852, +0x77fd, 0x6670, 0x563b, 0x5438, 0x9521, 0x727a, +94, 0x4f21, +0x7a00, 0x606f, 0x5e0c, 0x6089, 0x819d, 0x5915, 0x60dc, 0x7184, +0x70ef, 0x6eaa, 0x6c50, 0x7280, 0x6a84, 0x88ad, 0x5e2d, 0x4e60, +0x5ab3, 0x559c, 0x94e3, 0x6d17, 0x7cfb, 0x9699, 0x620f, 0x7ec6, +0x778e, 0x867e, 0x5323, 0x971e, 0x8f96, 0x6687, 0x5ce1, 0x4fa0, +0x72ed, 0x4e0b, 0x53a6, 0x590f, 0x5413, 0x6380, 0x9528, 0x5148, +0x4ed9, 0x9c9c, 0x7ea4, 0x54b8, 0x8d24, 0x8854, 0x8237, 0x95f2, +0x6d8e, 0x5f26, 0x5acc, 0x663e, 0x9669, 0x73b0, 0x732e, 0x53bf, +0x817a, 0x9985, 0x7fa1, 0x5baa, 0x9677, 0x9650, 0x7ebf, 0x76f8, +0x53a2, 0x9576, 0x9999, 0x7bb1, 0x8944, 0x6e58, 0x4e61, 0x7fd4, +0x7965, 0x8be6, 0x60f3, 0x54cd, 0x4eab, 0x9879, 0x5df7, 0x6a61, +0x50cf, 0x5411, 0x8c61, 0x8427, 0x785d, 0x9704, 0x524a, 0x54ee, +0x56a3, 0x9500, 0x6d88, 0x5bb5, 0x6dc6, 0x6653, +94, 0x5021, +0x5c0f, 0x5b5d, 0x6821, 0x8096, 0x5578, 0x7b11, 0x6548, 0x6954, +0x4e9b, 0x6b47, 0x874e, 0x978b, 0x534f, 0x631f, 0x643a, 0x90aa, +0x659c, 0x80c1, 0x8c10, 0x5199, 0x68b0, 0x5378, 0x87f9, 0x61c8, +0x6cc4, 0x6cfb, 0x8c22, 0x5c51, 0x85aa, 0x82af, 0x950c, 0x6b23, +0x8f9b, 0x65b0, 0x5ffb, 0x5fc3, 0x4fe1, 0x8845, 0x661f, 0x8165, +0x7329, 0x60fa, 0x5174, 0x5211, 0x578b, 0x5f62, 0x90a2, 0x884c, +0x9192, 0x5e78, 0x674f, 0x6027, 0x59d3, 0x5144, 0x51f6, 0x80f8, +0x5308, 0x6c79, 0x96c4, 0x718a, 0x4f11, 0x4fee, 0x7f9e, 0x673d, +0x55c5, 0x9508, 0x79c0, 0x8896, 0x7ee3, 0x589f, 0x620c, 0x9700, +0x865a, 0x5618, 0x987b, 0x5f90, 0x8bb8, 0x84c4, 0x9157, 0x53d9, +0x65ed, 0x5e8f, 0x755c, 0x6064, 0x7d6e, 0x5a7f, 0x7eea, 0x7eed, +0x8f69, 0x55a7, 0x5ba3, 0x60ac, 0x65cb, 0x7384, +94, 0x5121, +0x9009, 0x7663, 0x7729, 0x7eda, 0x9774, 0x859b, 0x5b66, 0x7a74, +0x96ea, 0x8840, 0x52cb, 0x718f, 0x5faa, 0x65ec, 0x8be2, 0x5bfb, +0x9a6f, 0x5de1, 0x6b89, 0x6c5b, 0x8bad, 0x8baf, 0x900a, 0x8fc5, +0x538b, 0x62bc, 0x9e26, 0x9e2d, 0x5440, 0x4e2b, 0x82bd, 0x7259, +0x869c, 0x5d16, 0x8859, 0x6daf, 0x96c5, 0x54d1, 0x4e9a, 0x8bb6, +0x7109, 0x54bd, 0x9609, 0x70df, 0x6df9, 0x76d0, 0x4e25, 0x7814, +0x8712, 0x5ca9, 0x5ef6, 0x8a00, 0x989c, 0x960e, 0x708e, 0x6cbf, +0x5944, 0x63a9, 0x773c, 0x884d, 0x6f14, 0x8273, 0x5830, 0x71d5, +0x538c, 0x781a, 0x96c1, 0x5501, 0x5f66, 0x7130, 0x5bb4, 0x8c1a, +0x9a8c, 0x6b83, 0x592e, 0x9e2f, 0x79e7, 0x6768, 0x626c, 0x4f6f, +0x75a1, 0x7f8a, 0x6d0b, 0x9633, 0x6c27, 0x4ef0, 0x75d2, 0x517b, +0x6837, 0x6f3e, 0x9080, 0x8170, 0x5996, 0x7476, +94, 0x5221, +0x6447, 0x5c27, 0x9065, 0x7a91, 0x8c23, 0x59da, 0x54ac, 0x8200, +0x836f, 0x8981, 0x8000, 0x6930, 0x564e, 0x8036, 0x7237, 0x91ce, +0x51b6, 0x4e5f, 0x9875, 0x6396, 0x4e1a, 0x53f6, 0x66f3, 0x814b, +0x591c, 0x6db2, 0x4e00, 0x58f9, 0x533b, 0x63d6, 0x94f1, 0x4f9d, +0x4f0a, 0x8863, 0x9890, 0x5937, 0x9057, 0x79fb, 0x4eea, 0x80f0, +0x7591, 0x6c82, 0x5b9c, 0x59e8, 0x5f5d, 0x6905, 0x8681, 0x501a, +0x5df2, 0x4e59, 0x77e3, 0x4ee5, 0x827a, 0x6291, 0x6613, 0x9091, +0x5c79, 0x4ebf, 0x5f79, 0x81c6, 0x9038, 0x8084, 0x75ab, 0x4ea6, +0x88d4, 0x610f, 0x6bc5, 0x5fc6, 0x4e49, 0x76ca, 0x6ea2, 0x8be3, +0x8bae, 0x8c0a, 0x8bd1, 0x5f02, 0x7ffc, 0x7fcc, 0x7ece, 0x8335, +0x836b, 0x56e0, 0x6bb7, 0x97f3, 0x9634, 0x59fb, 0x541f, 0x94f6, +0x6deb, 0x5bc5, 0x996e, 0x5c39, 0x5f15, 0x9690, +94, 0x5321, +0x5370, 0x82f1, 0x6a31, 0x5a74, 0x9e70, 0x5e94, 0x7f28, 0x83b9, +0x8424, 0x8425, 0x8367, 0x8747, 0x8fce, 0x8d62, 0x76c8, 0x5f71, +0x9896, 0x786c, 0x6620, 0x54df, 0x62e5, 0x4f63, 0x81c3, 0x75c8, +0x5eb8, 0x96cd, 0x8e0a, 0x86f9, 0x548f, 0x6cf3, 0x6d8c, 0x6c38, +0x607f, 0x52c7, 0x7528, 0x5e7d, 0x4f18, 0x60a0, 0x5fe7, 0x5c24, +0x7531, 0x90ae, 0x94c0, 0x72b9, 0x6cb9, 0x6e38, 0x9149, 0x6709, +0x53cb, 0x53f3, 0x4f51, 0x91c9, 0x8bf1, 0x53c8, 0x5e7c, 0x8fc2, +0x6de4, 0x4e8e, 0x76c2, 0x6986, 0x865e, 0x611a, 0x8206, 0x4f59, +0x4fde, 0x903e, 0x9c7c, 0x6109, 0x6e1d, 0x6e14, 0x9685, 0x4e88, +0x5a31, 0x96e8, 0x4e0e, 0x5c7f, 0x79b9, 0x5b87, 0x8bed, 0x7fbd, +0x7389, 0x57df, 0x828b, 0x90c1, 0x5401, 0x9047, 0x55bb, 0x5cea, +0x5fa1, 0x6108, 0x6b32, 0x72f1, 0x80b2, 0x8a89, +94, 0x5421, +0x6d74, 0x5bd3, 0x88d5, 0x9884, 0x8c6b, 0x9a6d, 0x9e33, 0x6e0a, +0x51a4, 0x5143, 0x57a3, 0x8881, 0x539f, 0x63f4, 0x8f95, 0x56ed, +0x5458, 0x5706, 0x733f, 0x6e90, 0x7f18, 0x8fdc, 0x82d1, 0x613f, +0x6028, 0x9662, 0x66f0, 0x7ea6, 0x8d8a, 0x8dc3, 0x94a5, 0x5cb3, +0x7ca4, 0x6708, 0x60a6, 0x9605, 0x8018, 0x4e91, 0x90e7, 0x5300, +0x9668, 0x5141, 0x8fd0, 0x8574, 0x915d, 0x6655, 0x97f5, 0x5b55, +0x531d, 0x7838, 0x6742, 0x683d, 0x54c9, 0x707e, 0x5bb0, 0x8f7d, +0x518d, 0x5728, 0x54b1, 0x6512, 0x6682, 0x8d5e, 0x8d43, 0x810f, +0x846c, 0x906d, 0x7cdf, 0x51ff, 0x85fb, 0x67a3, 0x65e9, 0x6fa1, +0x86a4, 0x8e81, 0x566a, 0x9020, 0x7682, 0x7076, 0x71e5, 0x8d23, +0x62e9, 0x5219, 0x6cfd, 0x8d3c, 0x600e, 0x589e, 0x618e, 0x66fe, +0x8d60, 0x624e, 0x55b3, 0x6e23, 0x672d, 0x8f67, +94, 0x5521, +0x94e1, 0x95f8, 0x7728, 0x6805, 0x69a8, 0x548b, 0x4e4d, 0x70b8, +0x8bc8, 0x6458, 0x658b, 0x5b85, 0x7a84, 0x503a, 0x5be8, 0x77bb, +0x6be1, 0x8a79, 0x7c98, 0x6cbe, 0x76cf, 0x65a9, 0x8f97, 0x5d2d, +0x5c55, 0x8638, 0x6808, 0x5360, 0x6218, 0x7ad9, 0x6e5b, 0x7efd, +0x6a1f, 0x7ae0, 0x5f70, 0x6f33, 0x5f20, 0x638c, 0x6da8, 0x6756, +0x4e08, 0x5e10, 0x8d26, 0x4ed7, 0x80c0, 0x7634, 0x969c, 0x62db, +0x662d, 0x627e, 0x6cbc, 0x8d75, 0x7167, 0x7f69, 0x5146, 0x8087, +0x53ec, 0x906e, 0x6298, 0x54f2, 0x86f0, 0x8f99, 0x8005, 0x9517, +0x8517, 0x8fd9, 0x6d59, 0x73cd, 0x659f, 0x771f, 0x7504, 0x7827, +0x81fb, 0x8d1e, 0x9488, 0x4fa6, 0x6795, 0x75b9, 0x8bca, 0x9707, +0x632f, 0x9547, 0x9635, 0x84b8, 0x6323, 0x7741, 0x5f81, 0x72f0, +0x4e89, 0x6014, 0x6574, 0x62ef, 0x6b63, 0x653f, +94, 0x5621, +0x5e27, 0x75c7, 0x90d1, 0x8bc1, 0x829d, 0x679d, 0x652f, 0x5431, +0x8718, 0x77e5, 0x80a2, 0x8102, 0x6c41, 0x4e4b, 0x7ec7, 0x804c, +0x76f4, 0x690d, 0x6b96, 0x6267, 0x503c, 0x4f84, 0x5740, 0x6307, +0x6b62, 0x8dbe, 0x53ea, 0x65e8, 0x7eb8, 0x5fd7, 0x631a, 0x63b7, +0x81f3, 0x81f4, 0x7f6e, 0x5e1c, 0x5cd9, 0x5236, 0x667a, 0x79e9, +0x7a1a, 0x8d28, 0x7099, 0x75d4, 0x6ede, 0x6cbb, 0x7a92, 0x4e2d, +0x76c5, 0x5fe0, 0x949f, 0x8877, 0x7ec8, 0x79cd, 0x80bf, 0x91cd, +0x4ef2, 0x4f17, 0x821f, 0x5468, 0x5dde, 0x6d32, 0x8bcc, 0x7ca5, +0x8f74, 0x8098, 0x5e1a, 0x5492, 0x76b1, 0x5b99, 0x663c, 0x9aa4, +0x73e0, 0x682a, 0x86db, 0x6731, 0x732a, 0x8bf8, 0x8bdb, 0x9010, +0x7af9, 0x70db, 0x716e, 0x62c4, 0x77a9, 0x5631, 0x4e3b, 0x8457, +0x67f1, 0x52a9, 0x86c0, 0x8d2e, 0x94f8, 0x7b51, +89, 0x5721, +0x4f4f, 0x6ce8, 0x795d, 0x9a7b, 0x6293, 0x722a, 0x62fd, 0x4e13, +0x7816, 0x8f6c, 0x64b0, 0x8d5a, 0x7bc6, 0x6869, 0x5e84, 0x88c5, +0x5986, 0x649e, 0x58ee, 0x72b6, 0x690e, 0x9525, 0x8ffd, 0x8d58, +0x5760, 0x7f00, 0x8c06, 0x51c6, 0x6349, 0x62d9, 0x5353, 0x684c, +0x7422, 0x8301, 0x914c, 0x5544, 0x7740, 0x707c, 0x6d4a, 0x5179, +0x54a8, 0x8d44, 0x59ff, 0x6ecb, 0x6dc4, 0x5b5c, 0x7d2b, 0x4ed4, +0x7c7d, 0x6ed3, 0x5b50, 0x81ea, 0x6e0d, 0x5b57, 0x9b03, 0x68d5, +0x8e2a, 0x5b97, 0x7efc, 0x603b, 0x7eb5, 0x90b9, 0x8d70, 0x594f, +0x63cd, 0x79df, 0x8db3, 0x5352, 0x65cf, 0x7956, 0x8bc5, 0x963b, +0x7ec4, 0x94bb, 0x7e82, 0x5634, 0x9189, 0x6700, 0x7f6a, 0x5c0a, +0x9075, 0x6628, 0x5de6, 0x4f50, 0x67de, 0x505a, 0x4f5c, 0x5750, +0x5ea7, +94, 0x5821, +0x4e8d, 0x4e0c, 0x5140, 0x4e10, 0x5eff, 0x5345, 0x4e15, 0x4e98, +0x4e1e, 0x9b32, 0x5b6c, 0x5669, 0x4e28, 0x79ba, 0x4e3f, 0x5315, +0x4e47, 0x592d, 0x723b, 0x536e, 0x6c10, 0x56df, 0x80e4, 0x9997, +0x6bd3, 0x777e, 0x9f17, 0x4e36, 0x4e9f, 0x9f10, 0x4e5c, 0x4e69, +0x4e93, 0x8288, 0x5b5b, 0x556c, 0x560f, 0x4ec4, 0x538d, 0x539d, +0x53a3, 0x53a5, 0x53ae, 0x9765, 0x8d5d, 0x531a, 0x53f5, 0x5326, +0x532e, 0x533e, 0x8d5c, 0x5366, 0x5363, 0x5202, 0x5208, 0x520e, +0x522d, 0x5233, 0x523f, 0x5240, 0x524c, 0x525e, 0x5261, 0x525c, +0x84af, 0x527d, 0x5282, 0x5281, 0x5290, 0x5293, 0x5182, 0x7f54, +0x4ebb, 0x4ec3, 0x4ec9, 0x4ec2, 0x4ee8, 0x4ee1, 0x4eeb, 0x4ede, +0x4f1b, 0x4ef3, 0x4f22, 0x4f64, 0x4ef5, 0x4f25, 0x4f27, 0x4f09, +0x4f2b, 0x4f5e, 0x4f67, 0x6538, 0x4f5a, 0x4f5d, +94, 0x5921, +0x4f5f, 0x4f57, 0x4f32, 0x4f3d, 0x4f76, 0x4f74, 0x4f91, 0x4f89, +0x4f83, 0x4f8f, 0x4f7e, 0x4f7b, 0x4faa, 0x4f7c, 0x4fac, 0x4f94, +0x4fe6, 0x4fe8, 0x4fea, 0x4fc5, 0x4fda, 0x4fe3, 0x4fdc, 0x4fd1, +0x4fdf, 0x4ff8, 0x5029, 0x504c, 0x4ff3, 0x502c, 0x500f, 0x502e, +0x502d, 0x4ffe, 0x501c, 0x500c, 0x5025, 0x5028, 0x507e, 0x5043, +0x5055, 0x5048, 0x504e, 0x506c, 0x507b, 0x50a5, 0x50a7, 0x50a9, +0x50ba, 0x50d6, 0x5106, 0x50ed, 0x50ec, 0x50e6, 0x50ee, 0x5107, +0x510b, 0x4edd, 0x6c3d, 0x4f58, 0x4f65, 0x4fce, 0x9fa0, 0x6c46, +0x7c74, 0x516e, 0x5dfd, 0x9ec9, 0x9998, 0x5181, 0x5914, 0x52f9, +0x530d, 0x8a07, 0x5310, 0x51eb, 0x5919, 0x5155, 0x4ea0, 0x5156, +0x4eb3, 0x886e, 0x88a4, 0x4eb5, 0x8114, 0x88d2, 0x7980, 0x5b34, +0x8803, 0x7fb8, 0x51ab, 0x51b1, 0x51bd, 0x51bc, +94, 0x5a21, +0x51c7, 0x5196, 0x51a2, 0x51a5, 0x8ba0, 0x8ba6, 0x8ba7, 0x8baa, +0x8bb4, 0x8bb5, 0x8bb7, 0x8bc2, 0x8bc3, 0x8bcb, 0x8bcf, 0x8bce, +0x8bd2, 0x8bd3, 0x8bd4, 0x8bd6, 0x8bd8, 0x8bd9, 0x8bdc, 0x8bdf, +0x8be0, 0x8be4, 0x8be8, 0x8be9, 0x8bee, 0x8bf0, 0x8bf3, 0x8bf6, +0x8bf9, 0x8bfc, 0x8bff, 0x8c00, 0x8c02, 0x8c04, 0x8c07, 0x8c0c, +0x8c0f, 0x8c11, 0x8c12, 0x8c14, 0x8c15, 0x8c16, 0x8c19, 0x8c1b, +0x8c18, 0x8c1d, 0x8c1f, 0x8c20, 0x8c21, 0x8c25, 0x8c27, 0x8c2a, +0x8c2b, 0x8c2e, 0x8c2f, 0x8c32, 0x8c33, 0x8c35, 0x8c36, 0x5369, +0x537a, 0x961d, 0x9622, 0x9621, 0x9631, 0x962a, 0x963d, 0x963c, +0x9642, 0x9649, 0x9654, 0x965f, 0x9667, 0x966c, 0x9672, 0x9674, +0x9688, 0x968d, 0x9697, 0x96b0, 0x9097, 0x909b, 0x909d, 0x9099, +0x90ac, 0x90a1, 0x90b4, 0x90b3, 0x90b6, 0x90ba, +94, 0x5b21, +0x90b8, 0x90b0, 0x90cf, 0x90c5, 0x90be, 0x90d0, 0x90c4, 0x90c7, +0x90d3, 0x90e6, 0x90e2, 0x90dc, 0x90d7, 0x90db, 0x90eb, 0x90ef, +0x90fe, 0x9104, 0x9122, 0x911e, 0x9123, 0x9131, 0x912f, 0x9139, +0x9143, 0x9146, 0x520d, 0x5942, 0x52a2, 0x52ac, 0x52ad, 0x52be, +0x54ff, 0x52d0, 0x52d6, 0x52f0, 0x53df, 0x71ee, 0x77cd, 0x5ef4, +0x51f5, 0x51fc, 0x9b2f, 0x53b6, 0x5f01, 0x755a, 0x5def, 0x574c, +0x57a9, 0x57a1, 0x587e, 0x58bc, 0x58c5, 0x58d1, 0x5729, 0x572c, +0x572a, 0x5733, 0x5739, 0x572e, 0x572f, 0x575c, 0x573b, 0x5742, +0x5769, 0x5785, 0x576b, 0x5786, 0x577c, 0x577b, 0x5768, 0x576d, +0x5776, 0x5773, 0x57ad, 0x57a4, 0x578c, 0x57b2, 0x57cf, 0x57a7, +0x57b4, 0x5793, 0x57a0, 0x57d5, 0x57d8, 0x57da, 0x57d9, 0x57d2, +0x57b8, 0x57f4, 0x57ef, 0x57f8, 0x57e4, 0x57dd, +94, 0x5c21, +0x580b, 0x580d, 0x57fd, 0x57ed, 0x5800, 0x581e, 0x5819, 0x5844, +0x5820, 0x5865, 0x586c, 0x5881, 0x5889, 0x589a, 0x5880, 0x99a8, +0x9f19, 0x61ff, 0x8279, 0x827d, 0x827f, 0x828f, 0x828a, 0x82a8, +0x8284, 0x828e, 0x8291, 0x8297, 0x8299, 0x82ab, 0x82b8, 0x82be, +0x82b0, 0x82c8, 0x82ca, 0x82e3, 0x8298, 0x82b7, 0x82ae, 0x82cb, +0x82cc, 0x82c1, 0x82a9, 0x82b4, 0x82a1, 0x82aa, 0x829f, 0x82c4, +0x82ce, 0x82a4, 0x82e1, 0x8309, 0x82f7, 0x82e4, 0x830f, 0x8307, +0x82dc, 0x82f4, 0x82d2, 0x82d8, 0x830c, 0x82fb, 0x82d3, 0x8311, +0x831a, 0x8306, 0x8314, 0x8315, 0x82e0, 0x82d5, 0x831c, 0x8351, +0x835b, 0x835c, 0x8308, 0x8392, 0x833c, 0x8334, 0x8331, 0x839b, +0x835e, 0x832f, 0x834f, 0x8347, 0x8343, 0x835f, 0x8340, 0x8317, +0x8360, 0x832d, 0x833a, 0x8333, 0x8366, 0x8365, +94, 0x5d21, +0x8368, 0x831b, 0x8369, 0x836c, 0x836a, 0x836d, 0x836e, 0x83b0, +0x8378, 0x83b3, 0x83b4, 0x83a0, 0x83aa, 0x8393, 0x839c, 0x8385, +0x837c, 0x83b6, 0x83a9, 0x837d, 0x83b8, 0x837b, 0x8398, 0x839e, +0x83a8, 0x83ba, 0x83bc, 0x83c1, 0x8401, 0x83e5, 0x83d8, 0x5807, +0x8418, 0x840b, 0x83dd, 0x83fd, 0x83d6, 0x841c, 0x8438, 0x8411, +0x8406, 0x83d4, 0x83df, 0x840f, 0x8403, 0x83f8, 0x83f9, 0x83ea, +0x83c5, 0x83c0, 0x8426, 0x83f0, 0x83e1, 0x845c, 0x8451, 0x845a, +0x8459, 0x8473, 0x8487, 0x8488, 0x847a, 0x8489, 0x8478, 0x843c, +0x8446, 0x8469, 0x8476, 0x848c, 0x848e, 0x8431, 0x846d, 0x84c1, +0x84cd, 0x84d0, 0x84e6, 0x84bd, 0x84d3, 0x84ca, 0x84bf, 0x84ba, +0x84e0, 0x84a1, 0x84b9, 0x84b4, 0x8497, 0x84e5, 0x84e3, 0x850c, +0x750d, 0x8538, 0x84f0, 0x8539, 0x851f, 0x853a, +94, 0x5e21, +0x8556, 0x853b, 0x84ff, 0x84fc, 0x8559, 0x8548, 0x8568, 0x8564, +0x855e, 0x857a, 0x77a2, 0x8543, 0x8572, 0x857b, 0x85a4, 0x85a8, +0x8587, 0x858f, 0x8579, 0x85ae, 0x859c, 0x8585, 0x85b9, 0x85b7, +0x85b0, 0x85d3, 0x85c1, 0x85dc, 0x85ff, 0x8627, 0x8605, 0x8629, +0x8616, 0x863c, 0x5efe, 0x5f08, 0x593c, 0x5941, 0x8037, 0x5955, +0x595a, 0x5958, 0x530f, 0x5c22, 0x5c25, 0x5c2c, 0x5c34, 0x624c, +0x626a, 0x629f, 0x62bb, 0x62ca, 0x62da, 0x62d7, 0x62ee, 0x6322, +0x62f6, 0x6339, 0x634b, 0x6343, 0x63ad, 0x63f6, 0x6371, 0x637a, +0x638e, 0x63b4, 0x636d, 0x63ac, 0x638a, 0x6369, 0x63ae, 0x63bc, +0x63f2, 0x63f8, 0x63e0, 0x63ff, 0x63c4, 0x63de, 0x63ce, 0x6452, +0x63c6, 0x63be, 0x6445, 0x6441, 0x640b, 0x641b, 0x6420, 0x640c, +0x6426, 0x6421, 0x645e, 0x6484, 0x646d, 0x6496, +94, 0x5f21, +0x647a, 0x64b7, 0x64b8, 0x6499, 0x64ba, 0x64c0, 0x64d0, 0x64d7, +0x64e4, 0x64e2, 0x6509, 0x6525, 0x652e, 0x5f0b, 0x5fd2, 0x7519, +0x5f11, 0x535f, 0x53f1, 0x53fd, 0x53e9, 0x53e8, 0x53fb, 0x5412, +0x5416, 0x5406, 0x544b, 0x5452, 0x5453, 0x5454, 0x5456, 0x5443, +0x5421, 0x5457, 0x5459, 0x5423, 0x5432, 0x5482, 0x5494, 0x5477, +0x5471, 0x5464, 0x549a, 0x549b, 0x5484, 0x5476, 0x5466, 0x549d, +0x54d0, 0x54ad, 0x54c2, 0x54b4, 0x54d2, 0x54a7, 0x54a6, 0x54d3, +0x54d4, 0x5472, 0x54a3, 0x54d5, 0x54bb, 0x54bf, 0x54cc, 0x54d9, +0x54da, 0x54dc, 0x54a9, 0x54aa, 0x54a4, 0x54dd, 0x54cf, 0x54de, +0x551b, 0x54e7, 0x5520, 0x54fd, 0x5514, 0x54f3, 0x5522, 0x5523, +0x550f, 0x5511, 0x5527, 0x552a, 0x5567, 0x558f, 0x55b5, 0x5549, +0x556d, 0x5541, 0x5555, 0x553f, 0x5550, 0x553c, +94, 0x6021, +0x5537, 0x5556, 0x5575, 0x5576, 0x5577, 0x5533, 0x5530, 0x555c, +0x558b, 0x55d2, 0x5583, 0x55b1, 0x55b9, 0x5588, 0x5581, 0x559f, +0x557e, 0x55d6, 0x5591, 0x557b, 0x55df, 0x55bd, 0x55be, 0x5594, +0x5599, 0x55ea, 0x55f7, 0x55c9, 0x561f, 0x55d1, 0x55eb, 0x55ec, +0x55d4, 0x55e6, 0x55dd, 0x55c4, 0x55ef, 0x55e5, 0x55f2, 0x55f3, +0x55cc, 0x55cd, 0x55e8, 0x55f5, 0x55e4, 0x8f94, 0x561e, 0x5608, +0x560c, 0x5601, 0x5624, 0x5623, 0x55fe, 0x5600, 0x5627, 0x562d, +0x5658, 0x5639, 0x5657, 0x562c, 0x564d, 0x5662, 0x5659, 0x565c, +0x564c, 0x5654, 0x5686, 0x5664, 0x5671, 0x566b, 0x567b, 0x567c, +0x5685, 0x5693, 0x56af, 0x56d4, 0x56d7, 0x56dd, 0x56e1, 0x56f5, +0x56eb, 0x56f9, 0x56ff, 0x5704, 0x570a, 0x5709, 0x571c, 0x5e0f, +0x5e19, 0x5e14, 0x5e11, 0x5e31, 0x5e3b, 0x5e3c, +94, 0x6121, +0x5e37, 0x5e44, 0x5e54, 0x5e5b, 0x5e5e, 0x5e61, 0x5c8c, 0x5c7a, +0x5c8d, 0x5c90, 0x5c96, 0x5c88, 0x5c98, 0x5c99, 0x5c91, 0x5c9a, +0x5c9c, 0x5cb5, 0x5ca2, 0x5cbd, 0x5cac, 0x5cab, 0x5cb1, 0x5ca3, +0x5cc1, 0x5cb7, 0x5cc4, 0x5cd2, 0x5ce4, 0x5ccb, 0x5ce5, 0x5d02, +0x5d03, 0x5d27, 0x5d26, 0x5d2e, 0x5d24, 0x5d1e, 0x5d06, 0x5d1b, +0x5d58, 0x5d3e, 0x5d34, 0x5d3d, 0x5d6c, 0x5d5b, 0x5d6f, 0x5d5d, +0x5d6b, 0x5d4b, 0x5d4a, 0x5d69, 0x5d74, 0x5d82, 0x5d99, 0x5d9d, +0x8c73, 0x5db7, 0x5dc5, 0x5f73, 0x5f77, 0x5f82, 0x5f87, 0x5f89, +0x5f8c, 0x5f95, 0x5f99, 0x5f9c, 0x5fa8, 0x5fad, 0x5fb5, 0x5fbc, +0x8862, 0x5f61, 0x72ad, 0x72b0, 0x72b4, 0x72b7, 0x72b8, 0x72c3, +0x72c1, 0x72ce, 0x72cd, 0x72d2, 0x72e8, 0x72ef, 0x72e9, 0x72f2, +0x72f4, 0x72f7, 0x7301, 0x72f3, 0x7303, 0x72fa, +94, 0x6221, +0x72fb, 0x7317, 0x7313, 0x7321, 0x730a, 0x731e, 0x731d, 0x7315, +0x7322, 0x7339, 0x7325, 0x732c, 0x7338, 0x7331, 0x7350, 0x734d, +0x7357, 0x7360, 0x736c, 0x736f, 0x737e, 0x821b, 0x5925, 0x98e7, +0x5924, 0x5902, 0x9963, 0x9967, 0x9968, 0x9969, 0x996a, 0x996b, +0x996c, 0x9974, 0x9977, 0x997d, 0x9980, 0x9984, 0x9987, 0x998a, +0x998d, 0x9990, 0x9991, 0x9993, 0x9994, 0x9995, 0x5e80, 0x5e91, +0x5e8b, 0x5e96, 0x5ea5, 0x5ea0, 0x5eb9, 0x5eb5, 0x5ebe, 0x5eb3, +0x8d53, 0x5ed2, 0x5ed1, 0x5edb, 0x5ee8, 0x5eea, 0x81ba, 0x5fc4, +0x5fc9, 0x5fd6, 0x5fcf, 0x6003, 0x5fee, 0x6004, 0x5fe1, 0x5fe4, +0x5ffe, 0x6005, 0x6006, 0x5fea, 0x5fed, 0x5ff8, 0x6019, 0x6035, +0x6026, 0x601b, 0x600f, 0x600d, 0x6029, 0x602b, 0x600a, 0x603f, +0x6021, 0x6078, 0x6079, 0x607b, 0x607a, 0x6042, +94, 0x6321, +0x606a, 0x607d, 0x6096, 0x609a, 0x60ad, 0x609d, 0x6083, 0x6092, +0x608c, 0x609b, 0x60ec, 0x60bb, 0x60b1, 0x60dd, 0x60d8, 0x60c6, +0x60da, 0x60b4, 0x6120, 0x6126, 0x6115, 0x6123, 0x60f4, 0x6100, +0x610e, 0x612b, 0x614a, 0x6175, 0x61ac, 0x6194, 0x61a7, 0x61b7, +0x61d4, 0x61f5, 0x5fdd, 0x96b3, 0x95e9, 0x95eb, 0x95f1, 0x95f3, +0x95f5, 0x95f6, 0x95fc, 0x95fe, 0x9603, 0x9604, 0x9606, 0x9608, +0x960a, 0x960b, 0x960c, 0x960d, 0x960f, 0x9612, 0x9615, 0x9616, +0x9617, 0x9619, 0x961a, 0x4e2c, 0x723f, 0x6215, 0x6c35, 0x6c54, +0x6c5c, 0x6c4a, 0x6ca3, 0x6c85, 0x6c90, 0x6c94, 0x6c8c, 0x6c68, +0x6c69, 0x6c74, 0x6c76, 0x6c86, 0x6ca9, 0x6cd0, 0x6cd4, 0x6cad, +0x6cf7, 0x6cf8, 0x6cf1, 0x6cd7, 0x6cb2, 0x6ce0, 0x6cd6, 0x6cfa, +0x6ceb, 0x6cee, 0x6cb1, 0x6cd3, 0x6cef, 0x6cfe, +94, 0x6421, +0x6d39, 0x6d27, 0x6d0c, 0x6d43, 0x6d48, 0x6d07, 0x6d04, 0x6d19, +0x6d0e, 0x6d2b, 0x6d4d, 0x6d2e, 0x6d35, 0x6d1a, 0x6d4f, 0x6d52, +0x6d54, 0x6d33, 0x6d91, 0x6d6f, 0x6d9e, 0x6da0, 0x6d5e, 0x6d93, +0x6d94, 0x6d5c, 0x6d60, 0x6d7c, 0x6d63, 0x6e1a, 0x6dc7, 0x6dc5, +0x6dde, 0x6e0e, 0x6dbf, 0x6de0, 0x6e11, 0x6de6, 0x6ddd, 0x6dd9, +0x6e16, 0x6dab, 0x6e0c, 0x6dae, 0x6e2b, 0x6e6e, 0x6e4e, 0x6e6b, +0x6eb2, 0x6e5f, 0x6e86, 0x6e53, 0x6e54, 0x6e32, 0x6e25, 0x6e44, +0x6edf, 0x6eb1, 0x6e98, 0x6ee0, 0x6f2d, 0x6ee2, 0x6ea5, 0x6ea7, +0x6ebd, 0x6ebb, 0x6eb7, 0x6ed7, 0x6eb4, 0x6ecf, 0x6e8f, 0x6ec2, +0x6e9f, 0x6f62, 0x6f46, 0x6f47, 0x6f24, 0x6f15, 0x6ef9, 0x6f2f, +0x6f36, 0x6f4b, 0x6f74, 0x6f2a, 0x6f09, 0x6f29, 0x6f89, 0x6f8d, +0x6f8c, 0x6f78, 0x6f72, 0x6f7c, 0x6f7a, 0x6fd1, +94, 0x6521, +0x6fc9, 0x6fa7, 0x6fb9, 0x6fb6, 0x6fc2, 0x6fe1, 0x6fee, 0x6fde, +0x6fe0, 0x6fef, 0x701a, 0x7023, 0x701b, 0x7039, 0x7035, 0x704f, +0x705e, 0x5b80, 0x5b84, 0x5b95, 0x5b93, 0x5ba5, 0x5bb8, 0x752f, +0x9a9e, 0x6434, 0x5be4, 0x5bee, 0x8930, 0x5bf0, 0x8e47, 0x8b07, +0x8fb6, 0x8fd3, 0x8fd5, 0x8fe5, 0x8fee, 0x8fe4, 0x8fe9, 0x8fe6, +0x8ff3, 0x8fe8, 0x9005, 0x9004, 0x900b, 0x9026, 0x9011, 0x900d, +0x9016, 0x9021, 0x9035, 0x9036, 0x902d, 0x902f, 0x9044, 0x9051, +0x9052, 0x9050, 0x9068, 0x9058, 0x9062, 0x905b, 0x66b9, 0x9074, +0x907d, 0x9082, 0x9088, 0x9083, 0x908b, 0x5f50, 0x5f57, 0x5f56, +0x5f58, 0x5c3b, 0x54ab, 0x5c50, 0x5c59, 0x5b71, 0x5c63, 0x5c66, +0x7fbc, 0x5f2a, 0x5f29, 0x5f2d, 0x8274, 0x5f3c, 0x9b3b, 0x5c6e, +0x5981, 0x5983, 0x598d, 0x59a9, 0x59aa, 0x59a3, +94, 0x6621, +0x5997, 0x59ca, 0x59ab, 0x599e, 0x59a4, 0x59d2, 0x59b2, 0x59af, +0x59d7, 0x59be, 0x5a05, 0x5a06, 0x59dd, 0x5a08, 0x59e3, 0x59d8, +0x59f9, 0x5a0c, 0x5a09, 0x5a32, 0x5a34, 0x5a11, 0x5a23, 0x5a13, +0x5a40, 0x5a67, 0x5a4a, 0x5a55, 0x5a3c, 0x5a62, 0x5a75, 0x80ec, +0x5aaa, 0x5a9b, 0x5a77, 0x5a7a, 0x5abe, 0x5aeb, 0x5ab2, 0x5ad2, +0x5ad4, 0x5ab8, 0x5ae0, 0x5ae3, 0x5af1, 0x5ad6, 0x5ae6, 0x5ad8, +0x5adc, 0x5b09, 0x5b17, 0x5b16, 0x5b32, 0x5b37, 0x5b40, 0x5c15, +0x5c1c, 0x5b5a, 0x5b65, 0x5b73, 0x5b51, 0x5b53, 0x5b62, 0x9a75, +0x9a77, 0x9a78, 0x9a7a, 0x9a7f, 0x9a7d, 0x9a80, 0x9a81, 0x9a85, +0x9a88, 0x9a8a, 0x9a90, 0x9a92, 0x9a93, 0x9a96, 0x9a98, 0x9a9b, +0x9a9c, 0x9a9d, 0x9a9f, 0x9aa0, 0x9aa2, 0x9aa3, 0x9aa5, 0x9aa7, +0x7e9f, 0x7ea1, 0x7ea3, 0x7ea5, 0x7ea8, 0x7ea9, +94, 0x6721, +0x7ead, 0x7eb0, 0x7ebe, 0x7ec0, 0x7ec1, 0x7ec2, 0x7ec9, 0x7ecb, +0x7ecc, 0x7ed0, 0x7ed4, 0x7ed7, 0x7edb, 0x7ee0, 0x7ee1, 0x7ee8, +0x7eeb, 0x7eee, 0x7eef, 0x7ef1, 0x7ef2, 0x7f0d, 0x7ef6, 0x7efa, +0x7efb, 0x7efe, 0x7f01, 0x7f02, 0x7f03, 0x7f07, 0x7f08, 0x7f0b, +0x7f0c, 0x7f0f, 0x7f11, 0x7f12, 0x7f17, 0x7f19, 0x7f1c, 0x7f1b, +0x7f1f, 0x7f21, 0x7f22, 0x7f23, 0x7f24, 0x7f25, 0x7f26, 0x7f27, +0x7f2a, 0x7f2b, 0x7f2c, 0x7f2d, 0x7f2f, 0x7f30, 0x7f31, 0x7f32, +0x7f33, 0x7f35, 0x5e7a, 0x757f, 0x5ddb, 0x753e, 0x9095, 0x738e, +0x7391, 0x73ae, 0x73a2, 0x739f, 0x73cf, 0x73c2, 0x73d1, 0x73b7, +0x73b3, 0x73c0, 0x73c9, 0x73c8, 0x73e5, 0x73d9, 0x987c, 0x740a, +0x73e9, 0x73e7, 0x73de, 0x73ba, 0x73f2, 0x740f, 0x742a, 0x745b, +0x7426, 0x7425, 0x7428, 0x7430, 0x742e, 0x742c, +94, 0x6821, +0x741b, 0x741a, 0x7441, 0x745c, 0x7457, 0x7455, 0x7459, 0x7477, +0x746d, 0x747e, 0x749c, 0x748e, 0x7480, 0x7481, 0x7487, 0x748b, +0x749e, 0x74a8, 0x74a9, 0x7490, 0x74a7, 0x74d2, 0x74ba, 0x97ea, +0x97eb, 0x97ec, 0x674c, 0x6753, 0x675e, 0x6748, 0x6769, 0x67a5, +0x6787, 0x676a, 0x6773, 0x6798, 0x67a7, 0x6775, 0x67a8, 0x679e, +0x67ad, 0x678b, 0x6777, 0x677c, 0x67f0, 0x6809, 0x67d8, 0x680a, +0x67e9, 0x67b0, 0x680c, 0x67d9, 0x67b5, 0x67da, 0x67b3, 0x67dd, +0x6800, 0x67c3, 0x67b8, 0x67e2, 0x680e, 0x67c1, 0x67fd, 0x6832, +0x6833, 0x6860, 0x6861, 0x684e, 0x6862, 0x6844, 0x6864, 0x6883, +0x681d, 0x6855, 0x6866, 0x6841, 0x6867, 0x6840, 0x683e, 0x684a, +0x6849, 0x6829, 0x68b5, 0x688f, 0x6874, 0x6877, 0x6893, 0x686b, +0x68c2, 0x696e, 0x68fc, 0x691f, 0x6920, 0x68f9, +94, 0x6921, +0x6924, 0x68f0, 0x690b, 0x6901, 0x6957, 0x68e3, 0x6910, 0x6971, +0x6939, 0x6960, 0x6942, 0x695d, 0x6984, 0x696b, 0x6980, 0x6998, +0x6978, 0x6934, 0x69cc, 0x6987, 0x6988, 0x69ce, 0x6989, 0x6966, +0x6963, 0x6979, 0x699b, 0x69a7, 0x69bb, 0x69ab, 0x69ad, 0x69d4, +0x69b1, 0x69c1, 0x69ca, 0x69df, 0x6995, 0x69e0, 0x698d, 0x69ff, +0x6a2f, 0x69ed, 0x6a17, 0x6a18, 0x6a65, 0x69f2, 0x6a44, 0x6a3e, +0x6aa0, 0x6a50, 0x6a5b, 0x6a35, 0x6a8e, 0x6a79, 0x6a3d, 0x6a28, +0x6a58, 0x6a7c, 0x6a91, 0x6a90, 0x6aa9, 0x6a97, 0x6aab, 0x7337, +0x7352, 0x6b81, 0x6b82, 0x6b87, 0x6b84, 0x6b92, 0x6b93, 0x6b8d, +0x6b9a, 0x6b9b, 0x6ba1, 0x6baa, 0x8f6b, 0x8f6d, 0x8f71, 0x8f72, +0x8f73, 0x8f75, 0x8f76, 0x8f78, 0x8f77, 0x8f79, 0x8f7a, 0x8f7c, +0x8f7e, 0x8f81, 0x8f82, 0x8f84, 0x8f87, 0x8f8b, +94, 0x6a21, +0x8f8d, 0x8f8e, 0x8f8f, 0x8f98, 0x8f9a, 0x8ece, 0x620b, 0x6217, +0x621b, 0x621f, 0x6222, 0x6221, 0x6225, 0x6224, 0x622c, 0x81e7, +0x74ef, 0x74f4, 0x74ff, 0x750f, 0x7511, 0x7513, 0x6534, 0x65ee, +0x65ef, 0x65f0, 0x660a, 0x6619, 0x6772, 0x6603, 0x6615, 0x6600, +0x7085, 0x66f7, 0x661d, 0x6634, 0x6631, 0x6636, 0x6635, 0x8006, +0x665f, 0x6654, 0x6641, 0x664f, 0x6656, 0x6661, 0x6657, 0x6677, +0x6684, 0x668c, 0x66a7, 0x669d, 0x66be, 0x66db, 0x66dc, 0x66e6, +0x66e9, 0x8d32, 0x8d33, 0x8d36, 0x8d3b, 0x8d3d, 0x8d40, 0x8d45, +0x8d46, 0x8d48, 0x8d49, 0x8d47, 0x8d4d, 0x8d55, 0x8d59, 0x89c7, +0x89ca, 0x89cb, 0x89cc, 0x89ce, 0x89cf, 0x89d0, 0x89d1, 0x726e, +0x729f, 0x725d, 0x7266, 0x726f, 0x727e, 0x727f, 0x7284, 0x728b, +0x728d, 0x728f, 0x7292, 0x6308, 0x6332, 0x63b0, +94, 0x6b21, +0x643f, 0x64d8, 0x8004, 0x6bea, 0x6bf3, 0x6bfd, 0x6bf5, 0x6bf9, +0x6c05, 0x6c07, 0x6c06, 0x6c0d, 0x6c15, 0x6c18, 0x6c19, 0x6c1a, +0x6c21, 0x6c29, 0x6c24, 0x6c2a, 0x6c32, 0x6535, 0x6555, 0x656b, +0x724d, 0x7252, 0x7256, 0x7230, 0x8662, 0x5216, 0x809f, 0x809c, +0x8093, 0x80bc, 0x670a, 0x80bd, 0x80b1, 0x80ab, 0x80ad, 0x80b4, +0x80b7, 0x80e7, 0x80e8, 0x80e9, 0x80ea, 0x80db, 0x80c2, 0x80c4, +0x80d9, 0x80cd, 0x80d7, 0x6710, 0x80dd, 0x80eb, 0x80f1, 0x80f4, +0x80ed, 0x810d, 0x810e, 0x80f2, 0x80fc, 0x6715, 0x8112, 0x8c5a, +0x8136, 0x811e, 0x812c, 0x8118, 0x8132, 0x8148, 0x814c, 0x8153, +0x8174, 0x8159, 0x815a, 0x8171, 0x8160, 0x8169, 0x817c, 0x817d, +0x816d, 0x8167, 0x584d, 0x5ab5, 0x8188, 0x8182, 0x8191, 0x6ed5, +0x81a3, 0x81aa, 0x81cc, 0x6726, 0x81ca, 0x81bb, +94, 0x6c21, +0x81c1, 0x81a6, 0x6b24, 0x6b37, 0x6b39, 0x6b43, 0x6b46, 0x6b59, +0x98d1, 0x98d2, 0x98d3, 0x98d5, 0x98d9, 0x98da, 0x6bb3, 0x5f40, +0x6bc2, 0x89f3, 0x6590, 0x9f51, 0x6593, 0x65bc, 0x65c6, 0x65c4, +0x65c3, 0x65cc, 0x65ce, 0x65d2, 0x65d6, 0x7080, 0x709c, 0x7096, +0x709d, 0x70bb, 0x70c0, 0x70b7, 0x70ab, 0x70b1, 0x70e8, 0x70ca, +0x7110, 0x7113, 0x7116, 0x712f, 0x7131, 0x7173, 0x715c, 0x7168, +0x7145, 0x7172, 0x714a, 0x7178, 0x717a, 0x7198, 0x71b3, 0x71b5, +0x71a8, 0x71a0, 0x71e0, 0x71d4, 0x71e7, 0x71f9, 0x721d, 0x7228, +0x706c, 0x7118, 0x7166, 0x71b9, 0x623e, 0x623d, 0x6243, 0x6248, +0x6249, 0x793b, 0x7940, 0x7946, 0x7949, 0x795b, 0x795c, 0x7953, +0x795a, 0x7962, 0x7957, 0x7960, 0x796f, 0x7967, 0x797a, 0x7985, +0x798a, 0x799a, 0x79a7, 0x79b3, 0x5fd1, 0x5fd0, +94, 0x6d21, +0x603c, 0x605d, 0x605a, 0x6067, 0x6041, 0x6059, 0x6063, 0x60ab, +0x6106, 0x610d, 0x615d, 0x61a9, 0x619d, 0x61cb, 0x61d1, 0x6206, +0x8080, 0x807f, 0x6c93, 0x6cf6, 0x6dfc, 0x77f6, 0x77f8, 0x7800, +0x7809, 0x7817, 0x7818, 0x7811, 0x65ab, 0x782d, 0x781c, 0x781d, +0x7839, 0x783a, 0x783b, 0x781f, 0x783c, 0x7825, 0x782c, 0x7823, +0x7829, 0x784e, 0x786d, 0x7856, 0x7857, 0x7826, 0x7850, 0x7847, +0x784c, 0x786a, 0x789b, 0x7893, 0x789a, 0x7887, 0x789c, 0x78a1, +0x78a3, 0x78b2, 0x78b9, 0x78a5, 0x78d4, 0x78d9, 0x78c9, 0x78ec, +0x78f2, 0x7905, 0x78f4, 0x7913, 0x7924, 0x791e, 0x7934, 0x9f9b, +0x9ef9, 0x9efb, 0x9efc, 0x76f1, 0x7704, 0x770d, 0x76f9, 0x7707, +0x7708, 0x771a, 0x7722, 0x7719, 0x772d, 0x7726, 0x7735, 0x7738, +0x7750, 0x7751, 0x7747, 0x7743, 0x775a, 0x7768, +94, 0x6e21, +0x7762, 0x7765, 0x777f, 0x778d, 0x777d, 0x7780, 0x778c, 0x7791, +0x779f, 0x77a0, 0x77b0, 0x77b5, 0x77bd, 0x753a, 0x7540, 0x754e, +0x754b, 0x7548, 0x755b, 0x7572, 0x7579, 0x7583, 0x7f58, 0x7f61, +0x7f5f, 0x8a48, 0x7f68, 0x7f74, 0x7f71, 0x7f79, 0x7f81, 0x7f7e, +0x76cd, 0x76e5, 0x8832, 0x9485, 0x9486, 0x9487, 0x948b, 0x948a, +0x948c, 0x948d, 0x948f, 0x9490, 0x9494, 0x9497, 0x9495, 0x949a, +0x949b, 0x949c, 0x94a3, 0x94a4, 0x94ab, 0x94aa, 0x94ad, 0x94ac, +0x94af, 0x94b0, 0x94b2, 0x94b4, 0x94b6, 0x94b7, 0x94b8, 0x94b9, +0x94ba, 0x94bc, 0x94bd, 0x94bf, 0x94c4, 0x94c8, 0x94c9, 0x94ca, +0x94cb, 0x94cc, 0x94cd, 0x94ce, 0x94d0, 0x94d1, 0x94d2, 0x94d5, +0x94d6, 0x94d7, 0x94d9, 0x94d8, 0x94db, 0x94de, 0x94df, 0x94e0, +0x94e2, 0x94e4, 0x94e5, 0x94e7, 0x94e8, 0x94ea, +94, 0x6f21, +0x94e9, 0x94eb, 0x94ee, 0x94ef, 0x94f3, 0x94f4, 0x94f5, 0x94f7, +0x94f9, 0x94fc, 0x94fd, 0x94ff, 0x9503, 0x9502, 0x9506, 0x9507, +0x9509, 0x950a, 0x950d, 0x950e, 0x950f, 0x9512, 0x9513, 0x9514, +0x9515, 0x9516, 0x9518, 0x951b, 0x951d, 0x951e, 0x951f, 0x9522, +0x952a, 0x952b, 0x9529, 0x952c, 0x9531, 0x9532, 0x9534, 0x9536, +0x9537, 0x9538, 0x953c, 0x953e, 0x953f, 0x9542, 0x9535, 0x9544, +0x9545, 0x9546, 0x9549, 0x954c, 0x954e, 0x954f, 0x9552, 0x9553, +0x9554, 0x9556, 0x9557, 0x9558, 0x9559, 0x955b, 0x955e, 0x955f, +0x955d, 0x9561, 0x9562, 0x9564, 0x9565, 0x9566, 0x9567, 0x9568, +0x9569, 0x956a, 0x956b, 0x956c, 0x956f, 0x9571, 0x9572, 0x9573, +0x953a, 0x77e7, 0x77ec, 0x96c9, 0x79d5, 0x79ed, 0x79e3, 0x79eb, +0x7a06, 0x5d47, 0x7a03, 0x7a02, 0x7a1e, 0x7a14, +94, 0x7021, +0x7a39, 0x7a37, 0x7a51, 0x9ecf, 0x99a5, 0x7a70, 0x7688, 0x768e, +0x7693, 0x7699, 0x76a4, 0x74de, 0x74e0, 0x752c, 0x9e20, 0x9e22, +0x9e28, 0x9e29, 0x9e2a, 0x9e2b, 0x9e2c, 0x9e32, 0x9e31, 0x9e36, +0x9e38, 0x9e37, 0x9e39, 0x9e3a, 0x9e3e, 0x9e41, 0x9e42, 0x9e44, +0x9e46, 0x9e47, 0x9e48, 0x9e49, 0x9e4b, 0x9e4c, 0x9e4e, 0x9e51, +0x9e55, 0x9e57, 0x9e5a, 0x9e5b, 0x9e5c, 0x9e5e, 0x9e63, 0x9e66, +0x9e67, 0x9e68, 0x9e69, 0x9e6a, 0x9e6b, 0x9e6c, 0x9e71, 0x9e6d, +0x9e73, 0x7592, 0x7594, 0x7596, 0x75a0, 0x759d, 0x75ac, 0x75a3, +0x75b3, 0x75b4, 0x75b8, 0x75c4, 0x75b1, 0x75b0, 0x75c3, 0x75c2, +0x75d6, 0x75cd, 0x75e3, 0x75e8, 0x75e6, 0x75e4, 0x75eb, 0x75e7, +0x7603, 0x75f1, 0x75fc, 0x75ff, 0x7610, 0x7600, 0x7605, 0x760c, +0x7617, 0x760a, 0x7625, 0x7618, 0x7615, 0x7619, +94, 0x7121, +0x761b, 0x763c, 0x7622, 0x7620, 0x7640, 0x762d, 0x7630, 0x763f, +0x7635, 0x7643, 0x763e, 0x7633, 0x764d, 0x765e, 0x7654, 0x765c, +0x7656, 0x766b, 0x766f, 0x7fca, 0x7ae6, 0x7a78, 0x7a79, 0x7a80, +0x7a86, 0x7a88, 0x7a95, 0x7aa6, 0x7aa0, 0x7aac, 0x7aa8, 0x7aad, +0x7ab3, 0x8864, 0x8869, 0x8872, 0x887d, 0x887f, 0x8882, 0x88a2, +0x88c6, 0x88b7, 0x88bc, 0x88c9, 0x88e2, 0x88ce, 0x88e3, 0x88e5, +0x88f1, 0x891a, 0x88fc, 0x88e8, 0x88fe, 0x88f0, 0x8921, 0x8919, +0x8913, 0x891b, 0x890a, 0x8934, 0x892b, 0x8936, 0x8941, 0x8966, +0x897b, 0x758b, 0x80e5, 0x76b2, 0x76b4, 0x77dc, 0x8012, 0x8014, +0x8016, 0x801c, 0x8020, 0x8022, 0x8025, 0x8026, 0x8027, 0x8029, +0x8028, 0x8031, 0x800b, 0x8035, 0x8043, 0x8046, 0x804d, 0x8052, +0x8069, 0x8071, 0x8983, 0x9878, 0x9880, 0x9883, +94, 0x7221, +0x9889, 0x988c, 0x988d, 0x988f, 0x9894, 0x989a, 0x989b, 0x989e, +0x989f, 0x98a1, 0x98a2, 0x98a5, 0x98a6, 0x864d, 0x8654, 0x866c, +0x866e, 0x867f, 0x867a, 0x867c, 0x867b, 0x86a8, 0x868d, 0x868b, +0x86ac, 0x869d, 0x86a7, 0x86a3, 0x86aa, 0x8693, 0x86a9, 0x86b6, +0x86c4, 0x86b5, 0x86ce, 0x86b0, 0x86ba, 0x86b1, 0x86af, 0x86c9, +0x86cf, 0x86b4, 0x86e9, 0x86f1, 0x86f2, 0x86ed, 0x86f3, 0x86d0, +0x8713, 0x86de, 0x86f4, 0x86df, 0x86d8, 0x86d1, 0x8703, 0x8707, +0x86f8, 0x8708, 0x870a, 0x870d, 0x8709, 0x8723, 0x873b, 0x871e, +0x8725, 0x872e, 0x871a, 0x873e, 0x8748, 0x8734, 0x8731, 0x8729, +0x8737, 0x873f, 0x8782, 0x8722, 0x877d, 0x877e, 0x877b, 0x8760, +0x8770, 0x874c, 0x876e, 0x878b, 0x8753, 0x8763, 0x877c, 0x8764, +0x8759, 0x8765, 0x8793, 0x87af, 0x87a8, 0x87d2, +94, 0x7321, +0x87c6, 0x8788, 0x8785, 0x87ad, 0x8797, 0x8783, 0x87ab, 0x87e5, +0x87ac, 0x87b5, 0x87b3, 0x87cb, 0x87d3, 0x87bd, 0x87d1, 0x87c0, +0x87ca, 0x87db, 0x87ea, 0x87e0, 0x87ee, 0x8816, 0x8813, 0x87fe, +0x880a, 0x881b, 0x8821, 0x8839, 0x883c, 0x7f36, 0x7f42, 0x7f44, +0x7f45, 0x8210, 0x7afa, 0x7afd, 0x7b08, 0x7b03, 0x7b04, 0x7b15, +0x7b0a, 0x7b2b, 0x7b0f, 0x7b47, 0x7b38, 0x7b2a, 0x7b19, 0x7b2e, +0x7b31, 0x7b20, 0x7b25, 0x7b24, 0x7b33, 0x7b3e, 0x7b1e, 0x7b58, +0x7b5a, 0x7b45, 0x7b75, 0x7b4c, 0x7b5d, 0x7b60, 0x7b6e, 0x7b7b, +0x7b62, 0x7b72, 0x7b71, 0x7b90, 0x7ba6, 0x7ba7, 0x7bb8, 0x7bac, +0x7b9d, 0x7ba8, 0x7b85, 0x7baa, 0x7b9c, 0x7ba2, 0x7bab, 0x7bb4, +0x7bd1, 0x7bc1, 0x7bcc, 0x7bdd, 0x7bda, 0x7be5, 0x7be6, 0x7bea, +0x7c0c, 0x7bfe, 0x7bfc, 0x7c0f, 0x7c16, 0x7c0b, +94, 0x7421, +0x7c1f, 0x7c2a, 0x7c26, 0x7c38, 0x7c41, 0x7c40, 0x81fe, 0x8201, +0x8202, 0x8204, 0x81ec, 0x8844, 0x8221, 0x8222, 0x8223, 0x822d, +0x822f, 0x8228, 0x822b, 0x8238, 0x823b, 0x8233, 0x8234, 0x823e, +0x8244, 0x8249, 0x824b, 0x824f, 0x825a, 0x825f, 0x8268, 0x887e, +0x8885, 0x8888, 0x88d8, 0x88df, 0x895e, 0x7f9d, 0x7f9f, 0x7fa7, +0x7faf, 0x7fb0, 0x7fb2, 0x7c7c, 0x6549, 0x7c91, 0x7c9d, 0x7c9c, +0x7c9e, 0x7ca2, 0x7cb2, 0x7cbc, 0x7cbd, 0x7cc1, 0x7cc7, 0x7ccc, +0x7ccd, 0x7cc8, 0x7cc5, 0x7cd7, 0x7ce8, 0x826e, 0x66a8, 0x7fbf, +0x7fce, 0x7fd5, 0x7fe5, 0x7fe1, 0x7fe6, 0x7fe9, 0x7fee, 0x7ff3, +0x7cf8, 0x7d77, 0x7da6, 0x7dae, 0x7e47, 0x7e9b, 0x9eb8, 0x9eb4, +0x8d73, 0x8d84, 0x8d94, 0x8d91, 0x8db1, 0x8d67, 0x8d6d, 0x8c47, +0x8c49, 0x914a, 0x9150, 0x914e, 0x914f, 0x9164, +94, 0x7521, +0x9162, 0x9161, 0x9170, 0x9169, 0x916f, 0x917d, 0x917e, 0x9172, +0x9174, 0x9179, 0x918c, 0x9185, 0x9190, 0x918d, 0x9191, 0x91a2, +0x91a3, 0x91aa, 0x91ad, 0x91ae, 0x91af, 0x91b5, 0x91b4, 0x91ba, +0x8c55, 0x9e7e, 0x8db8, 0x8deb, 0x8e05, 0x8e59, 0x8e69, 0x8db5, +0x8dbf, 0x8dbc, 0x8dba, 0x8dc4, 0x8dd6, 0x8dd7, 0x8dda, 0x8dde, +0x8dce, 0x8dcf, 0x8ddb, 0x8dc6, 0x8dec, 0x8df7, 0x8df8, 0x8de3, +0x8df9, 0x8dfb, 0x8de4, 0x8e09, 0x8dfd, 0x8e14, 0x8e1d, 0x8e1f, +0x8e2c, 0x8e2e, 0x8e23, 0x8e2f, 0x8e3a, 0x8e40, 0x8e39, 0x8e35, +0x8e3d, 0x8e31, 0x8e49, 0x8e41, 0x8e42, 0x8e51, 0x8e52, 0x8e4a, +0x8e70, 0x8e76, 0x8e7c, 0x8e6f, 0x8e74, 0x8e85, 0x8e8f, 0x8e94, +0x8e90, 0x8e9c, 0x8e9e, 0x8c78, 0x8c82, 0x8c8a, 0x8c85, 0x8c98, +0x8c94, 0x659b, 0x89d6, 0x89de, 0x89da, 0x89dc, +94, 0x7621, +0x89e5, 0x89eb, 0x89ef, 0x8a3e, 0x8b26, 0x9753, 0x96e9, 0x96f3, +0x96ef, 0x9706, 0x9701, 0x9708, 0x970f, 0x970e, 0x972a, 0x972d, +0x9730, 0x973e, 0x9f80, 0x9f83, 0x9f85, 0x9f86, 0x9f87, 0x9f88, +0x9f89, 0x9f8a, 0x9f8c, 0x9efe, 0x9f0b, 0x9f0d, 0x96b9, 0x96bc, +0x96bd, 0x96ce, 0x96d2, 0x77bf, 0x96e0, 0x928e, 0x92ae, 0x92c8, +0x933e, 0x936a, 0x93ca, 0x938f, 0x943e, 0x946b, 0x9c7f, 0x9c82, +0x9c85, 0x9c86, 0x9c87, 0x9c88, 0x7a23, 0x9c8b, 0x9c8e, 0x9c90, +0x9c91, 0x9c92, 0x9c94, 0x9c95, 0x9c9a, 0x9c9b, 0x9c9e, 0x9c9f, +0x9ca0, 0x9ca1, 0x9ca2, 0x9ca3, 0x9ca5, 0x9ca6, 0x9ca7, 0x9ca8, +0x9ca9, 0x9cab, 0x9cad, 0x9cae, 0x9cb0, 0x9cb1, 0x9cb2, 0x9cb3, +0x9cb4, 0x9cb5, 0x9cb6, 0x9cb7, 0x9cba, 0x9cbb, 0x9cbc, 0x9cbd, +0x9cc4, 0x9cc5, 0x9cc6, 0x9cc7, 0x9cca, 0x9ccb, +94, 0x7721, +0x9ccc, 0x9ccd, 0x9cce, 0x9ccf, 0x9cd0, 0x9cd3, 0x9cd4, 0x9cd5, +0x9cd7, 0x9cd8, 0x9cd9, 0x9cdc, 0x9cdd, 0x9cdf, 0x9ce2, 0x977c, +0x9785, 0x9791, 0x9792, 0x9794, 0x97af, 0x97ab, 0x97a3, 0x97b2, +0x97b4, 0x9ab1, 0x9ab0, 0x9ab7, 0x9e58, 0x9ab6, 0x9aba, 0x9abc, +0x9ac1, 0x9ac0, 0x9ac5, 0x9ac2, 0x9acb, 0x9acc, 0x9ad1, 0x9b45, +0x9b43, 0x9b47, 0x9b49, 0x9b48, 0x9b4d, 0x9b51, 0x98e8, 0x990d, +0x992e, 0x9955, 0x9954, 0x9adf, 0x9ae1, 0x9ae6, 0x9aef, 0x9aeb, +0x9afb, 0x9aed, 0x9af9, 0x9b08, 0x9b0f, 0x9b13, 0x9b1f, 0x9b23, +0x9ebd, 0x9ebe, 0x7e3b, 0x9e82, 0x9e87, 0x9e88, 0x9e8b, 0x9e92, +0x93d6, 0x9e9d, 0x9e9f, 0x9edb, 0x9edc, 0x9edd, 0x9ee0, 0x9edf, +0x9ee2, 0x9ee9, 0x9ee7, 0x9ee5, 0x9eea, 0x9eef, 0x9f22, 0x9f2c, +0x9f2f, 0x9f39, 0x9f37, 0x9f3d, 0x9f3e, 0x9f44, +0 diff --git a/lib/iso646-jis.h b/lib/iso646-jis.h new file mode 100644 index 0000000..b708d2e --- /dev/null +++ b/lib/iso646-jis.h @@ -0,0 +1,14 @@ +96, 0x0020, +0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, +0x0028, 0x0029, 0x002a, 0x002b, 0x002c, 0x002d, 0x002e, 0x002f, +0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, +0x0038, 0x0039, 0x003a, 0x003b, 0x003c, 0x003d, 0x003e, 0x003f, +0x0040, 0x0041, 0x0042, 0x0043, 0x0044, 0x0045, 0x0046, 0x0047, +0x0048, 0x0049, 0x004a, 0x004b, 0x004c, 0x004d, 0x004e, 0x004f, +0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057, +0x0058, 0x0059, 0x005a, 0x005b, 0x00a5, 0x005d, 0x005e, 0x005f, +0x0060, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067, +0x0068, 0x0069, 0x006a, 0x006b, 0x006c, 0x006d, 0x006e, 0x006f, +0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077, +0x0078, 0x0079, 0x007a, 0x007b, 0x007c, 0x007d, 0x203e, 0x007f, +0 diff --git a/lib/iso8859-2.h b/lib/iso8859-2.h new file mode 100644 index 0000000..1c4dcd2 --- /dev/null +++ b/lib/iso8859-2.h @@ -0,0 +1,15 @@ +/* ISO 8859-2 */ +96, 0x0020, +0x00a0, 0x0104, 0x02d8, 0x0141, 0x00a4, 0x013d, 0x015a, 0x00a7, +0x00a8, 0x0160, 0x015e, 0x0164, 0x0179, 0x00ad, 0x017d, 0x017b, +0x00b0, 0x0105, 0x02db, 0x0142, 0x00b4, 0x013e, 0x015b, 0x02c7, +0x00b8, 0x0161, 0x015f, 0x0165, 0x017a, 0x02dd, 0x017e, 0x017c, +0x0154, 0x00c1, 0x00c2, 0x0102, 0x00c4, 0x0139, 0x0106, 0x00c7, +0x010c, 0x00c9, 0x0118, 0x00cb, 0x011a, 0x00cd, 0x00ce, 0x010e, +0x0110, 0x0143, 0x0147, 0x00d3, 0x00d4, 0x0150, 0x00d6, 0x00d7, +0x0158, 0x016e, 0x00da, 0x0170, 0x00dc, 0x00dd, 0x0162, 0x00df, +0x0155, 0x00e1, 0x00e2, 0x0103, 0x00e4, 0x013a, 0x0107, 0x00e7, +0x010d, 0x00e9, 0x0119, 0x00eb, 0x011b, 0x00ed, 0x00ee, 0x010f, +0x0111, 0x0144, 0x0148, 0x00f3, 0x00f4, 0x0151, 0x00f6, 0x00f7, +0x0159, 0x016f, 0x00fa, 0x0171, 0x00fc, 0x00fd, 0x0163, 0x02d9, +0 diff --git a/lib/iso8859-3.h b/lib/iso8859-3.h new file mode 100644 index 0000000..e3d9152 --- /dev/null +++ b/lib/iso8859-3.h @@ -0,0 +1,24 @@ +/* ISO 8859-3 */ +5, 0x0020, +0x00a0, 0x0126, 0x02d8, 0x00a3, 0x00a4, +8, 0x0026, +0x0124, 0x00a7, 0x00a8, 0x0130, 0x015e, 0x011e, 0x0134, 0x00ad, +15, 0x002f, +0x017b, 0x00b0, 0x0127, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x0125, +0x00b7, 0x00b8, 0x0131, 0x015f, 0x011f, 0x0135, 0x00bd, +4, 0x003f, +0x017c, 0x00c0, 0x00c1, 0x00c2, +12, 0x0044, +0x00c4, 0x010a, 0x0108, 0x00c7, 0x00c8, 0x00c9, 0x00ca, 0x00cb, +0x00cc, 0x00cd, 0x00ce, 0x00cf, +18, 0x0051, +0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x0120, 0x00d6, 0x00d7, 0x011c, +0x00d9, 0x00da, 0x00db, 0x00dc, 0x016c, 0x015c, 0x00df, 0x00e0, +0x00e1, 0x00e2, +12, 0x0064, +0x00e4, 0x010b, 0x0109, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, +0x00ec, 0x00ed, 0x00ee, 0x00ef, +15, 0x0071, +0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x0121, 0x00f6, 0x00f7, 0x011d, +0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x016d, 0x015d, 0x02d9, +0 diff --git a/lib/iso8859-4.h b/lib/iso8859-4.h new file mode 100644 index 0000000..3fa1fa6 --- /dev/null +++ b/lib/iso8859-4.h @@ -0,0 +1,15 @@ +/* ISO 8859-4 */ +96, 0x0020, +0x00a0, 0x0104, 0x0138, 0x0156, 0x00a4, 0x0128, 0x013b, 0x00a7, +0x00a8, 0x0160, 0x0112, 0x0122, 0x0166, 0x00ad, 0x017d, 0x00af, +0x00b0, 0x0105, 0x02db, 0x0157, 0x00b4, 0x0129, 0x013c, 0x02c7, +0x00b8, 0x0161, 0x0113, 0x0123, 0x0167, 0x014a, 0x017e, 0x014b, +0x0100, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x012e, +0x010c, 0x00c9, 0x0118, 0x00cb, 0x0116, 0x00cd, 0x00ce, 0x012a, +0x0110, 0x0145, 0x014c, 0x0136, 0x00d4, 0x00d5, 0x00d6, 0x00d7, +0x00d8, 0x0172, 0x00da, 0x00db, 0x00dc, 0x0168, 0x016a, 0x00df, +0x0101, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x012f, +0x010d, 0x00e9, 0x0119, 0x00eb, 0x0117, 0x00ed, 0x00ee, 0x012b, +0x0111, 0x0146, 0x014d, 0x0137, 0x00f4, 0x00f5, 0x00f6, 0x00f7, +0x00f8, 0x0173, 0x00fa, 0x00fb, 0x00fc, 0x0169, 0x016b, 0x02d9, +0 diff --git a/lib/iso8859-5.h b/lib/iso8859-5.h new file mode 100644 index 0000000..63265a5 --- /dev/null +++ b/lib/iso8859-5.h @@ -0,0 +1,15 @@ +/* ISO 8859-5 */ +96, 0x0020, +0x00a0, 0x0401, 0x0402, 0x0403, 0x0404, 0x0405, 0x0406, 0x0407, +0x0408, 0x0409, 0x040a, 0x040b, 0x040c, 0x00ad, 0x040e, 0x040f, +0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, +0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, +0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, +0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, 0x042f, +0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, +0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, 0x043f, +0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, +0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x044f, +0x2116, 0x0451, 0x0452, 0x0453, 0x0454, 0x0455, 0x0456, 0x0457, +0x0458, 0x0459, 0x045a, 0x045b, 0x045c, 0x00a7, 0x045e, 0x045f, +0 diff --git a/lib/iso8859-6.h b/lib/iso8859-6.h new file mode 100644 index 0000000..8b6e430 --- /dev/null +++ b/lib/iso8859-6.h @@ -0,0 +1,21 @@ +/* ISO 8859-6 */ +1, 0x0020, +0x00a0, +1, 0x0024, +0x00a4, +2, 0x002c, +0x060c, 0x00ad, +1, 0x003b, +0x061b, +1, 0x003f, +0x061f, +26, 0x0041, +0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, 0x0628, +0x0629, 0x062a, 0x062b, 0x062c, 0x062d, 0x062e, 0x062f, 0x0630, +0x0631, 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x0637, 0x0638, +0x0639, 0x063a, +19, 0x0060, +0x0640, 0x0641, 0x0642, 0x0643, 0x0644, 0x0645, 0x0646, 0x0647, +0x0648, 0x0649, 0x064a, 0x064b, 0x064c, 0x064d, 0x064e, 0x064f, +0x0650, 0x0651, 0x0652, +0 diff --git a/lib/iso8859-7.h b/lib/iso8859-7.h new file mode 100644 index 0000000..b3ccbdf --- /dev/null +++ b/lib/iso8859-7.h @@ -0,0 +1,21 @@ +/* ISO 8859-7 */ +4, 0x0020, +0x00a0, 0x02bd, 0x02bc, 0x00a3, +4, 0x0026, +0x00a6, 0x00a7, 0x00a8, 0x00a9, +3, 0x002b, +0x00ab, 0x00ac, 0x00ad, +35, 0x002f, +0x2015, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x0384, 0x0385, 0x0386, +0x00b7, 0x0388, 0x0389, 0x038a, 0x00bb, 0x038c, 0x00bd, 0x038e, +0x038f, 0x0390, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, +0x0397, 0x0398, 0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, +0x039f, 0x03a0, 0x03a1, +44, 0x0053, +0x03a3, 0x03a4, 0x03a5, 0x03a6, 0x03a7, 0x03a8, 0x03a9, 0x03aa, +0x03ab, 0x03ac, 0x03ad, 0x03ae, 0x03af, 0x03b0, 0x03b1, 0x03b2, +0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, 0x03b8, 0x03b9, 0x03ba, +0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, 0x03c0, 0x03c1, 0x03c2, +0x03c3, 0x03c4, 0x03c5, 0x03c6, 0x03c7, 0x03c8, 0x03c9, 0x03ca, +0x03cb, 0x03cc, 0x03cd, 0x03ce, +0 diff --git a/lib/iso8859-8.h b/lib/iso8859-8.h new file mode 100644 index 0000000..608c08d --- /dev/null +++ b/lib/iso8859-8.h @@ -0,0 +1,14 @@ +/* ISO 8859-8 */ +1, 0x0020, +0x00a0, +29, 0x0022, +0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, 0x00a8, 0x00a9, +0x00d7, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x203e, 0x00b0, 0x00b1, +0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, 0x00b8, 0x00b9, +0x00f7, 0x00bb, 0x00bc, 0x00bd, 0x00be, +28, 0x005f, +0x2017, 0x05d0, 0x05d1, 0x05d2, 0x05d3, 0x05d4, 0x05d5, 0x05d6, +0x05d7, 0x05d8, 0x05d9, 0x05da, 0x05db, 0x05dc, 0x05dd, 0x05de, +0x05df, 0x05e0, 0x05e1, 0x05e2, 0x05e3, 0x05e4, 0x05e5, 0x05e6, +0x05e7, 0x05e8, 0x05e9, 0x05ea, +0 diff --git a/lib/iso8859-9.h b/lib/iso8859-9.h new file mode 100644 index 0000000..81886c9 --- /dev/null +++ b/lib/iso8859-9.h @@ -0,0 +1,15 @@ +/* ISO 8859-9 */ +96, 0x0020, +0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, +0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, +0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, +0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, +0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7, +0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf, +0x011e, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7, +0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x0130, 0x015e, 0x00df, +0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7, +0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef, +0x011f, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7, +0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0131, 0x015f, 0x00ff, +0 diff --git a/lib/jis0201.h b/lib/jis0201.h new file mode 100644 index 0000000..e74975d --- /dev/null +++ b/lib/jis0201.h @@ -0,0 +1,10 @@ +63, 0x0021, +0xff61, 0xff62, 0xff63, 0xff64, 0xff65, 0xff66, 0xff67, 0xff68, +0xff69, 0xff6a, 0xff6b, 0xff6c, 0xff6d, 0xff6e, 0xff6f, 0xff70, +0xff71, 0xff72, 0xff73, 0xff74, 0xff75, 0xff76, 0xff77, 0xff78, +0xff79, 0xff7a, 0xff7b, 0xff7c, 0xff7d, 0xff7e, 0xff7f, 0xff80, +0xff81, 0xff82, 0xff83, 0xff84, 0xff85, 0xff86, 0xff87, 0xff88, +0xff89, 0xff8a, 0xff8b, 0xff8c, 0xff8d, 0xff8e, 0xff8f, 0xff90, +0xff91, 0xff92, 0xff93, 0xff94, 0xff95, 0xff96, 0xff97, 0xff98, +0xff99, 0xff9a, 0xff9b, 0xff9c, 0xff9d, 0xff9e, 0xff9f, +0 diff --git a/lib/jis0208.h b/lib/jis0208.h new file mode 100644 index 0000000..685553a --- /dev/null +++ b/lib/jis0208.h @@ -0,0 +1,971 @@ +94, 0x2121, +0x3000, 0x3001, 0x3002, 0xff0c, 0xff0e, 0x30fb, 0xff1a, 0xff1b, +0xff1f, 0xff01, 0x309b, 0x309c, 0x00b4, 0xff40, 0x00a8, 0xff3e, +0xffe3, 0xff3f, 0x30fd, 0x30fe, 0x309d, 0x309e, 0x3003, 0x4edd, +0x3005, 0x3006, 0x3007, 0x30fc, 0x2015, 0x2010, 0xff0f, 0x005c, +0x301c, 0x2016, 0xff5c, 0x2026, 0x2025, 0x2018, 0x2019, 0x201c, +0x201d, 0xff08, 0xff09, 0x3014, 0x3015, 0xff3b, 0xff3d, 0xff5b, +0xff5d, 0x3008, 0x3009, 0x300a, 0x300b, 0x300c, 0x300d, 0x300e, +0x300f, 0x3010, 0x3011, 0xff0b, 0x2212, 0x00b1, 0x00d7, 0x00f7, +0xff1d, 0x2260, 0xff1c, 0xff1e, 0x2266, 0x2267, 0x221e, 0x2234, +0x2642, 0x2640, 0x00b0, 0x2032, 0x2033, 0x2103, 0xffe5, 0xff04, +0x00a2, 0x00a3, 0xff05, 0xff03, 0xff06, 0xff0a, 0xff20, 0x00a7, +0x2606, 0x2605, 0x25cb, 0x25cf, 0x25ce, 0x25c7, +14, 0x2221, +0x25c6, 0x25a1, 0x25a0, 0x25b3, 0x25b2, 0x25bd, 0x25bc, 0x203b, +0x3012, 0x2192, 0x2190, 0x2191, 0x2193, 0x3013, +8, 0x223a, +0x2208, 0x220b, 0x2286, 0x2287, 0x2282, 0x2283, 0x222a, 0x2229, +7, 0x224a, +0x2227, 0x2228, 0x00ac, 0x21d2, 0x21d4, 0x2200, 0x2203, +15, 0x225c, +0x2220, 0x22a5, 0x2312, 0x2202, 0x2207, 0x2261, 0x2252, 0x226a, +0x226b, 0x221a, 0x223d, 0x221d, 0x2235, 0x222b, 0x222c, +8, 0x2272, +0x212b, 0x2030, 0x266f, 0x266d, 0x266a, 0x2020, 0x2021, 0x00b6, +1, 0x227e, +0x25ef, +10, 0x2330, +0xff10, 0xff11, 0xff12, 0xff13, 0xff14, 0xff15, 0xff16, 0xff17, +0xff18, 0xff19, +26, 0x2341, +0xff21, 0xff22, 0xff23, 0xff24, 0xff25, 0xff26, 0xff27, 0xff28, +0xff29, 0xff2a, 0xff2b, 0xff2c, 0xff2d, 0xff2e, 0xff2f, 0xff30, +0xff31, 0xff32, 0xff33, 0xff34, 0xff35, 0xff36, 0xff37, 0xff38, +0xff39, 0xff3a, +26, 0x2361, +0xff41, 0xff42, 0xff43, 0xff44, 0xff45, 0xff46, 0xff47, 0xff48, +0xff49, 0xff4a, 0xff4b, 0xff4c, 0xff4d, 0xff4e, 0xff4f, 0xff50, +0xff51, 0xff52, 0xff53, 0xff54, 0xff55, 0xff56, 0xff57, 0xff58, +0xff59, 0xff5a, +83, 0x2421, +0x3041, 0x3042, 0x3043, 0x3044, 0x3045, 0x3046, 0x3047, 0x3048, +0x3049, 0x304a, 0x304b, 0x304c, 0x304d, 0x304e, 0x304f, 0x3050, +0x3051, 0x3052, 0x3053, 0x3054, 0x3055, 0x3056, 0x3057, 0x3058, +0x3059, 0x305a, 0x305b, 0x305c, 0x305d, 0x305e, 0x305f, 0x3060, +0x3061, 0x3062, 0x3063, 0x3064, 0x3065, 0x3066, 0x3067, 0x3068, +0x3069, 0x306a, 0x306b, 0x306c, 0x306d, 0x306e, 0x306f, 0x3070, +0x3071, 0x3072, 0x3073, 0x3074, 0x3075, 0x3076, 0x3077, 0x3078, +0x3079, 0x307a, 0x307b, 0x307c, 0x307d, 0x307e, 0x307f, 0x3080, +0x3081, 0x3082, 0x3083, 0x3084, 0x3085, 0x3086, 0x3087, 0x3088, +0x3089, 0x308a, 0x308b, 0x308c, 0x308d, 0x308e, 0x308f, 0x3090, +0x3091, 0x3092, 0x3093, +86, 0x2521, +0x30a1, 0x30a2, 0x30a3, 0x30a4, 0x30a5, 0x30a6, 0x30a7, 0x30a8, +0x30a9, 0x30aa, 0x30ab, 0x30ac, 0x30ad, 0x30ae, 0x30af, 0x30b0, +0x30b1, 0x30b2, 0x30b3, 0x30b4, 0x30b5, 0x30b6, 0x30b7, 0x30b8, +0x30b9, 0x30ba, 0x30bb, 0x30bc, 0x30bd, 0x30be, 0x30bf, 0x30c0, +0x30c1, 0x30c2, 0x30c3, 0x30c4, 0x30c5, 0x30c6, 0x30c7, 0x30c8, +0x30c9, 0x30ca, 0x30cb, 0x30cc, 0x30cd, 0x30ce, 0x30cf, 0x30d0, +0x30d1, 0x30d2, 0x30d3, 0x30d4, 0x30d5, 0x30d6, 0x30d7, 0x30d8, +0x30d9, 0x30da, 0x30db, 0x30dc, 0x30dd, 0x30de, 0x30df, 0x30e0, +0x30e1, 0x30e2, 0x30e3, 0x30e4, 0x30e5, 0x30e6, 0x30e7, 0x30e8, +0x30e9, 0x30ea, 0x30eb, 0x30ec, 0x30ed, 0x30ee, 0x30ef, 0x30f0, +0x30f1, 0x30f2, 0x30f3, 0x30f4, 0x30f5, 0x30f6, +24, 0x2621, +0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, 0x0398, +0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, 0x039f, 0x03a0, +0x03a1, 0x03a3, 0x03a4, 0x03a5, 0x03a6, 0x03a7, 0x03a8, 0x03a9, +24, 0x2641, +0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, 0x03b8, +0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, 0x03c0, +0x03c1, 0x03c3, 0x03c4, 0x03c5, 0x03c6, 0x03c7, 0x03c8, 0x03c9, +33, 0x2721, +0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0401, 0x0416, +0x0417, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, +0x041f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, +0x0427, 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, +0x042f, +33, 0x2751, +0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0451, 0x0436, +0x0437, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, +0x043f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, +0x0447, 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, +0x044f, +32, 0x2821, +0x2500, 0x2502, 0x250c, 0x2510, 0x2518, 0x2514, 0x251c, 0x252c, +0x2524, 0x2534, 0x253c, 0x2501, 0x2503, 0x250f, 0x2513, 0x251b, +0x2517, 0x2523, 0x2533, 0x252b, 0x253b, 0x254b, 0x2520, 0x252f, +0x2528, 0x2537, 0x253f, 0x251d, 0x2530, 0x2525, 0x2538, 0x2542, +94, 0x3021, +0x4e9c, 0x5516, 0x5a03, 0x963f, 0x54c0, 0x611b, 0x6328, 0x59f6, +0x9022, 0x8475, 0x831c, 0x7a50, 0x60aa, 0x63e1, 0x6e25, 0x65ed, +0x8466, 0x82a6, 0x9bf5, 0x6893, 0x5727, 0x65a1, 0x6271, 0x5b9b, +0x59d0, 0x867b, 0x98f4, 0x7d62, 0x7dbe, 0x9b8e, 0x6216, 0x7c9f, +0x88b7, 0x5b89, 0x5eb5, 0x6309, 0x6697, 0x6848, 0x95c7, 0x978d, +0x674f, 0x4ee5, 0x4f0a, 0x4f4d, 0x4f9d, 0x5049, 0x56f2, 0x5937, +0x59d4, 0x5a01, 0x5c09, 0x60df, 0x610f, 0x6170, 0x6613, 0x6905, +0x70ba, 0x754f, 0x7570, 0x79fb, 0x7dad, 0x7def, 0x80c3, 0x840e, +0x8863, 0x8b02, 0x9055, 0x907a, 0x533b, 0x4e95, 0x4ea5, 0x57df, +0x80b2, 0x90c1, 0x78ef, 0x4e00, 0x58f1, 0x6ea2, 0x9038, 0x7a32, +0x8328, 0x828b, 0x9c2f, 0x5141, 0x5370, 0x54bd, 0x54e1, 0x56e0, +0x59fb, 0x5f15, 0x98f2, 0x6deb, 0x80e4, 0x852d, +94, 0x3121, +0x9662, 0x9670, 0x96a0, 0x97fb, 0x540b, 0x53f3, 0x5b87, 0x70cf, +0x7fbd, 0x8fc2, 0x96e8, 0x536f, 0x9d5c, 0x7aba, 0x4e11, 0x7893, +0x81fc, 0x6e26, 0x5618, 0x5504, 0x6b1d, 0x851a, 0x9c3b, 0x59e5, +0x53a9, 0x6d66, 0x74dc, 0x958f, 0x5642, 0x4e91, 0x904b, 0x96f2, +0x834f, 0x990c, 0x53e1, 0x55b6, 0x5b30, 0x5f71, 0x6620, 0x66f3, +0x6804, 0x6c38, 0x6cf3, 0x6d29, 0x745b, 0x76c8, 0x7a4e, 0x9834, +0x82f1, 0x885b, 0x8a60, 0x92ed, 0x6db2, 0x75ab, 0x76ca, 0x99c5, +0x60a6, 0x8b01, 0x8d8a, 0x95b2, 0x698e, 0x53ad, 0x5186, 0x5712, +0x5830, 0x5944, 0x5bb4, 0x5ef6, 0x6028, 0x63a9, 0x63f4, 0x6cbf, +0x6f14, 0x708e, 0x7114, 0x7159, 0x71d5, 0x733f, 0x7e01, 0x8276, +0x82d1, 0x8597, 0x9060, 0x925b, 0x9d1b, 0x5869, 0x65bc, 0x6c5a, +0x7525, 0x51f9, 0x592e, 0x5965, 0x5f80, 0x5fdc, +94, 0x3221, +0x62bc, 0x65fa, 0x6a2a, 0x6b27, 0x6bb4, 0x738b, 0x7fc1, 0x8956, +0x9d2c, 0x9d0e, 0x9ec4, 0x5ca1, 0x6c96, 0x837b, 0x5104, 0x5c4b, +0x61b6, 0x81c6, 0x6876, 0x7261, 0x4e59, 0x4ffa, 0x5378, 0x6069, +0x6e29, 0x7a4f, 0x97f3, 0x4e0b, 0x5316, 0x4eee, 0x4f55, 0x4f3d, +0x4fa1, 0x4f73, 0x52a0, 0x53ef, 0x5609, 0x590f, 0x5ac1, 0x5bb6, +0x5be1, 0x79d1, 0x6687, 0x679c, 0x67b6, 0x6b4c, 0x6cb3, 0x706b, +0x73c2, 0x798d, 0x79be, 0x7a3c, 0x7b87, 0x82b1, 0x82db, 0x8304, +0x8377, 0x83ef, 0x83d3, 0x8766, 0x8ab2, 0x5629, 0x8ca8, 0x8fe6, +0x904e, 0x971e, 0x868a, 0x4fc4, 0x5ce8, 0x6211, 0x7259, 0x753b, +0x81e5, 0x82bd, 0x86fe, 0x8cc0, 0x96c5, 0x9913, 0x99d5, 0x4ecb, +0x4f1a, 0x89e3, 0x56de, 0x584a, 0x58ca, 0x5efb, 0x5feb, 0x602a, +0x6094, 0x6062, 0x61d0, 0x6212, 0x62d0, 0x6539, +94, 0x3321, +0x9b41, 0x6666, 0x68b0, 0x6d77, 0x7070, 0x754c, 0x7686, 0x7d75, +0x82a5, 0x87f9, 0x958b, 0x968e, 0x8c9d, 0x51f1, 0x52be, 0x5916, +0x54b3, 0x5bb3, 0x5d16, 0x6168, 0x6982, 0x6daf, 0x788d, 0x84cb, +0x8857, 0x8a72, 0x93a7, 0x9ab8, 0x6d6c, 0x99a8, 0x86d9, 0x57a3, +0x67ff, 0x86ce, 0x920e, 0x5283, 0x5687, 0x5404, 0x5ed3, 0x62e1, +0x64b9, 0x683c, 0x6838, 0x6bbb, 0x7372, 0x78ba, 0x7a6b, 0x899a, +0x89d2, 0x8d6b, 0x8f03, 0x90ed, 0x95a3, 0x9694, 0x9769, 0x5b66, +0x5cb3, 0x697d, 0x984d, 0x984e, 0x639b, 0x7b20, 0x6a2b, 0x6a7f, +0x68b6, 0x9c0d, 0x6f5f, 0x5272, 0x559d, 0x6070, 0x62ec, 0x6d3b, +0x6e07, 0x6ed1, 0x845b, 0x8910, 0x8f44, 0x4e14, 0x9c39, 0x53f6, +0x691b, 0x6a3a, 0x9784, 0x682a, 0x515c, 0x7ac3, 0x84b2, 0x91dc, +0x938c, 0x565b, 0x9d28, 0x6822, 0x8305, 0x8431, +94, 0x3421, +0x7ca5, 0x5208, 0x82c5, 0x74e6, 0x4e7e, 0x4f83, 0x51a0, 0x5bd2, +0x520a, 0x52d8, 0x52e7, 0x5dfb, 0x559a, 0x582a, 0x59e6, 0x5b8c, +0x5b98, 0x5bdb, 0x5e72, 0x5e79, 0x60a3, 0x611f, 0x6163, 0x61be, +0x63db, 0x6562, 0x67d1, 0x6853, 0x68fa, 0x6b3e, 0x6b53, 0x6c57, +0x6f22, 0x6f97, 0x6f45, 0x74b0, 0x7518, 0x76e3, 0x770b, 0x7aff, +0x7ba1, 0x7c21, 0x7de9, 0x7f36, 0x7ff0, 0x809d, 0x8266, 0x839e, +0x89b3, 0x8acc, 0x8cab, 0x9084, 0x9451, 0x9593, 0x9591, 0x95a2, +0x9665, 0x97d3, 0x9928, 0x8218, 0x4e38, 0x542b, 0x5cb8, 0x5dcc, +0x73a9, 0x764c, 0x773c, 0x5ca9, 0x7feb, 0x8d0b, 0x96c1, 0x9811, +0x9854, 0x9858, 0x4f01, 0x4f0e, 0x5371, 0x559c, 0x5668, 0x57fa, +0x5947, 0x5b09, 0x5bc4, 0x5c90, 0x5e0c, 0x5e7e, 0x5fcc, 0x63ee, +0x673a, 0x65d7, 0x65e2, 0x671f, 0x68cb, 0x68c4, +94, 0x3521, +0x6a5f, 0x5e30, 0x6bc5, 0x6c17, 0x6c7d, 0x757f, 0x7948, 0x5b63, +0x7a00, 0x7d00, 0x5fbd, 0x898f, 0x8a18, 0x8cb4, 0x8d77, 0x8ecc, +0x8f1d, 0x98e2, 0x9a0e, 0x9b3c, 0x4e80, 0x507d, 0x5100, 0x5993, +0x5b9c, 0x622f, 0x6280, 0x64ec, 0x6b3a, 0x72a0, 0x7591, 0x7947, +0x7fa9, 0x87fb, 0x8abc, 0x8b70, 0x63ac, 0x83ca, 0x97a0, 0x5409, +0x5403, 0x55ab, 0x6854, 0x6a58, 0x8a70, 0x7827, 0x6775, 0x9ecd, +0x5374, 0x5ba2, 0x811a, 0x8650, 0x9006, 0x4e18, 0x4e45, 0x4ec7, +0x4f11, 0x53ca, 0x5438, 0x5bae, 0x5f13, 0x6025, 0x6551, 0x673d, +0x6c42, 0x6c72, 0x6ce3, 0x7078, 0x7403, 0x7a76, 0x7aae, 0x7b08, +0x7d1a, 0x7cfe, 0x7d66, 0x65e7, 0x725b, 0x53bb, 0x5c45, 0x5de8, +0x62d2, 0x62e0, 0x6319, 0x6e20, 0x865a, 0x8a31, 0x8ddd, 0x92f8, +0x6f01, 0x79a6, 0x9b5a, 0x4ea8, 0x4eab, 0x4eac, +94, 0x3621, +0x4f9b, 0x4fa0, 0x50d1, 0x5147, 0x7af6, 0x5171, 0x51f6, 0x5354, +0x5321, 0x537f, 0x53eb, 0x55ac, 0x5883, 0x5ce1, 0x5f37, 0x5f4a, +0x602f, 0x6050, 0x606d, 0x631f, 0x6559, 0x6a4b, 0x6cc1, 0x72c2, +0x72ed, 0x77ef, 0x80f8, 0x8105, 0x8208, 0x854e, 0x90f7, 0x93e1, +0x97ff, 0x9957, 0x9a5a, 0x4ef0, 0x51dd, 0x5c2d, 0x6681, 0x696d, +0x5c40, 0x66f2, 0x6975, 0x7389, 0x6850, 0x7c81, 0x50c5, 0x52e4, +0x5747, 0x5dfe, 0x9326, 0x65a4, 0x6b23, 0x6b3d, 0x7434, 0x7981, +0x79bd, 0x7b4b, 0x7dca, 0x82b9, 0x83cc, 0x887f, 0x895f, 0x8b39, +0x8fd1, 0x91d1, 0x541f, 0x9280, 0x4e5d, 0x5036, 0x53e5, 0x533a, +0x72d7, 0x7396, 0x77e9, 0x82e6, 0x8eaf, 0x99c6, 0x99c8, 0x99d2, +0x5177, 0x611a, 0x865e, 0x55b0, 0x7a7a, 0x5076, 0x5bd3, 0x9047, +0x9685, 0x4e32, 0x6adb, 0x91e7, 0x5c51, 0x5c48, +94, 0x3721, +0x6398, 0x7a9f, 0x6c93, 0x9774, 0x8f61, 0x7aaa, 0x718a, 0x9688, +0x7c82, 0x6817, 0x7e70, 0x6851, 0x936c, 0x52f2, 0x541b, 0x85ab, +0x8a13, 0x7fa4, 0x8ecd, 0x90e1, 0x5366, 0x8888, 0x7941, 0x4fc2, +0x50be, 0x5211, 0x5144, 0x5553, 0x572d, 0x73ea, 0x578b, 0x5951, +0x5f62, 0x5f84, 0x6075, 0x6176, 0x6167, 0x61a9, 0x63b2, 0x643a, +0x656c, 0x666f, 0x6842, 0x6e13, 0x7566, 0x7a3d, 0x7cfb, 0x7d4c, +0x7d99, 0x7e4b, 0x7f6b, 0x830e, 0x834a, 0x86cd, 0x8a08, 0x8a63, +0x8b66, 0x8efd, 0x981a, 0x9d8f, 0x82b8, 0x8fce, 0x9be8, 0x5287, +0x621f, 0x6483, 0x6fc0, 0x9699, 0x6841, 0x5091, 0x6b20, 0x6c7a, +0x6f54, 0x7a74, 0x7d50, 0x8840, 0x8a23, 0x6708, 0x4ef6, 0x5039, +0x5026, 0x5065, 0x517c, 0x5238, 0x5263, 0x55a7, 0x570f, 0x5805, +0x5acc, 0x5efa, 0x61b2, 0x61f8, 0x62f3, 0x6372, +94, 0x3821, +0x691c, 0x6a29, 0x727d, 0x72ac, 0x732e, 0x7814, 0x786f, 0x7d79, +0x770c, 0x80a9, 0x898b, 0x8b19, 0x8ce2, 0x8ed2, 0x9063, 0x9375, +0x967a, 0x9855, 0x9a13, 0x9e78, 0x5143, 0x539f, 0x53b3, 0x5e7b, +0x5f26, 0x6e1b, 0x6e90, 0x7384, 0x73fe, 0x7d43, 0x8237, 0x8a00, +0x8afa, 0x9650, 0x4e4e, 0x500b, 0x53e4, 0x547c, 0x56fa, 0x59d1, +0x5b64, 0x5df1, 0x5eab, 0x5f27, 0x6238, 0x6545, 0x67af, 0x6e56, +0x72d0, 0x7cca, 0x88b4, 0x80a1, 0x80e1, 0x83f0, 0x864e, 0x8a87, +0x8de8, 0x9237, 0x96c7, 0x9867, 0x9f13, 0x4e94, 0x4e92, 0x4f0d, +0x5348, 0x5449, 0x543e, 0x5a2f, 0x5f8c, 0x5fa1, 0x609f, 0x68a7, +0x6a8e, 0x745a, 0x7881, 0x8a9e, 0x8aa4, 0x8b77, 0x9190, 0x4e5e, +0x9bc9, 0x4ea4, 0x4f7c, 0x4faf, 0x5019, 0x5016, 0x5149, 0x516c, +0x529f, 0x52b9, 0x52fe, 0x539a, 0x53e3, 0x5411, +94, 0x3921, +0x540e, 0x5589, 0x5751, 0x57a2, 0x597d, 0x5b54, 0x5b5d, 0x5b8f, +0x5de5, 0x5de7, 0x5df7, 0x5e78, 0x5e83, 0x5e9a, 0x5eb7, 0x5f18, +0x6052, 0x614c, 0x6297, 0x62d8, 0x63a7, 0x653b, 0x6602, 0x6643, +0x66f4, 0x676d, 0x6821, 0x6897, 0x69cb, 0x6c5f, 0x6d2a, 0x6d69, +0x6e2f, 0x6e9d, 0x7532, 0x7687, 0x786c, 0x7a3f, 0x7ce0, 0x7d05, +0x7d18, 0x7d5e, 0x7db1, 0x8015, 0x8003, 0x80af, 0x80b1, 0x8154, +0x818f, 0x822a, 0x8352, 0x884c, 0x8861, 0x8b1b, 0x8ca2, 0x8cfc, +0x90ca, 0x9175, 0x9271, 0x783f, 0x92fc, 0x95a4, 0x964d, 0x9805, +0x9999, 0x9ad8, 0x9d3b, 0x525b, 0x52ab, 0x53f7, 0x5408, 0x58d5, +0x62f7, 0x6fe0, 0x8c6a, 0x8f5f, 0x9eb9, 0x514b, 0x523b, 0x544a, +0x56fd, 0x7a40, 0x9177, 0x9d60, 0x9ed2, 0x7344, 0x6f09, 0x8170, +0x7511, 0x5ffd, 0x60da, 0x9aa8, 0x72db, 0x8fbc, +94, 0x3a21, +0x6b64, 0x9803, 0x4eca, 0x56f0, 0x5764, 0x58be, 0x5a5a, 0x6068, +0x61c7, 0x660f, 0x6606, 0x6839, 0x68b1, 0x6df7, 0x75d5, 0x7d3a, +0x826e, 0x9b42, 0x4e9b, 0x4f50, 0x53c9, 0x5506, 0x5d6f, 0x5de6, +0x5dee, 0x67fb, 0x6c99, 0x7473, 0x7802, 0x8a50, 0x9396, 0x88df, +0x5750, 0x5ea7, 0x632b, 0x50b5, 0x50ac, 0x518d, 0x6700, 0x54c9, +0x585e, 0x59bb, 0x5bb0, 0x5f69, 0x624d, 0x63a1, 0x683d, 0x6b73, +0x6e08, 0x707d, 0x91c7, 0x7280, 0x7815, 0x7826, 0x796d, 0x658e, +0x7d30, 0x83dc, 0x88c1, 0x8f09, 0x969b, 0x5264, 0x5728, 0x6750, +0x7f6a, 0x8ca1, 0x51b4, 0x5742, 0x962a, 0x583a, 0x698a, 0x80b4, +0x54b2, 0x5d0e, 0x57fc, 0x7895, 0x9dfa, 0x4f5c, 0x524a, 0x548b, +0x643e, 0x6628, 0x6714, 0x67f5, 0x7a84, 0x7b56, 0x7d22, 0x932f, +0x685c, 0x9bad, 0x7b39, 0x5319, 0x518a, 0x5237, +94, 0x3b21, +0x5bdf, 0x62f6, 0x64ae, 0x64e6, 0x672d, 0x6bba, 0x85a9, 0x96d1, +0x7690, 0x9bd6, 0x634c, 0x9306, 0x9bab, 0x76bf, 0x6652, 0x4e09, +0x5098, 0x53c2, 0x5c71, 0x60e8, 0x6492, 0x6563, 0x685f, 0x71e6, +0x73ca, 0x7523, 0x7b97, 0x7e82, 0x8695, 0x8b83, 0x8cdb, 0x9178, +0x9910, 0x65ac, 0x66ab, 0x6b8b, 0x4ed5, 0x4ed4, 0x4f3a, 0x4f7f, +0x523a, 0x53f8, 0x53f2, 0x55e3, 0x56db, 0x58eb, 0x59cb, 0x59c9, +0x59ff, 0x5b50, 0x5c4d, 0x5e02, 0x5e2b, 0x5fd7, 0x601d, 0x6307, +0x652f, 0x5b5c, 0x65af, 0x65bd, 0x65e8, 0x679d, 0x6b62, 0x6b7b, +0x6c0f, 0x7345, 0x7949, 0x79c1, 0x7cf8, 0x7d19, 0x7d2b, 0x80a2, +0x8102, 0x81f3, 0x8996, 0x8a5e, 0x8a69, 0x8a66, 0x8a8c, 0x8aee, +0x8cc7, 0x8cdc, 0x96cc, 0x98fc, 0x6b6f, 0x4e8b, 0x4f3c, 0x4f8d, +0x5150, 0x5b57, 0x5bfa, 0x6148, 0x6301, 0x6642, +94, 0x3c21, +0x6b21, 0x6ecb, 0x6cbb, 0x723e, 0x74bd, 0x75d4, 0x78c1, 0x793a, +0x800c, 0x8033, 0x81ea, 0x8494, 0x8f9e, 0x6c50, 0x9e7f, 0x5f0f, +0x8b58, 0x9d2b, 0x7afa, 0x8ef8, 0x5b8d, 0x96eb, 0x4e03, 0x53f1, +0x57f7, 0x5931, 0x5ac9, 0x5ba4, 0x6089, 0x6e7f, 0x6f06, 0x75be, +0x8cea, 0x5b9f, 0x8500, 0x7be0, 0x5072, 0x67f4, 0x829d, 0x5c61, +0x854a, 0x7e1e, 0x820e, 0x5199, 0x5c04, 0x6368, 0x8d66, 0x659c, +0x716e, 0x793e, 0x7d17, 0x8005, 0x8b1d, 0x8eca, 0x906e, 0x86c7, +0x90aa, 0x501f, 0x52fa, 0x5c3a, 0x6753, 0x707c, 0x7235, 0x914c, +0x91c8, 0x932b, 0x82e5, 0x5bc2, 0x5f31, 0x60f9, 0x4e3b, 0x53d6, +0x5b88, 0x624b, 0x6731, 0x6b8a, 0x72e9, 0x73e0, 0x7a2e, 0x816b, +0x8da3, 0x9152, 0x9996, 0x5112, 0x53d7, 0x546a, 0x5bff, 0x6388, +0x6a39, 0x7dac, 0x9700, 0x56da, 0x53ce, 0x5468, +94, 0x3d21, +0x5b97, 0x5c31, 0x5dde, 0x4fee, 0x6101, 0x62fe, 0x6d32, 0x79c0, +0x79cb, 0x7d42, 0x7e4d, 0x7fd2, 0x81ed, 0x821f, 0x8490, 0x8846, +0x8972, 0x8b90, 0x8e74, 0x8f2f, 0x9031, 0x914b, 0x916c, 0x96c6, +0x919c, 0x4ec0, 0x4f4f, 0x5145, 0x5341, 0x5f93, 0x620e, 0x67d4, +0x6c41, 0x6e0b, 0x7363, 0x7e26, 0x91cd, 0x9283, 0x53d4, 0x5919, +0x5bbf, 0x6dd1, 0x795d, 0x7e2e, 0x7c9b, 0x587e, 0x719f, 0x51fa, +0x8853, 0x8ff0, 0x4fca, 0x5cfb, 0x6625, 0x77ac, 0x7ae3, 0x821c, +0x99ff, 0x51c6, 0x5faa, 0x65ec, 0x696f, 0x6b89, 0x6df3, 0x6e96, +0x6f64, 0x76fe, 0x7d14, 0x5de1, 0x9075, 0x9187, 0x9806, 0x51e6, +0x521d, 0x6240, 0x6691, 0x66d9, 0x6e1a, 0x5eb6, 0x7dd2, 0x7f72, +0x66f8, 0x85af, 0x85f7, 0x8af8, 0x52a9, 0x53d9, 0x5973, 0x5e8f, +0x5f90, 0x6055, 0x92e4, 0x9664, 0x50b7, 0x511f, +94, 0x3e21, +0x52dd, 0x5320, 0x5347, 0x53ec, 0x54e8, 0x5546, 0x5531, 0x5617, +0x5968, 0x59be, 0x5a3c, 0x5bb5, 0x5c06, 0x5c0f, 0x5c11, 0x5c1a, +0x5e84, 0x5e8a, 0x5ee0, 0x5f70, 0x627f, 0x6284, 0x62db, 0x638c, +0x6377, 0x6607, 0x660c, 0x662d, 0x6676, 0x677e, 0x68a2, 0x6a1f, +0x6a35, 0x6cbc, 0x6d88, 0x6e09, 0x6e58, 0x713c, 0x7126, 0x7167, +0x75c7, 0x7701, 0x785d, 0x7901, 0x7965, 0x79f0, 0x7ae0, 0x7b11, +0x7ca7, 0x7d39, 0x8096, 0x83d6, 0x848b, 0x8549, 0x885d, 0x88f3, +0x8a1f, 0x8a3c, 0x8a54, 0x8a73, 0x8c61, 0x8cde, 0x91a4, 0x9266, +0x937e, 0x9418, 0x969c, 0x9798, 0x4e0a, 0x4e08, 0x4e1e, 0x4e57, +0x5197, 0x5270, 0x57ce, 0x5834, 0x58cc, 0x5b22, 0x5e38, 0x60c5, +0x64fe, 0x6761, 0x6756, 0x6d44, 0x72b6, 0x7573, 0x7a63, 0x84b8, +0x8b72, 0x91b8, 0x9320, 0x5631, 0x57f4, 0x98fe, +94, 0x3f21, +0x62ed, 0x690d, 0x6b96, 0x71ed, 0x7e54, 0x8077, 0x8272, 0x89e6, +0x98df, 0x8755, 0x8fb1, 0x5c3b, 0x4f38, 0x4fe1, 0x4fb5, 0x5507, +0x5a20, 0x5bdd, 0x5be9, 0x5fc3, 0x614e, 0x632f, 0x65b0, 0x664b, +0x68ee, 0x699b, 0x6d78, 0x6df1, 0x7533, 0x75b9, 0x771f, 0x795e, +0x79e6, 0x7d33, 0x81e3, 0x82af, 0x85aa, 0x89aa, 0x8a3a, 0x8eab, +0x8f9b, 0x9032, 0x91dd, 0x9707, 0x4eba, 0x4ec1, 0x5203, 0x5875, +0x58ec, 0x5c0b, 0x751a, 0x5c3d, 0x814e, 0x8a0a, 0x8fc5, 0x9663, +0x976d, 0x7b25, 0x8acf, 0x9808, 0x9162, 0x56f3, 0x53a8, 0x9017, +0x5439, 0x5782, 0x5e25, 0x63a8, 0x6c34, 0x708a, 0x7761, 0x7c8b, +0x7fe0, 0x8870, 0x9042, 0x9154, 0x9310, 0x9318, 0x968f, 0x745e, +0x9ac4, 0x5d07, 0x5d69, 0x6570, 0x67a2, 0x8da8, 0x96db, 0x636e, +0x6749, 0x6919, 0x83c5, 0x9817, 0x96c0, 0x88fe, +94, 0x4021, +0x6f84, 0x647a, 0x5bf8, 0x4e16, 0x702c, 0x755d, 0x662f, 0x51c4, +0x5236, 0x52e2, 0x59d3, 0x5f81, 0x6027, 0x6210, 0x653f, 0x6574, +0x661f, 0x6674, 0x68f2, 0x6816, 0x6b63, 0x6e05, 0x7272, 0x751f, +0x76db, 0x7cbe, 0x8056, 0x58f0, 0x88fd, 0x897f, 0x8aa0, 0x8a93, +0x8acb, 0x901d, 0x9192, 0x9752, 0x9759, 0x6589, 0x7a0e, 0x8106, +0x96bb, 0x5e2d, 0x60dc, 0x621a, 0x65a5, 0x6614, 0x6790, 0x77f3, +0x7a4d, 0x7c4d, 0x7e3e, 0x810a, 0x8cac, 0x8d64, 0x8de1, 0x8e5f, +0x78a9, 0x5207, 0x62d9, 0x63a5, 0x6442, 0x6298, 0x8a2d, 0x7a83, +0x7bc0, 0x8aac, 0x96ea, 0x7d76, 0x820c, 0x8749, 0x4ed9, 0x5148, +0x5343, 0x5360, 0x5ba3, 0x5c02, 0x5c16, 0x5ddd, 0x6226, 0x6247, +0x64b0, 0x6813, 0x6834, 0x6cc9, 0x6d45, 0x6d17, 0x67d3, 0x6f5c, +0x714e, 0x717d, 0x65cb, 0x7a7f, 0x7bad, 0x7dda, +94, 0x4121, +0x7e4a, 0x7fa8, 0x817a, 0x821b, 0x8239, 0x85a6, 0x8a6e, 0x8cce, +0x8df5, 0x9078, 0x9077, 0x92ad, 0x9291, 0x9583, 0x9bae, 0x524d, +0x5584, 0x6f38, 0x7136, 0x5168, 0x7985, 0x7e55, 0x81b3, 0x7cce, +0x564c, 0x5851, 0x5ca8, 0x63aa, 0x66fe, 0x66fd, 0x695a, 0x72d9, +0x758f, 0x758e, 0x790e, 0x7956, 0x79df, 0x7c97, 0x7d20, 0x7d44, +0x8607, 0x8a34, 0x963b, 0x9061, 0x9f20, 0x50e7, 0x5275, 0x53cc, +0x53e2, 0x5009, 0x55aa, 0x58ee, 0x594f, 0x723d, 0x5b8b, 0x5c64, +0x531d, 0x60e3, 0x60f3, 0x635c, 0x6383, 0x633f, 0x63bb, 0x64cd, +0x65e9, 0x66f9, 0x5de3, 0x69cd, 0x69fd, 0x6f15, 0x71e5, 0x4e89, +0x75e9, 0x76f8, 0x7a93, 0x7cdf, 0x7dcf, 0x7d9c, 0x8061, 0x8349, +0x8358, 0x846c, 0x84bc, 0x85fb, 0x88c5, 0x8d70, 0x9001, 0x906d, +0x9397, 0x971c, 0x9a12, 0x50cf, 0x5897, 0x618e, +94, 0x4221, +0x81d3, 0x8535, 0x8d08, 0x9020, 0x4fc3, 0x5074, 0x5247, 0x5373, +0x606f, 0x6349, 0x675f, 0x6e2c, 0x8db3, 0x901f, 0x4fd7, 0x5c5e, +0x8cca, 0x65cf, 0x7d9a, 0x5352, 0x8896, 0x5176, 0x63c3, 0x5b58, +0x5b6b, 0x5c0a, 0x640d, 0x6751, 0x905c, 0x4ed6, 0x591a, 0x592a, +0x6c70, 0x8a51, 0x553e, 0x5815, 0x59a5, 0x60f0, 0x6253, 0x67c1, +0x8235, 0x6955, 0x9640, 0x99c4, 0x9a28, 0x4f53, 0x5806, 0x5bfe, +0x8010, 0x5cb1, 0x5e2f, 0x5f85, 0x6020, 0x614b, 0x6234, 0x66ff, +0x6cf0, 0x6ede, 0x80ce, 0x817f, 0x82d4, 0x888b, 0x8cb8, 0x9000, +0x902e, 0x968a, 0x9edb, 0x9bdb, 0x4ee3, 0x53f0, 0x5927, 0x7b2c, +0x918d, 0x984c, 0x9df9, 0x6edd, 0x7027, 0x5353, 0x5544, 0x5b85, +0x6258, 0x629e, 0x62d3, 0x6ca2, 0x6fef, 0x7422, 0x8a17, 0x9438, +0x6fc1, 0x8afe, 0x8338, 0x51e7, 0x86f8, 0x53ea, +94, 0x4321, +0x53e9, 0x4f46, 0x9054, 0x8fb0, 0x596a, 0x8131, 0x5dfd, 0x7aea, +0x8fbf, 0x68da, 0x8c37, 0x72f8, 0x9c48, 0x6a3d, 0x8ab0, 0x4e39, +0x5358, 0x5606, 0x5766, 0x62c5, 0x63a2, 0x65e6, 0x6b4e, 0x6de1, +0x6e5b, 0x70ad, 0x77ed, 0x7aef, 0x7baa, 0x7dbb, 0x803d, 0x80c6, +0x86cb, 0x8a95, 0x935b, 0x56e3, 0x58c7, 0x5f3e, 0x65ad, 0x6696, +0x6a80, 0x6bb5, 0x7537, 0x8ac7, 0x5024, 0x77e5, 0x5730, 0x5f1b, +0x6065, 0x667a, 0x6c60, 0x75f4, 0x7a1a, 0x7f6e, 0x81f4, 0x8718, +0x9045, 0x99b3, 0x7bc9, 0x755c, 0x7af9, 0x7b51, 0x84c4, 0x9010, +0x79e9, 0x7a92, 0x8336, 0x5ae1, 0x7740, 0x4e2d, 0x4ef2, 0x5b99, +0x5fe0, 0x62bd, 0x663c, 0x67f1, 0x6ce8, 0x866b, 0x8877, 0x8a3b, +0x914e, 0x92f3, 0x99d0, 0x6a17, 0x7026, 0x732a, 0x82e7, 0x8457, +0x8caf, 0x4e01, 0x5146, 0x51cb, 0x558b, 0x5bf5, +94, 0x4421, +0x5e16, 0x5e33, 0x5e81, 0x5f14, 0x5f35, 0x5f6b, 0x5fb4, 0x61f2, +0x6311, 0x66a2, 0x671d, 0x6f6e, 0x7252, 0x753a, 0x773a, 0x8074, +0x8139, 0x8178, 0x8776, 0x8abf, 0x8adc, 0x8d85, 0x8df3, 0x929a, +0x9577, 0x9802, 0x9ce5, 0x52c5, 0x6357, 0x76f4, 0x6715, 0x6c88, +0x73cd, 0x8cc3, 0x93ae, 0x9673, 0x6d25, 0x589c, 0x690e, 0x69cc, +0x8ffd, 0x939a, 0x75db, 0x901a, 0x585a, 0x6802, 0x63b4, 0x69fb, +0x4f43, 0x6f2c, 0x67d8, 0x8fbb, 0x8526, 0x7db4, 0x9354, 0x693f, +0x6f70, 0x576a, 0x58f7, 0x5b2c, 0x7d2c, 0x722a, 0x540a, 0x91e3, +0x9db4, 0x4ead, 0x4f4e, 0x505c, 0x5075, 0x5243, 0x8c9e, 0x5448, +0x5824, 0x5b9a, 0x5e1d, 0x5e95, 0x5ead, 0x5ef7, 0x5f1f, 0x608c, +0x62b5, 0x633a, 0x63d0, 0x68af, 0x6c40, 0x7887, 0x798e, 0x7a0b, +0x7de0, 0x8247, 0x8a02, 0x8ae6, 0x8e44, 0x9013, +94, 0x4521, +0x90b8, 0x912d, 0x91d8, 0x9f0e, 0x6ce5, 0x6458, 0x64e2, 0x6575, +0x6ef4, 0x7684, 0x7b1b, 0x9069, 0x93d1, 0x6eba, 0x54f2, 0x5fb9, +0x64a4, 0x8f4d, 0x8fed, 0x9244, 0x5178, 0x586b, 0x5929, 0x5c55, +0x5e97, 0x6dfb, 0x7e8f, 0x751c, 0x8cbc, 0x8ee2, 0x985b, 0x70b9, +0x4f1d, 0x6bbf, 0x6fb1, 0x7530, 0x96fb, 0x514e, 0x5410, 0x5835, +0x5857, 0x59ac, 0x5c60, 0x5f92, 0x6597, 0x675c, 0x6e21, 0x767b, +0x83df, 0x8ced, 0x9014, 0x90fd, 0x934d, 0x7825, 0x783a, 0x52aa, +0x5ea6, 0x571f, 0x5974, 0x6012, 0x5012, 0x515a, 0x51ac, 0x51cd, +0x5200, 0x5510, 0x5854, 0x5858, 0x5957, 0x5b95, 0x5cf6, 0x5d8b, +0x60bc, 0x6295, 0x642d, 0x6771, 0x6843, 0x68bc, 0x68df, 0x76d7, +0x6dd8, 0x6e6f, 0x6d9b, 0x706f, 0x71c8, 0x5f53, 0x75d8, 0x7977, +0x7b49, 0x7b54, 0x7b52, 0x7cd6, 0x7d71, 0x5230, +94, 0x4621, +0x8463, 0x8569, 0x85e4, 0x8a0e, 0x8b04, 0x8c46, 0x8e0f, 0x9003, +0x900f, 0x9419, 0x9676, 0x982d, 0x9a30, 0x95d8, 0x50cd, 0x52d5, +0x540c, 0x5802, 0x5c0e, 0x61a7, 0x649e, 0x6d1e, 0x77b3, 0x7ae5, +0x80f4, 0x8404, 0x9053, 0x9285, 0x5ce0, 0x9d07, 0x533f, 0x5f97, +0x5fb3, 0x6d9c, 0x7279, 0x7763, 0x79bf, 0x7be4, 0x6bd2, 0x72ec, +0x8aad, 0x6803, 0x6a61, 0x51f8, 0x7a81, 0x6934, 0x5c4a, 0x9cf6, +0x82eb, 0x5bc5, 0x9149, 0x701e, 0x5678, 0x5c6f, 0x60c7, 0x6566, +0x6c8c, 0x8c5a, 0x9041, 0x9813, 0x5451, 0x66c7, 0x920d, 0x5948, +0x90a3, 0x5185, 0x4e4d, 0x51ea, 0x8599, 0x8b0e, 0x7058, 0x637a, +0x934b, 0x6962, 0x99b4, 0x7e04, 0x7577, 0x5357, 0x6960, 0x8edf, +0x96e3, 0x6c5d, 0x4e8c, 0x5c3c, 0x5f10, 0x8fe9, 0x5302, 0x8cd1, +0x8089, 0x8679, 0x5eff, 0x65e5, 0x4e73, 0x5165, +94, 0x4721, +0x5982, 0x5c3f, 0x97ee, 0x4efb, 0x598a, 0x5fcd, 0x8a8d, 0x6fe1, +0x79b0, 0x7962, 0x5be7, 0x8471, 0x732b, 0x71b1, 0x5e74, 0x5ff5, +0x637b, 0x649a, 0x71c3, 0x7c98, 0x4e43, 0x5efc, 0x4e4b, 0x57dc, +0x56a2, 0x60a9, 0x6fc3, 0x7d0d, 0x80fd, 0x8133, 0x81bf, 0x8fb2, +0x8997, 0x86a4, 0x5df4, 0x628a, 0x64ad, 0x8987, 0x6777, 0x6ce2, +0x6d3e, 0x7436, 0x7834, 0x5a46, 0x7f75, 0x82ad, 0x99ac, 0x4ff3, +0x5ec3, 0x62dd, 0x6392, 0x6557, 0x676f, 0x76c3, 0x724c, 0x80cc, +0x80ba, 0x8f29, 0x914d, 0x500d, 0x57f9, 0x5a92, 0x6885, 0x6973, +0x7164, 0x72fd, 0x8cb7, 0x58f2, 0x8ce0, 0x966a, 0x9019, 0x877f, +0x79e4, 0x77e7, 0x8429, 0x4f2f, 0x5265, 0x535a, 0x62cd, 0x67cf, +0x6cca, 0x767d, 0x7b94, 0x7c95, 0x8236, 0x8584, 0x8feb, 0x66dd, +0x6f20, 0x7206, 0x7e1b, 0x83ab, 0x99c1, 0x9ea6, +94, 0x4821, +0x51fd, 0x7bb1, 0x7872, 0x7bb8, 0x8087, 0x7b48, 0x6ae8, 0x5e61, +0x808c, 0x7551, 0x7560, 0x516b, 0x9262, 0x6e8c, 0x767a, 0x9197, +0x9aea, 0x4f10, 0x7f70, 0x629c, 0x7b4f, 0x95a5, 0x9ce9, 0x567a, +0x5859, 0x86e4, 0x96bc, 0x4f34, 0x5224, 0x534a, 0x53cd, 0x53db, +0x5e06, 0x642c, 0x6591, 0x677f, 0x6c3e, 0x6c4e, 0x7248, 0x72af, +0x73ed, 0x7554, 0x7e41, 0x822c, 0x85e9, 0x8ca9, 0x7bc4, 0x91c6, +0x7169, 0x9812, 0x98ef, 0x633d, 0x6669, 0x756a, 0x76e4, 0x78d0, +0x8543, 0x86ee, 0x532a, 0x5351, 0x5426, 0x5983, 0x5e87, 0x5f7c, +0x60b2, 0x6249, 0x6279, 0x62ab, 0x6590, 0x6bd4, 0x6ccc, 0x75b2, +0x76ae, 0x7891, 0x79d8, 0x7dcb, 0x7f77, 0x80a5, 0x88ab, 0x8ab9, +0x8cbb, 0x907f, 0x975e, 0x98db, 0x6a0b, 0x7c38, 0x5099, 0x5c3e, +0x5fae, 0x6787, 0x6bd8, 0x7435, 0x7709, 0x7f8e, +94, 0x4921, +0x9f3b, 0x67ca, 0x7a17, 0x5339, 0x758b, 0x9aed, 0x5f66, 0x819d, +0x83f1, 0x8098, 0x5f3c, 0x5fc5, 0x7562, 0x7b46, 0x903c, 0x6867, +0x59eb, 0x5a9b, 0x7d10, 0x767e, 0x8b2c, 0x4ff5, 0x5f6a, 0x6a19, +0x6c37, 0x6f02, 0x74e2, 0x7968, 0x8868, 0x8a55, 0x8c79, 0x5edf, +0x63cf, 0x75c5, 0x79d2, 0x82d7, 0x9328, 0x92f2, 0x849c, 0x86ed, +0x9c2d, 0x54c1, 0x5f6c, 0x658c, 0x6d5c, 0x7015, 0x8ca7, 0x8cd3, +0x983b, 0x654f, 0x74f6, 0x4e0d, 0x4ed8, 0x57e0, 0x592b, 0x5a66, +0x5bcc, 0x51a8, 0x5e03, 0x5e9c, 0x6016, 0x6276, 0x6577, 0x65a7, +0x666e, 0x6d6e, 0x7236, 0x7b26, 0x8150, 0x819a, 0x8299, 0x8b5c, +0x8ca0, 0x8ce6, 0x8d74, 0x961c, 0x9644, 0x4fae, 0x64ab, 0x6b66, +0x821e, 0x8461, 0x856a, 0x90e8, 0x5c01, 0x6953, 0x98a8, 0x847a, +0x8557, 0x4f0f, 0x526f, 0x5fa9, 0x5e45, 0x670d, +94, 0x4a21, +0x798f, 0x8179, 0x8907, 0x8986, 0x6df5, 0x5f17, 0x6255, 0x6cb8, +0x4ecf, 0x7269, 0x9b92, 0x5206, 0x543b, 0x5674, 0x58b3, 0x61a4, +0x626e, 0x711a, 0x596e, 0x7c89, 0x7cde, 0x7d1b, 0x96f0, 0x6587, +0x805e, 0x4e19, 0x4f75, 0x5175, 0x5840, 0x5e63, 0x5e73, 0x5f0a, +0x67c4, 0x4e26, 0x853d, 0x9589, 0x965b, 0x7c73, 0x9801, 0x50fb, +0x58c1, 0x7656, 0x78a7, 0x5225, 0x77a5, 0x8511, 0x7b86, 0x504f, +0x5909, 0x7247, 0x7bc7, 0x7de8, 0x8fba, 0x8fd4, 0x904d, 0x4fbf, +0x52c9, 0x5a29, 0x5f01, 0x97ad, 0x4fdd, 0x8217, 0x92ea, 0x5703, +0x6355, 0x6b69, 0x752b, 0x88dc, 0x8f14, 0x7a42, 0x52df, 0x5893, +0x6155, 0x620a, 0x66ae, 0x6bcd, 0x7c3f, 0x83e9, 0x5023, 0x4ff8, +0x5305, 0x5446, 0x5831, 0x5949, 0x5b9d, 0x5cf0, 0x5cef, 0x5d29, +0x5e96, 0x62b1, 0x6367, 0x653e, 0x65b9, 0x670b, +94, 0x4b21, +0x6cd5, 0x6ce1, 0x70f9, 0x7832, 0x7e2b, 0x80de, 0x82b3, 0x840c, +0x84ec, 0x8702, 0x8912, 0x8a2a, 0x8c4a, 0x90a6, 0x92d2, 0x98fd, +0x9cf3, 0x9d6c, 0x4e4f, 0x4ea1, 0x508d, 0x5256, 0x574a, 0x59a8, +0x5e3d, 0x5fd8, 0x5fd9, 0x623f, 0x66b4, 0x671b, 0x67d0, 0x68d2, +0x5192, 0x7d21, 0x80aa, 0x81a8, 0x8b00, 0x8c8c, 0x8cbf, 0x927e, +0x9632, 0x5420, 0x982c, 0x5317, 0x50d5, 0x535c, 0x58a8, 0x64b2, +0x6734, 0x7267, 0x7766, 0x7a46, 0x91e6, 0x52c3, 0x6ca1, 0x6b86, +0x5800, 0x5e4c, 0x5954, 0x672c, 0x7ffb, 0x51e1, 0x76c6, 0x6469, +0x78e8, 0x9b54, 0x9ebb, 0x57cb, 0x59b9, 0x6627, 0x679a, 0x6bce, +0x54e9, 0x69d9, 0x5e55, 0x819c, 0x6795, 0x9baa, 0x67fe, 0x9c52, +0x685d, 0x4ea6, 0x4fe3, 0x53c8, 0x62b9, 0x672b, 0x6cab, 0x8fc4, +0x4fad, 0x7e6d, 0x9ebf, 0x4e07, 0x6162, 0x6e80, +94, 0x4c21, +0x6f2b, 0x8513, 0x5473, 0x672a, 0x9b45, 0x5df3, 0x7b95, 0x5cac, +0x5bc6, 0x871c, 0x6e4a, 0x84d1, 0x7a14, 0x8108, 0x5999, 0x7c8d, +0x6c11, 0x7720, 0x52d9, 0x5922, 0x7121, 0x725f, 0x77db, 0x9727, +0x9d61, 0x690b, 0x5a7f, 0x5a18, 0x51a5, 0x540d, 0x547d, 0x660e, +0x76df, 0x8ff7, 0x9298, 0x9cf4, 0x59ea, 0x725d, 0x6ec5, 0x514d, +0x68c9, 0x7dbf, 0x7dec, 0x9762, 0x9eba, 0x6478, 0x6a21, 0x8302, +0x5984, 0x5b5f, 0x6bdb, 0x731b, 0x76f2, 0x7db2, 0x8017, 0x8499, +0x5132, 0x6728, 0x9ed9, 0x76ee, 0x6762, 0x52ff, 0x9905, 0x5c24, +0x623b, 0x7c7e, 0x8cb0, 0x554f, 0x60b6, 0x7d0b, 0x9580, 0x5301, +0x4e5f, 0x51b6, 0x591c, 0x723a, 0x8036, 0x91ce, 0x5f25, 0x77e2, +0x5384, 0x5f79, 0x7d04, 0x85ac, 0x8a33, 0x8e8d, 0x9756, 0x67f3, +0x85ae, 0x9453, 0x6109, 0x6108, 0x6cb9, 0x7652, +94, 0x4d21, +0x8aed, 0x8f38, 0x552f, 0x4f51, 0x512a, 0x52c7, 0x53cb, 0x5ba5, +0x5e7d, 0x60a0, 0x6182, 0x63d6, 0x6709, 0x67da, 0x6e67, 0x6d8c, +0x7336, 0x7337, 0x7531, 0x7950, 0x88d5, 0x8a98, 0x904a, 0x9091, +0x90f5, 0x96c4, 0x878d, 0x5915, 0x4e88, 0x4f59, 0x4e0e, 0x8a89, +0x8f3f, 0x9810, 0x50ad, 0x5e7c, 0x5996, 0x5bb9, 0x5eb8, 0x63da, +0x63fa, 0x64c1, 0x66dc, 0x694a, 0x69d8, 0x6d0b, 0x6eb6, 0x7194, +0x7528, 0x7aaf, 0x7f8a, 0x8000, 0x8449, 0x84c9, 0x8981, 0x8b21, +0x8e0a, 0x9065, 0x967d, 0x990a, 0x617e, 0x6291, 0x6b32, 0x6c83, +0x6d74, 0x7fcc, 0x7ffc, 0x6dc0, 0x7f85, 0x87ba, 0x88f8, 0x6765, +0x83b1, 0x983c, 0x96f7, 0x6d1b, 0x7d61, 0x843d, 0x916a, 0x4e71, +0x5375, 0x5d50, 0x6b04, 0x6feb, 0x85cd, 0x862d, 0x89a7, 0x5229, +0x540f, 0x5c65, 0x674e, 0x68a8, 0x7406, 0x7483, +94, 0x4e21, +0x75e2, 0x88cf, 0x88e1, 0x91cc, 0x96e2, 0x9678, 0x5f8b, 0x7387, +0x7acb, 0x844e, 0x63a0, 0x7565, 0x5289, 0x6d41, 0x6e9c, 0x7409, +0x7559, 0x786b, 0x7c92, 0x9686, 0x7adc, 0x9f8d, 0x4fb6, 0x616e, +0x65c5, 0x865c, 0x4e86, 0x4eae, 0x50da, 0x4e21, 0x51cc, 0x5bee, +0x6599, 0x6881, 0x6dbc, 0x731f, 0x7642, 0x77ad, 0x7a1c, 0x7ce7, +0x826f, 0x8ad2, 0x907c, 0x91cf, 0x9675, 0x9818, 0x529b, 0x7dd1, +0x502b, 0x5398, 0x6797, 0x6dcb, 0x71d0, 0x7433, 0x81e8, 0x8f2a, +0x96a3, 0x9c57, 0x9e9f, 0x7460, 0x5841, 0x6d99, 0x7d2f, 0x985e, +0x4ee4, 0x4f36, 0x4f8b, 0x51b7, 0x52b1, 0x5dba, 0x601c, 0x73b2, +0x793c, 0x82d3, 0x9234, 0x96b7, 0x96f6, 0x970a, 0x9e97, 0x9f62, +0x66a6, 0x6b74, 0x5217, 0x52a3, 0x70c8, 0x88c2, 0x5ec9, 0x604b, +0x6190, 0x6f23, 0x7149, 0x7c3e, 0x7df4, 0x806f, +51, 0x4f21, +0x84ee, 0x9023, 0x932c, 0x5442, 0x9b6f, 0x6ad3, 0x7089, 0x8cc2, +0x8def, 0x9732, 0x52b4, 0x5a41, 0x5eca, 0x5f04, 0x6717, 0x697c, +0x6994, 0x6d6a, 0x6f0f, 0x7262, 0x72fc, 0x7bed, 0x8001, 0x807e, +0x874b, 0x90ce, 0x516d, 0x9e93, 0x7984, 0x808b, 0x9332, 0x8ad6, +0x502d, 0x548c, 0x8a71, 0x6b6a, 0x8cc4, 0x8107, 0x60d1, 0x67a0, +0x9df2, 0x4e99, 0x4e98, 0x9c10, 0x8a6b, 0x85c1, 0x8568, 0x6900, +0x6e7e, 0x7897, 0x8155, +94, 0x5021, +0x5f0c, 0x4e10, 0x4e15, 0x4e2a, 0x4e31, 0x4e36, 0x4e3c, 0x4e3f, +0x4e42, 0x4e56, 0x4e58, 0x4e82, 0x4e85, 0x8c6b, 0x4e8a, 0x8212, +0x5f0d, 0x4e8e, 0x4e9e, 0x4e9f, 0x4ea0, 0x4ea2, 0x4eb0, 0x4eb3, +0x4eb6, 0x4ece, 0x4ecd, 0x4ec4, 0x4ec6, 0x4ec2, 0x4ed7, 0x4ede, +0x4eed, 0x4edf, 0x4ef7, 0x4f09, 0x4f5a, 0x4f30, 0x4f5b, 0x4f5d, +0x4f57, 0x4f47, 0x4f76, 0x4f88, 0x4f8f, 0x4f98, 0x4f7b, 0x4f69, +0x4f70, 0x4f91, 0x4f6f, 0x4f86, 0x4f96, 0x5118, 0x4fd4, 0x4fdf, +0x4fce, 0x4fd8, 0x4fdb, 0x4fd1, 0x4fda, 0x4fd0, 0x4fe4, 0x4fe5, +0x501a, 0x5028, 0x5014, 0x502a, 0x5025, 0x5005, 0x4f1c, 0x4ff6, +0x5021, 0x5029, 0x502c, 0x4ffe, 0x4fef, 0x5011, 0x5006, 0x5043, +0x5047, 0x6703, 0x5055, 0x5050, 0x5048, 0x505a, 0x5056, 0x506c, +0x5078, 0x5080, 0x509a, 0x5085, 0x50b4, 0x50b2, +94, 0x5121, +0x50c9, 0x50ca, 0x50b3, 0x50c2, 0x50d6, 0x50de, 0x50e5, 0x50ed, +0x50e3, 0x50ee, 0x50f9, 0x50f5, 0x5109, 0x5101, 0x5102, 0x5116, +0x5115, 0x5114, 0x511a, 0x5121, 0x513a, 0x5137, 0x513c, 0x513b, +0x513f, 0x5140, 0x5152, 0x514c, 0x5154, 0x5162, 0x7af8, 0x5169, +0x516a, 0x516e, 0x5180, 0x5182, 0x56d8, 0x518c, 0x5189, 0x518f, +0x5191, 0x5193, 0x5195, 0x5196, 0x51a4, 0x51a6, 0x51a2, 0x51a9, +0x51aa, 0x51ab, 0x51b3, 0x51b1, 0x51b2, 0x51b0, 0x51b5, 0x51bd, +0x51c5, 0x51c9, 0x51db, 0x51e0, 0x8655, 0x51e9, 0x51ed, 0x51f0, +0x51f5, 0x51fe, 0x5204, 0x520b, 0x5214, 0x520e, 0x5227, 0x522a, +0x522e, 0x5233, 0x5239, 0x524f, 0x5244, 0x524b, 0x524c, 0x525e, +0x5254, 0x526a, 0x5274, 0x5269, 0x5273, 0x527f, 0x527d, 0x528d, +0x5294, 0x5292, 0x5271, 0x5288, 0x5291, 0x8fa8, +94, 0x5221, +0x8fa7, 0x52ac, 0x52ad, 0x52bc, 0x52b5, 0x52c1, 0x52cd, 0x52d7, +0x52de, 0x52e3, 0x52e6, 0x98ed, 0x52e0, 0x52f3, 0x52f5, 0x52f8, +0x52f9, 0x5306, 0x5308, 0x7538, 0x530d, 0x5310, 0x530f, 0x5315, +0x531a, 0x5323, 0x532f, 0x5331, 0x5333, 0x5338, 0x5340, 0x5346, +0x5345, 0x4e17, 0x5349, 0x534d, 0x51d6, 0x535e, 0x5369, 0x536e, +0x5918, 0x537b, 0x5377, 0x5382, 0x5396, 0x53a0, 0x53a6, 0x53a5, +0x53ae, 0x53b0, 0x53b6, 0x53c3, 0x7c12, 0x96d9, 0x53df, 0x66fc, +0x71ee, 0x53ee, 0x53e8, 0x53ed, 0x53fa, 0x5401, 0x543d, 0x5440, +0x542c, 0x542d, 0x543c, 0x542e, 0x5436, 0x5429, 0x541d, 0x544e, +0x548f, 0x5475, 0x548e, 0x545f, 0x5471, 0x5477, 0x5470, 0x5492, +0x547b, 0x5480, 0x5476, 0x5484, 0x5490, 0x5486, 0x54c7, 0x54a2, +0x54b8, 0x54a5, 0x54ac, 0x54c4, 0x54c8, 0x54a8, +94, 0x5321, +0x54ab, 0x54c2, 0x54a4, 0x54be, 0x54bc, 0x54d8, 0x54e5, 0x54e6, +0x550f, 0x5514, 0x54fd, 0x54ee, 0x54ed, 0x54fa, 0x54e2, 0x5539, +0x5540, 0x5563, 0x554c, 0x552e, 0x555c, 0x5545, 0x5556, 0x5557, +0x5538, 0x5533, 0x555d, 0x5599, 0x5580, 0x54af, 0x558a, 0x559f, +0x557b, 0x557e, 0x5598, 0x559e, 0x55ae, 0x557c, 0x5583, 0x55a9, +0x5587, 0x55a8, 0x55da, 0x55c5, 0x55df, 0x55c4, 0x55dc, 0x55e4, +0x55d4, 0x5614, 0x55f7, 0x5616, 0x55fe, 0x55fd, 0x561b, 0x55f9, +0x564e, 0x5650, 0x71df, 0x5634, 0x5636, 0x5632, 0x5638, 0x566b, +0x5664, 0x562f, 0x566c, 0x566a, 0x5686, 0x5680, 0x568a, 0x56a0, +0x5694, 0x568f, 0x56a5, 0x56ae, 0x56b6, 0x56b4, 0x56c2, 0x56bc, +0x56c1, 0x56c3, 0x56c0, 0x56c8, 0x56ce, 0x56d1, 0x56d3, 0x56d7, +0x56ee, 0x56f9, 0x5700, 0x56ff, 0x5704, 0x5709, +94, 0x5421, +0x5708, 0x570b, 0x570d, 0x5713, 0x5718, 0x5716, 0x55c7, 0x571c, +0x5726, 0x5737, 0x5738, 0x574e, 0x573b, 0x5740, 0x574f, 0x5769, +0x57c0, 0x5788, 0x5761, 0x577f, 0x5789, 0x5793, 0x57a0, 0x57b3, +0x57a4, 0x57aa, 0x57b0, 0x57c3, 0x57c6, 0x57d4, 0x57d2, 0x57d3, +0x580a, 0x57d6, 0x57e3, 0x580b, 0x5819, 0x581d, 0x5872, 0x5821, +0x5862, 0x584b, 0x5870, 0x6bc0, 0x5852, 0x583d, 0x5879, 0x5885, +0x58b9, 0x589f, 0x58ab, 0x58ba, 0x58de, 0x58bb, 0x58b8, 0x58ae, +0x58c5, 0x58d3, 0x58d1, 0x58d7, 0x58d9, 0x58d8, 0x58e5, 0x58dc, +0x58e4, 0x58df, 0x58ef, 0x58fa, 0x58f9, 0x58fb, 0x58fc, 0x58fd, +0x5902, 0x590a, 0x5910, 0x591b, 0x68a6, 0x5925, 0x592c, 0x592d, +0x5932, 0x5938, 0x593e, 0x7ad2, 0x5955, 0x5950, 0x594e, 0x595a, +0x5958, 0x5962, 0x5960, 0x5967, 0x596c, 0x5969, +94, 0x5521, +0x5978, 0x5981, 0x599d, 0x4f5e, 0x4fab, 0x59a3, 0x59b2, 0x59c6, +0x59e8, 0x59dc, 0x598d, 0x59d9, 0x59da, 0x5a25, 0x5a1f, 0x5a11, +0x5a1c, 0x5a09, 0x5a1a, 0x5a40, 0x5a6c, 0x5a49, 0x5a35, 0x5a36, +0x5a62, 0x5a6a, 0x5a9a, 0x5abc, 0x5abe, 0x5acb, 0x5ac2, 0x5abd, +0x5ae3, 0x5ad7, 0x5ae6, 0x5ae9, 0x5ad6, 0x5afa, 0x5afb, 0x5b0c, +0x5b0b, 0x5b16, 0x5b32, 0x5ad0, 0x5b2a, 0x5b36, 0x5b3e, 0x5b43, +0x5b45, 0x5b40, 0x5b51, 0x5b55, 0x5b5a, 0x5b5b, 0x5b65, 0x5b69, +0x5b70, 0x5b73, 0x5b75, 0x5b78, 0x6588, 0x5b7a, 0x5b80, 0x5b83, +0x5ba6, 0x5bb8, 0x5bc3, 0x5bc7, 0x5bc9, 0x5bd4, 0x5bd0, 0x5be4, +0x5be6, 0x5be2, 0x5bde, 0x5be5, 0x5beb, 0x5bf0, 0x5bf6, 0x5bf3, +0x5c05, 0x5c07, 0x5c08, 0x5c0d, 0x5c13, 0x5c20, 0x5c22, 0x5c28, +0x5c38, 0x5c39, 0x5c41, 0x5c46, 0x5c4e, 0x5c53, +94, 0x5621, +0x5c50, 0x5c4f, 0x5b71, 0x5c6c, 0x5c6e, 0x4e62, 0x5c76, 0x5c79, +0x5c8c, 0x5c91, 0x5c94, 0x599b, 0x5cab, 0x5cbb, 0x5cb6, 0x5cbc, +0x5cb7, 0x5cc5, 0x5cbe, 0x5cc7, 0x5cd9, 0x5ce9, 0x5cfd, 0x5cfa, +0x5ced, 0x5d8c, 0x5cea, 0x5d0b, 0x5d15, 0x5d17, 0x5d5c, 0x5d1f, +0x5d1b, 0x5d11, 0x5d14, 0x5d22, 0x5d1a, 0x5d19, 0x5d18, 0x5d4c, +0x5d52, 0x5d4e, 0x5d4b, 0x5d6c, 0x5d73, 0x5d76, 0x5d87, 0x5d84, +0x5d82, 0x5da2, 0x5d9d, 0x5dac, 0x5dae, 0x5dbd, 0x5d90, 0x5db7, +0x5dbc, 0x5dc9, 0x5dcd, 0x5dd3, 0x5dd2, 0x5dd6, 0x5ddb, 0x5deb, +0x5df2, 0x5df5, 0x5e0b, 0x5e1a, 0x5e19, 0x5e11, 0x5e1b, 0x5e36, +0x5e37, 0x5e44, 0x5e43, 0x5e40, 0x5e4e, 0x5e57, 0x5e54, 0x5e5f, +0x5e62, 0x5e64, 0x5e47, 0x5e75, 0x5e76, 0x5e7a, 0x9ebc, 0x5e7f, +0x5ea0, 0x5ec1, 0x5ec2, 0x5ec8, 0x5ed0, 0x5ecf, +94, 0x5721, +0x5ed6, 0x5ee3, 0x5edd, 0x5eda, 0x5edb, 0x5ee2, 0x5ee1, 0x5ee8, +0x5ee9, 0x5eec, 0x5ef1, 0x5ef3, 0x5ef0, 0x5ef4, 0x5ef8, 0x5efe, +0x5f03, 0x5f09, 0x5f5d, 0x5f5c, 0x5f0b, 0x5f11, 0x5f16, 0x5f29, +0x5f2d, 0x5f38, 0x5f41, 0x5f48, 0x5f4c, 0x5f4e, 0x5f2f, 0x5f51, +0x5f56, 0x5f57, 0x5f59, 0x5f61, 0x5f6d, 0x5f73, 0x5f77, 0x5f83, +0x5f82, 0x5f7f, 0x5f8a, 0x5f88, 0x5f91, 0x5f87, 0x5f9e, 0x5f99, +0x5f98, 0x5fa0, 0x5fa8, 0x5fad, 0x5fbc, 0x5fd6, 0x5ffb, 0x5fe4, +0x5ff8, 0x5ff1, 0x5fdd, 0x60b3, 0x5fff, 0x6021, 0x6060, 0x6019, +0x6010, 0x6029, 0x600e, 0x6031, 0x601b, 0x6015, 0x602b, 0x6026, +0x600f, 0x603a, 0x605a, 0x6041, 0x606a, 0x6077, 0x605f, 0x604a, +0x6046, 0x604d, 0x6063, 0x6043, 0x6064, 0x6042, 0x606c, 0x606b, +0x6059, 0x6081, 0x608d, 0x60e7, 0x6083, 0x609a, +94, 0x5821, +0x6084, 0x609b, 0x6096, 0x6097, 0x6092, 0x60a7, 0x608b, 0x60e1, +0x60b8, 0x60e0, 0x60d3, 0x60b4, 0x5ff0, 0x60bd, 0x60c6, 0x60b5, +0x60d8, 0x614d, 0x6115, 0x6106, 0x60f6, 0x60f7, 0x6100, 0x60f4, +0x60fa, 0x6103, 0x6121, 0x60fb, 0x60f1, 0x610d, 0x610e, 0x6147, +0x613e, 0x6128, 0x6127, 0x614a, 0x613f, 0x613c, 0x612c, 0x6134, +0x613d, 0x6142, 0x6144, 0x6173, 0x6177, 0x6158, 0x6159, 0x615a, +0x616b, 0x6174, 0x616f, 0x6165, 0x6171, 0x615f, 0x615d, 0x6153, +0x6175, 0x6199, 0x6196, 0x6187, 0x61ac, 0x6194, 0x619a, 0x618a, +0x6191, 0x61ab, 0x61ae, 0x61cc, 0x61ca, 0x61c9, 0x61f7, 0x61c8, +0x61c3, 0x61c6, 0x61ba, 0x61cb, 0x7f79, 0x61cd, 0x61e6, 0x61e3, +0x61f6, 0x61fa, 0x61f4, 0x61ff, 0x61fd, 0x61fc, 0x61fe, 0x6200, +0x6208, 0x6209, 0x620d, 0x620c, 0x6214, 0x621b, +94, 0x5921, +0x621e, 0x6221, 0x622a, 0x622e, 0x6230, 0x6232, 0x6233, 0x6241, +0x624e, 0x625e, 0x6263, 0x625b, 0x6260, 0x6268, 0x627c, 0x6282, +0x6289, 0x627e, 0x6292, 0x6293, 0x6296, 0x62d4, 0x6283, 0x6294, +0x62d7, 0x62d1, 0x62bb, 0x62cf, 0x62ff, 0x62c6, 0x64d4, 0x62c8, +0x62dc, 0x62cc, 0x62ca, 0x62c2, 0x62c7, 0x629b, 0x62c9, 0x630c, +0x62ee, 0x62f1, 0x6327, 0x6302, 0x6308, 0x62ef, 0x62f5, 0x6350, +0x633e, 0x634d, 0x641c, 0x634f, 0x6396, 0x638e, 0x6380, 0x63ab, +0x6376, 0x63a3, 0x638f, 0x6389, 0x639f, 0x63b5, 0x636b, 0x6369, +0x63be, 0x63e9, 0x63c0, 0x63c6, 0x63e3, 0x63c9, 0x63d2, 0x63f6, +0x63c4, 0x6416, 0x6434, 0x6406, 0x6413, 0x6426, 0x6436, 0x651d, +0x6417, 0x6428, 0x640f, 0x6467, 0x646f, 0x6476, 0x644e, 0x652a, +0x6495, 0x6493, 0x64a5, 0x64a9, 0x6488, 0x64bc, +94, 0x5a21, +0x64da, 0x64d2, 0x64c5, 0x64c7, 0x64bb, 0x64d8, 0x64c2, 0x64f1, +0x64e7, 0x8209, 0x64e0, 0x64e1, 0x62ac, 0x64e3, 0x64ef, 0x652c, +0x64f6, 0x64f4, 0x64f2, 0x64fa, 0x6500, 0x64fd, 0x6518, 0x651c, +0x6505, 0x6524, 0x6523, 0x652b, 0x6534, 0x6535, 0x6537, 0x6536, +0x6538, 0x754b, 0x6548, 0x6556, 0x6555, 0x654d, 0x6558, 0x655e, +0x655d, 0x6572, 0x6578, 0x6582, 0x6583, 0x8b8a, 0x659b, 0x659f, +0x65ab, 0x65b7, 0x65c3, 0x65c6, 0x65c1, 0x65c4, 0x65cc, 0x65d2, +0x65db, 0x65d9, 0x65e0, 0x65e1, 0x65f1, 0x6772, 0x660a, 0x6603, +0x65fb, 0x6773, 0x6635, 0x6636, 0x6634, 0x661c, 0x664f, 0x6644, +0x6649, 0x6641, 0x665e, 0x665d, 0x6664, 0x6667, 0x6668, 0x665f, +0x6662, 0x6670, 0x6683, 0x6688, 0x668e, 0x6689, 0x6684, 0x6698, +0x669d, 0x66c1, 0x66b9, 0x66c9, 0x66be, 0x66bc, +94, 0x5b21, +0x66c4, 0x66b8, 0x66d6, 0x66da, 0x66e0, 0x663f, 0x66e6, 0x66e9, +0x66f0, 0x66f5, 0x66f7, 0x670f, 0x6716, 0x671e, 0x6726, 0x6727, +0x9738, 0x672e, 0x673f, 0x6736, 0x6741, 0x6738, 0x6737, 0x6746, +0x675e, 0x6760, 0x6759, 0x6763, 0x6764, 0x6789, 0x6770, 0x67a9, +0x677c, 0x676a, 0x678c, 0x678b, 0x67a6, 0x67a1, 0x6785, 0x67b7, +0x67ef, 0x67b4, 0x67ec, 0x67b3, 0x67e9, 0x67b8, 0x67e4, 0x67de, +0x67dd, 0x67e2, 0x67ee, 0x67b9, 0x67ce, 0x67c6, 0x67e7, 0x6a9c, +0x681e, 0x6846, 0x6829, 0x6840, 0x684d, 0x6832, 0x684e, 0x68b3, +0x682b, 0x6859, 0x6863, 0x6877, 0x687f, 0x689f, 0x688f, 0x68ad, +0x6894, 0x689d, 0x689b, 0x6883, 0x6aae, 0x68b9, 0x6874, 0x68b5, +0x68a0, 0x68ba, 0x690f, 0x688d, 0x687e, 0x6901, 0x68ca, 0x6908, +0x68d8, 0x6922, 0x6926, 0x68e1, 0x690c, 0x68cd, +94, 0x5c21, +0x68d4, 0x68e7, 0x68d5, 0x6936, 0x6912, 0x6904, 0x68d7, 0x68e3, +0x6925, 0x68f9, 0x68e0, 0x68ef, 0x6928, 0x692a, 0x691a, 0x6923, +0x6921, 0x68c6, 0x6979, 0x6977, 0x695c, 0x6978, 0x696b, 0x6954, +0x697e, 0x696e, 0x6939, 0x6974, 0x693d, 0x6959, 0x6930, 0x6961, +0x695e, 0x695d, 0x6981, 0x696a, 0x69b2, 0x69ae, 0x69d0, 0x69bf, +0x69c1, 0x69d3, 0x69be, 0x69ce, 0x5be8, 0x69ca, 0x69dd, 0x69bb, +0x69c3, 0x69a7, 0x6a2e, 0x6991, 0x69a0, 0x699c, 0x6995, 0x69b4, +0x69de, 0x69e8, 0x6a02, 0x6a1b, 0x69ff, 0x6b0a, 0x69f9, 0x69f2, +0x69e7, 0x6a05, 0x69b1, 0x6a1e, 0x69ed, 0x6a14, 0x69eb, 0x6a0a, +0x6a12, 0x6ac1, 0x6a23, 0x6a13, 0x6a44, 0x6a0c, 0x6a72, 0x6a36, +0x6a78, 0x6a47, 0x6a62, 0x6a59, 0x6a66, 0x6a48, 0x6a38, 0x6a22, +0x6a90, 0x6a8d, 0x6aa0, 0x6a84, 0x6aa2, 0x6aa3, +94, 0x5d21, +0x6a97, 0x8617, 0x6abb, 0x6ac3, 0x6ac2, 0x6ab8, 0x6ab3, 0x6aac, +0x6ade, 0x6ad1, 0x6adf, 0x6aaa, 0x6ada, 0x6aea, 0x6afb, 0x6b05, +0x8616, 0x6afa, 0x6b12, 0x6b16, 0x9b31, 0x6b1f, 0x6b38, 0x6b37, +0x76dc, 0x6b39, 0x98ee, 0x6b47, 0x6b43, 0x6b49, 0x6b50, 0x6b59, +0x6b54, 0x6b5b, 0x6b5f, 0x6b61, 0x6b78, 0x6b79, 0x6b7f, 0x6b80, +0x6b84, 0x6b83, 0x6b8d, 0x6b98, 0x6b95, 0x6b9e, 0x6ba4, 0x6baa, +0x6bab, 0x6baf, 0x6bb2, 0x6bb1, 0x6bb3, 0x6bb7, 0x6bbc, 0x6bc6, +0x6bcb, 0x6bd3, 0x6bdf, 0x6bec, 0x6beb, 0x6bf3, 0x6bef, 0x9ebe, +0x6c08, 0x6c13, 0x6c14, 0x6c1b, 0x6c24, 0x6c23, 0x6c5e, 0x6c55, +0x6c62, 0x6c6a, 0x6c82, 0x6c8d, 0x6c9a, 0x6c81, 0x6c9b, 0x6c7e, +0x6c68, 0x6c73, 0x6c92, 0x6c90, 0x6cc4, 0x6cf1, 0x6cd3, 0x6cbd, +0x6cd7, 0x6cc5, 0x6cdd, 0x6cae, 0x6cb1, 0x6cbe, +94, 0x5e21, +0x6cba, 0x6cdb, 0x6cef, 0x6cd9, 0x6cea, 0x6d1f, 0x884d, 0x6d36, +0x6d2b, 0x6d3d, 0x6d38, 0x6d19, 0x6d35, 0x6d33, 0x6d12, 0x6d0c, +0x6d63, 0x6d93, 0x6d64, 0x6d5a, 0x6d79, 0x6d59, 0x6d8e, 0x6d95, +0x6fe4, 0x6d85, 0x6df9, 0x6e15, 0x6e0a, 0x6db5, 0x6dc7, 0x6de6, +0x6db8, 0x6dc6, 0x6dec, 0x6dde, 0x6dcc, 0x6de8, 0x6dd2, 0x6dc5, +0x6dfa, 0x6dd9, 0x6de4, 0x6dd5, 0x6dea, 0x6dee, 0x6e2d, 0x6e6e, +0x6e2e, 0x6e19, 0x6e72, 0x6e5f, 0x6e3e, 0x6e23, 0x6e6b, 0x6e2b, +0x6e76, 0x6e4d, 0x6e1f, 0x6e43, 0x6e3a, 0x6e4e, 0x6e24, 0x6eff, +0x6e1d, 0x6e38, 0x6e82, 0x6eaa, 0x6e98, 0x6ec9, 0x6eb7, 0x6ed3, +0x6ebd, 0x6eaf, 0x6ec4, 0x6eb2, 0x6ed4, 0x6ed5, 0x6e8f, 0x6ea5, +0x6ec2, 0x6e9f, 0x6f41, 0x6f11, 0x704c, 0x6eec, 0x6ef8, 0x6efe, +0x6f3f, 0x6ef2, 0x6f31, 0x6eef, 0x6f32, 0x6ecc, +94, 0x5f21, +0x6f3e, 0x6f13, 0x6ef7, 0x6f86, 0x6f7a, 0x6f78, 0x6f81, 0x6f80, +0x6f6f, 0x6f5b, 0x6ff3, 0x6f6d, 0x6f82, 0x6f7c, 0x6f58, 0x6f8e, +0x6f91, 0x6fc2, 0x6f66, 0x6fb3, 0x6fa3, 0x6fa1, 0x6fa4, 0x6fb9, +0x6fc6, 0x6faa, 0x6fdf, 0x6fd5, 0x6fec, 0x6fd4, 0x6fd8, 0x6ff1, +0x6fee, 0x6fdb, 0x7009, 0x700b, 0x6ffa, 0x7011, 0x7001, 0x700f, +0x6ffe, 0x701b, 0x701a, 0x6f74, 0x701d, 0x7018, 0x701f, 0x7030, +0x703e, 0x7032, 0x7051, 0x7063, 0x7099, 0x7092, 0x70af, 0x70f1, +0x70ac, 0x70b8, 0x70b3, 0x70ae, 0x70df, 0x70cb, 0x70dd, 0x70d9, +0x7109, 0x70fd, 0x711c, 0x7119, 0x7165, 0x7155, 0x7188, 0x7166, +0x7162, 0x714c, 0x7156, 0x716c, 0x718f, 0x71fb, 0x7184, 0x7195, +0x71a8, 0x71ac, 0x71d7, 0x71b9, 0x71be, 0x71d2, 0x71c9, 0x71d4, +0x71ce, 0x71e0, 0x71ec, 0x71e7, 0x71f5, 0x71fc, +94, 0x6021, +0x71f9, 0x71ff, 0x720d, 0x7210, 0x721b, 0x7228, 0x722d, 0x722c, +0x7230, 0x7232, 0x723b, 0x723c, 0x723f, 0x7240, 0x7246, 0x724b, +0x7258, 0x7274, 0x727e, 0x7282, 0x7281, 0x7287, 0x7292, 0x7296, +0x72a2, 0x72a7, 0x72b9, 0x72b2, 0x72c3, 0x72c6, 0x72c4, 0x72ce, +0x72d2, 0x72e2, 0x72e0, 0x72e1, 0x72f9, 0x72f7, 0x500f, 0x7317, +0x730a, 0x731c, 0x7316, 0x731d, 0x7334, 0x732f, 0x7329, 0x7325, +0x733e, 0x734e, 0x734f, 0x9ed8, 0x7357, 0x736a, 0x7368, 0x7370, +0x7378, 0x7375, 0x737b, 0x737a, 0x73c8, 0x73b3, 0x73ce, 0x73bb, +0x73c0, 0x73e5, 0x73ee, 0x73de, 0x74a2, 0x7405, 0x746f, 0x7425, +0x73f8, 0x7432, 0x743a, 0x7455, 0x743f, 0x745f, 0x7459, 0x7441, +0x745c, 0x7469, 0x7470, 0x7463, 0x746a, 0x7476, 0x747e, 0x748b, +0x749e, 0x74a7, 0x74ca, 0x74cf, 0x74d4, 0x73f1, +94, 0x6121, +0x74e0, 0x74e3, 0x74e7, 0x74e9, 0x74ee, 0x74f2, 0x74f0, 0x74f1, +0x74f8, 0x74f7, 0x7504, 0x7503, 0x7505, 0x750c, 0x750e, 0x750d, +0x7515, 0x7513, 0x751e, 0x7526, 0x752c, 0x753c, 0x7544, 0x754d, +0x754a, 0x7549, 0x755b, 0x7546, 0x755a, 0x7569, 0x7564, 0x7567, +0x756b, 0x756d, 0x7578, 0x7576, 0x7586, 0x7587, 0x7574, 0x758a, +0x7589, 0x7582, 0x7594, 0x759a, 0x759d, 0x75a5, 0x75a3, 0x75c2, +0x75b3, 0x75c3, 0x75b5, 0x75bd, 0x75b8, 0x75bc, 0x75b1, 0x75cd, +0x75ca, 0x75d2, 0x75d9, 0x75e3, 0x75de, 0x75fe, 0x75ff, 0x75fc, +0x7601, 0x75f0, 0x75fa, 0x75f2, 0x75f3, 0x760b, 0x760d, 0x7609, +0x761f, 0x7627, 0x7620, 0x7621, 0x7622, 0x7624, 0x7634, 0x7630, +0x763b, 0x7647, 0x7648, 0x7646, 0x765c, 0x7658, 0x7661, 0x7662, +0x7668, 0x7669, 0x766a, 0x7667, 0x766c, 0x7670, +94, 0x6221, +0x7672, 0x7676, 0x7678, 0x767c, 0x7680, 0x7683, 0x7688, 0x768b, +0x768e, 0x7696, 0x7693, 0x7699, 0x769a, 0x76b0, 0x76b4, 0x76b8, +0x76b9, 0x76ba, 0x76c2, 0x76cd, 0x76d6, 0x76d2, 0x76de, 0x76e1, +0x76e5, 0x76e7, 0x76ea, 0x862f, 0x76fb, 0x7708, 0x7707, 0x7704, +0x7729, 0x7724, 0x771e, 0x7725, 0x7726, 0x771b, 0x7737, 0x7738, +0x7747, 0x775a, 0x7768, 0x776b, 0x775b, 0x7765, 0x777f, 0x777e, +0x7779, 0x778e, 0x778b, 0x7791, 0x77a0, 0x779e, 0x77b0, 0x77b6, +0x77b9, 0x77bf, 0x77bc, 0x77bd, 0x77bb, 0x77c7, 0x77cd, 0x77d7, +0x77da, 0x77dc, 0x77e3, 0x77ee, 0x77fc, 0x780c, 0x7812, 0x7926, +0x7820, 0x792a, 0x7845, 0x788e, 0x7874, 0x7886, 0x787c, 0x789a, +0x788c, 0x78a3, 0x78b5, 0x78aa, 0x78af, 0x78d1, 0x78c6, 0x78cb, +0x78d4, 0x78be, 0x78bc, 0x78c5, 0x78ca, 0x78ec, +94, 0x6321, +0x78e7, 0x78da, 0x78fd, 0x78f4, 0x7907, 0x7912, 0x7911, 0x7919, +0x792c, 0x792b, 0x7940, 0x7960, 0x7957, 0x795f, 0x795a, 0x7955, +0x7953, 0x797a, 0x797f, 0x798a, 0x799d, 0x79a7, 0x9f4b, 0x79aa, +0x79ae, 0x79b3, 0x79b9, 0x79ba, 0x79c9, 0x79d5, 0x79e7, 0x79ec, +0x79e1, 0x79e3, 0x7a08, 0x7a0d, 0x7a18, 0x7a19, 0x7a20, 0x7a1f, +0x7980, 0x7a31, 0x7a3b, 0x7a3e, 0x7a37, 0x7a43, 0x7a57, 0x7a49, +0x7a61, 0x7a62, 0x7a69, 0x9f9d, 0x7a70, 0x7a79, 0x7a7d, 0x7a88, +0x7a97, 0x7a95, 0x7a98, 0x7a96, 0x7aa9, 0x7ac8, 0x7ab0, 0x7ab6, +0x7ac5, 0x7ac4, 0x7abf, 0x9083, 0x7ac7, 0x7aca, 0x7acd, 0x7acf, +0x7ad5, 0x7ad3, 0x7ad9, 0x7ada, 0x7add, 0x7ae1, 0x7ae2, 0x7ae6, +0x7aed, 0x7af0, 0x7b02, 0x7b0f, 0x7b0a, 0x7b06, 0x7b33, 0x7b18, +0x7b19, 0x7b1e, 0x7b35, 0x7b28, 0x7b36, 0x7b50, +94, 0x6421, +0x7b7a, 0x7b04, 0x7b4d, 0x7b0b, 0x7b4c, 0x7b45, 0x7b75, 0x7b65, +0x7b74, 0x7b67, 0x7b70, 0x7b71, 0x7b6c, 0x7b6e, 0x7b9d, 0x7b98, +0x7b9f, 0x7b8d, 0x7b9c, 0x7b9a, 0x7b8b, 0x7b92, 0x7b8f, 0x7b5d, +0x7b99, 0x7bcb, 0x7bc1, 0x7bcc, 0x7bcf, 0x7bb4, 0x7bc6, 0x7bdd, +0x7be9, 0x7c11, 0x7c14, 0x7be6, 0x7be5, 0x7c60, 0x7c00, 0x7c07, +0x7c13, 0x7bf3, 0x7bf7, 0x7c17, 0x7c0d, 0x7bf6, 0x7c23, 0x7c27, +0x7c2a, 0x7c1f, 0x7c37, 0x7c2b, 0x7c3d, 0x7c4c, 0x7c43, 0x7c54, +0x7c4f, 0x7c40, 0x7c50, 0x7c58, 0x7c5f, 0x7c64, 0x7c56, 0x7c65, +0x7c6c, 0x7c75, 0x7c83, 0x7c90, 0x7ca4, 0x7cad, 0x7ca2, 0x7cab, +0x7ca1, 0x7ca8, 0x7cb3, 0x7cb2, 0x7cb1, 0x7cae, 0x7cb9, 0x7cbd, +0x7cc0, 0x7cc5, 0x7cc2, 0x7cd8, 0x7cd2, 0x7cdc, 0x7ce2, 0x9b3b, +0x7cef, 0x7cf2, 0x7cf4, 0x7cf6, 0x7cfa, 0x7d06, +94, 0x6521, +0x7d02, 0x7d1c, 0x7d15, 0x7d0a, 0x7d45, 0x7d4b, 0x7d2e, 0x7d32, +0x7d3f, 0x7d35, 0x7d46, 0x7d73, 0x7d56, 0x7d4e, 0x7d72, 0x7d68, +0x7d6e, 0x7d4f, 0x7d63, 0x7d93, 0x7d89, 0x7d5b, 0x7d8f, 0x7d7d, +0x7d9b, 0x7dba, 0x7dae, 0x7da3, 0x7db5, 0x7dc7, 0x7dbd, 0x7dab, +0x7e3d, 0x7da2, 0x7daf, 0x7ddc, 0x7db8, 0x7d9f, 0x7db0, 0x7dd8, +0x7ddd, 0x7de4, 0x7dde, 0x7dfb, 0x7df2, 0x7de1, 0x7e05, 0x7e0a, +0x7e23, 0x7e21, 0x7e12, 0x7e31, 0x7e1f, 0x7e09, 0x7e0b, 0x7e22, +0x7e46, 0x7e66, 0x7e3b, 0x7e35, 0x7e39, 0x7e43, 0x7e37, 0x7e32, +0x7e3a, 0x7e67, 0x7e5d, 0x7e56, 0x7e5e, 0x7e59, 0x7e5a, 0x7e79, +0x7e6a, 0x7e69, 0x7e7c, 0x7e7b, 0x7e83, 0x7dd5, 0x7e7d, 0x8fae, +0x7e7f, 0x7e88, 0x7e89, 0x7e8c, 0x7e92, 0x7e90, 0x7e93, 0x7e94, +0x7e96, 0x7e8e, 0x7e9b, 0x7e9c, 0x7f38, 0x7f3a, +94, 0x6621, +0x7f45, 0x7f4c, 0x7f4d, 0x7f4e, 0x7f50, 0x7f51, 0x7f55, 0x7f54, +0x7f58, 0x7f5f, 0x7f60, 0x7f68, 0x7f69, 0x7f67, 0x7f78, 0x7f82, +0x7f86, 0x7f83, 0x7f88, 0x7f87, 0x7f8c, 0x7f94, 0x7f9e, 0x7f9d, +0x7f9a, 0x7fa3, 0x7faf, 0x7fb2, 0x7fb9, 0x7fae, 0x7fb6, 0x7fb8, +0x8b71, 0x7fc5, 0x7fc6, 0x7fca, 0x7fd5, 0x7fd4, 0x7fe1, 0x7fe6, +0x7fe9, 0x7ff3, 0x7ff9, 0x98dc, 0x8006, 0x8004, 0x800b, 0x8012, +0x8018, 0x8019, 0x801c, 0x8021, 0x8028, 0x803f, 0x803b, 0x804a, +0x8046, 0x8052, 0x8058, 0x805a, 0x805f, 0x8062, 0x8068, 0x8073, +0x8072, 0x8070, 0x8076, 0x8079, 0x807d, 0x807f, 0x8084, 0x8086, +0x8085, 0x809b, 0x8093, 0x809a, 0x80ad, 0x5190, 0x80ac, 0x80db, +0x80e5, 0x80d9, 0x80dd, 0x80c4, 0x80da, 0x80d6, 0x8109, 0x80ef, +0x80f1, 0x811b, 0x8129, 0x8123, 0x812f, 0x814b, +94, 0x6721, +0x968b, 0x8146, 0x813e, 0x8153, 0x8151, 0x80fc, 0x8171, 0x816e, +0x8165, 0x8166, 0x8174, 0x8183, 0x8188, 0x818a, 0x8180, 0x8182, +0x81a0, 0x8195, 0x81a4, 0x81a3, 0x815f, 0x8193, 0x81a9, 0x81b0, +0x81b5, 0x81be, 0x81b8, 0x81bd, 0x81c0, 0x81c2, 0x81ba, 0x81c9, +0x81cd, 0x81d1, 0x81d9, 0x81d8, 0x81c8, 0x81da, 0x81df, 0x81e0, +0x81e7, 0x81fa, 0x81fb, 0x81fe, 0x8201, 0x8202, 0x8205, 0x8207, +0x820a, 0x820d, 0x8210, 0x8216, 0x8229, 0x822b, 0x8238, 0x8233, +0x8240, 0x8259, 0x8258, 0x825d, 0x825a, 0x825f, 0x8264, 0x8262, +0x8268, 0x826a, 0x826b, 0x822e, 0x8271, 0x8277, 0x8278, 0x827e, +0x828d, 0x8292, 0x82ab, 0x829f, 0x82bb, 0x82ac, 0x82e1, 0x82e3, +0x82df, 0x82d2, 0x82f4, 0x82f3, 0x82fa, 0x8393, 0x8303, 0x82fb, +0x82f9, 0x82de, 0x8306, 0x82dc, 0x8309, 0x82d9, +94, 0x6821, +0x8335, 0x8334, 0x8316, 0x8332, 0x8331, 0x8340, 0x8339, 0x8350, +0x8345, 0x832f, 0x832b, 0x8317, 0x8318, 0x8385, 0x839a, 0x83aa, +0x839f, 0x83a2, 0x8396, 0x8323, 0x838e, 0x8387, 0x838a, 0x837c, +0x83b5, 0x8373, 0x8375, 0x83a0, 0x8389, 0x83a8, 0x83f4, 0x8413, +0x83eb, 0x83ce, 0x83fd, 0x8403, 0x83d8, 0x840b, 0x83c1, 0x83f7, +0x8407, 0x83e0, 0x83f2, 0x840d, 0x8422, 0x8420, 0x83bd, 0x8438, +0x8506, 0x83fb, 0x846d, 0x842a, 0x843c, 0x855a, 0x8484, 0x8477, +0x846b, 0x84ad, 0x846e, 0x8482, 0x8469, 0x8446, 0x842c, 0x846f, +0x8479, 0x8435, 0x84ca, 0x8462, 0x84b9, 0x84bf, 0x849f, 0x84d9, +0x84cd, 0x84bb, 0x84da, 0x84d0, 0x84c1, 0x84c6, 0x84d6, 0x84a1, +0x8521, 0x84ff, 0x84f4, 0x8517, 0x8518, 0x852c, 0x851f, 0x8515, +0x8514, 0x84fc, 0x8540, 0x8563, 0x8558, 0x8548, +94, 0x6921, +0x8541, 0x8602, 0x854b, 0x8555, 0x8580, 0x85a4, 0x8588, 0x8591, +0x858a, 0x85a8, 0x856d, 0x8594, 0x859b, 0x85ea, 0x8587, 0x859c, +0x8577, 0x857e, 0x8590, 0x85c9, 0x85ba, 0x85cf, 0x85b9, 0x85d0, +0x85d5, 0x85dd, 0x85e5, 0x85dc, 0x85f9, 0x860a, 0x8613, 0x860b, +0x85fe, 0x85fa, 0x8606, 0x8622, 0x861a, 0x8630, 0x863f, 0x864d, +0x4e55, 0x8654, 0x865f, 0x8667, 0x8671, 0x8693, 0x86a3, 0x86a9, +0x86aa, 0x868b, 0x868c, 0x86b6, 0x86af, 0x86c4, 0x86c6, 0x86b0, +0x86c9, 0x8823, 0x86ab, 0x86d4, 0x86de, 0x86e9, 0x86ec, 0x86df, +0x86db, 0x86ef, 0x8712, 0x8706, 0x8708, 0x8700, 0x8703, 0x86fb, +0x8711, 0x8709, 0x870d, 0x86f9, 0x870a, 0x8734, 0x873f, 0x8737, +0x873b, 0x8725, 0x8729, 0x871a, 0x8760, 0x875f, 0x8778, 0x874c, +0x874e, 0x8774, 0x8757, 0x8768, 0x876e, 0x8759, +94, 0x6a21, +0x8753, 0x8763, 0x876a, 0x8805, 0x87a2, 0x879f, 0x8782, 0x87af, +0x87cb, 0x87bd, 0x87c0, 0x87d0, 0x96d6, 0x87ab, 0x87c4, 0x87b3, +0x87c7, 0x87c6, 0x87bb, 0x87ef, 0x87f2, 0x87e0, 0x880f, 0x880d, +0x87fe, 0x87f6, 0x87f7, 0x880e, 0x87d2, 0x8811, 0x8816, 0x8815, +0x8822, 0x8821, 0x8831, 0x8836, 0x8839, 0x8827, 0x883b, 0x8844, +0x8842, 0x8852, 0x8859, 0x885e, 0x8862, 0x886b, 0x8881, 0x887e, +0x889e, 0x8875, 0x887d, 0x88b5, 0x8872, 0x8882, 0x8897, 0x8892, +0x88ae, 0x8899, 0x88a2, 0x888d, 0x88a4, 0x88b0, 0x88bf, 0x88b1, +0x88c3, 0x88c4, 0x88d4, 0x88d8, 0x88d9, 0x88dd, 0x88f9, 0x8902, +0x88fc, 0x88f4, 0x88e8, 0x88f2, 0x8904, 0x890c, 0x890a, 0x8913, +0x8943, 0x891e, 0x8925, 0x892a, 0x892b, 0x8941, 0x8944, 0x893b, +0x8936, 0x8938, 0x894c, 0x891d, 0x8960, 0x895e, +94, 0x6b21, +0x8966, 0x8964, 0x896d, 0x896a, 0x896f, 0x8974, 0x8977, 0x897e, +0x8983, 0x8988, 0x898a, 0x8993, 0x8998, 0x89a1, 0x89a9, 0x89a6, +0x89ac, 0x89af, 0x89b2, 0x89ba, 0x89bd, 0x89bf, 0x89c0, 0x89da, +0x89dc, 0x89dd, 0x89e7, 0x89f4, 0x89f8, 0x8a03, 0x8a16, 0x8a10, +0x8a0c, 0x8a1b, 0x8a1d, 0x8a25, 0x8a36, 0x8a41, 0x8a5b, 0x8a52, +0x8a46, 0x8a48, 0x8a7c, 0x8a6d, 0x8a6c, 0x8a62, 0x8a85, 0x8a82, +0x8a84, 0x8aa8, 0x8aa1, 0x8a91, 0x8aa5, 0x8aa6, 0x8a9a, 0x8aa3, +0x8ac4, 0x8acd, 0x8ac2, 0x8ada, 0x8aeb, 0x8af3, 0x8ae7, 0x8ae4, +0x8af1, 0x8b14, 0x8ae0, 0x8ae2, 0x8af7, 0x8ade, 0x8adb, 0x8b0c, +0x8b07, 0x8b1a, 0x8ae1, 0x8b16, 0x8b10, 0x8b17, 0x8b20, 0x8b33, +0x97ab, 0x8b26, 0x8b2b, 0x8b3e, 0x8b28, 0x8b41, 0x8b4c, 0x8b4f, +0x8b4e, 0x8b49, 0x8b56, 0x8b5b, 0x8b5a, 0x8b6b, +94, 0x6c21, +0x8b5f, 0x8b6c, 0x8b6f, 0x8b74, 0x8b7d, 0x8b80, 0x8b8c, 0x8b8e, +0x8b92, 0x8b93, 0x8b96, 0x8b99, 0x8b9a, 0x8c3a, 0x8c41, 0x8c3f, +0x8c48, 0x8c4c, 0x8c4e, 0x8c50, 0x8c55, 0x8c62, 0x8c6c, 0x8c78, +0x8c7a, 0x8c82, 0x8c89, 0x8c85, 0x8c8a, 0x8c8d, 0x8c8e, 0x8c94, +0x8c7c, 0x8c98, 0x621d, 0x8cad, 0x8caa, 0x8cbd, 0x8cb2, 0x8cb3, +0x8cae, 0x8cb6, 0x8cc8, 0x8cc1, 0x8ce4, 0x8ce3, 0x8cda, 0x8cfd, +0x8cfa, 0x8cfb, 0x8d04, 0x8d05, 0x8d0a, 0x8d07, 0x8d0f, 0x8d0d, +0x8d10, 0x9f4e, 0x8d13, 0x8ccd, 0x8d14, 0x8d16, 0x8d67, 0x8d6d, +0x8d71, 0x8d73, 0x8d81, 0x8d99, 0x8dc2, 0x8dbe, 0x8dba, 0x8dcf, +0x8dda, 0x8dd6, 0x8dcc, 0x8ddb, 0x8dcb, 0x8dea, 0x8deb, 0x8ddf, +0x8de3, 0x8dfc, 0x8e08, 0x8e09, 0x8dff, 0x8e1d, 0x8e1e, 0x8e10, +0x8e1f, 0x8e42, 0x8e35, 0x8e30, 0x8e34, 0x8e4a, +94, 0x6d21, +0x8e47, 0x8e49, 0x8e4c, 0x8e50, 0x8e48, 0x8e59, 0x8e64, 0x8e60, +0x8e2a, 0x8e63, 0x8e55, 0x8e76, 0x8e72, 0x8e7c, 0x8e81, 0x8e87, +0x8e85, 0x8e84, 0x8e8b, 0x8e8a, 0x8e93, 0x8e91, 0x8e94, 0x8e99, +0x8eaa, 0x8ea1, 0x8eac, 0x8eb0, 0x8ec6, 0x8eb1, 0x8ebe, 0x8ec5, +0x8ec8, 0x8ecb, 0x8edb, 0x8ee3, 0x8efc, 0x8efb, 0x8eeb, 0x8efe, +0x8f0a, 0x8f05, 0x8f15, 0x8f12, 0x8f19, 0x8f13, 0x8f1c, 0x8f1f, +0x8f1b, 0x8f0c, 0x8f26, 0x8f33, 0x8f3b, 0x8f39, 0x8f45, 0x8f42, +0x8f3e, 0x8f4c, 0x8f49, 0x8f46, 0x8f4e, 0x8f57, 0x8f5c, 0x8f62, +0x8f63, 0x8f64, 0x8f9c, 0x8f9f, 0x8fa3, 0x8fad, 0x8faf, 0x8fb7, +0x8fda, 0x8fe5, 0x8fe2, 0x8fea, 0x8fef, 0x9087, 0x8ff4, 0x9005, +0x8ff9, 0x8ffa, 0x9011, 0x9015, 0x9021, 0x900d, 0x901e, 0x9016, +0x900b, 0x9027, 0x9036, 0x9035, 0x9039, 0x8ff8, +94, 0x6e21, +0x904f, 0x9050, 0x9051, 0x9052, 0x900e, 0x9049, 0x903e, 0x9056, +0x9058, 0x905e, 0x9068, 0x906f, 0x9076, 0x96a8, 0x9072, 0x9082, +0x907d, 0x9081, 0x9080, 0x908a, 0x9089, 0x908f, 0x90a8, 0x90af, +0x90b1, 0x90b5, 0x90e2, 0x90e4, 0x6248, 0x90db, 0x9102, 0x9112, +0x9119, 0x9132, 0x9130, 0x914a, 0x9156, 0x9158, 0x9163, 0x9165, +0x9169, 0x9173, 0x9172, 0x918b, 0x9189, 0x9182, 0x91a2, 0x91ab, +0x91af, 0x91aa, 0x91b5, 0x91b4, 0x91ba, 0x91c0, 0x91c1, 0x91c9, +0x91cb, 0x91d0, 0x91d6, 0x91df, 0x91e1, 0x91db, 0x91fc, 0x91f5, +0x91f6, 0x921e, 0x91ff, 0x9214, 0x922c, 0x9215, 0x9211, 0x925e, +0x9257, 0x9245, 0x9249, 0x9264, 0x9248, 0x9295, 0x923f, 0x924b, +0x9250, 0x929c, 0x9296, 0x9293, 0x929b, 0x925a, 0x92cf, 0x92b9, +0x92b7, 0x92e9, 0x930f, 0x92fa, 0x9344, 0x932e, +94, 0x6f21, +0x9319, 0x9322, 0x931a, 0x9323, 0x933a, 0x9335, 0x933b, 0x935c, +0x9360, 0x937c, 0x936e, 0x9356, 0x93b0, 0x93ac, 0x93ad, 0x9394, +0x93b9, 0x93d6, 0x93d7, 0x93e8, 0x93e5, 0x93d8, 0x93c3, 0x93dd, +0x93d0, 0x93c8, 0x93e4, 0x941a, 0x9414, 0x9413, 0x9403, 0x9407, +0x9410, 0x9436, 0x942b, 0x9435, 0x9421, 0x943a, 0x9441, 0x9452, +0x9444, 0x945b, 0x9460, 0x9462, 0x945e, 0x946a, 0x9229, 0x9470, +0x9475, 0x9477, 0x947d, 0x945a, 0x947c, 0x947e, 0x9481, 0x947f, +0x9582, 0x9587, 0x958a, 0x9594, 0x9596, 0x9598, 0x9599, 0x95a0, +0x95a8, 0x95a7, 0x95ad, 0x95bc, 0x95bb, 0x95b9, 0x95be, 0x95ca, +0x6ff6, 0x95c3, 0x95cd, 0x95cc, 0x95d5, 0x95d4, 0x95d6, 0x95dc, +0x95e1, 0x95e5, 0x95e2, 0x9621, 0x9628, 0x962e, 0x962f, 0x9642, +0x964c, 0x964f, 0x964b, 0x9677, 0x965c, 0x965e, +94, 0x7021, +0x965d, 0x965f, 0x9666, 0x9672, 0x966c, 0x968d, 0x9698, 0x9695, +0x9697, 0x96aa, 0x96a7, 0x96b1, 0x96b2, 0x96b0, 0x96b4, 0x96b6, +0x96b8, 0x96b9, 0x96ce, 0x96cb, 0x96c9, 0x96cd, 0x894d, 0x96dc, +0x970d, 0x96d5, 0x96f9, 0x9704, 0x9706, 0x9708, 0x9713, 0x970e, +0x9711, 0x970f, 0x9716, 0x9719, 0x9724, 0x972a, 0x9730, 0x9739, +0x973d, 0x973e, 0x9744, 0x9746, 0x9748, 0x9742, 0x9749, 0x975c, +0x9760, 0x9764, 0x9766, 0x9768, 0x52d2, 0x976b, 0x9771, 0x9779, +0x9785, 0x977c, 0x9781, 0x977a, 0x9786, 0x978b, 0x978f, 0x9790, +0x979c, 0x97a8, 0x97a6, 0x97a3, 0x97b3, 0x97b4, 0x97c3, 0x97c6, +0x97c8, 0x97cb, 0x97dc, 0x97ed, 0x9f4f, 0x97f2, 0x7adf, 0x97f6, +0x97f5, 0x980f, 0x980c, 0x9838, 0x9824, 0x9821, 0x9837, 0x983d, +0x9846, 0x984f, 0x984b, 0x986b, 0x986f, 0x9870, +94, 0x7121, +0x9871, 0x9874, 0x9873, 0x98aa, 0x98af, 0x98b1, 0x98b6, 0x98c4, +0x98c3, 0x98c6, 0x98e9, 0x98eb, 0x9903, 0x9909, 0x9912, 0x9914, +0x9918, 0x9921, 0x991d, 0x991e, 0x9924, 0x9920, 0x992c, 0x992e, +0x993d, 0x993e, 0x9942, 0x9949, 0x9945, 0x9950, 0x994b, 0x9951, +0x9952, 0x994c, 0x9955, 0x9997, 0x9998, 0x99a5, 0x99ad, 0x99ae, +0x99bc, 0x99df, 0x99db, 0x99dd, 0x99d8, 0x99d1, 0x99ed, 0x99ee, +0x99f1, 0x99f2, 0x99fb, 0x99f8, 0x9a01, 0x9a0f, 0x9a05, 0x99e2, +0x9a19, 0x9a2b, 0x9a37, 0x9a45, 0x9a42, 0x9a40, 0x9a43, 0x9a3e, +0x9a55, 0x9a4d, 0x9a5b, 0x9a57, 0x9a5f, 0x9a62, 0x9a65, 0x9a64, +0x9a69, 0x9a6b, 0x9a6a, 0x9aad, 0x9ab0, 0x9abc, 0x9ac0, 0x9acf, +0x9ad1, 0x9ad3, 0x9ad4, 0x9ade, 0x9adf, 0x9ae2, 0x9ae3, 0x9ae6, +0x9aef, 0x9aeb, 0x9aee, 0x9af4, 0x9af1, 0x9af7, +94, 0x7221, +0x9afb, 0x9b06, 0x9b18, 0x9b1a, 0x9b1f, 0x9b22, 0x9b23, 0x9b25, +0x9b27, 0x9b28, 0x9b29, 0x9b2a, 0x9b2e, 0x9b2f, 0x9b32, 0x9b44, +0x9b43, 0x9b4f, 0x9b4d, 0x9b4e, 0x9b51, 0x9b58, 0x9b74, 0x9b93, +0x9b83, 0x9b91, 0x9b96, 0x9b97, 0x9b9f, 0x9ba0, 0x9ba8, 0x9bb4, +0x9bc0, 0x9bca, 0x9bb9, 0x9bc6, 0x9bcf, 0x9bd1, 0x9bd2, 0x9be3, +0x9be2, 0x9be4, 0x9bd4, 0x9be1, 0x9c3a, 0x9bf2, 0x9bf1, 0x9bf0, +0x9c15, 0x9c14, 0x9c09, 0x9c13, 0x9c0c, 0x9c06, 0x9c08, 0x9c12, +0x9c0a, 0x9c04, 0x9c2e, 0x9c1b, 0x9c25, 0x9c24, 0x9c21, 0x9c30, +0x9c47, 0x9c32, 0x9c46, 0x9c3e, 0x9c5a, 0x9c60, 0x9c67, 0x9c76, +0x9c78, 0x9ce7, 0x9cec, 0x9cf0, 0x9d09, 0x9d08, 0x9ceb, 0x9d03, +0x9d06, 0x9d2a, 0x9d26, 0x9daf, 0x9d23, 0x9d1f, 0x9d44, 0x9d15, +0x9d12, 0x9d41, 0x9d3f, 0x9d3e, 0x9d46, 0x9d48, +94, 0x7321, +0x9d5d, 0x9d5e, 0x9d64, 0x9d51, 0x9d50, 0x9d59, 0x9d72, 0x9d89, +0x9d87, 0x9dab, 0x9d6f, 0x9d7a, 0x9d9a, 0x9da4, 0x9da9, 0x9db2, +0x9dc4, 0x9dc1, 0x9dbb, 0x9db8, 0x9dba, 0x9dc6, 0x9dcf, 0x9dc2, +0x9dd9, 0x9dd3, 0x9df8, 0x9de6, 0x9ded, 0x9def, 0x9dfd, 0x9e1a, +0x9e1b, 0x9e1e, 0x9e75, 0x9e79, 0x9e7d, 0x9e81, 0x9e88, 0x9e8b, +0x9e8c, 0x9e92, 0x9e95, 0x9e91, 0x9e9d, 0x9ea5, 0x9ea9, 0x9eb8, +0x9eaa, 0x9ead, 0x9761, 0x9ecc, 0x9ece, 0x9ecf, 0x9ed0, 0x9ed4, +0x9edc, 0x9ede, 0x9edd, 0x9ee0, 0x9ee5, 0x9ee8, 0x9eef, 0x9ef4, +0x9ef6, 0x9ef7, 0x9ef9, 0x9efb, 0x9efc, 0x9efd, 0x9f07, 0x9f08, +0x76b7, 0x9f15, 0x9f21, 0x9f2c, 0x9f3e, 0x9f4a, 0x9f52, 0x9f54, +0x9f63, 0x9f5f, 0x9f60, 0x9f61, 0x9f66, 0x9f67, 0x9f6c, 0x9f6a, +0x9f77, 0x9f72, 0x9f76, 0x9f95, 0x9f9c, 0x9fa0, +6, 0x7421, +0x582f, 0x69c7, 0x9059, 0x7464, 0x51dc, 0x7199, +0 diff --git a/lib/jis0212.h b/lib/jis0212.h new file mode 100644 index 0000000..67b00a3 --- /dev/null +++ b/lib/jis0212.h @@ -0,0 +1,871 @@ +11, 0x222f, +0x02d8, 0x02c7, 0x00b8, 0x02d9, 0x02dd, 0x00af, 0x02db, 0x02da, +0x007e, 0x0384, 0x0385, +3, 0x2242, +0x00a1, 0x00a6, 0x00bf, +7, 0x226b, +0x00ba, 0x00aa, 0x00a9, 0x00ae, 0x2122, 0x00a4, 0x2116, +5, 0x2661, +0x0386, 0x0388, 0x0389, 0x038a, 0x03aa, +1, 0x2667, +0x038c, +2, 0x2669, +0x038e, 0x03ab, +1, 0x266c, +0x038f, +12, 0x2671, +0x03ac, 0x03ad, 0x03ae, 0x03af, 0x03ca, 0x0390, 0x03cc, 0x03c2, +0x03cd, 0x03cb, 0x03b0, 0x03ce, +13, 0x2742, +0x0402, 0x0403, 0x0404, 0x0405, 0x0406, 0x0407, 0x0408, 0x0409, +0x040a, 0x040b, 0x040c, 0x040e, 0x040f, +13, 0x2772, +0x0452, 0x0453, 0x0454, 0x0455, 0x0456, 0x0457, 0x0458, 0x0459, +0x045a, 0x045b, 0x045c, 0x045e, 0x045f, +2, 0x2921, +0x00c6, 0x0110, +1, 0x2924, +0x0126, +1, 0x2926, +0x0132, +2, 0x2928, +0x0141, 0x013f, +3, 0x292b, +0x014a, 0x00d8, 0x0152, +2, 0x292f, +0x0166, 0x00de, +16, 0x2941, +0x00e6, 0x0111, 0x00f0, 0x0127, 0x0131, 0x0133, 0x0138, 0x0142, +0x0140, 0x0149, 0x014b, 0x00f8, 0x0153, 0x00df, 0x0167, 0x00fe, +24, 0x2a21, +0x00c1, 0x00c0, 0x00c4, 0x00c2, 0x0102, 0x01cd, 0x0100, 0x0104, +0x00c5, 0x00c3, 0x0106, 0x0108, 0x010c, 0x00c7, 0x010a, 0x010e, +0x00c9, 0x00c8, 0x00cb, 0x00ca, 0x011a, 0x0116, 0x0112, 0x0118, +62, 0x2a3a, +0x011c, 0x011e, 0x0122, 0x0120, 0x0124, 0x00cd, 0x00cc, 0x00cf, +0x00ce, 0x01cf, 0x0130, 0x012a, 0x012e, 0x0128, 0x0134, 0x0136, +0x0139, 0x013d, 0x013b, 0x0143, 0x0147, 0x0145, 0x00d1, 0x00d3, +0x00d2, 0x00d6, 0x00d4, 0x01d1, 0x0150, 0x014c, 0x00d5, 0x0154, +0x0158, 0x0156, 0x015a, 0x015c, 0x0160, 0x015e, 0x0164, 0x0162, +0x00da, 0x00d9, 0x00dc, 0x00db, 0x016c, 0x01d3, 0x0170, 0x016a, +0x0172, 0x016e, 0x0168, 0x01d7, 0x01db, 0x01d9, 0x01d5, 0x0174, +0x00dd, 0x0178, 0x0176, 0x0179, 0x017d, 0x017b, +27, 0x2b21, +0x00e1, 0x00e0, 0x00e4, 0x00e2, 0x0103, 0x01ce, 0x0101, 0x0105, +0x00e5, 0x00e3, 0x0107, 0x0109, 0x010d, 0x00e7, 0x010b, 0x010f, +0x00e9, 0x00e8, 0x00eb, 0x00ea, 0x011b, 0x0117, 0x0113, 0x0119, +0x01f5, 0x011d, 0x011f, +7, 0x2b3d, +0x0121, 0x0125, 0x00ed, 0x00ec, 0x00ef, 0x00ee, 0x01d0, +51, 0x2b45, +0x012b, 0x012f, 0x0129, 0x0135, 0x0137, 0x013a, 0x013e, 0x013c, +0x0144, 0x0148, 0x0146, 0x00f1, 0x00f3, 0x00f2, 0x00f6, 0x00f4, +0x01d2, 0x0151, 0x014d, 0x00f5, 0x0155, 0x0159, 0x0157, 0x015b, +0x015d, 0x0161, 0x015f, 0x0165, 0x0163, 0x00fa, 0x00f9, 0x00fc, +0x00fb, 0x016d, 0x01d4, 0x0171, 0x016b, 0x0173, 0x016f, 0x0169, +0x01d8, 0x01dc, 0x01da, 0x01d6, 0x0175, 0x00fd, 0x00ff, 0x0177, +0x017a, 0x017e, 0x017c, +94, 0x3021, +0x4e02, 0x4e04, 0x4e05, 0x4e0c, 0x4e12, 0x4e1f, 0x4e23, 0x4e24, +0x4e28, 0x4e2b, 0x4e2e, 0x4e2f, 0x4e30, 0x4e35, 0x4e40, 0x4e41, +0x4e44, 0x4e47, 0x4e51, 0x4e5a, 0x4e5c, 0x4e63, 0x4e68, 0x4e69, +0x4e74, 0x4e75, 0x4e79, 0x4e7f, 0x4e8d, 0x4e96, 0x4e97, 0x4e9d, +0x4eaf, 0x4eb9, 0x4ec3, 0x4ed0, 0x4eda, 0x4edb, 0x4ee0, 0x4ee1, +0x4ee2, 0x4ee8, 0x4eef, 0x4ef1, 0x4ef3, 0x4ef5, 0x4efd, 0x4efe, +0x4eff, 0x4f00, 0x4f02, 0x4f03, 0x4f08, 0x4f0b, 0x4f0c, 0x4f12, +0x4f15, 0x4f16, 0x4f17, 0x4f19, 0x4f2e, 0x4f31, 0x4f60, 0x4f33, +0x4f35, 0x4f37, 0x4f39, 0x4f3b, 0x4f3e, 0x4f40, 0x4f42, 0x4f48, +0x4f49, 0x4f4b, 0x4f4c, 0x4f52, 0x4f54, 0x4f56, 0x4f58, 0x4f5f, +0x4f63, 0x4f6a, 0x4f6c, 0x4f6e, 0x4f71, 0x4f77, 0x4f78, 0x4f79, +0x4f7a, 0x4f7d, 0x4f7e, 0x4f81, 0x4f82, 0x4f84, +94, 0x3121, +0x4f85, 0x4f89, 0x4f8a, 0x4f8c, 0x4f8e, 0x4f90, 0x4f92, 0x4f93, +0x4f94, 0x4f97, 0x4f99, 0x4f9a, 0x4f9e, 0x4f9f, 0x4fb2, 0x4fb7, +0x4fb9, 0x4fbb, 0x4fbc, 0x4fbd, 0x4fbe, 0x4fc0, 0x4fc1, 0x4fc5, +0x4fc6, 0x4fc8, 0x4fc9, 0x4fcb, 0x4fcc, 0x4fcd, 0x4fcf, 0x4fd2, +0x4fdc, 0x4fe0, 0x4fe2, 0x4ff0, 0x4ff2, 0x4ffc, 0x4ffd, 0x4fff, +0x5000, 0x5001, 0x5004, 0x5007, 0x500a, 0x500c, 0x500e, 0x5010, +0x5013, 0x5017, 0x5018, 0x501b, 0x501c, 0x501d, 0x501e, 0x5022, +0x5027, 0x502e, 0x5030, 0x5032, 0x5033, 0x5035, 0x5040, 0x5041, +0x5042, 0x5045, 0x5046, 0x504a, 0x504c, 0x504e, 0x5051, 0x5052, +0x5053, 0x5057, 0x5059, 0x505f, 0x5060, 0x5062, 0x5063, 0x5066, +0x5067, 0x506a, 0x506d, 0x5070, 0x5071, 0x503b, 0x5081, 0x5083, +0x5084, 0x5086, 0x508a, 0x508e, 0x508f, 0x5090, +94, 0x3221, +0x5092, 0x5093, 0x5094, 0x5096, 0x509b, 0x509c, 0x509e, 0x509f, +0x50a0, 0x50a1, 0x50a2, 0x50aa, 0x50af, 0x50b0, 0x50b9, 0x50ba, +0x50bd, 0x50c0, 0x50c3, 0x50c4, 0x50c7, 0x50cc, 0x50ce, 0x50d0, +0x50d3, 0x50d4, 0x50d8, 0x50dc, 0x50dd, 0x50df, 0x50e2, 0x50e4, +0x50e6, 0x50e8, 0x50e9, 0x50ef, 0x50f1, 0x50f6, 0x50fa, 0x50fe, +0x5103, 0x5106, 0x5107, 0x5108, 0x510b, 0x510c, 0x510d, 0x510e, +0x50f2, 0x5110, 0x5117, 0x5119, 0x511b, 0x511c, 0x511d, 0x511e, +0x5123, 0x5127, 0x5128, 0x512c, 0x512d, 0x512f, 0x5131, 0x5133, +0x5134, 0x5135, 0x5138, 0x5139, 0x5142, 0x514a, 0x514f, 0x5153, +0x5155, 0x5157, 0x5158, 0x515f, 0x5164, 0x5166, 0x517e, 0x5183, +0x5184, 0x518b, 0x518e, 0x5198, 0x519d, 0x51a1, 0x51a3, 0x51ad, +0x51b8, 0x51ba, 0x51bc, 0x51be, 0x51bf, 0x51c2, +94, 0x3321, +0x51c8, 0x51cf, 0x51d1, 0x51d2, 0x51d3, 0x51d5, 0x51d8, 0x51de, +0x51e2, 0x51e5, 0x51ee, 0x51f2, 0x51f3, 0x51f4, 0x51f7, 0x5201, +0x5202, 0x5205, 0x5212, 0x5213, 0x5215, 0x5216, 0x5218, 0x5222, +0x5228, 0x5231, 0x5232, 0x5235, 0x523c, 0x5245, 0x5249, 0x5255, +0x5257, 0x5258, 0x525a, 0x525c, 0x525f, 0x5260, 0x5261, 0x5266, +0x526e, 0x5277, 0x5278, 0x5279, 0x5280, 0x5282, 0x5285, 0x528a, +0x528c, 0x5293, 0x5295, 0x5296, 0x5297, 0x5298, 0x529a, 0x529c, +0x52a4, 0x52a5, 0x52a6, 0x52a7, 0x52af, 0x52b0, 0x52b6, 0x52b7, +0x52b8, 0x52ba, 0x52bb, 0x52bd, 0x52c0, 0x52c4, 0x52c6, 0x52c8, +0x52cc, 0x52cf, 0x52d1, 0x52d4, 0x52d6, 0x52db, 0x52dc, 0x52e1, +0x52e5, 0x52e8, 0x52e9, 0x52ea, 0x52ec, 0x52f0, 0x52f1, 0x52f4, +0x52f6, 0x52f7, 0x5300, 0x5303, 0x530a, 0x530b, +94, 0x3421, +0x530c, 0x5311, 0x5313, 0x5318, 0x531b, 0x531c, 0x531e, 0x531f, +0x5325, 0x5327, 0x5328, 0x5329, 0x532b, 0x532c, 0x532d, 0x5330, +0x5332, 0x5335, 0x533c, 0x533d, 0x533e, 0x5342, 0x534c, 0x534b, +0x5359, 0x535b, 0x5361, 0x5363, 0x5365, 0x536c, 0x536d, 0x5372, +0x5379, 0x537e, 0x5383, 0x5387, 0x5388, 0x538e, 0x5393, 0x5394, +0x5399, 0x539d, 0x53a1, 0x53a4, 0x53aa, 0x53ab, 0x53af, 0x53b2, +0x53b4, 0x53b5, 0x53b7, 0x53b8, 0x53ba, 0x53bd, 0x53c0, 0x53c5, +0x53cf, 0x53d2, 0x53d3, 0x53d5, 0x53da, 0x53dd, 0x53de, 0x53e0, +0x53e6, 0x53e7, 0x53f5, 0x5402, 0x5413, 0x541a, 0x5421, 0x5427, +0x5428, 0x542a, 0x542f, 0x5431, 0x5434, 0x5435, 0x5443, 0x5444, +0x5447, 0x544d, 0x544f, 0x545e, 0x5462, 0x5464, 0x5466, 0x5467, +0x5469, 0x546b, 0x546d, 0x546e, 0x5474, 0x547f, +94, 0x3521, +0x5481, 0x5483, 0x5485, 0x5488, 0x5489, 0x548d, 0x5491, 0x5495, +0x5496, 0x549c, 0x549f, 0x54a1, 0x54a6, 0x54a7, 0x54a9, 0x54aa, +0x54ad, 0x54ae, 0x54b1, 0x54b7, 0x54b9, 0x54ba, 0x54bb, 0x54bf, +0x54c6, 0x54ca, 0x54cd, 0x54ce, 0x54e0, 0x54ea, 0x54ec, 0x54ef, +0x54f6, 0x54fc, 0x54fe, 0x54ff, 0x5500, 0x5501, 0x5505, 0x5508, +0x5509, 0x550c, 0x550d, 0x550e, 0x5515, 0x552a, 0x552b, 0x5532, +0x5535, 0x5536, 0x553b, 0x553c, 0x553d, 0x5541, 0x5547, 0x5549, +0x554a, 0x554d, 0x5550, 0x5551, 0x5558, 0x555a, 0x555b, 0x555e, +0x5560, 0x5561, 0x5564, 0x5566, 0x557f, 0x5581, 0x5582, 0x5586, +0x5588, 0x558e, 0x558f, 0x5591, 0x5592, 0x5593, 0x5594, 0x5597, +0x55a3, 0x55a4, 0x55ad, 0x55b2, 0x55bf, 0x55c1, 0x55c3, 0x55c6, +0x55c9, 0x55cb, 0x55cc, 0x55ce, 0x55d1, 0x55d2, +94, 0x3621, +0x55d3, 0x55d7, 0x55d8, 0x55db, 0x55de, 0x55e2, 0x55e9, 0x55f6, +0x55ff, 0x5605, 0x5608, 0x560a, 0x560d, 0x560e, 0x560f, 0x5610, +0x5611, 0x5612, 0x5619, 0x562c, 0x5630, 0x5633, 0x5635, 0x5637, +0x5639, 0x563b, 0x563c, 0x563d, 0x563f, 0x5640, 0x5641, 0x5643, +0x5644, 0x5646, 0x5649, 0x564b, 0x564d, 0x564f, 0x5654, 0x565e, +0x5660, 0x5661, 0x5662, 0x5663, 0x5666, 0x5669, 0x566d, 0x566f, +0x5671, 0x5672, 0x5675, 0x5684, 0x5685, 0x5688, 0x568b, 0x568c, +0x5695, 0x5699, 0x569a, 0x569d, 0x569e, 0x569f, 0x56a6, 0x56a7, +0x56a8, 0x56a9, 0x56ab, 0x56ac, 0x56ad, 0x56b1, 0x56b3, 0x56b7, +0x56be, 0x56c5, 0x56c9, 0x56ca, 0x56cb, 0x56cf, 0x56d0, 0x56cc, +0x56cd, 0x56d9, 0x56dc, 0x56dd, 0x56df, 0x56e1, 0x56e4, 0x56e5, +0x56e6, 0x56e7, 0x56e8, 0x56f1, 0x56eb, 0x56ed, +94, 0x3721, +0x56f6, 0x56f7, 0x5701, 0x5702, 0x5707, 0x570a, 0x570c, 0x5711, +0x5715, 0x571a, 0x571b, 0x571d, 0x5720, 0x5722, 0x5723, 0x5724, +0x5725, 0x5729, 0x572a, 0x572c, 0x572e, 0x572f, 0x5733, 0x5734, +0x573d, 0x573e, 0x573f, 0x5745, 0x5746, 0x574c, 0x574d, 0x5752, +0x5762, 0x5765, 0x5767, 0x5768, 0x576b, 0x576d, 0x576e, 0x576f, +0x5770, 0x5771, 0x5773, 0x5774, 0x5775, 0x5777, 0x5779, 0x577a, +0x577b, 0x577c, 0x577e, 0x5781, 0x5783, 0x578c, 0x5794, 0x5797, +0x5799, 0x579a, 0x579c, 0x579d, 0x579e, 0x579f, 0x57a1, 0x5795, +0x57a7, 0x57a8, 0x57a9, 0x57ac, 0x57b8, 0x57bd, 0x57c7, 0x57c8, +0x57cc, 0x57cf, 0x57d5, 0x57dd, 0x57de, 0x57e4, 0x57e6, 0x57e7, +0x57e9, 0x57ed, 0x57f0, 0x57f5, 0x57f6, 0x57f8, 0x57fd, 0x57fe, +0x57ff, 0x5803, 0x5804, 0x5808, 0x5809, 0x57e1, +94, 0x3821, +0x580c, 0x580d, 0x581b, 0x581e, 0x581f, 0x5820, 0x5826, 0x5827, +0x582d, 0x5832, 0x5839, 0x583f, 0x5849, 0x584c, 0x584d, 0x584f, +0x5850, 0x5855, 0x585f, 0x5861, 0x5864, 0x5867, 0x5868, 0x5878, +0x587c, 0x587f, 0x5880, 0x5881, 0x5887, 0x5888, 0x5889, 0x588a, +0x588c, 0x588d, 0x588f, 0x5890, 0x5894, 0x5896, 0x589d, 0x58a0, +0x58a1, 0x58a2, 0x58a6, 0x58a9, 0x58b1, 0x58b2, 0x58c4, 0x58bc, +0x58c2, 0x58c8, 0x58cd, 0x58ce, 0x58d0, 0x58d2, 0x58d4, 0x58d6, +0x58da, 0x58dd, 0x58e1, 0x58e2, 0x58e9, 0x58f3, 0x5905, 0x5906, +0x590b, 0x590c, 0x5912, 0x5913, 0x5914, 0x8641, 0x591d, 0x5921, +0x5923, 0x5924, 0x5928, 0x592f, 0x5930, 0x5933, 0x5935, 0x5936, +0x593f, 0x5943, 0x5946, 0x5952, 0x5953, 0x5959, 0x595b, 0x595d, +0x595e, 0x595f, 0x5961, 0x5963, 0x596b, 0x596d, +94, 0x3921, +0x596f, 0x5972, 0x5975, 0x5976, 0x5979, 0x597b, 0x597c, 0x598b, +0x598c, 0x598e, 0x5992, 0x5995, 0x5997, 0x599f, 0x59a4, 0x59a7, +0x59ad, 0x59ae, 0x59af, 0x59b0, 0x59b3, 0x59b7, 0x59ba, 0x59bc, +0x59c1, 0x59c3, 0x59c4, 0x59c8, 0x59ca, 0x59cd, 0x59d2, 0x59dd, +0x59de, 0x59df, 0x59e3, 0x59e4, 0x59e7, 0x59ee, 0x59ef, 0x59f1, +0x59f2, 0x59f4, 0x59f7, 0x5a00, 0x5a04, 0x5a0c, 0x5a0d, 0x5a0e, +0x5a12, 0x5a13, 0x5a1e, 0x5a23, 0x5a24, 0x5a27, 0x5a28, 0x5a2a, +0x5a2d, 0x5a30, 0x5a44, 0x5a45, 0x5a47, 0x5a48, 0x5a4c, 0x5a50, +0x5a55, 0x5a5e, 0x5a63, 0x5a65, 0x5a67, 0x5a6d, 0x5a77, 0x5a7a, +0x5a7b, 0x5a7e, 0x5a8b, 0x5a90, 0x5a93, 0x5a96, 0x5a99, 0x5a9c, +0x5a9e, 0x5a9f, 0x5aa0, 0x5aa2, 0x5aa7, 0x5aac, 0x5ab1, 0x5ab2, +0x5ab3, 0x5ab5, 0x5ab8, 0x5aba, 0x5abb, 0x5abf, +94, 0x3a21, +0x5ac4, 0x5ac6, 0x5ac8, 0x5acf, 0x5ada, 0x5adc, 0x5ae0, 0x5ae5, +0x5aea, 0x5aee, 0x5af5, 0x5af6, 0x5afd, 0x5b00, 0x5b01, 0x5b08, +0x5b17, 0x5b34, 0x5b19, 0x5b1b, 0x5b1d, 0x5b21, 0x5b25, 0x5b2d, +0x5b38, 0x5b41, 0x5b4b, 0x5b4c, 0x5b52, 0x5b56, 0x5b5e, 0x5b68, +0x5b6e, 0x5b6f, 0x5b7c, 0x5b7d, 0x5b7e, 0x5b7f, 0x5b81, 0x5b84, +0x5b86, 0x5b8a, 0x5b8e, 0x5b90, 0x5b91, 0x5b93, 0x5b94, 0x5b96, +0x5ba8, 0x5ba9, 0x5bac, 0x5bad, 0x5baf, 0x5bb1, 0x5bb2, 0x5bb7, +0x5bba, 0x5bbc, 0x5bc0, 0x5bc1, 0x5bcd, 0x5bcf, 0x5bd6, 0x5bd7, +0x5bd8, 0x5bd9, 0x5bda, 0x5be0, 0x5bef, 0x5bf1, 0x5bf4, 0x5bfd, +0x5c0c, 0x5c17, 0x5c1e, 0x5c1f, 0x5c23, 0x5c26, 0x5c29, 0x5c2b, +0x5c2c, 0x5c2e, 0x5c30, 0x5c32, 0x5c35, 0x5c36, 0x5c59, 0x5c5a, +0x5c5c, 0x5c62, 0x5c63, 0x5c67, 0x5c68, 0x5c69, +94, 0x3b21, +0x5c6d, 0x5c70, 0x5c74, 0x5c75, 0x5c7a, 0x5c7b, 0x5c7c, 0x5c7d, +0x5c87, 0x5c88, 0x5c8a, 0x5c8f, 0x5c92, 0x5c9d, 0x5c9f, 0x5ca0, +0x5ca2, 0x5ca3, 0x5ca6, 0x5caa, 0x5cb2, 0x5cb4, 0x5cb5, 0x5cba, +0x5cc9, 0x5ccb, 0x5cd2, 0x5cdd, 0x5cd7, 0x5cee, 0x5cf1, 0x5cf2, +0x5cf4, 0x5d01, 0x5d06, 0x5d0d, 0x5d12, 0x5d2b, 0x5d23, 0x5d24, +0x5d26, 0x5d27, 0x5d31, 0x5d34, 0x5d39, 0x5d3d, 0x5d3f, 0x5d42, +0x5d43, 0x5d46, 0x5d48, 0x5d55, 0x5d51, 0x5d59, 0x5d4a, 0x5d5f, +0x5d60, 0x5d61, 0x5d62, 0x5d64, 0x5d6a, 0x5d6d, 0x5d70, 0x5d79, +0x5d7a, 0x5d7e, 0x5d7f, 0x5d81, 0x5d83, 0x5d88, 0x5d8a, 0x5d92, +0x5d93, 0x5d94, 0x5d95, 0x5d99, 0x5d9b, 0x5d9f, 0x5da0, 0x5da7, +0x5dab, 0x5db0, 0x5db4, 0x5db8, 0x5db9, 0x5dc3, 0x5dc7, 0x5dcb, +0x5dd0, 0x5dce, 0x5dd8, 0x5dd9, 0x5de0, 0x5de4, +94, 0x3c21, +0x5de9, 0x5df8, 0x5df9, 0x5e00, 0x5e07, 0x5e0d, 0x5e12, 0x5e14, +0x5e15, 0x5e18, 0x5e1f, 0x5e20, 0x5e2e, 0x5e28, 0x5e32, 0x5e35, +0x5e3e, 0x5e4b, 0x5e50, 0x5e49, 0x5e51, 0x5e56, 0x5e58, 0x5e5b, +0x5e5c, 0x5e5e, 0x5e68, 0x5e6a, 0x5e6b, 0x5e6c, 0x5e6d, 0x5e6e, +0x5e70, 0x5e80, 0x5e8b, 0x5e8e, 0x5ea2, 0x5ea4, 0x5ea5, 0x5ea8, +0x5eaa, 0x5eac, 0x5eb1, 0x5eb3, 0x5ebd, 0x5ebe, 0x5ebf, 0x5ec6, +0x5ecc, 0x5ecb, 0x5ece, 0x5ed1, 0x5ed2, 0x5ed4, 0x5ed5, 0x5edc, +0x5ede, 0x5ee5, 0x5eeb, 0x5f02, 0x5f06, 0x5f07, 0x5f08, 0x5f0e, +0x5f19, 0x5f1c, 0x5f1d, 0x5f21, 0x5f22, 0x5f23, 0x5f24, 0x5f28, +0x5f2b, 0x5f2c, 0x5f2e, 0x5f30, 0x5f34, 0x5f36, 0x5f3b, 0x5f3d, +0x5f3f, 0x5f40, 0x5f44, 0x5f45, 0x5f47, 0x5f4d, 0x5f50, 0x5f54, +0x5f58, 0x5f5b, 0x5f60, 0x5f63, 0x5f64, 0x5f67, +94, 0x3d21, +0x5f6f, 0x5f72, 0x5f74, 0x5f75, 0x5f78, 0x5f7a, 0x5f7d, 0x5f7e, +0x5f89, 0x5f8d, 0x5f8f, 0x5f96, 0x5f9c, 0x5f9d, 0x5fa2, 0x5fa7, +0x5fab, 0x5fa4, 0x5fac, 0x5faf, 0x5fb0, 0x5fb1, 0x5fb8, 0x5fc4, +0x5fc7, 0x5fc8, 0x5fc9, 0x5fcb, 0x5fd0, 0x5fd1, 0x5fd2, 0x5fd3, +0x5fd4, 0x5fde, 0x5fe1, 0x5fe2, 0x5fe8, 0x5fe9, 0x5fea, 0x5fec, +0x5fed, 0x5fee, 0x5fef, 0x5ff2, 0x5ff3, 0x5ff6, 0x5ffa, 0x5ffc, +0x6007, 0x600a, 0x600d, 0x6013, 0x6014, 0x6017, 0x6018, 0x601a, +0x601f, 0x6024, 0x602d, 0x6033, 0x6035, 0x6040, 0x6047, 0x6048, +0x6049, 0x604c, 0x6051, 0x6054, 0x6056, 0x6057, 0x605d, 0x6061, +0x6067, 0x6071, 0x607e, 0x607f, 0x6082, 0x6086, 0x6088, 0x608a, +0x608e, 0x6091, 0x6093, 0x6095, 0x6098, 0x609d, 0x609e, 0x60a2, +0x60a4, 0x60a5, 0x60a8, 0x60b0, 0x60b1, 0x60b7, +94, 0x3e21, +0x60bb, 0x60be, 0x60c2, 0x60c4, 0x60c8, 0x60c9, 0x60ca, 0x60cb, +0x60ce, 0x60cf, 0x60d4, 0x60d5, 0x60d9, 0x60db, 0x60dd, 0x60de, +0x60e2, 0x60e5, 0x60f2, 0x60f5, 0x60f8, 0x60fc, 0x60fd, 0x6102, +0x6107, 0x610a, 0x610c, 0x6110, 0x6111, 0x6112, 0x6113, 0x6114, +0x6116, 0x6117, 0x6119, 0x611c, 0x611e, 0x6122, 0x612a, 0x612b, +0x6130, 0x6131, 0x6135, 0x6136, 0x6137, 0x6139, 0x6141, 0x6145, +0x6146, 0x6149, 0x615e, 0x6160, 0x616c, 0x6172, 0x6178, 0x617b, +0x617c, 0x617f, 0x6180, 0x6181, 0x6183, 0x6184, 0x618b, 0x618d, +0x6192, 0x6193, 0x6197, 0x6198, 0x619c, 0x619d, 0x619f, 0x61a0, +0x61a5, 0x61a8, 0x61aa, 0x61ad, 0x61b8, 0x61b9, 0x61bc, 0x61c0, +0x61c1, 0x61c2, 0x61ce, 0x61cf, 0x61d5, 0x61dc, 0x61dd, 0x61de, +0x61df, 0x61e1, 0x61e2, 0x61e7, 0x61e9, 0x61e5, +94, 0x3f21, +0x61ec, 0x61ed, 0x61ef, 0x6201, 0x6203, 0x6204, 0x6207, 0x6213, +0x6215, 0x621c, 0x6220, 0x6222, 0x6223, 0x6227, 0x6229, 0x622b, +0x6239, 0x623d, 0x6242, 0x6243, 0x6244, 0x6246, 0x624c, 0x6250, +0x6251, 0x6252, 0x6254, 0x6256, 0x625a, 0x625c, 0x6264, 0x626d, +0x626f, 0x6273, 0x627a, 0x627d, 0x628d, 0x628e, 0x628f, 0x6290, +0x62a6, 0x62a8, 0x62b3, 0x62b6, 0x62b7, 0x62ba, 0x62be, 0x62bf, +0x62c4, 0x62ce, 0x62d5, 0x62d6, 0x62da, 0x62ea, 0x62f2, 0x62f4, +0x62fc, 0x62fd, 0x6303, 0x6304, 0x630a, 0x630b, 0x630d, 0x6310, +0x6313, 0x6316, 0x6318, 0x6329, 0x632a, 0x632d, 0x6335, 0x6336, +0x6339, 0x633c, 0x6341, 0x6342, 0x6343, 0x6344, 0x6346, 0x634a, +0x634b, 0x634e, 0x6352, 0x6353, 0x6354, 0x6358, 0x635b, 0x6365, +0x6366, 0x636c, 0x636d, 0x6371, 0x6374, 0x6375, +94, 0x4021, +0x6378, 0x637c, 0x637d, 0x637f, 0x6382, 0x6384, 0x6387, 0x638a, +0x6390, 0x6394, 0x6395, 0x6399, 0x639a, 0x639e, 0x63a4, 0x63a6, +0x63ad, 0x63ae, 0x63af, 0x63bd, 0x63c1, 0x63c5, 0x63c8, 0x63ce, +0x63d1, 0x63d3, 0x63d4, 0x63d5, 0x63dc, 0x63e0, 0x63e5, 0x63ea, +0x63ec, 0x63f2, 0x63f3, 0x63f5, 0x63f8, 0x63f9, 0x6409, 0x640a, +0x6410, 0x6412, 0x6414, 0x6418, 0x641e, 0x6420, 0x6422, 0x6424, +0x6425, 0x6429, 0x642a, 0x642f, 0x6430, 0x6435, 0x643d, 0x643f, +0x644b, 0x644f, 0x6451, 0x6452, 0x6453, 0x6454, 0x645a, 0x645b, +0x645c, 0x645d, 0x645f, 0x6460, 0x6461, 0x6463, 0x646d, 0x6473, +0x6474, 0x647b, 0x647d, 0x6485, 0x6487, 0x648f, 0x6490, 0x6491, +0x6498, 0x6499, 0x649b, 0x649d, 0x649f, 0x64a1, 0x64a3, 0x64a6, +0x64a8, 0x64ac, 0x64b3, 0x64bd, 0x64be, 0x64bf, +94, 0x4121, +0x64c4, 0x64c9, 0x64ca, 0x64cb, 0x64cc, 0x64ce, 0x64d0, 0x64d1, +0x64d5, 0x64d7, 0x64e4, 0x64e5, 0x64e9, 0x64ea, 0x64ed, 0x64f0, +0x64f5, 0x64f7, 0x64fb, 0x64ff, 0x6501, 0x6504, 0x6508, 0x6509, +0x650a, 0x650f, 0x6513, 0x6514, 0x6516, 0x6519, 0x651b, 0x651e, +0x651f, 0x6522, 0x6526, 0x6529, 0x652e, 0x6531, 0x653a, 0x653c, +0x653d, 0x6543, 0x6547, 0x6549, 0x6550, 0x6552, 0x6554, 0x655f, +0x6560, 0x6567, 0x656b, 0x657a, 0x657d, 0x6581, 0x6585, 0x658a, +0x6592, 0x6595, 0x6598, 0x659d, 0x65a0, 0x65a3, 0x65a6, 0x65ae, +0x65b2, 0x65b3, 0x65b4, 0x65bf, 0x65c2, 0x65c8, 0x65c9, 0x65ce, +0x65d0, 0x65d4, 0x65d6, 0x65d8, 0x65df, 0x65f0, 0x65f2, 0x65f4, +0x65f5, 0x65f9, 0x65fe, 0x65ff, 0x6600, 0x6604, 0x6608, 0x6609, +0x660d, 0x6611, 0x6612, 0x6615, 0x6616, 0x661d, +94, 0x4221, +0x661e, 0x6621, 0x6622, 0x6623, 0x6624, 0x6626, 0x6629, 0x662a, +0x662b, 0x662c, 0x662e, 0x6630, 0x6631, 0x6633, 0x6639, 0x6637, +0x6640, 0x6645, 0x6646, 0x664a, 0x664c, 0x6651, 0x664e, 0x6657, +0x6658, 0x6659, 0x665b, 0x665c, 0x6660, 0x6661, 0x66fb, 0x666a, +0x666b, 0x666c, 0x667e, 0x6673, 0x6675, 0x667f, 0x6677, 0x6678, +0x6679, 0x667b, 0x6680, 0x667c, 0x668b, 0x668c, 0x668d, 0x6690, +0x6692, 0x6699, 0x669a, 0x669b, 0x669c, 0x669f, 0x66a0, 0x66a4, +0x66ad, 0x66b1, 0x66b2, 0x66b5, 0x66bb, 0x66bf, 0x66c0, 0x66c2, +0x66c3, 0x66c8, 0x66cc, 0x66ce, 0x66cf, 0x66d4, 0x66db, 0x66df, +0x66e8, 0x66eb, 0x66ec, 0x66ee, 0x66fa, 0x6705, 0x6707, 0x670e, +0x6713, 0x6719, 0x671c, 0x6720, 0x6722, 0x6733, 0x673e, 0x6745, +0x6747, 0x6748, 0x674c, 0x6754, 0x6755, 0x675d, +94, 0x4321, +0x6766, 0x676c, 0x676e, 0x6774, 0x6776, 0x677b, 0x6781, 0x6784, +0x678e, 0x678f, 0x6791, 0x6793, 0x6796, 0x6798, 0x6799, 0x679b, +0x67b0, 0x67b1, 0x67b2, 0x67b5, 0x67bb, 0x67bc, 0x67bd, 0x67f9, +0x67c0, 0x67c2, 0x67c3, 0x67c5, 0x67c8, 0x67c9, 0x67d2, 0x67d7, +0x67d9, 0x67dc, 0x67e1, 0x67e6, 0x67f0, 0x67f2, 0x67f6, 0x67f7, +0x6852, 0x6814, 0x6819, 0x681d, 0x681f, 0x6828, 0x6827, 0x682c, +0x682d, 0x682f, 0x6830, 0x6831, 0x6833, 0x683b, 0x683f, 0x6844, +0x6845, 0x684a, 0x684c, 0x6855, 0x6857, 0x6858, 0x685b, 0x686b, +0x686e, 0x686f, 0x6870, 0x6871, 0x6872, 0x6875, 0x6879, 0x687a, +0x687b, 0x687c, 0x6882, 0x6884, 0x6886, 0x6888, 0x6896, 0x6898, +0x689a, 0x689c, 0x68a1, 0x68a3, 0x68a5, 0x68a9, 0x68aa, 0x68ae, +0x68b2, 0x68bb, 0x68c5, 0x68c8, 0x68cc, 0x68cf, +94, 0x4421, +0x68d0, 0x68d1, 0x68d3, 0x68d6, 0x68d9, 0x68dc, 0x68dd, 0x68e5, +0x68e8, 0x68ea, 0x68eb, 0x68ec, 0x68ed, 0x68f0, 0x68f1, 0x68f5, +0x68f6, 0x68fb, 0x68fc, 0x68fd, 0x6906, 0x6909, 0x690a, 0x6910, +0x6911, 0x6913, 0x6916, 0x6917, 0x6931, 0x6933, 0x6935, 0x6938, +0x693b, 0x6942, 0x6945, 0x6949, 0x694e, 0x6957, 0x695b, 0x6963, +0x6964, 0x6965, 0x6966, 0x6968, 0x6969, 0x696c, 0x6970, 0x6971, +0x6972, 0x697a, 0x697b, 0x697f, 0x6980, 0x698d, 0x6992, 0x6996, +0x6998, 0x69a1, 0x69a5, 0x69a6, 0x69a8, 0x69ab, 0x69ad, 0x69af, +0x69b7, 0x69b8, 0x69ba, 0x69bc, 0x69c5, 0x69c8, 0x69d1, 0x69d6, +0x69d7, 0x69e2, 0x69e5, 0x69ee, 0x69ef, 0x69f1, 0x69f3, 0x69f5, +0x69fe, 0x6a00, 0x6a01, 0x6a03, 0x6a0f, 0x6a11, 0x6a15, 0x6a1a, +0x6a1d, 0x6a20, 0x6a24, 0x6a28, 0x6a30, 0x6a32, +94, 0x4521, +0x6a34, 0x6a37, 0x6a3b, 0x6a3e, 0x6a3f, 0x6a45, 0x6a46, 0x6a49, +0x6a4a, 0x6a4e, 0x6a50, 0x6a51, 0x6a52, 0x6a55, 0x6a56, 0x6a5b, +0x6a64, 0x6a67, 0x6a6a, 0x6a71, 0x6a73, 0x6a7e, 0x6a81, 0x6a83, +0x6a86, 0x6a87, 0x6a89, 0x6a8b, 0x6a91, 0x6a9b, 0x6a9d, 0x6a9e, +0x6a9f, 0x6aa5, 0x6aab, 0x6aaf, 0x6ab0, 0x6ab1, 0x6ab4, 0x6abd, +0x6abe, 0x6abf, 0x6ac6, 0x6ac9, 0x6ac8, 0x6acc, 0x6ad0, 0x6ad4, +0x6ad5, 0x6ad6, 0x6adc, 0x6add, 0x6ae4, 0x6ae7, 0x6aec, 0x6af0, +0x6af1, 0x6af2, 0x6afc, 0x6afd, 0x6b02, 0x6b03, 0x6b06, 0x6b07, +0x6b09, 0x6b0f, 0x6b10, 0x6b11, 0x6b17, 0x6b1b, 0x6b1e, 0x6b24, +0x6b28, 0x6b2b, 0x6b2c, 0x6b2f, 0x6b35, 0x6b36, 0x6b3b, 0x6b3f, +0x6b46, 0x6b4a, 0x6b4d, 0x6b52, 0x6b56, 0x6b58, 0x6b5d, 0x6b60, +0x6b67, 0x6b6b, 0x6b6e, 0x6b70, 0x6b75, 0x6b7d, +94, 0x4621, +0x6b7e, 0x6b82, 0x6b85, 0x6b97, 0x6b9b, 0x6b9f, 0x6ba0, 0x6ba2, +0x6ba3, 0x6ba8, 0x6ba9, 0x6bac, 0x6bad, 0x6bae, 0x6bb0, 0x6bb8, +0x6bb9, 0x6bbd, 0x6bbe, 0x6bc3, 0x6bc4, 0x6bc9, 0x6bcc, 0x6bd6, +0x6bda, 0x6be1, 0x6be3, 0x6be6, 0x6be7, 0x6bee, 0x6bf1, 0x6bf7, +0x6bf9, 0x6bff, 0x6c02, 0x6c04, 0x6c05, 0x6c09, 0x6c0d, 0x6c0e, +0x6c10, 0x6c12, 0x6c19, 0x6c1f, 0x6c26, 0x6c27, 0x6c28, 0x6c2c, +0x6c2e, 0x6c33, 0x6c35, 0x6c36, 0x6c3a, 0x6c3b, 0x6c3f, 0x6c4a, +0x6c4b, 0x6c4d, 0x6c4f, 0x6c52, 0x6c54, 0x6c59, 0x6c5b, 0x6c5c, +0x6c6b, 0x6c6d, 0x6c6f, 0x6c74, 0x6c76, 0x6c78, 0x6c79, 0x6c7b, +0x6c85, 0x6c86, 0x6c87, 0x6c89, 0x6c94, 0x6c95, 0x6c97, 0x6c98, +0x6c9c, 0x6c9f, 0x6cb0, 0x6cb2, 0x6cb4, 0x6cc2, 0x6cc6, 0x6ccd, +0x6ccf, 0x6cd0, 0x6cd1, 0x6cd2, 0x6cd4, 0x6cd6, +94, 0x4721, +0x6cda, 0x6cdc, 0x6ce0, 0x6ce7, 0x6ce9, 0x6ceb, 0x6cec, 0x6cee, +0x6cf2, 0x6cf4, 0x6d04, 0x6d07, 0x6d0a, 0x6d0e, 0x6d0f, 0x6d11, +0x6d13, 0x6d1a, 0x6d26, 0x6d27, 0x6d28, 0x6c67, 0x6d2e, 0x6d2f, +0x6d31, 0x6d39, 0x6d3c, 0x6d3f, 0x6d57, 0x6d5e, 0x6d5f, 0x6d61, +0x6d65, 0x6d67, 0x6d6f, 0x6d70, 0x6d7c, 0x6d82, 0x6d87, 0x6d91, +0x6d92, 0x6d94, 0x6d96, 0x6d97, 0x6d98, 0x6daa, 0x6dac, 0x6db4, +0x6db7, 0x6db9, 0x6dbd, 0x6dbf, 0x6dc4, 0x6dc8, 0x6dca, 0x6dce, +0x6dcf, 0x6dd6, 0x6ddb, 0x6ddd, 0x6ddf, 0x6de0, 0x6de2, 0x6de5, +0x6de9, 0x6def, 0x6df0, 0x6df4, 0x6df6, 0x6dfc, 0x6e00, 0x6e04, +0x6e1e, 0x6e22, 0x6e27, 0x6e32, 0x6e36, 0x6e39, 0x6e3b, 0x6e3c, +0x6e44, 0x6e45, 0x6e48, 0x6e49, 0x6e4b, 0x6e4f, 0x6e51, 0x6e52, +0x6e53, 0x6e54, 0x6e57, 0x6e5c, 0x6e5d, 0x6e5e, +94, 0x4821, +0x6e62, 0x6e63, 0x6e68, 0x6e73, 0x6e7b, 0x6e7d, 0x6e8d, 0x6e93, +0x6e99, 0x6ea0, 0x6ea7, 0x6ead, 0x6eae, 0x6eb1, 0x6eb3, 0x6ebb, +0x6ebf, 0x6ec0, 0x6ec1, 0x6ec3, 0x6ec7, 0x6ec8, 0x6eca, 0x6ecd, +0x6ece, 0x6ecf, 0x6eeb, 0x6eed, 0x6eee, 0x6ef9, 0x6efb, 0x6efd, +0x6f04, 0x6f08, 0x6f0a, 0x6f0c, 0x6f0d, 0x6f16, 0x6f18, 0x6f1a, +0x6f1b, 0x6f26, 0x6f29, 0x6f2a, 0x6f2f, 0x6f30, 0x6f33, 0x6f36, +0x6f3b, 0x6f3c, 0x6f2d, 0x6f4f, 0x6f51, 0x6f52, 0x6f53, 0x6f57, +0x6f59, 0x6f5a, 0x6f5d, 0x6f5e, 0x6f61, 0x6f62, 0x6f68, 0x6f6c, +0x6f7d, 0x6f7e, 0x6f83, 0x6f87, 0x6f88, 0x6f8b, 0x6f8c, 0x6f8d, +0x6f90, 0x6f92, 0x6f93, 0x6f94, 0x6f96, 0x6f9a, 0x6f9f, 0x6fa0, +0x6fa5, 0x6fa6, 0x6fa7, 0x6fa8, 0x6fae, 0x6faf, 0x6fb0, 0x6fb5, +0x6fb6, 0x6fbc, 0x6fc5, 0x6fc7, 0x6fc8, 0x6fca, +94, 0x4921, +0x6fda, 0x6fde, 0x6fe8, 0x6fe9, 0x6ff0, 0x6ff5, 0x6ff9, 0x6ffc, +0x6ffd, 0x7000, 0x7005, 0x7006, 0x7007, 0x700d, 0x7017, 0x7020, +0x7023, 0x702f, 0x7034, 0x7037, 0x7039, 0x703c, 0x7043, 0x7044, +0x7048, 0x7049, 0x704a, 0x704b, 0x7054, 0x7055, 0x705d, 0x705e, +0x704e, 0x7064, 0x7065, 0x706c, 0x706e, 0x7075, 0x7076, 0x707e, +0x7081, 0x7085, 0x7086, 0x7094, 0x7095, 0x7096, 0x7097, 0x7098, +0x709b, 0x70a4, 0x70ab, 0x70b0, 0x70b1, 0x70b4, 0x70b7, 0x70ca, +0x70d1, 0x70d3, 0x70d4, 0x70d5, 0x70d6, 0x70d8, 0x70dc, 0x70e4, +0x70fa, 0x7103, 0x7104, 0x7105, 0x7106, 0x7107, 0x710b, 0x710c, +0x710f, 0x711e, 0x7120, 0x712b, 0x712d, 0x712f, 0x7130, 0x7131, +0x7138, 0x7141, 0x7145, 0x7146, 0x7147, 0x714a, 0x714b, 0x7150, +0x7152, 0x7157, 0x715a, 0x715c, 0x715e, 0x7160, +94, 0x4a21, +0x7168, 0x7179, 0x7180, 0x7185, 0x7187, 0x718c, 0x7192, 0x719a, +0x719b, 0x71a0, 0x71a2, 0x71af, 0x71b0, 0x71b2, 0x71b3, 0x71ba, +0x71bf, 0x71c0, 0x71c1, 0x71c4, 0x71cb, 0x71cc, 0x71d3, 0x71d6, +0x71d9, 0x71da, 0x71dc, 0x71f8, 0x71fe, 0x7200, 0x7207, 0x7208, +0x7209, 0x7213, 0x7217, 0x721a, 0x721d, 0x721f, 0x7224, 0x722b, +0x722f, 0x7234, 0x7238, 0x7239, 0x7241, 0x7242, 0x7243, 0x7245, +0x724e, 0x724f, 0x7250, 0x7253, 0x7255, 0x7256, 0x725a, 0x725c, +0x725e, 0x7260, 0x7263, 0x7268, 0x726b, 0x726e, 0x726f, 0x7271, +0x7277, 0x7278, 0x727b, 0x727c, 0x727f, 0x7284, 0x7289, 0x728d, +0x728e, 0x7293, 0x729b, 0x72a8, 0x72ad, 0x72ae, 0x72b1, 0x72b4, +0x72be, 0x72c1, 0x72c7, 0x72c9, 0x72cc, 0x72d5, 0x72d6, 0x72d8, +0x72df, 0x72e5, 0x72f3, 0x72f4, 0x72fa, 0x72fb, +94, 0x4b21, +0x72fe, 0x7302, 0x7304, 0x7305, 0x7307, 0x730b, 0x730d, 0x7312, +0x7313, 0x7318, 0x7319, 0x731e, 0x7322, 0x7324, 0x7327, 0x7328, +0x732c, 0x7331, 0x7332, 0x7335, 0x733a, 0x733b, 0x733d, 0x7343, +0x734d, 0x7350, 0x7352, 0x7356, 0x7358, 0x735d, 0x735e, 0x735f, +0x7360, 0x7366, 0x7367, 0x7369, 0x736b, 0x736c, 0x736e, 0x736f, +0x7371, 0x7377, 0x7379, 0x737c, 0x7380, 0x7381, 0x7383, 0x7385, +0x7386, 0x738e, 0x7390, 0x7393, 0x7395, 0x7397, 0x7398, 0x739c, +0x739e, 0x739f, 0x73a0, 0x73a2, 0x73a5, 0x73a6, 0x73aa, 0x73ab, +0x73ad, 0x73b5, 0x73b7, 0x73b9, 0x73bc, 0x73bd, 0x73bf, 0x73c5, +0x73c6, 0x73c9, 0x73cb, 0x73cc, 0x73cf, 0x73d2, 0x73d3, 0x73d6, +0x73d9, 0x73dd, 0x73e1, 0x73e3, 0x73e6, 0x73e7, 0x73e9, 0x73f4, +0x73f5, 0x73f7, 0x73f9, 0x73fa, 0x73fb, 0x73fd, +94, 0x4c21, +0x73ff, 0x7400, 0x7401, 0x7404, 0x7407, 0x740a, 0x7411, 0x741a, +0x741b, 0x7424, 0x7426, 0x7428, 0x7429, 0x742a, 0x742b, 0x742c, +0x742d, 0x742e, 0x742f, 0x7430, 0x7431, 0x7439, 0x7440, 0x7443, +0x7444, 0x7446, 0x7447, 0x744b, 0x744d, 0x7451, 0x7452, 0x7457, +0x745d, 0x7462, 0x7466, 0x7467, 0x7468, 0x746b, 0x746d, 0x746e, +0x7471, 0x7472, 0x7480, 0x7481, 0x7485, 0x7486, 0x7487, 0x7489, +0x748f, 0x7490, 0x7491, 0x7492, 0x7498, 0x7499, 0x749a, 0x749c, +0x749f, 0x74a0, 0x74a1, 0x74a3, 0x74a6, 0x74a8, 0x74a9, 0x74aa, +0x74ab, 0x74ae, 0x74af, 0x74b1, 0x74b2, 0x74b5, 0x74b9, 0x74bb, +0x74bf, 0x74c8, 0x74c9, 0x74cc, 0x74d0, 0x74d3, 0x74d8, 0x74da, +0x74db, 0x74de, 0x74df, 0x74e4, 0x74e8, 0x74ea, 0x74eb, 0x74ef, +0x74f4, 0x74fa, 0x74fb, 0x74fc, 0x74ff, 0x7506, +94, 0x4d21, +0x7512, 0x7516, 0x7517, 0x7520, 0x7521, 0x7524, 0x7527, 0x7529, +0x752a, 0x752f, 0x7536, 0x7539, 0x753d, 0x753e, 0x753f, 0x7540, +0x7543, 0x7547, 0x7548, 0x754e, 0x7550, 0x7552, 0x7557, 0x755e, +0x755f, 0x7561, 0x756f, 0x7571, 0x7579, 0x757a, 0x757b, 0x757c, +0x757d, 0x757e, 0x7581, 0x7585, 0x7590, 0x7592, 0x7593, 0x7595, +0x7599, 0x759c, 0x75a2, 0x75a4, 0x75b4, 0x75ba, 0x75bf, 0x75c0, +0x75c1, 0x75c4, 0x75c6, 0x75cc, 0x75ce, 0x75cf, 0x75d7, 0x75dc, +0x75df, 0x75e0, 0x75e1, 0x75e4, 0x75e7, 0x75ec, 0x75ee, 0x75ef, +0x75f1, 0x75f9, 0x7600, 0x7602, 0x7603, 0x7604, 0x7607, 0x7608, +0x760a, 0x760c, 0x760f, 0x7612, 0x7613, 0x7615, 0x7616, 0x7619, +0x761b, 0x761c, 0x761d, 0x761e, 0x7623, 0x7625, 0x7626, 0x7629, +0x762d, 0x7632, 0x7633, 0x7635, 0x7638, 0x7639, +94, 0x4e21, +0x763a, 0x763c, 0x764a, 0x7640, 0x7641, 0x7643, 0x7644, 0x7645, +0x7649, 0x764b, 0x7655, 0x7659, 0x765f, 0x7664, 0x7665, 0x766d, +0x766e, 0x766f, 0x7671, 0x7674, 0x7681, 0x7685, 0x768c, 0x768d, +0x7695, 0x769b, 0x769c, 0x769d, 0x769f, 0x76a0, 0x76a2, 0x76a3, +0x76a4, 0x76a5, 0x76a6, 0x76a7, 0x76a8, 0x76aa, 0x76ad, 0x76bd, +0x76c1, 0x76c5, 0x76c9, 0x76cb, 0x76cc, 0x76ce, 0x76d4, 0x76d9, +0x76e0, 0x76e6, 0x76e8, 0x76ec, 0x76f0, 0x76f1, 0x76f6, 0x76f9, +0x76fc, 0x7700, 0x7706, 0x770a, 0x770e, 0x7712, 0x7714, 0x7715, +0x7717, 0x7719, 0x771a, 0x771c, 0x7722, 0x7728, 0x772d, 0x772e, +0x772f, 0x7734, 0x7735, 0x7736, 0x7739, 0x773d, 0x773e, 0x7742, +0x7745, 0x7746, 0x774a, 0x774d, 0x774e, 0x774f, 0x7752, 0x7756, +0x7757, 0x775c, 0x775e, 0x775f, 0x7760, 0x7762, +94, 0x4f21, +0x7764, 0x7767, 0x776a, 0x776c, 0x7770, 0x7772, 0x7773, 0x7774, +0x777a, 0x777d, 0x7780, 0x7784, 0x778c, 0x778d, 0x7794, 0x7795, +0x7796, 0x779a, 0x779f, 0x77a2, 0x77a7, 0x77aa, 0x77ae, 0x77af, +0x77b1, 0x77b5, 0x77be, 0x77c3, 0x77c9, 0x77d1, 0x77d2, 0x77d5, +0x77d9, 0x77de, 0x77df, 0x77e0, 0x77e4, 0x77e6, 0x77ea, 0x77ec, +0x77f0, 0x77f1, 0x77f4, 0x77f8, 0x77fb, 0x7805, 0x7806, 0x7809, +0x780d, 0x780e, 0x7811, 0x781d, 0x7821, 0x7822, 0x7823, 0x782d, +0x782e, 0x7830, 0x7835, 0x7837, 0x7843, 0x7844, 0x7847, 0x7848, +0x784c, 0x784e, 0x7852, 0x785c, 0x785e, 0x7860, 0x7861, 0x7863, +0x7864, 0x7868, 0x786a, 0x786e, 0x787a, 0x787e, 0x788a, 0x788f, +0x7894, 0x7898, 0x78a1, 0x789d, 0x789e, 0x789f, 0x78a4, 0x78a8, +0x78ac, 0x78ad, 0x78b0, 0x78b1, 0x78b2, 0x78b3, +94, 0x5021, +0x78bb, 0x78bd, 0x78bf, 0x78c7, 0x78c8, 0x78c9, 0x78cc, 0x78ce, +0x78d2, 0x78d3, 0x78d5, 0x78d6, 0x78e4, 0x78db, 0x78df, 0x78e0, +0x78e1, 0x78e6, 0x78ea, 0x78f2, 0x78f3, 0x7900, 0x78f6, 0x78f7, +0x78fa, 0x78fb, 0x78ff, 0x7906, 0x790c, 0x7910, 0x791a, 0x791c, +0x791e, 0x791f, 0x7920, 0x7925, 0x7927, 0x7929, 0x792d, 0x7931, +0x7934, 0x7935, 0x793b, 0x793d, 0x793f, 0x7944, 0x7945, 0x7946, +0x794a, 0x794b, 0x794f, 0x7951, 0x7954, 0x7958, 0x795b, 0x795c, +0x7967, 0x7969, 0x796b, 0x7972, 0x7979, 0x797b, 0x797c, 0x797e, +0x798b, 0x798c, 0x7991, 0x7993, 0x7994, 0x7995, 0x7996, 0x7998, +0x799b, 0x799c, 0x79a1, 0x79a8, 0x79a9, 0x79ab, 0x79af, 0x79b1, +0x79b4, 0x79b8, 0x79bb, 0x79c2, 0x79c4, 0x79c7, 0x79c8, 0x79ca, +0x79cf, 0x79d4, 0x79d6, 0x79da, 0x79dd, 0x79de, +94, 0x5121, +0x79e0, 0x79e2, 0x79e5, 0x79ea, 0x79eb, 0x79ed, 0x79f1, 0x79f8, +0x79fc, 0x7a02, 0x7a03, 0x7a07, 0x7a09, 0x7a0a, 0x7a0c, 0x7a11, +0x7a15, 0x7a1b, 0x7a1e, 0x7a21, 0x7a27, 0x7a2b, 0x7a2d, 0x7a2f, +0x7a30, 0x7a34, 0x7a35, 0x7a38, 0x7a39, 0x7a3a, 0x7a44, 0x7a45, +0x7a47, 0x7a48, 0x7a4c, 0x7a55, 0x7a56, 0x7a59, 0x7a5c, 0x7a5d, +0x7a5f, 0x7a60, 0x7a65, 0x7a67, 0x7a6a, 0x7a6d, 0x7a75, 0x7a78, +0x7a7e, 0x7a80, 0x7a82, 0x7a85, 0x7a86, 0x7a8a, 0x7a8b, 0x7a90, +0x7a91, 0x7a94, 0x7a9e, 0x7aa0, 0x7aa3, 0x7aac, 0x7ab3, 0x7ab5, +0x7ab9, 0x7abb, 0x7abc, 0x7ac6, 0x7ac9, 0x7acc, 0x7ace, 0x7ad1, +0x7adb, 0x7ae8, 0x7ae9, 0x7aeb, 0x7aec, 0x7af1, 0x7af4, 0x7afb, +0x7afd, 0x7afe, 0x7b07, 0x7b14, 0x7b1f, 0x7b23, 0x7b27, 0x7b29, +0x7b2a, 0x7b2b, 0x7b2d, 0x7b2e, 0x7b2f, 0x7b30, +94, 0x5221, +0x7b31, 0x7b34, 0x7b3d, 0x7b3f, 0x7b40, 0x7b41, 0x7b47, 0x7b4e, +0x7b55, 0x7b60, 0x7b64, 0x7b66, 0x7b69, 0x7b6a, 0x7b6d, 0x7b6f, +0x7b72, 0x7b73, 0x7b77, 0x7b84, 0x7b89, 0x7b8e, 0x7b90, 0x7b91, +0x7b96, 0x7b9b, 0x7b9e, 0x7ba0, 0x7ba5, 0x7bac, 0x7baf, 0x7bb0, +0x7bb2, 0x7bb5, 0x7bb6, 0x7bba, 0x7bbb, 0x7bbc, 0x7bbd, 0x7bc2, +0x7bc5, 0x7bc8, 0x7bca, 0x7bd4, 0x7bd6, 0x7bd7, 0x7bd9, 0x7bda, +0x7bdb, 0x7be8, 0x7bea, 0x7bf2, 0x7bf4, 0x7bf5, 0x7bf8, 0x7bf9, +0x7bfa, 0x7bfc, 0x7bfe, 0x7c01, 0x7c02, 0x7c03, 0x7c04, 0x7c06, +0x7c09, 0x7c0b, 0x7c0c, 0x7c0e, 0x7c0f, 0x7c19, 0x7c1b, 0x7c20, +0x7c25, 0x7c26, 0x7c28, 0x7c2c, 0x7c31, 0x7c33, 0x7c34, 0x7c36, +0x7c39, 0x7c3a, 0x7c46, 0x7c4a, 0x7c55, 0x7c51, 0x7c52, 0x7c53, +0x7c59, 0x7c5a, 0x7c5b, 0x7c5c, 0x7c5d, 0x7c5e, +94, 0x5321, +0x7c61, 0x7c63, 0x7c67, 0x7c69, 0x7c6d, 0x7c6e, 0x7c70, 0x7c72, +0x7c79, 0x7c7c, 0x7c7d, 0x7c86, 0x7c87, 0x7c8f, 0x7c94, 0x7c9e, +0x7ca0, 0x7ca6, 0x7cb0, 0x7cb6, 0x7cb7, 0x7cba, 0x7cbb, 0x7cbc, +0x7cbf, 0x7cc4, 0x7cc7, 0x7cc8, 0x7cc9, 0x7ccd, 0x7ccf, 0x7cd3, +0x7cd4, 0x7cd5, 0x7cd7, 0x7cd9, 0x7cda, 0x7cdd, 0x7ce6, 0x7ce9, +0x7ceb, 0x7cf5, 0x7d03, 0x7d07, 0x7d08, 0x7d09, 0x7d0f, 0x7d11, +0x7d12, 0x7d13, 0x7d16, 0x7d1d, 0x7d1e, 0x7d23, 0x7d26, 0x7d2a, +0x7d2d, 0x7d31, 0x7d3c, 0x7d3d, 0x7d3e, 0x7d40, 0x7d41, 0x7d47, +0x7d48, 0x7d4d, 0x7d51, 0x7d53, 0x7d57, 0x7d59, 0x7d5a, 0x7d5c, +0x7d5d, 0x7d65, 0x7d67, 0x7d6a, 0x7d70, 0x7d78, 0x7d7a, 0x7d7b, +0x7d7f, 0x7d81, 0x7d82, 0x7d83, 0x7d85, 0x7d86, 0x7d88, 0x7d8b, +0x7d8c, 0x7d8d, 0x7d91, 0x7d96, 0x7d97, 0x7d9d, +94, 0x5421, +0x7d9e, 0x7da6, 0x7da7, 0x7daa, 0x7db3, 0x7db6, 0x7db7, 0x7db9, +0x7dc2, 0x7dc3, 0x7dc4, 0x7dc5, 0x7dc6, 0x7dcc, 0x7dcd, 0x7dce, +0x7dd7, 0x7dd9, 0x7e00, 0x7de2, 0x7de5, 0x7de6, 0x7dea, 0x7deb, +0x7ded, 0x7df1, 0x7df5, 0x7df6, 0x7df9, 0x7dfa, 0x7e08, 0x7e10, +0x7e11, 0x7e15, 0x7e17, 0x7e1c, 0x7e1d, 0x7e20, 0x7e27, 0x7e28, +0x7e2c, 0x7e2d, 0x7e2f, 0x7e33, 0x7e36, 0x7e3f, 0x7e44, 0x7e45, +0x7e47, 0x7e4e, 0x7e50, 0x7e52, 0x7e58, 0x7e5f, 0x7e61, 0x7e62, +0x7e65, 0x7e6b, 0x7e6e, 0x7e6f, 0x7e73, 0x7e78, 0x7e7e, 0x7e81, +0x7e86, 0x7e87, 0x7e8a, 0x7e8d, 0x7e91, 0x7e95, 0x7e98, 0x7e9a, +0x7e9d, 0x7e9e, 0x7f3c, 0x7f3b, 0x7f3d, 0x7f3e, 0x7f3f, 0x7f43, +0x7f44, 0x7f47, 0x7f4f, 0x7f52, 0x7f53, 0x7f5b, 0x7f5c, 0x7f5d, +0x7f61, 0x7f63, 0x7f64, 0x7f65, 0x7f66, 0x7f6d, +94, 0x5521, +0x7f71, 0x7f7d, 0x7f7e, 0x7f7f, 0x7f80, 0x7f8b, 0x7f8d, 0x7f8f, +0x7f90, 0x7f91, 0x7f96, 0x7f97, 0x7f9c, 0x7fa1, 0x7fa2, 0x7fa6, +0x7faa, 0x7fad, 0x7fb4, 0x7fbc, 0x7fbf, 0x7fc0, 0x7fc3, 0x7fc8, +0x7fce, 0x7fcf, 0x7fdb, 0x7fdf, 0x7fe3, 0x7fe5, 0x7fe8, 0x7fec, +0x7fee, 0x7fef, 0x7ff2, 0x7ffa, 0x7ffd, 0x7ffe, 0x7fff, 0x8007, +0x8008, 0x800a, 0x800d, 0x800e, 0x800f, 0x8011, 0x8013, 0x8014, +0x8016, 0x801d, 0x801e, 0x801f, 0x8020, 0x8024, 0x8026, 0x802c, +0x802e, 0x8030, 0x8034, 0x8035, 0x8037, 0x8039, 0x803a, 0x803c, +0x803e, 0x8040, 0x8044, 0x8060, 0x8064, 0x8066, 0x806d, 0x8071, +0x8075, 0x8081, 0x8088, 0x808e, 0x809c, 0x809e, 0x80a6, 0x80a7, +0x80ab, 0x80b8, 0x80b9, 0x80c8, 0x80cd, 0x80cf, 0x80d2, 0x80d4, +0x80d5, 0x80d7, 0x80d8, 0x80e0, 0x80ed, 0x80ee, +94, 0x5621, +0x80f0, 0x80f2, 0x80f3, 0x80f6, 0x80f9, 0x80fa, 0x80fe, 0x8103, +0x810b, 0x8116, 0x8117, 0x8118, 0x811c, 0x811e, 0x8120, 0x8124, +0x8127, 0x812c, 0x8130, 0x8135, 0x813a, 0x813c, 0x8145, 0x8147, +0x814a, 0x814c, 0x8152, 0x8157, 0x8160, 0x8161, 0x8167, 0x8168, +0x8169, 0x816d, 0x816f, 0x8177, 0x8181, 0x8190, 0x8184, 0x8185, +0x8186, 0x818b, 0x818e, 0x8196, 0x8198, 0x819b, 0x819e, 0x81a2, +0x81ae, 0x81b2, 0x81b4, 0x81bb, 0x81cb, 0x81c3, 0x81c5, 0x81ca, +0x81ce, 0x81cf, 0x81d5, 0x81d7, 0x81db, 0x81dd, 0x81de, 0x81e1, +0x81e4, 0x81eb, 0x81ec, 0x81f0, 0x81f1, 0x81f2, 0x81f5, 0x81f6, +0x81f8, 0x81f9, 0x81fd, 0x81ff, 0x8200, 0x8203, 0x820f, 0x8213, +0x8214, 0x8219, 0x821a, 0x821d, 0x8221, 0x8222, 0x8228, 0x8232, +0x8234, 0x823a, 0x8243, 0x8244, 0x8245, 0x8246, +94, 0x5721, +0x824b, 0x824e, 0x824f, 0x8251, 0x8256, 0x825c, 0x8260, 0x8263, +0x8267, 0x826d, 0x8274, 0x827b, 0x827d, 0x827f, 0x8280, 0x8281, +0x8283, 0x8284, 0x8287, 0x8289, 0x828a, 0x828e, 0x8291, 0x8294, +0x8296, 0x8298, 0x829a, 0x829b, 0x82a0, 0x82a1, 0x82a3, 0x82a4, +0x82a7, 0x82a8, 0x82a9, 0x82aa, 0x82ae, 0x82b0, 0x82b2, 0x82b4, +0x82b7, 0x82ba, 0x82bc, 0x82be, 0x82bf, 0x82c6, 0x82d0, 0x82d5, +0x82da, 0x82e0, 0x82e2, 0x82e4, 0x82e8, 0x82ea, 0x82ed, 0x82ef, +0x82f6, 0x82f7, 0x82fd, 0x82fe, 0x8300, 0x8301, 0x8307, 0x8308, +0x830a, 0x830b, 0x8354, 0x831b, 0x831d, 0x831e, 0x831f, 0x8321, +0x8322, 0x832c, 0x832d, 0x832e, 0x8330, 0x8333, 0x8337, 0x833a, +0x833c, 0x833d, 0x8342, 0x8343, 0x8344, 0x8347, 0x834d, 0x834e, +0x8351, 0x8355, 0x8356, 0x8357, 0x8370, 0x8378, +94, 0x5821, +0x837d, 0x837f, 0x8380, 0x8382, 0x8384, 0x8386, 0x838d, 0x8392, +0x8394, 0x8395, 0x8398, 0x8399, 0x839b, 0x839c, 0x839d, 0x83a6, +0x83a7, 0x83a9, 0x83ac, 0x83be, 0x83bf, 0x83c0, 0x83c7, 0x83c9, +0x83cf, 0x83d0, 0x83d1, 0x83d4, 0x83dd, 0x8353, 0x83e8, 0x83ea, +0x83f6, 0x83f8, 0x83f9, 0x83fc, 0x8401, 0x8406, 0x840a, 0x840f, +0x8411, 0x8415, 0x8419, 0x83ad, 0x842f, 0x8439, 0x8445, 0x8447, +0x8448, 0x844a, 0x844d, 0x844f, 0x8451, 0x8452, 0x8456, 0x8458, +0x8459, 0x845a, 0x845c, 0x8460, 0x8464, 0x8465, 0x8467, 0x846a, +0x8470, 0x8473, 0x8474, 0x8476, 0x8478, 0x847c, 0x847d, 0x8481, +0x8485, 0x8492, 0x8493, 0x8495, 0x849e, 0x84a6, 0x84a8, 0x84a9, +0x84aa, 0x84af, 0x84b1, 0x84b4, 0x84ba, 0x84bd, 0x84be, 0x84c0, +0x84c2, 0x84c7, 0x84c8, 0x84cc, 0x84cf, 0x84d3, +94, 0x5921, +0x84dc, 0x84e7, 0x84ea, 0x84ef, 0x84f0, 0x84f1, 0x84f2, 0x84f7, +0x8532, 0x84fa, 0x84fb, 0x84fd, 0x8502, 0x8503, 0x8507, 0x850c, +0x850e, 0x8510, 0x851c, 0x851e, 0x8522, 0x8523, 0x8524, 0x8525, +0x8527, 0x852a, 0x852b, 0x852f, 0x8533, 0x8534, 0x8536, 0x853f, +0x8546, 0x854f, 0x8550, 0x8551, 0x8552, 0x8553, 0x8556, 0x8559, +0x855c, 0x855d, 0x855e, 0x855f, 0x8560, 0x8561, 0x8562, 0x8564, +0x856b, 0x856f, 0x8579, 0x857a, 0x857b, 0x857d, 0x857f, 0x8581, +0x8585, 0x8586, 0x8589, 0x858b, 0x858c, 0x858f, 0x8593, 0x8598, +0x859d, 0x859f, 0x85a0, 0x85a2, 0x85a5, 0x85a7, 0x85b4, 0x85b6, +0x85b7, 0x85b8, 0x85bc, 0x85bd, 0x85be, 0x85bf, 0x85c2, 0x85c7, +0x85ca, 0x85cb, 0x85ce, 0x85ad, 0x85d8, 0x85da, 0x85df, 0x85e0, +0x85e6, 0x85e8, 0x85ed, 0x85f3, 0x85f6, 0x85fc, +94, 0x5a21, +0x85ff, 0x8600, 0x8604, 0x8605, 0x860d, 0x860e, 0x8610, 0x8611, +0x8612, 0x8618, 0x8619, 0x861b, 0x861e, 0x8621, 0x8627, 0x8629, +0x8636, 0x8638, 0x863a, 0x863c, 0x863d, 0x8640, 0x8642, 0x8646, +0x8652, 0x8653, 0x8656, 0x8657, 0x8658, 0x8659, 0x865d, 0x8660, +0x8661, 0x8662, 0x8663, 0x8664, 0x8669, 0x866c, 0x866f, 0x8675, +0x8676, 0x8677, 0x867a, 0x868d, 0x8691, 0x8696, 0x8698, 0x869a, +0x869c, 0x86a1, 0x86a6, 0x86a7, 0x86a8, 0x86ad, 0x86b1, 0x86b3, +0x86b4, 0x86b5, 0x86b7, 0x86b8, 0x86b9, 0x86bf, 0x86c0, 0x86c1, +0x86c3, 0x86c5, 0x86d1, 0x86d2, 0x86d5, 0x86d7, 0x86da, 0x86dc, +0x86e0, 0x86e3, 0x86e5, 0x86e7, 0x8688, 0x86fa, 0x86fc, 0x86fd, +0x8704, 0x8705, 0x8707, 0x870b, 0x870e, 0x870f, 0x8710, 0x8713, +0x8714, 0x8719, 0x871e, 0x871f, 0x8721, 0x8723, +94, 0x5b21, +0x8728, 0x872e, 0x872f, 0x8731, 0x8732, 0x8739, 0x873a, 0x873c, +0x873d, 0x873e, 0x8740, 0x8743, 0x8745, 0x874d, 0x8758, 0x875d, +0x8761, 0x8764, 0x8765, 0x876f, 0x8771, 0x8772, 0x877b, 0x8783, +0x8784, 0x8785, 0x8786, 0x8787, 0x8788, 0x8789, 0x878b, 0x878c, +0x8790, 0x8793, 0x8795, 0x8797, 0x8798, 0x8799, 0x879e, 0x87a0, +0x87a3, 0x87a7, 0x87ac, 0x87ad, 0x87ae, 0x87b1, 0x87b5, 0x87be, +0x87bf, 0x87c1, 0x87c8, 0x87c9, 0x87ca, 0x87ce, 0x87d5, 0x87d6, +0x87d9, 0x87da, 0x87dc, 0x87df, 0x87e2, 0x87e3, 0x87e4, 0x87ea, +0x87eb, 0x87ed, 0x87f1, 0x87f3, 0x87f8, 0x87fa, 0x87ff, 0x8801, +0x8803, 0x8806, 0x8809, 0x880a, 0x880b, 0x8810, 0x8819, 0x8812, +0x8813, 0x8814, 0x8818, 0x881a, 0x881b, 0x881c, 0x881e, 0x881f, +0x8828, 0x882d, 0x882e, 0x8830, 0x8832, 0x8835, +94, 0x5c21, +0x883a, 0x883c, 0x8841, 0x8843, 0x8845, 0x8848, 0x8849, 0x884a, +0x884b, 0x884e, 0x8851, 0x8855, 0x8856, 0x8858, 0x885a, 0x885c, +0x885f, 0x8860, 0x8864, 0x8869, 0x8871, 0x8879, 0x887b, 0x8880, +0x8898, 0x889a, 0x889b, 0x889c, 0x889f, 0x88a0, 0x88a8, 0x88aa, +0x88ba, 0x88bd, 0x88be, 0x88c0, 0x88ca, 0x88cb, 0x88cc, 0x88cd, +0x88ce, 0x88d1, 0x88d2, 0x88d3, 0x88db, 0x88de, 0x88e7, 0x88ef, +0x88f0, 0x88f1, 0x88f5, 0x88f7, 0x8901, 0x8906, 0x890d, 0x890e, +0x890f, 0x8915, 0x8916, 0x8918, 0x8919, 0x891a, 0x891c, 0x8920, +0x8926, 0x8927, 0x8928, 0x8930, 0x8931, 0x8932, 0x8935, 0x8939, +0x893a, 0x893e, 0x8940, 0x8942, 0x8945, 0x8946, 0x8949, 0x894f, +0x8952, 0x8957, 0x895a, 0x895b, 0x895c, 0x8961, 0x8962, 0x8963, +0x896b, 0x896e, 0x8970, 0x8973, 0x8975, 0x897a, +94, 0x5d21, +0x897b, 0x897c, 0x897d, 0x8989, 0x898d, 0x8990, 0x8994, 0x8995, +0x899b, 0x899c, 0x899f, 0x89a0, 0x89a5, 0x89b0, 0x89b4, 0x89b5, +0x89b6, 0x89b7, 0x89bc, 0x89d4, 0x89d5, 0x89d6, 0x89d7, 0x89d8, +0x89e5, 0x89e9, 0x89eb, 0x89ed, 0x89f1, 0x89f3, 0x89f6, 0x89f9, +0x89fd, 0x89ff, 0x8a04, 0x8a05, 0x8a07, 0x8a0f, 0x8a11, 0x8a12, +0x8a14, 0x8a15, 0x8a1e, 0x8a20, 0x8a22, 0x8a24, 0x8a26, 0x8a2b, +0x8a2c, 0x8a2f, 0x8a35, 0x8a37, 0x8a3d, 0x8a3e, 0x8a40, 0x8a43, +0x8a45, 0x8a47, 0x8a49, 0x8a4d, 0x8a4e, 0x8a53, 0x8a56, 0x8a57, +0x8a58, 0x8a5c, 0x8a5d, 0x8a61, 0x8a65, 0x8a67, 0x8a75, 0x8a76, +0x8a77, 0x8a79, 0x8a7a, 0x8a7b, 0x8a7e, 0x8a7f, 0x8a80, 0x8a83, +0x8a86, 0x8a8b, 0x8a8f, 0x8a90, 0x8a92, 0x8a96, 0x8a97, 0x8a99, +0x8a9f, 0x8aa7, 0x8aa9, 0x8aae, 0x8aaf, 0x8ab3, +94, 0x5e21, +0x8ab6, 0x8ab7, 0x8abb, 0x8abe, 0x8ac3, 0x8ac6, 0x8ac8, 0x8ac9, +0x8aca, 0x8ad1, 0x8ad3, 0x8ad4, 0x8ad5, 0x8ad7, 0x8add, 0x8adf, +0x8aec, 0x8af0, 0x8af4, 0x8af5, 0x8af6, 0x8afc, 0x8aff, 0x8b05, +0x8b06, 0x8b0b, 0x8b11, 0x8b1c, 0x8b1e, 0x8b1f, 0x8b0a, 0x8b2d, +0x8b30, 0x8b37, 0x8b3c, 0x8b42, 0x8b43, 0x8b44, 0x8b45, 0x8b46, +0x8b48, 0x8b52, 0x8b53, 0x8b54, 0x8b59, 0x8b4d, 0x8b5e, 0x8b63, +0x8b6d, 0x8b76, 0x8b78, 0x8b79, 0x8b7c, 0x8b7e, 0x8b81, 0x8b84, +0x8b85, 0x8b8b, 0x8b8d, 0x8b8f, 0x8b94, 0x8b95, 0x8b9c, 0x8b9e, +0x8b9f, 0x8c38, 0x8c39, 0x8c3d, 0x8c3e, 0x8c45, 0x8c47, 0x8c49, +0x8c4b, 0x8c4f, 0x8c51, 0x8c53, 0x8c54, 0x8c57, 0x8c58, 0x8c5b, +0x8c5d, 0x8c59, 0x8c63, 0x8c64, 0x8c66, 0x8c68, 0x8c69, 0x8c6d, +0x8c73, 0x8c75, 0x8c76, 0x8c7b, 0x8c7e, 0x8c86, +94, 0x5f21, +0x8c87, 0x8c8b, 0x8c90, 0x8c92, 0x8c93, 0x8c99, 0x8c9b, 0x8c9c, +0x8ca4, 0x8cb9, 0x8cba, 0x8cc5, 0x8cc6, 0x8cc9, 0x8ccb, 0x8ccf, +0x8cd6, 0x8cd5, 0x8cd9, 0x8cdd, 0x8ce1, 0x8ce8, 0x8cec, 0x8cef, +0x8cf0, 0x8cf2, 0x8cf5, 0x8cf7, 0x8cf8, 0x8cfe, 0x8cff, 0x8d01, +0x8d03, 0x8d09, 0x8d12, 0x8d17, 0x8d1b, 0x8d65, 0x8d69, 0x8d6c, +0x8d6e, 0x8d7f, 0x8d82, 0x8d84, 0x8d88, 0x8d8d, 0x8d90, 0x8d91, +0x8d95, 0x8d9e, 0x8d9f, 0x8da0, 0x8da6, 0x8dab, 0x8dac, 0x8daf, +0x8db2, 0x8db5, 0x8db7, 0x8db9, 0x8dbb, 0x8dc0, 0x8dc5, 0x8dc6, +0x8dc7, 0x8dc8, 0x8dca, 0x8dce, 0x8dd1, 0x8dd4, 0x8dd5, 0x8dd7, +0x8dd9, 0x8de4, 0x8de5, 0x8de7, 0x8dec, 0x8df0, 0x8dbc, 0x8df1, +0x8df2, 0x8df4, 0x8dfd, 0x8e01, 0x8e04, 0x8e05, 0x8e06, 0x8e0b, +0x8e11, 0x8e14, 0x8e16, 0x8e20, 0x8e21, 0x8e22, +94, 0x6021, +0x8e23, 0x8e26, 0x8e27, 0x8e31, 0x8e33, 0x8e36, 0x8e37, 0x8e38, +0x8e39, 0x8e3d, 0x8e40, 0x8e41, 0x8e4b, 0x8e4d, 0x8e4e, 0x8e4f, +0x8e54, 0x8e5b, 0x8e5c, 0x8e5d, 0x8e5e, 0x8e61, 0x8e62, 0x8e69, +0x8e6c, 0x8e6d, 0x8e6f, 0x8e70, 0x8e71, 0x8e79, 0x8e7a, 0x8e7b, +0x8e82, 0x8e83, 0x8e89, 0x8e90, 0x8e92, 0x8e95, 0x8e9a, 0x8e9b, +0x8e9d, 0x8e9e, 0x8ea2, 0x8ea7, 0x8ea9, 0x8ead, 0x8eae, 0x8eb3, +0x8eb5, 0x8eba, 0x8ebb, 0x8ec0, 0x8ec1, 0x8ec3, 0x8ec4, 0x8ec7, +0x8ecf, 0x8ed1, 0x8ed4, 0x8edc, 0x8ee8, 0x8eee, 0x8ef0, 0x8ef1, +0x8ef7, 0x8ef9, 0x8efa, 0x8eed, 0x8f00, 0x8f02, 0x8f07, 0x8f08, +0x8f0f, 0x8f10, 0x8f16, 0x8f17, 0x8f18, 0x8f1e, 0x8f20, 0x8f21, +0x8f23, 0x8f25, 0x8f27, 0x8f28, 0x8f2c, 0x8f2d, 0x8f2e, 0x8f34, +0x8f35, 0x8f36, 0x8f37, 0x8f3a, 0x8f40, 0x8f41, +94, 0x6121, +0x8f43, 0x8f47, 0x8f4f, 0x8f51, 0x8f52, 0x8f53, 0x8f54, 0x8f55, +0x8f58, 0x8f5d, 0x8f5e, 0x8f65, 0x8f9d, 0x8fa0, 0x8fa1, 0x8fa4, +0x8fa5, 0x8fa6, 0x8fb5, 0x8fb6, 0x8fb8, 0x8fbe, 0x8fc0, 0x8fc1, +0x8fc6, 0x8fca, 0x8fcb, 0x8fcd, 0x8fd0, 0x8fd2, 0x8fd3, 0x8fd5, +0x8fe0, 0x8fe3, 0x8fe4, 0x8fe8, 0x8fee, 0x8ff1, 0x8ff5, 0x8ff6, +0x8ffb, 0x8ffe, 0x9002, 0x9004, 0x9008, 0x900c, 0x9018, 0x901b, +0x9028, 0x9029, 0x902f, 0x902a, 0x902c, 0x902d, 0x9033, 0x9034, +0x9037, 0x903f, 0x9043, 0x9044, 0x904c, 0x905b, 0x905d, 0x9062, +0x9066, 0x9067, 0x906c, 0x9070, 0x9074, 0x9079, 0x9085, 0x9088, +0x908b, 0x908c, 0x908e, 0x9090, 0x9095, 0x9097, 0x9098, 0x9099, +0x909b, 0x90a0, 0x90a1, 0x90a2, 0x90a5, 0x90b0, 0x90b2, 0x90b3, +0x90b4, 0x90b6, 0x90bd, 0x90cc, 0x90be, 0x90c3, +94, 0x6221, +0x90c4, 0x90c5, 0x90c7, 0x90c8, 0x90d5, 0x90d7, 0x90d8, 0x90d9, +0x90dc, 0x90dd, 0x90df, 0x90e5, 0x90d2, 0x90f6, 0x90eb, 0x90ef, +0x90f0, 0x90f4, 0x90fe, 0x90ff, 0x9100, 0x9104, 0x9105, 0x9106, +0x9108, 0x910d, 0x9110, 0x9114, 0x9116, 0x9117, 0x9118, 0x911a, +0x911c, 0x911e, 0x9120, 0x9125, 0x9122, 0x9123, 0x9127, 0x9129, +0x912e, 0x912f, 0x9131, 0x9134, 0x9136, 0x9137, 0x9139, 0x913a, +0x913c, 0x913d, 0x9143, 0x9147, 0x9148, 0x914f, 0x9153, 0x9157, +0x9159, 0x915a, 0x915b, 0x9161, 0x9164, 0x9167, 0x916d, 0x9174, +0x9179, 0x917a, 0x917b, 0x9181, 0x9183, 0x9185, 0x9186, 0x918a, +0x918e, 0x9191, 0x9193, 0x9194, 0x9195, 0x9198, 0x919e, 0x91a1, +0x91a6, 0x91a8, 0x91ac, 0x91ad, 0x91ae, 0x91b0, 0x91b1, 0x91b2, +0x91b3, 0x91b6, 0x91bb, 0x91bc, 0x91bd, 0x91bf, +94, 0x6321, +0x91c2, 0x91c3, 0x91c5, 0x91d3, 0x91d4, 0x91d7, 0x91d9, 0x91da, +0x91de, 0x91e4, 0x91e5, 0x91e9, 0x91ea, 0x91ec, 0x91ed, 0x91ee, +0x91ef, 0x91f0, 0x91f1, 0x91f7, 0x91f9, 0x91fb, 0x91fd, 0x9200, +0x9201, 0x9204, 0x9205, 0x9206, 0x9207, 0x9209, 0x920a, 0x920c, +0x9210, 0x9212, 0x9213, 0x9216, 0x9218, 0x921c, 0x921d, 0x9223, +0x9224, 0x9225, 0x9226, 0x9228, 0x922e, 0x922f, 0x9230, 0x9233, +0x9235, 0x9236, 0x9238, 0x9239, 0x923a, 0x923c, 0x923e, 0x9240, +0x9242, 0x9243, 0x9246, 0x9247, 0x924a, 0x924d, 0x924e, 0x924f, +0x9251, 0x9258, 0x9259, 0x925c, 0x925d, 0x9260, 0x9261, 0x9265, +0x9267, 0x9268, 0x9269, 0x926e, 0x926f, 0x9270, 0x9275, 0x9276, +0x9277, 0x9278, 0x9279, 0x927b, 0x927c, 0x927d, 0x927f, 0x9288, +0x9289, 0x928a, 0x928d, 0x928e, 0x9292, 0x9297, +94, 0x6421, +0x9299, 0x929f, 0x92a0, 0x92a4, 0x92a5, 0x92a7, 0x92a8, 0x92ab, +0x92af, 0x92b2, 0x92b6, 0x92b8, 0x92ba, 0x92bb, 0x92bc, 0x92bd, +0x92bf, 0x92c0, 0x92c1, 0x92c2, 0x92c3, 0x92c5, 0x92c6, 0x92c7, +0x92c8, 0x92cb, 0x92cc, 0x92cd, 0x92ce, 0x92d0, 0x92d3, 0x92d5, +0x92d7, 0x92d8, 0x92d9, 0x92dc, 0x92dd, 0x92df, 0x92e0, 0x92e1, +0x92e3, 0x92e5, 0x92e7, 0x92e8, 0x92ec, 0x92ee, 0x92f0, 0x92f9, +0x92fb, 0x92ff, 0x9300, 0x9302, 0x9308, 0x930d, 0x9311, 0x9314, +0x9315, 0x931c, 0x931d, 0x931e, 0x931f, 0x9321, 0x9324, 0x9325, +0x9327, 0x9329, 0x932a, 0x9333, 0x9334, 0x9336, 0x9337, 0x9347, +0x9348, 0x9349, 0x9350, 0x9351, 0x9352, 0x9355, 0x9357, 0x9358, +0x935a, 0x935e, 0x9364, 0x9365, 0x9367, 0x9369, 0x936a, 0x936d, +0x936f, 0x9370, 0x9371, 0x9373, 0x9374, 0x9376, +94, 0x6521, +0x937a, 0x937d, 0x937f, 0x9380, 0x9381, 0x9382, 0x9388, 0x938a, +0x938b, 0x938d, 0x938f, 0x9392, 0x9395, 0x9398, 0x939b, 0x939e, +0x93a1, 0x93a3, 0x93a4, 0x93a6, 0x93a8, 0x93ab, 0x93b4, 0x93b5, +0x93b6, 0x93ba, 0x93a9, 0x93c1, 0x93c4, 0x93c5, 0x93c6, 0x93c7, +0x93c9, 0x93ca, 0x93cb, 0x93cc, 0x93cd, 0x93d3, 0x93d9, 0x93dc, +0x93de, 0x93df, 0x93e2, 0x93e6, 0x93e7, 0x93f9, 0x93f7, 0x93f8, +0x93fa, 0x93fb, 0x93fd, 0x9401, 0x9402, 0x9404, 0x9408, 0x9409, +0x940d, 0x940e, 0x940f, 0x9415, 0x9416, 0x9417, 0x941f, 0x942e, +0x942f, 0x9431, 0x9432, 0x9433, 0x9434, 0x943b, 0x943f, 0x943d, +0x9443, 0x9445, 0x9448, 0x944a, 0x944c, 0x9455, 0x9459, 0x945c, +0x945f, 0x9461, 0x9463, 0x9468, 0x946b, 0x946d, 0x946e, 0x946f, +0x9471, 0x9472, 0x9484, 0x9483, 0x9578, 0x9579, +94, 0x6621, +0x957e, 0x9584, 0x9588, 0x958c, 0x958d, 0x958e, 0x959d, 0x959e, +0x959f, 0x95a1, 0x95a6, 0x95a9, 0x95ab, 0x95ac, 0x95b4, 0x95b6, +0x95ba, 0x95bd, 0x95bf, 0x95c6, 0x95c8, 0x95c9, 0x95cb, 0x95d0, +0x95d1, 0x95d2, 0x95d3, 0x95d9, 0x95da, 0x95dd, 0x95de, 0x95df, +0x95e0, 0x95e4, 0x95e6, 0x961d, 0x961e, 0x9622, 0x9624, 0x9625, +0x9626, 0x962c, 0x9631, 0x9633, 0x9637, 0x9638, 0x9639, 0x963a, +0x963c, 0x963d, 0x9641, 0x9652, 0x9654, 0x9656, 0x9657, 0x9658, +0x9661, 0x966e, 0x9674, 0x967b, 0x967c, 0x967e, 0x967f, 0x9681, +0x9682, 0x9683, 0x9684, 0x9689, 0x9691, 0x9696, 0x969a, 0x969d, +0x969f, 0x96a4, 0x96a5, 0x96a6, 0x96a9, 0x96ae, 0x96af, 0x96b3, +0x96ba, 0x96ca, 0x96d2, 0x5db2, 0x96d8, 0x96da, 0x96dd, 0x96de, +0x96df, 0x96e9, 0x96ef, 0x96f1, 0x96fa, 0x9702, +94, 0x6721, +0x9703, 0x9705, 0x9709, 0x971a, 0x971b, 0x971d, 0x9721, 0x9722, +0x9723, 0x9728, 0x9731, 0x9733, 0x9741, 0x9743, 0x974a, 0x974e, +0x974f, 0x9755, 0x9757, 0x9758, 0x975a, 0x975b, 0x9763, 0x9767, +0x976a, 0x976e, 0x9773, 0x9776, 0x9777, 0x9778, 0x977b, 0x977d, +0x977f, 0x9780, 0x9789, 0x9795, 0x9796, 0x9797, 0x9799, 0x979a, +0x979e, 0x979f, 0x97a2, 0x97ac, 0x97ae, 0x97b1, 0x97b2, 0x97b5, +0x97b6, 0x97b8, 0x97b9, 0x97ba, 0x97bc, 0x97be, 0x97bf, 0x97c1, +0x97c4, 0x97c5, 0x97c7, 0x97c9, 0x97ca, 0x97cc, 0x97cd, 0x97ce, +0x97d0, 0x97d1, 0x97d4, 0x97d7, 0x97d8, 0x97d9, 0x97dd, 0x97de, +0x97e0, 0x97db, 0x97e1, 0x97e4, 0x97ef, 0x97f1, 0x97f4, 0x97f7, +0x97f8, 0x97fa, 0x9807, 0x980a, 0x9819, 0x980d, 0x980e, 0x9814, +0x9816, 0x981c, 0x981e, 0x9820, 0x9823, 0x9826, +94, 0x6821, +0x982b, 0x982e, 0x982f, 0x9830, 0x9832, 0x9833, 0x9835, 0x9825, +0x983e, 0x9844, 0x9847, 0x984a, 0x9851, 0x9852, 0x9853, 0x9856, +0x9857, 0x9859, 0x985a, 0x9862, 0x9863, 0x9865, 0x9866, 0x986a, +0x986c, 0x98ab, 0x98ad, 0x98ae, 0x98b0, 0x98b4, 0x98b7, 0x98b8, +0x98ba, 0x98bb, 0x98bf, 0x98c2, 0x98c5, 0x98c8, 0x98cc, 0x98e1, +0x98e3, 0x98e5, 0x98e6, 0x98e7, 0x98ea, 0x98f3, 0x98f6, 0x9902, +0x9907, 0x9908, 0x9911, 0x9915, 0x9916, 0x9917, 0x991a, 0x991b, +0x991c, 0x991f, 0x9922, 0x9926, 0x9927, 0x992b, 0x9931, 0x9932, +0x9933, 0x9934, 0x9935, 0x9939, 0x993a, 0x993b, 0x993c, 0x9940, +0x9941, 0x9946, 0x9947, 0x9948, 0x994d, 0x994e, 0x9954, 0x9958, +0x9959, 0x995b, 0x995c, 0x995e, 0x995f, 0x9960, 0x999b, 0x999d, +0x999f, 0x99a6, 0x99b0, 0x99b1, 0x99b2, 0x99b5, +94, 0x6921, +0x99b9, 0x99ba, 0x99bd, 0x99bf, 0x99c3, 0x99c9, 0x99d3, 0x99d4, +0x99d9, 0x99da, 0x99dc, 0x99de, 0x99e7, 0x99ea, 0x99eb, 0x99ec, +0x99f0, 0x99f4, 0x99f5, 0x99f9, 0x99fd, 0x99fe, 0x9a02, 0x9a03, +0x9a04, 0x9a0b, 0x9a0c, 0x9a10, 0x9a11, 0x9a16, 0x9a1e, 0x9a20, +0x9a22, 0x9a23, 0x9a24, 0x9a27, 0x9a2d, 0x9a2e, 0x9a33, 0x9a35, +0x9a36, 0x9a38, 0x9a47, 0x9a41, 0x9a44, 0x9a4a, 0x9a4b, 0x9a4c, +0x9a4e, 0x9a51, 0x9a54, 0x9a56, 0x9a5d, 0x9aaa, 0x9aac, 0x9aae, +0x9aaf, 0x9ab2, 0x9ab4, 0x9ab5, 0x9ab6, 0x9ab9, 0x9abb, 0x9abe, +0x9abf, 0x9ac1, 0x9ac3, 0x9ac6, 0x9ac8, 0x9ace, 0x9ad0, 0x9ad2, +0x9ad5, 0x9ad6, 0x9ad7, 0x9adb, 0x9adc, 0x9ae0, 0x9ae4, 0x9ae5, +0x9ae7, 0x9ae9, 0x9aec, 0x9af2, 0x9af3, 0x9af5, 0x9af9, 0x9afa, +0x9afd, 0x9aff, 0x9b00, 0x9b01, 0x9b02, 0x9b03, +94, 0x6a21, +0x9b04, 0x9b05, 0x9b08, 0x9b09, 0x9b0b, 0x9b0c, 0x9b0d, 0x9b0e, +0x9b10, 0x9b12, 0x9b16, 0x9b19, 0x9b1b, 0x9b1c, 0x9b20, 0x9b26, +0x9b2b, 0x9b2d, 0x9b33, 0x9b34, 0x9b35, 0x9b37, 0x9b39, 0x9b3a, +0x9b3d, 0x9b48, 0x9b4b, 0x9b4c, 0x9b55, 0x9b56, 0x9b57, 0x9b5b, +0x9b5e, 0x9b61, 0x9b63, 0x9b65, 0x9b66, 0x9b68, 0x9b6a, 0x9b6b, +0x9b6c, 0x9b6d, 0x9b6e, 0x9b73, 0x9b75, 0x9b77, 0x9b78, 0x9b79, +0x9b7f, 0x9b80, 0x9b84, 0x9b85, 0x9b86, 0x9b87, 0x9b89, 0x9b8a, +0x9b8b, 0x9b8d, 0x9b8f, 0x9b90, 0x9b94, 0x9b9a, 0x9b9d, 0x9b9e, +0x9ba6, 0x9ba7, 0x9ba9, 0x9bac, 0x9bb0, 0x9bb1, 0x9bb2, 0x9bb7, +0x9bb8, 0x9bbb, 0x9bbc, 0x9bbe, 0x9bbf, 0x9bc1, 0x9bc7, 0x9bc8, +0x9bce, 0x9bd0, 0x9bd7, 0x9bd8, 0x9bdd, 0x9bdf, 0x9be5, 0x9be7, +0x9bea, 0x9beb, 0x9bef, 0x9bf3, 0x9bf7, 0x9bf8, +94, 0x6b21, +0x9bf9, 0x9bfa, 0x9bfd, 0x9bff, 0x9c00, 0x9c02, 0x9c0b, 0x9c0f, +0x9c11, 0x9c16, 0x9c18, 0x9c19, 0x9c1a, 0x9c1c, 0x9c1e, 0x9c22, +0x9c23, 0x9c26, 0x9c27, 0x9c28, 0x9c29, 0x9c2a, 0x9c31, 0x9c35, +0x9c36, 0x9c37, 0x9c3d, 0x9c41, 0x9c43, 0x9c44, 0x9c45, 0x9c49, +0x9c4a, 0x9c4e, 0x9c4f, 0x9c50, 0x9c53, 0x9c54, 0x9c56, 0x9c58, +0x9c5b, 0x9c5d, 0x9c5e, 0x9c5f, 0x9c63, 0x9c69, 0x9c6a, 0x9c5c, +0x9c6b, 0x9c68, 0x9c6e, 0x9c70, 0x9c72, 0x9c75, 0x9c77, 0x9c7b, +0x9ce6, 0x9cf2, 0x9cf7, 0x9cf9, 0x9d0b, 0x9d02, 0x9d11, 0x9d17, +0x9d18, 0x9d1c, 0x9d1d, 0x9d1e, 0x9d2f, 0x9d30, 0x9d32, 0x9d33, +0x9d34, 0x9d3a, 0x9d3c, 0x9d45, 0x9d3d, 0x9d42, 0x9d43, 0x9d47, +0x9d4a, 0x9d53, 0x9d54, 0x9d5f, 0x9d63, 0x9d62, 0x9d65, 0x9d69, +0x9d6a, 0x9d6b, 0x9d70, 0x9d76, 0x9d77, 0x9d7b, +94, 0x6c21, +0x9d7c, 0x9d7e, 0x9d83, 0x9d84, 0x9d86, 0x9d8a, 0x9d8d, 0x9d8e, +0x9d92, 0x9d93, 0x9d95, 0x9d96, 0x9d97, 0x9d98, 0x9da1, 0x9daa, +0x9dac, 0x9dae, 0x9db1, 0x9db5, 0x9db9, 0x9dbc, 0x9dbf, 0x9dc3, +0x9dc7, 0x9dc9, 0x9dca, 0x9dd4, 0x9dd5, 0x9dd6, 0x9dd7, 0x9dda, +0x9dde, 0x9ddf, 0x9de0, 0x9de5, 0x9de7, 0x9de9, 0x9deb, 0x9dee, +0x9df0, 0x9df3, 0x9df4, 0x9dfe, 0x9e0a, 0x9e02, 0x9e07, 0x9e0e, +0x9e10, 0x9e11, 0x9e12, 0x9e15, 0x9e16, 0x9e19, 0x9e1c, 0x9e1d, +0x9e7a, 0x9e7b, 0x9e7c, 0x9e80, 0x9e82, 0x9e83, 0x9e84, 0x9e85, +0x9e87, 0x9e8e, 0x9e8f, 0x9e96, 0x9e98, 0x9e9b, 0x9e9e, 0x9ea4, +0x9ea8, 0x9eac, 0x9eae, 0x9eaf, 0x9eb0, 0x9eb3, 0x9eb4, 0x9eb5, +0x9ec6, 0x9ec8, 0x9ecb, 0x9ed5, 0x9edf, 0x9ee4, 0x9ee7, 0x9eec, +0x9eed, 0x9eee, 0x9ef0, 0x9ef1, 0x9ef2, 0x9ef5, +67, 0x6d21, +0x9ef8, 0x9eff, 0x9f02, 0x9f03, 0x9f09, 0x9f0f, 0x9f10, 0x9f11, +0x9f12, 0x9f14, 0x9f16, 0x9f17, 0x9f19, 0x9f1a, 0x9f1b, 0x9f1f, +0x9f22, 0x9f26, 0x9f2a, 0x9f2b, 0x9f2f, 0x9f31, 0x9f32, 0x9f34, +0x9f37, 0x9f39, 0x9f3a, 0x9f3c, 0x9f3d, 0x9f3f, 0x9f41, 0x9f43, +0x9f44, 0x9f45, 0x9f46, 0x9f47, 0x9f53, 0x9f55, 0x9f56, 0x9f57, +0x9f58, 0x9f5a, 0x9f5d, 0x9f5e, 0x9f68, 0x9f69, 0x9f6d, 0x9f6e, +0x9f6f, 0x9f70, 0x9f71, 0x9f73, 0x9f75, 0x9f7a, 0x9f7d, 0x9f8f, +0x9f90, 0x9f91, 0x9f92, 0x9f94, 0x9f96, 0x9f97, 0x9f9e, 0x9fa1, +0x9fa2, 0x9fa3, 0x9fa5, +0 diff --git a/lib/koi8-r.h b/lib/koi8-r.h new file mode 100644 index 0000000..ae37f5f --- /dev/null +++ b/lib/koi8-r.h @@ -0,0 +1,15 @@ +/* KOI8-R (GR only) */ +96, 0x0020, +0x2550, 0x2551, 0x2552, 0x0451, 0x2553, 0x2554, 0x2555, 0x2556, +0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x255c, 0x255d, 0x255e, +0x255f, 0x2560, 0x2561, 0x0401, 0x2562, 0x2563, 0x2564, 0x2565, +0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x256b, 0x256c, 0x00a9, +0x044e, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, +0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, +0x043f, 0x044f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0436, 0x0432, +0x044c, 0x044b, 0x0437, 0x0448, 0x044d, 0x0449, 0x0447, 0x044a, +0x042e, 0x0410, 0x0411, 0x0426, 0x0414, 0x0415, 0x0424, 0x0413, +0x0425, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, +0x041f, 0x042f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0416, 0x0412, +0x042c, 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a, +0 diff --git a/lib/ksc5601.h b/lib/ksc5601.h new file mode 100644 index 0000000..bc1d71b --- /dev/null +++ b/lib/ksc5601.h @@ -0,0 +1,1152 @@ +94, 0x2121, +0x3000, 0x3001, 0x3002, 0x00b7, 0x2025, 0x2026, 0x00a8, 0x3003, +0x00ad, 0x2015, 0x2225, 0xff3c, 0x223c, 0x2018, 0x2019, 0x201c, +0x201d, 0x3014, 0x3015, 0x3008, 0x3009, 0x300a, 0x300b, 0x300c, +0x300d, 0x300e, 0x300f, 0x3010, 0x3011, 0x00b1, 0x00d7, 0x00f7, +0x2260, 0x2264, 0x2265, 0x221e, 0x2234, 0x00b0, 0x2032, 0x2033, +0x2103, 0x212b, 0xffe0, 0xffe1, 0xffe5, 0x2642, 0x2640, 0x2220, +0x22a5, 0x2312, 0x2202, 0x2207, 0x2261, 0x2252, 0x00a7, 0x203b, +0x2606, 0x2605, 0x25cb, 0x25cf, 0x25ce, 0x25c7, 0x25c6, 0x25a1, +0x25a0, 0x25b3, 0x25b2, 0x25bd, 0x25bc, 0x2192, 0x2190, 0x2191, +0x2193, 0x2194, 0x3013, 0x226a, 0x226b, 0x221a, 0x223d, 0x221d, +0x2235, 0x222b, 0x222c, 0x2208, 0x220b, 0x2286, 0x2287, 0x2282, +0x2283, 0x222a, 0x2229, 0x2227, 0x2228, 0xffe2, +69, 0x2221, +0x21d2, 0x21d4, 0x2200, 0x2203, 0x00b4, 0xff5e, 0x02c7, 0x02d8, +0x02dd, 0x02da, 0x02d9, 0x00b8, 0x02db, 0x00a1, 0x00bf, 0x02d0, +0x222e, 0x2211, 0x220f, 0x00a4, 0x2109, 0x2030, 0x25c1, 0x25c0, +0x25b7, 0x25b6, 0x2664, 0x2660, 0x2661, 0x2665, 0x2667, 0x2663, +0x2299, 0x25c8, 0x25a3, 0x25d0, 0x25d1, 0x2592, 0x25a4, 0x25a5, +0x25a8, 0x25a7, 0x25a6, 0x25a9, 0x2668, 0x260f, 0x260e, 0x261c, +0x261e, 0x00b6, 0x2020, 0x2021, 0x2195, 0x2197, 0x2199, 0x2196, +0x2198, 0x266d, 0x2669, 0x266a, 0x266c, 0x327f, 0x321c, 0x2116, +0x33c7, 0x2122, 0x33c2, 0x33d8, 0x2121, +94, 0x2321, +0xff01, 0xff02, 0xff03, 0xff04, 0xff05, 0xff06, 0xff07, 0xff08, +0xff09, 0xff0a, 0xff0b, 0xff0c, 0xff0d, 0xff0e, 0xff0f, 0xff10, +0xff11, 0xff12, 0xff13, 0xff14, 0xff15, 0xff16, 0xff17, 0xff18, +0xff19, 0xff1a, 0xff1b, 0xff1c, 0xff1d, 0xff1e, 0xff1f, 0xff20, +0xff21, 0xff22, 0xff23, 0xff24, 0xff25, 0xff26, 0xff27, 0xff28, +0xff29, 0xff2a, 0xff2b, 0xff2c, 0xff2d, 0xff2e, 0xff2f, 0xff30, +0xff31, 0xff32, 0xff33, 0xff34, 0xff35, 0xff36, 0xff37, 0xff38, +0xff39, 0xff3a, 0xff3b, 0xffe6, 0xff3d, 0xff3e, 0xff3f, 0xff40, +0xff41, 0xff42, 0xff43, 0xff44, 0xff45, 0xff46, 0xff47, 0xff48, +0xff49, 0xff4a, 0xff4b, 0xff4c, 0xff4d, 0xff4e, 0xff4f, 0xff50, +0xff51, 0xff52, 0xff53, 0xff54, 0xff55, 0xff56, 0xff57, 0xff58, +0xff59, 0xff5a, 0xff5b, 0xff5c, 0xff5d, 0xffe3, +94, 0x2421, +0x3131, 0x3132, 0x3133, 0x3134, 0x3135, 0x3136, 0x3137, 0x3138, +0x3139, 0x313a, 0x313b, 0x313c, 0x313d, 0x313e, 0x313f, 0x3140, +0x3141, 0x3142, 0x3143, 0x3144, 0x3145, 0x3146, 0x3147, 0x3148, +0x3149, 0x314a, 0x314b, 0x314c, 0x314d, 0x314e, 0x314f, 0x3150, +0x3151, 0x3152, 0x3153, 0x3154, 0x3155, 0x3156, 0x3157, 0x3158, +0x3159, 0x315a, 0x315b, 0x315c, 0x315d, 0x315e, 0x315f, 0x3160, +0x3161, 0x3162, 0x3163, 0x3164, 0x3165, 0x3166, 0x3167, 0x3168, +0x3169, 0x316a, 0x316b, 0x316c, 0x316d, 0x316e, 0x316f, 0x3170, +0x3171, 0x3172, 0x3173, 0x3174, 0x3175, 0x3176, 0x3177, 0x3178, +0x3179, 0x317a, 0x317b, 0x317c, 0x317d, 0x317e, 0x317f, 0x3180, +0x3181, 0x3182, 0x3183, 0x3184, 0x3185, 0x3186, 0x3187, 0x3188, +0x3189, 0x318a, 0x318b, 0x318c, 0x318d, 0x318e, +10, 0x2521, +0x2170, 0x2171, 0x2172, 0x2173, 0x2174, 0x2175, 0x2176, 0x2177, +0x2178, 0x2179, +10, 0x2530, +0x2160, 0x2161, 0x2162, 0x2163, 0x2164, 0x2165, 0x2166, 0x2167, +0x2168, 0x2169, +24, 0x2541, +0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, 0x0398, +0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, 0x039f, 0x03a0, +0x03a1, 0x03a3, 0x03a4, 0x03a5, 0x03a6, 0x03a7, 0x03a8, 0x03a9, +24, 0x2561, +0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, 0x03b8, +0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, 0x03c0, +0x03c1, 0x03c3, 0x03c4, 0x03c5, 0x03c6, 0x03c7, 0x03c8, 0x03c9, +68, 0x2621, +0x2500, 0x2502, 0x250c, 0x2510, 0x2518, 0x2514, 0x251c, 0x252c, +0x2524, 0x2534, 0x253c, 0x2501, 0x2503, 0x250f, 0x2513, 0x251b, +0x2517, 0x2523, 0x2533, 0x252b, 0x253b, 0x254b, 0x2520, 0x252f, +0x2528, 0x2537, 0x253f, 0x251d, 0x2530, 0x2525, 0x2538, 0x2542, +0x2512, 0x2511, 0x251a, 0x2519, 0x2516, 0x2515, 0x250e, 0x250d, +0x251e, 0x251f, 0x2521, 0x2522, 0x2526, 0x2527, 0x2529, 0x252a, +0x252d, 0x252e, 0x2531, 0x2532, 0x2535, 0x2536, 0x2539, 0x253a, +0x253d, 0x253e, 0x2540, 0x2541, 0x2543, 0x2544, 0x2545, 0x2546, +0x2547, 0x2548, 0x2549, 0x254a, +79, 0x2721, +0x3395, 0x3396, 0x3397, 0x2113, 0x3398, 0x33c4, 0x33a3, 0x33a4, +0x33a5, 0x33a6, 0x3399, 0x339a, 0x339b, 0x339c, 0x339d, 0x339e, +0x339f, 0x33a0, 0x33a1, 0x33a2, 0x33ca, 0x338d, 0x338e, 0x338f, +0x33cf, 0x3388, 0x3389, 0x33c8, 0x33a7, 0x33a8, 0x33b0, 0x33b1, +0x33b2, 0x33b3, 0x33b4, 0x33b5, 0x33b6, 0x33b7, 0x33b8, 0x33b9, +0x3380, 0x3381, 0x3382, 0x3383, 0x3384, 0x33ba, 0x33bb, 0x33bc, +0x33bd, 0x33be, 0x33bf, 0x3390, 0x3391, 0x3392, 0x3393, 0x3394, +0x2126, 0x33c0, 0x33c1, 0x338a, 0x338b, 0x338c, 0x33d6, 0x33c5, +0x33ad, 0x33ae, 0x33af, 0x33db, 0x33a9, 0x33aa, 0x33ab, 0x33ac, +0x33dd, 0x33d0, 0x33d3, 0x33c3, 0x33c9, 0x33dc, 0x33c6, +4, 0x2821, +0x00c6, 0x00d0, 0x00aa, 0x0126, +1, 0x2826, +0x0132, +8, 0x2828, +0x013f, 0x0141, 0x00d8, 0x0152, 0x00ba, 0x00de, 0x0166, 0x014a, +78, 0x2831, +0x3260, 0x3261, 0x3262, 0x3263, 0x3264, 0x3265, 0x3266, 0x3267, +0x3268, 0x3269, 0x326a, 0x326b, 0x326c, 0x326d, 0x326e, 0x326f, +0x3270, 0x3271, 0x3272, 0x3273, 0x3274, 0x3275, 0x3276, 0x3277, +0x3278, 0x3279, 0x327a, 0x327b, 0x24d0, 0x24d1, 0x24d2, 0x24d3, +0x24d4, 0x24d5, 0x24d6, 0x24d7, 0x24d8, 0x24d9, 0x24da, 0x24db, +0x24dc, 0x24dd, 0x24de, 0x24df, 0x24e0, 0x24e1, 0x24e2, 0x24e3, +0x24e4, 0x24e5, 0x24e6, 0x24e7, 0x24e8, 0x24e9, 0x2460, 0x2461, +0x2462, 0x2463, 0x2464, 0x2465, 0x2466, 0x2467, 0x2468, 0x2469, +0x246a, 0x246b, 0x246c, 0x246d, 0x246e, 0x00bd, 0x2153, 0x2154, +0x00bc, 0x00be, 0x215b, 0x215c, 0x215d, 0x215e, +94, 0x2921, +0x00e6, 0x0111, 0x00f0, 0x0127, 0x0131, 0x0133, 0x0138, 0x0140, +0x0142, 0x00f8, 0x0153, 0x00df, 0x00fe, 0x0167, 0x014b, 0x0149, +0x3200, 0x3201, 0x3202, 0x3203, 0x3204, 0x3205, 0x3206, 0x3207, +0x3208, 0x3209, 0x320a, 0x320b, 0x320c, 0x320d, 0x320e, 0x320f, +0x3210, 0x3211, 0x3212, 0x3213, 0x3214, 0x3215, 0x3216, 0x3217, +0x3218, 0x3219, 0x321a, 0x321b, 0x249c, 0x249d, 0x249e, 0x249f, +0x24a0, 0x24a1, 0x24a2, 0x24a3, 0x24a4, 0x24a5, 0x24a6, 0x24a7, +0x24a8, 0x24a9, 0x24aa, 0x24ab, 0x24ac, 0x24ad, 0x24ae, 0x24af, +0x24b0, 0x24b1, 0x24b2, 0x24b3, 0x24b4, 0x24b5, 0x2474, 0x2475, +0x2476, 0x2477, 0x2478, 0x2479, 0x247a, 0x247b, 0x247c, 0x247d, +0x247e, 0x247f, 0x2480, 0x2481, 0x2482, 0x00b9, 0x00b2, 0x00b3, +0x2074, 0x207f, 0x2081, 0x2082, 0x2083, 0x2084, +83, 0x2a21, +0x3041, 0x3042, 0x3043, 0x3044, 0x3045, 0x3046, 0x3047, 0x3048, +0x3049, 0x304a, 0x304b, 0x304c, 0x304d, 0x304e, 0x304f, 0x3050, +0x3051, 0x3052, 0x3053, 0x3054, 0x3055, 0x3056, 0x3057, 0x3058, +0x3059, 0x305a, 0x305b, 0x305c, 0x305d, 0x305e, 0x305f, 0x3060, +0x3061, 0x3062, 0x3063, 0x3064, 0x3065, 0x3066, 0x3067, 0x3068, +0x3069, 0x306a, 0x306b, 0x306c, 0x306d, 0x306e, 0x306f, 0x3070, +0x3071, 0x3072, 0x3073, 0x3074, 0x3075, 0x3076, 0x3077, 0x3078, +0x3079, 0x307a, 0x307b, 0x307c, 0x307d, 0x307e, 0x307f, 0x3080, +0x3081, 0x3082, 0x3083, 0x3084, 0x3085, 0x3086, 0x3087, 0x3088, +0x3089, 0x308a, 0x308b, 0x308c, 0x308d, 0x308e, 0x308f, 0x3090, +0x3091, 0x3092, 0x3093, +86, 0x2b21, +0x30a1, 0x30a2, 0x30a3, 0x30a4, 0x30a5, 0x30a6, 0x30a7, 0x30a8, +0x30a9, 0x30aa, 0x30ab, 0x30ac, 0x30ad, 0x30ae, 0x30af, 0x30b0, +0x30b1, 0x30b2, 0x30b3, 0x30b4, 0x30b5, 0x30b6, 0x30b7, 0x30b8, +0x30b9, 0x30ba, 0x30bb, 0x30bc, 0x30bd, 0x30be, 0x30bf, 0x30c0, +0x30c1, 0x30c2, 0x30c3, 0x30c4, 0x30c5, 0x30c6, 0x30c7, 0x30c8, +0x30c9, 0x30ca, 0x30cb, 0x30cc, 0x30cd, 0x30ce, 0x30cf, 0x30d0, +0x30d1, 0x30d2, 0x30d3, 0x30d4, 0x30d5, 0x30d6, 0x30d7, 0x30d8, +0x30d9, 0x30da, 0x30db, 0x30dc, 0x30dd, 0x30de, 0x30df, 0x30e0, +0x30e1, 0x30e2, 0x30e3, 0x30e4, 0x30e5, 0x30e6, 0x30e7, 0x30e8, +0x30e9, 0x30ea, 0x30eb, 0x30ec, 0x30ed, 0x30ee, 0x30ef, 0x30f0, +0x30f1, 0x30f2, 0x30f3, 0x30f4, 0x30f5, 0x30f6, +33, 0x2c21, +0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0401, 0x0416, +0x0417, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, +0x041f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, +0x0427, 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, +0x042f, +33, 0x2c51, +0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0451, 0x0436, +0x0437, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, +0x043f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, +0x0447, 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, +0x044f, +94, 0x3021, +0xac00, 0xac01, 0xac04, 0xac07, 0xac08, 0xac09, 0xac0a, 0xac10, +0xac11, 0xac12, 0xac13, 0xac14, 0xac15, 0xac16, 0xac17, 0xac19, +0xac1a, 0xac1b, 0xac1c, 0xac1d, 0xac20, 0xac24, 0xac2c, 0xac2d, +0xac2f, 0xac30, 0xac31, 0xac38, 0xac39, 0xac3c, 0xac40, 0xac4b, +0xac4d, 0xac54, 0xac58, 0xac5c, 0xac70, 0xac71, 0xac74, 0xac77, +0xac78, 0xac7a, 0xac80, 0xac81, 0xac83, 0xac84, 0xac85, 0xac86, +0xac89, 0xac8a, 0xac8b, 0xac8c, 0xac90, 0xac94, 0xac9c, 0xac9d, +0xac9f, 0xaca0, 0xaca1, 0xaca8, 0xaca9, 0xacaa, 0xacac, 0xacaf, +0xacb0, 0xacb8, 0xacb9, 0xacbb, 0xacbc, 0xacbd, 0xacc1, 0xacc4, +0xacc8, 0xaccc, 0xacd5, 0xacd7, 0xace0, 0xace1, 0xace4, 0xace7, +0xace8, 0xacea, 0xacec, 0xacef, 0xacf0, 0xacf1, 0xacf3, 0xacf5, +0xacf6, 0xacfc, 0xacfd, 0xad00, 0xad04, 0xad06, +94, 0x3121, +0xad0c, 0xad0d, 0xad0f, 0xad11, 0xad18, 0xad1c, 0xad20, 0xad29, +0xad2c, 0xad2d, 0xad34, 0xad35, 0xad38, 0xad3c, 0xad44, 0xad45, +0xad47, 0xad49, 0xad50, 0xad54, 0xad58, 0xad61, 0xad63, 0xad6c, +0xad6d, 0xad70, 0xad73, 0xad74, 0xad75, 0xad76, 0xad7b, 0xad7c, +0xad7d, 0xad7f, 0xad81, 0xad82, 0xad88, 0xad89, 0xad8c, 0xad90, +0xad9c, 0xad9d, 0xada4, 0xadb7, 0xadc0, 0xadc1, 0xadc4, 0xadc8, +0xadd0, 0xadd1, 0xadd3, 0xaddc, 0xade0, 0xade4, 0xadf8, 0xadf9, +0xadfc, 0xadff, 0xae00, 0xae01, 0xae08, 0xae09, 0xae0b, 0xae0d, +0xae14, 0xae30, 0xae31, 0xae34, 0xae37, 0xae38, 0xae3a, 0xae40, +0xae41, 0xae43, 0xae45, 0xae46, 0xae4a, 0xae4c, 0xae4d, 0xae4e, +0xae50, 0xae54, 0xae56, 0xae5c, 0xae5d, 0xae5f, 0xae60, 0xae61, +0xae65, 0xae68, 0xae69, 0xae6c, 0xae70, 0xae78, +94, 0x3221, +0xae79, 0xae7b, 0xae7c, 0xae7d, 0xae84, 0xae85, 0xae8c, 0xaebc, +0xaebd, 0xaebe, 0xaec0, 0xaec4, 0xaecc, 0xaecd, 0xaecf, 0xaed0, +0xaed1, 0xaed8, 0xaed9, 0xaedc, 0xaee8, 0xaeeb, 0xaeed, 0xaef4, +0xaef8, 0xaefc, 0xaf07, 0xaf08, 0xaf0d, 0xaf10, 0xaf2c, 0xaf2d, +0xaf30, 0xaf32, 0xaf34, 0xaf3c, 0xaf3d, 0xaf3f, 0xaf41, 0xaf42, +0xaf43, 0xaf48, 0xaf49, 0xaf50, 0xaf5c, 0xaf5d, 0xaf64, 0xaf65, +0xaf79, 0xaf80, 0xaf84, 0xaf88, 0xaf90, 0xaf91, 0xaf95, 0xaf9c, +0xafb8, 0xafb9, 0xafbc, 0xafc0, 0xafc7, 0xafc8, 0xafc9, 0xafcb, +0xafcd, 0xafce, 0xafd4, 0xafdc, 0xafe8, 0xafe9, 0xaff0, 0xaff1, +0xaff4, 0xaff8, 0xb000, 0xb001, 0xb004, 0xb00c, 0xb010, 0xb014, +0xb01c, 0xb01d, 0xb028, 0xb044, 0xb045, 0xb048, 0xb04a, 0xb04c, +0xb04e, 0xb053, 0xb054, 0xb055, 0xb057, 0xb059, +94, 0x3321, +0xb05d, 0xb07c, 0xb07d, 0xb080, 0xb084, 0xb08c, 0xb08d, 0xb08f, +0xb091, 0xb098, 0xb099, 0xb09a, 0xb09c, 0xb09f, 0xb0a0, 0xb0a1, +0xb0a2, 0xb0a8, 0xb0a9, 0xb0ab, 0xb0ac, 0xb0ad, 0xb0ae, 0xb0af, +0xb0b1, 0xb0b3, 0xb0b4, 0xb0b5, 0xb0b8, 0xb0bc, 0xb0c4, 0xb0c5, +0xb0c7, 0xb0c8, 0xb0c9, 0xb0d0, 0xb0d1, 0xb0d4, 0xb0d8, 0xb0e0, +0xb0e5, 0xb108, 0xb109, 0xb10b, 0xb10c, 0xb110, 0xb112, 0xb113, +0xb118, 0xb119, 0xb11b, 0xb11c, 0xb11d, 0xb123, 0xb124, 0xb125, +0xb128, 0xb12c, 0xb134, 0xb135, 0xb137, 0xb138, 0xb139, 0xb140, +0xb141, 0xb144, 0xb148, 0xb150, 0xb151, 0xb154, 0xb155, 0xb158, +0xb15c, 0xb160, 0xb178, 0xb179, 0xb17c, 0xb180, 0xb182, 0xb188, +0xb189, 0xb18b, 0xb18d, 0xb192, 0xb193, 0xb194, 0xb198, 0xb19c, +0xb1a8, 0xb1cc, 0xb1d0, 0xb1d4, 0xb1dc, 0xb1dd, +94, 0x3421, +0xb1df, 0xb1e8, 0xb1e9, 0xb1ec, 0xb1f0, 0xb1f9, 0xb1fb, 0xb1fd, +0xb204, 0xb205, 0xb208, 0xb20b, 0xb20c, 0xb214, 0xb215, 0xb217, +0xb219, 0xb220, 0xb234, 0xb23c, 0xb258, 0xb25c, 0xb260, 0xb268, +0xb269, 0xb274, 0xb275, 0xb27c, 0xb284, 0xb285, 0xb289, 0xb290, +0xb291, 0xb294, 0xb298, 0xb299, 0xb29a, 0xb2a0, 0xb2a1, 0xb2a3, +0xb2a5, 0xb2a6, 0xb2aa, 0xb2ac, 0xb2b0, 0xb2b4, 0xb2c8, 0xb2c9, +0xb2cc, 0xb2d0, 0xb2d2, 0xb2d8, 0xb2d9, 0xb2db, 0xb2dd, 0xb2e2, +0xb2e4, 0xb2e5, 0xb2e6, 0xb2e8, 0xb2eb, 0xb2ec, 0xb2ed, 0xb2ee, +0xb2ef, 0xb2f3, 0xb2f4, 0xb2f5, 0xb2f7, 0xb2f8, 0xb2f9, 0xb2fa, +0xb2fb, 0xb2ff, 0xb300, 0xb301, 0xb304, 0xb308, 0xb310, 0xb311, +0xb313, 0xb314, 0xb315, 0xb31c, 0xb354, 0xb355, 0xb356, 0xb358, +0xb35b, 0xb35c, 0xb35e, 0xb35f, 0xb364, 0xb365, +94, 0x3521, +0xb367, 0xb369, 0xb36b, 0xb36e, 0xb370, 0xb371, 0xb374, 0xb378, +0xb380, 0xb381, 0xb383, 0xb384, 0xb385, 0xb38c, 0xb390, 0xb394, +0xb3a0, 0xb3a1, 0xb3a8, 0xb3ac, 0xb3c4, 0xb3c5, 0xb3c8, 0xb3cb, +0xb3cc, 0xb3ce, 0xb3d0, 0xb3d4, 0xb3d5, 0xb3d7, 0xb3d9, 0xb3db, +0xb3dd, 0xb3e0, 0xb3e4, 0xb3e8, 0xb3fc, 0xb410, 0xb418, 0xb41c, +0xb420, 0xb428, 0xb429, 0xb42b, 0xb434, 0xb450, 0xb451, 0xb454, +0xb458, 0xb460, 0xb461, 0xb463, 0xb465, 0xb46c, 0xb480, 0xb488, +0xb49d, 0xb4a4, 0xb4a8, 0xb4ac, 0xb4b5, 0xb4b7, 0xb4b9, 0xb4c0, +0xb4c4, 0xb4c8, 0xb4d0, 0xb4d5, 0xb4dc, 0xb4dd, 0xb4e0, 0xb4e3, +0xb4e4, 0xb4e6, 0xb4ec, 0xb4ed, 0xb4ef, 0xb4f1, 0xb4f8, 0xb514, +0xb515, 0xb518, 0xb51b, 0xb51c, 0xb524, 0xb525, 0xb527, 0xb528, +0xb529, 0xb52a, 0xb530, 0xb531, 0xb534, 0xb538, +94, 0x3621, +0xb540, 0xb541, 0xb543, 0xb544, 0xb545, 0xb54b, 0xb54c, 0xb54d, +0xb550, 0xb554, 0xb55c, 0xb55d, 0xb55f, 0xb560, 0xb561, 0xb5a0, +0xb5a1, 0xb5a4, 0xb5a8, 0xb5aa, 0xb5ab, 0xb5b0, 0xb5b1, 0xb5b3, +0xb5b4, 0xb5b5, 0xb5bb, 0xb5bc, 0xb5bd, 0xb5c0, 0xb5c4, 0xb5cc, +0xb5cd, 0xb5cf, 0xb5d0, 0xb5d1, 0xb5d8, 0xb5ec, 0xb610, 0xb611, +0xb614, 0xb618, 0xb625, 0xb62c, 0xb634, 0xb648, 0xb664, 0xb668, +0xb69c, 0xb69d, 0xb6a0, 0xb6a4, 0xb6ab, 0xb6ac, 0xb6b1, 0xb6d4, +0xb6f0, 0xb6f4, 0xb6f8, 0xb700, 0xb701, 0xb705, 0xb728, 0xb729, +0xb72c, 0xb72f, 0xb730, 0xb738, 0xb739, 0xb73b, 0xb744, 0xb748, +0xb74c, 0xb754, 0xb755, 0xb760, 0xb764, 0xb768, 0xb770, 0xb771, +0xb773, 0xb775, 0xb77c, 0xb77d, 0xb780, 0xb784, 0xb78c, 0xb78d, +0xb78f, 0xb790, 0xb791, 0xb792, 0xb796, 0xb797, +94, 0x3721, +0xb798, 0xb799, 0xb79c, 0xb7a0, 0xb7a8, 0xb7a9, 0xb7ab, 0xb7ac, +0xb7ad, 0xb7b4, 0xb7b5, 0xb7b8, 0xb7c7, 0xb7c9, 0xb7ec, 0xb7ed, +0xb7f0, 0xb7f4, 0xb7fc, 0xb7fd, 0xb7ff, 0xb800, 0xb801, 0xb807, +0xb808, 0xb809, 0xb80c, 0xb810, 0xb818, 0xb819, 0xb81b, 0xb81d, +0xb824, 0xb825, 0xb828, 0xb82c, 0xb834, 0xb835, 0xb837, 0xb838, +0xb839, 0xb840, 0xb844, 0xb851, 0xb853, 0xb85c, 0xb85d, 0xb860, +0xb864, 0xb86c, 0xb86d, 0xb86f, 0xb871, 0xb878, 0xb87c, 0xb88d, +0xb8a8, 0xb8b0, 0xb8b4, 0xb8b8, 0xb8c0, 0xb8c1, 0xb8c3, 0xb8c5, +0xb8cc, 0xb8d0, 0xb8d4, 0xb8dd, 0xb8df, 0xb8e1, 0xb8e8, 0xb8e9, +0xb8ec, 0xb8f0, 0xb8f8, 0xb8f9, 0xb8fb, 0xb8fd, 0xb904, 0xb918, +0xb920, 0xb93c, 0xb93d, 0xb940, 0xb944, 0xb94c, 0xb94f, 0xb951, +0xb958, 0xb959, 0xb95c, 0xb960, 0xb968, 0xb969, +94, 0x3821, +0xb96b, 0xb96d, 0xb974, 0xb975, 0xb978, 0xb97c, 0xb984, 0xb985, +0xb987, 0xb989, 0xb98a, 0xb98d, 0xb98e, 0xb9ac, 0xb9ad, 0xb9b0, +0xb9b4, 0xb9bc, 0xb9bd, 0xb9bf, 0xb9c1, 0xb9c8, 0xb9c9, 0xb9cc, +0xb9ce, 0xb9cf, 0xb9d0, 0xb9d1, 0xb9d2, 0xb9d8, 0xb9d9, 0xb9db, +0xb9dd, 0xb9de, 0xb9e1, 0xb9e3, 0xb9e4, 0xb9e5, 0xb9e8, 0xb9ec, +0xb9f4, 0xb9f5, 0xb9f7, 0xb9f8, 0xb9f9, 0xb9fa, 0xba00, 0xba01, +0xba08, 0xba15, 0xba38, 0xba39, 0xba3c, 0xba40, 0xba42, 0xba48, +0xba49, 0xba4b, 0xba4d, 0xba4e, 0xba53, 0xba54, 0xba55, 0xba58, +0xba5c, 0xba64, 0xba65, 0xba67, 0xba68, 0xba69, 0xba70, 0xba71, +0xba74, 0xba78, 0xba83, 0xba84, 0xba85, 0xba87, 0xba8c, 0xbaa8, +0xbaa9, 0xbaab, 0xbaac, 0xbab0, 0xbab2, 0xbab8, 0xbab9, 0xbabb, +0xbabd, 0xbac4, 0xbac8, 0xbad8, 0xbad9, 0xbafc, +94, 0x3921, +0xbb00, 0xbb04, 0xbb0d, 0xbb0f, 0xbb11, 0xbb18, 0xbb1c, 0xbb20, +0xbb29, 0xbb2b, 0xbb34, 0xbb35, 0xbb36, 0xbb38, 0xbb3b, 0xbb3c, +0xbb3d, 0xbb3e, 0xbb44, 0xbb45, 0xbb47, 0xbb49, 0xbb4d, 0xbb4f, +0xbb50, 0xbb54, 0xbb58, 0xbb61, 0xbb63, 0xbb6c, 0xbb88, 0xbb8c, +0xbb90, 0xbba4, 0xbba8, 0xbbac, 0xbbb4, 0xbbb7, 0xbbc0, 0xbbc4, +0xbbc8, 0xbbd0, 0xbbd3, 0xbbf8, 0xbbf9, 0xbbfc, 0xbbff, 0xbc00, +0xbc02, 0xbc08, 0xbc09, 0xbc0b, 0xbc0c, 0xbc0d, 0xbc0f, 0xbc11, +0xbc14, 0xbc15, 0xbc16, 0xbc17, 0xbc18, 0xbc1b, 0xbc1c, 0xbc1d, +0xbc1e, 0xbc1f, 0xbc24, 0xbc25, 0xbc27, 0xbc29, 0xbc2d, 0xbc30, +0xbc31, 0xbc34, 0xbc38, 0xbc40, 0xbc41, 0xbc43, 0xbc44, 0xbc45, +0xbc49, 0xbc4c, 0xbc4d, 0xbc50, 0xbc5d, 0xbc84, 0xbc85, 0xbc88, +0xbc8b, 0xbc8c, 0xbc8e, 0xbc94, 0xbc95, 0xbc97, +94, 0x3a21, +0xbc99, 0xbc9a, 0xbca0, 0xbca1, 0xbca4, 0xbca7, 0xbca8, 0xbcb0, +0xbcb1, 0xbcb3, 0xbcb4, 0xbcb5, 0xbcbc, 0xbcbd, 0xbcc0, 0xbcc4, +0xbccd, 0xbccf, 0xbcd0, 0xbcd1, 0xbcd5, 0xbcd8, 0xbcdc, 0xbcf4, +0xbcf5, 0xbcf6, 0xbcf8, 0xbcfc, 0xbd04, 0xbd05, 0xbd07, 0xbd09, +0xbd10, 0xbd14, 0xbd24, 0xbd2c, 0xbd40, 0xbd48, 0xbd49, 0xbd4c, +0xbd50, 0xbd58, 0xbd59, 0xbd64, 0xbd68, 0xbd80, 0xbd81, 0xbd84, +0xbd87, 0xbd88, 0xbd89, 0xbd8a, 0xbd90, 0xbd91, 0xbd93, 0xbd95, +0xbd99, 0xbd9a, 0xbd9c, 0xbda4, 0xbdb0, 0xbdb8, 0xbdd4, 0xbdd5, +0xbdd8, 0xbddc, 0xbde9, 0xbdf0, 0xbdf4, 0xbdf8, 0xbe00, 0xbe03, +0xbe05, 0xbe0c, 0xbe0d, 0xbe10, 0xbe14, 0xbe1c, 0xbe1d, 0xbe1f, +0xbe44, 0xbe45, 0xbe48, 0xbe4c, 0xbe4e, 0xbe54, 0xbe55, 0xbe57, +0xbe59, 0xbe5a, 0xbe5b, 0xbe60, 0xbe61, 0xbe64, +94, 0x3b21, +0xbe68, 0xbe6a, 0xbe70, 0xbe71, 0xbe73, 0xbe74, 0xbe75, 0xbe7b, +0xbe7c, 0xbe7d, 0xbe80, 0xbe84, 0xbe8c, 0xbe8d, 0xbe8f, 0xbe90, +0xbe91, 0xbe98, 0xbe99, 0xbea8, 0xbed0, 0xbed1, 0xbed4, 0xbed7, +0xbed8, 0xbee0, 0xbee3, 0xbee4, 0xbee5, 0xbeec, 0xbf01, 0xbf08, +0xbf09, 0xbf18, 0xbf19, 0xbf1b, 0xbf1c, 0xbf1d, 0xbf40, 0xbf41, +0xbf44, 0xbf48, 0xbf50, 0xbf51, 0xbf55, 0xbf94, 0xbfb0, 0xbfc5, +0xbfcc, 0xbfcd, 0xbfd0, 0xbfd4, 0xbfdc, 0xbfdf, 0xbfe1, 0xc03c, +0xc051, 0xc058, 0xc05c, 0xc060, 0xc068, 0xc069, 0xc090, 0xc091, +0xc094, 0xc098, 0xc0a0, 0xc0a1, 0xc0a3, 0xc0a5, 0xc0ac, 0xc0ad, +0xc0af, 0xc0b0, 0xc0b3, 0xc0b4, 0xc0b5, 0xc0b6, 0xc0bc, 0xc0bd, +0xc0bf, 0xc0c0, 0xc0c1, 0xc0c5, 0xc0c8, 0xc0c9, 0xc0cc, 0xc0d0, +0xc0d8, 0xc0d9, 0xc0db, 0xc0dc, 0xc0dd, 0xc0e4, +94, 0x3c21, +0xc0e5, 0xc0e8, 0xc0ec, 0xc0f4, 0xc0f5, 0xc0f7, 0xc0f9, 0xc100, +0xc104, 0xc108, 0xc110, 0xc115, 0xc11c, 0xc11d, 0xc11e, 0xc11f, +0xc120, 0xc123, 0xc124, 0xc126, 0xc127, 0xc12c, 0xc12d, 0xc12f, +0xc130, 0xc131, 0xc136, 0xc138, 0xc139, 0xc13c, 0xc140, 0xc148, +0xc149, 0xc14b, 0xc14c, 0xc14d, 0xc154, 0xc155, 0xc158, 0xc15c, +0xc164, 0xc165, 0xc167, 0xc168, 0xc169, 0xc170, 0xc174, 0xc178, +0xc185, 0xc18c, 0xc18d, 0xc18e, 0xc190, 0xc194, 0xc196, 0xc19c, +0xc19d, 0xc19f, 0xc1a1, 0xc1a5, 0xc1a8, 0xc1a9, 0xc1ac, 0xc1b0, +0xc1bd, 0xc1c4, 0xc1c8, 0xc1cc, 0xc1d4, 0xc1d7, 0xc1d8, 0xc1e0, +0xc1e4, 0xc1e8, 0xc1f0, 0xc1f1, 0xc1f3, 0xc1fc, 0xc1fd, 0xc200, +0xc204, 0xc20c, 0xc20d, 0xc20f, 0xc211, 0xc218, 0xc219, 0xc21c, +0xc21f, 0xc220, 0xc228, 0xc229, 0xc22b, 0xc22d, +94, 0x3d21, +0xc22f, 0xc231, 0xc232, 0xc234, 0xc248, 0xc250, 0xc251, 0xc254, +0xc258, 0xc260, 0xc265, 0xc26c, 0xc26d, 0xc270, 0xc274, 0xc27c, +0xc27d, 0xc27f, 0xc281, 0xc288, 0xc289, 0xc290, 0xc298, 0xc29b, +0xc29d, 0xc2a4, 0xc2a5, 0xc2a8, 0xc2ac, 0xc2ad, 0xc2b4, 0xc2b5, +0xc2b7, 0xc2b9, 0xc2dc, 0xc2dd, 0xc2e0, 0xc2e3, 0xc2e4, 0xc2eb, +0xc2ec, 0xc2ed, 0xc2ef, 0xc2f1, 0xc2f6, 0xc2f8, 0xc2f9, 0xc2fb, +0xc2fc, 0xc300, 0xc308, 0xc309, 0xc30c, 0xc30d, 0xc313, 0xc314, +0xc315, 0xc318, 0xc31c, 0xc324, 0xc325, 0xc328, 0xc329, 0xc345, +0xc368, 0xc369, 0xc36c, 0xc370, 0xc372, 0xc378, 0xc379, 0xc37c, +0xc37d, 0xc384, 0xc388, 0xc38c, 0xc3c0, 0xc3d8, 0xc3d9, 0xc3dc, +0xc3df, 0xc3e0, 0xc3e2, 0xc3e8, 0xc3e9, 0xc3ed, 0xc3f4, 0xc3f5, +0xc3f8, 0xc408, 0xc410, 0xc424, 0xc42c, 0xc430, +94, 0x3e21, +0xc434, 0xc43c, 0xc43d, 0xc448, 0xc464, 0xc465, 0xc468, 0xc46c, +0xc474, 0xc475, 0xc479, 0xc480, 0xc494, 0xc49c, 0xc4b8, 0xc4bc, +0xc4e9, 0xc4f0, 0xc4f1, 0xc4f4, 0xc4f8, 0xc4fa, 0xc4ff, 0xc500, +0xc501, 0xc50c, 0xc510, 0xc514, 0xc51c, 0xc528, 0xc529, 0xc52c, +0xc530, 0xc538, 0xc539, 0xc53b, 0xc53d, 0xc544, 0xc545, 0xc548, +0xc549, 0xc54a, 0xc54c, 0xc54d, 0xc54e, 0xc553, 0xc554, 0xc555, +0xc557, 0xc558, 0xc559, 0xc55d, 0xc55e, 0xc560, 0xc561, 0xc564, +0xc568, 0xc570, 0xc571, 0xc573, 0xc574, 0xc575, 0xc57c, 0xc57d, +0xc580, 0xc584, 0xc587, 0xc58c, 0xc58d, 0xc58f, 0xc591, 0xc595, +0xc597, 0xc598, 0xc59c, 0xc5a0, 0xc5a9, 0xc5b4, 0xc5b5, 0xc5b8, +0xc5b9, 0xc5bb, 0xc5bc, 0xc5bd, 0xc5be, 0xc5c4, 0xc5c5, 0xc5c6, +0xc5c7, 0xc5c8, 0xc5c9, 0xc5ca, 0xc5cc, 0xc5ce, +94, 0x3f21, +0xc5d0, 0xc5d1, 0xc5d4, 0xc5d8, 0xc5e0, 0xc5e1, 0xc5e3, 0xc5e5, +0xc5ec, 0xc5ed, 0xc5ee, 0xc5f0, 0xc5f4, 0xc5f6, 0xc5f7, 0xc5fc, +0xc5fd, 0xc5fe, 0xc5ff, 0xc600, 0xc601, 0xc605, 0xc606, 0xc607, +0xc608, 0xc60c, 0xc610, 0xc618, 0xc619, 0xc61b, 0xc61c, 0xc624, +0xc625, 0xc628, 0xc62c, 0xc62d, 0xc62e, 0xc630, 0xc633, 0xc634, +0xc635, 0xc637, 0xc639, 0xc63b, 0xc640, 0xc641, 0xc644, 0xc648, +0xc650, 0xc651, 0xc653, 0xc654, 0xc655, 0xc65c, 0xc65d, 0xc660, +0xc66c, 0xc66f, 0xc671, 0xc678, 0xc679, 0xc67c, 0xc680, 0xc688, +0xc689, 0xc68b, 0xc68d, 0xc694, 0xc695, 0xc698, 0xc69c, 0xc6a4, +0xc6a5, 0xc6a7, 0xc6a9, 0xc6b0, 0xc6b1, 0xc6b4, 0xc6b8, 0xc6b9, +0xc6ba, 0xc6c0, 0xc6c1, 0xc6c3, 0xc6c5, 0xc6cc, 0xc6cd, 0xc6d0, +0xc6d4, 0xc6dc, 0xc6dd, 0xc6e0, 0xc6e1, 0xc6e8, +94, 0x4021, +0xc6e9, 0xc6ec, 0xc6f0, 0xc6f8, 0xc6f9, 0xc6fd, 0xc704, 0xc705, +0xc708, 0xc70c, 0xc714, 0xc715, 0xc717, 0xc719, 0xc720, 0xc721, +0xc724, 0xc728, 0xc730, 0xc731, 0xc733, 0xc735, 0xc737, 0xc73c, +0xc73d, 0xc740, 0xc744, 0xc74a, 0xc74c, 0xc74d, 0xc74f, 0xc751, +0xc752, 0xc753, 0xc754, 0xc755, 0xc756, 0xc757, 0xc758, 0xc75c, +0xc760, 0xc768, 0xc76b, 0xc774, 0xc775, 0xc778, 0xc77c, 0xc77d, +0xc77e, 0xc783, 0xc784, 0xc785, 0xc787, 0xc788, 0xc789, 0xc78a, +0xc78e, 0xc790, 0xc791, 0xc794, 0xc796, 0xc797, 0xc798, 0xc79a, +0xc7a0, 0xc7a1, 0xc7a3, 0xc7a4, 0xc7a5, 0xc7a6, 0xc7ac, 0xc7ad, +0xc7b0, 0xc7b4, 0xc7bc, 0xc7bd, 0xc7bf, 0xc7c0, 0xc7c1, 0xc7c8, +0xc7c9, 0xc7cc, 0xc7ce, 0xc7d0, 0xc7d8, 0xc7dd, 0xc7e4, 0xc7e8, +0xc7ec, 0xc800, 0xc801, 0xc804, 0xc808, 0xc80a, +94, 0x4121, +0xc810, 0xc811, 0xc813, 0xc815, 0xc816, 0xc81c, 0xc81d, 0xc820, +0xc824, 0xc82c, 0xc82d, 0xc82f, 0xc831, 0xc838, 0xc83c, 0xc840, +0xc848, 0xc849, 0xc84c, 0xc84d, 0xc854, 0xc870, 0xc871, 0xc874, +0xc878, 0xc87a, 0xc880, 0xc881, 0xc883, 0xc885, 0xc886, 0xc887, +0xc88b, 0xc88c, 0xc88d, 0xc894, 0xc89d, 0xc89f, 0xc8a1, 0xc8a8, +0xc8bc, 0xc8bd, 0xc8c4, 0xc8c8, 0xc8cc, 0xc8d4, 0xc8d5, 0xc8d7, +0xc8d9, 0xc8e0, 0xc8e1, 0xc8e4, 0xc8f5, 0xc8fc, 0xc8fd, 0xc900, +0xc904, 0xc905, 0xc906, 0xc90c, 0xc90d, 0xc90f, 0xc911, 0xc918, +0xc92c, 0xc934, 0xc950, 0xc951, 0xc954, 0xc958, 0xc960, 0xc961, +0xc963, 0xc96c, 0xc970, 0xc974, 0xc97c, 0xc988, 0xc989, 0xc98c, +0xc990, 0xc998, 0xc999, 0xc99b, 0xc99d, 0xc9c0, 0xc9c1, 0xc9c4, +0xc9c7, 0xc9c8, 0xc9ca, 0xc9d0, 0xc9d1, 0xc9d3, +94, 0x4221, +0xc9d5, 0xc9d6, 0xc9d9, 0xc9da, 0xc9dc, 0xc9dd, 0xc9e0, 0xc9e2, +0xc9e4, 0xc9e7, 0xc9ec, 0xc9ed, 0xc9ef, 0xc9f0, 0xc9f1, 0xc9f8, +0xc9f9, 0xc9fc, 0xca00, 0xca08, 0xca09, 0xca0b, 0xca0c, 0xca0d, +0xca14, 0xca18, 0xca29, 0xca4c, 0xca4d, 0xca50, 0xca54, 0xca5c, +0xca5d, 0xca5f, 0xca60, 0xca61, 0xca68, 0xca7d, 0xca84, 0xca98, +0xcabc, 0xcabd, 0xcac0, 0xcac4, 0xcacc, 0xcacd, 0xcacf, 0xcad1, +0xcad3, 0xcad8, 0xcad9, 0xcae0, 0xcaec, 0xcaf4, 0xcb08, 0xcb10, +0xcb14, 0xcb18, 0xcb20, 0xcb21, 0xcb41, 0xcb48, 0xcb49, 0xcb4c, +0xcb50, 0xcb58, 0xcb59, 0xcb5d, 0xcb64, 0xcb78, 0xcb79, 0xcb9c, +0xcbb8, 0xcbd4, 0xcbe4, 0xcbe7, 0xcbe9, 0xcc0c, 0xcc0d, 0xcc10, +0xcc14, 0xcc1c, 0xcc1d, 0xcc21, 0xcc22, 0xcc27, 0xcc28, 0xcc29, +0xcc2c, 0xcc2e, 0xcc30, 0xcc38, 0xcc39, 0xcc3b, +94, 0x4321, +0xcc3c, 0xcc3d, 0xcc3e, 0xcc44, 0xcc45, 0xcc48, 0xcc4c, 0xcc54, +0xcc55, 0xcc57, 0xcc58, 0xcc59, 0xcc60, 0xcc64, 0xcc66, 0xcc68, +0xcc70, 0xcc75, 0xcc98, 0xcc99, 0xcc9c, 0xcca0, 0xcca8, 0xcca9, +0xccab, 0xccac, 0xccad, 0xccb4, 0xccb5, 0xccb8, 0xccbc, 0xccc4, +0xccc5, 0xccc7, 0xccc9, 0xccd0, 0xccd4, 0xcce4, 0xccec, 0xccf0, +0xcd01, 0xcd08, 0xcd09, 0xcd0c, 0xcd10, 0xcd18, 0xcd19, 0xcd1b, +0xcd1d, 0xcd24, 0xcd28, 0xcd2c, 0xcd39, 0xcd5c, 0xcd60, 0xcd64, +0xcd6c, 0xcd6d, 0xcd6f, 0xcd71, 0xcd78, 0xcd88, 0xcd94, 0xcd95, +0xcd98, 0xcd9c, 0xcda4, 0xcda5, 0xcda7, 0xcda9, 0xcdb0, 0xcdc4, +0xcdcc, 0xcdd0, 0xcde8, 0xcdec, 0xcdf0, 0xcdf8, 0xcdf9, 0xcdfb, +0xcdfd, 0xce04, 0xce08, 0xce0c, 0xce14, 0xce19, 0xce20, 0xce21, +0xce24, 0xce28, 0xce30, 0xce31, 0xce33, 0xce35, +94, 0x4421, +0xce58, 0xce59, 0xce5c, 0xce5f, 0xce60, 0xce61, 0xce68, 0xce69, +0xce6b, 0xce6d, 0xce74, 0xce75, 0xce78, 0xce7c, 0xce84, 0xce85, +0xce87, 0xce89, 0xce90, 0xce91, 0xce94, 0xce98, 0xcea0, 0xcea1, +0xcea3, 0xcea4, 0xcea5, 0xceac, 0xcead, 0xcec1, 0xcee4, 0xcee5, +0xcee8, 0xceeb, 0xceec, 0xcef4, 0xcef5, 0xcef7, 0xcef8, 0xcef9, +0xcf00, 0xcf01, 0xcf04, 0xcf08, 0xcf10, 0xcf11, 0xcf13, 0xcf15, +0xcf1c, 0xcf20, 0xcf24, 0xcf2c, 0xcf2d, 0xcf2f, 0xcf30, 0xcf31, +0xcf38, 0xcf54, 0xcf55, 0xcf58, 0xcf5c, 0xcf64, 0xcf65, 0xcf67, +0xcf69, 0xcf70, 0xcf71, 0xcf74, 0xcf78, 0xcf80, 0xcf85, 0xcf8c, +0xcfa1, 0xcfa8, 0xcfb0, 0xcfc4, 0xcfe0, 0xcfe1, 0xcfe4, 0xcfe8, +0xcff0, 0xcff1, 0xcff3, 0xcff5, 0xcffc, 0xd000, 0xd004, 0xd011, +0xd018, 0xd02d, 0xd034, 0xd035, 0xd038, 0xd03c, +94, 0x4521, +0xd044, 0xd045, 0xd047, 0xd049, 0xd050, 0xd054, 0xd058, 0xd060, +0xd06c, 0xd06d, 0xd070, 0xd074, 0xd07c, 0xd07d, 0xd081, 0xd0a4, +0xd0a5, 0xd0a8, 0xd0ac, 0xd0b4, 0xd0b5, 0xd0b7, 0xd0b9, 0xd0c0, +0xd0c1, 0xd0c4, 0xd0c8, 0xd0c9, 0xd0d0, 0xd0d1, 0xd0d3, 0xd0d4, +0xd0d5, 0xd0dc, 0xd0dd, 0xd0e0, 0xd0e4, 0xd0ec, 0xd0ed, 0xd0ef, +0xd0f0, 0xd0f1, 0xd0f8, 0xd10d, 0xd130, 0xd131, 0xd134, 0xd138, +0xd13a, 0xd140, 0xd141, 0xd143, 0xd144, 0xd145, 0xd14c, 0xd14d, +0xd150, 0xd154, 0xd15c, 0xd15d, 0xd15f, 0xd161, 0xd168, 0xd16c, +0xd17c, 0xd184, 0xd188, 0xd1a0, 0xd1a1, 0xd1a4, 0xd1a8, 0xd1b0, +0xd1b1, 0xd1b3, 0xd1b5, 0xd1ba, 0xd1bc, 0xd1c0, 0xd1d8, 0xd1f4, +0xd1f8, 0xd207, 0xd209, 0xd210, 0xd22c, 0xd22d, 0xd230, 0xd234, +0xd23c, 0xd23d, 0xd23f, 0xd241, 0xd248, 0xd25c, +94, 0x4621, +0xd264, 0xd280, 0xd281, 0xd284, 0xd288, 0xd290, 0xd291, 0xd295, +0xd29c, 0xd2a0, 0xd2a4, 0xd2ac, 0xd2b1, 0xd2b8, 0xd2b9, 0xd2bc, +0xd2bf, 0xd2c0, 0xd2c2, 0xd2c8, 0xd2c9, 0xd2cb, 0xd2d4, 0xd2d8, +0xd2dc, 0xd2e4, 0xd2e5, 0xd2f0, 0xd2f1, 0xd2f4, 0xd2f8, 0xd300, +0xd301, 0xd303, 0xd305, 0xd30c, 0xd30d, 0xd30e, 0xd310, 0xd314, +0xd316, 0xd31c, 0xd31d, 0xd31f, 0xd320, 0xd321, 0xd325, 0xd328, +0xd329, 0xd32c, 0xd330, 0xd338, 0xd339, 0xd33b, 0xd33c, 0xd33d, +0xd344, 0xd345, 0xd37c, 0xd37d, 0xd380, 0xd384, 0xd38c, 0xd38d, +0xd38f, 0xd390, 0xd391, 0xd398, 0xd399, 0xd39c, 0xd3a0, 0xd3a8, +0xd3a9, 0xd3ab, 0xd3ad, 0xd3b4, 0xd3b8, 0xd3bc, 0xd3c4, 0xd3c5, +0xd3c8, 0xd3c9, 0xd3d0, 0xd3d8, 0xd3e1, 0xd3e3, 0xd3ec, 0xd3ed, +0xd3f0, 0xd3f4, 0xd3fc, 0xd3fd, 0xd3ff, 0xd401, +94, 0x4721, +0xd408, 0xd41d, 0xd440, 0xd444, 0xd45c, 0xd460, 0xd464, 0xd46d, +0xd46f, 0xd478, 0xd479, 0xd47c, 0xd47f, 0xd480, 0xd482, 0xd488, +0xd489, 0xd48b, 0xd48d, 0xd494, 0xd4a9, 0xd4cc, 0xd4d0, 0xd4d4, +0xd4dc, 0xd4df, 0xd4e8, 0xd4ec, 0xd4f0, 0xd4f8, 0xd4fb, 0xd4fd, +0xd504, 0xd508, 0xd50c, 0xd514, 0xd515, 0xd517, 0xd53c, 0xd53d, +0xd540, 0xd544, 0xd54c, 0xd54d, 0xd54f, 0xd551, 0xd558, 0xd559, +0xd55c, 0xd560, 0xd565, 0xd568, 0xd569, 0xd56b, 0xd56d, 0xd574, +0xd575, 0xd578, 0xd57c, 0xd584, 0xd585, 0xd587, 0xd588, 0xd589, +0xd590, 0xd5a5, 0xd5c8, 0xd5c9, 0xd5cc, 0xd5d0, 0xd5d2, 0xd5d8, +0xd5d9, 0xd5db, 0xd5dd, 0xd5e4, 0xd5e5, 0xd5e8, 0xd5ec, 0xd5f4, +0xd5f5, 0xd5f7, 0xd5f9, 0xd600, 0xd601, 0xd604, 0xd608, 0xd610, +0xd611, 0xd613, 0xd614, 0xd615, 0xd61c, 0xd620, +94, 0x4821, +0xd624, 0xd62d, 0xd638, 0xd639, 0xd63c, 0xd640, 0xd645, 0xd648, +0xd649, 0xd64b, 0xd64d, 0xd651, 0xd654, 0xd655, 0xd658, 0xd65c, +0xd667, 0xd669, 0xd670, 0xd671, 0xd674, 0xd683, 0xd685, 0xd68c, +0xd68d, 0xd690, 0xd694, 0xd69d, 0xd69f, 0xd6a1, 0xd6a8, 0xd6ac, +0xd6b0, 0xd6b9, 0xd6bb, 0xd6c4, 0xd6c5, 0xd6c8, 0xd6cc, 0xd6d1, +0xd6d4, 0xd6d7, 0xd6d9, 0xd6e0, 0xd6e4, 0xd6e8, 0xd6f0, 0xd6f5, +0xd6fc, 0xd6fd, 0xd700, 0xd704, 0xd711, 0xd718, 0xd719, 0xd71c, +0xd720, 0xd728, 0xd729, 0xd72b, 0xd72d, 0xd734, 0xd735, 0xd738, +0xd73c, 0xd744, 0xd747, 0xd749, 0xd750, 0xd751, 0xd754, 0xd756, +0xd757, 0xd758, 0xd759, 0xd760, 0xd761, 0xd763, 0xd765, 0xd769, +0xd76c, 0xd770, 0xd774, 0xd77c, 0xd77d, 0xd781, 0xd788, 0xd789, +0xd78c, 0xd790, 0xd798, 0xd799, 0xd79b, 0xd79d, +94, 0x4a21, +0x4f3d, 0x4f73, 0x5047, 0x50f9, 0x52a0, 0x53ef, 0x5475, 0x54e5, +0x5609, 0x5ac1, 0x5bb6, 0x6687, 0x67b6, 0x67b7, 0x67ef, 0x6b4c, +0x73c2, 0x75c2, 0x7a3c, 0x82db, 0x8304, 0x8857, 0x8888, 0x8a36, +0x8cc8, 0x8dcf, 0x8efb, 0x8fe6, 0x99d5, 0x523b, 0x5374, 0x5404, +0x606a, 0x6164, 0x6bbc, 0x73cf, 0x811a, 0x89ba, 0x89d2, 0x95a3, +0x4f83, 0x520a, 0x58be, 0x5978, 0x59e6, 0x5e72, 0x5e79, 0x61c7, +0x63c0, 0x6746, 0x67ec, 0x687f, 0x6f97, 0x764e, 0x770b, 0x78f5, +0x7a08, 0x7aff, 0x7c21, 0x809d, 0x826e, 0x8271, 0x8aeb, 0x9593, +0x4e6b, 0x559d, 0x66f7, 0x6e34, 0x78a3, 0x7aed, 0x845b, 0x8910, +0x874e, 0x97a8, 0x52d8, 0x574e, 0x582a, 0x5d4c, 0x611f, 0x61be, +0x6221, 0x6562, 0x67d1, 0x6a44, 0x6e1b, 0x7518, 0x75b3, 0x76e3, +0x77b0, 0x7d3a, 0x90af, 0x9451, 0x9452, 0x9f95, +94, 0x4b21, +0x5323, 0x5cac, 0x7532, 0x80db, 0x9240, 0x9598, 0x525b, 0x5808, +0x59dc, 0x5ca1, 0x5d17, 0x5eb7, 0x5f3a, 0x5f4a, 0x6177, 0x6c5f, +0x757a, 0x7586, 0x7ce0, 0x7d73, 0x7db1, 0x7f8c, 0x8154, 0x8221, +0x8591, 0x8941, 0x8b1b, 0x92fc, 0x964d, 0x9c47, 0x4ecb, 0x4ef7, +0x500b, 0x51f1, 0x584f, 0x6137, 0x613e, 0x6168, 0x6539, 0x69ea, +0x6f11, 0x75a5, 0x7686, 0x76d6, 0x7b87, 0x82a5, 0x84cb, 0xf900, +0x93a7, 0x958b, 0x5580, 0x5ba2, 0x5751, 0xf901, 0x7cb3, 0x7fb9, +0x91b5, 0x5028, 0x53bb, 0x5c45, 0x5de8, 0x62d2, 0x636e, 0x64da, +0x64e7, 0x6e20, 0x70ac, 0x795b, 0x8ddd, 0x8e1e, 0xf902, 0x907d, +0x9245, 0x92f8, 0x4e7e, 0x4ef6, 0x5065, 0x5dfe, 0x5efa, 0x6106, +0x6957, 0x8171, 0x8654, 0x8e47, 0x9375, 0x9a2b, 0x4e5e, 0x5091, +0x6770, 0x6840, 0x5109, 0x528d, 0x5292, 0x6aa2, +94, 0x4c21, +0x77bc, 0x9210, 0x9ed4, 0x52ab, 0x602f, 0x8ff2, 0x5048, 0x61a9, +0x63ed, 0x64ca, 0x683c, 0x6a84, 0x6fc0, 0x8188, 0x89a1, 0x9694, +0x5805, 0x727d, 0x72ac, 0x7504, 0x7d79, 0x7e6d, 0x80a9, 0x898b, +0x8b74, 0x9063, 0x9d51, 0x6289, 0x6c7a, 0x6f54, 0x7d50, 0x7f3a, +0x8a23, 0x517c, 0x614a, 0x7b9d, 0x8b19, 0x9257, 0x938c, 0x4eac, +0x4fd3, 0x501e, 0x50be, 0x5106, 0x52c1, 0x52cd, 0x537f, 0x5770, +0x5883, 0x5e9a, 0x5f91, 0x6176, 0x61ac, 0x64ce, 0x656c, 0x666f, +0x66bb, 0x66f4, 0x6897, 0x6d87, 0x7085, 0x70f1, 0x749f, 0x74a5, +0x74ca, 0x75d9, 0x786c, 0x78ec, 0x7adf, 0x7af6, 0x7d45, 0x7d93, +0x8015, 0x803f, 0x811b, 0x8396, 0x8b66, 0x8f15, 0x9015, 0x93e1, +0x9803, 0x9838, 0x9a5a, 0x9be8, 0x4fc2, 0x5553, 0x583a, 0x5951, +0x5b63, 0x5c46, 0x60b8, 0x6212, 0x6842, 0x68b0, +94, 0x4d21, +0x68e8, 0x6eaa, 0x754c, 0x7678, 0x78ce, 0x7a3d, 0x7cfb, 0x7e6b, +0x7e7c, 0x8a08, 0x8aa1, 0x8c3f, 0x968e, 0x9dc4, 0x53e4, 0x53e9, +0x544a, 0x5471, 0x56fa, 0x59d1, 0x5b64, 0x5c3b, 0x5eab, 0x62f7, +0x6537, 0x6545, 0x6572, 0x66a0, 0x67af, 0x69c1, 0x6cbd, 0x75fc, +0x7690, 0x777e, 0x7a3f, 0x7f94, 0x8003, 0x80a1, 0x818f, 0x82e6, +0x82fd, 0x83f0, 0x85c1, 0x8831, 0x88b4, 0x8aa5, 0xf903, 0x8f9c, +0x932e, 0x96c7, 0x9867, 0x9ad8, 0x9f13, 0x54ed, 0x659b, 0x66f2, +0x688f, 0x7a40, 0x8c37, 0x9d60, 0x56f0, 0x5764, 0x5d11, 0x6606, +0x68b1, 0x68cd, 0x6efe, 0x7428, 0x889e, 0x9be4, 0x6c68, 0xf904, +0x9aa8, 0x4f9b, 0x516c, 0x5171, 0x529f, 0x5b54, 0x5de5, 0x6050, +0x606d, 0x62f1, 0x63a7, 0x653b, 0x73d9, 0x7a7a, 0x86a3, 0x8ca2, +0x978f, 0x4e32, 0x5be1, 0x6208, 0x679c, 0x74dc, +94, 0x4e21, +0x79d1, 0x83d3, 0x8a87, 0x8ab2, 0x8de8, 0x904e, 0x934b, 0x9846, +0x5ed3, 0x69e8, 0x85ff, 0x90ed, 0xf905, 0x51a0, 0x5b98, 0x5bec, +0x6163, 0x68fa, 0x6b3e, 0x704c, 0x742f, 0x74d8, 0x7ba1, 0x7f50, +0x83c5, 0x89c0, 0x8cab, 0x95dc, 0x9928, 0x522e, 0x605d, 0x62ec, +0x9002, 0x4f8a, 0x5149, 0x5321, 0x58d9, 0x5ee3, 0x66e0, 0x6d38, +0x709a, 0x72c2, 0x73d6, 0x7b50, 0x80f1, 0x945b, 0x5366, 0x639b, +0x7f6b, 0x4e56, 0x5080, 0x584a, 0x58de, 0x602a, 0x6127, 0x62d0, +0x69d0, 0x9b41, 0x5b8f, 0x7d18, 0x80b1, 0x8f5f, 0x4ea4, 0x50d1, +0x54ac, 0x55ac, 0x5b0c, 0x5da0, 0x5de7, 0x652a, 0x654e, 0x6821, +0x6a4b, 0x72e1, 0x768e, 0x77ef, 0x7d5e, 0x7ff9, 0x81a0, 0x854e, +0x86df, 0x8f03, 0x8f4e, 0x90ca, 0x9903, 0x9a55, 0x9bab, 0x4e18, +0x4e45, 0x4e5d, 0x4ec7, 0x4ff1, 0x5177, 0x52fe, +94, 0x4f21, +0x5340, 0x53e3, 0x53e5, 0x548e, 0x5614, 0x5775, 0x57a2, 0x5bc7, +0x5d87, 0x5ed0, 0x61fc, 0x62d8, 0x6551, 0x67b8, 0x67e9, 0x69cb, +0x6b50, 0x6bc6, 0x6bec, 0x6c42, 0x6e9d, 0x7078, 0x72d7, 0x7396, +0x7403, 0x77bf, 0x77e9, 0x7a76, 0x7d7f, 0x8009, 0x81fc, 0x8205, +0x820a, 0x82df, 0x8862, 0x8b33, 0x8cfc, 0x8ec0, 0x9011, 0x90b1, +0x9264, 0x92b6, 0x99d2, 0x9a45, 0x9ce9, 0x9dd7, 0x9f9c, 0x570b, +0x5c40, 0x83ca, 0x97a0, 0x97ab, 0x9eb4, 0x541b, 0x7a98, 0x7fa4, +0x88d9, 0x8ecd, 0x90e1, 0x5800, 0x5c48, 0x6398, 0x7a9f, 0x5bae, +0x5f13, 0x7a79, 0x7aae, 0x828e, 0x8eac, 0x5026, 0x5238, 0x52f8, +0x5377, 0x5708, 0x62f3, 0x6372, 0x6b0a, 0x6dc3, 0x7737, 0x53a5, +0x7357, 0x8568, 0x8e76, 0x95d5, 0x673a, 0x6ac3, 0x6f70, 0x8a6d, +0x8ecc, 0x994b, 0xf906, 0x6677, 0x6b78, 0x8cb4, +94, 0x5021, +0x9b3c, 0xf907, 0x53eb, 0x572d, 0x594e, 0x63c6, 0x69fb, 0x73ea, +0x7845, 0x7aba, 0x7ac5, 0x7cfe, 0x8475, 0x898f, 0x8d73, 0x9035, +0x95a8, 0x52fb, 0x5747, 0x7547, 0x7b60, 0x83cc, 0x921e, 0xf908, +0x6a58, 0x514b, 0x524b, 0x5287, 0x621f, 0x68d8, 0x6975, 0x9699, +0x50c5, 0x52a4, 0x52e4, 0x61c3, 0x65a4, 0x6839, 0x69ff, 0x747e, +0x7b4b, 0x82b9, 0x83eb, 0x89b2, 0x8b39, 0x8fd1, 0x9949, 0xf909, +0x4eca, 0x5997, 0x64d2, 0x6611, 0x6a8e, 0x7434, 0x7981, 0x79bd, +0x82a9, 0x887e, 0x887f, 0x895f, 0xf90a, 0x9326, 0x4f0b, 0x53ca, +0x6025, 0x6271, 0x6c72, 0x7d1a, 0x7d66, 0x4e98, 0x5162, 0x77dc, +0x80af, 0x4f01, 0x4f0e, 0x5176, 0x5180, 0x55dc, 0x5668, 0x573b, +0x57fa, 0x57fc, 0x5914, 0x5947, 0x5993, 0x5bc4, 0x5c90, 0x5d0e, +0x5df1, 0x5e7e, 0x5fcc, 0x6280, 0x65d7, 0x65e3, +94, 0x5121, +0x671e, 0x671f, 0x675e, 0x68cb, 0x68c4, 0x6a5f, 0x6b3a, 0x6c23, +0x6c7d, 0x6c82, 0x6dc7, 0x7398, 0x7426, 0x742a, 0x7482, 0x74a3, +0x7578, 0x757f, 0x7881, 0x78ef, 0x7941, 0x7947, 0x7948, 0x797a, +0x7b95, 0x7d00, 0x7dba, 0x7f88, 0x8006, 0x802d, 0x808c, 0x8a18, +0x8b4f, 0x8c48, 0x8d77, 0x9321, 0x9324, 0x98e2, 0x9951, 0x9a0e, +0x9a0f, 0x9a65, 0x9e92, 0x7dca, 0x4f76, 0x5409, 0x62ee, 0x6854, +0x91d1, 0x55ab, 0x513a, 0xf90b, 0xf90c, 0x5a1c, 0x61e6, 0xf90d, +0x62cf, 0x62ff, 0xf90e, 0xf90f, 0xf910, 0xf911, 0xf912, 0xf913, +0x90a3, 0xf914, 0xf915, 0xf916, 0xf917, 0xf918, 0x8afe, 0xf919, +0xf91a, 0xf91b, 0xf91c, 0x6696, 0xf91d, 0x7156, 0xf91e, 0xf91f, +0x96e3, 0xf920, 0x634f, 0x637a, 0x5357, 0xf921, 0x678f, 0x6960, +0x6e73, 0xf922, 0x7537, 0xf923, 0xf924, 0xf925, +94, 0x5221, +0x7d0d, 0xf926, 0xf927, 0x8872, 0x56ca, 0x5a18, 0xf928, 0xf929, +0xf92a, 0xf92b, 0xf92c, 0x4e43, 0xf92d, 0x5167, 0x5948, 0x67f0, +0x8010, 0xf92e, 0x5973, 0x5e74, 0x649a, 0x79ca, 0x5ff5, 0x606c, +0x62c8, 0x637b, 0x5be7, 0x5bd7, 0x52aa, 0xf92f, 0x5974, 0x5f29, +0x6012, 0xf930, 0xf931, 0xf932, 0x7459, 0xf933, 0xf934, 0xf935, +0xf936, 0xf937, 0xf938, 0x99d1, 0xf939, 0xf93a, 0xf93b, 0xf93c, +0xf93d, 0xf93e, 0xf93f, 0xf940, 0xf941, 0xf942, 0xf943, 0x6fc3, +0xf944, 0xf945, 0x81bf, 0x8fb2, 0x60f1, 0xf946, 0xf947, 0x8166, +0xf948, 0xf949, 0x5c3f, 0xf94a, 0xf94b, 0xf94c, 0xf94d, 0xf94e, +0xf94f, 0xf950, 0xf951, 0x5ae9, 0x8a25, 0x677b, 0x7d10, 0xf952, +0xf953, 0xf954, 0xf955, 0xf956, 0xf957, 0x80fd, 0xf958, 0xf959, +0x5c3c, 0x6ce5, 0x533f, 0x6eba, 0x591a, 0x8336, +94, 0x5321, +0x4e39, 0x4eb6, 0x4f46, 0x55ae, 0x5718, 0x58c7, 0x5f56, 0x65b7, +0x65e6, 0x6a80, 0x6bb5, 0x6e4d, 0x77ed, 0x7aef, 0x7c1e, 0x7dde, +0x86cb, 0x8892, 0x9132, 0x935b, 0x64bb, 0x6fbe, 0x737a, 0x75b8, +0x9054, 0x5556, 0x574d, 0x61ba, 0x64d4, 0x66c7, 0x6de1, 0x6e5b, +0x6f6d, 0x6fb9, 0x75f0, 0x8043, 0x81bd, 0x8541, 0x8983, 0x8ac7, +0x8b5a, 0x931f, 0x6c93, 0x7553, 0x7b54, 0x8e0f, 0x905d, 0x5510, +0x5802, 0x5858, 0x5e62, 0x6207, 0x649e, 0x68e0, 0x7576, 0x7cd6, +0x87b3, 0x9ee8, 0x4ee3, 0x5788, 0x576e, 0x5927, 0x5c0d, 0x5cb1, +0x5e36, 0x5f85, 0x6234, 0x64e1, 0x73b3, 0x81fa, 0x888b, 0x8cb8, +0x968a, 0x9edb, 0x5b85, 0x5fb7, 0x60b3, 0x5012, 0x5200, 0x5230, +0x5716, 0x5835, 0x5857, 0x5c0e, 0x5c60, 0x5cf6, 0x5d8b, 0x5ea6, +0x5f92, 0x60bc, 0x6311, 0x6389, 0x6417, 0x6843, +94, 0x5421, +0x68f9, 0x6ac2, 0x6dd8, 0x6e21, 0x6ed4, 0x6fe4, 0x71fe, 0x76dc, +0x7779, 0x79b1, 0x7a3b, 0x8404, 0x89a9, 0x8ced, 0x8df3, 0x8e48, +0x9003, 0x9014, 0x9053, 0x90fd, 0x934d, 0x9676, 0x97dc, 0x6bd2, +0x7006, 0x7258, 0x72a2, 0x7368, 0x7763, 0x79bf, 0x7be4, 0x7e9b, +0x8b80, 0x58a9, 0x60c7, 0x6566, 0x65fd, 0x66be, 0x6c8c, 0x711e, +0x71c9, 0x8c5a, 0x9813, 0x4e6d, 0x7a81, 0x4edd, 0x51ac, 0x51cd, +0x52d5, 0x540c, 0x61a7, 0x6771, 0x6850, 0x68df, 0x6d1e, 0x6f7c, +0x75bc, 0x77b3, 0x7ae5, 0x80f4, 0x8463, 0x9285, 0x515c, 0x6597, +0x675c, 0x6793, 0x75d8, 0x7ac7, 0x8373, 0xf95a, 0x8c46, 0x9017, +0x982d, 0x5c6f, 0x81c0, 0x829a, 0x9041, 0x906f, 0x920d, 0x5f97, +0x5d9d, 0x6a59, 0x71c8, 0x767b, 0x7b49, 0x85e4, 0x8b04, 0x9127, +0x9a30, 0x5587, 0x61f6, 0xf95b, 0x7669, 0x7f85, +94, 0x5521, +0x863f, 0x87ba, 0x88f8, 0x908f, 0xf95c, 0x6d1b, 0x70d9, 0x73de, +0x7d61, 0x843d, 0xf95d, 0x916a, 0x99f1, 0xf95e, 0x4e82, 0x5375, +0x6b04, 0x6b12, 0x703e, 0x721b, 0x862d, 0x9e1e, 0x524c, 0x8fa3, +0x5d50, 0x64e5, 0x652c, 0x6b16, 0x6feb, 0x7c43, 0x7e9c, 0x85cd, +0x8964, 0x89bd, 0x62c9, 0x81d8, 0x881f, 0x5eca, 0x6717, 0x6d6a, +0x72fc, 0x7405, 0x746f, 0x8782, 0x90de, 0x4f86, 0x5d0d, 0x5fa0, +0x840a, 0x51b7, 0x63a0, 0x7565, 0x4eae, 0x5006, 0x5169, 0x51c9, +0x6881, 0x6a11, 0x7cae, 0x7cb1, 0x7ce7, 0x826f, 0x8ad2, 0x8f1b, +0x91cf, 0x4fb6, 0x5137, 0x52f5, 0x5442, 0x5eec, 0x616e, 0x623e, +0x65c5, 0x6ada, 0x6ffe, 0x792a, 0x85dc, 0x8823, 0x95ad, 0x9a62, +0x9a6a, 0x9e97, 0x9ece, 0x529b, 0x66c6, 0x6b77, 0x701d, 0x792b, +0x8f62, 0x9742, 0x6190, 0x6200, 0x6523, 0x6f23, +94, 0x5621, +0x7149, 0x7489, 0x7df4, 0x806f, 0x84ee, 0x8f26, 0x9023, 0x934a, +0x51bd, 0x5217, 0x52a3, 0x6d0c, 0x70c8, 0x88c2, 0x5ec9, 0x6582, +0x6bae, 0x6fc2, 0x7c3e, 0x7375, 0x4ee4, 0x4f36, 0x56f9, 0xf95f, +0x5cba, 0x5dba, 0x601c, 0x73b2, 0x7b2d, 0x7f9a, 0x7fce, 0x8046, +0x901e, 0x9234, 0x96f6, 0x9748, 0x9818, 0x9f61, 0x4f8b, 0x6fa7, +0x79ae, 0x91b4, 0x96b7, 0x52de, 0xf960, 0x6488, 0x64c4, 0x6ad3, +0x6f5e, 0x7018, 0x7210, 0x76e7, 0x8001, 0x8606, 0x865c, 0x8def, +0x8f05, 0x9732, 0x9b6f, 0x9dfa, 0x9e75, 0x788c, 0x797f, 0x7da0, +0x83c9, 0x9304, 0x9e7f, 0x9e93, 0x8ad6, 0x58df, 0x5f04, 0x6727, +0x7027, 0x74cf, 0x7c60, 0x807e, 0x5121, 0x7028, 0x7262, 0x78ca, +0x8cc2, 0x8cda, 0x8cf4, 0x96f7, 0x4e86, 0x50da, 0x5bee, 0x5ed6, +0x6599, 0x71ce, 0x7642, 0x77ad, 0x804a, 0x84fc, +94, 0x5721, +0x907c, 0x9b27, 0x9f8d, 0x58d8, 0x5a41, 0x5c62, 0x6a13, 0x6dda, +0x6f0f, 0x763b, 0x7d2f, 0x7e37, 0x851e, 0x8938, 0x93e4, 0x964b, +0x5289, 0x65d2, 0x67f3, 0x69b4, 0x6d41, 0x6e9c, 0x700f, 0x7409, +0x7460, 0x7559, 0x7624, 0x786b, 0x8b2c, 0x985e, 0x516d, 0x622e, +0x9678, 0x4f96, 0x502b, 0x5d19, 0x6dea, 0x7db8, 0x8f2a, 0x5f8b, +0x6144, 0x6817, 0xf961, 0x9686, 0x52d2, 0x808b, 0x51dc, 0x51cc, +0x695e, 0x7a1c, 0x7dbe, 0x83f1, 0x9675, 0x4fda, 0x5229, 0x5398, +0x540f, 0x550e, 0x5c65, 0x60a7, 0x674e, 0x68a8, 0x6d6c, 0x7281, +0x72f8, 0x7406, 0x7483, 0xf962, 0x75e2, 0x7c6c, 0x7f79, 0x7fb8, +0x8389, 0x88cf, 0x88e1, 0x91cc, 0x91d0, 0x96e2, 0x9bc9, 0x541d, +0x6f7e, 0x71d0, 0x7498, 0x85fa, 0x8eaa, 0x96a3, 0x9c57, 0x9e9f, +0x6797, 0x6dcb, 0x7433, 0x81e8, 0x9716, 0x782c, +94, 0x5821, +0x7acb, 0x7b20, 0x7c92, 0x6469, 0x746a, 0x75f2, 0x78bc, 0x78e8, +0x99ac, 0x9b54, 0x9ebb, 0x5bde, 0x5e55, 0x6f20, 0x819c, 0x83ab, +0x9088, 0x4e07, 0x534d, 0x5a29, 0x5dd2, 0x5f4e, 0x6162, 0x633d, +0x6669, 0x66fc, 0x6eff, 0x6f2b, 0x7063, 0x779e, 0x842c, 0x8513, +0x883b, 0x8f13, 0x9945, 0x9c3b, 0x551c, 0x62b9, 0x672b, 0x6cab, +0x8309, 0x896a, 0x977a, 0x4ea1, 0x5984, 0x5fd8, 0x5fd9, 0x671b, +0x7db2, 0x7f54, 0x8292, 0x832b, 0x83bd, 0x8f1e, 0x9099, 0x57cb, +0x59b9, 0x5a92, 0x5bd0, 0x6627, 0x679a, 0x6885, 0x6bcf, 0x7164, +0x7f75, 0x8cb7, 0x8ce3, 0x9081, 0x9b45, 0x8108, 0x8c8a, 0x964c, +0x9a40, 0x9ea5, 0x5b5f, 0x6c13, 0x731b, 0x76f2, 0x76df, 0x840c, +0x51aa, 0x8993, 0x514d, 0x5195, 0x52c9, 0x68c9, 0x6c94, 0x7704, +0x7720, 0x7dbf, 0x7dec, 0x9762, 0x9eb5, 0x6ec5, +94, 0x5921, +0x8511, 0x51a5, 0x540d, 0x547d, 0x660e, 0x669d, 0x6927, 0x6e9f, +0x76bf, 0x7791, 0x8317, 0x84c2, 0x879f, 0x9169, 0x9298, 0x9cf4, +0x8882, 0x4fae, 0x5192, 0x52df, 0x59c6, 0x5e3d, 0x6155, 0x6478, +0x6479, 0x66ae, 0x67d0, 0x6a21, 0x6bcd, 0x6bdb, 0x725f, 0x7261, +0x7441, 0x7738, 0x77db, 0x8017, 0x82bc, 0x8305, 0x8b00, 0x8b28, +0x8c8c, 0x6728, 0x6c90, 0x7267, 0x76ee, 0x7766, 0x7a46, 0x9da9, +0x6b7f, 0x6c92, 0x5922, 0x6726, 0x8499, 0x536f, 0x5893, 0x5999, +0x5edf, 0x63cf, 0x6634, 0x6773, 0x6e3a, 0x732b, 0x7ad7, 0x82d7, +0x9328, 0x52d9, 0x5deb, 0x61ae, 0x61cb, 0x620a, 0x62c7, 0x64ab, +0x65e0, 0x6959, 0x6b66, 0x6bcb, 0x7121, 0x73f7, 0x755d, 0x7e46, +0x821e, 0x8302, 0x856a, 0x8aa3, 0x8cbf, 0x9727, 0x9d61, 0x58a8, +0x9ed8, 0x5011, 0x520e, 0x543b, 0x554f, 0x6587, +94, 0x5a21, +0x6c76, 0x7d0a, 0x7d0b, 0x805e, 0x868a, 0x9580, 0x96ef, 0x52ff, +0x6c95, 0x7269, 0x5473, 0x5a9a, 0x5c3e, 0x5d4b, 0x5f4c, 0x5fae, +0x672a, 0x68b6, 0x6963, 0x6e3c, 0x6e44, 0x7709, 0x7c73, 0x7f8e, +0x8587, 0x8b0e, 0x8ff7, 0x9761, 0x9ef4, 0x5cb7, 0x60b6, 0x610d, +0x61ab, 0x654f, 0x65fb, 0x65fc, 0x6c11, 0x6cef, 0x739f, 0x73c9, +0x7de1, 0x9594, 0x5bc6, 0x871c, 0x8b10, 0x525d, 0x535a, 0x62cd, +0x640f, 0x64b2, 0x6734, 0x6a38, 0x6cca, 0x73c0, 0x749e, 0x7b94, +0x7c95, 0x7e1b, 0x818a, 0x8236, 0x8584, 0x8feb, 0x96f9, 0x99c1, +0x4f34, 0x534a, 0x53cd, 0x53db, 0x62cc, 0x642c, 0x6500, 0x6591, +0x69c3, 0x6cee, 0x6f58, 0x73ed, 0x7554, 0x7622, 0x76e4, 0x76fc, +0x78d0, 0x78fb, 0x792c, 0x7d46, 0x822c, 0x87e0, 0x8fd4, 0x9812, +0x98ef, 0x52c3, 0x62d4, 0x64a5, 0x6e24, 0x6f51, +94, 0x5b21, +0x767c, 0x8dcb, 0x91b1, 0x9262, 0x9aee, 0x9b43, 0x5023, 0x508d, +0x574a, 0x59a8, 0x5c28, 0x5e47, 0x5f77, 0x623f, 0x653e, 0x65b9, +0x65c1, 0x6609, 0x678b, 0x699c, 0x6ec2, 0x78c5, 0x7d21, 0x80aa, +0x8180, 0x822b, 0x82b3, 0x84a1, 0x868c, 0x8a2a, 0x8b17, 0x90a6, +0x9632, 0x9f90, 0x500d, 0x4ff3, 0xf963, 0x57f9, 0x5f98, 0x62dc, +0x6392, 0x676f, 0x6e43, 0x7119, 0x76c3, 0x80cc, 0x80da, 0x88f4, +0x88f5, 0x8919, 0x8ce0, 0x8f29, 0x914d, 0x966a, 0x4f2f, 0x4f70, +0x5e1b, 0x67cf, 0x6822, 0x767d, 0x767e, 0x9b44, 0x5e61, 0x6a0a, +0x7169, 0x71d4, 0x756a, 0xf964, 0x7e41, 0x8543, 0x85e9, 0x98dc, +0x4f10, 0x7b4f, 0x7f70, 0x95a5, 0x51e1, 0x5e06, 0x68b5, 0x6c3e, +0x6c4e, 0x6cdb, 0x72af, 0x7bc4, 0x8303, 0x6cd5, 0x743a, 0x50fb, +0x5288, 0x58c1, 0x64d8, 0x6a97, 0x74a7, 0x7656, +94, 0x5c21, +0x78a7, 0x8617, 0x95e2, 0x9739, 0xf965, 0x535e, 0x5f01, 0x8b8a, +0x8fa8, 0x8faf, 0x908a, 0x5225, 0x77a5, 0x9c49, 0x9f08, 0x4e19, +0x5002, 0x5175, 0x5c5b, 0x5e77, 0x661e, 0x663a, 0x67c4, 0x68c5, +0x70b3, 0x7501, 0x75c5, 0x79c9, 0x7add, 0x8f27, 0x9920, 0x9a08, +0x4fdd, 0x5821, 0x5831, 0x5bf6, 0x666e, 0x6b65, 0x6d11, 0x6e7a, +0x6f7d, 0x73e4, 0x752b, 0x83e9, 0x88dc, 0x8913, 0x8b5c, 0x8f14, +0x4f0f, 0x50d5, 0x5310, 0x535c, 0x5b93, 0x5fa9, 0x670d, 0x798f, +0x8179, 0x832f, 0x8514, 0x8907, 0x8986, 0x8f39, 0x8f3b, 0x99a5, +0x9c12, 0x672c, 0x4e76, 0x4ff8, 0x5949, 0x5c01, 0x5cef, 0x5cf0, +0x6367, 0x68d2, 0x70fd, 0x71a2, 0x742b, 0x7e2b, 0x84ec, 0x8702, +0x9022, 0x92d2, 0x9cf3, 0x4e0d, 0x4ed8, 0x4fef, 0x5085, 0x5256, +0x526f, 0x5426, 0x5490, 0x57e0, 0x592b, 0x5a66, +94, 0x5d21, +0x5b5a, 0x5b75, 0x5bcc, 0x5e9c, 0xf966, 0x6276, 0x6577, 0x65a7, +0x6d6e, 0x6ea5, 0x7236, 0x7b26, 0x7c3f, 0x7f36, 0x8150, 0x8151, +0x819a, 0x8240, 0x8299, 0x83a9, 0x8a03, 0x8ca0, 0x8ce6, 0x8cfb, +0x8d74, 0x8dba, 0x90e8, 0x91dc, 0x961c, 0x9644, 0x99d9, 0x9ce7, +0x5317, 0x5206, 0x5429, 0x5674, 0x58b3, 0x5954, 0x596e, 0x5fff, +0x61a4, 0x626e, 0x6610, 0x6c7e, 0x711a, 0x76c6, 0x7c89, 0x7cde, +0x7d1b, 0x82ac, 0x8cc1, 0x96f0, 0xf967, 0x4f5b, 0x5f17, 0x5f7f, +0x62c2, 0x5d29, 0x670b, 0x68da, 0x787c, 0x7e43, 0x9d6c, 0x4e15, +0x5099, 0x5315, 0x532a, 0x5351, 0x5983, 0x5a62, 0x5e87, 0x60b2, +0x618a, 0x6249, 0x6279, 0x6590, 0x6787, 0x69a7, 0x6bd4, 0x6bd6, +0x6bd7, 0x6bd8, 0x6cb8, 0xf968, 0x7435, 0x75fa, 0x7812, 0x7891, +0x79d5, 0x79d8, 0x7c83, 0x7dcb, 0x7fe1, 0x80a5, +94, 0x5e21, +0x813e, 0x81c2, 0x83f2, 0x871a, 0x88e8, 0x8ab9, 0x8b6c, 0x8cbb, +0x9119, 0x975e, 0x98db, 0x9f3b, 0x56ac, 0x5b2a, 0x5f6c, 0x658c, +0x6ab3, 0x6baf, 0x6d5c, 0x6ff1, 0x7015, 0x725d, 0x73ad, 0x8ca7, +0x8cd3, 0x983b, 0x6191, 0x6c37, 0x8058, 0x9a01, 0x4e4d, 0x4e8b, +0x4e9b, 0x4ed5, 0x4f3a, 0x4f3c, 0x4f7f, 0x4fdf, 0x50ff, 0x53f2, +0x53f8, 0x5506, 0x55e3, 0x56db, 0x58eb, 0x5962, 0x5a11, 0x5beb, +0x5bfa, 0x5c04, 0x5df3, 0x5e2b, 0x5f99, 0x601d, 0x6368, 0x659c, +0x65af, 0x67f6, 0x67fb, 0x68ad, 0x6b7b, 0x6c99, 0x6cd7, 0x6e23, +0x7009, 0x7345, 0x7802, 0x793e, 0x7940, 0x7960, 0x79c1, 0x7be9, +0x7d17, 0x7d72, 0x8086, 0x820d, 0x838e, 0x84d1, 0x86c7, 0x88df, +0x8a50, 0x8a5e, 0x8b1d, 0x8cdc, 0x8d66, 0x8fad, 0x90aa, 0x98fc, +0x99df, 0x9e9d, 0x524a, 0xf969, 0x6714, 0xf96a, +94, 0x5f21, +0x5098, 0x522a, 0x5c71, 0x6563, 0x6c55, 0x73ca, 0x7523, 0x759d, +0x7b97, 0x849c, 0x9178, 0x9730, 0x4e77, 0x6492, 0x6bba, 0x715e, +0x85a9, 0x4e09, 0xf96b, 0x6749, 0x68ee, 0x6e17, 0x829f, 0x8518, +0x886b, 0x63f7, 0x6f81, 0x9212, 0x98af, 0x4e0a, 0x50b7, 0x50cf, +0x511f, 0x5546, 0x55aa, 0x5617, 0x5b40, 0x5c19, 0x5ce0, 0x5e38, +0x5e8a, 0x5ea0, 0x5ec2, 0x60f3, 0x6851, 0x6a61, 0x6e58, 0x723d, +0x7240, 0x72c0, 0x76f8, 0x7965, 0x7bb1, 0x7fd4, 0x88f3, 0x89f4, +0x8a73, 0x8c61, 0x8cde, 0x971c, 0x585e, 0x74bd, 0x8cfd, 0x55c7, +0xf96c, 0x7a61, 0x7d22, 0x8272, 0x7272, 0x751f, 0x7525, 0xf96d, +0x7b19, 0x5885, 0x58fb, 0x5dbc, 0x5e8f, 0x5eb6, 0x5f90, 0x6055, +0x6292, 0x637f, 0x654d, 0x6691, 0x66d9, 0x66f8, 0x6816, 0x68f2, +0x7280, 0x745e, 0x7b6e, 0x7d6e, 0x7dd6, 0x7f72, +94, 0x6021, +0x80e5, 0x8212, 0x85af, 0x897f, 0x8a93, 0x901d, 0x92e4, 0x9ecd, +0x9f20, 0x5915, 0x596d, 0x5e2d, 0x60dc, 0x6614, 0x6673, 0x6790, +0x6c50, 0x6dc5, 0x6f5f, 0x77f3, 0x78a9, 0x84c6, 0x91cb, 0x932b, +0x4ed9, 0x50ca, 0x5148, 0x5584, 0x5b0b, 0x5ba3, 0x6247, 0x657e, +0x65cb, 0x6e32, 0x717d, 0x7401, 0x7444, 0x7487, 0x74bf, 0x766c, +0x79aa, 0x7dda, 0x7e55, 0x7fa8, 0x817a, 0x81b3, 0x8239, 0x861a, +0x87ec, 0x8a75, 0x8de3, 0x9078, 0x9291, 0x9425, 0x994d, 0x9bae, +0x5368, 0x5c51, 0x6954, 0x6cc4, 0x6d29, 0x6e2b, 0x820c, 0x859b, +0x893b, 0x8a2d, 0x8aaa, 0x96ea, 0x9f67, 0x5261, 0x66b9, 0x6bb2, +0x7e96, 0x87fe, 0x8d0d, 0x9583, 0x965d, 0x651d, 0x6d89, 0x71ee, +0xf96e, 0x57ce, 0x59d3, 0x5bac, 0x6027, 0x60fa, 0x6210, 0x661f, +0x665f, 0x7329, 0x73f9, 0x76db, 0x7701, 0x7b6c, +94, 0x6121, +0x8056, 0x8072, 0x8165, 0x8aa0, 0x9192, 0x4e16, 0x52e2, 0x6b72, +0x6d17, 0x7a05, 0x7b39, 0x7d30, 0xf96f, 0x8cb0, 0x53ec, 0x562f, +0x5851, 0x5bb5, 0x5c0f, 0x5c11, 0x5de2, 0x6240, 0x6383, 0x6414, +0x662d, 0x68b3, 0x6cbc, 0x6d88, 0x6eaf, 0x701f, 0x70a4, 0x71d2, +0x7526, 0x758f, 0x758e, 0x7619, 0x7b11, 0x7be0, 0x7c2b, 0x7d20, +0x7d39, 0x852c, 0x856d, 0x8607, 0x8a34, 0x900d, 0x9061, 0x90b5, +0x92b7, 0x97f6, 0x9a37, 0x4fd7, 0x5c6c, 0x675f, 0x6d91, 0x7c9f, +0x7e8c, 0x8b16, 0x8d16, 0x901f, 0x5b6b, 0x5dfd, 0x640d, 0x84c0, +0x905c, 0x98e1, 0x7387, 0x5b8b, 0x609a, 0x677e, 0x6dde, 0x8a1f, +0x8aa6, 0x9001, 0x980c, 0x5237, 0xf970, 0x7051, 0x788e, 0x9396, +0x8870, 0x91d7, 0x4fee, 0x53d7, 0x55fd, 0x56da, 0x5782, 0x58fd, +0x5ac2, 0x5b88, 0x5cab, 0x5cc0, 0x5e25, 0x6101, +94, 0x6221, +0x620d, 0x624b, 0x6388, 0x641c, 0x6536, 0x6578, 0x6a39, 0x6b8a, +0x6c34, 0x6d19, 0x6f31, 0x71e7, 0x72e9, 0x7378, 0x7407, 0x74b2, +0x7626, 0x7761, 0x79c0, 0x7a57, 0x7aea, 0x7cb9, 0x7d8f, 0x7dac, +0x7e61, 0x7f9e, 0x8129, 0x8331, 0x8490, 0x84da, 0x85ea, 0x8896, +0x8ab0, 0x8b90, 0x8f38, 0x9042, 0x9083, 0x916c, 0x9296, 0x92b9, +0x968b, 0x96a7, 0x96a8, 0x96d6, 0x9700, 0x9808, 0x9996, 0x9ad3, +0x9b1a, 0x53d4, 0x587e, 0x5919, 0x5b70, 0x5bbf, 0x6dd1, 0x6f5a, +0x719f, 0x7421, 0x74b9, 0x8085, 0x83fd, 0x5de1, 0x5f87, 0x5faa, +0x6042, 0x65ec, 0x6812, 0x696f, 0x6a53, 0x6b89, 0x6d35, 0x6df3, +0x73e3, 0x76fe, 0x77ac, 0x7b4d, 0x7d14, 0x8123, 0x821c, 0x8340, +0x84f4, 0x8563, 0x8a62, 0x8ac4, 0x9187, 0x931e, 0x9806, 0x99b4, +0x620c, 0x8853, 0x8ff0, 0x9265, 0x5d07, 0x5d27, +94, 0x6321, +0x5d69, 0x745f, 0x819d, 0x8768, 0x6fd5, 0x62fe, 0x7fd2, 0x8936, +0x8972, 0x4e1e, 0x4e58, 0x50e7, 0x52dd, 0x5347, 0x627f, 0x6607, +0x7e69, 0x8805, 0x965e, 0x4f8d, 0x5319, 0x5636, 0x59cb, 0x5aa4, +0x5c38, 0x5c4e, 0x5c4d, 0x5e02, 0x5f11, 0x6043, 0x65bd, 0x662f, +0x6642, 0x67be, 0x67f4, 0x731c, 0x77e2, 0x793a, 0x7fc5, 0x8494, +0x84cd, 0x8996, 0x8a66, 0x8a69, 0x8ae1, 0x8c55, 0x8c7a, 0x57f4, +0x5bd4, 0x5f0f, 0x606f, 0x62ed, 0x690d, 0x6b96, 0x6e5c, 0x7184, +0x7bd2, 0x8755, 0x8b58, 0x8efe, 0x98df, 0x98fe, 0x4f38, 0x4f81, +0x4fe1, 0x547b, 0x5a20, 0x5bb8, 0x613c, 0x65b0, 0x6668, 0x71fc, +0x7533, 0x795e, 0x7d33, 0x814e, 0x81e3, 0x8398, 0x85aa, 0x85ce, +0x8703, 0x8a0a, 0x8eab, 0x8f9b, 0xf971, 0x8fc5, 0x5931, 0x5ba4, +0x5be6, 0x6089, 0x5be9, 0x5c0b, 0x5fc3, 0x6c81, +94, 0x6421, +0xf972, 0x6df1, 0x700b, 0x751a, 0x82af, 0x8af6, 0x4ec0, 0x5341, +0xf973, 0x96d9, 0x6c0f, 0x4e9e, 0x4fc4, 0x5152, 0x555e, 0x5a25, +0x5ce8, 0x6211, 0x7259, 0x82bd, 0x83aa, 0x86fe, 0x8859, 0x8a1d, +0x963f, 0x96c5, 0x9913, 0x9d09, 0x9d5d, 0x580a, 0x5cb3, 0x5dbd, +0x5e44, 0x60e1, 0x6115, 0x63e1, 0x6a02, 0x6e25, 0x9102, 0x9354, +0x984e, 0x9c10, 0x9f77, 0x5b89, 0x5cb8, 0x6309, 0x664f, 0x6848, +0x773c, 0x96c1, 0x978d, 0x9854, 0x9b9f, 0x65a1, 0x8b01, 0x8ecb, +0x95bc, 0x5535, 0x5ca9, 0x5dd6, 0x5eb5, 0x6697, 0x764c, 0x83f4, +0x95c7, 0x58d3, 0x62bc, 0x72ce, 0x9d28, 0x4ef0, 0x592e, 0x600f, +0x663b, 0x6b83, 0x79e7, 0x9d26, 0x5393, 0x54c0, 0x57c3, 0x5d16, +0x611b, 0x66d6, 0x6daf, 0x788d, 0x827e, 0x9698, 0x9744, 0x5384, +0x627c, 0x6396, 0x6db2, 0x7e0a, 0x814b, 0x984d, +94, 0x6521, +0x6afb, 0x7f4c, 0x9daf, 0x9e1a, 0x4e5f, 0x503b, 0x51b6, 0x591c, +0x60f9, 0x63f6, 0x6930, 0x723a, 0x8036, 0xf974, 0x91ce, 0x5f31, +0xf975, 0xf976, 0x7d04, 0x82e5, 0x846f, 0x84bb, 0x85e5, 0x8e8d, +0xf977, 0x4f6f, 0xf978, 0xf979, 0x58e4, 0x5b43, 0x6059, 0x63da, +0x6518, 0x656d, 0x6698, 0xf97a, 0x694a, 0x6a23, 0x6d0b, 0x7001, +0x716c, 0x75d2, 0x760d, 0x79b3, 0x7a70, 0xf97b, 0x7f8a, 0xf97c, +0x8944, 0xf97d, 0x8b93, 0x91c0, 0x967d, 0xf97e, 0x990a, 0x5704, +0x5fa1, 0x65bc, 0x6f01, 0x7600, 0x79a6, 0x8a9e, 0x99ad, 0x9b5a, +0x9f6c, 0x5104, 0x61b6, 0x6291, 0x6a8d, 0x81c6, 0x5043, 0x5830, +0x5f66, 0x7109, 0x8a00, 0x8afa, 0x5b7c, 0x8616, 0x4ffa, 0x513c, +0x56b4, 0x5944, 0x63a9, 0x6df9, 0x5daa, 0x696d, 0x5186, 0x4e88, +0x4f59, 0xf97f, 0xf980, 0xf981, 0x5982, 0xf982, +94, 0x6621, +0xf983, 0x6b5f, 0x6c5d, 0xf984, 0x74b5, 0x7916, 0xf985, 0x8207, +0x8245, 0x8339, 0x8f3f, 0x8f5d, 0xf986, 0x9918, 0xf987, 0xf988, +0xf989, 0x4ea6, 0xf98a, 0x57df, 0x5f79, 0x6613, 0xf98b, 0xf98c, +0x75ab, 0x7e79, 0x8b6f, 0xf98d, 0x9006, 0x9a5b, 0x56a5, 0x5827, +0x59f8, 0x5a1f, 0x5bb4, 0xf98e, 0x5ef6, 0xf98f, 0xf990, 0x6350, +0x633b, 0xf991, 0x693d, 0x6c87, 0x6cbf, 0x6d8e, 0x6d93, 0x6df5, +0x6f14, 0xf992, 0x70df, 0x7136, 0x7159, 0xf993, 0x71c3, 0x71d5, +0xf994, 0x784f, 0x786f, 0xf995, 0x7b75, 0x7de3, 0xf996, 0x7e2f, +0xf997, 0x884d, 0x8edf, 0xf998, 0xf999, 0xf99a, 0x925b, 0xf99b, +0x9cf6, 0xf99c, 0xf99d, 0xf99e, 0x6085, 0x6d85, 0xf99f, 0x71b1, +0xf9a0, 0xf9a1, 0x95b1, 0x53ad, 0xf9a2, 0xf9a3, 0xf9a4, 0x67d3, +0xf9a5, 0x708e, 0x7130, 0x7430, 0x8276, 0x82d2, +94, 0x6721, +0xf9a6, 0x95bb, 0x9ae5, 0x9e7d, 0x66c4, 0xf9a7, 0x71c1, 0x8449, +0xf9a8, 0xf9a9, 0x584b, 0xf9aa, 0xf9ab, 0x5db8, 0x5f71, 0xf9ac, +0x6620, 0x668e, 0x6979, 0x69ae, 0x6c38, 0x6cf3, 0x6e36, 0x6f41, +0x6fda, 0x701b, 0x702f, 0x7150, 0x71df, 0x7370, 0xf9ad, 0x745b, +0xf9ae, 0x74d4, 0x76c8, 0x7a4e, 0x7e93, 0xf9af, 0xf9b0, 0x82f1, +0x8a60, 0x8fce, 0xf9b1, 0x9348, 0xf9b2, 0x9719, 0xf9b3, 0xf9b4, +0x4e42, 0x502a, 0xf9b5, 0x5208, 0x53e1, 0x66f3, 0x6c6d, 0x6fca, +0x730a, 0x777f, 0x7a62, 0x82ae, 0x85dd, 0x8602, 0xf9b6, 0x88d4, +0x8a63, 0x8b7d, 0x8c6b, 0xf9b7, 0x92b3, 0xf9b8, 0x9713, 0x9810, +0x4e94, 0x4f0d, 0x4fc9, 0x50b2, 0x5348, 0x543e, 0x5433, 0x55da, +0x5862, 0x58ba, 0x5967, 0x5a1b, 0x5be4, 0x609f, 0xf9b9, 0x61ca, +0x6556, 0x65ff, 0x6664, 0x68a7, 0x6c5a, 0x6fb3, +94, 0x6821, +0x70cf, 0x71ac, 0x7352, 0x7b7d, 0x8708, 0x8aa4, 0x9c32, 0x9f07, +0x5c4b, 0x6c83, 0x7344, 0x7389, 0x923a, 0x6eab, 0x7465, 0x761f, +0x7a69, 0x7e15, 0x860a, 0x5140, 0x58c5, 0x64c1, 0x74ee, 0x7515, +0x7670, 0x7fc1, 0x9095, 0x96cd, 0x9954, 0x6e26, 0x74e6, 0x7aa9, +0x7aaa, 0x81e5, 0x86d9, 0x8778, 0x8a1b, 0x5a49, 0x5b8c, 0x5b9b, +0x68a1, 0x6900, 0x6d63, 0x73a9, 0x7413, 0x742c, 0x7897, 0x7de9, +0x7feb, 0x8118, 0x8155, 0x839e, 0x8c4c, 0x962e, 0x9811, 0x66f0, +0x5f80, 0x65fa, 0x6789, 0x6c6a, 0x738b, 0x502d, 0x5a03, 0x6b6a, +0x77ee, 0x5916, 0x5d6c, 0x5dcd, 0x7325, 0x754f, 0xf9ba, 0xf9bb, +0x50e5, 0x51f9, 0x582f, 0x592d, 0x5996, 0x59da, 0x5be5, 0xf9bc, +0xf9bd, 0x5da2, 0x62d7, 0x6416, 0x6493, 0x64fe, 0xf9be, 0x66dc, +0xf9bf, 0x6a48, 0xf9c0, 0x71ff, 0x7464, 0xf9c1, +94, 0x6921, +0x7a88, 0x7aaf, 0x7e47, 0x7e5e, 0x8000, 0x8170, 0xf9c2, 0x87ef, +0x8981, 0x8b20, 0x9059, 0xf9c3, 0x9080, 0x9952, 0x617e, 0x6b32, +0x6d74, 0x7e1f, 0x8925, 0x8fb1, 0x4fd1, 0x50ad, 0x5197, 0x52c7, +0x57c7, 0x5889, 0x5bb9, 0x5eb8, 0x6142, 0x6995, 0x6d8c, 0x6e67, +0x6eb6, 0x7194, 0x7462, 0x7528, 0x752c, 0x8073, 0x8338, 0x84c9, +0x8e0a, 0x9394, 0x93de, 0xf9c4, 0x4e8e, 0x4f51, 0x5076, 0x512a, +0x53c8, 0x53cb, 0x53f3, 0x5b87, 0x5bd3, 0x5c24, 0x611a, 0x6182, +0x65f4, 0x725b, 0x7397, 0x7440, 0x76c2, 0x7950, 0x7991, 0x79b9, +0x7d06, 0x7fbd, 0x828b, 0x85d5, 0x865e, 0x8fc2, 0x9047, 0x90f5, +0x91ea, 0x9685, 0x96e8, 0x96e9, 0x52d6, 0x5f67, 0x65ed, 0x6631, +0x682f, 0x715c, 0x7a36, 0x90c1, 0x980a, 0x4e91, 0xf9c5, 0x6a52, +0x6b9e, 0x6f90, 0x7189, 0x8018, 0x82b8, 0x8553, +94, 0x6a21, +0x904b, 0x9695, 0x96f2, 0x97fb, 0x851a, 0x9b31, 0x4e90, 0x718a, +0x96c4, 0x5143, 0x539f, 0x54e1, 0x5713, 0x5712, 0x57a3, 0x5a9b, +0x5ac4, 0x5bc3, 0x6028, 0x613f, 0x63f4, 0x6c85, 0x6d39, 0x6e72, +0x6e90, 0x7230, 0x733f, 0x7457, 0x82d1, 0x8881, 0x8f45, 0x9060, +0xf9c6, 0x9662, 0x9858, 0x9d1b, 0x6708, 0x8d8a, 0x925e, 0x4f4d, +0x5049, 0x50de, 0x5371, 0x570d, 0x59d4, 0x5a01, 0x5c09, 0x6170, +0x6690, 0x6e2d, 0x7232, 0x744b, 0x7def, 0x80c3, 0x840e, 0x8466, +0x853f, 0x875f, 0x885b, 0x8918, 0x8b02, 0x9055, 0x97cb, 0x9b4f, +0x4e73, 0x4f91, 0x5112, 0x516a, 0xf9c7, 0x552f, 0x55a9, 0x5b7a, +0x5ba5, 0x5e7c, 0x5e7d, 0x5ebe, 0x60a0, 0x60df, 0x6108, 0x6109, +0x63c4, 0x6538, 0x6709, 0xf9c8, 0x67d4, 0x67da, 0xf9c9, 0x6961, +0x6962, 0x6cb9, 0x6d27, 0xf9ca, 0x6e38, 0xf9cb, +94, 0x6b21, +0x6fe1, 0x7336, 0x7337, 0xf9cc, 0x745c, 0x7531, 0xf9cd, 0x7652, +0xf9ce, 0xf9cf, 0x7dad, 0x81fe, 0x8438, 0x88d5, 0x8a98, 0x8adb, +0x8aed, 0x8e30, 0x8e42, 0x904a, 0x903e, 0x907a, 0x9149, 0x91c9, +0x936e, 0xf9d0, 0xf9d1, 0x5809, 0xf9d2, 0x6bd3, 0x8089, 0x80b2, +0xf9d3, 0xf9d4, 0x5141, 0x596b, 0x5c39, 0xf9d5, 0xf9d6, 0x6f64, +0x73a7, 0x80e4, 0x8d07, 0xf9d7, 0x9217, 0x958f, 0xf9d8, 0xf9d9, +0xf9da, 0xf9db, 0x807f, 0x620e, 0x701c, 0x7d68, 0x878d, 0xf9dc, +0x57a0, 0x6069, 0x6147, 0x6bb7, 0x8abe, 0x9280, 0x96b1, 0x4e59, +0x541f, 0x6deb, 0x852d, 0x9670, 0x97f3, 0x98ee, 0x63d6, 0x6ce3, +0x9091, 0x51dd, 0x61c9, 0x81ba, 0x9df9, 0x4f9d, 0x501a, 0x5100, +0x5b9c, 0x610f, 0x61ff, 0x64ec, 0x6905, 0x6bc5, 0x7591, 0x77e3, +0x7fa9, 0x8264, 0x858f, 0x87fb, 0x8863, 0x8abc, +94, 0x6c21, +0x8b70, 0x91ab, 0x4e8c, 0x4ee5, 0x4f0a, 0xf9dd, 0xf9de, 0x5937, +0x59e8, 0xf9df, 0x5df2, 0x5f1b, 0x5f5b, 0x6021, 0xf9e0, 0xf9e1, +0xf9e2, 0xf9e3, 0x723e, 0x73e5, 0xf9e4, 0x7570, 0x75cd, 0xf9e5, +0x79fb, 0xf9e6, 0x800c, 0x8033, 0x8084, 0x82e1, 0x8351, 0xf9e7, +0xf9e8, 0x8cbd, 0x8cb3, 0x9087, 0xf9e9, 0xf9ea, 0x98f4, 0x990c, +0xf9eb, 0xf9ec, 0x7037, 0x76ca, 0x7fca, 0x7fcc, 0x7ffc, 0x8b1a, +0x4eba, 0x4ec1, 0x5203, 0x5370, 0xf9ed, 0x54bd, 0x56e0, 0x59fb, +0x5bc5, 0x5f15, 0x5fcd, 0x6e6e, 0xf9ee, 0xf9ef, 0x7d6a, 0x8335, +0xf9f0, 0x8693, 0x8a8d, 0xf9f1, 0x976d, 0x9777, 0xf9f2, 0xf9f3, +0x4e00, 0x4f5a, 0x4f7e, 0x58f9, 0x65e5, 0x6ea2, 0x9038, 0x93b0, +0x99b9, 0x4efb, 0x58ec, 0x598a, 0x59d9, 0x6041, 0xf9f4, 0xf9f5, +0x7a14, 0xf9f6, 0x834f, 0x8cc3, 0x5165, 0x5344, +94, 0x6d21, +0xf9f7, 0xf9f8, 0xf9f9, 0x4ecd, 0x5269, 0x5b55, 0x82bf, 0x4ed4, +0x523a, 0x54a8, 0x59c9, 0x59ff, 0x5b50, 0x5b57, 0x5b5c, 0x6063, +0x6148, 0x6ecb, 0x7099, 0x716e, 0x7386, 0x74f7, 0x75b5, 0x78c1, +0x7d2b, 0x8005, 0x81ea, 0x8328, 0x8517, 0x85c9, 0x8aee, 0x8cc7, +0x96cc, 0x4f5c, 0x52fa, 0x56bc, 0x65ab, 0x6628, 0x707c, 0x70b8, +0x7235, 0x7dbd, 0x828d, 0x914c, 0x96c0, 0x9d72, 0x5b71, 0x68e7, +0x6b98, 0x6f7a, 0x76de, 0x5c91, 0x66ab, 0x6f5b, 0x7bb4, 0x7c2a, +0x8836, 0x96dc, 0x4e08, 0x4ed7, 0x5320, 0x5834, 0x58bb, 0x58ef, +0x596c, 0x5c07, 0x5e33, 0x5e84, 0x5f35, 0x638c, 0x66b2, 0x6756, +0x6a1f, 0x6aa3, 0x6b0c, 0x6f3f, 0x7246, 0xf9fa, 0x7350, 0x748b, +0x7ae0, 0x7ca7, 0x8178, 0x81df, 0x81e7, 0x838a, 0x846c, 0x8523, +0x8594, 0x85cf, 0x88dd, 0x8d13, 0x91ac, 0x9577, +94, 0x6e21, +0x969c, 0x518d, 0x54c9, 0x5728, 0x5bb0, 0x624d, 0x6750, 0x683d, +0x6893, 0x6e3d, 0x6ed3, 0x707d, 0x7e21, 0x88c1, 0x8ca1, 0x8f09, +0x9f4b, 0x9f4e, 0x722d, 0x7b8f, 0x8acd, 0x931a, 0x4f47, 0x4f4e, +0x5132, 0x5480, 0x59d0, 0x5e95, 0x62b5, 0x6775, 0x696e, 0x6a17, +0x6cae, 0x6e1a, 0x72d9, 0x732a, 0x75bd, 0x7bb8, 0x7d35, 0x82e7, +0x83f9, 0x8457, 0x85f7, 0x8a5b, 0x8caf, 0x8e87, 0x9019, 0x90b8, +0x96ce, 0x9f5f, 0x52e3, 0x540a, 0x5ae1, 0x5bc2, 0x6458, 0x6575, +0x6ef4, 0x72c4, 0xf9fb, 0x7684, 0x7a4d, 0x7b1b, 0x7c4d, 0x7e3e, +0x7fdf, 0x837b, 0x8b2b, 0x8cca, 0x8d64, 0x8de1, 0x8e5f, 0x8fea, +0x8ff9, 0x9069, 0x93d1, 0x4f43, 0x4f7a, 0x50b3, 0x5168, 0x5178, +0x524d, 0x526a, 0x5861, 0x587c, 0x5960, 0x5c08, 0x5c55, 0x5edb, +0x609b, 0x6230, 0x6813, 0x6bbf, 0x6c08, 0x6fb1, +94, 0x6f21, +0x714e, 0x7420, 0x7530, 0x7538, 0x7551, 0x7672, 0x7b4c, 0x7b8b, +0x7bad, 0x7bc6, 0x7e8f, 0x8a6e, 0x8f3e, 0x8f49, 0x923f, 0x9293, +0x9322, 0x942b, 0x96fb, 0x985a, 0x986b, 0x991e, 0x5207, 0x622a, +0x6298, 0x6d59, 0x7664, 0x7aca, 0x7bc0, 0x7d76, 0x5360, 0x5cbe, +0x5e97, 0x6f38, 0x70b9, 0x7c98, 0x9711, 0x9b8e, 0x9ede, 0x63a5, +0x647a, 0x8776, 0x4e01, 0x4e95, 0x4ead, 0x505c, 0x5075, 0x5448, +0x59c3, 0x5b9a, 0x5e40, 0x5ead, 0x5ef7, 0x5f81, 0x60c5, 0x633a, +0x653f, 0x6574, 0x65cc, 0x6676, 0x6678, 0x67fe, 0x6968, 0x6a89, +0x6b63, 0x6c40, 0x6dc0, 0x6de8, 0x6e1f, 0x6e5e, 0x701e, 0x70a1, +0x738e, 0x73fd, 0x753a, 0x775b, 0x7887, 0x798e, 0x7a0b, 0x7a7d, +0x7cbe, 0x7d8e, 0x8247, 0x8a02, 0x8aea, 0x8c9e, 0x912d, 0x914a, +0x91d8, 0x9266, 0x92cc, 0x9320, 0x9706, 0x9756, +94, 0x7021, +0x975c, 0x9802, 0x9f0e, 0x5236, 0x5291, 0x557c, 0x5824, 0x5e1d, +0x5f1f, 0x608c, 0x63d0, 0x68af, 0x6fdf, 0x796d, 0x7b2c, 0x81cd, +0x85ba, 0x88fd, 0x8af8, 0x8e44, 0x918d, 0x9664, 0x969b, 0x973d, +0x984c, 0x9f4a, 0x4fce, 0x5146, 0x51cb, 0x52a9, 0x5632, 0x5f14, +0x5f6b, 0x63aa, 0x64cd, 0x65e9, 0x6641, 0x66fa, 0x66f9, 0x671d, +0x689d, 0x68d7, 0x69fd, 0x6f15, 0x6f6e, 0x7167, 0x71e5, 0x722a, +0x74aa, 0x773a, 0x7956, 0x795a, 0x79df, 0x7a20, 0x7a95, 0x7c97, +0x7cdf, 0x7d44, 0x7e70, 0x8087, 0x85fb, 0x86a4, 0x8a54, 0x8abf, +0x8d99, 0x8e81, 0x9020, 0x906d, 0x91e3, 0x963b, 0x96d5, 0x9ce5, +0x65cf, 0x7c07, 0x8db3, 0x93c3, 0x5b58, 0x5c0a, 0x5352, 0x62d9, +0x731d, 0x5027, 0x5b97, 0x5f9e, 0x60b0, 0x616b, 0x68d5, 0x6dd9, +0x742e, 0x7a2e, 0x7d42, 0x7d9c, 0x7e31, 0x816b, +94, 0x7121, +0x8e2a, 0x8e35, 0x937e, 0x9418, 0x4f50, 0x5750, 0x5de6, 0x5ea7, +0x632b, 0x7f6a, 0x4e3b, 0x4f4f, 0x4f8f, 0x505a, 0x59dd, 0x80c4, +0x546a, 0x5468, 0x55fe, 0x594f, 0x5b99, 0x5dde, 0x5eda, 0x665d, +0x6731, 0x67f1, 0x682a, 0x6ce8, 0x6d32, 0x6e4a, 0x6f8d, 0x70b7, +0x73e0, 0x7587, 0x7c4c, 0x7d02, 0x7d2c, 0x7da2, 0x821f, 0x86db, +0x8a3b, 0x8a85, 0x8d70, 0x8e8a, 0x8f33, 0x9031, 0x914e, 0x9152, +0x9444, 0x99d0, 0x7af9, 0x7ca5, 0x4fca, 0x5101, 0x51c6, 0x57c8, +0x5bef, 0x5cfb, 0x6659, 0x6a3d, 0x6d5a, 0x6e96, 0x6fec, 0x710c, +0x756f, 0x7ae3, 0x8822, 0x9021, 0x9075, 0x96cb, 0x99ff, 0x8301, +0x4e2d, 0x4ef2, 0x8846, 0x91cd, 0x537d, 0x6adb, 0x696b, 0x6c41, +0x847a, 0x589e, 0x618e, 0x66fe, 0x62ef, 0x70dd, 0x7511, 0x75c7, +0x7e52, 0x84b8, 0x8b49, 0x8d08, 0x4e4b, 0x53ea, +94, 0x7221, +0x54ab, 0x5730, 0x5740, 0x5fd7, 0x6301, 0x6307, 0x646f, 0x652f, +0x65e8, 0x667a, 0x679d, 0x67b3, 0x6b62, 0x6c60, 0x6c9a, 0x6f2c, +0x77e5, 0x7825, 0x7949, 0x7957, 0x7d19, 0x80a2, 0x8102, 0x81f3, +0x829d, 0x82b7, 0x8718, 0x8a8c, 0xf9fc, 0x8d04, 0x8dbe, 0x9072, +0x76f4, 0x7a19, 0x7a37, 0x7e54, 0x8077, 0x5507, 0x55d4, 0x5875, +0x632f, 0x6422, 0x6649, 0x664b, 0x686d, 0x699b, 0x6b84, 0x6d25, +0x6eb1, 0x73cd, 0x7468, 0x74a1, 0x755b, 0x75b9, 0x76e1, 0x771e, +0x778b, 0x79e6, 0x7e09, 0x7e1d, 0x81fb, 0x852f, 0x8897, 0x8a3a, +0x8cd1, 0x8eeb, 0x8fb0, 0x9032, 0x93ad, 0x9663, 0x9673, 0x9707, +0x4f84, 0x53f1, 0x59ea, 0x5ac9, 0x5e19, 0x684e, 0x74c6, 0x75be, +0x79e9, 0x7a92, 0x81a3, 0x86ed, 0x8cea, 0x8dcc, 0x8fed, 0x659f, +0x6715, 0xf9fd, 0x57f7, 0x6f57, 0x7ddd, 0x8f2f, +94, 0x7321, +0x93f6, 0x96c6, 0x5fb5, 0x61f2, 0x6f84, 0x4e14, 0x4f98, 0x501f, +0x53c9, 0x55df, 0x5d6f, 0x5dee, 0x6b21, 0x6b64, 0x78cb, 0x7b9a, +0xf9fe, 0x8e49, 0x8eca, 0x906e, 0x6349, 0x643e, 0x7740, 0x7a84, +0x932f, 0x947f, 0x9f6a, 0x64b0, 0x6faf, 0x71e6, 0x74a8, 0x74da, +0x7ac4, 0x7c12, 0x7e82, 0x7cb2, 0x7e98, 0x8b9a, 0x8d0a, 0x947d, +0x9910, 0x994c, 0x5239, 0x5bdf, 0x64e6, 0x672d, 0x7d2e, 0x50ed, +0x53c3, 0x5879, 0x6158, 0x6159, 0x61fa, 0x65ac, 0x7ad9, 0x8b92, +0x8b96, 0x5009, 0x5021, 0x5275, 0x5531, 0x5a3c, 0x5ee0, 0x5f70, +0x6134, 0x655e, 0x660c, 0x6636, 0x66a2, 0x69cd, 0x6ec4, 0x6f32, +0x7316, 0x7621, 0x7a93, 0x8139, 0x8259, 0x83d6, 0x84bc, 0x50b5, +0x57f0, 0x5bc0, 0x5be8, 0x5f69, 0x63a1, 0x7826, 0x7db5, 0x83dc, +0x8521, 0x91c7, 0x91f5, 0x518a, 0x67f5, 0x7b56, +94, 0x7421, +0x8cac, 0x51c4, 0x59bb, 0x60bd, 0x8655, 0x501c, 0xf9ff, 0x5254, +0x5c3a, 0x617d, 0x621a, 0x62d3, 0x64f2, 0x65a5, 0x6ecc, 0x7620, +0x810a, 0x8e60, 0x965f, 0x96bb, 0x4edf, 0x5343, 0x5598, 0x5929, +0x5ddd, 0x64c5, 0x6cc9, 0x6dfa, 0x7394, 0x7a7f, 0x821b, 0x85a6, +0x8ce4, 0x8e10, 0x9077, 0x91e7, 0x95e1, 0x9621, 0x97c6, 0x51f8, +0x54f2, 0x5586, 0x5fb9, 0x64a4, 0x6f88, 0x7db4, 0x8f1f, 0x8f4d, +0x9435, 0x50c9, 0x5c16, 0x6cbe, 0x6dfb, 0x751b, 0x77bb, 0x7c3d, +0x7c64, 0x8a79, 0x8ac2, 0x581e, 0x59be, 0x5e16, 0x6377, 0x7252, +0x758a, 0x776b, 0x8adc, 0x8cbc, 0x8f12, 0x5ef3, 0x6674, 0x6df8, +0x807d, 0x83c1, 0x8acb, 0x9751, 0x9bd6, 0xfa00, 0x5243, 0x66ff, +0x6d95, 0x6eef, 0x7de0, 0x8ae6, 0x902e, 0x905e, 0x9ad4, 0x521d, +0x527f, 0x54e8, 0x6194, 0x6284, 0x62db, 0x68a2, +94, 0x7521, +0x6912, 0x695a, 0x6a35, 0x7092, 0x7126, 0x785d, 0x7901, 0x790e, +0x79d2, 0x7a0d, 0x8096, 0x8278, 0x82d5, 0x8349, 0x8549, 0x8c82, +0x8d85, 0x9162, 0x918b, 0x91ae, 0x4fc3, 0x56d1, 0x71ed, 0x77d7, +0x8700, 0x89f8, 0x5bf8, 0x5fd6, 0x6751, 0x90a8, 0x53e2, 0x585a, +0x5bf5, 0x60a4, 0x6181, 0x6460, 0x7e3d, 0x8070, 0x8525, 0x9283, +0x64ae, 0x50ac, 0x5d14, 0x6700, 0x589c, 0x62bd, 0x63a8, 0x690e, +0x6978, 0x6a1e, 0x6e6b, 0x76ba, 0x79cb, 0x82bb, 0x8429, 0x8acf, +0x8da8, 0x8ffd, 0x9112, 0x914b, 0x919c, 0x9310, 0x9318, 0x939a, +0x96db, 0x9a36, 0x9c0d, 0x4e11, 0x755c, 0x795d, 0x7afa, 0x7b51, +0x7bc9, 0x7e2e, 0x84c4, 0x8e59, 0x8e74, 0x8ef8, 0x9010, 0x6625, +0x693f, 0x7443, 0x51fa, 0x672e, 0x9edc, 0x5145, 0x5fe0, 0x6c96, +0x87f2, 0x885d, 0x8877, 0x60b4, 0x81b5, 0x8403, +94, 0x7621, +0x8d05, 0x53d6, 0x5439, 0x5634, 0x5a36, 0x5c31, 0x708a, 0x7fe0, +0x805a, 0x8106, 0x81ed, 0x8da3, 0x9189, 0x9a5f, 0x9df2, 0x5074, +0x4ec4, 0x53a0, 0x60fb, 0x6e2c, 0x5c64, 0x4f88, 0x5024, 0x55e4, +0x5cd9, 0x5e5f, 0x6065, 0x6894, 0x6cbb, 0x6dc4, 0x71be, 0x75d4, +0x75f4, 0x7661, 0x7a1a, 0x7a49, 0x7dc7, 0x7dfb, 0x7f6e, 0x81f4, +0x86a9, 0x8f1c, 0x96c9, 0x99b3, 0x9f52, 0x5247, 0x52c5, 0x98ed, +0x89aa, 0x4e03, 0x67d2, 0x6f06, 0x4fb5, 0x5be2, 0x6795, 0x6c88, +0x6d78, 0x741b, 0x7827, 0x91dd, 0x937c, 0x87c4, 0x79e4, 0x7a31, +0x5feb, 0x4ed6, 0x54a4, 0x553e, 0x58ae, 0x59a5, 0x60f0, 0x6253, +0x62d6, 0x6736, 0x6955, 0x8235, 0x9640, 0x99b1, 0x99dd, 0x502c, +0x5353, 0x5544, 0x577c, 0xfa01, 0x6258, 0xfa02, 0x64e2, 0x666b, +0x67dd, 0x6fc1, 0x6fef, 0x7422, 0x7438, 0x8a17, +94, 0x7721, +0x9438, 0x5451, 0x5606, 0x5766, 0x5f48, 0x619a, 0x6b4e, 0x7058, +0x70ad, 0x7dbb, 0x8a95, 0x596a, 0x812b, 0x63a2, 0x7708, 0x803d, +0x8caa, 0x5854, 0x642d, 0x69bb, 0x5b95, 0x5e11, 0x6e6f, 0xfa03, +0x8569, 0x514c, 0x53f0, 0x592a, 0x6020, 0x614b, 0x6b86, 0x6c70, +0x6cf0, 0x7b1e, 0x80ce, 0x82d4, 0x8dc6, 0x90b0, 0x98b1, 0xfa04, +0x64c7, 0x6fa4, 0x6491, 0x6504, 0x514e, 0x5410, 0x571f, 0x8a0e, +0x615f, 0x6876, 0xfa05, 0x75db, 0x7b52, 0x7d71, 0x901a, 0x5806, +0x69cc, 0x817f, 0x892a, 0x9000, 0x9839, 0x5078, 0x5957, 0x59ac, +0x6295, 0x900f, 0x9b2a, 0x615d, 0x7279, 0x95d6, 0x5761, 0x5a46, +0x5df4, 0x628a, 0x64ad, 0x64fa, 0x6777, 0x6ce2, 0x6d3e, 0x722c, +0x7436, 0x7834, 0x7f77, 0x82ad, 0x8ddb, 0x9817, 0x5224, 0x5742, +0x677f, 0x7248, 0x74e3, 0x8ca9, 0x8fa6, 0x9211, +94, 0x7821, +0x962a, 0x516b, 0x53ed, 0x634c, 0x4f69, 0x5504, 0x6096, 0x6557, +0x6c9b, 0x6d7f, 0x724c, 0x72fd, 0x7a17, 0x8987, 0x8c9d, 0x5f6d, +0x6f8e, 0x70f9, 0x81a8, 0x610e, 0x4fbf, 0x504f, 0x6241, 0x7247, +0x7bc7, 0x7de8, 0x7fe9, 0x904d, 0x97ad, 0x9a19, 0x8cb6, 0x576a, +0x5e73, 0x67b0, 0x840d, 0x8a55, 0x5420, 0x5b16, 0x5e63, 0x5ee2, +0x5f0a, 0x6583, 0x80ba, 0x853d, 0x9589, 0x965b, 0x4f48, 0x5305, +0x530d, 0x530f, 0x5486, 0x54fa, 0x5703, 0x5e03, 0x6016, 0x629b, +0x62b1, 0x6355, 0xfa06, 0x6ce1, 0x6d66, 0x75b1, 0x7832, 0x80de, +0x812f, 0x82de, 0x8461, 0x84b2, 0x888d, 0x8912, 0x900b, 0x92ea, +0x98fd, 0x9b91, 0x5e45, 0x66b4, 0x66dd, 0x7011, 0x7206, 0xfa07, +0x4ff5, 0x527d, 0x5f6a, 0x6153, 0x6753, 0x6a19, 0x6f02, 0x74e2, +0x7968, 0x8868, 0x8c79, 0x98c7, 0x98c4, 0x9a43, +94, 0x7921, +0x54c1, 0x7a1f, 0x6953, 0x8af7, 0x8c4a, 0x98a8, 0x99ae, 0x5f7c, +0x62ab, 0x75b2, 0x76ae, 0x88ab, 0x907f, 0x9642, 0x5339, 0x5f3c, +0x5fc5, 0x6ccc, 0x73cc, 0x7562, 0x758b, 0x7b46, 0x82fe, 0x999d, +0x4e4f, 0x903c, 0x4e0b, 0x4f55, 0x53a6, 0x590f, 0x5ec8, 0x6630, +0x6cb3, 0x7455, 0x8377, 0x8766, 0x8cc0, 0x9050, 0x971e, 0x9c15, +0x58d1, 0x5b78, 0x8650, 0x8b14, 0x9db4, 0x5bd2, 0x6068, 0x608d, +0x65f1, 0x6c57, 0x6f22, 0x6fa3, 0x701a, 0x7f55, 0x7ff0, 0x9591, +0x9592, 0x9650, 0x97d3, 0x5272, 0x8f44, 0x51fd, 0x542b, 0x54b8, +0x5563, 0x558a, 0x6abb, 0x6db5, 0x7dd8, 0x8266, 0x929c, 0x9677, +0x9e79, 0x5408, 0x54c8, 0x76d2, 0x86e4, 0x95a4, 0x95d4, 0x965c, +0x4ea2, 0x4f09, 0x59ee, 0x5ae6, 0x5df7, 0x6052, 0x6297, 0x676d, +0x6841, 0x6c86, 0x6e2f, 0x7f38, 0x809b, 0x822a, +94, 0x7a21, +0xfa08, 0xfa09, 0x9805, 0x4ea5, 0x5055, 0x54b3, 0x5793, 0x595a, +0x5b69, 0x5bb3, 0x61c8, 0x6977, 0x6d77, 0x7023, 0x87f9, 0x89e3, +0x8a72, 0x8ae7, 0x9082, 0x99ed, 0x9ab8, 0x52be, 0x6838, 0x5016, +0x5e78, 0x674f, 0x8347, 0x884c, 0x4eab, 0x5411, 0x56ae, 0x73e6, +0x9115, 0x97ff, 0x9909, 0x9957, 0x9999, 0x5653, 0x589f, 0x865b, +0x8a31, 0x61b2, 0x6af6, 0x737b, 0x8ed2, 0x6b47, 0x96aa, 0x9a57, +0x5955, 0x7200, 0x8d6b, 0x9769, 0x4fd4, 0x5cf4, 0x5f26, 0x61f8, +0x665b, 0x6ceb, 0x70ab, 0x7384, 0x73b9, 0x73fe, 0x7729, 0x774d, +0x7d43, 0x7d62, 0x7e23, 0x8237, 0x8852, 0xfa0a, 0x8ce2, 0x9249, +0x986f, 0x5b51, 0x7a74, 0x8840, 0x9801, 0x5acc, 0x4fe0, 0x5354, +0x593e, 0x5cfd, 0x633e, 0x6d79, 0x72f9, 0x8105, 0x8107, 0x83a2, +0x92cf, 0x9830, 0x4ea8, 0x5144, 0x5211, 0x578b, +94, 0x7b21, +0x5f62, 0x6cc2, 0x6ece, 0x7005, 0x7050, 0x70af, 0x7192, 0x73e9, +0x7469, 0x834a, 0x87a2, 0x8861, 0x9008, 0x90a2, 0x93a3, 0x99a8, +0x516e, 0x5f57, 0x60e0, 0x6167, 0x66b3, 0x8559, 0x8e4a, 0x91af, +0x978b, 0x4e4e, 0x4e92, 0x547c, 0x58d5, 0x58fa, 0x597d, 0x5cb5, +0x5f27, 0x6236, 0x6248, 0x660a, 0x6667, 0x6beb, 0x6d69, 0x6dcf, +0x6e56, 0x6ef8, 0x6f94, 0x6fe0, 0x6fe9, 0x705d, 0x72d0, 0x7425, +0x745a, 0x74e0, 0x7693, 0x795c, 0x7cca, 0x7e1e, 0x80e1, 0x82a6, +0x846b, 0x84bf, 0x864e, 0x865f, 0x8774, 0x8b77, 0x8c6a, 0x93ac, +0x9800, 0x9865, 0x60d1, 0x6216, 0x9177, 0x5a5a, 0x660f, 0x6df7, +0x6e3e, 0x743f, 0x9b42, 0x5ffd, 0x60da, 0x7b0f, 0x54c4, 0x5f18, +0x6c5e, 0x6cd3, 0x6d2a, 0x70d8, 0x7d05, 0x8679, 0x8a0c, 0x9d3b, +0x5316, 0x548c, 0x5b05, 0x6a3a, 0x706b, 0x7575, +94, 0x7c21, +0x798d, 0x79be, 0x82b1, 0x83ef, 0x8a71, 0x8b41, 0x8ca8, 0x9774, +0xfa0b, 0x64f4, 0x652b, 0x78ba, 0x78bb, 0x7a6b, 0x4e38, 0x559a, +0x5950, 0x5ba6, 0x5e7b, 0x60a3, 0x63db, 0x6b61, 0x6665, 0x6853, +0x6e19, 0x7165, 0x74b0, 0x7d08, 0x9084, 0x9a69, 0x9c25, 0x6d3b, +0x6ed1, 0x733e, 0x8c41, 0x95ca, 0x51f0, 0x5e4c, 0x5fa8, 0x604d, +0x60f6, 0x6130, 0x614c, 0x6643, 0x6644, 0x69a5, 0x6cc1, 0x6e5f, +0x6ec9, 0x6f62, 0x714c, 0x749c, 0x7687, 0x7bc1, 0x7c27, 0x8352, +0x8757, 0x9051, 0x968d, 0x9ec3, 0x532f, 0x56de, 0x5efb, 0x5f8a, +0x6062, 0x6094, 0x61f7, 0x6666, 0x6703, 0x6a9c, 0x6dee, 0x6fae, +0x7070, 0x736a, 0x7e6a, 0x81be, 0x8334, 0x86d4, 0x8aa8, 0x8cc4, +0x5283, 0x7372, 0x5b96, 0x6a6b, 0x9404, 0x54ee, 0x5686, 0x5b5d, +0x6548, 0x6585, 0x66c9, 0x689f, 0x6d8d, 0x6dc6, +94, 0x7d21, +0x723b, 0x80b4, 0x9175, 0x9a4d, 0x4faf, 0x5019, 0x539a, 0x540e, +0x543c, 0x5589, 0x55c5, 0x5e3f, 0x5f8c, 0x673d, 0x7166, 0x73dd, +0x9005, 0x52db, 0x52f3, 0x5864, 0x58ce, 0x7104, 0x718f, 0x71fb, +0x85b0, 0x8a13, 0x6688, 0x85a8, 0x55a7, 0x6684, 0x714a, 0x8431, +0x5349, 0x5599, 0x6bc1, 0x5f59, 0x5fbd, 0x63ee, 0x6689, 0x7147, +0x8af1, 0x8f1d, 0x9ebe, 0x4f11, 0x643a, 0x70cb, 0x7566, 0x8667, +0x6064, 0x8b4e, 0x9df8, 0x5147, 0x51f6, 0x5308, 0x6d36, 0x80f8, +0x9ed1, 0x6615, 0x6b23, 0x7098, 0x75d5, 0x5403, 0x5c79, 0x7d07, +0x8a16, 0x6b20, 0x6b3d, 0x6b46, 0x5438, 0x6070, 0x6d3d, 0x7fd5, +0x8208, 0x50d6, 0x51de, 0x559c, 0x566b, 0x56cd, 0x59ec, 0x5b09, +0x5e0c, 0x6199, 0x6198, 0x6231, 0x665e, 0x66e6, 0x7199, 0x71b9, +0x71ba, 0x72a7, 0x79a7, 0x7a00, 0x7fb2, 0x8a70, +0 diff --git a/lib/lib.dsp b/lib/lib.dsp new file mode 100644 index 0000000..af625f5 --- /dev/null +++ b/lib/lib.dsp @@ -0,0 +1,2035 @@ +# Microsoft Developer Studio Project File - Name="lib" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +CFG=lib - Win32 Release +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "lib.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "lib.mak" CFG="lib - Win32 Release" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "lib - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "lib - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "lib - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir ".\Release" +# PROP BASE Intermediate_Dir ".\Release" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir ".\Release" +# PROP Intermediate_Dir ".\Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\include" /I "..\generic" /D "NDEBUG" /D "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /D SP_HAVE_LOCALE=1 /Yu"splib.h" /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /dll /machine:I386 +# ADD LINK32 wininet.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /dll /machine:I386 /out:"..\bin\osp152.dll" /base:0x21000000 +# SUBTRACT LINK32 /profile + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir ".\Debug" +# PROP BASE Intermediate_Dir ".\Debug" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir ".\Debug" +# PROP Intermediate_Dir ".\Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c +# ADD CPP /nologo /MDd /W3 /GX /ZI /Od /I "..\include" /I "..\generic" /D "_DEBUG" /D "_WINDOWS" /D "WINSOCK" /D "WIN32" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /Yu"splib.h" /FD /c +# ADD BASE MTL /nologo /D "_DEBUG" /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /dll /debug /machine:I386 +# ADD LINK32 wininet.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:"..\dbgbin\osp152.dll" /base:0x21000000 + +!ENDIF + +# Begin Target + +# Name "lib - Win32 Release" +# Name "lib - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat;for;f90" +# Begin Source File + +SOURCE=.\Allocator.cxx +# End Source File +# Begin Source File + +SOURCE=.\app_inst.cxx +# ADD CPP /Yu"splib.h" +# End Source File +# Begin Source File + +SOURCE=.\app_inst.m4 + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\app_inst.m4 +InputName=app_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\app_inst.m4 +InputName=app_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\arc_inst.cxx +# ADD CPP /Yu"splib.h" +# End Source File +# Begin Source File + +SOURCE=.\arc_inst.m4 + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\arc_inst.m4 +InputName=arc_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\arc_inst.m4 +InputName=arc_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\ArcEngine.cxx +# End Source File +# Begin Source File + +SOURCE=.\ArcEngineMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\ArcEngineMessages.msg +InputName=ArcEngineMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\ArcEngineMessages.msg +InputName=ArcEngineMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\assert.cxx +# End Source File +# Begin Source File + +SOURCE=.\Attribute.cxx +# End Source File +# Begin Source File + +SOURCE=.\Big5CodingSystem.cxx +# End Source File +# Begin Source File + +SOURCE=.\CatalogMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\CatalogMessages.msg +InputName=CatalogMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\CatalogMessages.msg +InputName=CatalogMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\CharsetDecl.cxx +# End Source File +# Begin Source File + +SOURCE=.\CharsetInfo.cxx +# End Source File +# Begin Source File + +SOURCE=.\CharsetRegistry.cxx +# End Source File +# Begin Source File + +SOURCE=.\CmdLineApp.cxx +# End Source File +# Begin Source File + +SOURCE=.\DtdDeclEventHandler.h +# End Source File +# Begin Source File + +SOURCE=.\DtdDeclEventHandler.cxx +# End Source File +# Begin Source File + +SOURCE=.\CmdLineAppMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\CmdLineAppMessages.msg +InputName=CmdLineAppMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\CmdLineAppMessages.msg +InputName=CmdLineAppMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\CodingSystem.cxx +# End Source File +# Begin Source File + +SOURCE=.\CodingSystemKit.cxx +# End Source File +# Begin Source File + +SOURCE=.\ConsoleOutput.cxx +# End Source File +# Begin Source File + +SOURCE=.\ContentState.cxx +# End Source File +# Begin Source File + +SOURCE=.\ContentToken.cxx +# End Source File +# Begin Source File + +SOURCE=.\DescriptorManager.cxx +# End Source File +# Begin Source File + +SOURCE=.\Dtd.cxx +# End Source File +# Begin Source File + +SOURCE=.\ElementType.cxx +# End Source File +# Begin Source File + +SOURCE=.\Entity.cxx +# End Source File +# Begin Source File + +SOURCE=.\EntityApp.cxx +# End Source File +# Begin Source File + +SOURCE=.\EntityAppMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\EntityAppMessages.msg +InputName=EntityAppMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\EntityAppMessages.msg +InputName=EntityAppMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\EntityCatalog.cxx +# End Source File +# Begin Source File + +SOURCE=.\EntityDecl.cxx +# End Source File +# Begin Source File + +SOURCE=.\EntityManager.cxx +# End Source File +# Begin Source File + +SOURCE=.\EntityManagerMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\EntityManagerMessages.msg +InputName=EntityManagerMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\EntityManagerMessages.msg +InputName=EntityManagerMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\entmgr_inst.cxx +# ADD CPP /Yu"splib.h" +# End Source File +# Begin Source File + +SOURCE=.\entmgr_inst.m4 + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\entmgr_inst.m4 +InputName=entmgr_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\entmgr_inst.m4 +InputName=entmgr_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\ErrnoMessageArg.cxx +# End Source File +# Begin Source File + +SOURCE=.\ErrorCountEventHandler.cxx +# End Source File +# Begin Source File + +SOURCE=.\EUCJPCodingSystem.cxx +# End Source File +# Begin Source File + +SOURCE=.\Event.cxx +# End Source File +# Begin Source File + +SOURCE=.\EventGenerator.cxx +# End Source File +# Begin Source File + +SOURCE=.\ExtendEntityManager.cxx +# End Source File +# Begin Source File + +SOURCE=.\ExternalId.cxx +# End Source File +# Begin Source File + +SOURCE=.\Fixed2CodingSystem.cxx +# End Source File +# Begin Source File + +SOURCE=.\Fixed4CodingSystem.cxx +# End Source File +# Begin Source File + +SOURCE=.\UTF16CodingSystem.cxx +# End Source File +# Begin Source File + +SOURCE=.\GenericEventHandler.cxx +# End Source File +# Begin Source File + +SOURCE=.\Group.cxx +# End Source File +# Begin Source File + +SOURCE=.\Hash.cxx +# End Source File +# Begin Source File + +SOURCE=.\Id.cxx +# End Source File +# Begin Source File + +SOURCE=.\IdentityCodingSystem.cxx +# End Source File +# Begin Source File + +SOURCE=.\IListBase.cxx +# End Source File +# Begin Source File + +SOURCE=.\InputSource.cxx +# End Source File +# Begin Source File + +SOURCE=.\InternalInputSource.cxx +# End Source File +# Begin Source File + +SOURCE=.\Link.cxx +# End Source File +# Begin Source File + +SOURCE=.\LinkProcess.cxx +# End Source File +# Begin Source File + +SOURCE=.\LiteralStorage.cxx +# End Source File +# Begin Source File + +SOURCE=.\Location.cxx +# End Source File +# Begin Source File + +SOURCE=.\Lpd.cxx +# End Source File +# Begin Source File + +SOURCE=.\Markup.cxx +# End Source File +# Begin Source File + +SOURCE=.\Message.cxx +# End Source File +# Begin Source File + +SOURCE=.\MessageArg.cxx +# End Source File +# Begin Source File + +SOURCE=.\MessageEventHandler.cxx +# End Source File +# Begin Source File + +SOURCE=.\MessageFormatter.cxx +# End Source File +# Begin Source File + +SOURCE=.\MessageFormatterMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\MessageFormatterMessages.msg +InputName=MessageFormatterMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\MessageFormatterMessages.msg +InputName=MessageFormatterMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\MessageReporter.cxx +# End Source File +# Begin Source File + +SOURCE=.\MessageReporterMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\MessageReporterMessages.msg +InputName=MessageReporterMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\MessageReporterMessages.msg +InputName=MessageReporterMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\MessageTable.cxx +# End Source File +# Begin Source File + +SOURCE=.\ModeInfo.cxx +# End Source File +# Begin Source File + +SOURCE=.\Notation.cxx +# End Source File +# Begin Source File + +SOURCE=.\NotationStorage.cxx +# End Source File +# Begin Source File + +SOURCE=.\NumericCharRefOrigin.cxx +# End Source File +# Begin Source File + +SOURCE=.\OffsetOrderedList.cxx +# End Source File +# Begin Source File + +SOURCE=.\OpenElement.cxx +# End Source File +# Begin Source File + +SOURCE=.\OutputByteStream.cxx +# End Source File +# Begin Source File + +SOURCE=.\OutputCharStream.cxx +# End Source File +# Begin Source File + +SOURCE=.\OutputState.cxx +# End Source File +# Begin Source File + +SOURCE=.\Param.cxx +# End Source File +# Begin Source File + +SOURCE=.\parseAttribute.cxx +# End Source File +# Begin Source File + +SOURCE=.\parseCommon.cxx +# End Source File +# Begin Source File + +SOURCE=.\parseDecl.cxx +# End Source File +# Begin Source File + +SOURCE=.\parseInstance.cxx +# End Source File +# Begin Source File + +SOURCE=.\parseMode.cxx +# End Source File +# Begin Source File + +SOURCE=.\parseParam.cxx +# End Source File +# Begin Source File + +SOURCE=.\Parser.cxx +# End Source File +# Begin Source File + +SOURCE=.\parser_inst.cxx +# ADD CPP /Yu"splib.h" +# End Source File +# Begin Source File + +SOURCE=.\parser_inst.m4 + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\parser_inst.m4 +InputName=parser_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\parser_inst.m4 +InputName=parser_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\ParserApp.cxx +# End Source File +# Begin Source File + +SOURCE=.\ParserAppMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\ParserAppMessages.msg +InputName=ParserAppMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\ParserAppMessages.msg +InputName=ParserAppMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\ParserEventGeneratorKit.cxx +# End Source File +# Begin Source File + +SOURCE=.\ParserMessages.cxx +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=.\ParserMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\ParserMessages.msg +InputName=ParserMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\ParserMessages.msg +InputName=ParserMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\ParserOptions.cxx +# End Source File +# Begin Source File + +SOURCE=.\ParserState.cxx +# End Source File +# Begin Source File + +SOURCE=.\parseSd.cxx +# End Source File +# Begin Source File + +SOURCE=.\Partition.cxx +# End Source File +# Begin Source File + +SOURCE=.\PosixStorage.cxx +# End Source File +# Begin Source File + +SOURCE=.\PosixStorageMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\PosixStorageMessages.msg +InputName=PosixStorageMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\PosixStorageMessages.msg +InputName=PosixStorageMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\Recognizer.cxx +# End Source File +# Begin Source File + +SOURCE=.\RewindStorageObject.cxx +# End Source File +# Begin Source File + +SOURCE=.\Sd.cxx +# End Source File +# Begin Source File + +SOURCE=.\SdText.cxx +# End Source File +# Begin Source File + +SOURCE=.\SearchResultMessageArg.cxx +# End Source File +# Begin Source File + +SOURCE=.\SGMLApplication.cxx +# End Source File +# Begin Source File + +SOURCE=.\SgmlParser.cxx +# End Source File +# Begin Source File + +SOURCE=.\ShortReferenceMap.cxx +# End Source File +# Begin Source File + +SOURCE=.\SJISCodingSystem.cxx +# End Source File +# Begin Source File + +SOURCE=.\SOEntityCatalog.cxx +# End Source File +# Begin Source File + +SOURCE=.\splib.cxx +# ADD CPP /Yc"splib.h" +# End Source File +# Begin Source File + +SOURCE=.\StdioStorage.cxx +# End Source File +# Begin Source File + +SOURCE=.\StdioStorageMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\StdioStorageMessages.msg +InputName=StdioStorageMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\StdioStorageMessages.msg +InputName=StdioStorageMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\StorageManager.cxx +# End Source File +# Begin Source File + +SOURCE=.\Syntax.cxx +# End Source File +# Begin Source File + +SOURCE=.\Text.cxx +# End Source File +# Begin Source File + +SOURCE=.\TokenMessageArg.cxx +# End Source File +# Begin Source File + +SOURCE=.\TranslateCodingSystem.cxx +# End Source File +# Begin Source File + +SOURCE=.\TrieBuilder.cxx +# End Source File +# Begin Source File + +SOURCE=.\TypeId.cxx +# End Source File +# Begin Source File + +SOURCE=.\Undo.cxx +# End Source File +# Begin Source File + +SOURCE=.\UnicodeCodingSystem.cxx +# End Source File +# Begin Source File + +SOURCE=.\UnivCharsetDesc.cxx +# End Source File +# Begin Source File + +SOURCE=.\URLStorage.cxx +# End Source File +# Begin Source File + +SOURCE=.\URLStorageMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\URLStorageMessages.msg +InputName=URLStorageMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\URLStorageMessages.msg +InputName=URLStorageMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\UTF8CodingSystem.cxx +# End Source File +# Begin Source File + +SOURCE=.\Win32CodingSystem.cxx +# End Source File +# Begin Source File + +SOURCE=.\WinApp.cxx +# End Source File +# Begin Source File + +SOURCE=.\WinInetStorage.cxx +# End Source File +# Begin Source File + +SOURCE=.\WinInetStorageMessages.msg + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\WinInetStorageMessages.msg +InputName=WinInetStorageMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\WinInetStorageMessages.msg +InputName=WinInetStorageMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l libModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\xentmgr_inst.cxx +# ADD CPP /Yu"splib.h" +# End Source File +# Begin Source File + +SOURCE=.\xentmgr_inst.m4 + +!IF "$(CFG)" == "lib - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\xentmgr_inst.m4 +InputName=xentmgr_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ELSEIF "$(CFG)" == "lib - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\xentmgr_inst.m4 +InputName=xentmgr_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\XMLCodingSystem.cxx +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd" +# Begin Source File + +SOURCE=..\include\Allocator.h +# End Source File +# Begin Source File + +SOURCE=..\include\ArcEngine.h +# End Source File +# Begin Source File + +SOURCE=.\ArcEngineMessages.h +# End Source File +# Begin Source File + +SOURCE=.\ArcProcessor.h +# End Source File +# Begin Source File + +SOURCE=..\include\Attribute.h +# End Source File +# Begin Source File + +SOURCE=..\include\Attributed.h +# End Source File +# Begin Source File + +SOURCE=.\big5.h +# End Source File +# Begin Source File + +SOURCE=..\include\Big5CodingSystem.h +# End Source File +# Begin Source File + +SOURCE=..\include\Boolean.h +# End Source File +# Begin Source File + +SOURCE=.\CatalogEntry.h +# End Source File +# Begin Source File + +SOURCE=.\CatalogMessages.h +# End Source File +# Begin Source File + +SOURCE=..\include\CharMap.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\CharMap.h +# End Source File +# Begin Source File + +SOURCE=..\include\CharsetDecl.h +# End Source File +# Begin Source File + +SOURCE=..\include\CharsetInfo.h +# End Source File +# Begin Source File + +SOURCE=..\include\CharsetRegistry.h +# End Source File +# Begin Source File + +SOURCE=..\include\CmdLineApp.h +# End Source File +# Begin Source File + +SOURCE=.\CmdLineAppMessages.h +# End Source File +# Begin Source File + +SOURCE=..\include\CodingSystem.h +# End Source File +# Begin Source File + +SOURCE=..\include\CodingSystemKit.h +# End Source File +# Begin Source File + +SOURCE=..\include\config.h +# End Source File +# Begin Source File + +SOURCE=..\include\ConsoleOutput.h +# End Source File +# Begin Source File + +SOURCE=..\include\constant.h +# End Source File +# Begin Source File + +SOURCE=..\include\ContentState.h +# End Source File +# Begin Source File + +SOURCE=..\include\ContentToken.h +# End Source File +# Begin Source File + +SOURCE=..\include\CopyOwner.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\CopyOwner.h +# End Source File +# Begin Source File + +SOURCE=..\include\DescriptorManager.h +# End Source File +# Begin Source File + +SOURCE=..\include\Dtd.h +# End Source File +# Begin Source File + +SOURCE=..\include\ElementType.h +# End Source File +# Begin Source File + +SOURCE=..\include\Entity.h +# End Source File +# Begin Source File + +SOURCE=..\include\EntityApp.h +# End Source File +# Begin Source File + +SOURCE=..\include\EntityCatalog.h +# End Source File +# Begin Source File + +SOURCE=..\include\EntityDecl.h +# End Source File +# Begin Source File + +SOURCE=..\include\EntityManager.h +# End Source File +# Begin Source File + +SOURCE=.\EntityManagerMessages.h +# End Source File +# Begin Source File + +SOURCE=.\EquivClass.h +# End Source File +# Begin Source File + +SOURCE=..\include\ErrnoMessageArg.h +# End Source File +# Begin Source File + +SOURCE=..\include\ErrorCountEventHandler.h +# End Source File +# Begin Source File + +SOURCE=..\include\EUCJPCodingSystem.h +# End Source File +# Begin Source File + +SOURCE=..\include\Event.h +# End Source File +# Begin Source File + +SOURCE=..\generic\EventGenerator.h +# End Source File +# Begin Source File + +SOURCE=.\EventQueue.h +# End Source File +# Begin Source File + +SOURCE=.\events.h +# End Source File +# Begin Source File + +SOURCE=..\include\EventsWanted.h +# End Source File +# Begin Source File + +SOURCE=..\include\ExtendEntityManager.h +# End Source File +# Begin Source File + +SOURCE=..\include\ExternalId.h +# End Source File +# Begin Source File + +SOURCE=..\include\Fixed2CodingSystem.h +# End Source File +# Begin Source File + +SOURCE=..\include\Fixed4CodingSystem.h +# End Source File +# Begin Source File + +SOURCE=..\include\UTF16CodingSystem.h +# End Source File +# Begin Source File + +SOURCE=.\gb2312.h +# End Source File +# Begin Source File + +SOURCE=..\include\GenericEventHandler.h +# End Source File +# Begin Source File + +SOURCE=.\Group.h +# End Source File +# Begin Source File + +SOURCE=..\include\Hash.h +# End Source File +# Begin Source File + +SOURCE=..\include\HashTable.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\HashTable.h +# End Source File +# Begin Source File + +SOURCE=..\include\HashTableItemBase.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\HashTableItemBase.h +# End Source File +# Begin Source File + +SOURCE=.\Id.h +# End Source File +# Begin Source File + +SOURCE=..\include\IdentityCodingSystem.h +# End Source File +# Begin Source File + +SOURCE=..\include\IList.h +# End Source File +# Begin Source File + +SOURCE=..\include\IListBase.h +# End Source File +# Begin Source File + +SOURCE=..\include\IListIter.h +# End Source File +# Begin Source File + +SOURCE=..\include\IListIterBase.h +# End Source File +# Begin Source File + +SOURCE=..\include\InputSource.h +# End Source File +# Begin Source File + +SOURCE=..\include\InternalInputSource.h +# End Source File +# Begin Source File + +SOURCE=..\include\IQueue.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\IQueue.h +# End Source File +# Begin Source File + +SOURCE=..\include\ISet.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\ISet.h +# End Source File +# Begin Source File + +SOURCE=..\include\ISetIter.h +# End Source File +# Begin Source File + +SOURCE=".\iso646-jis.h" +# End Source File +# Begin Source File + +SOURCE=".\iso8859-2.h" +# End Source File +# Begin Source File + +SOURCE=".\iso8859-3.h" +# End Source File +# Begin Source File + +SOURCE=".\iso8859-4.h" +# End Source File +# Begin Source File + +SOURCE=".\iso8859-5.h" +# End Source File +# Begin Source File + +SOURCE=".\iso8859-6.h" +# End Source File +# Begin Source File + +SOURCE=".\iso8859-7.h" +# End Source File +# Begin Source File + +SOURCE=".\iso8859-8.h" +# End Source File +# Begin Source File + +SOURCE=".\iso8859-9.h" +# End Source File +# Begin Source File + +SOURCE=.\jis0201.h +# End Source File +# Begin Source File + +SOURCE=.\jis0208.h +# End Source File +# Begin Source File + +SOURCE=.\jis0212.h +# End Source File +# Begin Source File + +SOURCE=.\ksc5601.h +# End Source File +# Begin Source File + +SOURCE=.\koi8-r.h +# End Source File +# Begin Source File + +SOURCE=..\include\Link.h +# End Source File +# Begin Source File + +SOURCE=..\include\LinkProcess.h +# End Source File +# Begin Source File + +SOURCE=..\include\List.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\List.h +# End Source File +# Begin Source File + +SOURCE=..\include\ListIter.h +# End Source File +# Begin Source File + +SOURCE=..\include\LiteralStorage.h +# End Source File +# Begin Source File + +SOURCE=..\include\Location.h +# End Source File +# Begin Source File + +SOURCE=..\include\Lpd.h +# End Source File +# Begin Source File + +SOURCE=.\LpdEntityRef.h +# End Source File +# Begin Source File + +SOURCE=..\include\macros.h +# End Source File +# Begin Source File + +SOURCE=..\include\Markup.h +# End Source File +# Begin Source File + +SOURCE=.\MarkupScan.h +# End Source File +# Begin Source File + +SOURCE=..\include\Message.h +# End Source File +# Begin Source File + +SOURCE=..\include\MessageArg.h +# End Source File +# Begin Source File + +SOURCE=..\include\MessageBuilder.h +# End Source File +# Begin Source File + +SOURCE=..\include\MessageEventHandler.h +# End Source File +# Begin Source File + +SOURCE=..\include\MessageFormatter.h +# End Source File +# Begin Source File + +SOURCE=.\MessageFormatterMessages.h +# End Source File +# Begin Source File + +SOURCE=..\include\MessageReporter.h +# End Source File +# Begin Source File + +SOURCE=.\MessageReporterMessages.h +# End Source File +# Begin Source File + +SOURCE=..\include\MessageTable.h +# End Source File +# Begin Source File + +SOURCE=..\include\Mode.h +# End Source File +# Begin Source File + +SOURCE=.\ModeInfo.h +# End Source File +# Begin Source File + +SOURCE=.\Mutex.h +# End Source File +# Begin Source File + +SOURCE=..\include\Named.h +# End Source File +# Begin Source File + +SOURCE=..\include\NamedResource.h +# End Source File +# Begin Source File + +SOURCE=..\include\NamedResourceTable.h +# End Source File +# Begin Source File + +SOURCE=..\include\NamedTable.h +# End Source File +# Begin Source File + +SOURCE=.\NameToken.h +# End Source File +# Begin Source File + +SOURCE=..\include\NCVector.h +# End Source File +# Begin Source File + +SOURCE=..\include\Notation.h +# End Source File +# Begin Source File + +SOURCE=..\include\NotationStorage.h +# End Source File +# Begin Source File + +SOURCE=.\NumericCharRefOrigin.h +# End Source File +# Begin Source File + +SOURCE=.\OffsetOrderedList.h +# End Source File +# Begin Source File + +SOURCE=..\include\OpenElement.h +# End Source File +# Begin Source File + +SOURCE=..\include\Options.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\Options.h +# End Source File +# Begin Source File + +SOURCE=..\include\OutputByteStream.h +# End Source File +# Begin Source File + +SOURCE=..\include\OutputCharStream.h +# End Source File +# Begin Source File + +SOURCE=.\OutputState.h +# End Source File +# Begin Source File + +SOURCE=..\include\Owner.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\Owner.h +# End Source File +# Begin Source File + +SOURCE=..\include\OwnerTable.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\OwnerTable.h +# End Source File +# Begin Source File + +SOURCE=.\Param.h +# End Source File +# Begin Source File + +SOURCE=.\Parser.h +# End Source File +# Begin Source File + +SOURCE=..\include\ParserApp.h +# End Source File +# Begin Source File + +SOURCE=.\ParserAppMessages.h +# End Source File +# Begin Source File + +SOURCE=..\generic\ParserEventGeneratorKit.h +# End Source File +# Begin Source File + +SOURCE=.\ParserMessages.h +# End Source File +# Begin Source File + +SOURCE=..\include\ParserOptions.h +# End Source File +# Begin Source File + +SOURCE=.\ParserState.h +# End Source File +# Begin Source File + +SOURCE=.\Partition.h +# End Source File +# Begin Source File + +SOURCE=..\include\PointerTable.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\PointerTable.h +# End Source File +# Begin Source File + +SOURCE=..\include\PosixStorage.h +# End Source File +# Begin Source File + +SOURCE=.\PosixStorageMessages.h +# End Source File +# Begin Source File + +SOURCE=.\Priority.h +# End Source File +# Begin Source File + +SOURCE=..\include\Ptr.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\Ptr.h +# End Source File +# Begin Source File + +SOURCE=..\include\RangeMap.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\RangeMap.h +# End Source File +# Begin Source File + +SOURCE=.\Recognizer.h +# End Source File +# Begin Source File + +SOURCE=..\include\Resource.h +# End Source File +# Begin Source File + +SOURCE=..\include\RewindStorageObject.h +# End Source File +# Begin Source File + +SOURCE=..\include\rtti.h +# End Source File +# Begin Source File + +SOURCE=..\include\Sd.h +# End Source File +# Begin Source File + +SOURCE=.\SdFormalError.h +# End Source File +# Begin Source File + +SOURCE=..\include\SdText.h +# End Source File +# Begin Source File + +SOURCE=..\include\SearchResultMessageArg.h +# End Source File +# Begin Source File + +SOURCE=..\generic\SGMLApplication.h +# End Source File +# Begin Source File + +SOURCE=..\include\SgmlParser.h +# End Source File +# Begin Source File + +SOURCE=..\include\ShortReferenceMap.h +# End Source File +# Begin Source File + +SOURCE=..\include\SJISCodingSystem.h +# End Source File +# Begin Source File + +SOURCE=..\include\SOEntityCatalog.h +# End Source File +# Begin Source File + +SOURCE=.\splib.h +# End Source File +# Begin Source File + +SOURCE=.\splibpch.h +# End Source File +# Begin Source File + +SOURCE=..\include\sptchar.h +# End Source File +# Begin Source File + +SOURCE=.\SrInfo.h +# End Source File +# Begin Source File + +SOURCE="..\..\..\Program Files\Microsoft Visual Studio\VC98\Include\SYS\STAT.H" +# End Source File +# Begin Source File + +SOURCE=..\include\StdioStorage.h +# End Source File +# Begin Source File + +SOURCE=.\StdioStorageMessages.h +# End Source File +# Begin Source File + +SOURCE=..\include\StorageManager.h +# End Source File +# Begin Source File + +SOURCE=.\StorageObjectPosition.h +# End Source File +# Begin Source File + +SOURCE=..\include\StringC.h +# End Source File +# Begin Source File + +SOURCE=..\include\StringOf.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\StringOf.h +# End Source File +# Begin Source File + +SOURCE=..\include\StringResource.h +# End Source File +# Begin Source File + +SOURCE=.\SubstTable.cxx +# End Source File +# Begin Source File + +SOURCE=..\include\SubstTable.h +# End Source File +# Begin Source File + +SOURCE=..\include\Syntax.h +# End Source File +# Begin Source File + +SOURCE=..\include\Text.h +# End Source File +# Begin Source File + +SOURCE=.\token.h +# End Source File +# Begin Source File + +SOURCE=.\TokenMessageArg.h +# End Source File +# Begin Source File + +SOURCE=..\include\TranslateCodingSystem.h +# End Source File +# Begin Source File + +SOURCE=.\Trie.h +# End Source File +# Begin Source File + +SOURCE=.\TrieBuilder.h +# End Source File +# Begin Source File + +SOURCE=..\include\TypeId.h +# End Source File +# Begin Source File + +SOURCE="..\..\..\Program Files\Microsoft Visual Studio\VC98\Include\SYS\TYPES.H" +# End Source File +# Begin Source File + +SOURCE=.\Undo.h +# End Source File +# Begin Source File + +SOURCE=..\include\UnicodeCodingSystem.h +# End Source File +# Begin Source File + +SOURCE=..\include\UnivCharsetDesc.h +# End Source File +# Begin Source File + +SOURCE=..\include\URLStorage.h +# End Source File +# Begin Source File + +SOURCE=.\URLStorageMessages.h +# End Source File +# Begin Source File + +SOURCE=..\include\UTF8CodingSystem.h +# End Source File +# Begin Source File + +SOURCE=..\include\Vector.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\Vector.h +# End Source File +# Begin Source File + +SOURCE=..\include\Win32CodingSystem.h +# End Source File +# Begin Source File + +SOURCE=..\include\WinApp.h +# End Source File +# Begin Source File + +SOURCE=..\include\WinInetStorage.h +# End Source File +# Begin Source File + +SOURCE=.\WinInetStorageMessages.h +# End Source File +# Begin Source File + +SOURCE=..\include\XcharMap.cxx +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\include\XcharMap.h +# End Source File +# Begin Source File + +SOURCE=..\include\XMLCodingSystem.h +# End Source File +# Begin Source File + +SOURCE=..\include\xnew.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# Begin Source File + +SOURCE=.\ArcEngineMessages.rc +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\CatalogMessages.rc +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\CmdLineAppMessages.rc +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\EntityAppMessages.rc +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\EntityManagerMessages.rc +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\lib.rc +# ADD BASE RSC /l 0x809 /i "lib" +# ADD RSC /l 0x809 /i "." /i "lib" +# End Source File +# Begin Source File + +SOURCE=.\MessageFormatterMessages.rc +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\MessageReporterMessages.rc +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\ParserAppMessages.rc +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\ParserMessages.rc +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\PosixStorageMessages.rc +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\StdioStorageMessages.rc +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\URLStorageMessages.rc +# PROP Exclude_From_Build 1 +# End Source File +# End Group +# End Target +# End Project diff --git a/lib/lib.rc b/lib/lib.rc new file mode 100644 index 0000000..4bb1668 --- /dev/null +++ b/lib/lib.rc @@ -0,0 +1,18 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#include "ArcEngineMessages.rc" +#include "CatalogMessages.rc" +#include "CmdLineAppMessages.rc" +#include "EntityAppMessages.rc" +#include "EntityManagerMessages.rc" +#include "MessageFormatterMessages.rc" +#include "MessageReporterMessages.rc" +#include "ParserAppMessages.rc" +#include "ParserMessages.rc" +#include "PosixStorageMessages.rc" +#include "StdioStorageMessages.rc" +#include "URLStorageMessages.rc" +#ifdef SP_WININET +#include "WinInetStorageMessages.rc" +#endif diff --git a/lib/memcmp.c b/lib/memcmp.c new file mode 100644 index 0000000..c1728e2 --- /dev/null +++ b/lib/memcmp.c @@ -0,0 +1,17 @@ +#include "config.h" +#include + +#ifndef HAVE_MEMCMP + +int memcmp(const void *s1, const void *s2, size_t n) +{ + const char *p1 = (const char *)s1; + const char *p2 = (const char *)s2; + size_t i; + for (i = 0; i < n; i++, p1++, p2++) + if (*p1 != *p2) + return (*p1 - *p2); + return 0; +} + +#endif diff --git a/lib/memmove.c b/lib/memmove.c new file mode 100644 index 0000000..a7e41e8 --- /dev/null +++ b/lib/memmove.c @@ -0,0 +1,12 @@ +#include "config.h" +#include + +#ifndef HAVE_MEMMOVE + +void *memmove(void *p1, const void *p2, size_t n) +{ + bcopy(p2, p1, n); + return p1; +} + +#endif diff --git a/lib/parseAttribute.cxx b/lib/parseAttribute.cxx new file mode 100644 index 0000000..8b98e9a --- /dev/null +++ b/lib/parseAttribute.cxx @@ -0,0 +1,526 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "Parser.h" +#include "MessageArg.h" +#include "token.h" +#include "macros.h" +#include "ParserMessages.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Boolean Parser::parseAttributeSpec(Mode mode, + AttributeList &atts, + Boolean &netEnabling, + Ptr &newAttDef) + +{ + unsigned specLength = 0; + AttributeParameter::Type curParm; + + if (!parseAttributeParameter(mode, 0, curParm, netEnabling)) + return 0; + while (curParm != AttributeParameter::end) { + switch (curParm) { + case AttributeParameter::name: + { + Text text; + text.addChars(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation()); + size_t nameMarkupIndex; + if (currentMarkup()) + nameMarkupIndex = currentMarkup()->size() - 1; + text.subst(*syntax().generalSubstTable(), syntax().space()); + if (!parseAttributeParameter(mode == piPasMode ? asMode : mode, 1, curParm, netEnabling)) + return 0; + if (curParm == AttributeParameter::vi) { + specLength += text.size() + syntax().normsep(); + if (!parseAttributeValueSpec(mode == piPasMode ? asMode : mode, text.string(), atts, + specLength, newAttDef)) + return 0; + // setup for next attribute + if (!parseAttributeParameter(mode, 0, curParm, netEnabling)) + return 0; + } + else { + if (currentMarkup()) + currentMarkup()->changeToAttributeValue(nameMarkupIndex); + if (!handleAttributeNameToken(text, atts, specLength)) + return 0; + } + } + break; + case AttributeParameter::nameToken: + { + Text text; + text.addChars(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation()); + text.subst(*syntax().generalSubstTable(), syntax().space()); + if (!handleAttributeNameToken(text, atts, specLength)) + return 0; + if (!parseAttributeParameter(mode, 0, curParm, netEnabling)) + return 0; + } + break; + case AttributeParameter::recoverUnquoted: + { + if (!atts.recoverUnquoted(currentToken(), currentLocation(), *this)) { + // Don't treat it as an unquoted attribute value. + currentInput()->endToken(1); + if (!atts.handleAsUnterminated(*this)) + message(ParserMessages::attributeSpecCharacter, + StringMessageArg(currentToken())); + return 0; + } + if (!parseAttributeParameter(mode, 0, curParm, netEnabling)) + return 0; + } + break; + default: + CANNOT_HAPPEN(); + } + } + atts.finish(*this); + if (specLength > syntax().attsplen()) + message(ParserMessages::attsplen, + NumberMessageArg(syntax().attsplen()), + NumberMessageArg(specLength)); + return 1; +} + +Boolean Parser::handleAttributeNameToken(Text &text, + AttributeList &atts, + unsigned &specLength) +{ + unsigned index; + if (!atts.tokenIndex(text.string(), index)) { + if (atts.handleAsUnterminated(*this)) + return 0; + atts.noteInvalidSpec(); + message(ParserMessages::noSuchAttributeToken, + StringMessageArg(text.string())); + } + else if (sd().www() && !atts.tokenIndexUnique(text.string(), index)) { + atts.noteInvalidSpec(); + message(ParserMessages::attributeTokenNotUnique, + StringMessageArg(text.string())); + } + else { + if (!sd().attributeOmitName()) + message(ParserMessages::attributeNameShorttag); + else if (options().warnMissingAttributeName) + message(ParserMessages::missingAttributeName); + atts.setSpec(index, *this); + atts.setValueToken(index, text, *this, specLength); + } + return 1; +} + +Boolean Parser::parseAttributeValueSpec(Mode mode, + const StringC &name, + AttributeList &atts, + unsigned &specLength, + Ptr &newAttDef) +{ + Markup *markup = currentMarkup(); + Token token = getToken(mode); + if (token == tokenS) { + if (markup) { + do { + markup->addS(currentChar()); + token = getToken(mode); + } while (token == tokenS); + } + else { + do { + token = getToken(mode); + } while (token == tokenS); + } + } + unsigned index; + if (!atts.attributeIndex(name, index)) { + if (newAttDef.isNull()) + newAttDef = new AttributeDefinitionList(atts.def()); + AttributeDefinition *newDef = 0; + if (!inInstance()) { + // We are parsing a data attribute specification + Ptr notation; + Dtd::NotationIter notationIter(currentDtdNonConst().notationIter()); + for (;;) { + notation = notationIter.next(); + if (notation.isNull() + || atts.def() == notation->attributeDef()) + break; + } + ASSERT(!notation.isNull()); + if (!notation->defined()) { + Notation *nt = + lookupCreateNotation(syntax().rniReservedName(Syntax::rIMPLICIT)); + ConstPtr common = nt->attributeDef(); + if (!common.isNull() && common->attributeIndex(name, index)) { + newDef = common->def(index)->copy(); + newDef->setSpecified(1); + } + } + if (!newDef) { + Notation *nt = + lookupCreateNotation(syntax().rniReservedName(Syntax::rALL)); + ConstPtr common = nt->attributeDef(); + if (!common.isNull() && common->attributeIndex(name, index)) { + newDef = common->def(index)->copy(); + newDef->setSpecified(0); + } + } + } + if (!newDef) { + if (!implydefAttlist()) + message(ParserMessages::noSuchAttribute, StringMessageArg(name)); + newDef = new ImpliedAttributeDefinition(name, + new CdataDeclaredValue); + } + newAttDef->append(newDef); + atts.changeDef(newAttDef); + index = atts.size() - 1; + } + atts.setSpec(index, *this); + Text text; + switch (token) { + case tokenUnrecognized: + if (reportNonSgmlCharacter()) + return 0; + // fall through + case tokenEtago: + case tokenStago: + case tokenNestc: + message(ParserMessages::unquotedAttributeValue); + extendUnquotedAttributeValue(); + if (markup) + markup->addAttributeValue(currentInput()); + text.addChars(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation()); + break; + case tokenEe: + if (mode != piPasMode) { + message(ParserMessages::attributeSpecEntityEnd); + return 0; + } + case tokenTagc: + case tokenDsc: + case tokenVi: + message(ParserMessages::attributeValueExpected); + return 0; + case tokenNameStart: + case tokenDigit: + case tokenLcUcNmchar: + if (!sd().attributeValueNotLiteral()) + message(ParserMessages::attributeValueShorttag); + else if (options().warnAttributeValueNotLiteral) + message(ParserMessages::attributeValueNotLiteral); + extendNameToken(syntax().litlen() >= syntax().normsep() + ? syntax().litlen() - syntax().normsep() + : 0, + ParserMessages::attributeValueLength); + if (markup) + markup->addAttributeValue(currentInput()); + text.addChars(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation()); + break; + case tokenLit: + case tokenLita: + Boolean lita; + lita = (token == tokenLita); + if (!(atts.tokenized(index) + ? parseTokenizedAttributeValueLiteral(lita, text) + : parseAttributeValueLiteral(lita, text))) + return 0; + if (markup) + markup->addLiteral(text); + break; + default: + CANNOT_HAPPEN(); + } + return atts.setValue(index, text, *this, specLength); +} + + +Boolean Parser::parseAttributeParameter(Mode mode, + Boolean allowVi, + AttributeParameter::Type &result, + Boolean &netEnabling) +{ + Token token = getToken(mode); + Markup *markup = currentMarkup(); + if (mode == piPasMode) { + for (;;) { + switch (token) { + case tokenCom: + if (!parseComment(comMode)) + return 0; + if (options().warnPsComment) + message(ParserMessages::psComment); + // fall through + case tokenS: + token = getToken(mode); + continue; + default: + break; + } + break; + } + } + else if (markup) { + while (token == tokenS) { + markup->addS(currentChar()); + token = getToken(mode); + } + } + else { + while (token == tokenS) + token = getToken(mode); + } + switch (token) { + case tokenUnrecognized: + if (reportNonSgmlCharacter()) + return 0; + extendUnquotedAttributeValue(); + result = AttributeParameter::recoverUnquoted; + break; + case tokenEe: + if (mode != piPasMode) { + message(ParserMessages::attributeSpecEntityEnd); + return 0; + } + result = AttributeParameter::end; + break; + case tokenEtago: + case tokenStago: + if (!sd().startTagUnclosed()) + message(ParserMessages::unclosedStartTagShorttag); + result = AttributeParameter::end; + currentInput()->ungetToken(); + netEnabling = 0; + break; + case tokenNestc: + if (markup) + markup->addDelim(Syntax::dNESTC); + switch (sd().startTagNetEnable()) { + case Sd::netEnableNo: + message(ParserMessages::netEnablingStartTagShorttag); + break; + case Sd::netEnableImmednet: + if (getToken(econnetMode) != tokenNet) + message(ParserMessages::nestcWithoutNet); + currentInput()->ungetToken(); + break; + case Sd::netEnableAll: + break; + } + netEnabling = 1; + result = AttributeParameter::end; + break; + case tokenTagc: + if (markup) + markup->addDelim(Syntax::dTAGC); + netEnabling = 0; + result = AttributeParameter::end; + break; + case tokenDsc: + if (markup) + markup->addDelim(Syntax::dDSC); + result = AttributeParameter::end; + break; + case tokenNameStart: + extendNameToken(syntax().namelen(), ParserMessages::nameTokenLength); + if (markup) + markup->addName(currentInput()); + result = AttributeParameter::name; + break; + case tokenDigit: + case tokenLcUcNmchar: + extendNameToken(syntax().namelen(), ParserMessages::nameTokenLength); + if (markup) + markup->addName(currentInput()); + result = AttributeParameter::nameToken; + break; + case tokenLit: + case tokenLita: + message(allowVi + ? ParserMessages::attributeSpecLiteral + : ParserMessages::attributeSpecNameTokenExpected); + return 0; + case tokenVi: + if (!allowVi) { + message(ParserMessages::attributeSpecNameTokenExpected); + return 0; + } + if (markup) + markup->addDelim(Syntax::dVI); + result = AttributeParameter::vi; + break; + default: + CANNOT_HAPPEN(); + } + return 1; +} + +void Parser::extendUnquotedAttributeValue() +{ + InputSource *in = currentInput(); + size_t length = in->currentTokenLength(); + const Syntax &syn = syntax(); + for (;;) { + Xchar c = in->tokenChar(messenger()); + if (syn.isS(c) + || !syn.isSgmlChar(c) + || c == InputSource::eE + || c == syn.delimGeneral(Syntax::dTAGC)[0]) + break; + length++; + } + in->endToken(length); +} + +Boolean Parser::parseAttributeValueLiteral(Boolean lita, Text &text) +{ + size_t maxLength = (syntax().litlen() > syntax().normsep() + ? syntax().litlen() - syntax().normsep() + : 0); + if (parseLiteral(lita ? alitaMode : alitMode, aliteMode, + maxLength, + ParserMessages::attributeValueLength, + literalNonSgml + | (wantMarkup() ? unsigned(literalDelimInfo) : 0), + text)) { + if (text.size() == 0 + && syntax().normsep() > syntax().litlen()) + message(ParserMessages::attributeValueLengthNeg, + NumberMessageArg(syntax().normsep() - syntax().litlen())); + return 1; + } + else + return 0; +} + +Boolean Parser::parseTokenizedAttributeValueLiteral(Boolean lita, Text &text) +{ + size_t maxLength = (syntax().litlen() > syntax().normsep() + ? syntax().litlen() - syntax().normsep() + : 0); + if (parseLiteral(lita ? talitaMode : talitMode, taliteMode, + maxLength, + ParserMessages::tokenizedAttributeValueLength, + literalSingleSpace + | (wantMarkup() ? unsigned(literalDelimInfo) : 0), + text)) { + if (text.size() == 0 + && syntax().normsep() > syntax().litlen()) + message(ParserMessages::tokenizedAttributeValueLengthNeg, + NumberMessageArg(syntax().normsep() - syntax().litlen())); + return 1; + } + else + return 0; +} + + +Boolean Parser::skipAttributeSpec() +{ + AttributeParameter::Type parm; + Boolean netEnabling; + if (!parseAttributeParameter(tagMode, 0, parm, netEnabling)) + return 0; + while (parm != AttributeParameter::end) { + if (parm == AttributeParameter::name) { + size_t nameMarkupIndex = 0; + if (currentMarkup()) + nameMarkupIndex = currentMarkup()->size() - 1; + if (!parseAttributeParameter(tagMode, 1, parm, netEnabling)) + return 0; + if (parm == AttributeParameter::vi) { + Token token = getToken(tagMode); + while (token == tokenS) { + if (currentMarkup()) + currentMarkup()->addS(currentChar()); + token = getToken(tagMode); + } + switch (token) { + case tokenUnrecognized: + if (!reportNonSgmlCharacter()) + message(ParserMessages::attributeSpecCharacter, + StringMessageArg(currentToken())); + return 0; + case tokenEe: + message(ParserMessages::attributeSpecEntityEnd); + return 0; + case tokenEtago: + case tokenStago: + case tokenNestc: + case tokenTagc: + case tokenDsc: + case tokenVi: + message(ParserMessages::attributeValueExpected); + return 0; + case tokenNameStart: + case tokenDigit: + case tokenLcUcNmchar: + if (!sd().attributeValueNotLiteral()) + message(ParserMessages::attributeValueShorttag); + extendNameToken(syntax().litlen() >= syntax().normsep() + ? syntax().litlen() - syntax().normsep() + : 0, + ParserMessages::attributeValueLength); + if (currentMarkup()) + currentMarkup()->addAttributeValue(currentInput()); + break; + case tokenLit: + case tokenLita: + { + Text text; + if (!parseLiteral(token == tokenLita ? talitaMode : talitMode, + taliteMode, + syntax().litlen(), + ParserMessages::tokenizedAttributeValueLength, + (currentMarkup() ? literalDelimInfo : 0) + | literalNoProcess, + text)) + return 0; + if (currentMarkup()) + currentMarkup()->addLiteral(text); + } + break; + default: + CANNOT_HAPPEN(); + } + if (!parseAttributeParameter(tagMode, 0, parm, netEnabling)) + return 0; + } + else { + if (currentMarkup()) + currentMarkup()->changeToAttributeValue(nameMarkupIndex); + if (!sd().attributeOmitName()) + message(ParserMessages::attributeNameShorttag); + } + } + else { + // It's a name token. + if (!parseAttributeParameter(tagMode, 0, parm, netEnabling)) + return 0; + if (!sd().attributeOmitName()) + message(ParserMessages::attributeNameShorttag); + } + } + if (netEnabling) + message(ParserMessages::startTagGroupNet); + return 1; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/parseCommon.cxx b/lib/parseCommon.cxx new file mode 100644 index 0000000..b2e0b2f --- /dev/null +++ b/lib/parseCommon.cxx @@ -0,0 +1,617 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "Parser.h" +#include "token.h" +#include "MessageArg.h" +#include "ParserMessages.h" +#include "constant.h" +#include "NumericCharRefOrigin.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Boolean Parser::parseProcessingInstruction() +{ + currentInput()->startToken(); + Location location(currentLocation()); + StringC buf; + for (;;) { + Token token = getToken(piMode); + if (token == tokenPic) + break; + switch (token) { + case tokenEe: + message(ParserMessages::processingInstructionEntityEnd); + return 0; + case tokenUnrecognized: + reportNonSgmlCharacter(); + // fall through + case tokenChar: + buf += *currentInput()->currentTokenStart(); + if (buf.size()/2 > syntax().pilen()) { + message(ParserMessages::processingInstructionLength, + NumberMessageArg(syntax().pilen())); + message(ParserMessages::processingInstructionClose); + return 0; + } + break; + } + } + if (buf.size() > syntax().pilen()) + message(ParserMessages::processingInstructionLength, + NumberMessageArg(syntax().pilen())); + if (options().warnPiMissingName) { + size_t i = 0; + if (buf.size() && syntax().isNameStartCharacter(buf[0])) { + for (i = 1; i < buf.size(); i++) + if (!syntax().isNameCharacter(buf[i])) + break; + } + if (i == 0 || (i < buf.size() && !syntax().isS(buf[i]))) + message(ParserMessages::piMissingName); + } + noteMarkup(); + eventHandler().pi(new (eventAllocator()) ImmediatePiEvent(buf, location)); + return 1; +} + +Boolean Parser::parseLiteral(Mode litMode, + Mode liteMode, + size_t maxLength, + const MessageType1 &tooLongMessage, + unsigned flags, + Text &text) +{ + unsigned startLevel = inputLevel(); + Mode currentMode = litMode; + // If the literal gets to be longer than this, then we assume + // that the closing delimiter has been omitted if we're at the end + // of a line and at the starting input level. + size_t reallyMaxLength = (maxLength > size_t(-1)/2 + ? size_t(-1) + : maxLength * 2); + text.clear(); + Location startLoc(currentLocation()); + if (flags & literalDelimInfo) + text.addStartDelim(currentLocation()); + for (;;) { + Token token = getToken(currentMode); + switch (token) { + case tokenEe: + if (inputLevel() == startLevel) { + message(ParserMessages::literalLevel); + return 0; + } + text.addEntityEnd(currentLocation()); + popInputStack(); + if (inputLevel() == startLevel) + currentMode = litMode; + break; + case tokenUnrecognized: + if (reportNonSgmlCharacter()) + break; + message(ParserMessages::literalMinimumData, + StringMessageArg(currentToken())); + break; + case tokenRs: + text.ignoreChar(currentChar(), currentLocation()); + break; + case tokenRe: + if (text.size() > reallyMaxLength && inputLevel() == startLevel) { +#if 0 + message(tooLongMessage, NumberMessageArg(maxLength)); +#endif + // guess that the closing delimiter has been omitted + Messenger::setNextLocation(startLoc); + message(ParserMessages::literalClosingDelimiter); + return 0; + } + // fall through + case tokenSepchar: + if ((flags & literalSingleSpace) + && (text.size() == 0 || text.lastChar() == syntax().space())) + text.ignoreChar(currentChar(), currentLocation()); + else + text.addChar(syntax().space(), + Location(new ReplacementOrigin(currentLocation(), + currentChar()), + 0)); + break; + case tokenSpace: + if ((flags & literalSingleSpace) + && (text.size() == 0 || text.lastChar() == syntax().space())) + text.ignoreChar(currentChar(), currentLocation()); + else + text.addChar(currentChar(), currentLocation()); + break; + case tokenCroDigit: + case tokenHcroHexDigit: + { + Char c; + Location loc; + if (!parseNumericCharRef(token== tokenHcroHexDigit, c, loc)) + return 0; + Boolean isSgmlChar; + if (!translateNumericCharRef(c, isSgmlChar)) + break; + if (!isSgmlChar) { + if (flags & literalNonSgml) + text.addNonSgmlChar(c, loc); + else + message(ParserMessages::numericCharRefLiteralNonSgml, + NumberMessageArg(c)); + break; + } + if (flags & literalDataTag) { + if (!syntax().isSgmlChar(c)) + message(ParserMessages::dataTagPatternNonSgml); + else if (syntax().charSet(Syntax::functionChar)->contains(c)) + message(ParserMessages::dataTagPatternFunction); + } + if ((flags & literalSingleSpace) + && c == syntax().space() + && (text.size() == 0 || text.lastChar() == syntax().space())) + text.ignoreChar(c, loc); + else + text.addChar(c, loc); + } + break; + case tokenCroNameStart: + if (!parseNamedCharRef()) + return 0; + break; + case tokenEroGrpo: + message(inInstance() ? ParserMessages::eroGrpoStartTag : ParserMessages::eroGrpoProlog); + break; + case tokenLit: + case tokenLita: + if (flags & literalDelimInfo) + text.addEndDelim(currentLocation(), token == tokenLita); + goto done; + case tokenPeroNameStart: + if (options().warnInternalSubsetLiteralParamEntityRef + && inputLevel() == 1) + message(ParserMessages::internalSubsetLiteralParamEntityRef); + // fall through + case tokenEroNameStart: + { + ConstPtr entity; + Ptr origin; + if (!parseEntityReference(token == tokenPeroNameStart, + (flags & literalNoProcess) ? 2 : 0, + entity, origin)) + return 0; + if (!entity.isNull()) + entity->litReference(text, *this, origin, + (flags & literalSingleSpace) != 0); + if (inputLevel() > startLevel) + currentMode = liteMode; + } + break; + case tokenPeroGrpo: + message(ParserMessages::peroGrpoProlog); + break; + case tokenCharDelim: + message(ParserMessages::dataCharDelim, + StringMessageArg(StringC(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength()))); + // fall through + case tokenChar: + if (text.size() > reallyMaxLength && inputLevel() == startLevel + && currentChar() == syntax().standardFunction(Syntax::fRE)) { +#if 0 + message(tooLongMessage, NumberMessageArg(maxLength)); +#endif + // guess that the closing delimiter has been omitted + Messenger::setNextLocation(startLoc); + message(ParserMessages::literalClosingDelimiter); + return 0; + } + text.addChar(currentChar(), currentLocation()); + break; + } + } + done: + if ((flags & literalSingleSpace) + && text.size() > 0 + && text.lastChar() == syntax().space()) + text.ignoreLastChar(); + if (text.size() > maxLength) { + switch (litMode) { + case alitMode: + case alitaMode: + case talitMode: + case talitaMode: + if (AttributeValue::handleAsUnterminated(text, *this)) + return 0; + default: + break; + } + message(tooLongMessage, NumberMessageArg(maxLength)); + } + return 1; +} + +Boolean Parser::parseNamedCharRef() +{ + if (options().warnNamedCharRef) + message(ParserMessages::namedCharRef); + InputSource *in = currentInput(); + Index startIndex = currentLocation().index(); + in->discardInitial(); + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + Char c; + Boolean valid; + StringC name; + getCurrentToken(syntax().generalSubstTable(), name); + if (!syntax().lookupFunctionChar(name, &c)) { + message(ParserMessages::functionName, StringMessageArg(name)); + valid = 0; + } + else { + valid = 1; + if (wantMarkup()) + getCurrentToken(name); // the original name + } + NamedCharRef::RefEndType refEndType; + switch (getToken(refMode)) { + case tokenRefc: + refEndType = NamedCharRef::endRefc; + break; + case tokenRe: + refEndType = NamedCharRef::endRE; + if (options().warnRefc) + message(ParserMessages::refc); + break; + default: + refEndType = NamedCharRef::endOmitted; + if (options().warnRefc) + message(ParserMessages::refc); + break; + } + in->startToken(); + if (valid) + in->pushCharRef(c, NamedCharRef(startIndex, refEndType, name)); + return 1; +} + +Boolean Parser::parseNumericCharRef(Boolean isHex, Char &ch, Location &loc) +{ + InputSource *in = currentInput(); + Location startLocation = currentLocation(); + in->discardInitial(); + Boolean valid = 1; + Char c = 0; + if (isHex) { + extendHexNumber(); + const Char *lim = in->currentTokenEnd(); + for (const Char *p = in->currentTokenStart(); p < lim; p++) { + int val = sd().hexDigitWeight(*p); + if (c <= charMax/16 && (c *= 16) <= charMax - val) + c += val; + else { + message(ParserMessages::characterNumber, StringMessageArg(currentToken())); + valid = 0; + break; + } + } + } + else { + extendNumber(syntax().namelen(), ParserMessages::numberLength); + const Char *lim = in->currentTokenEnd(); + for (const Char *p = in->currentTokenStart(); p < lim; p++) { + int val = sd().digitWeight(*p); + if (c <= charMax/10 && (c *= 10) <= charMax - val) + c += val; + else { + message(ParserMessages::characterNumber, StringMessageArg(currentToken())); + valid = 0; + break; + } + } + } + if (valid && !sd().docCharsetDecl().charDeclared(c)) { + valid = 0; + message(ParserMessages::characterNumber, StringMessageArg(currentToken())); + } + Owner markupPtr; + if (wantMarkup()) { + markupPtr = new Markup; + markupPtr->addDelim(isHex ? Syntax::dHCRO : Syntax::dCRO); + markupPtr->addNumber(in); + switch (getToken(refMode)) { + case tokenRefc: + markupPtr->addDelim(Syntax::dREFC); + break; + case tokenRe: + markupPtr->addRefEndRe(); + if (options().warnRefc) + message(ParserMessages::refc); + break; + default: + if (options().warnRefc) + message(ParserMessages::refc); + break; + } + } + else if (options().warnRefc) { + if (getToken(refMode) != tokenRefc) + message(ParserMessages::refc); + } + else + (void)getToken(refMode); + if (valid) { + ch = c; + loc = Location(new NumericCharRefOrigin(startLocation, + currentLocation().index() + + currentInput()->currentTokenLength() + - startLocation.index(), + markupPtr), + 0); + } + return valid; +} + +// Translate a character number in the document character set +// into the internal character set. +// If it's a non-SGML char (ie described as UNUSED in SGML declaration), +// return 1 and set sgmlChar to 0. + +Boolean Parser::translateNumericCharRef(Char &ch, Boolean &isSgmlChar) +{ + if (sd().internalCharsetIsDocCharset()) { + if (options().warnNonSgmlCharRef && !syntax().isSgmlChar(ch)) + message(ParserMessages::nonSgmlCharRef); + isSgmlChar = 1; + return 1; + } + UnivChar univChar; + if (!sd().docCharset().descToUniv(ch, univChar)) { + const PublicId *pubid; + CharsetDeclRange::Type type; + Number n; + StringC desc; + if (sd().docCharsetDecl().getCharInfo(ch, pubid, type, n, desc)) { + if (type == CharsetDeclRange::unused) { + if (options().warnNonSgmlCharRef) + message(ParserMessages::nonSgmlCharRef); + isSgmlChar = 0; + return 1; + } + } + else + CANNOT_HAPPEN(); + if (type == CharsetDeclRange::string) + message(ParserMessages::numericCharRefUnknownDesc, + NumberMessageArg(ch), + StringMessageArg(desc)); + else + message(ParserMessages::numericCharRefUnknownBase, + NumberMessageArg(ch), + NumberMessageArg(n), + StringMessageArg(pubid->string())); + } + else { + WideChar resultChar; + ISet resultChars; + switch (sd().internalCharset().univToDesc(univChar, + resultChar, + resultChars)) { + case 1: + if (resultChar <= charMax) { + isSgmlChar = 1; + ch = Char(resultChar); + return 1; + } + // fall through + case 2: + message(ParserMessages::numericCharRefBadInternal, + NumberMessageArg(ch)); + break; + default: + message(ParserMessages::numericCharRefNoInternal, + NumberMessageArg(ch)); + break; + } + } + return 0; +} + +// ignoreLevel: 0 means don't ignore; +// 1 means parse name group and ignore if inactive +// 2 means ignore + +Boolean Parser::parseEntityReference(Boolean isParameter, + int ignoreLevel, + ConstPtr &entity, + Ptr &origin) +{ + InputSource *in = currentInput(); + Location startLocation(in->currentLocation()); + Owner markupPtr; + if (wantMarkup()) { + markupPtr = new Markup; + markupPtr->addDelim(isParameter ? Syntax::dPERO : Syntax::dERO); + } + if (ignoreLevel == 1) { + Markup savedMarkup; + Markup *savedCurrentMarkup = currentMarkup(); + if (savedCurrentMarkup) + savedCurrentMarkup->swap(savedMarkup); + Location savedMarkupLocation(markupLocation()); + startMarkup(markupPtr != 0, startLocation); + if (markupPtr) { + markupPtr->addDelim(Syntax::dGRPO); + markupPtr->swap(*currentMarkup()); + } + Boolean ignore; + if (!parseEntityReferenceNameGroup(ignore)) + return 0; + if (markupPtr) + currentMarkup()->swap(*markupPtr); + startMarkup(savedCurrentMarkup != 0, savedMarkupLocation); + if (savedCurrentMarkup) + savedMarkup.swap(*currentMarkup()); + if (!ignore) + ignoreLevel = 0; + in->startToken(); + Xchar c = in->tokenChar(messenger()); + if (!syntax().isNameStartCharacter(c)) { + message(ParserMessages::entityReferenceMissingName); + return 0; + } + } + in->discardInitial(); + if (isParameter) + extendNameToken(syntax().penamelen(), ParserMessages::parameterEntityNameLength); + else + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + StringC &name = nameBuffer(); + getCurrentToken(syntax().entitySubstTable(), name); + if (ignoreLevel) + entity = new IgnoredEntity(name, + isParameter + ? Entity::parameterEntity + : Entity::generalEntity); + else { + entity = lookupEntity(isParameter, name, startLocation, 1); + if (entity.isNull()) { + if (haveApplicableDtd()) { + if (!isParameter) { + entity = createUndefinedEntity(name, startLocation); + if (!sd().implydefEntity()) + message(ParserMessages::entityUndefined, StringMessageArg(name)); + } + else + message(ParserMessages::parameterEntityUndefined, + StringMessageArg(name)); + } + else + message(ParserMessages::entityApplicableDtd); + } + else if (entity->defaulted() && options().warnDefaultEntityReference) + message(ParserMessages::defaultEntityReference, StringMessageArg(name)); + } + if (markupPtr) { + markupPtr->addName(in); + switch (getToken(refMode)) { + case tokenRefc: + markupPtr->addDelim(Syntax::dREFC); + break; + case tokenRe: + markupPtr->addRefEndRe(); + if (options().warnRefc) + message(ParserMessages::refc); + break; + default: + if (options().warnRefc) + message(ParserMessages::refc); + break; + } + } + else if (options().warnRefc) { + if (getToken(refMode) != tokenRefc) + message(ParserMessages::refc); + } + else + (void)getToken(refMode); + if (!entity.isNull()) + origin = EntityOrigin::make(internalAllocator(), + entity, + startLocation, + currentLocation().index() + + currentInput()->currentTokenLength() + - startLocation.index(), + markupPtr); + else + origin = (EntityOrigin *)0; + return 1; +} + +Boolean Parser::parseComment(Mode mode) +{ + Location startLoc(currentLocation()); + Markup *markup = currentMarkup(); + if (markup) + markup->addCommentStart(); + Token token; + while ((token = getToken(mode)) != tokenCom) + switch (token) { + case tokenUnrecognized: + if (!reportNonSgmlCharacter()) + message(ParserMessages::sdCommentSignificant, + StringMessageArg(currentToken())); + break; + case tokenEe: + message(ParserMessages::commentEntityEnd, startLoc); + return 0; + default: + if (markup) + markup->addCommentChar(currentChar()); + break; + } + return 1; +} + +void Parser::extendNameToken(size_t maxLength, + const MessageType1 &tooLongMessage) +{ + InputSource *in = currentInput(); + size_t length = in->currentTokenLength(); + const Syntax &syn = syntax(); + while (syn.isNameCharacter(in->tokenChar(messenger()))) + length++; + if (length > maxLength) + message(tooLongMessage, NumberMessageArg(maxLength)); + in->endToken(length); +} + +void Parser::extendNumber(size_t maxLength, const MessageType1 &tooLongMessage) +{ + InputSource *in = currentInput(); + size_t length = in->currentTokenLength(); + while (syntax().isDigit(in->tokenChar(messenger()))) + length++; + if (length > maxLength) + message(tooLongMessage, NumberMessageArg(maxLength)); + in->endToken(length); +} + +void Parser::extendHexNumber() +{ + InputSource *in = currentInput(); + size_t length = in->currentTokenLength(); + while (syntax().isHexDigit(in->tokenChar(messenger()))) + length++; + if (length > syntax().namelen()) + message(ParserMessages::hexNumberLength, NumberMessageArg(syntax().namelen())); + in->endToken(length); +} + +Boolean Parser::reportNonSgmlCharacter() +{ + // In scanSuppress mode the non-SGML character will have been read. + Char c = currentInput()->currentTokenLength() ? currentChar() : getChar(); + if (!syntax().isSgmlChar(c)) { + message(ParserMessages::nonSgmlCharacter, NumberMessageArg(c)); + return 1; + } + return 0; +} + +void Parser::extendS() +{ + InputSource *in = currentInput(); + size_t length = in->currentTokenLength(); + while (syntax().isS(in->tokenChar(messenger()))) + length++; + in->endToken(length); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/parseDecl.cxx b/lib/parseDecl.cxx new file mode 100644 index 0000000..e7e9a97 --- /dev/null +++ b/lib/parseDecl.cxx @@ -0,0 +1,3661 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +// Prolog, dtd and declaration parsing. + +#include "splib.h" +#include "Parser.h" +#include "Param.h" +#include "Markup.h" +#include "ParserMessages.h" +#include "MessageArg.h" +#include "TokenMessageArg.h" +#include "token.h" +#include "macros.h" +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +static const AllowedParams allowMdc(Param::mdc); +static const AllowedParams allowName(Param::name); +static const AllowedParams allowParamLiteral(Param::paramLiteral); +static const AllowedParams allowNameNameGroup(Param::name, Param::nameGroup); +static const AllowedParams allowDsoMdc(Param::dso, Param::mdc); +static AllowedParams allowNameMdc(Param::name, Param::mdc); +static AllowedParams + allowExplicitLinkRuleMdc(Param::mdc, + Param::name, + Param::nameGroup, + Param::indicatedReservedName + Syntax::rIMPLIED); +static AllowedParams + allowNameNameGroupMdc(Param::name, Param::nameGroup, Param::mdc); + +static const AllowedParams + allowLinkSetSpec(Param::name, + Param::indicatedReservedName + Syntax::rINITIAL, + Param::indicatedReservedName + Syntax::rEMPTY, + Param::indicatedReservedName + Syntax::rRESTORE); + +void Parser::doProlog() +{ + const unsigned maxTries = 10; + unsigned tries = 0; + do { + if (cancelled()) { + allDone(); + return; + } + Token token = getToken(proMode); + switch (token) { + case tokenUnrecognized: + if (reportNonSgmlCharacter()) + break; + if (hadDtd()) { + currentInput()->ungetToken(); + endProlog(); + return; + } + { + StringC gi; + if (lookingAtStartTag(gi)) { + currentInput()->ungetToken(); + implyDtd(gi); + return; + } + } + + if (++tries >= maxTries) { + message(ParserMessages::notSgml); + giveUp(); + return; + } + message(ParserMessages::prologCharacter, StringMessageArg(currentToken())); + prologRecover(); + break; + case tokenEe: + if (hadDtd()) { + endProlog(); + return; + } + message(ParserMessages::documentEndProlog); + allDone(); + return; + case tokenMdoMdc: + // empty comment + emptyCommentDecl(); + break; + case tokenMdoCom: + if (!parseCommentDecl()) + prologRecover(); + break; + case tokenMdoNameStart: + setPass2Start(); + if (startMarkup(eventsWanted().wantPrologMarkup(), currentLocation())) + currentMarkup()->addDelim(Syntax::dMDO); + Syntax::ReservedName name; + if (parseDeclarationName(&name)) { + switch (name) { + case Syntax::rDOCTYPE: + if (!parseDoctypeDeclStart()) + giveUp(); + return; + case Syntax::rLINKTYPE: + if (!parseLinktypeDeclStart()) + giveUp(); + return; + case Syntax::rELEMENT: + case Syntax::rATTLIST: + case Syntax::rENTITY: + case Syntax::rNOTATION: + case Syntax::rSHORTREF: + case Syntax::rUSEMAP: + case Syntax::rUSELINK: + case Syntax::rLINK: + case Syntax::rIDLINK: + message(ParserMessages::prologDeclaration, + StringMessageArg(syntax().reservedName(name))); + if (!hadDtd()) + tries++; + prologRecover(); + break; + default: + message(ParserMessages::noSuchDeclarationType, + StringMessageArg(syntax().reservedName(name))); + prologRecover(); + break; + } + } + else + prologRecover(); + break; + case tokenPio: + if (!parseProcessingInstruction()) + prologRecover(); + break; + case tokenS: + if (eventsWanted().wantPrologMarkup()) { + extendS(); + eventHandler().sSep(new (eventAllocator()) + SSepEvent(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation(), + 1)); + } + break; + default: + CANNOT_HAPPEN(); + } + } while (eventQueueEmpty()); +} + +void Parser::endProlog() +{ + if (baseDtd().isNull() +#if 0 + || baseDtd()->documentElementType()->definition()->undefined() +#endif + ) { + // We could continue, but there's not a lot of point. + giveUp(); + return; + } + if (maybeStartPass2()) + setPhase(prologPhase); + else { + if (inputLevel() == 0) { + allDone(); + return; + } + if (pass2()) + checkEntityStability(); + setPhase(instanceStartPhase); + startInstance(); + ConstPtr lpd; + Vector simpleLinkAtts; + Vector simpleLinkNames; + for (size_t i = 0; i < nActiveLink(); i++) + if (activeLpd(i).type() == Lpd::simpleLink) { + const SimpleLpd &lpd = (SimpleLpd &)activeLpd(i); + simpleLinkNames.push_back(lpd.name()); + simpleLinkAtts.resize(simpleLinkAtts.size() + 1); + simpleLinkAtts.back().init(lpd.attributeDef()); + simpleLinkAtts.back().finish(*this); + } + else + lpd = (ComplexLpd *)&activeLpd(i); + eventHandler().endProlog(new (eventAllocator()) + EndPrologEvent(currentDtdPointer(), + lpd, + simpleLinkNames, + simpleLinkAtts, + currentLocation())); + } +} + +void Parser::prologRecover() +{ + unsigned skipCount = 0; + const unsigned skipMax = 250; + for (;;) { + Token token = getToken(proMode); + skipCount++; + if (token == tokenUnrecognized) { + token = getToken(mdMode); + if (token == tokenMdc) { + token = getToken(proMode); + if (token == tokenS) + return; + } + } + switch (token) { + case tokenUnrecognized: + (void)getChar(); + break; + case tokenEe: + return; + case tokenMdoMdc: + case tokenMdoCom: + case tokenMdoNameStart: + case tokenPio: + currentInput()->ungetToken(); + return; + case tokenS: + if (currentChar() == syntax().standardFunction(Syntax::fRE) + && skipCount >= skipMax) + return; + default: + break; + } + } +} + +void Parser::doDeclSubset() +{ + do { + if (cancelled()) { + allDone(); + return; + } + Token token = getToken(currentMode()); + unsigned startLevel = inputLevel(); + Boolean inDtd = !haveDefLpd(); + switch (token) { + case tokenUnrecognized: + if (reportNonSgmlCharacter()) + break; + message(ParserMessages::declSubsetCharacter, StringMessageArg(currentToken())); + declSubsetRecover(startLevel); + break; + case tokenEe: + if (inputLevel() == specialParseInputLevel()) { + // FIXME have separate messages for each type of special parse + message(ParserMessages::specialParseEntityEnd); + } + if (eventsWanted().wantPrologMarkup()) + eventHandler().entityEnd(new (eventAllocator()) + EntityEndEvent(currentLocation())); + if (inputLevel() == 2) { + const EntityDecl *e + = currentLocation().origin()->entityDecl(); + if (e + && (e->declType() == EntityDecl::doctype + || e->declType() == EntityDecl::linktype)) { + // popInputStack may destroy e + Boolean fake = e->defLocation().origin().isNull(); + popInputStack(); + if (!(inDtd + ? parseDoctypeDeclEnd(fake) + : parseLinktypeDeclEnd())) + ; // FIXME recover + setPhase(prologPhase); + return; + } + } + if (inputLevel() == 1) { + if (finalPhase() == declSubsetPhase) { + checkDtd(defDtd()); + endDtd(); + } + else + // Give message before popping stack. + message(inDtd + ? ParserMessages::documentEndDtdSubset + : ParserMessages::documentEndLpdSubset); + popInputStack(); + allDone(); + } + else + popInputStack(); + return; + case tokenDsc: // end of declaration subset + // FIXME what's the right location? + if (!referenceDsEntity(currentLocation())) { + if (!(inDtd ? parseDoctypeDeclEnd() : parseLinktypeDeclEnd())) + ; // FIXME recover + setPhase(prologPhase); + } + return; + case tokenMdoNameStart: // named markup declaration + if (startMarkup(eventsWanted().wantPrologMarkup(), currentLocation())) + currentMarkup()->addDelim(Syntax::dMDO); + Syntax::ReservedName name; + Boolean result; + if (parseDeclarationName(&name, + inDtd && !options().errorAfdr)) { + switch (name) { + case Syntax::rANY: // used for entity; + Ptr origin; + if (parseEntityReference(1, token == tokenPeroGrpo, entity, origin)) { + if (!entity.isNull()) + entity->dsReference(*this, origin); + } + else + declSubsetRecover(startLevel); + } + break; + case tokenPio: // processing instruction + if (!parseProcessingInstruction()) + declSubsetRecover(startLevel); + break; + case tokenS: // white space + if (eventsWanted().wantPrologMarkup()) { + extendS(); + eventHandler().sSep(new (eventAllocator()) + SSepEvent(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation(), + 1)); + } + break; + case tokenIgnoredChar: + // from an ignored marked section + if (eventsWanted().wantPrologMarkup()) + eventHandler().ignoredChars(new (eventAllocator()) + IgnoredCharsEvent(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation(), + 1)); + break; + case tokenRe: + case tokenRs: + case tokenCroNameStart: + case tokenCroDigit: + case tokenHcroHexDigit: + case tokenEroNameStart: + case tokenEroGrpo: + case tokenChar: + // these can occur in a cdata or rcdata marked section + message(ParserMessages::dataMarkedSectionDeclSubset); + declSubsetRecover(startLevel); + break; + default: + CANNOT_HAPPEN(); + } + } while (eventQueueEmpty()); +} + +void Parser::declSubsetRecover(unsigned startLevel) +{ + for (;;) { + Token token = getToken(currentMode()); + switch (token) { + case tokenUnrecognized: + (void)getChar(); + break; + case tokenEe: + if (inputLevel() <= startLevel) + return; + popInputStack(); + break; + case tokenMdoCom: + case tokenDsc: + case tokenMdoNameStart: + case tokenMdoMdc: + case tokenMdoDso: + case tokenMscMdc: + case tokenPio: + if (inputLevel() == startLevel) { + currentInput()->ungetToken(); + return; + } + break; + default: + break; + } + } +} + +Boolean Parser::lookingAtStartTag(StringC &gi) +{ + // This is harder than might be expected since we may not have compiled + // the recognizers for the instance yet. + const StringC &stago = instanceSyntax().delimGeneral(Syntax::dSTAGO); + for (size_t i = currentInput()->currentTokenLength(); + i < stago.size(); + i++) + if (currentInput()->tokenChar(messenger()) == InputSource::eE) + return 0; + StringC delim; + getCurrentToken(instanceSyntax().generalSubstTable(), delim); + if (delim != stago) + return 0; + Xchar c = currentInput()->tokenChar(messenger()); + if (!instanceSyntax().isNameStartCharacter(c)) + return 0; + do { + gi += (*instanceSyntax().generalSubstTable())[(Char)c]; + c = currentInput()->tokenChar(messenger()); + } while (instanceSyntax().isNameCharacter(c)); + return 1; +} + +Boolean Parser::parseDeclarationName(Syntax::ReservedName *result, + Boolean allowAfdr) +{ + currentInput()->discardInitial(); + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + StringC &name = nameBuffer(); + getCurrentToken(syntax().generalSubstTable(), name); + if (!syntax().lookupReservedName(name, result)) { + if (allowAfdr && name == sd().execToInternal("AFDR")) { + *result = Syntax::rANY; + if (currentMarkup()) + currentMarkup()->addName(currentInput()); + } + else { + message(ParserMessages::noSuchDeclarationType, StringMessageArg(name)); + return 0; + } + } + else if (currentMarkup()) + currentMarkup()->addReservedName(*result, currentInput()); + return 1; +} + +Boolean Parser::parseElementDecl() +{ + unsigned declInputLevel = inputLevel(); + Param parm; + if (!parseParam(allowNameNameGroup, declInputLevel, parm)) + return 0; + Vector nameVector; + if (parm.type == Param::nameGroup) { + parm.nameTokenVector.swap(nameVector); + if (options().warnElementGroupDecl) + message(ParserMessages::elementGroupDecl); + } + else { + nameVector.resize(1); + parm.token.swap(nameVector[0].name); + parm.origToken.swap(nameVector[0].origName); + } + static AllowedParams + allowRankOmissionContent(Param::number, + Param::reservedName + Syntax::rO, + Param::minus, + Param::reservedName + Syntax::rCDATA, + Param::reservedName + Syntax::rRCDATA, + Param::reservedName + Syntax::rEMPTY, + Param::reservedName + Syntax::rANY, + Param::modelGroup); + if (!parseParam(allowRankOmissionContent, declInputLevel, parm)) + return 0; + StringC rankSuffix; + Vector elements(nameVector.size()); + Vector rankStems; + Vector constRankStems; + size_t i; + if (parm.type == Param::number) { + if (options().warnRank) + message(ParserMessages::rank); + parm.token.swap(rankSuffix); + rankStems.resize(nameVector.size()); + constRankStems.resize(nameVector.size()); + for (i = 0; i < elements.size(); i++) { + StringC name(nameVector[i].name); + name += rankSuffix; + if (name.size() > syntax().namelen() + && nameVector[i].name.size() <= syntax().namelen()) + message(ParserMessages::genericIdentifierLength, + NumberMessageArg(syntax().namelen())); + elements[i] = lookupCreateElement(name); + rankStems[i] = lookupCreateRankStem(nameVector[i].name); + constRankStems[i] = rankStems[i]; + } + static AllowedParams + allowOmissionContent(Param::reservedName + Syntax::rO, + Param::minus, + Param::reservedName + Syntax::rCDATA, + Param::reservedName + Syntax::rRCDATA, + Param::reservedName + Syntax::rEMPTY, + Param::reservedName + Syntax::rANY, + Param::modelGroup); + Token token = getToken(mdMinusMode); + if (token == tokenNameStart) + message(ParserMessages::psRequired); + currentInput()->ungetToken(); + if (!parseParam(allowOmissionContent, declInputLevel, parm)) + return 0; + } + else { + for (i = 0; i < elements.size(); i++) { + // StringC *origName; + // origName = new StringC(nameVector[i].origName); + elements[i] = lookupCreateElement(nameVector[i].name); + elements[i]->setOrigName(nameVector[i].origName); + } + } + for (i = 0; i < elements.size(); i++) + if (defDtd().lookupRankStem(elements[i]->name()) && validate()) + message(ParserMessages::rankStemGenericIdentifier, + StringMessageArg(elements[i]->name())); + unsigned char omitFlags = 0; + if (parm.type == Param::minus + || parm.type == Param::reservedName + Syntax::rO) { + if (options().warnMinimizationParam) + message(ParserMessages::minimizationParam); + omitFlags |= ElementDefinition::omitSpec; + if (parm.type != Param::minus) + omitFlags |= ElementDefinition::omitStart; + static AllowedParams allowOmission(Param::reservedName + Syntax::rO, + Param::minus); + if (!parseParam(allowOmission, declInputLevel, parm)) + return 0; + if (parm.type != Param::minus) + omitFlags |= ElementDefinition::omitEnd; + static AllowedParams allowContent(Param::reservedName + Syntax::rCDATA, + Param::reservedName + Syntax::rRCDATA, + Param::reservedName + Syntax::rEMPTY, + Param::reservedName + Syntax::rANY, + Param::modelGroup); + if (!parseParam(allowContent, declInputLevel, parm)) + return 0; + } + else { + if (sd().omittag()) + message(ParserMessages::missingTagMinimization); + } + Ptr def; + switch (parm.type) { + case Param::reservedName + Syntax::rCDATA: + def = new ElementDefinition(markupLocation(), + defDtd().allocElementDefinitionIndex(), + omitFlags, + ElementDefinition::cdata); + if (!parseParam(allowMdc, declInputLevel, parm)) + return 0; + if (options().warnCdataContent) + message(ParserMessages::cdataContent); + break; + case Param::reservedName + Syntax::rRCDATA: + def = new ElementDefinition(markupLocation(), + defDtd().allocElementDefinitionIndex(), + omitFlags, + ElementDefinition::rcdata); + if (!parseParam(allowMdc, declInputLevel, parm)) + return 0; + if (options().warnRcdataContent) + message(ParserMessages::rcdataContent); + break; + case Param::reservedName + Syntax::rEMPTY: + def = new ElementDefinition(markupLocation(), + defDtd().allocElementDefinitionIndex(), + omitFlags, + ElementDefinition::empty); + if ((omitFlags & ElementDefinition::omitSpec) + && !(omitFlags & ElementDefinition::omitEnd) + && options().warnShould) + message(ParserMessages::emptyOmitEndTag); + if (!parseParam(allowMdc, declInputLevel, parm)) + return 0; + break; + case Param::reservedName + Syntax::rANY: + def = new ElementDefinition(markupLocation(), + defDtd().allocElementDefinitionIndex(), + omitFlags, + ElementDefinition::any); + if (!parseExceptions(declInputLevel, def)) + return 0; + break; + case Param::modelGroup: + { + unsigned long cnt = parm.modelGroupPtr->grpgtcnt(); + // The outermost model group isn't formally a content token. + if (cnt - 1 > syntax().grpgtcnt()) + message(ParserMessages::grpgtcnt, NumberMessageArg(syntax().grpgtcnt())); + Owner + modelGroup(new CompiledModelGroup(parm.modelGroupPtr)); + Vector ambiguities; + Boolean pcdataUnreachable; + modelGroup->compile(currentDtd().nElementTypeIndex(), ambiguities, + pcdataUnreachable); + if (pcdataUnreachable && options().warnMixedContent) + message(ParserMessages::pcdataUnreachable); + if (validate()) { + for (i = 0; i < ambiguities.size(); i++) { + const ContentModelAmbiguity &a = ambiguities[i]; + reportAmbiguity(a.from, a.to1, a.to2, a.andDepth); + } + } + def = new ElementDefinition(markupLocation(), + defDtd().allocElementDefinitionIndex(), + omitFlags, + ElementDefinition::modelGroup, + modelGroup); + if (!parseExceptions(declInputLevel, def)) + return 0; + } + break; + } + if (rankSuffix.size() > 0) + def->setRank(rankSuffix, constRankStems); + ConstPtr constDef(def); + for (i = 0; i < elements.size(); i++) { + if (elements[i]->definition() != 0) { + if (validate()) + message(ParserMessages::duplicateElementDefinition, + StringMessageArg(elements[i]->name())); + } + else { + elements[i]->setElementDefinition(constDef, i); + if (!elements[i]->attributeDef().isNull()) + checkElementAttribute(elements[i]); + } + if (rankStems.size() > 0) + rankStems[i]->addDefinition(constDef); + } + if (currentMarkup()) { + Vector v(elements.size()); + for (i = 0; i < elements.size(); i++) + v[i] = elements[i]; + eventHandler().elementDecl(new (eventAllocator()) + ElementDeclEvent(v, currentDtdPointer(), + markupLocation(), + currentMarkup())); + } + return 1; +} + +void Parser::reportAmbiguity(const LeafContentToken *from, + const LeafContentToken *to1, + const LeafContentToken *to2, + unsigned ambigAndDepth) +{ + StringC toName; + const ElementType *toType = to1->elementType(); + if (toType) + toName = toType->name(); + else { + toName = syntax().delimGeneral(Syntax::dRNI); + toName += syntax().reservedName(Syntax::rPCDATA); + } + unsigned to1Index = to1->typeIndex() + 1; + unsigned to2Index = to2->typeIndex() + 1; + if (from->isInitial()) + message(ParserMessages::ambiguousModelInitial, + StringMessageArg(toName), + OrdinalMessageArg(to1Index), + OrdinalMessageArg(to2Index)); + else { + StringC fromName; + const ElementType *fromType = from->elementType(); + if (fromType) + fromName = fromType->name(); + else { + fromName = syntax().delimGeneral(Syntax::dRNI); + fromName += syntax().reservedName(Syntax::rPCDATA); + } + unsigned fromIndex = from->typeIndex() + 1; + unsigned andMatches = from->andDepth() - ambigAndDepth; + if (andMatches == 0) + message(ParserMessages::ambiguousModel, + StringMessageArg(fromName), + OrdinalMessageArg(fromIndex), + StringMessageArg(toName), + OrdinalMessageArg(to1Index), + OrdinalMessageArg(to2Index)); + else if (andMatches == 1) + message(ParserMessages::ambiguousModelSingleAnd, + StringMessageArg(fromName), + OrdinalMessageArg(fromIndex), + StringMessageArg(toName), + OrdinalMessageArg(to1Index), + OrdinalMessageArg(to2Index)); + else + message(ParserMessages::ambiguousModelMultipleAnd, + StringMessageArg(fromName), + OrdinalMessageArg(fromIndex), + NumberMessageArg(andMatches), + StringMessageArg(toName), + OrdinalMessageArg(to1Index), + OrdinalMessageArg(to2Index)); + } +} + + +// Check the compatibility of the attribute definition with +// the element definition. + +void Parser::checkElementAttribute(const ElementType *e, size_t checkFrom) +{ + if (!validate()) + return; + const AttributeDefinitionList *attDef = e->attributeDef().pointer(); + Boolean conref = 0; + ASSERT(e != 0); + const ElementDefinition *edef = e->definition(); + ASSERT(edef != 0); + ASSERT(attDef != 0); + size_t attDefLength = attDef->size(); + for (size_t i = checkFrom; i < attDefLength; i++) { + const AttributeDefinition *p = attDef->def(i); + if (p->isConref()) + conref = 1; + if (p->isNotation() + && edef->declaredContent() == ElementDefinition::empty) + message(ParserMessages::notationEmpty, StringMessageArg(e->name())); + } + if (conref) { +#if 0 + if (edef->omittedTagSpec() && !edef->canOmitEndTag() + && options().warnShould) + message(ParserMessages::conrefOmitEndTag, StringMessageArg(e->name())); +#endif + if (edef->declaredContent() == ElementDefinition::empty) + message(ParserMessages::conrefEmpty, StringMessageArg(e->name())); + } +} + +ElementType *Parser::lookupCreateElement(const StringC &name) +{ + ElementType *e = defDtd().lookupElementType(name); + if (!e) { + if (haveDefLpd()) + message(ParserMessages::noSuchSourceElement, StringMessageArg(name)); + else { + e = new ElementType(name, defDtd().allocElementTypeIndex()); + defDtd().insertElementType(e); + } + } + return e; +} + +RankStem *Parser::lookupCreateRankStem(const StringC &name) +{ + RankStem *r = defDtd().lookupRankStem(name); + if (!r) { + r = new RankStem(name, defDtd().nRankStem()); + defDtd().insertRankStem(r); + const ElementType *e = defDtd().lookupElementType(name); + if (e && e->definition() != 0) + message(ParserMessages::rankStemGenericIdentifier, StringMessageArg(name)); + } + return r; +} + +Boolean Parser::parseExceptions(unsigned declInputLevel, + Ptr &def) +{ + Param parm; + static AllowedParams + allowExceptionsMdc(Param::mdc, Param::exclusions, Param::inclusions); + if (!parseParam(allowExceptionsMdc, declInputLevel, parm)) + return 0; + if (parm.type == Param::exclusions) { + if (options().warnExclusion) + message(ParserMessages::exclusion); + def->setExclusions(parm.elementVector); + static AllowedParams allowInclusionsMdc(Param::mdc, Param::inclusions); + if (!parseParam(allowInclusionsMdc, declInputLevel, parm)) + return 0; + } + if (parm.type == Param::inclusions) { + if (options().warnInclusion) + message(ParserMessages::inclusion); + def->setInclusions(parm.elementVector); + size_t nI = def->nInclusions(); + size_t nE = def->nExclusions(); + if (nE) { + for (size_t i = 0; i < nI; i++) { + const ElementType *e = def->inclusion(i); + for (size_t j = 0; j < nE; j++) + if (def->exclusion(j) == e) + message(ParserMessages::excludeIncludeSame, + StringMessageArg(e->name())); + } + } + if (!parseParam(allowMdc, declInputLevel, parm)) + return 0; + } + return 1; +} + +Boolean Parser::parseAttlistDecl() +{ + unsigned declInputLevel = inputLevel(); + Param parm; + size_t attcnt = 0; + size_t idIndex = size_t(-1); + size_t notationIndex = size_t(-1); + Boolean anyCurrent = 0; + + Boolean isNotation; + Vector attributed; + if (!parseAttributed(declInputLevel, parm, attributed, isNotation)) + return 0; + Vector > defs; + if (!parseParam(sd().www() ? allowNameMdc : allowName, declInputLevel, parm)) + return 0; + while (parm.type != Param::mdc) { + StringC attributeName; + StringC origAttributeName; + parm.token.swap(attributeName); + parm.origToken.swap(origAttributeName); + attcnt++; + Boolean duplicate = 0; + size_t i; + for (i = 0; i < defs.size(); i++) + if (defs[i]->name() == attributeName) { + message(ParserMessages::duplicateAttributeDef, + StringMessageArg(attributeName)); + duplicate = 1; + break; + } + Owner declaredValue; + if (!parseDeclaredValue(declInputLevel, isNotation, parm, declaredValue)) + return 0; + if (!duplicate) { + if (declaredValue->isId()) { + if (idIndex != size_t(-1)) + message(ParserMessages::multipleIdAttributes, + StringMessageArg(defs[idIndex]->name())); + idIndex = defs.size(); + } + else if (declaredValue->isNotation()) { + if (notationIndex != size_t(-1)) + message(ParserMessages::multipleNotationAttributes, + StringMessageArg(defs[notationIndex]->name())); + notationIndex = defs.size(); + } + } + const Vector *tokensPtr = declaredValue->getTokens(); + if (tokensPtr) { + size_t nTokens = tokensPtr->size(); + if (!sd().www()) { + Vector::const_iterator tokens = tokensPtr->begin(); + for (i = 0; i < nTokens; i++) { + for (size_t j = 0; j < defs.size(); j++) + if (defs[j]->containsToken(tokens[i])) { + message(ParserMessages::duplicateAttributeToken, + StringMessageArg(tokens[i])); + break; + } + } + } + attcnt += nTokens; + } + Owner def; + if (!parseDefaultValue(declInputLevel, isNotation, parm, attributeName, + declaredValue, def, anyCurrent)) + return 0; + if (haveDefLpd() && defLpd().type() == Lpd::simpleLink && !def->isFixed()) + message(ParserMessages::simpleLinkFixedAttribute); + def->setOrigName(origAttributeName); + if (!duplicate) { + defs.resize(defs.size() + 1); + defs.back() = def.extract(); + } + static AllowedParams allowNameMdc(Param::name, Param::mdc); + if (!parseParam(allowNameMdc, declInputLevel, parm)) + return 0; + } + if (attcnt > syntax().attcnt()) + message(ParserMessages::attcnt, + NumberMessageArg(attcnt), + NumberMessageArg(syntax().attcnt())); + if (haveDefLpd() && !isNotation) { + if (defLpd().type() == Lpd::simpleLink) { + for (size_t i = 0; i < attributed.size(); i++) { + const ElementType *e = (const ElementType *)attributed[i]; + if (e) { + if (e->name() == defLpd().sourceDtd()->name()) { + SimpleLpd &lpd = (SimpleLpd &)defLpd(); + if (lpd.attributeDef().isNull()) + lpd.setAttributeDef(new AttributeDefinitionList(defs, 0)); + else + message(ParserMessages::duplicateAttlistElement, + StringMessageArg(e->name())); + } + else + message(ParserMessages::simpleLinkAttlistElement, + StringMessageArg(e->name())); + } + } + } + else { + Ptr + adl(new AttributeDefinitionList(defs, + defComplexLpd() + .allocAttributeDefinitionListIndex())); + for (size_t i = 0; i < attributed.size(); i++) { + const ElementType *e = (const ElementType *)attributed[i]; + if (e) { + if (defComplexLpd().attributeDef(e).isNull()) + defComplexLpd().setAttributeDef(e, adl); + else + message(ParserMessages::duplicateAttlistElement, + StringMessageArg(e->name())); + } + } + } + } + else { + Ptr + adl(new AttributeDefinitionList(defs, + defDtd() + .allocAttributeDefinitionListIndex(), + anyCurrent, + idIndex, + notationIndex)); + for (size_t i = 0; i < attributed.size(); i++) { + if (attributed[i]->attributeDef().isNull()) { + attributed[i]->setAttributeDef(adl); + if (!isNotation) { + ElementType *e = (ElementType *)attributed[i]; + if (e->definition() != 0) + checkElementAttribute(e); + } + } + else if (options().errorAfdr && !sd().www()) { + if (isNotation) + message(ParserMessages::duplicateAttlistNotation, + StringMessageArg(((Notation *)attributed[i])->name())); + else + message(ParserMessages::duplicateAttlistElement, + StringMessageArg(((ElementType *)attributed[i])->name())); + } + else { + if (!hadAfdrDecl() && !sd().www()) { + message(ParserMessages::missingAfdrDecl); + setHadAfdrDecl(); + } + AttributeDefinitionList *curAdl; + { + // Use block to make sure temporary gets destroyed. + curAdl = attributed[i]->attributeDef().pointer(); + } + size_t oldSize = curAdl->size(); + if (curAdl->count() != 1) { + Vector > copy(oldSize); + for (size_t j = 0; j < oldSize; j++) + copy[j] = curAdl->def(j)->copy(); + Ptr adlCopy + = new AttributeDefinitionList(copy, + defDtd().allocAttributeDefinitionListIndex(), + curAdl->anyCurrent(), + curAdl->idIndex(), + curAdl->notationIndex()); + attributed[i]->setAttributeDef(adlCopy); + curAdl = adlCopy.pointer(); + } + for (size_t j = 0; j < adl->size(); j++) { + unsigned index; + if (!curAdl->attributeIndex(adl->def(j)->name(), index)) { + index = curAdl->idIndex(); + if (index != -1 && adl->def(j)->isId()) + message(ParserMessages::multipleIdAttributes, + StringMessageArg(curAdl->def(index)->name())); + index = curAdl->notationIndex(); + if (index != -1 && adl->def(j)->isNotation()) + message(ParserMessages::multipleNotationAttributes, + StringMessageArg(curAdl->def(index)->name())); + curAdl->append(adl->def(j)->copy()); + } + else { + Boolean tem; + if (curAdl->def(index)->isSpecified(tem)) + message(ParserMessages::specifiedAttributeRedeclared, + StringMessageArg(adl->def(j)->name())); + } + } + if (!isNotation) { + ElementType *e = (ElementType *)attributed[i]; + if (e->definition() != 0) + checkElementAttribute(e, oldSize); + } + } + } + } + if (currentMarkup()) { + if (isNotation) { + Vector > v(attributed.size()); + for (size_t i = 0; i < attributed.size(); i++) + v[i] = (Notation *)attributed[i]; + eventHandler() + .attlistNotationDecl(new (eventAllocator()) + AttlistNotationDeclEvent(v, + markupLocation(), + currentMarkup())); + } + else { + Vector v(attributed.size()); + for (size_t i = 0; i < attributed.size(); i++) + v[i] = (ElementType *)attributed[i]; + if (haveDefLpd()) + eventHandler() + .linkAttlistDecl(new (eventAllocator()) + LinkAttlistDeclEvent(v, + defLpdPointer(), + markupLocation(), + currentMarkup())); + else + eventHandler().attlistDecl(new (eventAllocator()) + AttlistDeclEvent(v, + currentDtdPointer(), + markupLocation(), + currentMarkup())); + } + } + if (isNotation) { + Dtd::EntityIter entityIter(defDtd().generalEntityIter()); + for (;;) { + Ptr entity(entityIter.next()); + if (entity.isNull()) + break; + const ExternalDataEntity *external = entity->asExternalDataEntity(); + if (external) { + const Notation *entityNotation = external->notation(); + for (size_t i = 0; i < attributed.size(); i++) + if ((Notation *)attributed[i] == entityNotation) { + AttributeList attributes(entityNotation->attributeDef()); + attributes.finish(*this); + ((ExternalDataEntity *)entity.pointer()) + ->setNotation((Notation *)attributed[i], attributes); + } + } + } + } + return 1; +} + + +Boolean Parser::parseAttributed(unsigned declInputLevel, + Param &parm, + Vector &attributed, + Boolean &isNotation) +{ + static AllowedParams + allowNameGroupNotation(Param::name, + Param::nameGroup, + Param::indicatedReservedName + Syntax::rNOTATION); + static AllowedParams + allowNameGroupNotationAll(Param::name, + Param::nameGroup, + Param::indicatedReservedName + + Syntax::rNOTATION, + Param::indicatedReservedName + + Syntax::rALL, + Param::indicatedReservedName + + Syntax::rIMPLICIT); + if (!parseParam(haveDefLpd() + ? allowNameGroupNotation + : allowNameGroupNotationAll, + declInputLevel, parm)) + return 0; + if (parm.type == Param::indicatedReservedName + Syntax::rNOTATION) { + if (options().warnDataAttributes) + message(ParserMessages::dataAttributes); + isNotation = 1; + static AllowedParams + allowNameGroupAll(Param::name, + Param::nameGroup, + Param::indicatedReservedName + Syntax::rALL, + Param::indicatedReservedName + Syntax::rIMPLICIT); + if (!parseParam(haveDefLpd() + ? allowNameNameGroup + : allowNameGroupAll, + declInputLevel, parm)) + return 0; + if (parm.type == Param::nameGroup) { + attributed.resize(parm.nameTokenVector.size()); + for (size_t i = 0; i < attributed.size(); i++) + attributed[i] = lookupCreateNotation(parm.nameTokenVector[i].name); + } + else { + if (parm.type != Param::name && !hadAfdrDecl() && !sd().www()) { + message(ParserMessages::missingAfdrDecl); + setHadAfdrDecl(); + } + attributed.resize(1); + attributed[0] + = lookupCreateNotation(parm.type == Param::name + ? parm.token + : syntax().rniReservedName(Syntax::ReservedName(parm.type - Param::indicatedReservedName))); + } + } + else { + isNotation = 0; + if (parm.type == Param::nameGroup) { + if (options().warnAttlistGroupDecl) + message(ParserMessages::attlistGroupDecl); + attributed.resize(parm.nameTokenVector.size()); + for (size_t i = 0; i < attributed.size(); i++) + attributed[i] = lookupCreateElement(parm.nameTokenVector[i].name); + } + else { + if (parm.type != Param::name && !hadAfdrDecl() && !sd().www()) { + message(ParserMessages::missingAfdrDecl); + setHadAfdrDecl(); + } + attributed.resize(1); + attributed[0] + = lookupCreateElement(parm.type == Param::name + ? parm.token + : syntax().rniReservedName(Syntax::ReservedName(parm.type - Param::indicatedReservedName))); + } + } + return 1; +} + +Boolean Parser::parseDeclaredValue(unsigned declInputLevel, + Boolean isNotation, + Param &parm, + Owner &declaredValue) +{ + static Param::Type declaredValues[] = { + Param::reservedName + Syntax::rCDATA, + Param::reservedName + Syntax::rENTITY, + Param::reservedName + Syntax::rENTITIES, + Param::reservedName + Syntax::rID, + Param::reservedName + Syntax::rIDREF, + Param::reservedName + Syntax::rIDREFS, + Param::reservedName + Syntax::rNAME, + Param::reservedName + Syntax::rNAMES, + Param::reservedName + Syntax::rNMTOKEN, + Param::reservedName + Syntax::rNMTOKENS, + Param::reservedName + Syntax::rNUMBER, + Param::reservedName + Syntax::rNUMBERS, + Param::reservedName + Syntax::rNUTOKEN, + Param::reservedName + Syntax::rNUTOKENS, + Param::reservedName + Syntax::rNOTATION, + Param::nameTokenGroup, + Param::reservedName + Syntax::rDATA + }; + static AllowedParams allowDeclaredValue(declaredValues, + SIZEOF(declaredValues) - 1); + static AllowedParams allowDeclaredValueData(declaredValues, + SIZEOF(declaredValues)); + if (!parseParam(sd().www() ? allowDeclaredValueData : allowDeclaredValue, + declInputLevel, parm)) + return 0; + enum { asDataAttribute = 01, asLinkAttribute = 02 }; + unsigned allowedFlags = asDataAttribute|asLinkAttribute; + switch (parm.type) { + case Param::reservedName + Syntax::rCDATA: + declaredValue = new CdataDeclaredValue; + break; + case Param::reservedName + Syntax::rENTITY: + declaredValue = new EntityDeclaredValue(0); + allowedFlags = asLinkAttribute; + break; + case Param::reservedName + Syntax::rENTITIES: + declaredValue = new EntityDeclaredValue(1); + allowedFlags = asLinkAttribute; + break; + case Param::reservedName + Syntax::rID: + declaredValue = new IdDeclaredValue; + allowedFlags = 0; + break; + case Param::reservedName + Syntax::rIDREF: + declaredValue = new IdrefDeclaredValue(0); + allowedFlags = 0; + break; + case Param::reservedName + Syntax::rIDREFS: + declaredValue = new IdrefDeclaredValue(1); + allowedFlags = 0; + break; + case Param::reservedName + Syntax::rNAME: + declaredValue + = new TokenizedDeclaredValue(TokenizedDeclaredValue::name, 0); + if (options().warnNameDeclaredValue) + message(ParserMessages::nameDeclaredValue); + break; + case Param::reservedName + Syntax::rNAMES: + declaredValue + = new TokenizedDeclaredValue(TokenizedDeclaredValue::name, 1); + if (options().warnNameDeclaredValue) + message(ParserMessages::nameDeclaredValue); + break; + case Param::reservedName + Syntax::rNMTOKEN: + declaredValue + = new TokenizedDeclaredValue(TokenizedDeclaredValue::nameToken, 0); + break; + case Param::reservedName + Syntax::rNMTOKENS: + declaredValue + = new TokenizedDeclaredValue(TokenizedDeclaredValue::nameToken, 1); + break; + case Param::reservedName + Syntax::rNUMBER: + declaredValue + = new TokenizedDeclaredValue(TokenizedDeclaredValue::number, 0); + if (options().warnNumberDeclaredValue) + message(ParserMessages::numberDeclaredValue); + break; + case Param::reservedName + Syntax::rNUMBERS: + declaredValue + = new TokenizedDeclaredValue(TokenizedDeclaredValue::number, 1); + if (options().warnNumberDeclaredValue) + message(ParserMessages::numberDeclaredValue); + break; + case Param::reservedName + Syntax::rNUTOKEN: + declaredValue + = new TokenizedDeclaredValue(TokenizedDeclaredValue::numberToken, 0); + if (options().warnNutokenDeclaredValue) + message(ParserMessages::nutokenDeclaredValue); + break; + case Param::reservedName + Syntax::rNUTOKENS: + declaredValue + = new TokenizedDeclaredValue(TokenizedDeclaredValue::numberToken, 1); + if (options().warnNutokenDeclaredValue) + message(ParserMessages::nutokenDeclaredValue); + break; + case Param::reservedName + Syntax::rNOTATION: + { + static AllowedParams allowNameGroup(Param::nameGroup); + if (!parseParam(allowNameGroup, declInputLevel, parm)) + return 0; + Vector group(parm.nameTokenVector.size()); + for (size_t i = 0; i < group.size(); i++) + parm.nameTokenVector[i].name.swap(group[i]); + declaredValue = new NotationDeclaredValue(group); + allowedFlags = 0; + } + break; + case Param::nameTokenGroup: + { + Vector group(parm.nameTokenVector.size()); + Vector origGroup(parm.nameTokenVector.size()); + for (size_t i = 0; i < group.size(); i++) { + parm.nameTokenVector[i].name.swap(group[i]); + parm.nameTokenVector[i].origName.swap(origGroup[i]); + } + GroupDeclaredValue *grpVal = new NameTokenGroupDeclaredValue(group); + grpVal->setOrigAllowedValues(origGroup); + declaredValue = grpVal; + } + break; + case Param::reservedName + Syntax::rDATA: + { + if (!parseParam(allowName, declInputLevel, parm)) + return 0; + Ptr notation(lookupCreateNotation(parm.token)); + static AllowedParams allowDsoSilentValue(Param::dso, Param::silent); + AttributeList attributes(notation->attributeDef()); + if (parseParam(allowDsoSilentValue, declInputLevel, parm) + && parm.type == Param::dso) { + if (attributes.size() == 0 && !sd().www()) + message(ParserMessages::notationNoAttributes, + StringMessageArg(notation->name())); + Boolean netEnabling; + Ptr newAttDef; + if (!parseAttributeSpec(asMode, attributes, netEnabling, newAttDef)) + return 0; + if (!newAttDef.isNull()) { + newAttDef->setIndex(defDtd().allocAttributeDefinitionListIndex()); + notation->setAttributeDef(newAttDef); + } + if (attributes.nSpec() == 0) + message(ParserMessages::emptyDataAttributeSpec); + } + else { + attributes.finish(*this); + // unget the first token of the default value + currentInput()->ungetToken(); + } + ConstPtr nt(notation.pointer()); + declaredValue = new DataDeclaredValue(nt, attributes); + } + break; + default: + CANNOT_HAPPEN(); + } + if (isNotation) { + if (!(allowedFlags & asDataAttribute)) + message(ParserMessages::dataAttributeDeclaredValue); + } + else if (haveDefLpd() && !isNotation && !(allowedFlags & asLinkAttribute)) + message(ParserMessages::linkAttributeDeclaredValue); + return 1; +} + +Boolean Parser::parseDefaultValue(unsigned declInputLevel, + Boolean isNotation, + Param &parm, + const StringC &attributeName, + Owner &declaredValue, + Owner &def, + Boolean &anyCurrent) +{ + // default value + static AllowedParams + allowDefaultValue(Param::indicatedReservedName + Syntax::rFIXED, + Param::indicatedReservedName + Syntax::rREQUIRED, + Param::indicatedReservedName + Syntax::rCURRENT, + Param::indicatedReservedName + Syntax::rCONREF, + Param::indicatedReservedName + Syntax::rIMPLIED, + Param::attributeValue, + Param::attributeValueLiteral); + static AllowedParams + allowTokenDefaultValue(Param::indicatedReservedName + Syntax::rFIXED, + Param::indicatedReservedName + Syntax::rREQUIRED, + Param::indicatedReservedName + Syntax::rCURRENT, + Param::indicatedReservedName + Syntax::rCONREF, + Param::indicatedReservedName + Syntax::rIMPLIED, + Param::attributeValue, + Param::tokenizedAttributeValueLiteral); + if (!parseParam(declaredValue->tokenized() + ? allowTokenDefaultValue + : allowDefaultValue, declInputLevel, parm)) + return 0; + switch (parm.type) { + case Param::indicatedReservedName + Syntax::rFIXED: + { + static AllowedParams allowValue(Param::attributeValue, + Param::attributeValueLiteral); + static AllowedParams + allowTokenValue(Param::attributeValue, + Param::tokenizedAttributeValueLiteral); + if (!parseParam(declaredValue->tokenized() + ? allowTokenValue + : allowValue, declInputLevel, parm)) + return 0; + unsigned specLength = 0; + AttributeValue *value = declaredValue->makeValue(parm.literalText, + *this, + attributeName, + specLength); + if (declaredValue->isId()) + message(ParserMessages::idDeclaredValue); + def = new FixedAttributeDefinition(attributeName, + declaredValue.extract(), + value); + } + break; + case Param::attributeValue: + if (options().warnAttributeValueNotLiteral) + message(ParserMessages::attributeValueNotLiteral); + // fall through + case Param::attributeValueLiteral: + case Param::tokenizedAttributeValueLiteral: + { + unsigned specLength = 0; + AttributeValue *value = declaredValue->makeValue(parm.literalText, + *this, + attributeName, + specLength); + if (declaredValue->isId()) + message(ParserMessages::idDeclaredValue); + def = new DefaultAttributeDefinition(attributeName, + declaredValue.extract(), + value); + } + break; + case Param::indicatedReservedName + Syntax::rREQUIRED: + def = new RequiredAttributeDefinition(attributeName, + declaredValue.extract()); + break; + case Param::indicatedReservedName + Syntax::rCURRENT: + anyCurrent = 1; + if (declaredValue->isId()) + message(ParserMessages::idDeclaredValue); + def = new CurrentAttributeDefinition(attributeName, + declaredValue.extract(), + defDtd().allocCurrentAttributeIndex()); + if (isNotation) + message(ParserMessages::dataAttributeDefaultValue); + else if (haveDefLpd()) + message(ParserMessages::linkAttributeDefaultValue); + else if (options().warnCurrent) + message(ParserMessages::currentAttribute); + break; + case Param::indicatedReservedName + Syntax::rCONREF: + if (declaredValue->isId()) + message(ParserMessages::idDeclaredValue); + if (declaredValue->isNotation()) + message(ParserMessages::notationConref); + def = new ConrefAttributeDefinition(attributeName, + declaredValue.extract()); + if (isNotation) + message(ParserMessages::dataAttributeDefaultValue); + else if (haveDefLpd()) + message(ParserMessages::linkAttributeDefaultValue); + else if (options().warnConref) + message(ParserMessages::conrefAttribute); + break; + case Param::indicatedReservedName + Syntax::rIMPLIED: + def = new ImpliedAttributeDefinition(attributeName, + declaredValue.extract()); + break; + default: + CANNOT_HAPPEN(); + } + return 1; +} + +// parm contains either system or public + +Boolean Parser::parseExternalId(const AllowedParams &sysidAllow, + const AllowedParams &endAllow, + Boolean maybeWarnMissingSystemId, + unsigned declInputLevel, + Param &parm, + ExternalId &id) +{ + id.setLocation(currentLocation()); + if (parm.type == Param::reservedName + Syntax::rPUBLIC) { + static AllowedParams allowMinimumLiteral(Param::minimumLiteral); + if (!parseParam(allowMinimumLiteral, declInputLevel, parm)) + return 0; + const MessageType1 *fpierr; + const MessageType1 *urnerr; + switch (id.setPublic(parm.literalText, sd().internalCharset(), + syntax().space(), fpierr, urnerr)) { + case PublicId::fpi: + { + PublicId::TextClass textClass; + if (sd().formal() && id.publicId()->getTextClass(textClass) && textClass == PublicId::SD) + message(ParserMessages::wwwRequired); + if (sd().urn() && !sd().formal()) + message(*urnerr, StringMessageArg(*id.publicIdString())); + } + break; + case PublicId::urn: + if (sd().formal() && !sd().urn()) + message(*fpierr, StringMessageArg(*id.publicIdString())); + break; + case PublicId::informal: + if (sd().formal()) + message(*fpierr, StringMessageArg(*id.publicIdString())); + if (sd().urn()) + message(*urnerr, StringMessageArg(*id.publicIdString())); + break; + } + } + if (!parseParam(sysidAllow, declInputLevel, parm)) + return 0; + if (parm.type == Param::systemIdentifier) { + id.setSystem(parm.literalText); + if (!parseParam(endAllow, declInputLevel, parm)) + return 0; + } + else if (options().warnMissingSystemId && maybeWarnMissingSystemId) + message(ParserMessages::missingSystemId); + return 1; +} + +Boolean Parser::parseNotationDecl() +{ + unsigned declInputLevel = inputLevel(); + Param parm; + if (!parseParam(allowName, declInputLevel, parm)) + return 0; + Notation *nt = lookupCreateNotation(parm.token); + if (validate() && nt->defined()) + message(ParserMessages::duplicateNotationDeclaration, + StringMessageArg(parm.token)); + AttributeDefinitionList *atts = nt->attributeDef().pointer(); + if (atts) + for (size_t i = 0; i < atts->size(); i++) { + Boolean implicit; + if (atts->def(i)->isSpecified(implicit) && implicit) { + message(ParserMessages::notationMustNotBeDeclared, + StringMessageArg(parm.token)); + break; + } + } + static AllowedParams + allowPublicSystem(Param::reservedName + Syntax::rPUBLIC, + Param::reservedName + Syntax::rSYSTEM); + if (!parseParam(allowPublicSystem, declInputLevel, parm)) + return 0; + + + static AllowedParams allowSystemIdentifierMdc(Param::systemIdentifier, + Param::mdc); + + ExternalId id; + if (!parseExternalId(allowSystemIdentifierMdc, allowMdc, + parm.type == Param::reservedName + Syntax::rSYSTEM, + declInputLevel, parm, id)) + return 0; + if (validate() && sd().formal()) { + PublicId::TextClass textClass; + const PublicId *publicId = id.publicId(); + if (publicId + && publicId->getTextClass(textClass) + && textClass != PublicId::NOTATION) + message(ParserMessages::notationIdentifierTextClass); + } + if (!nt->defined()) { + nt->setExternalId(id, markupLocation()); + nt->generateSystemId(*this); + if (currentMarkup()) + eventHandler().notationDecl(new (eventAllocator()) + NotationDeclEvent(nt, markupLocation(), + currentMarkup())); + } + return 1; +} + +Boolean Parser::parseEntityDecl() +{ + unsigned declInputLevel = inputLevel(); + Param parm; + + static AllowedParams + allowEntityNamePero(Param::entityName, + Param::indicatedReservedName + Syntax::rDEFAULT, + Param::pero); + + if (!parseParam(allowEntityNamePero, declInputLevel, parm)) + return 0; + + Entity::DeclType declType; + StringC name; // empty for default entity + if (parm.type == Param::pero) { + declType = Entity::parameterEntity; + static AllowedParams allowParamEntityName(Param::paramEntityName); + if (!parseParam(allowParamEntityName, declInputLevel, parm)) + return 0; + parm.token.swap(name); + } + else { + declType = Entity::generalEntity; + if (parm.type == Param::entityName) + parm.token.swap(name); + else if (sd().implydefEntity()) + message(ParserMessages::implydefEntityDefault); + else if (options().warnDefaultEntityDecl) + message(ParserMessages::defaultEntityDecl); + } + static AllowedParams + allowEntityTextType(Param::paramLiteral, + Param::reservedName + Syntax::rCDATA, + Param::reservedName + Syntax::rSDATA, + Param::reservedName + Syntax::rPI, + Param::reservedName + Syntax::rSTARTTAG, + Param::reservedName + Syntax::rENDTAG, + Param::reservedName + Syntax::rMS, + Param::reservedName + Syntax::rMD, + Param::reservedName + Syntax::rSYSTEM, + Param::reservedName + Syntax::rPUBLIC); + + if (!parseParam(allowEntityTextType, declInputLevel, parm)) + return 0; + Location typeLocation(currentLocation()); + Entity::DataType dataType = Entity::sgmlText; + InternalTextEntity::Bracketed bracketed = InternalTextEntity::none; + switch (parm.type) { + case Param::reservedName + Syntax::rSYSTEM: + case Param::reservedName + Syntax::rPUBLIC: + return parseExternalEntity(name, declType, declInputLevel, parm); + case Param::reservedName + Syntax::rCDATA: + dataType = Entity::cdata; + if (options().warnInternalCdataEntity) + message(ParserMessages::internalCdataEntity); + break; + case Param::reservedName + Syntax::rSDATA: + dataType = Entity::sdata; + if (options().warnInternalSdataEntity) + message(ParserMessages::internalSdataEntity); + break; + case Param::reservedName + Syntax::rPI: + dataType = Entity::pi; + if (options().warnPiEntity) + message(ParserMessages::piEntity); + break; + case Param::reservedName + Syntax::rSTARTTAG: + bracketed = InternalTextEntity::starttag; + if (options().warnBracketEntity) + message(ParserMessages::bracketEntity); + break; + case Param::reservedName + Syntax::rENDTAG: + bracketed = InternalTextEntity::endtag; + if (options().warnBracketEntity) + message(ParserMessages::bracketEntity); + break; + case Param::reservedName + Syntax::rMS: + bracketed = InternalTextEntity::ms; + if (options().warnBracketEntity) + message(ParserMessages::bracketEntity); + break; + case Param::reservedName + Syntax::rMD: + bracketed = InternalTextEntity::md; + if (options().warnBracketEntity) + message(ParserMessages::bracketEntity); + break; + } + if (parm.type != Param::paramLiteral) { + if (!parseParam(allowParamLiteral, declInputLevel, parm)) + return 0; + } + Text text; + parm.literalText.swap(text); + if (bracketed != InternalTextEntity::none) { + StringC open; + StringC close; + switch (bracketed) { + case InternalTextEntity::starttag: + open = instanceSyntax().delimGeneral(Syntax::dSTAGO); + close = instanceSyntax().delimGeneral(Syntax::dTAGC); + break; + case InternalTextEntity::endtag: + open = instanceSyntax().delimGeneral(Syntax::dETAGO); + close = instanceSyntax().delimGeneral(Syntax::dTAGC); + break; + case InternalTextEntity::ms: { + const Syntax &syn = + (declType == Entity::parameterEntity) ? syntax() : instanceSyntax(); + open = syn.delimGeneral(Syntax::dMDO); + open += syn.delimGeneral(Syntax::dDSO); + close = syn.delimGeneral(Syntax::dMSC); + close += syn.delimGeneral(Syntax::dMDC); + break; + } + case InternalTextEntity::md: { + const Syntax &syn = + (declType == Entity::parameterEntity) ? syntax() : instanceSyntax(); + open = syn.delimGeneral(Syntax::dMDO); + close = syn.delimGeneral(Syntax::dMDC); + break; + } + default: + CANNOT_HAPPEN(); + } + text.insertChars(open, Location(new BracketOrigin(typeLocation, + BracketOrigin::open), + 0)); + text.addChars(close, Location(new BracketOrigin(typeLocation, + BracketOrigin::close), + 0)); + if (text.size() > syntax().litlen() + && text.size() - open.size() - close.size() <= syntax().litlen()) + message(ParserMessages::bracketedLitlen, + NumberMessageArg(syntax().litlen())); + } + if (!parseParam(allowMdc, declInputLevel, parm)) + return 0; + if (declType == Entity::parameterEntity + && (dataType == Entity::cdata || dataType == Entity::sdata)) { + message(ParserMessages::internalParameterDataEntity, + StringMessageArg(name)); + return 1; + } + Ptr entity; + switch (dataType) { + case Entity::cdata: + entity = new InternalCdataEntity(name, markupLocation(), text); + break; + case Entity::sdata: + entity = new InternalSdataEntity(name, markupLocation(), text); + break; + case Entity::pi: + entity = new PiEntity(name, declType, markupLocation(), text); + break; + case Entity::sgmlText: + entity = new InternalTextEntity(name, declType, markupLocation(), text, bracketed); + break; + default: + CANNOT_HAPPEN(); + break; + } + maybeDefineEntity(entity); + return 1; +} + +Boolean Parser::parseExternalEntity(StringC &name, + Entity::DeclType declType, + unsigned declInputLevel, + Param &parm) +{ + static AllowedParams + allowSystemIdentifierEntityTypeMdc(Param::systemIdentifier, + Param::reservedName + Syntax::rSUBDOC, + Param::reservedName + Syntax::rCDATA, + Param::reservedName + Syntax::rSDATA, + Param::reservedName + Syntax::rNDATA, + Param::mdc); + static AllowedParams + allowEntityTypeMdc(Param::reservedName + Syntax::rSUBDOC, + Param::reservedName + Syntax::rCDATA, + Param::reservedName + Syntax::rSDATA, + Param::reservedName + Syntax::rNDATA, + Param::mdc); + + ExternalId id; + if (!parseExternalId(allowSystemIdentifierEntityTypeMdc, allowEntityTypeMdc, + 1, declInputLevel, parm, id)) + return 0; + if (parm.type == Param::mdc) { + maybeDefineEntity(new ExternalTextEntity(name, declType, markupLocation(), + id)); + return 1; + } + Ptr entity; + if (parm.type == Param::reservedName + Syntax::rSUBDOC) { + if (sd().subdoc() == 0) + message(ParserMessages::subdocEntity, StringMessageArg(name)); + if (!parseParam(allowMdc, declInputLevel, parm)) + return 0; + entity = new SubdocEntity(name, markupLocation(), id); + } + else { + Entity::DataType dataType; + switch (parm.type) { + case Param::reservedName + Syntax::rCDATA: + dataType = Entity::cdata; + if (options().warnExternalCdataEntity) + message(ParserMessages::externalCdataEntity); + break; + case Param::reservedName + Syntax::rSDATA: + dataType = Entity::sdata; + if (options().warnExternalSdataEntity) + message(ParserMessages::externalSdataEntity); + break; + case Param::reservedName + Syntax::rNDATA: + dataType = Entity::ndata; + break; + default: + CANNOT_HAPPEN(); + } + if (!parseParam(allowName, declInputLevel, parm)) + return 0; + Ptr notation(lookupCreateNotation(parm.token)); + if (!parseParam(allowDsoMdc, declInputLevel, parm)) + return 0; + AttributeList attributes(notation->attributeDef()); + if (parm.type == Param::dso) { + if (attributes.size() == 0 && !sd().www()) + message(ParserMessages::notationNoAttributes, + StringMessageArg(notation->name())); + Boolean netEnabling; + Ptr newAttDef; + if (!parseAttributeSpec(asMode, attributes, netEnabling, newAttDef)) + return 0; + if (!newAttDef.isNull()) { + newAttDef->setIndex(defDtd().allocAttributeDefinitionListIndex()); + notation->setAttributeDef(newAttDef); + } + if (attributes.nSpec() == 0) + message(ParserMessages::emptyDataAttributeSpec); + if (!parseParam(allowMdc, declInputLevel, parm)) + return 0; + } + else + attributes.finish(*this); + entity = new ExternalDataEntity(name, dataType, markupLocation(), id, + notation, attributes, + declType == Entity::parameterEntity + ? Entity::parameterEntity + : Entity::generalEntity); + } + if (declType == Entity::parameterEntity && !sd().www()) { + message(ParserMessages::externalParameterDataSubdocEntity, + StringMessageArg(name)); + return 1; + } + maybeDefineEntity(entity); + return 1; +} + +Notation *Parser::lookupCreateNotation(const StringC &name) +{ + Ptr nt = defDtd().lookupNotation(name); + if (nt.isNull()) { + nt = new Notation(name, defDtd().namePointer(), defDtd().isBase()); + defDtd().insertNotation(nt); + } + return nt.pointer(); +} + +void Parser::maybeDefineEntity(const Ptr &entity) +{ + Dtd &dtd = defDtd(); + if (haveDefLpd()) + entity->setDeclIn(dtd.namePointer(), + dtd.isBase(), + defLpd().namePointer(), + defLpd().active()); + else + entity->setDeclIn(dtd.namePointer(), dtd.isBase()); + Boolean ignored = 0; + if (entity->name().size() == 0) { + const Entity *oldEntity = dtd.defaultEntity().pointer(); + if (oldEntity == 0 + || (!oldEntity->declInActiveLpd() && entity->declInActiveLpd())) + dtd.setDefaultEntity(entity, *this); + else { + ignored = 1; + if (options().warnDuplicateEntity) + message(ParserMessages::duplicateEntityDeclaration, + StringMessageArg(syntax().rniReservedName(Syntax::rDEFAULT))); + } + } + else { + Ptr oldEntity = dtd.insertEntity(entity); + if (oldEntity.isNull()) + entity->generateSystemId(*this); + else if (oldEntity->defaulted()) { + dtd.insertEntity(entity, 1); + message(ParserMessages::defaultedEntityDefined, + StringMessageArg(entity->name())); + entity->generateSystemId(*this); + } + else { + if (entity->declInActiveLpd() && !oldEntity->declInActiveLpd()) { + dtd.insertEntity(entity, 1); + entity->generateSystemId(*this); + } + else { + ignored = 1; + if (options().warnDuplicateEntity) + message(entity->declType() == Entity::parameterEntity + ? ParserMessages::duplicateParameterEntityDeclaration + : ParserMessages::duplicateEntityDeclaration, + StringMessageArg(entity->name())); + } + } + } + if (currentMarkup()) + eventHandler().entityDecl(new (eventAllocator()) + EntityDeclEvent(entity, ignored, + markupLocation(), + currentMarkup())); +} + +Boolean Parser::parseShortrefDecl() +{ + if (!defDtd().isBase()) + message(ParserMessages::shortrefOnlyInBaseDtd); + + unsigned declInputLevel = inputLevel(); + Param parm; + + if (!parseParam(allowName, declInputLevel, parm)) + return 0; + ShortReferenceMap *map = lookupCreateMap(parm.token); + int valid = 1; + if (map->defined()) { + message(ParserMessages::duplicateShortrefDeclaration, + StringMessageArg(parm.token), + map->defLocation()); + valid = 0; + } + else + map->setDefLocation(markupLocation()); + if (!parseParam(allowParamLiteral, declInputLevel, parm)) + return 0; + Vector vec; + do { + StringC delim(parm.literalText.string()); + instanceSyntax().generalSubstTable()->subst(delim); + size_t srIndex; + if (!defDtd().shortrefIndex(delim, instanceSyntax(), srIndex)) { + message(ParserMessages::unknownShortrefDelim, + StringMessageArg(prettifyDelim(delim))); + valid = 0; + } + static AllowedParams allowEntityName(Param::entityName); + if (!parseParam(allowEntityName, declInputLevel, parm)) + return 0; + if (valid) { + if (srIndex >= vec.size()) + vec.resize(srIndex + 1); + if (vec[srIndex].size() > 0) { + message(ParserMessages::delimDuplicateMap, + StringMessageArg(prettifyDelim(delim))); + valid = 0; + } + else + parm.token.swap(vec[srIndex]); + } + static AllowedParams allowParamLiteralMdc(Param::paramLiteral, Param::mdc); + if (!parseParam(allowParamLiteralMdc, declInputLevel, parm)) + return 0; + } while (parm.type != Param::mdc); + if (valid) { + map->setNameMap(vec); + if (currentMarkup()) + eventHandler().shortrefDecl(new (eventAllocator()) + ShortrefDeclEvent(map, + currentDtdPointer(), + markupLocation(), + currentMarkup())); + } + return 1; +} + +StringC Parser::prettifyDelim(const StringC &delim) +{ + StringC prettyDelim; + for (size_t i = 0; i < delim.size(); i++) { + const StringC *nameP; + if (syntax().charFunctionName(delim[i], nameP)) { + prettyDelim += syntax().delimGeneral(Syntax::dCRO); + prettyDelim += *nameP; + prettyDelim += syntax().delimGeneral(Syntax::dREFC); + } + else + prettyDelim += delim[i]; + } + return prettyDelim; +} + +ShortReferenceMap *Parser::lookupCreateMap(const StringC &name) +{ + ShortReferenceMap *map = defDtd().lookupShortReferenceMap(name); + if (!map) { + map = new ShortReferenceMap(name); + defDtd().insertShortReferenceMap(map); + } + return map; +} + +Boolean Parser::parseUsemapDecl() +{ + if (!inInstance() && !defDtd().isBase()) + message(ParserMessages::usemapOnlyInBaseDtd); + + unsigned declInputLevel = inputLevel(); + Param parm; + static AllowedParams + allowNameEmpty(Param::name, + Param::indicatedReservedName + Syntax::rEMPTY); + if (!parseParam(allowNameEmpty, declInputLevel, parm)) + return 0; + const ShortReferenceMap *map; + if (parm.type == Param::name) { + if (inInstance()) { + map = currentDtd().lookupShortReferenceMap(parm.token); + if (!map) + message(ParserMessages::undefinedShortrefMapInstance, + StringMessageArg(parm.token)); + } + else { + ShortReferenceMap *tem = lookupCreateMap(parm.token); + tem->setUsed(); + map = tem; + } + } + else + map = &theEmptyMap; + static AllowedParams + allowNameNameGroupMdc(Param::name, Param::nameGroup, Param::mdc); + if (!parseParam(allowNameNameGroupMdc, declInputLevel, parm)) + return 0; + if (parm.type != Param::mdc) { + if (inInstance()) { + message(ParserMessages::usemapAssociatedElementTypeInstance); + if (!parseParam(allowMdc, declInputLevel, parm)) + return 0; + } + else { + Vector v; + if (parm.type == Param::name) { + ElementType *e = lookupCreateElement(parm.token); + v.push_back(e); + if (!e->map()) + e->setMap(map); + } + else { + v.resize(parm.nameTokenVector.size()); + for (size_t i = 0; i < parm.nameTokenVector.size(); i++) { + ElementType *e + = lookupCreateElement(parm.nameTokenVector[i].name); + v[i] = e; + if (!e->map()) + e->setMap(map); + } + } + if (!parseParam(allowMdc, declInputLevel, parm)) + return 0; + if (currentMarkup()) + eventHandler().usemap(new (eventAllocator()) + UsemapEvent(map, v, + currentDtdPointer(), + markupLocation(), + currentMarkup())); + } + } + else { + if (!inInstance()) + message(ParserMessages::usemapAssociatedElementTypeDtd); + else if (map) { + if (map != &theEmptyMap && !map->defined()) + message(ParserMessages::undefinedShortrefMapInstance, + StringMessageArg(map->name())); + else { + if (currentMarkup()) { + Vector v; + eventHandler().usemap(new (eventAllocator()) + UsemapEvent(map, v, + currentDtdPointer(), + markupLocation(), + currentMarkup())); + } + currentElement().setMap(map); + } + } + } + return 1; +} + +Boolean Parser::parseDoctypeDeclStart() +{ + if (hadDtd() && !sd().concur() && !sd().explicitLink()) + message(ParserMessages::multipleDtds); + if (hadLpd()) + message(ParserMessages::dtdAfterLpd); + unsigned declInputLevel = inputLevel(); + Param parm; + static AllowedParams + allowImpliedName(Param::indicatedReservedName + Syntax::rIMPLIED, + Param::name); + if (!parseParam(sd().www() ? allowImpliedName : allowName, declInputLevel, parm)) + return 0; + if (parm.type == Param::indicatedReservedName + Syntax::rIMPLIED) { + if (sd().concur() > 0 || sd().explicitLink() > 0) + message(ParserMessages::impliedDoctypeConcurLink); + message(ParserMessages::sorryImpliedDoctype); + return 0; + } + StringC name; + parm.token.swap(name); + if (!lookupDtd(name).isNull()) + message(ParserMessages::duplicateDtd, StringMessageArg(name)); + static AllowedParams + allowPublicSystemDsoMdc(Param::reservedName + Syntax::rPUBLIC, + Param::reservedName + Syntax::rSYSTEM, + Param::dso, + Param::mdc); + if (!parseParam(allowPublicSystemDsoMdc, declInputLevel, parm)) + return 0; + ConstPtr entity; + StringC notation; + EntityDecl::DataType data; + ExternalId id; + if (parm.type == Param::reservedName + Syntax::rPUBLIC + || parm.type == Param::reservedName + Syntax::rSYSTEM) { + static AllowedParams allowSystemIdentifierDsoMdc(Param::systemIdentifier, + Param::dso, Param::mdc); + static AllowedParams + allowSystemIdentifierDsoMdcData(Param::systemIdentifier, + Param::dso, Param::mdc, + Param::reservedName + Syntax::rCDATA, + Param::reservedName + Syntax::rSDATA, + Param::reservedName + Syntax::rNDATA); + static AllowedParams allowDsoMdcData(Param::dso, Param::mdc, + Param::reservedName + Syntax::rCDATA, + Param::reservedName + Syntax::rSDATA, + Param::reservedName + Syntax::rNDATA); + if (!parseExternalId(sd().www() ? allowSystemIdentifierDsoMdcData : + allowSystemIdentifierDsoMdc, + sd().www() ? allowDsoMdcData : allowDsoMdc, + 1, declInputLevel, parm, id)) + return 0; + switch (parm.type) { + case Param::reservedName + Syntax::rCDATA: + data = Entity::cdata; + break; + case Param::reservedName + Syntax::rSDATA: + data = Entity::sdata; + break; + case Param::reservedName + Syntax::rNDATA: + data = Entity::ndata; + break; + default: + data = Entity::sgmlText; + break; + } + if (data == Entity::sgmlText) { + Ptr tem + = new ExternalTextEntity(name, Entity::doctype, markupLocation(), id); + tem->generateSystemId(*this); + entity = tem; + } +#if 0 + eventHandler() + .externalEntityDecl(new (eventAllocator()) + ExternalEntityDeclEvent(entity, 0)); +#endif + else { + // external subset uses some DTD notation + if (!parseParam(allowName, declInputLevel, parm)) + return 0; + parm.token.swap(notation); + if (!parseParam(allowDsoMdc, declInputLevel, parm)) + return 0; + } + } + else + // no external subset specified + if (sd().implydefDoctype()) { + // FIXME this fails for #IMPLIED, since name isn't yet known + Ptr tem + = new ExternalTextEntity(name, Entity::doctype, markupLocation(), id); + tem->generateSystemId(*this); + entity = tem; + } + else if (parm.type == Param::mdc) { + if (sd().implydefElement() == Sd::implydefElementNo) { + message(ParserMessages::noDtdSubset); + enableImplydef(); + } + } + // Discard mdc or dso + if (currentMarkup()) + currentMarkup()->resize(currentMarkup()->size() - 1); + eventHandler().startDtd(new (eventAllocator()) + StartDtdEvent(name, entity, parm.type == Param::dso, + markupLocation(), + currentMarkup())); + startDtd(name); + if (notation.size() > 0) { + // FIXME this case has the wrong entity in the event + // this should be fixed by moving startDtd() call and this code up + ConstPtr nt(lookupCreateNotation(notation)); + + AttributeList attrs(nt->attributeDef()); + attrs.finish(*this); + Ptr tem + = new ExternalDataEntity(name, data, markupLocation(), id, nt, attrs, + Entity::doctype); + tem->generateSystemId(*this); + // FIXME This is a hack; we need the entity to have the doctype name to + // have generateSytemId() work properly, but have an empty name to add + // it as a parameter entity, which is needed to check the notation + StringC entname; + tem->setName(entname); + defDtd().insertEntity(tem); + entity = tem; + } + if (parm.type == Param::mdc) { + // unget the mdc + currentInput()->ungetToken(); + if (entity.isNull()) { + (void)parseDoctypeDeclEnd(); + return 1; + } + // reference the entity + Ptr origin + = EntityOrigin::make(internalAllocator(), entity, currentLocation()); + entity->dsReference(*this, origin); + if (inputLevel() == 1) { // reference failed + (void)parseDoctypeDeclEnd(); + return 1; + } + } + else if (!entity.isNull()) + setDsEntity(entity); + setPhase(declSubsetPhase); + return 1; +} + +void Parser::implyDtd(const StringC &gi) +{ + startMarkup(eventsWanted().wantPrologMarkup(), currentLocation()); +#if 0 + if (currentMarkup()) { + currentMarkup()->addDelim(Syntax::dMDO); + currentMarkup()->addReservedName(Syntax::rDOCTYPE, + syntax().reservedName(Syntax::rDOCTYPE)); + currentMarkup()->addS(syntax().space()); + currentMarkup()->addName(gi.data(), gi.size()); + } +#endif + if (sd().concur() > 0 || sd().explicitLink() > 0 + || (sd().implydefElement() == Sd::implydefElementNo + && !sd().implydefDoctype())) + message(ParserMessages::omittedProlog); + + if ((sd().implydefElement() != Sd::implydefElementNo) && !sd().implydefDoctype()) { + eventHandler().startDtd(new (eventAllocator()) + StartDtdEvent(gi, ConstPtr(), 0, + markupLocation(), + currentMarkup())); + startDtd(gi); + parseDoctypeDeclEnd(1); + return; + } + ExternalId id; + // The null location indicates that this is a fake entity. + Entity *tem = new ExternalTextEntity(gi, Entity::doctype, Location(), id); + ConstPtr entity(tem); + if (sd().implydefDoctype()) + tem->generateSystemId(*this); + else { + // Don't use Entity::generateSystemId because we don't want an error + // if it fails. + StringC str; + if (!entityCatalog().lookup(*entity, syntax(), sd().internalCharset(), + messenger(), str)) { + message(ParserMessages::noDtd); + enableImplydef(); + eventHandler().startDtd(new (eventAllocator()) + StartDtdEvent(gi, ConstPtr(), 0, + markupLocation(), + currentMarkup())); + startDtd(gi); + parseDoctypeDeclEnd(1); + return; + } + id.setEffectiveSystem(str); +#if 0 + if (currentMarkup()) { + currentMarkup()->addS(syntax().space()); + currentMarkup()->addReservedName(Syntax::rSYSTEM, + syntax().reservedName(Syntax::rSYSTEM)); + } +#endif + entity = new ExternalTextEntity(gi, + Entity::doctype, + Location(), + id); + StringC declStr; + declStr += syntax().delimGeneral(Syntax::dMDO); + declStr += syntax().reservedName(Syntax::rDOCTYPE); + declStr += syntax().space(); + declStr += gi; + declStr += syntax().space(); + declStr += syntax().reservedName(Syntax::rSYSTEM); + declStr += syntax().delimGeneral(Syntax::dMDC); + message(ParserMessages::implyingDtd, StringMessageArg(declStr)); + } + Ptr origin + = EntityOrigin::make(internalAllocator(), entity, currentLocation()); + eventHandler().startDtd(new (eventAllocator()) + StartDtdEvent(gi, entity, 0, + markupLocation(), + currentMarkup())); + startDtd(gi); + entity->dsReference(*this, origin); + if (inputLevel() == 1) + parseDoctypeDeclEnd(1); + else + setPhase(declSubsetPhase); +} + +Boolean Parser::parseDoctypeDeclEnd(Boolean fake) +{ + checkDtd(defDtd()); + Ptr tem(defDtdPointer()); + endDtd(); + if (fake) { + startMarkup(eventsWanted().wantPrologMarkup(), currentLocation()); +#if 0 + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dMDC); +#endif + } + else { + startMarkup(eventsWanted().wantPrologMarkup(), currentLocation()); + Param parm; + // End DTD before parsing final param so parameter entity reference + // not allowed between ] and >. + if (!parseParam(allowMdc, inputLevel(), parm)) + return 0; + } + eventHandler().endDtd(new (eventAllocator()) EndDtdEvent(tem, + markupLocation(), + currentMarkup())); +#if 0 + if (fake) { + Char c = syntax().standardFunction(Syntax::fRE); + eventHandler().sSep(new (eventAllocator()) + SSepEvent(&c, 1, Location(), 1)); + } +#endif + return 1; +} + +void Parser::checkDtd(Dtd &dtd) +{ + if (dtd.isBase()) + addNeededShortrefs(dtd, instanceSyntax()); + if (sd().www() || !options().errorAfdr) + addCommonAttributes(dtd); + Dtd::ElementTypeIter elementIter(dtd.elementTypeIter()); + ElementType *p; + ConstPtr def; + int i = 0; + while ((p = elementIter.next()) != 0) { + if (p->definition() == 0) { + if (p->name() == dtd.name()) { + if (validate() && (implydefElement() == Sd::implydefElementNo)) + message(ParserMessages::documentElementUndefined); + } + else if (options().warnUndefinedElement) + message(ParserMessages::dtdUndefinedElement, StringMessageArg(p->name())); + if (def.isNull()) + def = new ElementDefinition(currentLocation(), + size_t(ElementDefinition::undefinedIndex), + ElementDefinition::omitEnd, + ElementDefinition::any, + (implydefElement() != Sd::implydefElementAnyother)); + p->setElementDefinition(def, i++); + } + const ShortReferenceMap *map = p->map(); + if (map != 0 && map != &theEmptyMap && !map->defined()) { + if (validate()) + message(ParserMessages::undefinedShortrefMapDtd, + StringMessageArg(map->name()), + StringMessageArg(p->name())); + p->setMap(0); + } + } + Dtd::ShortReferenceMapIter mapIter(dtd.shortReferenceMapIter()); + int nShortref = dtd.nShortref(); + for (;;) { + ShortReferenceMap *map = mapIter.next(); + if (!map) + break; + Vector > entityMap(nShortref); + for (i = 0; i < nShortref; i++) { + const StringC *entityName = map->entityName(i); + if (entityName) { + ConstPtr entity + = lookupEntity(0, *entityName, map->defLocation(), 0); + if (entity.isNull()) { + setNextLocation(map->defLocation()); + message(ParserMessages::mapEntityUndefined, + StringMessageArg(*entityName), + StringMessageArg(map->name())); + } + else { + if (entity->defaulted() && options().warnDefaultEntityReference) { + setNextLocation(map->defLocation()); + message(ParserMessages::mapDefaultEntity, + StringMessageArg(*entityName), + StringMessageArg(map->name())); + } + entityMap[i] = entity; + } + } + } + map->setEntityMap(entityMap); + if (options().warnUnusedMap && !map->used()) { + setNextLocation(map->defLocation()); + message(ParserMessages::unusedMap, StringMessageArg(map->name())); + } + } + if (options().warnUnusedParam) { + Dtd::ConstEntityIter entityIter(((const Dtd &)dtd).parameterEntityIter()); + for (;;) { + ConstPtr entity(entityIter.next()); + if (entity.isNull()) + break; + if (!entity->used() && !maybeStatusKeyword(*entity)) { + setNextLocation(entity->defLocation()); + message(ParserMessages::unusedParamEntity, + StringMessageArg(entity->name())); + } + } + } + Dtd::ConstEntityIter gEntityIter(((const Dtd &)dtd).generalEntityIter()); + Dtd::ConstEntityIter pEntityIter(((const Dtd &)dtd).parameterEntityIter()); + for (i = 0; i < (sd().www() ? 2 : 1); i++) { + for (;;) { + ConstPtr entity(i == 0 ? gEntityIter.next() : pEntityIter.next()); + if (entity.isNull()) + break; + const ExternalDataEntity *external = entity->asExternalDataEntity(); + if (external) { + Notation *notation = (Notation *)external->notation(); + if (!notation->defined()) { + if (sd().implydefNotation()) { + ExternalId id; + notation->setExternalId(id, Location()); + notation->generateSystemId(*this); + } + else if (validate()) { + setNextLocation(external->defLocation()); + switch (external->declType()) { + case Entity::parameterEntity: + message(ParserMessages::parameterEntityNotationUndefined, + StringMessageArg(notation->name()), + StringMessageArg(external->name())); + break; + case Entity::doctype: + message(ParserMessages::dsEntityNotationUndefined, + StringMessageArg(notation->name())); + break; + default: + message(ParserMessages::entityNotationUndefined, + StringMessageArg(notation->name()), + StringMessageArg(external->name())); + break; + } + } + } + } + } + } + Dtd::NotationIter notationIter(dtd.notationIter()); + for (;;) { + Ptr notation(notationIter.next()); + if (notation.isNull()) + break; + if (!notation->defined() && !notation->attributeDef().isNull()) { + if (sd().implydefNotation()) { + ExternalId id; + notation->setExternalId(id, Location()); + notation->generateSystemId(*this); + } + else if (validate()) + message(ParserMessages::attlistNotationUndefined, + StringMessageArg(notation->name())); + } + } +} + +#if 0 +void Parser::addCommonAttributes(Dtd &dtd) +{ + Ptr commonAdl[2]; + { + ElementType *e = dtd.removeElementType(syntax() + .rniReservedName(Syntax::rALL)); + if (e) { + commonAdl[0] = e->attributeDef(); + delete e; + lookupCreateElement(syntax().rniReservedName(Syntax::rIMPLICIT)); + } + } + { + Ptr allNotation + = dtd.removeNotation(syntax().rniReservedName(Syntax::rALL)); + if (!allNotation.isNull()) { + commonAdl[1] = allNotation->attributeDef(); + lookupCreateNotation(syntax().rniReservedName(Syntax::rIMPLICIT)); + } + } + Dtd::ElementTypeIter elementIter(dtd.elementTypeIter()); + Dtd::NotationIter notationIter(dtd.notationIter()); + Vector doneAdl(dtd.nAttributeDefinitionList(), + PackedBoolean(0)); + for (int isNotation = 0; isNotation < 2; isNotation++) { + if (!commonAdl[isNotation].isNull()) { + doneAdl[commonAdl[isNotation]->index()] = 1; + for (;;) { + Attributed *a; + if (!isNotation) + a = elementIter.next(); + else + a = notationIter.next().pointer(); + if (!a) + break; + Ptr adl = a->attributeDef(); + if (adl.isNull()) + a->setAttributeDef(commonAdl[isNotation]); + else if (!doneAdl[adl->index()]) { + doneAdl[adl->index()] = 1; + for (size_t j = 0; j < commonAdl[isNotation]->size(); j++) { + unsigned tem; + if (!adl->attributeIndex(commonAdl[isNotation]->def(j)->name(), + tem)) + adl->append(commonAdl[isNotation]->def(j)->copy()); + } + } + } + } + } + { + ElementType *e = dtd.removeElementType(syntax() + .rniReservedName(Syntax::rIMPLICIT)); + if (e) + dtd.setImplicitElementAttributeDef(e->attributeDef()); + delete e; + } + { + Ptr n + = dtd.removeNotation(syntax().rniReservedName(Syntax::rIMPLICIT)); + if (!n.isNull()) + dtd.setImplicitNotationAttributeDef(n->attributeDef()); + } +} +#else +void Parser::addCommonAttributes(Dtd &dtd) +{ + // These are #implicit, #all, #notation #implicit, #notation #all + Ptr commonAdl[4]; + { + ElementType *e = lookupCreateElement(syntax() + .rniReservedName(Syntax::rIMPLICIT)); + commonAdl[0] = e->attributeDef(); + e = dtd.removeElementType(syntax().rniReservedName(Syntax::rALL)); + if (e) + commonAdl[1] = e->attributeDef(); + delete e; + } + { + Ptr nt + = lookupCreateNotation(syntax().rniReservedName(Syntax::rIMPLICIT)); + commonAdl[2] = nt->attributeDef(); + nt = dtd.removeNotation(syntax().rniReservedName(Syntax::rALL)); + if (!nt.isNull()) + commonAdl[3] = nt->attributeDef(); + } + Dtd::ElementTypeIter elementIter(dtd.elementTypeIter()); + Dtd::ElementTypeIter element2Iter(dtd.elementTypeIter()); + Dtd::NotationIter notationIter(dtd.notationIter()); + Dtd::NotationIter notation2Iter(dtd.notationIter()); + Vector done1Adl(dtd.nAttributeDefinitionList(), + PackedBoolean(0)); + Vector done2Adl(dtd.nAttributeDefinitionList(), + PackedBoolean(0)); + // we do 2 passes over element types and notations, + // first merging #implicit attributes for implicit element types/notations + // next merging #all attributes for all element types/notations + for (int i = 0; i < 4; i++) { + if (!commonAdl[i].isNull()) { + if (i % 2) + done1Adl[commonAdl[i]->index()] = 1; + else + done2Adl[commonAdl[i]->index()] = 1; + for (;;) { + Boolean skip; + Attributed *a; + switch (i) { + case 0: + { + ElementType *e = elementIter.next(); + a = e; + skip = (e && e->definition()); // don't merge #implicit + // attributes if e is defined + } + break; + case 1: + a = element2Iter.next(); + skip = 0; // always merge #all attributes + break; + case 2: + { + Notation *nt = notationIter.next().pointer(); + a = nt; + skip = (nt && nt->defined()); // don't merge #implicit + // attributes if nt is defined + } + break; + case 3: + a = notation2Iter.next().pointer(); + skip = 0; // always merge #all attributes + break; + default: + CANNOT_HAPPEN(); + } + if (!a) + break; + Ptr adl = a->attributeDef(); + if (adl.isNull()) { + if (!skip) + a->setAttributeDef(commonAdl[i]); + } + else if (((i % 2) && !done1Adl[adl->index()]) + ||(!(i % 2) && !done2Adl[adl->index()])) { + if (i % 2) + done1Adl[adl->index()] = 1; + else + done2Adl[adl->index()] = 1; + if (!skip) + for (size_t j = 0; j < commonAdl[i]->size(); j++) { + unsigned index; + if (!adl->attributeIndex(commonAdl[i]->def(j)->name(), + index)) + adl->append(commonAdl[i]->def(j)->copy()); + else if (i == 2) { + // Give an error if an #ALL data attribute was + // specified and is later redeclared as #IMPLICIT + Boolean implicit; + if (adl->def(index)->isSpecified(implicit) && !implicit) + message(ParserMessages::specifiedAttributeRedeclared, + StringMessageArg(adl->def(index)->name())); + } + } + } + } + } + } + { + ElementType *e = dtd.removeElementType(syntax() + .rniReservedName(Syntax::rIMPLICIT)); + if (e) + dtd.setImplicitElementAttributeDef(e->attributeDef()); + delete e; + } + { + Ptr n + = dtd.removeNotation(syntax().rniReservedName(Syntax::rIMPLICIT)); + if (!n.isNull()) + dtd.setImplicitNotationAttributeDef(n->attributeDef()); + } +} + +#endif + +Boolean Parser::maybeStatusKeyword(const Entity &entity) +{ + const InternalEntity *internal = entity.asInternalEntity(); + if (!internal) + return 0; + const StringC &text = internal->string(); + static const Syntax::ReservedName statusKeywords[] = { + Syntax::rINCLUDE, Syntax::rIGNORE + }; + for (size_t i = 0; i < SIZEOF(statusKeywords); i++) { + const StringC &keyword = instanceSyntax().reservedName(statusKeywords[i]); + size_t j = 0; + while (j < text.size() && instanceSyntax().isS(text[j])) + j++; + size_t k = 0; + while (j < text.size() + && k < keyword.size() + && ((*instanceSyntax().generalSubstTable())[text[j]] + == keyword[k])) + j++, k++; + if (k == keyword.size()) { + while (j < text.size() && instanceSyntax().isS(text[j])) + j++; + if (j == text.size()) + return 1; + } + } + return 0; +} + +Boolean Parser::parseLinktypeDeclStart() +{ + if (baseDtd().isNull()) + message(ParserMessages::lpdBeforeBaseDtd); + unsigned declInputLevel = inputLevel(); + Param parm; + + if (!parseParam(allowName, declInputLevel, parm)) + return 0; + StringC name; + parm.token.swap(name); + if (!lookupDtd(name).isNull()) + message(ParserMessages::duplicateDtdLpd, StringMessageArg(name)); + else if (!lookupLpd(name).isNull()) + message(ParserMessages::duplicateLpd, StringMessageArg(name)); + static AllowedParams + allowSimpleName(Param::indicatedReservedName + Syntax::rSIMPLE, + Param::name); + if (!parseParam(allowSimpleName, declInputLevel, parm)) + return 0; + Boolean simple; + Ptr sourceDtd; + if (parm.type == Param::indicatedReservedName + Syntax::rSIMPLE) { + simple = 1; + sourceDtd = baseDtd(); + if (sourceDtd.isNull()) + sourceDtd = new Dtd(StringC(), 1); + } + else { + simple = 0; + sourceDtd = lookupDtd(parm.token); + if (sourceDtd.isNull()) { + message(ParserMessages::noSuchDtd, StringMessageArg(parm.token)); + sourceDtd = new Dtd(parm.token, 0); + } + } + static AllowedParams + allowImpliedName(Param::indicatedReservedName + Syntax::rIMPLIED, + Param::name); + if (!parseParam(allowImpliedName, declInputLevel, parm)) + return 0; + Ptr resultDtd; + Boolean implied = 0; + if (parm.type == Param::indicatedReservedName + Syntax::rIMPLIED) { + if (simple) { + if (!sd().simpleLink()) + message(ParserMessages::simpleLinkFeature); + } + else { + implied = 1; + if (!sd().implicitLink()) + message(ParserMessages::implicitLinkFeature); + } + } + else { + if (simple) + message(ParserMessages::simpleLinkResultNotImplied); + else { + if (!sd().explicitLink()) + message(ParserMessages::explicitLinkFeature); + resultDtd = lookupDtd(parm.token); + if (resultDtd.isNull()) + message(ParserMessages::noSuchDtd, StringMessageArg(parm.token)); + } + } + static AllowedParams + allowPublicSystemDsoMdc(Param::reservedName + Syntax::rPUBLIC, + Param::reservedName + Syntax::rSYSTEM, + Param::dso, + Param::mdc); + if (!parseParam(allowPublicSystemDsoMdc, declInputLevel, parm)) + return 0; + ConstPtr entity; + if (parm.type == Param::reservedName + Syntax::rPUBLIC + || parm.type == Param::reservedName + Syntax::rSYSTEM) { + static AllowedParams allowSystemIdentifierDsoMdc(Param::systemIdentifier, + Param::dso, Param::mdc); + ExternalId id; + if (!parseExternalId(allowSystemIdentifierDsoMdc, allowDsoMdc, + 1, declInputLevel, parm, id)) + return 0; + Ptr tem + = new ExternalTextEntity(name, Entity::linktype, markupLocation(), id); + tem->generateSystemId(*this); + entity = tem; +#if 0 + eventHandler() + .externalEntityDecl(new (eventAllocator()) + ExternalEntityDeclEvent(entity, 0)); +#endif + } + Ptr lpd; + if (simple) + lpd = new SimpleLpd(name, markupLocation(), sourceDtd); + else + lpd = new ComplexLpd(name, + implied ? Lpd::implicitLink : Lpd::explicitLink, + markupLocation(), + syntax(), + sourceDtd, + resultDtd); + if (!baseDtd().isNull() && shouldActivateLink(name)) { + size_t nActive = nActiveLink(); + if (simple) { + size_t nSimple = 0; + for (size_t i = 0; i < nActive; i++) + if (activeLpd(i).type() == Lpd::simpleLink) + nSimple++; + if (nSimple == sd().simpleLink()) + message(ParserMessages::simpleLinkCount, + NumberMessageArg(sd().simpleLink())); + lpd->activate(); + } + else { + Boolean haveImplicit = 0; + Boolean haveExplicit = 0; + size_t i; + for (i = 0; i < nActive; i++) { + if (activeLpd(i).type() == Lpd::implicitLink) + haveImplicit = 1; + else if (activeLpd(i).type() == Lpd::explicitLink) + haveExplicit = 1; + } + const Dtd *sourceDtd = lpd->sourceDtd().pointer(); + if (implied && haveImplicit) + message(ParserMessages::oneImplicitLink); + else if (sd().explicitLink() <= 1 && sourceDtd != baseDtd().pointer()) + message(sd().explicitLink() == 0 + ? ParserMessages::explicitNoRequiresSourceTypeBase + : ParserMessages::explicit1RequiresSourceTypeBase, + StringMessageArg(lpd->name())); + else if (sd().explicitLink() == 1 && haveExplicit && !implied) + message(ParserMessages::duplicateExplicitChain); + else if (haveExplicit || haveImplicit + || sourceDtd != baseDtd().pointer()) + message(ParserMessages::sorryLink, StringMessageArg(lpd->name())); + else + lpd->activate(); + } + } + // Discard mdc or dso + if (currentMarkup()) + currentMarkup()->resize(currentMarkup()->size() - 1); + eventHandler().startLpd(new (eventAllocator()) + StartLpdEvent(lpd->active(), + name, + entity, + parm.type == Param::dso, + markupLocation(), + currentMarkup())); + startLpd(lpd); + if (parm.type == Param::mdc) { + // unget the mdc + currentInput()->ungetToken(); + if (entity.isNull()) { + message(ParserMessages::noLpdSubset, StringMessageArg(name)); + (void)parseLinktypeDeclEnd(); + return 1; + } + // reference the entity + Ptr origin + = EntityOrigin::make(internalAllocator(), entity, currentLocation()); + entity->dsReference(*this, origin); + if (inputLevel() == 1) { // reference failed + (void)parseLinktypeDeclEnd(); + return 1; + } + } + else if (!entity.isNull()) + setDsEntity(entity); + setPhase(declSubsetPhase); + return 1; +} + +Boolean Parser::parseLinktypeDeclEnd() +{ + + if (defLpd().type() != Lpd::simpleLink) { + if (!defComplexLpd().initialLinkSet()->defined()) + message(ParserMessages::noInitialLinkSet, + StringMessageArg(defLpd().name())); + ComplexLpd::ConstLinkSetIter iter = defComplexLpd().linkSetIter(); + const LinkSet *linkSet; + while ((linkSet = iter.next()) != 0) + if (!linkSet->defined()) + message(ParserMessages::undefinedLinkSet, StringMessageArg(linkSet->name())); + } + ConstPtr tem(defLpdPointer()); + endLpd(); + startMarkup(eventsWanted().wantPrologMarkup(), currentLocation()); + Param parm; + Boolean result = parseParam(allowMdc, inputLevel(), parm); + eventHandler().endLpd(new (eventAllocator()) EndLpdEvent(tem, + markupLocation(), + currentMarkup())); + return result; +} + +Boolean Parser::parseLinkDecl() +{ + return parseLinkSet(0); +} + +Boolean Parser::parseIdlinkDecl() +{ + return parseLinkSet(1); +} + +// This will only get called if we're defining a complex lpd. + +Boolean Parser::parseLinkSet(Boolean idlink) +{ + if (defLpd().type() == Lpd::simpleLink) { + message(idlink ? ParserMessages::idlinkDeclSimple : ParserMessages::linkDeclSimple); + return 0; + } + if (idlink) { + if (defComplexLpd().hadIdLinkSet()) + message(ParserMessages::duplicateIdLinkSet); + else + defComplexLpd().setHadIdLinkSet(); + } + unsigned declInputLevel = inputLevel(); + Param parm; + + Boolean isExplicit = (defLpd().type() == Lpd::explicitLink); + LinkSet *linkSet; + if (idlink) { + if (!parseParam(allowName, declInputLevel, parm)) + return 0; + linkSet = 0; + } + else { + static AllowedParams + allowNameInitial(Param::name, + Param::indicatedReservedName + Syntax::rINITIAL); + if (!parseParam(allowNameInitial, declInputLevel, parm)) + return 0; + if (parm.type == Param::name) + linkSet = lookupCreateLinkSet(parm.token); + else + linkSet = defComplexLpd().initialLinkSet(); + if (linkSet->defined()) + message(ParserMessages::duplicateLinkSet, StringMessageArg(linkSet->name())); + static AllowedParams + allowExplicitLinkRule(Param::name, + Param::nameGroup, + Param::indicatedReservedName + Syntax::rIMPLIED); + if (!parseParam(isExplicit ? allowExplicitLinkRule : allowNameNameGroup, + declInputLevel, parm)) + return 0; + } + + do { + StringC id; + if (idlink) { + parm.token.swap(id); + if (!parseParam(isExplicit ? allowExplicitLinkRuleMdc : allowNameNameGroupMdc, + declInputLevel, parm)) + return 0; + } + if (parm.type == Param::indicatedReservedName + Syntax::rIMPLIED) { + if (!parseParam(allowName, declInputLevel, parm)) + return 0; + Boolean resultImplied; + const ElementType *resultType; + AttributeList resultAttributes; + if (!parseResultElementSpec(declInputLevel, + parm, + idlink, + resultImplied, + resultType, + resultAttributes)) + return 0; + if (resultType) { + const AttributeList *dummy; + if (linkSet->impliedResultAttributes(resultType, dummy)) + message(ParserMessages::duplicateImpliedResult, + StringMessageArg(resultType->name())); + else + linkSet->addImplied(resultType, resultAttributes); + } + } + else { + SourceLinkRule *linkRule = 0; + IdLinkRule idLinkRule; + Ptr linkRuleResource; + if (idlink) + linkRule = &idLinkRule; + else { + linkRuleResource = new SourceLinkRuleResource; + linkRule = linkRuleResource.pointer(); + } + Vector assocElementTypes; + if (parm.type == Param::name) { + assocElementTypes.resize(1); + assocElementTypes[0] = lookupCreateElement(parm.token); + } + else { + assocElementTypes.resize(parm.nameTokenVector.size()); + for (size_t i = 0; i < assocElementTypes.size(); i++) + assocElementTypes[i] + = lookupCreateElement(parm.nameTokenVector[i].name); + } + static AllowedParams + allow2i(Param::indicatedReservedName + Syntax::rUSELINK, + Param::indicatedReservedName + Syntax::rPOSTLINK, + Param::dso, + Param::mdc, + Param::name, + Param::nameGroup); + static AllowedParams + allow2id(Param::indicatedReservedName + Syntax::rUSELINK, + Param::indicatedReservedName + Syntax::rPOSTLINK, + Param::dso, + Param::mdc, + Param::name); + static AllowedParams + allow2e(Param::indicatedReservedName + Syntax::rUSELINK, + Param::indicatedReservedName + Syntax::rPOSTLINK, + Param::dso, + Param::name, + Param::indicatedReservedName + Syntax::rIMPLIED); + + if (!parseParam(isExplicit + ? allow2e + : (idlink ? allow2id : allow2i), declInputLevel, parm)) + return 0; + if (parm.type == Param::indicatedReservedName + Syntax::rUSELINK) { + static AllowedParams + allowLinkSetEmpty(Param::name, + Param::indicatedReservedName + Syntax::rINITIAL, + Param::indicatedReservedName + Syntax::rEMPTY); + if (!parseParam(allowLinkSetEmpty, declInputLevel, parm)) + return 0; + const LinkSet *uselink; + if (parm.type == Param::name) + uselink = lookupCreateLinkSet(parm.token); + else if (parm.type == Param::indicatedReservedName + Syntax::rINITIAL) + uselink = defComplexLpd().initialLinkSet(); + else + uselink = defComplexLpd().emptyLinkSet(); + linkRule->setUselink(uselink); + static AllowedParams + allow3i(Param::indicatedReservedName + Syntax::rPOSTLINK, + Param::dso, + Param::mdc, + Param::name, + Param::nameGroup); + static AllowedParams + allow3id(Param::indicatedReservedName + Syntax::rPOSTLINK, + Param::dso, + Param::mdc, + Param::name); + static AllowedParams + allow3e(Param::indicatedReservedName + Syntax::rPOSTLINK, + Param::dso, + Param::name, + Param::indicatedReservedName + Syntax::rIMPLIED); + + if (!parseParam(isExplicit + ? allow3e + : (idlink ? allow3id : allow3i), + declInputLevel, parm)) + return 0; + } + if (parm.type == Param::indicatedReservedName + Syntax::rPOSTLINK) { + if (!parseParam(allowLinkSetSpec, declInputLevel, parm)) + return 0; + const LinkSet *postlink; + if (parm.type == Param::indicatedReservedName + Syntax::rRESTORE) + linkRule->setPostlinkRestore(); + else { + if (parm.type == Param::name) + postlink = lookupCreateLinkSet(parm.token); + else if (parm.type + == Param::indicatedReservedName + Syntax::rINITIAL) + postlink = defComplexLpd().initialLinkSet(); + else + postlink = defComplexLpd().emptyLinkSet(); + linkRule->setPostlink(postlink); + } + static AllowedParams + allow4i(Param::dso, + Param::mdc, + Param::name, + Param::nameGroup); + static AllowedParams + allow4id(Param::dso, + Param::mdc, + Param::name); + static AllowedParams + allow4e(Param::dso, + Param::name, + Param::indicatedReservedName + Syntax::rIMPLIED); + if (!parseParam(isExplicit + ? allow4e + : (idlink ? allow4id : allow4i), + declInputLevel, parm)) + return 0; + } + AttributeList attributes; + ConstPtr attDef; + for (size_t i = 0; i < assocElementTypes.size(); i++) { + const ElementType *e = assocElementTypes[i]; + if (e) { + if (i == 0) + attDef = defComplexLpd().attributeDef(e); + else if (attDef != defComplexLpd().attributeDef(e)) + message(ParserMessages::assocElementDifferentAtts); + // FIXME recover from this + } + } + attributes.init(attDef); + + if (parm.type == Param::dso) { + Boolean netEnabling; + Ptr newAttDef; + if (!parseAttributeSpec(asMode, attributes, netEnabling, newAttDef)) + return 0; + if (!newAttDef.isNull()) { + newAttDef->setIndex(defComplexLpd().allocAttributeDefinitionListIndex()); + for (size_t i = 0; i < assocElementTypes.size(); i++) { + const ElementType *e = assocElementTypes[i]; + if (e && defComplexLpd().attributeDef(e) == attDef) + defComplexLpd().setAttributeDef(e, newAttDef); + } + } + static AllowedParams + allow5e(Param::name, + Param::indicatedReservedName + Syntax::rIMPLIED); + if (!parseParam(isExplicit + ? allow5e + : (idlink ? allowNameMdc : allowNameNameGroupMdc), + declInputLevel, parm)) + return 0; + } + else + attributes.finish(*this); + linkRule->setLinkAttributes(attributes); + if (isExplicit) { + Boolean resultImplied; + const ElementType *resultType; + AttributeList resultAttributes; + if (!parseResultElementSpec(declInputLevel, + parm, + idlink, + resultImplied, + resultType, + resultAttributes)) + return 0; + if (!resultImplied) + linkRule->setResult(resultType, resultAttributes); + } + // Install the link rule. + if (idlink) { + idLinkRule.setAssocElementTypes(assocElementTypes); + addIdLinkRule(id, idLinkRule); + } + else { + if (!linkSet->defined()) { + for (size_t i = 0; i < assocElementTypes.size(); i++) + if (assocElementTypes[i]) + addLinkRule(linkSet, assocElementTypes[i], linkRuleResource); + } + } + } + } while (parm.type != Param::mdc); + if (linkSet) + linkSet->setDefined(); + if (currentMarkup()) { + if (idlink) + eventHandler().idLinkDecl(new (eventAllocator()) + IdLinkDeclEvent(defComplexLpdPointer(), + markupLocation(), + currentMarkup())); + else + eventHandler().linkDecl(new (eventAllocator()) + LinkDeclEvent(linkSet, + defComplexLpdPointer(), + markupLocation(), + currentMarkup())); + } + return 1; +} + +void Parser::addIdLinkRule(const StringC &id, + IdLinkRule &rule) +{ + IdLinkRuleGroup *group = defComplexLpd().lookupCreateIdLink(id); + size_t nRules = group->nLinkRules(); + if ((nRules == 1 && group->linkRule(0).attributes().nSpec() == 0) + || nRules >= 1 && rule.attributes().nSpec() == 0) + message(ParserMessages::multipleIdLinkRuleAttribute, + StringMessageArg(id)); + group->addLinkRule(rule); +} + +void Parser::addLinkRule(LinkSet *linkSet, + const ElementType *sourceElement, + const ConstPtr &linkRule) +{ + size_t nRules = linkSet->nLinkRules(sourceElement); + if ((nRules == 1 + && linkSet->linkRule(sourceElement, 0).attributes().nSpec() == 0) + || nRules >= 1 && linkRule->attributes().nSpec() == 0) + message(ParserMessages::multipleLinkRuleAttribute, + StringMessageArg(sourceElement->name())); + linkSet->addLinkRule(sourceElement, linkRule); +} + +class ResultAttributeSpecModeSetter { +public: + ResultAttributeSpecModeSetter(ParserState *state) : state_(state) { + state_->setResultAttributeSpecMode(); + } + ~ResultAttributeSpecModeSetter() { clear(); } + void clear() { + if (state_) { + state_->clearResultAttributeSpecMode(); + state_ = 0; + } + } +private: + ParserState *state_; +}; + +Boolean Parser::parseResultElementSpec(unsigned declInputLevel, + Param &parm, + Boolean idlink, + Boolean &implied, + const ElementType *&resultType, + AttributeList &attributes) +{ + if (parm.type == Param::indicatedReservedName + Syntax::rIMPLIED) { + if (!parseParam(idlink ? allowNameMdc : allowExplicitLinkRuleMdc, + declInputLevel, parm)) + return 0; + implied = 1; + } + else { + implied = 0; + ElementType *e = lookupResultElementType(parm.token); + resultType = e; + static AllowedParams + allow(Param::dso, + Param::mdc, + Param::name, + Param::nameGroup, + Param::indicatedReservedName + Syntax::rIMPLIED); + static AllowedParams + allowNameDsoMdc(Param::dso, + Param::mdc, + Param::name); + if (!parseParam(idlink ? allowNameDsoMdc : allow, + declInputLevel, parm)) + return 0; + ConstPtr attDef; + if (e) + attDef = e->attributeDef(); + attributes.init(attDef); + if (parm.type == Param::dso) { + ResultAttributeSpecModeSetter modeSetter(this); + Boolean netEnabling; + Ptr newAttDef; + if (!parseAttributeSpec(asMode, attributes, netEnabling, newAttDef)) + return 0; + if (!newAttDef.isNull()) { + Ptr r(defComplexLpd().resultDtd()); + if (!r.isNull()) { + newAttDef->setIndex(r->allocAttributeDefinitionListIndex()); + if (e) + e->setAttributeDef(newAttDef); + } + } + modeSetter.clear(); + if (attributes.nSpec() == 0) + message(ParserMessages::emptyResultAttributeSpec); + if (!parseParam(idlink ? allowNameMdc : allowExplicitLinkRuleMdc, + declInputLevel, parm)) + return 0; + } + else { + // For entity and notation attributes. + ResultAttributeSpecModeSetter modeSetter(this); + attributes.finish(*this); + modeSetter.clear(); + } + } + return 1; +} + +ElementType *Parser::lookupResultElementType(const StringC &name) +{ + Dtd *dtd = defComplexLpd().resultDtd().pointer(); + if (!dtd) + return 0; + ElementType *e = dtd->lookupElementType(name); + if (!e) + message(ParserMessages::noSuchResultElement, StringMessageArg(name)); + return e; +} + +Boolean Parser::parseUselinkDecl() +{ + unsigned declInputLevel = inputLevel(); + Param parm; + if (!parseParam(allowLinkSetSpec, declInputLevel, parm)) + return 0; + Param parm2; + if (!parseParam(allowName, declInputLevel, parm2)) + return 0; + StringC linkType; + parm2.token.swap(linkType); + if (!parseParam(allowMdc, declInputLevel, parm2)) + return 0; + ConstPtr lpd = lookupLpd(linkType); + if (lpd.isNull()) + message(ParserMessages::uselinkBadLinkType, StringMessageArg(linkType)); + else if (lpd->type() == Lpd::simpleLink) + message(ParserMessages::uselinkSimpleLpd, StringMessageArg(linkType)); + else { + const ComplexLpd *complexLpd = (const ComplexLpd *)lpd.pointer(); + const LinkSet *linkSet; + Boolean restore = 0; + if (parm.type == Param::name) { + linkSet = complexLpd->lookupLinkSet(parm.token); + if (!linkSet) { + message(ParserMessages::uselinkBadLinkSet, + StringMessageArg(complexLpd->name()), + StringMessageArg(parm.token)); + return 1; + } + } + else if (parm.type == Param::indicatedReservedName + Syntax::rINITIAL) + linkSet = complexLpd->initialLinkSet(); + else if (parm.type == Param::indicatedReservedName + Syntax::rEMPTY) + linkSet = complexLpd->emptyLinkSet(); + else { + linkSet = 0; + restore = 1; + } + if (lpd->active()) + eventHandler().uselink(new (eventAllocator()) + UselinkEvent(lpd, linkSet, + restore, markupLocation(), + currentMarkup())); + else + eventHandler().ignoredMarkup(new (eventAllocator()) + IgnoredMarkupEvent(markupLocation(), + currentMarkup())); + } + return 1; +} + +LinkSet *Parser::lookupCreateLinkSet(const StringC &name) +{ + LinkSet *linkSet = defComplexLpd().lookupLinkSet(name); + if (!linkSet) { + linkSet = new LinkSet(name, defComplexLpd().sourceDtd().pointer()); + defComplexLpd().insertLinkSet(linkSet); + } + return linkSet; +} + +Boolean Parser::parseMarkedSectionDeclStart() +{ + if (markedSectionLevel() == syntax().taglvl()) + message(ParserMessages::markedSectionLevel, + NumberMessageArg(syntax().taglvl())); + if (!inInstance() + && options().warnInternalSubsetMarkedSection + && inputLevel() == 1) + message(ParserMessages::internalSubsetMarkedSection); + if (markedSectionSpecialLevel() > 0) { + startMarkedSection(markupLocation()); + if (inInstance() + ? eventsWanted().wantMarkedSections() + : eventsWanted().wantPrologMarkup()) + eventHandler().ignoredChars(new (eventAllocator()) + IgnoredCharsEvent(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation(), + 0)); + + return 1; + } + Boolean discardMarkup; + if (startMarkup(inInstance() + ? eventsWanted().wantMarkedSections() + : eventsWanted().wantPrologMarkup(), + currentLocation())) { + currentMarkup()->addDelim(Syntax::dMDO); + currentMarkup()->addDelim(Syntax::dDSO); + discardMarkup = 0; + } + else if (options().warnInstanceStatusKeywordSpecS && inInstance()) { + startMarkup(1, currentLocation()); + discardMarkup = 1; + } + unsigned declInputLevel = inputLevel(); + static AllowedParams allowStatusDso(Param::dso, + Param::reservedName + Syntax::rCDATA, + Param::reservedName + Syntax::rRCDATA, + Param::reservedName + Syntax::rIGNORE, + Param::reservedName + Syntax::rINCLUDE, + Param::reservedName + Syntax::rTEMP); + Param parm; + MarkedSectionEvent::Status status = MarkedSectionEvent::include; + if (!parseParam(allowStatusDso, declInputLevel, parm)) + return 0; + if (options().warnMissingStatusKeyword && parm.type == Param::dso) + message(ParserMessages::missingStatusKeyword); + while (parm.type != Param::dso) { + switch (parm.type) { + case Param::reservedName + Syntax::rCDATA: + if (status < MarkedSectionEvent::cdata) + status = MarkedSectionEvent::cdata; + break; + case Param::reservedName + Syntax::rRCDATA: + if (status < MarkedSectionEvent::rcdata) + status = MarkedSectionEvent::rcdata; + if (options().warnRcdataMarkedSection) + message(ParserMessages::rcdataMarkedSection); + break; + case Param::reservedName + Syntax::rIGNORE: + if (status < MarkedSectionEvent::ignore) + status = MarkedSectionEvent::ignore; + if (inInstance() && options().warnInstanceIgnoreMarkedSection) + message(ParserMessages::instanceIgnoreMarkedSection); + break; + case Param::reservedName + Syntax::rINCLUDE: + if (inInstance() && options().warnInstanceIncludeMarkedSection) + message(ParserMessages::instanceIncludeMarkedSection); + break; + case Param::reservedName + Syntax::rTEMP: + if (options().warnTempMarkedSection) + message(ParserMessages::tempMarkedSection); + break; + } + if (!parseParam(allowStatusDso, declInputLevel, parm)) + return 0; + if (options().warnMultipleStatusKeyword + && parm.type != Param::dso) + message(ParserMessages::multipleStatusKeyword); + } + // FIXME this disallows + // + // ... + // + // which I think is legal. + + if (inputLevel() > declInputLevel) + message(ParserMessages::parameterEntityNotEnded); + switch (status) { + case MarkedSectionEvent::include: + startMarkedSection(markupLocation()); + break; + case MarkedSectionEvent::cdata: + startSpecialMarkedSection(cmsMode, markupLocation()); + break; + case MarkedSectionEvent::rcdata: + startSpecialMarkedSection(rcmsMode, markupLocation()); + break; + case MarkedSectionEvent::ignore: + startSpecialMarkedSection(imsMode, markupLocation()); + break; + } + if (currentMarkup()) { + if (options().warnInstanceStatusKeywordSpecS && inInstance()) { + Location loc(markupLocation()); + for (MarkupIter iter(*currentMarkup()); iter.valid(); iter.advance(loc, syntaxPointer())) { + if (iter.type() == Markup::s) { + setNextLocation(loc); + message(ParserMessages::instanceStatusKeywordSpecS); + } + } + if (discardMarkup) + startMarkup(0, markupLocation()); + } + eventHandler().markedSectionStart(new (eventAllocator()) + MarkedSectionStartEvent(status, + markupLocation(), + currentMarkup())); + } + return 1; +} + +void Parser::handleMarkedSectionEnd() +{ + if (markedSectionLevel() == 0) + message(ParserMessages::markedSectionEnd); + else { + if (inInstance() + ? eventsWanted().wantMarkedSections() + : eventsWanted().wantPrologMarkup()) { + if (markedSectionSpecialLevel() > 1) + eventHandler().ignoredChars(new (eventAllocator()) + IgnoredCharsEvent(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation(), + 0)); + else { + MarkedSectionEvent::Status status; + switch (currentMode()) { + case cmsMode: + status = MarkedSectionEvent::cdata; + break; + case rcmsMode: + status = MarkedSectionEvent::rcdata; + break; + case imsMode: + status = MarkedSectionEvent::ignore; + break; + default: + status = MarkedSectionEvent::include; + break; + } + startMarkup(1, currentLocation()); + currentMarkup()->addDelim(Syntax::dMSC); + currentMarkup()->addDelim(Syntax::dMDC); + eventHandler().markedSectionEnd(new (eventAllocator()) + MarkedSectionEndEvent(status, + markupLocation(), + currentMarkup())); + } + } + endMarkedSection(); + } +} + +void Parser::emptyCommentDecl() +{ + if (startMarkup(eventsWanted().wantCommentDecls(), currentLocation())) { + currentMarkup()->addDelim(Syntax::dMDO); + currentMarkup()->addDelim(Syntax::dMDC); + eventHandler().commentDecl(new (eventAllocator()) + CommentDeclEvent(markupLocation(), + currentMarkup())); + } + if (options().warnEmptyCommentDecl) + message(ParserMessages::emptyCommentDecl); +} + +Boolean Parser::parseCommentDecl() +{ + if (startMarkup(inInstance() + ? eventsWanted().wantCommentDecls() + : eventsWanted().wantPrologMarkup(), + currentLocation())) + currentMarkup()->addDelim(Syntax::dMDO); + if (!parseComment(comMode)) + return 0; + for (;;) { + Token token = getToken(mdMode); + switch (token) { + case tokenS: + if (currentMarkup()) + currentMarkup()->addS(currentChar()); + if (options().warnCommentDeclS) + message(ParserMessages::commentDeclS); + break; + case tokenCom: + if (!parseComment(comMode)) + return 0; + if (options().warnCommentDeclMultiple) + message(ParserMessages::commentDeclMultiple); + break; + case tokenMdc: + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dMDC); + goto done; + case tokenEe: + message(ParserMessages::declarationLevel); + return 0; + case tokenUnrecognized: + if (reportNonSgmlCharacter()) + break; + // braces to work round Sun C++ 4.0 bug + { + message(ParserMessages::commentDeclarationCharacter, + StringMessageArg(currentToken()), + markupLocation()); + } + return 0; + default: + // braces to work round Sun C++ 4.0 bug + { + message(ParserMessages::commentDeclInvalidToken, + TokenMessageArg(token, mdMode, syntaxPointer(), sdPointer()), + markupLocation()); + } + return 0; + } + } + done: + if (currentMarkup()) + eventHandler().commentDecl(new (eventAllocator()) + CommentDeclEvent(markupLocation(), + currentMarkup())); + return 1; +} + +Boolean Parser::parseAfdrDecl() +{ + unsigned declInputLevel = inputLevel(); + static AllowedParams allowMinimumLiteral(Param::minimumLiteral); + Param parm; + setHadAfdrDecl(); + if (!parseParam(allowMinimumLiteral, declInputLevel, parm)) + return 0; + if (parm.literalText.string() != sd().execToInternal("ISO/IEC 10744:1997")) + message(ParserMessages::afdrVersion, + StringMessageArg(parm.literalText.string())); + if (!parseParam(allowMdc, declInputLevel, parm)) + return 0; + eventHandler().ignoredMarkup(new (eventAllocator()) + IgnoredMarkupEvent(markupLocation(), + currentMarkup())); + return 1; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/parseInstance.cxx b/lib/parseInstance.cxx new file mode 100644 index 0000000..8c326e2 --- /dev/null +++ b/lib/parseInstance.cxx @@ -0,0 +1,1442 @@ +// Copyright (c) 1994 James Clark, 1999 Matthias Clasen +// See the file COPYING for copying permission. + +#include "splib.h" +#include "Parser.h" +#include "ParserMessages.h" +#include "MessageArg.h" +#include "TokenMessageArg.h" +#include "token.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +void Parser::doInstanceStart() +{ + if (cancelled()) { + allDone(); + return; + } + // FIXME check here that we have a valid dtd + compileInstanceModes(); + setPhase(contentPhase); + Token token = getToken(currentMode()); + switch (token) { + case tokenEe: + case tokenStagoNameStart: + case tokenStagoTagc: + case tokenStagoGrpo: + case tokenEtagoNameStart: + case tokenEtagoTagc: + case tokenEtagoGrpo: + break; + default: + if (sd().omittag()) { + unsigned startImpliedCount = 0; + unsigned attributeListIndex = 0; + IList undoList; + IList eventList; + if (!tryImplyTag(currentLocation(), + startImpliedCount, + attributeListIndex, + undoList, + eventList)) + CANNOT_HAPPEN(); + queueElementEvents(eventList); + } + else + message(ParserMessages::instanceStartOmittag); + } + currentInput()->ungetToken(); +} + +void Parser::endInstance() +{ + // Do checking before popping entity stack so that there's a + // current location for error messages. + endAllElements(); + while (markedSectionLevel() > 0) { + message(ParserMessages::unclosedMarkedSection, + currentMarkedSectionStartLocation()); + endMarkedSection(); + } + checkIdrefs(); + popInputStack(); + allDone(); +} + +void Parser::checkIdrefs() +{ + IdTableIter iter(idTableIter()); + Id *id; + while ((id = iter.next()) != 0) { + for (size_t i = 0; i < id->pendingRefs().size(); i++) { + Messenger::setNextLocation(id->pendingRefs()[i]); + message(ParserMessages::missingId, StringMessageArg(id->name())); + } + } +} + +void Parser::doContent() +{ + do { + if (cancelled()) { + allDone(); + return; + } + Token token = getToken(currentMode()); + switch (token) { + case tokenEe: + if (inputLevel() == 1) { + endInstance(); + return; + } + if (inputLevel() == specialParseInputLevel()) { + // FIXME have separate messages for each type of special parse + // perhaps force end of marked section or element + message(ParserMessages::specialParseEntityEnd); + } + if (eventsWanted().wantInstanceMarkup()) + eventHandler().entityEnd(new (eventAllocator()) + EntityEndEvent(currentLocation())); + if (afterDocumentElement()) + message(ParserMessages::afterDocumentElementEntityEnd); + if (sd().integrallyStored() + && tagLevel() + && currentElement().index() != currentInputElementIndex()) + message(ParserMessages::contentAsyncEntityRef); + popInputStack(); + break; + case tokenCroDigit: + case tokenHcroHexDigit: + { + if (afterDocumentElement()) + message(ParserMessages::characterReferenceAfterDocumentElement); + Char ch; + Location loc; + if (parseNumericCharRef(token == tokenHcroHexDigit, ch, loc)) { + acceptPcdata(loc); + noteData(); + Boolean isSgmlChar; + if (!translateNumericCharRef(ch, isSgmlChar)) + break; + if (!isSgmlChar) { + eventHandler().nonSgmlChar(new (eventAllocator()) + NonSgmlCharEvent(ch, loc)); + break; + } + eventHandler().data(new (eventAllocator()) + ImmediateDataEvent(Event::characterData, + &ch, 1, loc, 1)); + break; + } + } + break; + case tokenCroNameStart: + if (afterDocumentElement()) + message(ParserMessages::characterReferenceAfterDocumentElement); + parseNamedCharRef(); + break; + case tokenEroGrpo: + case tokenEroNameStart: + { + if (afterDocumentElement()) + message(ParserMessages::entityReferenceAfterDocumentElement); + ConstPtr entity; + Ptr origin; + if (parseEntityReference(0, token == tokenEroGrpo, entity, origin)) { + if (!entity.isNull()) { + if (entity->isCharacterData()) + acceptPcdata(Location(origin.pointer(), 0)); + if (inputLevel() == specialParseInputLevel()) + entity->rcdataReference(*this, origin); + else + entity->contentReference(*this, origin); + } + } + } + break; + case tokenEtagoNameStart: + acceptEndTag(parseEndTag()); + break; + case tokenEtagoTagc: + parseEmptyEndTag(); + break; + case tokenEtagoGrpo: + parseGroupEndTag(); + break; + case tokenMdoNameStart: + if (startMarkup(eventsWanted().wantInstanceMarkup(), currentLocation())) + currentMarkup()->addDelim(Syntax::dMDO); + Syntax::ReservedName name; + Boolean result; + unsigned startLevel; + startLevel = inputLevel(); + if (parseDeclarationName(&name)) { + switch (name) { + case Syntax::rUSEMAP: + if (afterDocumentElement()) + message(ParserMessages::declarationAfterDocumentElement, + StringMessageArg(syntax().reservedName(name))); + result = parseUsemapDecl(); + break; + case Syntax::rUSELINK: + if (afterDocumentElement()) + message(ParserMessages::declarationAfterDocumentElement, + StringMessageArg(syntax().reservedName(name))); + result = parseUselinkDecl(); + break; + case Syntax::rDOCTYPE: + case Syntax::rLINKTYPE: + case Syntax::rELEMENT: + case Syntax::rATTLIST: + case Syntax::rENTITY: + case Syntax::rNOTATION: + case Syntax::rSHORTREF: + case Syntax::rLINK: + case Syntax::rIDLINK: + message(ParserMessages::instanceDeclaration, + StringMessageArg(syntax().reservedName(name))); + result = 0; + break; + default: + message(ParserMessages::noSuchDeclarationType, + StringMessageArg(syntax().reservedName(name))); + result = 0; + break; + } + } + else + result = 0; + if (!result) + skipDeclaration(startLevel); + noteMarkup(); + break; + case tokenMdoMdc: + // empty comment + emptyCommentDecl(); + noteMarkup(); + break; + case tokenMdoCom: + parseCommentDecl(); + noteMarkup(); + break; + case tokenMdoDso: + if (afterDocumentElement()) + message(ParserMessages::markedSectionAfterDocumentElement); + parseMarkedSectionDeclStart(); + noteMarkup(); + break; + case tokenMscMdc: + handleMarkedSectionEnd(); + noteMarkup(); + break; + case tokenNet: + parseNullEndTag(); + break; + case tokenPio: + parseProcessingInstruction(); + break; + case tokenStagoNameStart: + parseStartTag(); + break; + case tokenStagoTagc: + parseEmptyStartTag(); + break; + case tokenStagoGrpo: + parseGroupStartTag(); + break; + case tokenRe: + acceptPcdata(currentLocation()); + queueRe(currentLocation()); + break; + case tokenRs: + acceptPcdata(currentLocation()); + noteRs(); + if (eventsWanted().wantInstanceMarkup()) + eventHandler().ignoredRs(new (eventAllocator()) + IgnoredRsEvent(currentChar(), + currentLocation())); + break; + case tokenS: + extendContentS(); + if (eventsWanted().wantInstanceMarkup()) + eventHandler().sSep(new (eventAllocator()) + SSepEvent(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation(), + 0)); + break; + case tokenIgnoredChar: + extendData(); + if (eventsWanted().wantMarkedSections()) + eventHandler().ignoredChars(new (eventAllocator()) + IgnoredCharsEvent(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation(), + 0)); + break; + case tokenUnrecognized: + reportNonSgmlCharacter(); + parsePcdata(); + break; + case tokenCharDelim: + message(ParserMessages::dataCharDelim, + StringMessageArg(StringC(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength()))); + // fall through + case tokenChar: + parsePcdata(); + break; + default: + ASSERT(token >= tokenFirstShortref); + handleShortref(token - tokenFirstShortref); + break; + } + } while (eventQueueEmpty()); +} + +void Parser::skipDeclaration(unsigned startLevel) +{ + const unsigned skipMax = 250; + unsigned skipCount = 0; + for (;;) { + Token token = getToken(mdMode); + if (inputLevel() == startLevel) + skipCount++; + switch (token) { + case tokenUnrecognized: + (void)getChar(); + break; + case tokenEe: + if (inputLevel() <= startLevel) + return; + popInputStack(); + return; + case tokenMdc: + if (inputLevel() == startLevel) + return; + break; + case tokenS: + if (inputLevel() == startLevel && skipCount >= skipMax + && currentChar() == syntax().standardFunction(Syntax::fRE)) + return; + break; + default: + break; + } + } +} + +void Parser::handleShortref(int index) +{ + const ConstPtr &entity + = currentElement().map()->entity(index); + if (!entity.isNull()) { + Owner markupPtr; + if (eventsWanted().wantInstanceMarkup()) { + markupPtr = new Markup; + markupPtr->addShortref(currentInput()); + } + Ptr origin + = EntityOrigin::make(internalAllocator(), + entity, + currentLocation(), + currentInput()->currentTokenLength(), + markupPtr); + entity->contentReference(*this, origin); + return; + } + InputSource *in = currentInput(); + size_t length = in->currentTokenLength(); + const Char *s = in->currentTokenStart(); + size_t i = 0; + if (currentMode() == econMode || currentMode() == econnetMode) { + // FIXME do this in advance (what about B sequence?) + for (i = 0; i < length && syntax().isS(s[i]); i++) + ; + if (i > 0 && eventsWanted().wantInstanceMarkup()) + eventHandler().sSep(new (eventAllocator()) + SSepEvent(s, i, currentLocation(), 0)); + } + if (i < length) { + Location location(currentLocation()); + location += i; + s += i; + length -= i; + acceptPcdata(location); + if (sd().keeprsre()) { + noteData(); + eventHandler().data(new (eventAllocator()) + ImmediateDataEvent(Event::characterData, s, length, + location, 0)); + return; + } + // FIXME speed this up + for (; length > 0; location += 1, length--, s++) { + if (*s == syntax().standardFunction(Syntax::fRS)) { + noteRs(); + if (eventsWanted().wantInstanceMarkup()) + eventHandler().ignoredRs(new (eventAllocator()) + IgnoredRsEvent(*s, location)); + } + else if (*s == syntax().standardFunction(Syntax::fRE)) + queueRe(location); + else { + noteData(); + eventHandler().data(new (eventAllocator()) + ImmediateDataEvent(Event::characterData, s, 1, + location, 0)); + } + } + } +} + +void Parser::parsePcdata() +{ + extendData(); + acceptPcdata(currentLocation()); + noteData(); + eventHandler().data(new (eventAllocator()) + ImmediateDataEvent(Event::characterData, + currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation(), + 0)); +} + +void Parser::parseStartTag() +{ + InputSource *in = currentInput(); + Markup *markup = startMarkup(eventsWanted().wantInstanceMarkup(), + in->currentLocation()); + if (markup) + markup->addDelim(Syntax::dSTAGO); + Boolean netEnabling; + StartElementEvent *event = doParseStartTag(netEnabling); + acceptStartTag(event->elementType(), event, netEnabling); +} + +StartElementEvent *Parser::doParseStartTag(Boolean &netEnabling) +{ + Markup *markup = currentMarkup(); + InputSource *in = currentInput(); + in->discardInitial(); + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + if (markup) + markup->addName(in); + StringC &name = nameBuffer(); + getCurrentToken(syntax().generalSubstTable(), name); + ElementType *e = currentDtdNonConst().lookupElementType(name); + if (sd().rank()) { + if (!e) + e = completeRankStem(name); + else if (e->isRankedElement()) + handleRankedElement(e); + } + if (!e) + e = lookupCreateUndefinedElement(name, currentLocation(), currentDtdNonConst(), (implydefElement() != Sd::implydefElementAnyother)); + AttributeList *attributes = allocAttributeList(e->attributeDef(), 0); + Token closeToken = getToken(tagMode); + if (closeToken == tokenTagc) { + if (name.size() > syntax().taglen()) + checkTaglen(markupLocation().index()); + attributes->finish(*this); + netEnabling = 0; + if (markup) + markup->addDelim(Syntax::dTAGC); + } + else { + in->ungetToken(); + Ptr newAttDef; + if (parseAttributeSpec(tagMode, *attributes, netEnabling, newAttDef)) { + // The difference between the indices will be the difference + // in offsets plus 1 for each named character reference. + if (in->currentLocation().index() - markupLocation().index() + > syntax().taglen()) + checkTaglen(markupLocation().index()); + } + else + netEnabling = 0; + if (!newAttDef.isNull()) { + newAttDef->setIndex(currentDtdNonConst().allocAttributeDefinitionListIndex()); + e->setAttributeDef(newAttDef); + } + } + return new (eventAllocator()) StartElementEvent(e, + currentDtdPointer(), + attributes, + markupLocation(), + markup); +} + +ElementType *Parser::completeRankStem(const StringC &name) +{ + const RankStem *rankStem = currentDtd().lookupRankStem(name); + if (rankStem) { + StringC name(rankStem->name()); + if (!appendCurrentRank(name, rankStem)) + message(ParserMessages::noCurrentRank, StringMessageArg(name)); + else + return currentDtdNonConst().lookupElementType(name); + } + return 0; +} + +void Parser::handleRankedElement(const ElementType *e) +{ + StringC rankSuffix(e->definition()->rankSuffix()); + const RankStem *rankStem = e->rankedElementRankStem(); + for (size_t i = 0; i < rankStem->nDefinitions(); i++) { + const ElementDefinition *def = rankStem->definition(i); + for (size_t j = 0; j < def->nRankStems(); j++) + setCurrentRank(def->rankStem(j), rankSuffix); + } +} + +void Parser::checkTaglen(Index tagStartIndex) +{ + const InputSourceOrigin *origin + = currentLocation().origin()->asInputSourceOrigin(); + ASSERT(origin != 0); + if (origin->startOffset(currentLocation().index()) + - origin->startOffset(tagStartIndex + + syntax().delimGeneral(Syntax::dSTAGO).size()) + > syntax().taglen()) + message(ParserMessages::taglen, NumberMessageArg(syntax().taglen())); +} + +void Parser::parseEmptyStartTag() +{ + if (options().warnEmptyTag) + message(ParserMessages::emptyStartTag); + if (!currentDtd().isBase()) + message(ParserMessages::emptyStartTagBaseDtd); + const ElementType *e = 0; + if (!sd().omittag()) + e = lastEndedElementType(); + else if (tagLevel() > 0) + e = currentElement().type(); + if (!e) + e = currentDtd().documentElementType(); + AttributeList *attributes = allocAttributeList(e->attributeDef(), 0); + attributes->finish(*this); + Markup *markup = startMarkup(eventsWanted().wantInstanceMarkup(), + currentLocation()); + if (markup) { + markup->addDelim(Syntax::dSTAGO); + markup->addDelim(Syntax::dTAGC); + } + acceptStartTag(e, + new (eventAllocator()) + StartElementEvent(e, + currentDtdPointer(), + attributes, + markupLocation(), + markup), + 0); +} + +void Parser::parseGroupStartTag() +{ + InputSource *in = currentInput(); + if (startMarkup(eventsWanted().wantInstanceMarkup(), currentLocation())) { + currentMarkup()->addDelim(Syntax::dSTAGO); + currentMarkup()->addDelim(Syntax::dGRPO); + } + Boolean active; + if (!parseTagNameGroup(active, 1)) + return; + in->startToken(); + // Location startLocation = in->currentLocation(); + Xchar c = in->tokenChar(messenger()); + if (!syntax().isNameStartCharacter(c)) { + message(ParserMessages::startTagMissingName); + return; + } + if (active) { + Boolean netEnabling; + StartElementEvent *event = doParseStartTag(netEnabling); + if (netEnabling) + message(ParserMessages::startTagGroupNet); + acceptStartTag(event->elementType(), event, netEnabling); + } + else { + in->discardInitial(); + + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + if (currentMarkup()) + currentMarkup()->addName(currentInput()); + skipAttributeSpec(); + if (currentMarkup()) + eventHandler().ignoredMarkup(new (eventAllocator()) + IgnoredMarkupEvent(markupLocation(), + currentMarkup())); + noteMarkup(); + } +} + +void Parser::parseGroupEndTag() +{ + InputSource *in = currentInput(); + if (startMarkup(eventsWanted().wantInstanceMarkup(), currentLocation())) { + currentMarkup()->addDelim(Syntax::dSTAGO); + currentMarkup()->addDelim(Syntax::dGRPO); + } + Boolean active; + if (!parseTagNameGroup(active, 0)) + return; + in->startToken(); + // Location startLocation = in->currentLocation(); + Xchar c = in->tokenChar(messenger()); + if (!syntax().isNameStartCharacter(c)) { + message(ParserMessages::endTagMissingName); + return; + } + if (active) + acceptEndTag(doParseEndTag()); + else { + in->discardInitial(); + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + if (currentMarkup()) + currentMarkup()->addName(currentInput()); + parseEndTagClose(); + if (currentMarkup()) + eventHandler().ignoredMarkup(new (eventAllocator()) + IgnoredMarkupEvent(markupLocation(), + currentMarkup())); + noteMarkup(); + } +} + +void Parser::acceptPcdata(const Location &startLocation) +{ + if (currentElement().tryTransitionPcdata()) + return; + // Need to test here since implying tags may turn off pcdataRecovering. + if (pcdataRecovering()) + return; + IList undoList; + IList eventList; + unsigned startImpliedCount = 0; + unsigned attributeListIndex = 0; + keepMessages(); + while (tryImplyTag(startLocation, startImpliedCount, attributeListIndex, + undoList, eventList)) + if (currentElement().tryTransitionPcdata()) { + queueElementEvents(eventList); + return; + } + discardKeptMessages(); + undo(undoList); + if (validate() || afterDocumentElement()) + message(ParserMessages::pcdataNotAllowed); + pcdataRecover(); +} + +void Parser::acceptStartTag(const ElementType *e, + StartElementEvent *event, + Boolean netEnabling) +{ + if (e->definition()->undefined() && (implydefElement() == Sd::implydefElementNo)) + message(ParserMessages::undefinedElement, StringMessageArg(e->name())); + if (elementIsExcluded(e)) { + keepMessages(); + if (validate()) + checkExclusion(e); + } + else { + if (currentElement().tryTransition(e)) { + pushElementCheck(e, event, netEnabling); + return; + } + if (elementIsIncluded(e)) { + event->setIncluded(); + pushElementCheck(e, event, netEnabling); + return; + } + keepMessages(); + } + IList undoList; + IList eventList; + unsigned startImpliedCount = 0; + unsigned attributeListIndex = 1; + while (tryImplyTag(event->location(), startImpliedCount, + attributeListIndex, undoList, eventList)) + if (tryStartTag(e, event, netEnabling, eventList)) + return; + discardKeptMessages(); + undo(undoList); + if (validate() && !e->definition()->undefined()) + handleBadStartTag(e, event, netEnabling); + else { + if (validate() ? (implydefElement() != Sd::implydefElementNo) : afterDocumentElement()) + message(ParserMessages::elementNotAllowed, StringMessageArg(e->name())); + // If element couldn't occur because it was excluded, then + // do the transition here. + (void)currentElement().tryTransition(e); + pushElementCheck(e, event, netEnabling); + } +} + +void Parser::undo(IList &undoList) +{ + while (!undoList.empty()) { + Undo *p = undoList.get(); + p->undo(this); + delete p; + } +} + +void Parser::queueElementEvents(IList &events) +{ + releaseKeptMessages(); + // FIXME provide IList::reverse function + // reverse it + IList tem; + while (!events.empty()) + tem.insert(events.get()); + while (!tem.empty()) { + Event *e = tem.get(); + if (e->type() == Event::startElement) { + noteStartElement(((StartElementEvent *)e)->included()); + eventHandler().startElement((StartElementEvent *)e); + } + else { + noteEndElement(((EndElementEvent *)e)->included()); + eventHandler().endElement((EndElementEvent *)e); + } + } + +} + +void Parser::checkExclusion(const ElementType *e) +{ + const LeafContentToken *token = currentElement().invalidExclusion(e); + if (token) + message(ParserMessages::invalidExclusion, + OrdinalMessageArg(token->typeIndex() + 1), + StringMessageArg(token->elementType()->name()), + StringMessageArg(currentElement().type()->name())); +} + +Boolean Parser::tryStartTag(const ElementType *e, + StartElementEvent *event, + Boolean netEnabling, + IList &impliedEvents) +{ + if (elementIsExcluded(e)) { + checkExclusion(e); + return 0; + } + if (currentElement().tryTransition(e)) { + queueElementEvents(impliedEvents); + pushElementCheck(e, event, netEnabling); + return 1; + } + if (elementIsIncluded(e)) { + queueElementEvents(impliedEvents); + event->setIncluded(); + pushElementCheck(e, event, netEnabling); + return 1; + } + return 0; +} + +Boolean Parser::tryImplyTag(const Location &loc, + unsigned &startImpliedCount, + unsigned &attributeListIndex, + IList &undo, + IList &eventList) +{ + if (!sd().omittag()) + return 0; + if (currentElement().isFinished()) { + if (tagLevel() == 0) + return 0; +#if 1 + const ElementDefinition *def = currentElement().type()->definition(); + if (def && !def->canOmitEndTag()) + return 0; +#endif + // imply an end tag + if (startImpliedCount > 0) { + message(ParserMessages::startTagEmptyElement, + StringMessageArg(currentElement().type()->name())); + startImpliedCount--; + } +#if 0 + const ElementDefinition *def = currentElement().type()->definition(); + if (def && !def->canOmitEndTag()) + message(ParserMessages::omitEndTagDeclare, + StringMessageArg(currentElement().type()->name()), + currentElement().startLocation()); +#endif + EndElementEvent *event + = new (eventAllocator()) EndElementEvent(currentElement().type(), + currentDtdPointer(), + loc, + 0); + eventList.insert(event); + undo.insert(new (internalAllocator()) UndoEndTag(popSaveElement())); + return 1; + } + const LeafContentToken *token = currentElement().impliedStartTag(); + if (!token) + return 0; + const ElementType *e = token->elementType(); + if (elementIsExcluded(e)) + message(ParserMessages::requiredElementExcluded, + OrdinalMessageArg(token->typeIndex() + 1), + StringMessageArg(e->name()), + StringMessageArg(currentElement().type()->name())); + if (tagLevel() != 0) + undo.insert(new (internalAllocator()) + UndoTransition(currentElement().matchState())); + currentElement().doRequiredTransition(); + const ElementDefinition *def = e->definition(); + if (def->declaredContent() != ElementDefinition::modelGroup + && def->declaredContent() != ElementDefinition::any) + message(ParserMessages::omitStartTagDeclaredContent, + StringMessageArg(e->name())); + if (def->undefined()) + message(ParserMessages::undefinedElement, StringMessageArg(e->name())); + else if (!def->canOmitStartTag()) + message(ParserMessages::omitStartTagDeclare, StringMessageArg(e->name())); + AttributeList *attributes + = allocAttributeList(e->attributeDef(), + attributeListIndex++); + // this will give an error if the element has a required attribute + attributes->finish(*this); + startImpliedCount++; + StartElementEvent *event + = new (eventAllocator()) StartElementEvent(e, + currentDtdPointer(), + attributes, + loc, + 0); + pushElementCheck(e, event, undo, eventList); + const int implyCheckLimit = 30; // this is fairly arbitrary + if (startImpliedCount > implyCheckLimit + && !checkImplyLoop(startImpliedCount)) + return 0; + return 1; +} + +void Parser::pushElementCheck(const ElementType *e, StartElementEvent *event, + Boolean netEnabling) +{ + if (tagLevel() == syntax().taglvl()) + message(ParserMessages::taglvlOpenElements, NumberMessageArg(syntax().taglvl())); + noteStartElement(event->included()); + if (event->mustOmitEnd()) { + if (sd().emptyElementNormal()) { + Boolean included = event->included(); + Location loc(event->location()); + eventHandler().startElement(event); + endTagEmptyElement(e, netEnabling, included, loc); + } + else { + EndElementEvent *end + = new (eventAllocator()) EndElementEvent(e, + currentDtdPointer(), + event->location(), + 0); + if (event->included()) { + end->setIncluded(); + noteEndElement(1); + } + else + noteEndElement(0); + eventHandler().startElement(event); + eventHandler().endElement(end); + } + } + else { + const ShortReferenceMap *map = e->map(); + if (!map) + map = currentElement().map(); + if (options().warnImmediateRecursion + && e == currentElement().type()) + message(ParserMessages::immediateRecursion); + pushElement(new (internalAllocator()) OpenElement(e, + netEnabling, + event->included(), + map, + event->location())); + // Can't access event after it's passed to the event handler. + eventHandler().startElement(event); + } +} + +void Parser::endTagEmptyElement(const ElementType *e, + Boolean netEnabling, + Boolean included, + const Location &startLoc) +{ + Token token = getToken(netEnabling ? econnetMode : econMode); + switch (token) { + case tokenNet: + if (netEnabling) { + Markup *markup = startMarkup(eventsWanted().wantInstanceMarkup(), + currentLocation()); + if (markup) + markup->addDelim(Syntax::dNET); + EndElementEvent *end + = new (eventAllocator()) EndElementEvent(e, + currentDtdPointer(), + currentLocation(), + markup); + if (included) + end->setIncluded(); + eventHandler().endElement(end); + noteEndElement(included); + return; + } + break; + case tokenEtagoTagc: + { + if (options().warnEmptyTag) + message(ParserMessages::emptyEndTag); + Markup *markup = startMarkup(eventsWanted().wantInstanceMarkup(), + currentLocation()); + if (markup) { + markup->addDelim(Syntax::dETAGO); + markup->addDelim(Syntax::dTAGC); + } + EndElementEvent *end + = new (eventAllocator()) EndElementEvent(e, + currentDtdPointer(), + currentLocation(), + markup); + if (included) + end->setIncluded(); + eventHandler().endElement(end); + noteEndElement(included); + return; + } + case tokenEtagoNameStart: + { + EndElementEvent *end = parseEndTag(); + if (end->elementType() == e) { + if (included) + end->setIncluded(); + eventHandler().endElement(end); + noteEndElement(included); + return; + } + if (!elementIsOpen(end->elementType())) { + message(ParserMessages::elementNotOpen, + StringMessageArg(end->elementType()->name())); + delete end; + break; + } + implyEmptyElementEnd(e, included, startLoc); + acceptEndTag(end); + return; + } + default: + break; + } + implyEmptyElementEnd(e, included, startLoc); + currentInput()->ungetToken(); +} + +void Parser::implyEmptyElementEnd(const ElementType *e, + Boolean included, + const Location &startLoc) +{ + if (!sd().omittag()) + message(ParserMessages::omitEndTagOmittag, + StringMessageArg(e->name()), + startLoc); + else { + const ElementDefinition *def = e->definition(); + if (def && !def->canOmitEndTag()) + message(ParserMessages::omitEndTagDeclare, + StringMessageArg(e->name()), + startLoc); + } + EndElementEvent *end + = new (eventAllocator()) EndElementEvent(e, + currentDtdPointer(), + currentLocation(), + 0); + if (included) + end->setIncluded(); + noteEndElement(included); + eventHandler().endElement(end); +} + +void Parser::pushElementCheck(const ElementType *e, StartElementEvent *event, + IList &undoList, + IList &eventList) +{ + if (tagLevel() == syntax().taglvl()) + message(ParserMessages::taglvlOpenElements, NumberMessageArg(syntax().taglvl())); + eventList.insert(event); + if (event->mustOmitEnd()) { + EndElementEvent *end + = new (eventAllocator()) EndElementEvent(e, + currentDtdPointer(), + event->location(), + 0); + if (event->included()) + end->setIncluded(); + eventList.insert(end); + } + else { + undoList.insert(new (internalAllocator()) UndoStartTag); + const ShortReferenceMap *map = e->map(); + if (!map) + map = currentElement().map(); + pushElement(new (internalAllocator()) OpenElement(e, + 0, + event->included(), + map, + event->location())); + } +} + +EndElementEvent *Parser::parseEndTag() +{ + Markup *markup = startMarkup(eventsWanted().wantInstanceMarkup(), + currentLocation()); + if (markup) + markup->addDelim(Syntax::dETAGO); + return doParseEndTag(); +} + +EndElementEvent *Parser::doParseEndTag() +{ + Markup *markup = currentMarkup(); + currentInput()->discardInitial(); + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + if (markup) + markup->addName(currentInput()); + StringC &name = nameBuffer(); + getCurrentToken(syntax().generalSubstTable(), name); + const ElementType *e = currentDtd().lookupElementType(name); + if (sd().rank()) { + if (!e) + e = completeRankStem(name); + } + if (!e) + e = lookupCreateUndefinedElement(name, currentLocation(), currentDtdNonConst(), (implydefElement() != Sd::implydefElementAnyother)); + parseEndTagClose(); + return new (eventAllocator()) + EndElementEvent(e, + currentDtdPointer(), + markupLocation(), + markup); +} + +void Parser::parseEndTagClose() +{ + for (;;) { + Token token = getToken(tagMode); + switch (token) { + case tokenUnrecognized: + if (!reportNonSgmlCharacter()) + message(ParserMessages::endTagCharacter, StringMessageArg(currentToken())); + return; + case tokenEe: + message(ParserMessages::endTagEntityEnd); + return; + case tokenEtago: + case tokenStago: + if (!sd().endTagUnclosed()) + message(ParserMessages::unclosedEndTagShorttag); + currentInput()->ungetToken(); + return; + case tokenTagc: + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dTAGC); + return; + case tokenS: + if (currentMarkup()) + currentMarkup()->addS(currentChar()); + break; + default: + message(ParserMessages::endTagInvalidToken, + TokenMessageArg(token, tagMode, syntaxPointer(), sdPointer())); + return; + } + } +} + +void Parser::parseEmptyEndTag() +{ + if (options().warnEmptyTag) + message(ParserMessages::emptyEndTag); + if (!currentDtd().isBase()) + message(ParserMessages::emptyEndTagBaseDtd); + if (tagLevel() == 0) + message(ParserMessages::emptyEndTagNoOpenElements); + else { + Markup *markup = startMarkup(eventsWanted().wantInstanceMarkup(), + currentLocation()); + if (markup) { + markup->addDelim(Syntax::dETAGO); + markup->addDelim(Syntax::dTAGC); + } + acceptEndTag(new (eventAllocator()) EndElementEvent(currentElement().type(), + currentDtdPointer(), + currentLocation(), + markup)); + } +} + +void Parser::parseNullEndTag() +{ + // If a null end tag was recognized, then there must be a net enabling + // element on the stack. + for (;;) { + ASSERT(tagLevel() > 0); + if (currentElement().netEnabling()) + break; + if (!currentElement().isFinished() && validate()) + message(ParserMessages::elementNotFinished, + StringMessageArg(currentElement().type()->name())); + implyCurrentElementEnd(currentLocation()); + } + if (!currentElement().isFinished() && validate()) + message(ParserMessages::elementEndTagNotFinished, + StringMessageArg(currentElement().type()->name())); + Markup *markup = startMarkup(eventsWanted().wantInstanceMarkup(), + currentLocation()); + if (markup) + markup->addDelim(Syntax::dNET); + acceptEndTag(new (eventAllocator()) EndElementEvent(currentElement().type(), + currentDtdPointer(), + currentLocation(), + markup)); +} + +void Parser::endAllElements() +{ + while (tagLevel() > 0) { + if (!currentElement().isFinished()) + message(ParserMessages::elementNotFinishedDocumentEnd, + StringMessageArg(currentElement().type()->name())); + implyCurrentElementEnd(currentLocation()); + } + if (!currentElement().isFinished() && validate()) + message(ParserMessages::noDocumentElement); +} + +void Parser::acceptEndTag(EndElementEvent *event) +{ + const ElementType *e = event->elementType(); + if (!elementIsOpen(e)) { + message(ParserMessages::elementNotOpen, StringMessageArg(e->name())); + delete event; + return; + } + for (;;){ + if (currentElement().type() == e) + break; + if (!currentElement().isFinished() && validate()) + message(ParserMessages::elementNotFinished, + StringMessageArg(currentElement().type()->name())); + implyCurrentElementEnd(event->location()); + } + if (!currentElement().isFinished() && validate()) + message(ParserMessages::elementEndTagNotFinished, + StringMessageArg(currentElement().type()->name())); + if (currentElement().included()) + event->setIncluded(); + noteEndElement(event->included()); + eventHandler().endElement(event); + popElement(); +} + +void Parser::implyCurrentElementEnd(const Location &loc) +{ + if (!sd().omittag()) + message(ParserMessages::omitEndTagOmittag, + StringMessageArg(currentElement().type()->name()), + currentElement().startLocation()); + else { + const ElementDefinition *def = currentElement().type()->definition(); + if (def && !def->canOmitEndTag()) + message(ParserMessages::omitEndTagDeclare, + StringMessageArg(currentElement().type()->name()), + currentElement().startLocation()); + } + EndElementEvent *event + = new (eventAllocator()) EndElementEvent(currentElement().type(), + currentDtdPointer(), + loc, + 0); + if (currentElement().included()) + event->setIncluded(); + noteEndElement(event->included()); + eventHandler().endElement(event); + popElement(); +} + +void Parser::extendData() +{ + XcharMap isNormal(normalMap()); + InputSource *in = currentInput(); + size_t length = in->currentTokenLength(); + // This is one of the parser's inner loops, so it needs to be fast. + while (isNormal[in->tokenCharInBuffer(messenger())]) + length++; + in->endToken(length); +} + +void Parser::extendContentS() +{ + InputSource *in = currentInput(); + size_t length = in->currentTokenLength(); + XcharMap isNormal(normalMap()); + for (;;) { + Xchar ch = in->tokenChar(messenger()); + if (!syntax().isS(ch) || !isNormal[ch]) + break; + length++; + } + in->endToken(length); +} + +void Parser::handleBadStartTag(const ElementType *e, + StartElementEvent *event, + Boolean netEnabling) +{ + IList undoList; + IList eventList; + keepMessages(); + for (;;) { + Vector missing; + findMissingTag(e, missing); + if (missing.size() == 1) { + queueElementEvents(eventList); + const ElementType *m = missing[0]; + message(ParserMessages::missingElementInferred, + StringMessageArg(e->name()), + StringMessageArg(m->name())); + AttributeList *attributes + = allocAttributeList(m->attributeDef(), 1); + // this will give an error if the element has a required attribute + attributes->finish(*this); + StartElementEvent *inferEvent + = new (eventAllocator()) StartElementEvent(m, + currentDtdPointer(), + attributes, + event->location(), + 0); + if (!currentElement().tryTransition(m)) + inferEvent->setIncluded(); + pushElementCheck(m, inferEvent, 0); + if (!currentElement().tryTransition(e)) + event->setIncluded(); + pushElementCheck(e, event, netEnabling); + return; + } + if (missing.size() > 0) { + queueElementEvents(eventList); + Vector missingNames; + for (size_t i = 0; i < missing.size(); i++) + missingNames.push_back(missing[i]->name()); + message(ParserMessages::missingElementMultiple, + StringMessageArg(e->name()), + StringVectorMessageArg(missingNames)); + pushElementCheck(e, event, netEnabling); + return; + } + if (!sd().omittag() + || !currentElement().isFinished() + || tagLevel() == 0 + || !currentElement().type()->definition()->canOmitEndTag()) + break; + EndElementEvent *endEvent + = new (eventAllocator()) EndElementEvent(currentElement().type(), + currentDtdPointer(), + event->location(), + 0); + eventList.insert(endEvent); + undoList.insert(new (internalAllocator()) UndoEndTag(popSaveElement())); + } + discardKeptMessages(); + undo(undoList); + message(ParserMessages::elementNotAllowed, StringMessageArg(e->name())); + // If element couldn't occur because it was excluded, then + // do the transition here. + (void)currentElement().tryTransition(e); + pushElementCheck(e, event, netEnabling); +} + +void Parser::findMissingTag(const ElementType *e, + Vector &v) +{ + if (!currentElement().currentPosition()) { + if (!e) + v.push_back((const ElementType *)0); + return; + } + if (elementIsExcluded(e)) + return; + size_t newSize = 0; + currentElement().matchState().possibleTransitions(v); + // FIXME also get currentInclusions + for (size_t i = 0; i < v.size(); i++) { + if (v[i] && !elementIsExcluded(v[i])) { + Boolean success = 0; + switch (v[i]->definition()->declaredContent()) { + case ElementDefinition::modelGroup: + { + const CompiledModelGroup *grp + = v[i]->definition()->compiledModelGroup(); + MatchState state(grp); + if (!e) { + if (state.tryTransitionPcdata()) + success = 1; + } + else { + if (state.tryTransition(e)) + success = 1; + if (!success) { + for (size_t j = 0; j < v[i]->definition()->nInclusions(); j++) + if (v[i]->definition()->inclusion(j) == e) { + success = 1; + break; + } + } + if (success) { + for (size_t j = 0; j < v[i]->definition()->nExclusions(); j++) + if (v[i]->definition()->exclusion(j) == e) { + success = 0; + break; + } + } + } + } + break; +#if 0 + case ElementDefinition::any: + success = 1; + break; +#endif + case ElementDefinition::cdata: + case ElementDefinition::rcdata: + if (e == 0) + success = 1; + break; + default: + break; + } + if (success) + v[newSize++] = v[i]; + } + } + v.resize(newSize); + // Sort them according to the order of their occurrence in the DTD. + // Do an insertion sort. + for (size_t i = 1; i < v.size(); i++) { + const ElementType *tem = v[i]; + size_t j; + for (j = i; j > 0 && v[j - 1]->index() > tem->index(); j--) + v[j] = v[j - 1]; + v[j] = tem; + } +} + +#if 0 +// This produces messages that are too verbose +// This doesn't try to be very efficient. +// 0 for #pcdata + +void Parser::getAllowedElementTypes(Vector &v) +{ + v.clear(); + // FIXME get a list of all inclusions first + // getCurrentInclusions(v); + // x says whether each element of v was excluded + Vector x(v.size(), 0); + unsigned startImpliedCount = 0; + IList undoList; + for (;;) { + if (currentElement().currentPosition()) { + // have a model group + size_t i = v.size(); + currentElement().matchState().possibleTransitions(v); + x.resize(v.size()); + for (size_t j = i; j < v.size(); j++) + x[j] = (v[j] && elementIsExcluded(v[j])); + if (!sd().omittag()) + break; + // Try to imply a tag + if (currentElement().isFinished()) { + if (tagLevel() == 0) + break; + if (startImpliedCount) + break; + const ElementDefinition *def = currentElement().type()->definition(); + if (def && def->canOmitEndTag()) + undoList.insert(new (internalAllocator()) + UndoEndTag(popSaveElement())); + else + break; + } + else { + const LeafContentToken *token = currentElement().impliedStartTag(); + if (!token) + break; + const ElementType *e = token->elementType(); + if (elementIsExcluded(e)) + break; + const ElementDefinition *def = e->definition(); + if (!def + || def->undefined() + || (def->declaredContent() != ElementDefinition::modelGroup + && def->declaredContent() != ElementDefinition::any) + || !def->canOmitStartTag()) + break; + undoList.insert(new (internalAllocator()) UndoStartTag); + startImpliedCount++; + pushElement(new (internalAllocator()) OpenElement(e, + 0, + 0, + 0, + Location())); + if (checkImplyLoop(startImpliedCount)) + break; + for (size_t i = 0; i < def->nInclusions(); i++) + if (!elementIsExcluded(def->inclusion(i))) { + v.push_back(def->inclusion(i)); + x.push_back(0); + } + } + } + else { + // must be allowed #pcdata + v.push_back((const ElementType *)0); + x.push_back((PackedBoolean)0); + break; + } + } + undo(undoList); + // Remove exclusions and duplicates and undefined + size_t newSize = 0; + for (size_t i = 0; i < v.size(); i++) + if (!x[i] && (!v[i] || !v[i]->definition()->undefined())) { + Boolean dup = 0; + for (size_t j = 0; j < newSize; j++) + if (v[i] == v[j]) { + dup = 1; + break; + } + if (!dup) + v[newSize++] = v[i]; + } + v.resize(newSize); +} +#endif + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/parseMode.cxx b/lib/parseMode.cxx new file mode 100644 index 0000000..f9b567e --- /dev/null +++ b/lib/parseMode.cxx @@ -0,0 +1,581 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "Parser.h" +#include "ParserMessages.h" +#include "MessageArg.h" +#include "TokenMessageArg.h" +#include "ModeInfo.h" +#include "Partition.h" +#include "SrInfo.h" +#include "Vector.h" +#include "ISetIter.h" +#include "token.h" +#include "TrieBuilder.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +enum { + modeUsedInSd = 01, + modeUsedInProlog = 02, + modeUsedInInstance = 04, + modeUsesSr = 010 +}; + +static struct { + Mode mode; + unsigned flags; +} modeTable[] = { + { grpMode, modeUsedInProlog|modeUsedInInstance }, + { alitMode, modeUsedInProlog|modeUsedInInstance }, + { alitaMode, modeUsedInProlog|modeUsedInInstance }, + { aliteMode, modeUsedInProlog|modeUsedInInstance }, + { talitMode, modeUsedInProlog|modeUsedInInstance }, + { talitaMode, modeUsedInProlog|modeUsedInInstance }, + { taliteMode, modeUsedInProlog|modeUsedInInstance }, + { mdMode, modeUsedInProlog|modeUsedInInstance }, + { mdMinusMode, modeUsedInProlog }, + { mdPeroMode, modeUsedInProlog }, + { sdMode, modeUsedInSd }, + { comMode, modeUsedInProlog|modeUsedInInstance }, + { sdcomMode, modeUsedInSd }, + { piMode, modeUsedInProlog|modeUsedInInstance }, + { refMode, modeUsedInProlog|modeUsedInInstance|modeUsedInSd }, + { imsMode, modeUsedInProlog|modeUsedInInstance }, + { cmsMode, modeUsedInProlog|modeUsedInInstance }, + { rcmsMode, modeUsedInProlog|modeUsedInInstance }, + { proMode, modeUsedInProlog }, + { dsMode, modeUsedInProlog }, + { dsiMode, modeUsedInProlog }, + { plitMode, modeUsedInProlog }, + { plitaMode, modeUsedInProlog }, + { pliteMode, modeUsedInProlog }, + { sdplitMode, modeUsedInSd }, + { sdplitaMode, modeUsedInSd }, + { grpsufMode, modeUsedInProlog }, + { mlitMode, modeUsedInProlog|modeUsedInSd }, + { mlitaMode, modeUsedInProlog|modeUsedInSd }, + { asMode, modeUsedInProlog }, + { piPasMode, modeUsedInProlog }, + { slitMode, modeUsedInProlog }, + { slitaMode, modeUsedInProlog }, + { sdslitMode, modeUsedInSd }, + { sdslitaMode, modeUsedInSd }, + { cconMode, modeUsedInInstance }, + { rcconMode, modeUsedInInstance }, + { cconnetMode, modeUsedInInstance }, + { rcconnetMode, modeUsedInInstance }, + { rcconeMode, modeUsedInInstance }, + { tagMode, modeUsedInInstance }, + { econMode, modeUsedInInstance|modeUsesSr }, + { mconMode, modeUsedInInstance|modeUsesSr }, + { econnetMode, modeUsedInInstance|modeUsesSr }, + { mconnetMode, modeUsedInInstance|modeUsesSr }, +}; + +void Parser::compileSdModes() +{ + Mode modes[nModes]; + int n = 0; + for (size_t i = 0; i < SIZEOF(modeTable); i++) + if (modeTable[i].flags & modeUsedInSd) + modes[n++] = modeTable[i].mode; + compileModes(modes, n, 0); +} + +void Parser::compilePrologModes() +{ + Boolean scopeInstance = sd().scopeInstance(); + Boolean haveSr = syntax().hasShortrefs(); + Mode modes[nModes]; + int n = 0; + for (size_t i = 0; i < SIZEOF(modeTable); i++) { + if (scopeInstance) { + if (modeTable[i].flags & modeUsedInProlog) + modes[n++] = modeTable[i].mode; + } + else if (haveSr) { + if ((modeTable[i].flags & (modeUsedInInstance|modeUsedInProlog)) + && !(modeTable[i].flags & modeUsesSr)) + modes[n++] = modeTable[i].mode; + } + else { + if (modeTable[i].flags & (modeUsedInInstance|modeUsedInProlog)) + modes[n++] = modeTable[i].mode; + } + } + compileModes(modes, n, 0); +} + +void Parser::compileInstanceModes() +{ + Boolean scopeInstance = sd().scopeInstance(); + compileNormalMap(); + if (!scopeInstance && !syntax().hasShortrefs()) + return; + Mode modes[nModes]; + int n = 0; + for (size_t i = 0; i < SIZEOF(modeTable); i++) { + if (scopeInstance) { + if (modeTable[i].flags & modeUsedInInstance) + modes[n++] = modeTable[i].mode; + } + else { + if (modeTable[i].flags & modeUsesSr) + modes[n++] = modeTable[i].mode; + } + } + compileModes(modes, n, ¤tDtd()); +} + +void Parser::compileModes(const Mode *modes, + int n, + const Dtd *dtd) +{ + PackedBoolean sets[Syntax::nSet]; + PackedBoolean delims[Syntax::nDelimGeneral]; + PackedBoolean functions[3]; + int i; + Boolean includesShortref = 0; + for (i = 0; i < Syntax::nSet; i++) + sets[i] = 0; + for (i = 0; i < Syntax::nDelimGeneral; i++) + delims[i] = 0; + for (i = 0; i < 3; i++) + functions[i] = 0; + + for (i = 0; i < n; i++) { + ModeInfo iter(modes[i], sd()); + TokenInfo ti; + while (iter.nextToken(&ti)) { + switch (ti.type) { + case TokenInfo::delimType: + delims[ti.delim1] = 1; + break; + case TokenInfo::delimDelimType: + delims[ti.delim1] = 1; + delims[ti.delim2] = 1; + break; + case TokenInfo::delimSetType: + delims[ti.delim1] = 1; + // fall through + case TokenInfo::setType: + sets[ti.set] = 1; + break; + case TokenInfo::functionType: + functions[ti.function] = 1; + break; + } + } + if (!includesShortref && iter.includesShortref()) + includesShortref = 1; + } + + ISet chars; + + for (i = 0; i < 3; i++) + if (functions[i]) + chars.add(syntax().standardFunction(i)); + for (i = 0; i < Syntax::nDelimGeneral; i++) + if (delims[i]) { + const StringC &str = syntax().delimGeneral(i); + for (size_t j = 0; j < str.size(); j++) + chars.add(str[j]); + } + if (includesShortref && dtd) { + size_t n = dtd->nShortref(); + for (size_t i = 0; i < n; i++) { + const StringC &delim = dtd->shortref(i); + size_t len = delim.size(); + for (size_t j = 0; j < len; j++) + if (delim[j] == sd().execToInternal('B')) + sets[Syntax::blank] = 1; + else + chars.add(delim[j]); + } + } + + const ISet *csets[Syntax::nSet]; + int usedSets = 0; + for (i = 0; i < Syntax::nSet; i++) + if (sets[i]) + csets[usedSets++] = syntax().charSet(i); + + Partition partition(chars, csets, usedSets, *syntax().generalSubstTable()); + + String setCodes[Syntax::nSet]; + + int nCodes = 0; + for (i = 0; i < Syntax::nSet; i++) + if (sets[i]) + setCodes[i] = partition.setCodes(nCodes++); + + String delimCodes[Syntax::nDelimGeneral]; + for (i = 0; i < Syntax::nDelimGeneral; i++) + if (delims[i]) { + StringC str = syntax().delimGeneral(i); + for (size_t j = 0; j < str.size(); j++) + delimCodes[i] += partition.charCode(str[j]); + } + + String functionCode[3]; + for (i = 0; i < 3; i++) + if (functions[i]) + functionCode[i] += partition.charCode(syntax().standardFunction(i)); + + Vector srInfo; + + int nShortref; + if (!includesShortref || !dtd) + nShortref = 0; + else { + nShortref = dtd->nShortref(); + srInfo.resize(nShortref); + + for (i = 0; i < nShortref; i++) { + const StringC delim = dtd->shortref(i); + SrInfo *p = &srInfo[i]; + size_t j; + for (j = 0; j < delim.size(); j++) { + if (delim[j] == sd().execToInternal('B')) + break; + p->chars += partition.charCode(delim[j]); + } + if (j < delim.size()) { + p->bSequenceLength = 1; + for (++j; j < delim.size(); j++) { + if (delim[j] != sd().execToInternal('B')) + break; + p->bSequenceLength += 1; + } + for (; j < delim.size(); j++) + p->chars2 += partition.charCode(delim[j]); + } + else + p->bSequenceLength = 0; + } + } + + String dataDelimCodes; + if (options().warnDataDelim) { + ModeInfo iter(mconMode, sd()); + TokenInfo ti; + while (iter.nextToken(&ti)) { + switch (ti.type) { + case TokenInfo::delimType: + case TokenInfo::delimDelimType: + case TokenInfo::delimSetType: + { + if (ti.token == tokenMscMdc) + break; + const StringC &delim = syntax().delimGeneral(ti.delim1); + if (!delim.size()) + break; + EquivCode c = partition.charCode(delim[0]); + for (size_t i = 0; ; i++) { + if (i >= dataDelimCodes.size()) { + dataDelimCodes += c; + break; + } + if (dataDelimCodes[i] == c) + break; + } + } + break; + default: + break; + } + } + } + + const String emptyString; + Boolean multicode = syntax().multicode(); + for (i = 0; i < n; i++) { + TrieBuilder tb(partition.maxCode() + 1); + TrieBuilder::TokenVector ambiguities; + Vector suppressTokens; + if (multicode) { + suppressTokens.assign(partition.maxCode() + 1, 0); + suppressTokens[partition.eECode()] = tokenEe; + } + tb.recognizeEE(partition.eECode(), tokenEe); + ModeInfo iter(modes[i], sd()); + TokenInfo ti; + // We try to handle the possibility that some delimiters may be empty; + // this might happen when compiling recognizers for the SGML declaration. + while (iter.nextToken(&ti)) { + switch (ti.type) { + case TokenInfo::delimType: + if (delimCodes[ti.delim1].size() > 0) + tb.recognize(delimCodes[ti.delim1], ti.token, + ti.priority, ambiguities); + break; + case TokenInfo::delimDelimType: + { + String str(delimCodes[ti.delim1]); + if (str.size() > 0 && delimCodes[ti.delim2].size() > 0) { + str += delimCodes[ti.delim2]; + tb.recognize(str, ti.token, ti.priority, ambiguities); + } + } + break; + case TokenInfo::delimSetType: + if (delimCodes[ti.delim1].size() > 0) + tb.recognize(delimCodes[ti.delim1], setCodes[ti.set], + ti.token, ti.priority, ambiguities); + break; + case TokenInfo::setType: + tb.recognize(emptyString, setCodes[ti.set], ti.token, + ti.priority, ambiguities); + if (multicode) { + const String &equivCodes = setCodes[ti.set]; + for (size_t j = 0; j < equivCodes.size(); j++) + suppressTokens[equivCodes[j]] = ti.token; + } + break; + case TokenInfo::functionType: + tb.recognize(functionCode[ti.function], ti.token, + ti.priority, ambiguities); + if (multicode) + suppressTokens[functionCode[ti.function][0]] = ti.token; + break; + } + } + if (iter.includesShortref()) { + for (int j = 0; j < nShortref; j++) { + const SrInfo *p = &srInfo[j]; + if (p->bSequenceLength > 0) + tb.recognizeB(p->chars, p->bSequenceLength, + syntax().quantity(Syntax::qBSEQLEN), + setCodes[Syntax::blank], + p->chars2, tokenFirstShortref + j, + ambiguities); + else + tb.recognize(p->chars, tokenFirstShortref + j, + Priority::delim, ambiguities); + } + } + if (options().warnDataDelim) { + switch (modes[i]) { + default: + if (!iter.includesShortref()) + break; + // fall through + case alitMode: + case alitaMode: + case aliteMode: + case talitMode: + case talitaMode: + case taliteMode: + for (size_t j = 0; j < dataDelimCodes.size(); j++) { + String code; + code += dataDelimCodes[j]; + tb.recognize(code, tokenCharDelim, Priority::dataDelim, ambiguities); + } + break; + case plitMode: + case plitaMode: + case pliteMode: + { + String code; + code += partition.charCode(syntax().delimGeneral(Syntax::dPERO)[0]); + tb.recognize(code, tokenCharDelim, Priority::dataDelim, ambiguities); + } + break; + } + } + setRecognizer(modes[i], + (multicode + ? new Recognizer(tb.extractTrie(), partition.map(), + suppressTokens) + : new Recognizer(tb.extractTrie(), partition.map()))); + // FIXME give more information + for (size_t j = 0; j < ambiguities.size(); j += 2) + message(ParserMessages::lexicalAmbiguity, + TokenMessageArg(ambiguities[j], modes[i], syntaxPointer(), + sdPointer()), + TokenMessageArg(ambiguities[j + 1], modes[i], syntaxPointer(), + sdPointer())); + } +} + +void Parser::compileNormalMap() +{ + XcharMap map(0); + ISetIter sgmlCharIter(*syntax().charSet(Syntax::sgmlChar)); + Char min, max; + while (sgmlCharIter.next(min, max)) + map.setRange(min, max, 1); + ModeInfo iter(mconnetMode, sd()); + TokenInfo ti; + while (iter.nextToken(&ti)) { + switch (ti.type) { + case TokenInfo::delimType: + case TokenInfo::delimDelimType: + case TokenInfo::delimSetType: + { + const StringC &delim = syntax().delimGeneral(ti.delim1); + if (!delim.size()) + break; + Char c = delim[0]; + map.setChar(c, 0); + StringC str(syntax().generalSubstTable()->inverse(c)); + for (size_t i = 0; i < str.size(); i++) + map.setChar(str[i], 0); + } + break; + case TokenInfo::setType: + if (ti.token != tokenChar) { + ISetIter setIter(*syntax().charSet(ti.set)); + Char min, max; + while (setIter.next(min, max)) + map.setRange(min, max, 0); + } + break; + case TokenInfo::functionType: + if (ti.token != tokenChar) + map.setChar(syntax().standardFunction(ti.function), 0); + break; + } + } + int nShortref = currentDtd().nShortref(); + for (int i = 0; i < nShortref; i++) { + Char c = currentDtd().shortref(i)[0]; + if (c == sd().execToInternal('B')) { + ISetIter setIter(*syntax().charSet(Syntax::blank)); + Char min, max; + while (setIter.next(min, max)) + map.setRange(min, max, 0); + } + else { + map.setChar(c, 0); + StringC str(syntax().generalSubstTable()->inverse(c)); + for (size_t j = 0; j < str.size(); j++) + map.setChar(str[j], 0); + } + } + setNormalMap(map); +} + +void Parser::addNeededShortrefs(Dtd &dtd, const Syntax &syntax) +{ + if (!syntax.hasShortrefs()) + return; + PackedBoolean delimRelevant[Syntax::nDelimGeneral]; + size_t i; + for (i = 0; i < Syntax::nDelimGeneral; i++) + delimRelevant[i] = 0; + ModeInfo iter(mconnetMode, sd()); + TokenInfo ti; + while (iter.nextToken(&ti)) { + switch (ti.type) { + case TokenInfo::delimType: + case TokenInfo::delimDelimType: + case TokenInfo::delimSetType: + delimRelevant[ti.delim1] = 1; + break; + default: + break; + } + } + + // PIO and NET are the only delimiters that are recognized in con + // mode without context. If a short reference delimiter is + // identical to one of these delimiters, then we'll have an + // ambiguity. We make such a short reference delimiter needed + // to ensure that this ambiguity is reported. + if (syntax.isValidShortref(syntax.delimGeneral(Syntax::dPIO))) + dtd.addNeededShortref(syntax.delimGeneral(Syntax::dPIO)); + if (syntax.isValidShortref(syntax.delimGeneral(Syntax::dNET))) + dtd.addNeededShortref(syntax.delimGeneral(Syntax::dNET)); + + size_t nShortrefComplex = syntax.nDelimShortrefComplex(); + + // A short reference delimiter is needed if it is used or if it can + // contains some other shorter delimiter that is either a relevant general + // delimiter or a shortref delimiter that is used. + + for (i = 0; i < nShortrefComplex; i++) { + size_t j; + for (j = 0; j < Syntax::nDelimGeneral; j++) + if (delimRelevant[j] + && shortrefCanPreemptDelim(syntax.delimShortrefComplex(i), + syntax.delimGeneral(j), + 0, + syntax)) { + dtd.addNeededShortref(syntax.delimShortrefComplex(i)); + break; + } + for (j = 0; j < dtd.nShortref(); j++) + if (shortrefCanPreemptDelim(syntax.delimShortrefComplex(i), + dtd.shortref(j), + 1, + syntax)) { + dtd.addNeededShortref(syntax.delimShortrefComplex(i)); + break; + } + } + +} + +Boolean Parser::shortrefCanPreemptDelim(const StringC &sr, + const StringC &d, + Boolean dIsSr, + const Syntax &syntax) +{ + Char letterB = sd().execToInternal('B'); + for (size_t i = 0; i < sr.size(); i++) { + size_t j = 0; + size_t k = i; + for (;;) { + if (j == d.size()) + return 1; + if (k >= sr.size()) + break; + if (sr[k] == letterB) { + if (dIsSr && d[j] == letterB) { + j++; + k++; + } + else if (syntax.isB(d[j])) { + j++; + k++; + if (k == sr.size() || sr[k] != letterB) { + // it was the last B in the sequence + while (j < d.size() && syntax.isB(d[j])) + j++; + } + } + else + break; + } + else if (dIsSr && d[j] == letterB) { + if (syntax.isB(sr[k])) { + ++j; + ++k; + if (j < d.size() && d[j] != letterB) { + while (k < sr.size() && syntax.isB(sr[k])) + k++; + } + } + else + break; + } + else if (d[j] == sr[k]) { + j++; + k++; + } + else + break; + } + } + return 0; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/parseParam.cxx b/lib/parseParam.cxx new file mode 100644 index 0000000..6ec9c0f --- /dev/null +++ b/lib/parseParam.cxx @@ -0,0 +1,1084 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "Parser.h" +#include "Param.h" +#include "Group.h" +#include "Markup.h" +#include "ParserMessages.h" +#include "MessageArg.h" +#include "TokenMessageArg.h" +#include "token.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +Boolean Parser::parseParam(const AllowedParams &allow, + unsigned declInputLevel, + Param &parm) +{ + for (;;) { + Token token = getToken(allow.mainMode()); + switch (token) { + case tokenUnrecognized: + if (reportNonSgmlCharacter()) + break; + { + message(ParserMessages::markupDeclarationCharacter, + StringMessageArg(currentToken()), + AllowedParamsMessageArg(allow, syntaxPointer())); + } + return 0; + case tokenEe: + if (inputLevel() <= declInputLevel) { + message(ParserMessages::declarationLevel); + return 0; + } + if (currentMarkup()) + currentMarkup()->addEntityEnd(); + popInputStack(); + break; + case tokenCom: + if (!parseComment(comMode)) + return 0; + if (options().warnPsComment) + message(ParserMessages::psComment); + break; + case tokenDso: + if (!allow.dso()) { + paramInvalidToken(tokenDso, allow); + return 0; + } + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dDSO); + parm.type = Param::dso; + return 1; + case tokenGrpo: + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dGRPO); + switch (allow.group()) { + case Param::invalid: + paramInvalidToken(tokenGrpo, allow); + return 0; + case Param::modelGroup: + { + ModelGroup *group; + if (!parseModelGroup(1, declInputLevel, group, grpsufMode)) + return 0; + parm.type = Param::modelGroup; + parm.modelGroupPtr = group; + } + break; + case Param::nameGroup: + if (!parseNameGroup(declInputLevel, parm)) + return 0; + break; + case Param::nameTokenGroup: + if (!parseNameTokenGroup(declInputLevel, parm)) + return 0; + break; + default: + CANNOT_HAPPEN(); + } + parm.type = allow.group(); + return 1; + case tokenLita: + case tokenLit: + parm.type = allow.literal(); + parm.lita = token == tokenLita; + switch (allow.literal()) { + case Param::invalid: + paramInvalidToken(token, allow); + return 0; + case Param::minimumLiteral: + if (!parseMinimumLiteral(parm.lita, parm.literalText)) + return 0; + break; + case Param::attributeValueLiteral: + if (!parseAttributeValueLiteral(parm.lita, parm.literalText)) + return 0; + break; + case Param::tokenizedAttributeValueLiteral: + if (!parseTokenizedAttributeValueLiteral(parm.lita, parm.literalText)) + return 0; + break; + case Param::systemIdentifier: + if (!parseSystemIdentifier(parm.lita, parm.literalText)) + return 0; + break; + case Param::paramLiteral: + if (!parseParameterLiteral(parm.lita, parm.literalText)) + return 0; + break; + } + if (currentMarkup()) + currentMarkup()->addLiteral(parm.literalText); + return 1; + case tokenMdc: + if (!allow.mdc()) { + paramInvalidToken(tokenMdc, allow); + return 0; + } + if (inputLevel() > declInputLevel) + message(ParserMessages::parameterEntityNotEnded); + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dMDC); + parm.type = Param::mdc; + return 1; + case tokenMinus: + parm.type = Param::minus; + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dMINUS); + return 1; + case tokenMinusGrpo: + if (!allow.exclusions()) { + paramInvalidToken(tokenMinusGrpo, allow); + return 0; + } + if (currentMarkup()) { + currentMarkup()->addDelim(Syntax::dMINUS); + currentMarkup()->addDelim(Syntax::dGRPO); + } + parm.type = Param::exclusions; + return parseElementNameGroup(declInputLevel, parm); + case tokenPero: + parm.type = Param::pero; + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dPERO); + return 1; + case tokenPeroGrpo: + if (!inInstance()) + message(ParserMessages::peroGrpoProlog); + // fall through + case tokenPeroNameStart: + { + if (inInstance()) { + if (options().warnInstanceParamEntityRef) + message(ParserMessages::instanceParamEntityRef); + } + else { + if (options().warnInternalSubsetPsParamEntityRef && inputLevel() == 1) + message(ParserMessages::internalSubsetPsParamEntityRef); + } + ConstPtr entity; + Ptr origin; + if (!parseEntityReference(1, token == tokenPeroGrpo, entity, origin)) + return 0; + if (!entity.isNull()) + entity->declReference(*this, origin); + } + break; + case tokenPlusGrpo: + if (!allow.inclusions()) { + paramInvalidToken(tokenPlusGrpo, allow); + return 0; + } + if (currentMarkup()) { + currentMarkup()->addDelim(Syntax::dPLUS); + currentMarkup()->addDelim(Syntax::dGRPO); + } + parm.type = Param::inclusions; + return parseElementNameGroup(declInputLevel, parm); + case tokenRni: + if (!allow.rni()) { + paramInvalidToken(tokenRni, allow); + return 0; + } + return parseIndicatedReservedName(allow, parm); + case tokenS: + if (currentMarkup()) + currentMarkup()->addS(currentChar()); + break; + case tokenNameStart: + switch (allow.nameStart()) { + case Param::invalid: + paramInvalidToken(tokenNameStart, allow); + return 0; + case Param::reservedName: + return parseReservedName(allow, parm); + case Param::name: + { + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + parm.type = Param::name; + getCurrentToken(parm.origToken); + parm.token = StringC(parm.origToken); + const SubstTable *subst = syntax().generalSubstTable(); + StringC::iterator s = parm.token.begin(); + size_t count = parm.token.size(); + const Char *tokenData = parm.token.data(); + for (; count > 0; --count) + *s++ = (*subst)[*tokenData++]; + if (currentMarkup()) + currentMarkup()->addName(currentInput()); + return 1; + } + case Param::entityName: + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + parm.type = Param::entityName; + getCurrentToken(syntax().entitySubstTable(), parm.token); + if (currentMarkup()) + currentMarkup()->addName(currentInput()); + return 1; + case Param::paramEntityName: + extendNameToken(syntax().penamelen(), + ParserMessages::parameterEntityNameLength); + parm.type = Param::paramEntityName; + getCurrentToken(syntax().entitySubstTable(), parm.token); + if (currentMarkup()) + currentMarkup()->addName(currentInput()); + return 1; + case Param::attributeValue: + return parseAttributeValueParam(parm); + } + break; + case tokenDigit: + switch (allow.digit()) { + case Param::invalid: + paramInvalidToken(tokenDigit, allow); + return 0; + case Param::number: + extendNumber(syntax().namelen(), ParserMessages::numberLength); + parm.type = Param::number; + getCurrentToken(parm.token); + if (currentMarkup()) + currentMarkup()->addNumber(currentInput()); + return 1; + case Param::attributeValue: + return parseAttributeValueParam(parm); + } + break; + case tokenLcUcNmchar: + switch (allow.nmchar()) { + case Param::invalid: + paramInvalidToken(tokenLcUcNmchar, allow); + return 0; + case Param::attributeValue: + return parseAttributeValueParam(parm); + } + break; + default: + CANNOT_HAPPEN(); + } + } +} + +void Parser::paramInvalidToken(Token token, const AllowedParams &allow) +{ + if (!allow.silent()) + message(ParserMessages::paramInvalidToken, + TokenMessageArg(token, allow.mainMode(), + syntaxPointer(), sdPointer()), + AllowedParamsMessageArg(allow, syntaxPointer())); +} + +Boolean Parser::parseGroupToken(const AllowedGroupTokens &allow, + unsigned nestingLevel, + unsigned declInputLevel, + unsigned groupInputLevel, + GroupToken >) +{ + for (;;) { + Token token = getToken(grpMode); + switch (token) { + case tokenEe: + if (inputLevel() <= groupInputLevel) { + message(ParserMessages::groupLevel); + if (inputLevel() <= declInputLevel) + return 0; + } + else if (!sd().www()) + message(ParserMessages::groupEntityEnd); + if (currentMarkup()) + currentMarkup()->addEntityEnd(); + popInputStack(); + break; + case tokenPeroGrpo: + { + if (!inInstance()) + message(ParserMessages::peroGrpoProlog); + Boolean start; + if (inTag(start)) + message(start + ? ParserMessages::peroGrpoStartTag + : ParserMessages::peroGrpoEndTag); + // fall through + } + case tokenPeroNameStart: + { + if (options().warnInternalSubsetTsParamEntityRef && inputLevel() == 1) + message(ParserMessages::internalSubsetTsParamEntityRef); + ConstPtr entity; + Ptr origin; + if (!parseEntityReference(1, token == tokenPeroGrpo, entity, origin)) + return 0; + if (!entity.isNull()) + entity->declReference(*this, origin); + } + break; + case tokenUnrecognized: + if (reportNonSgmlCharacter()) + break; + { + message(ParserMessages::groupCharacter, + StringMessageArg(currentToken()), + AllowedGroupTokensMessageArg(allow, syntaxPointer())); + } + return 0; + case tokenDtgo: + if (!allow.groupToken(GroupToken::dataTagGroup)) { + groupTokenInvalidToken(tokenDtgo, allow); + return 0; + } + if (sd().datatag()) + message(ParserMessages::datatagNotImplemented); + if (!defDtd().isBase()) + message(ParserMessages::datatagBaseDtd); + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dDTGO); + return parseDataTagGroup(nestingLevel + 1, declInputLevel, gt); + case tokenGrpo: + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dGRPO); + switch (allow.group()) { + case GroupToken::modelGroup: + { + ModelGroup *modelGroup; + if (!parseModelGroup(nestingLevel + 1, declInputLevel, modelGroup, + grpMode)) + return 0; + gt.model = modelGroup; + gt.type = GroupToken::modelGroup; + return 1; + } + case GroupToken::dataTagTemplateGroup: + return parseDataTagTemplateGroup(nestingLevel + 1, declInputLevel, gt); + default: + groupTokenInvalidToken(tokenGrpo, allow); + return 0; + } + break; + case tokenRni: + if (!allow.groupToken(GroupToken::pcdata) + && !allow.groupToken(GroupToken::all) + && !allow.groupToken(GroupToken::implicit)) { + groupTokenInvalidToken(tokenRni, allow); + return 0; + } + Syntax::ReservedName rn; + if (!getIndicatedReservedName(&rn)) + return 0; + if (rn == Syntax::rPCDATA && allow.groupToken(GroupToken::pcdata)) { + gt.type = GroupToken::pcdata; + gt.contentToken = new PcdataToken; + return 1; + } + else if (rn == Syntax::rALL && allow.groupToken(GroupToken::all)) { + message(ParserMessages::sorryAllImplicit); + return 0; + } + else if (rn == Syntax::rIMPLICIT && allow.groupToken(GroupToken::implicit)) { + message(ParserMessages::sorryAllImplicit); + return 0; + } + else { + StringC token(syntax().delimGeneral(Syntax::dRNI)); + token += syntax().reservedName(rn); + message(ParserMessages::invalidToken, StringMessageArg(token)); + return 0; + } + case tokenS: + if (currentMarkup()) { + extendS(); + currentMarkup()->addS(currentInput()); + } + break; + case tokenNameStart: + switch (allow.nameStart()) { + case GroupToken::elementToken: + { + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + gt.type = GroupToken::elementToken; + StringC &buffer = nameBuffer(); + getCurrentToken(syntax().generalSubstTable(), buffer); + if (currentMarkup()) + currentMarkup()->addName(currentInput()); + const ElementType *e = lookupCreateElement(buffer); + ContentToken::OccurrenceIndicator oi + = getOccurrenceIndicator(grpMode); + gt.contentToken = new ElementToken(e, oi); + return 1; + } + case GroupToken::name: + case GroupToken::nameToken: + extendNameToken(syntax().namelen(), + token == GroupToken::name + ? ParserMessages::nameLength + : ParserMessages::nameTokenLength); + getCurrentToken(syntax().generalSubstTable(), gt.token); + gt.type = allow.nameStart(); + if (currentMarkup()) { + if (gt.type == GroupToken::nameToken) + currentMarkup()->addNameToken(currentInput()); + else + currentMarkup()->addName(currentInput()); + } + return 1; + default: + groupTokenInvalidToken(tokenNameStart, allow); + return 0; + } + case tokenDigit: + case tokenLcUcNmchar: + if (!allow.groupToken(GroupToken::nameToken)) { + groupTokenInvalidToken(token, allow); + return 0; + } + extendNameToken(syntax().namelen(), ParserMessages::nameTokenLength); + getCurrentToken(syntax().generalSubstTable(), gt.token); + gt.type = GroupToken::nameToken; + if (currentMarkup()) + currentMarkup()->addNameToken(currentInput()); + return 1; + case tokenLit: + case tokenLita: + // parameter literal in data tag pattern + if (!allow.groupToken(GroupToken::dataTagLiteral)) { + groupTokenInvalidToken(token, allow); + return 0; + } + if (!parseDataTagParameterLiteral(token == tokenLita, gt.text)) + return 0; + gt.type = GroupToken::dataTagLiteral; + if (currentMarkup()) + currentMarkup()->addLiteral(gt.text); + return 1; + case tokenAnd: + case tokenSeq: + case tokenOr: + case tokenDtgc: + case tokenGrpc: + case tokenOpt: + case tokenPlus: + case tokenRep: + groupTokenInvalidToken(token, allow); + return 0; + } + } +} + + +void Parser::groupTokenInvalidToken(Token token, const AllowedGroupTokens &allow) +{ + message(ParserMessages::groupTokenInvalidToken, + TokenMessageArg(token, grpMode, syntaxPointer(), sdPointer()), + AllowedGroupTokensMessageArg(allow, syntaxPointer())); +} + + +Boolean Parser::parseGroupConnector(const AllowedGroupConnectors &allow, + unsigned declInputLevel, + unsigned groupInputLevel, + GroupConnector &gc) +{ + for (;;) { + Token token = getToken(grpMode); + switch (token) { + case tokenEe: + if (inputLevel() <= groupInputLevel) { + message(ParserMessages::groupLevel); + if (inputLevel() <= declInputLevel) + return 0; + } + if (currentMarkup()) + currentMarkup()->addEntityEnd(); + popInputStack(); + break; + case tokenS: + if (currentMarkup()) { + extendS(); + currentMarkup()->addS(currentInput()); + } + break; + case tokenPeroGrpo: + if (inInstance()) { + message(ParserMessages::peroGrpoProlog); + break; + } + // fall through + case tokenPeroNameStart: + if (!sd().www()) + message(ParserMessages::groupEntityReference); + else { + ConstPtr entity; + Ptr origin; + if (!parseEntityReference(1, token == tokenPeroGrpo, entity, origin)) + return 0; + if (!entity.isNull()) + entity->declReference(*this, origin); + } + break; + case tokenUnrecognized: + if (reportNonSgmlCharacter()) + break; + { + message(ParserMessages::groupCharacter, + StringMessageArg(currentToken()), + AllowedGroupConnectorsMessageArg(allow, syntaxPointer())); + } + return 0; + case tokenAnd: + if (!allow.groupConnector(GroupConnector::andGC)) { + groupConnectorInvalidToken(tokenAnd, allow); + return 0; + } + gc.type = GroupConnector::andGC; + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dAND); + return 1; + case tokenSeq: + if (!allow.groupConnector(GroupConnector::seqGC)) { + groupConnectorInvalidToken(tokenSeq, allow); + return 0; + } + gc.type = GroupConnector::seqGC; + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dSEQ); + return 1; + case tokenOr: + if (!allow.groupConnector(GroupConnector::orGC)) { + groupConnectorInvalidToken(tokenOr, allow); + return 0; + } + gc.type = GroupConnector::orGC; + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dOR); + return 1; + case tokenDtgc: + if (!allow.groupConnector(GroupConnector::dtgcGC)) { + groupConnectorInvalidToken(tokenDtgc, allow); + return 0; + } + gc.type = GroupConnector::dtgcGC; + if (inputLevel() > groupInputLevel) + message(ParserMessages::groupParameterEntityNotEnded); + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dDTGC); + return 1; + case tokenGrpc: + if (!allow.groupConnector(GroupConnector::grpcGC)) { + groupConnectorInvalidToken(tokenGrpc, allow); + return 0; + } + gc.type = GroupConnector::grpcGC; + if (inputLevel() > groupInputLevel) + message(ParserMessages::groupParameterEntityNotEnded); + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dGRPC); + return 1; + default: + groupConnectorInvalidToken(token, allow); + return 0; + } + } +} + +void Parser::groupConnectorInvalidToken(Token token, + const AllowedGroupConnectors &allow) +{ + message(ParserMessages::connectorInvalidToken, + TokenMessageArg(token, grpMode, syntaxPointer(), sdPointer()), + AllowedGroupConnectorsMessageArg(allow, syntaxPointer())); +} + +static AllowedGroupTokens allowName(GroupToken::name); + +Boolean Parser::parseElementNameGroup(unsigned declInputLevel, Param &parm) +{ + static AllowedGroupTokens allowCommonName(GroupToken::name, + GroupToken::all, + GroupToken::implicit); + if (!parseGroup(sd().www() ? allowCommonName : allowName, declInputLevel, parm)) + return 0; + parm.elementVector.resize(parm.nameTokenVector.size()); + for (size_t i = 0; i < parm.nameTokenVector.size(); i++) + parm.elementVector[i] = lookupCreateElement(parm.nameTokenVector[i].name); + return 1; +} + +Boolean Parser::parseEntityReferenceNameGroup(Boolean &ignore) +{ + Param parm; + if (!parseNameGroup(inputLevel(), parm)) + return 0; + if (inInstance()) { + for (size_t i = 0; i < parm.nameTokenVector.size(); i++) { + const Lpd *lpd = lookupLpd(parm.nameTokenVector[i].name).pointer(); + if (lpd && lpd->active()) { + ignore = 0; + return 1; + } + Ptr dtd = lookupDtd(parm.nameTokenVector[i].name).pointer(); + if (!dtd.isNull()) { + instantiateDtd(dtd); + if (currentDtdPointer() == dtd) { + ignore = 0; + return 1; + } + } + } + } + ignore = 1; + return 1; +} + +Boolean Parser::parseTagNameGroup(Boolean &active, Boolean start) +{ + Param parm; + enterTag(start); + Boolean ret = parseNameGroup(inputLevel(), parm); + leaveTag(); + if (!ret) + return 0; + active = 0; + for (size_t i = 0; i < parm.nameTokenVector.size(); i++) { + Ptr dtd = lookupDtd(parm.nameTokenVector[i].name).pointer(); + if (!dtd.isNull()) { + instantiateDtd(dtd); + if (currentDtdPointer() == dtd) + active = 1; + } + } + return 1; +} + +Boolean Parser::parseNameGroup(unsigned declInputLevel, Param &parm) +{ + return parseGroup(allowName, declInputLevel, parm); +} + +Boolean Parser::parseNameTokenGroup(unsigned declInputLevel, Param &parm) +{ + static AllowedGroupTokens allowNameToken(GroupToken::nameToken); + return parseGroup(allowNameToken, declInputLevel, parm); +} + +static +Boolean groupContains(const Vector &vec, const StringC &str) +{ + for (size_t i = 0; i < vec.size(); i++) + if (vec[i].name == str) + return 1; + return 0; +} + +Boolean Parser::parseGroup(const AllowedGroupTokens &allowToken, + unsigned declInputLevel, + Param &parm) +{ + unsigned groupInputLevel = inputLevel(); + int nDuplicates = 0; + Vector &vec = parm.nameTokenVector; + vec.clear(); + GroupConnector::Type connector = GroupConnector::grpcGC; + GroupToken gt; + for (;;) { + if (!parseGroupToken(allowToken, 0, declInputLevel, groupInputLevel, gt)) + return 0; + if (groupContains(vec, gt.token)) { + nDuplicates++; + message(ParserMessages::duplicateGroupToken, + StringMessageArg(gt.token)); + } + else { + vec.resize(vec.size() + 1); + gt.token.swap(vec.back().name); + getCurrentToken(vec.back().origName); + vec.back().loc = currentLocation(); + } + GroupConnector gc; + static AllowedGroupConnectors allowAnyConnectorGrpc(GroupConnector::orGC, + GroupConnector::andGC, + GroupConnector::seqGC, + GroupConnector::grpcGC); + + if (!parseGroupConnector(allowAnyConnectorGrpc, declInputLevel, + groupInputLevel, gc)) + return 0; + if (gc.type == GroupConnector::grpcGC) + break; + if (options().warnNameGroupNotOr) { + if (gc.type != GroupConnector::orGC) + message(ParserMessages::nameGroupNotOr); + } + else if (options().warnShould) { + if (connector == GroupConnector::grpcGC) + connector = gc.type; + else if (gc.type != connector) { + message(ParserMessages::mixedConnectors); + connector = gc.type; + } + } + } + if (nDuplicates + vec.size() > syntax().grpcnt()) + message(ParserMessages::groupCount, NumberMessageArg(syntax().grpcnt())); + return 1; +} + +Boolean Parser::parseDataTagGroup(unsigned nestingLevel, + unsigned declInputLevel, GroupToken &result) +{ + if (nestingLevel - 1 == syntax().grplvl()) + message(ParserMessages::grplvl, NumberMessageArg(syntax().grplvl())); + unsigned groupInputLevel = inputLevel(); + GroupToken gt; + static AllowedGroupTokens allowName(GroupToken::name); + if (!parseGroupToken(allowName, nestingLevel, declInputLevel, + groupInputLevel, gt)) + return 0; + const ElementType *element = lookupCreateElement(gt.token); + GroupConnector gc; + static AllowedGroupConnectors allowSeq(GroupConnector::seqGC); + if (!parseGroupConnector(allowSeq, declInputLevel, groupInputLevel, gc)) + return 0; + static AllowedGroupTokens + allowDataTagLiteralDataTagTemplateGroup(GroupToken::dataTagLiteral, + GroupToken::dataTagTemplateGroup); + if (!parseGroupToken(allowDataTagLiteralDataTagTemplateGroup, + nestingLevel, + declInputLevel, + groupInputLevel, + gt)) + return 0; + Vector templates; + if (gt.type == GroupToken::dataTagTemplateGroup) + gt.textVector.swap(templates); + else { + templates.resize(1); + gt.text.swap(templates[0]); + } + static AllowedGroupConnectors allowSeqDtgc(GroupConnector::seqGC, + GroupConnector::dtgcGC); + if (!parseGroupConnector(allowSeqDtgc, declInputLevel, groupInputLevel, gc)) + return 0; + NCVector > vec(2); + vec[1] = new PcdataToken; + if (gc.type != GroupConnector::dtgcGC) { + static AllowedGroupTokens allowDataTagLiteral(GroupToken::dataTagLiteral); + if (!parseGroupToken(allowDataTagLiteral, + nestingLevel, + declInputLevel, + groupInputLevel, + gt)) + return 0; + vec[0] = new DataTagElementToken(element, templates, gt.text); + static AllowedGroupConnectors allowDtgc(GroupConnector::dtgcGC); + if (!parseGroupConnector(allowDtgc, declInputLevel, groupInputLevel, gc)) + return 0; + } + else + vec[0] = new DataTagElementToken(element, templates); + ContentToken::OccurrenceIndicator oi = getOccurrenceIndicator(grpMode); + result.contentToken = new DataTagGroup(vec, oi); + result.type = GroupToken::dataTagGroup; + return 1; +} + +Boolean Parser::parseDataTagTemplateGroup(unsigned nestingLevel, + unsigned declInputLevel, + GroupToken &result) +{ + if (nestingLevel - 1 == syntax().grplvl()) + message(ParserMessages::grplvl, NumberMessageArg(syntax().grplvl())); + unsigned groupInputLevel = inputLevel(); + Vector &vec = result.textVector; + for (;;) { + GroupToken gt; + static AllowedGroupTokens allowDataTagLiteral(GroupToken::dataTagLiteral); + if (!parseGroupToken(allowDataTagLiteral, + nestingLevel, + declInputLevel, + groupInputLevel, + gt)) + return 0; + if (vec.size() == syntax().grpcnt()) + message(ParserMessages::groupCount, NumberMessageArg(syntax().grpcnt())); + vec.resize(vec.size() + 1); + gt.text.swap(vec.back()); + static AllowedGroupConnectors allowOrGrpc(GroupConnector::orGC, + GroupConnector::grpcGC); + GroupConnector gc; + if (!parseGroupConnector(allowOrGrpc, declInputLevel, groupInputLevel, gc)) + return 0; + if (gc.type == GroupConnector::grpcGC) + break; + } + return 1; +} + +Boolean Parser::parseModelGroup(unsigned nestingLevel, unsigned declInputLevel, + ModelGroup *&group, Mode oiMode) +{ + if (nestingLevel - 1 == syntax().grplvl()) + message(ParserMessages::grplvl, NumberMessageArg(syntax().grplvl())); + unsigned groupInputLevel = inputLevel(); + GroupToken gt; + NCVector > tokenVector; + GroupConnector::Type connector = GroupConnector::grpcGC; + + static AllowedGroupTokens allowContentToken(GroupToken::pcdata, + GroupToken::dataTagGroup, + GroupToken::elementToken, + GroupToken::modelGroup); + static AllowedGroupTokens allowCommonContentToken(GroupToken::pcdata, + GroupToken::all, + GroupToken::implicit, + GroupToken::dataTagGroup, + GroupToken::elementToken, + GroupToken::modelGroup); + static AllowedGroupConnectors allowAnyConnectorGrpc(GroupConnector::orGC, + GroupConnector::andGC, + GroupConnector::seqGC, + GroupConnector::grpcGC); + + static AllowedGroupConnectors allowOrGrpc(GroupConnector::orGC, + GroupConnector::grpcGC); + static AllowedGroupConnectors allowAndGrpc(GroupConnector::andGC, + GroupConnector::grpcGC); + static AllowedGroupConnectors allowSeqGrpc(GroupConnector::seqGC, + GroupConnector::grpcGC); + const AllowedGroupConnectors *connectorp = &allowAnyConnectorGrpc; + + GroupConnector gc; + Boolean pcdataCheck = 0; + do { + if (!parseGroupToken(sd().www() ? allowCommonContentToken + : allowContentToken, + nestingLevel, declInputLevel, groupInputLevel, gt)) + return 0; + ContentToken *contentToken; + if (gt.type == GroupToken::modelGroup) + contentToken = gt.model.extract(); + else + contentToken = gt.contentToken.extract(); + if (tokenVector.size() == syntax().grpcnt()) + message(ParserMessages::groupCount, NumberMessageArg(syntax().grpcnt())); + tokenVector.resize(tokenVector.size() + 1); + tokenVector.back() = contentToken; + if (!parseGroupConnector(*connectorp, declInputLevel, groupInputLevel, gc)) + return 0; + if (options().warnMixedContentRepOrGroup && gt.type == GroupToken::pcdata) { + if (tokenVector.size() != 1) + message(ParserMessages::pcdataNotFirstInGroup); + else if (gc.type == GroupConnector::seqGC) + message(ParserMessages::pcdataInSeqGroup); + else + pcdataCheck = 1; + if (nestingLevel != 1) + message(ParserMessages::pcdataInNestedModelGroup); + } + else if (pcdataCheck) { + if (gt.type == GroupToken::modelGroup) + message(ParserMessages::pcdataGroupMemberModelGroup); + if (contentToken->occurrenceIndicator() != ContentToken::none) + message(ParserMessages::pcdataGroupMemberOccurrenceIndicator); + } + if (tokenVector.size() == 1) { + connector = gc.type; + switch (gc.type) { + case GroupConnector::orGC: + connectorp = &allowOrGrpc; + break; + case GroupConnector::seqGC: + connectorp = &allowSeqGrpc; + break; + case GroupConnector::andGC: + connectorp = &allowAndGrpc; + if (options().warnAndGroup) + message(ParserMessages::andGroup); + break; + default: + break; + } + } + } while (gc.type != GroupConnector::grpcGC); + ContentToken::OccurrenceIndicator oi + = getOccurrenceIndicator(oiMode); + switch (connector) { + case GroupConnector::orGC: + group = new OrModelGroup(tokenVector, oi); + if (pcdataCheck && oi != ContentToken::rep) + message(ParserMessages::pcdataGroupNotRep); + break; + case GroupConnector::grpcGC: + if (pcdataCheck && oi != ContentToken::rep && oi != ContentToken::none) + message(ParserMessages::pcdataGroupNotRep); + // fall through + case GroupConnector::seqGC: + group = new SeqModelGroup(tokenVector, oi); + break; + case GroupConnector::andGC: + group = new AndModelGroup(tokenVector, oi); + break; + default: + break; + } + return 1; +} + +ContentToken::OccurrenceIndicator +Parser::getOccurrenceIndicator(Mode oiMode) +{ + Token token = getToken(oiMode); + switch (token) { + case tokenPlus: + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dPLUS); + return ContentToken::plus; + case tokenOpt: + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dOPT); + return ContentToken::opt; + case tokenRep: + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dREP); + return ContentToken::rep; + default: + currentInput()->ungetToken(); + return ContentToken::none; + } +} + +Boolean Parser::parseMinimumLiteral(Boolean lita, Text &text) +{ + return parseLiteral(lita ? mlitaMode : mlitMode, mlitMode, + Syntax::referenceQuantity(Syntax::qLITLEN), + ParserMessages::minimumLiteralLength, + literalSingleSpace|literalMinimumData + |(eventsWanted().wantPrologMarkup() + ? literalDelimInfo + : 0), + text); +} + +Boolean Parser::parseSystemIdentifier(Boolean lita, Text &text) +{ + return parseLiteral(lita ? slitaMode : slitMode, slitMode, syntax().litlen(), + ParserMessages::systemIdentifierLength, + (eventsWanted().wantPrologMarkup() + ? literalDelimInfo + : 0), text); +} + +Boolean Parser::parseParameterLiteral(Boolean lita, Text &text) +{ + return parseLiteral(lita ? plitaMode : plitMode, pliteMode, syntax().litlen(), + ParserMessages::parameterLiteralLength, + (eventsWanted().wantPrologMarkup() + ? literalDelimInfo + : 0), + text); +} + +Boolean Parser::parseDataTagParameterLiteral(Boolean lita, Text &text) +{ + return parseLiteral(lita ? plitaMode : plitMode, pliteMode, + syntax().dtemplen(), + ParserMessages::dataTagPatternLiteralLength, + literalDataTag + | (eventsWanted().wantPrologMarkup() + ? literalDelimInfo + : 0), + text); +} + +Boolean Parser::parseIndicatedReservedName(const AllowedParams &allow, + Param &parm) +{ + Syntax::ReservedName rn; + if (!getIndicatedReservedName(&rn)) + return 0; + if (!allow.reservedName(rn)) { + message(ParserMessages::invalidReservedName, + StringMessageArg(currentToken())); + return 0; + } + parm.type = Param::indicatedReservedName + rn; + return 1; +} + +Boolean Parser::parseReservedName(const AllowedParams &allow, + Param &parm) +{ + Syntax::ReservedName rn; + if (!getReservedName(&rn)) + return 0; + if (!allow.reservedName(rn)) { + message(ParserMessages::invalidReservedName, + StringMessageArg(syntax().reservedName(rn))); + return 0; + } + parm.type = Param::reservedName + rn; + return 1; +} + + +Boolean Parser::parseAttributeValueParam(Param &parm) +{ + extendNameToken(syntax().litlen() > syntax().normsep() + ? syntax().litlen() - syntax().normsep() + : 0, + ParserMessages::attributeValueLength); + parm.type = Param::attributeValue; + Text text; + text.addChars(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + currentLocation()); + text.swap(parm.literalText); + if (currentMarkup()) + currentMarkup()->addAttributeValue(currentInput()); + return 1; +} + +Boolean Parser::getIndicatedReservedName(Syntax::ReservedName *result) +{ + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dRNI); + InputSource *in = currentInput(); + in->startToken(); + if (!syntax().isNameStartCharacter(in->tokenChar(messenger()))) { + message(ParserMessages::rniNameStart); + return 0; + } + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + StringC &buffer = nameBuffer(); + getCurrentToken(syntax().generalSubstTable(), buffer); + if (!syntax().lookupReservedName(buffer, result)) { + message(ParserMessages::noSuchReservedName, StringMessageArg(buffer)); + return 0; + } + if (currentMarkup()) + currentMarkup()->addReservedName(*result, currentInput()); + return 1; +} + +Boolean Parser::getReservedName(Syntax::ReservedName *result) +{ + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + StringC &buffer = nameBuffer(); + getCurrentToken(syntax().generalSubstTable(), buffer); + if (!syntax().lookupReservedName(buffer, result)) { + message(ParserMessages::noSuchReservedName, StringMessageArg(buffer)); + return 0; + } + if (currentMarkup()) + currentMarkup()->addReservedName(*result, currentInput()); + return 1; +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/parseSd.cxx b/lib/parseSd.cxx new file mode 100644 index 0000000..796fa88 --- /dev/null +++ b/lib/parseSd.cxx @@ -0,0 +1,3478 @@ +// Copyright (c) 1994, 1995, 1997 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" +#include "Parser.h" +#include "macros.h" +#include "SdFormalError.h" +#include "MessageBuilder.h" +#include "ParserMessages.h" +#include "MessageArg.h" +#include "CharsetRegistry.h" +#include "ISetIter.h" +#include "token.h" +#include "TokenMessageArg.h" +#include "constant.h" +#include "SdText.h" +#include "NumericCharRefOrigin.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class CharSwitcher { +public: + CharSwitcher(); + void addSwitch(WideChar from, WideChar to); + SyntaxChar subst(WideChar c); + size_t nSwitches() const; + Boolean switchUsed(size_t i) const; + WideChar switchFrom(size_t i) const; + WideChar switchTo(size_t i) const; +private: + Vector switchUsed_; + Vector switches_; +}; + +// Information about the SGML declaration being built. + +struct SdBuilder { + SdBuilder(); + void addFormalError(const Location &, const MessageType1 &, const StringC &); + Ptr sd; + Ptr syntax; + CharsetDecl syntaxCharsetDecl; + CharsetInfo syntaxCharset; + CharSwitcher switcher; + Boolean externalSyntax; + Boolean enr; + Boolean www; + Boolean valid; + Boolean external; + IList formalErrorList; +}; + +class CharsetMessageArg : public MessageArg { +public: + CharsetMessageArg(const ISet &set); + MessageArg *copy() const; + void append(MessageBuilder &) const; +private: + ISet set_; +}; + +struct SdParam { + typedef unsigned char Type; + enum { + invalid, + eE, + minimumLiteral, + mdc, + minus, + number, + capacityName, + name, + paramLiteral, + systemIdentifier, + generalDelimiterName, + referenceReservedName, + quantityName, + reservedName // Sd::ReservedName is added to this + }; + Type type; + StringC token; + Text literalText; + String paramLiteralText; + union { + Number n; + Sd::Capacity capacityIndex; + Syntax::Quantity quantityIndex; + Syntax::ReservedName reservedNameIndex; + Syntax::DelimGeneral delimGeneralIndex; + }; +}; + +class AllowedSdParams { +public: + AllowedSdParams(SdParam::Type, + SdParam::Type = SdParam::invalid, + SdParam::Type = SdParam::invalid, + SdParam::Type = SdParam::invalid, + SdParam::Type = SdParam::invalid, + SdParam::Type = SdParam::invalid); + Boolean param(SdParam::Type) const; + SdParam::Type get(int i) const; +private: + enum { maxAllow = 6 }; + SdParam::Type allow_[maxAllow]; +}; + +class AllowedSdParamsMessageArg : public MessageArg { +public: + AllowedSdParamsMessageArg(const AllowedSdParams &allow, + const ConstPtr &sd); + MessageArg *copy() const; + void append(MessageBuilder &) const; +private: + AllowedSdParams allow_; + ConstPtr sd_; +}; + +struct StandardSyntaxSpec { + struct AddedFunction { + const char *name; + Syntax::FunctionClass functionClass; + SyntaxChar syntaxChar; + }; + const AddedFunction *addedFunction; + size_t nAddedFunction; + Boolean shortref; +}; + +static StandardSyntaxSpec::AddedFunction coreFunctions[] = { + { "TAB", Syntax::cSEPCHAR, 9 }, +}; + +static StandardSyntaxSpec coreSyntax = { + coreFunctions, SIZEOF(coreFunctions), 0 +}; + +static StandardSyntaxSpec refSyntax = { + coreFunctions, SIZEOF(coreFunctions), 1 +}; + +void Parser::doInit() +{ + if (cancelled()) { + allDone(); + return; + } + // When document entity doesn't exist, don't give any errors + // other than the cannot open error. + if (currentInput()->get(messenger()) == InputSource::eE) { + if (currentInput()->accessError()) { + allDone(); + return; + } + } + else + currentInput()->ungetToken(); + const CharsetInfo &initCharset = sd().internalCharset(); + ISet missing; + findMissingMinimum(initCharset, missing); + if (!missing.isEmpty()) { + message(ParserMessages::sdMissingCharacters, CharsetMessageArg(missing)); + giveUp(); + return; + } + Boolean found = 0; + StringC systemId; + if (scanForSgmlDecl(initCharset)) { + if (options().warnExplicitSgmlDecl) + message(ParserMessages::explicitSgmlDecl); + found = 1; + } + else { + currentInput()->ungetToken(); + if (subdocLevel() > 0) + return; // will use parent Sd + if (entityCatalog().sgmlDecl(initCharset, messenger(), sysid_, systemId)) { + InputSource *in = entityManager().open(systemId, + sd().docCharset(), + InputSourceOrigin::make(), + 0, + messenger()); + if (in) { + pushInput(in); + if (scanForSgmlDecl(initCharset)) + found = 1; + else { + message(ParserMessages::badDefaultSgmlDecl); + popInputStack(); + } + } + } + } + if (found) { + if (startMarkup(eventsWanted().wantPrologMarkup(), currentLocation())) { + size_t nS = currentInput()->currentTokenLength() - 6; + for (size_t i = 0; i < nS; i++) + currentMarkup()->addS(currentInput()->currentTokenStart()[i]); + currentMarkup()->addDelim(Syntax::dMDO); + currentMarkup()->addSdReservedName(Sd::rSGML, + currentInput()->currentTokenStart() + + (currentInput()->currentTokenLength() - 4), + 4); + } + Syntax *syntaxp = new Syntax(sd()); + CharSwitcher switcher; + if (!setStandardSyntax(*syntaxp, refSyntax, sd().internalCharset(), switcher, 1)) { + giveUp(); + return; + } + syntaxp->implySgmlChar(sd()); + setSyntax(syntaxp); + compileSdModes(); + ConstPtr refSd(sdPointer()); + ConstPtr refSyntax(syntaxPointer()); + if (!parseSgmlDecl()) { + giveUp(); + return; + } + // queue an SGML declaration event + eventHandler().sgmlDecl(new (eventAllocator()) + SgmlDeclEvent(sdPointer(), + syntaxPointer(), + instanceSyntaxPointer(), + refSd, + refSyntax, + currentInput()->nextIndex(), + systemId, + markupLocation(), + currentMarkup())); + if (inputLevel() == 2) { + // FIXME perhaps check for junk after SGML declaration + popInputStack(); + } + } + else { + if (!implySgmlDecl()) { + giveUp(); + return; + } + currentInput()->willNotSetDocCharset(); + // queue an SGML declaration event + eventHandler().sgmlDecl(new (eventAllocator()) + SgmlDeclEvent(sdPointer(), + syntaxPointer())); + } + + // Now we have sd and syntax set up, prepare to parse the prolog. + compilePrologModes(); + setPhase(prologPhase); +} + +Boolean Parser::implySgmlDecl() +{ + Syntax *syntaxp = new Syntax(sd()); + const StandardSyntaxSpec *spec; + if (options().shortref) + spec = &refSyntax; + else + spec = &coreSyntax; + CharSwitcher switcher; + if (!setStandardSyntax(*syntaxp, *spec, sd().internalCharset(), switcher, 0)) + return 0; + syntaxp->implySgmlChar(sd()); + for (int i = 0; i < Syntax::nQuantity; i++) + syntaxp->setQuantity(i, options().quantity[i]); + setSyntax(syntaxp); + return 1; +} + +Boolean Parser::setStandardSyntax(Syntax &syn, + const StandardSyntaxSpec &spec, + const CharsetInfo &internalCharset, + CharSwitcher &switcher, + Boolean www) +{ + static UnivCharsetDesc::Range syntaxCharsetRanges[] = { + { 0, 128, 0 }, + }; + static UnivCharsetDesc syntaxCharsetDesc(syntaxCharsetRanges, + SIZEOF(syntaxCharsetRanges)); + static CharsetInfo syntaxCharset(syntaxCharsetDesc); + + Boolean valid = 1; + if (!checkSwitches(switcher, syntaxCharset)) + valid = 0; + size_t i; + for (i = 0; i < switcher.nSwitches(); i++) + if (switcher.switchTo(i) >= 128) + message(ParserMessages::switchNotInCharset, + NumberMessageArg(switcher.switchTo(i))); + static const Char shunchar[] = { + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 127, 255 + }; + + for (i = 0; i < SIZEOF(shunchar); i++) + syn.addShunchar(shunchar[i]); + syn.setShuncharControls(); + static Syntax::StandardFunction standardFunctions[3] = { + Syntax::fRE, Syntax::fRS, Syntax::fSPACE + }; + static SyntaxChar functionChars[3] = { 13, 10, 32 }; + for (i = 0; i < 3; i++) { + Char docChar; + if (translateSyntax(switcher, + syntaxCharset, + internalCharset, + functionChars[i], + docChar) + && checkNotFunction(syn, docChar)) + syn.setStandardFunction(standardFunctions[i], docChar); + else + valid = 0; + } + for (i = 0; i < spec.nAddedFunction; i++) { + Char docChar; + if (translateSyntax(switcher, + syntaxCharset, + internalCharset, + spec.addedFunction[i].syntaxChar, + docChar) + && checkNotFunction(syn, docChar)) + syn.addFunctionChar(internalCharset.execToDesc(spec.addedFunction[i].name), + spec.addedFunction[i].functionClass, + docChar); + else + valid = 0; + } + + static SyntaxChar nameChars[2] = { 45, 46 }; // '-' '.' + ISet nameCharSet; + for (i = 0; i < 2; i++) { + Char docChar; + if (translateSyntax(switcher, + syntaxCharset, + internalCharset, + nameChars[i], + docChar)) + nameCharSet.add(docChar); + else + valid = 0; + } + if (!checkNmchars(nameCharSet, syn)) + valid = 0; + else + syn.addNameCharacters(nameCharSet); + syn.setNamecaseGeneral(1); + syn.setNamecaseEntity(0); + if (!setRefDelimGeneral(syn, syntaxCharset, internalCharset, switcher)) + valid = 0; + setRefNames(syn, internalCharset, www); + syn.enterStandardFunctionNames(); + if (spec.shortref + && !addRefDelimShortref(syn, syntaxCharset, internalCharset, switcher)) + valid = 0; + return valid; +} + +Boolean Parser::setRefDelimGeneral(Syntax &syntax, + const CharsetInfo &syntaxCharset, + const CharsetInfo &internalCharset, + CharSwitcher &switcher) +{ + // Column 3 from Figure 3 + static const char delims[][2] = { + { 38 }, + { 45, 45 }, + { 38, 35 }, + { 93 }, + { 91 }, + { 93 }, + { 91 }, + { 38 }, + { 60, 47 }, + { 41 }, + { 40 }, + { 0 }, // HCRO + { 34 }, + { 39 }, + { 62 }, + { 60, 33 }, + { 45 }, + { 93, 93 }, + { 47 }, + { 47 }, // NESTC + { 63 }, + { 124 }, + { 37 }, + { 62 }, + { 60, 63 }, + { 43 }, + { 59 }, + { 42 }, + { 35 }, + { 44 }, + { 60 }, + { 62 }, + { 61 }, + }; + Boolean valid = 1; + ISet missing; + for (int i = 0; i < Syntax::nDelimGeneral; i++) + if (syntax.delimGeneral(i).size() == 0) { + StringC delim; + size_t j; + for (j = 0; j < 2 && delims[i][j] != '\0'; j++) { + UnivChar univChar = translateUniv(delims[i][j], switcher, + syntaxCharset); + Char c; + if (univToDescCheck(internalCharset, univChar, c)) + delim += c; + else { + missing += univChar; + valid = 0; + } + } + if (delim.size() == j) { + if (checkGeneralDelim(syntax, delim)) + syntax.setDelimGeneral(i, delim); + else + valid = 0; + } + } + if (!missing.isEmpty()) + message(ParserMessages::missingSignificant646, CharsetMessageArg(missing)); + return valid; +} + +void Parser::setRefNames(Syntax &syntax, const CharsetInfo &internalCharset, + Boolean www) +{ + static const char *const referenceNames[] = { + "ALL", + "ANY", + "ATTLIST", + "CDATA", + "CONREF", + "CURRENT", + "DATA", + "DEFAULT", + "DOCTYPE", + "ELEMENT", + "EMPTY", + "ENDTAG", + "ENTITIES", + "ENTITY", + "FIXED", + "ID", + "IDLINK", + "IDREF", + "IDREFS", + "IGNORE", + "IMPLICIT", + "IMPLIED", + "INCLUDE", + "INITIAL", + "LINK", + "LINKTYPE", + "MD", + "MS", + "NAME", + "NAMES", + "NDATA", + "NMTOKEN", + "NMTOKENS", + "NOTATION", + "NUMBER", + "NUMBERS", + "NUTOKEN", + "NUTOKENS", + "O", + "PCDATA", + "PI", + "POSTLINK", + "PUBLIC", + "RCDATA", + "RE", + "REQUIRED", + "RESTORE", + "RS", + "SDATA", + "SHORTREF", + "SIMPLE", + "SPACE", + "STARTTAG", + "SUBDOC", + "SYSTEM", + "TEMP", + "USELINK", + "USEMAP" + }; + for (int i = 0; i < Syntax::nNames; i++) { + switch (i) { + case Syntax::rDATA: + case Syntax::rIMPLICIT: + if (!www) + break; + // fall through + case Syntax::rALL: + if (!www && options().errorAfdr) + break; + // fall through + default: + { + StringC docName(internalCharset.execToDesc(referenceNames[i])); + Syntax::ReservedName tem; + if (syntax.lookupReservedName(docName, &tem)) + message(ParserMessages::nameReferenceReservedName, + StringMessageArg(docName)); + if (syntax.reservedName(Syntax::ReservedName(i)).size() == 0) + syntax.setName(i, docName); + break; + } + } + } +} + +Boolean Parser::addRefDelimShortref(Syntax &syntax, + const CharsetInfo &syntaxCharset, + const CharsetInfo &internalCharset, + CharSwitcher &switcher) +{ + // Column 2 from Figure 4 + static const char delimShortref[][3] = { + { 9 }, + { 13 }, + { 10 }, + { 10, 66 }, + { 10, 13 }, + { 10, 66, 13 }, + { 66, 13 }, + { 32 }, + { 66, 66 }, + { 34 }, + { 35 }, + { 37 }, + { 39 }, + { 40 }, + { 41 }, + { 42 }, + { 43 }, + { 44 }, + { 45 }, + { 45, 45 }, + { 58 }, + { 59 }, + { 61 }, + { 64 }, + { 91 }, + { 93 }, + { 94 }, + { 95 }, + { 123 }, + { 124 }, + { 125 }, + { 126 }, + }; + ISet missing; + + for (size_t i = 0; i < SIZEOF(delimShortref); i++) { + StringC delim; + + size_t j; + for (j = 0; j < 3 && delimShortref[i][j] != '\0'; j++) { + Char c; + UnivChar univChar = translateUniv(delimShortref[i][j], switcher, + syntaxCharset); + if (univToDescCheck(internalCharset, univChar, c)) + delim += c; + else + missing += univChar; + } + if (delim.size() == j) { + if (switcher.nSwitches() > 0 && syntax.isValidShortref(delim)) + message(ParserMessages::duplicateDelimShortref, + StringMessageArg(delim)); + else + syntax.addDelimShortref(delim, internalCharset); + } + } + if (!missing.isEmpty()) + message(ParserMessages::missingSignificant646, CharsetMessageArg(missing)); + return 1; +} + +// Determine whether the document starts with an SGML declaration. +// There is no current syntax at this point. + +Boolean Parser::scanForSgmlDecl(const CharsetInfo &initCharset) +{ + Char rs; + if (!univToDescCheck(initCharset, UnivCharsetDesc::rs, rs)) + return 0; + Char re; + if (!univToDescCheck(initCharset, UnivCharsetDesc::re, re)) + return 0; + Char space; + if (!univToDescCheck(initCharset, UnivCharsetDesc::space, space)) + return 0; + Char tab; + if (!univToDescCheck(initCharset, UnivCharsetDesc::tab, tab)) + return 0; + InputSource *in = currentInput(); + Xchar c = in->get(messenger()); + while (c == rs || c == space || c == re || c == tab) + c = in->tokenChar(messenger()); + if (c != initCharset.execToDesc('<')) + return 0; + if (in->tokenChar(messenger()) != initCharset.execToDesc('!')) + return 0; + c = in->tokenChar(messenger()); + if (c != initCharset.execToDesc('S') + && c != initCharset.execToDesc('s')) + return 0; + c = in->tokenChar(messenger()); + if (c != initCharset.execToDesc('G') + && c != initCharset.execToDesc('g')) + return 0; + c = in->tokenChar(messenger()); + if (c != initCharset.execToDesc('M') + && c != initCharset.execToDesc('m')) + return 0; + c = in->tokenChar(messenger()); + if (c != initCharset.execToDesc('L') + && c != initCharset.execToDesc('l')) + return 0; + c = in->tokenChar(messenger()); + // Don't recognize this if SGML is followed by a name character. + if (c == InputSource::eE) + return 1; + in->endToken(in->currentTokenLength() - 1); + if (c == initCharset.execToDesc('-')) + return 0; + if (c == initCharset.execToDesc('.')) + return 0; + UnivChar univ; + if (!initCharset.descToUniv(c, univ)) + return 1; + if (UnivCharsetDesc::a <= univ && univ < UnivCharsetDesc::a + 26) + return 0; + if (UnivCharsetDesc::A <= univ && univ < UnivCharsetDesc::A + 26) + return 0; + if (UnivCharsetDesc::zero <= univ && univ < UnivCharsetDesc::zero + 10) + return 0; + return 1; +} + +void Parser::findMissingMinimum(const CharsetInfo &charset, + ISet &missing) +{ + Char to; + size_t i; + for (i = 0; i < 26; i++) { + if (!univToDescCheck(charset, UnivCharsetDesc::A + i, to)) + missing += UnivCharsetDesc::A + i; + if (!univToDescCheck(charset, UnivCharsetDesc::a + i, to)) + missing += UnivCharsetDesc::a + i; + } + for (i = 0; i < 10; i++) { + Char to; + if (!univToDescCheck(charset, UnivCharsetDesc::zero + i, to)) + missing += UnivCharsetDesc::zero + i; + } + static const UnivChar special[] = { + 39, 40, 41, 43, 44, 45, 46, 47, 58, 61, 63 + }; + + for (i = 0; i < SIZEOF(special); i++) + if (!univToDescCheck(charset, special[i], to)) + missing += special[i]; +} + + +Boolean Parser::parseSgmlDecl() +{ + SdParam parm; + SdBuilder sdBuilder; + + if (!parseSdParam(AllowedSdParams(SdParam::minimumLiteral, SdParam::name), parm)) + return 0; + if (parm.type == SdParam::name) { + sdBuilder.external = 1; + Location loc(currentLocation()); + StringC name; + parm.token.swap(name); + ExternalId externalId; + if (!sdParseSgmlDeclRef(sdBuilder, parm, externalId)) + return 0; + ExternalEntity *entity + = new ExternalTextEntity(name, EntityDecl::sgml, loc, externalId); + ConstPtr entityPtr(entity); + entity->generateSystemId(*this); + if (entity->externalId().effectiveSystemId().size() == 0) { + message(ParserMessages::cannotGenerateSystemIdSgml); + return 0; + } + Ptr origin(EntityOrigin::make(internalAllocator(), entityPtr, loc)); + if (currentMarkup()) + currentMarkup()->addEntityStart(origin); + pushInput(entityManager().open(entity->externalId().effectiveSystemId(), + sd().docCharset(), + origin.pointer(), + 0, + messenger())); + if (!parseSdParam(AllowedSdParams(SdParam::minimumLiteral), parm)) + return 0; + } + StringC version(sd().execToInternal("ISO 8879:1986")); + StringC enrVersion(sd().execToInternal("ISO 8879:1986 (ENR)")); + StringC wwwVersion(sd().execToInternal("ISO 8879:1986 (WWW)")); + if (parm.literalText.string() == enrVersion) + sdBuilder.enr = 1; + else if (parm.literalText.string() == wwwVersion) { + sdBuilder.enr = 1; + sdBuilder.www = 1; + } + else if (parm.literalText.string() != version) + message(ParserMessages::standardVersion, + StringMessageArg(parm.literalText.string())); + if (sdBuilder.external && !sdBuilder.www) + message(ParserMessages::sgmlDeclRefRequiresWww); + sdBuilder.sd = new Sd(entityManagerPtr()); + if (sdBuilder.www) + sdBuilder.sd->setWww(1); + typedef Boolean (Parser::*SdParser)(SdBuilder &, SdParam &); + static SdParser parsers[] = { + &Parser::sdParseDocumentCharset, + &Parser::sdParseCapacity, + &Parser::sdParseScope, + &Parser::sdParseSyntax, + &Parser::sdParseFeatures, + &Parser::sdParseAppinfo, + &Parser::sdParseSeealso, + }; + for (size_t i = 0; i < SIZEOF(parsers); i++) { + if (!(this->*(parsers[i]))(sdBuilder, parm)) + return 0; + if (!sdBuilder.valid) + return 0; + } + setSdOverrides(*sdBuilder.sd); + if (sdBuilder.sd->formal()) { + while (!sdBuilder.formalErrorList.empty()) { + SdFormalError *p = sdBuilder.formalErrorList.get(); + ParserState *state = this; // work around lcc 3.0 bug + p->send(*state); + delete p; + } + } + setSd(sdBuilder.sd.pointer()); + currentInput()->setDocCharset(sd().docCharset(), entityManager().charset()); + if (sdBuilder.sd->scopeInstance()) { + Syntax *proSyntax = new Syntax(sd()); + CharSwitcher switcher; + setStandardSyntax(*proSyntax, refSyntax, sd().internalCharset(), switcher, sdBuilder.www); + proSyntax->setSgmlChar(*sdBuilder.syntax->charSet(Syntax::sgmlChar)); + ISet invalidSgmlChar; + proSyntax->checkSgmlChar(*sdBuilder.sd, + sdBuilder.syntax.pointer(), + 1, // get results in document character set + invalidSgmlChar); + sdBuilder.syntax->checkSgmlChar(*sdBuilder.sd, + proSyntax, + 1, // get results in document character set + invalidSgmlChar); + if (!invalidSgmlChar.isEmpty()) + message(ParserMessages::invalidSgmlChar, CharsetMessageArg(invalidSgmlChar)); + setSyntaxes(proSyntax, sdBuilder.syntax.pointer()); + } + else + setSyntax(sdBuilder.syntax.pointer()); + if (syntax().multicode()) + currentInput()->setMarkupScanTable(syntax().markupScanTable()); + return 1; +} + +Boolean Parser::sdParseSgmlDeclRef(SdBuilder &sdBuilder, SdParam &parm, + ExternalId &id) +{ + id.setLocation(currentLocation()); + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rSYSTEM, + SdParam::reservedName + Sd::rPUBLIC, + SdParam::mdc), + parm)) + return 0; + if (parm.type == SdParam::mdc) + return 1; + if (parm.type == SdParam::reservedName + Sd::rPUBLIC) { + if (!parseSdParam(AllowedSdParams(SdParam::minimumLiteral), parm)) + return 0; + const MessageType1 *err; + const MessageType1 *err1; + PublicId::TextClass textClass; + if (id.setPublic(parm.literalText, sd().internalCharset(), syntax().space(), err, err1) != PublicId::fpi) + sdBuilder.addFormalError(currentLocation(), *err, id.publicId()->string()); + else if (id.publicId()->getTextClass(textClass) + && textClass != PublicId::SD) + sdBuilder.addFormalError(currentLocation(), + ParserMessages::sdTextClass, + id.publicId()->string()); + } + if (!parseSdParam(AllowedSdParams(SdParam::systemIdentifier, SdParam::mdc), parm)) + return 0; + if (parm.type == SdParam::mdc) + return 1; + id.setSystem(parm.literalText); + return parseSdParam(AllowedSdParams(SdParam::mdc), parm); +} + +Boolean Parser::sdParseDocumentCharset(SdBuilder &sdBuilder, SdParam &parm) +{ + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rCHARSET), + parm)) + return 0; + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rBASESET), + parm)) + return 0; + CharsetDecl decl; + UnivCharsetDesc desc; + if (!sdParseCharset(sdBuilder, parm, 1, decl, desc)) + return 0; + ISet missing; + findMissingMinimum(desc, missing); + if (!missing.isEmpty()) { + message(ParserMessages::missingMinimumChars, + CharsetMessageArg(missing)); + return 0; + } + ISet sgmlChar; + decl.usedSet(sgmlChar); + sdBuilder.sd->setDocCharsetDesc(desc); + sdBuilder.sd->setDocCharsetDecl(decl); + sdBuilder.syntax = new Syntax(*sdBuilder.sd); + if (sd().internalCharsetIsDocCharset()) + sdBuilder.syntax->setSgmlChar(sgmlChar); + else { + ISet internalSgmlChar; + translateDocSet(sdBuilder.sd->docCharset(), sdBuilder.sd->internalCharset(), + sgmlChar, internalSgmlChar); + sdBuilder.syntax->setSgmlChar(internalSgmlChar); + } + return 1; +} + +void Parser::translateDocSet(const CharsetInfo &fromCharset, + const CharsetInfo &toCharset, + const ISet &fromSet, + ISet &toSet) +{ + ISetIter iter(fromSet); + Char min, max; + while (iter.next(min, max)) { + do { + UnivChar univChar; + Char internalChar; + WideChar count2, alsoMax; + if (!fromCharset.descToUniv(min, univChar, alsoMax)) { + if (alsoMax >= max) + break; + min = alsoMax; + } + else { + // FIXME better not to use univToDescCheck here + // Maybe OK if multiple internal chars corresponding to doc char + int nMap = univToDescCheck(toCharset, univChar, internalChar, count2); + if (alsoMax > max) + alsoMax = max; + if (alsoMax - min > count2 - 1) + alsoMax = min + (count2 - 1); + if (nMap) + toSet.addRange(internalChar, internalChar + (alsoMax - min)); + min = alsoMax; + } + } while (min++ != max); + } +} + +Boolean Parser::sdParseCharset(SdBuilder &sdBuilder, + SdParam &parm, + Boolean isDocument, + CharsetDecl &decl, + UnivCharsetDesc &desc) +{ + decl.clear(); + ISet multiplyDeclared; + // This is for checking whether the syntax reference character set + // is ISO 646 when SCOPE is INSTANCE. + Boolean maybeISO646 = 1; + do { + if (!parseSdParam(AllowedSdParams(SdParam::minimumLiteral), parm)) + return 0; + UnivCharsetDesc baseDesc; + PublicId id; + Boolean found; + PublicId::TextClass textClass; + const MessageType1 *err; + const MessageType1 *err1; + if (id.init(parm.literalText, sd().internalCharset(), syntax().space(), err, err1) != PublicId::fpi) + sdBuilder.addFormalError(currentLocation(), + *err, + id.string()); + else if (id.getTextClass(textClass) + && textClass != PublicId::CHARSET) + sdBuilder.addFormalError(currentLocation(), + ParserMessages::basesetTextClass, + id.string()); + Boolean givenError; + if (referencePublic(id, PublicId::CHARSET, givenError)) + found = sdParseExternalCharset(*sdBuilder.sd, baseDesc); + else if (!givenError) { + found = 0; + PublicId::OwnerType ownerType; + if (id.getOwnerType(ownerType) && ownerType == PublicId::ISO) { + StringC sequence; + if (id.getDesignatingSequence(sequence)) { + CharsetRegistry::ISORegistrationNumber number + = CharsetRegistry::getRegistrationNumber(sequence, sd().internalCharset()); + if (number != CharsetRegistry::UNREGISTERED) { + Owner iter(CharsetRegistry::makeIter(number)); + if (iter) { + found = 1; + WideChar min; + WideChar max; + UnivChar univ; + while (iter->next(min, max, univ)) + baseDesc.addRange(min, max, univ); + } + } + } + } + if (!found) + message(ParserMessages::unknownBaseset, StringMessageArg(id.string())); + } + else + found = 0; + if (!found) + maybeISO646 = 0; + decl.addSection(id); + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rDESCSET), + parm)) + return 0; + if (!parseSdParam(AllowedSdParams(SdParam::number), parm)) + return 0; + do { + WideChar min = parm.n; + if (!parseSdParam(AllowedSdParams(SdParam::number), parm)) + return 0; + Number count = parm.n; + Number adjCount; + if (options().warnSgmlDecl && count == 0) + message(ParserMessages::zeroNumberOfCharacters); + decl.rangeDeclared(min, count, multiplyDeclared); + if (isDocument + && count > 0 + && (min > charMax || count - 1 > charMax - min)) { + message(ParserMessages::documentCharMax, NumberMessageArg(charMax)); + adjCount = min > charMax ? 0 : 1 + (charMax - min); + maybeISO646 = 0; + } + else + adjCount = count; + if (!parseSdParam(AllowedSdParams(SdParam::number, + SdParam::minimumLiteral, + SdParam::reservedName + Sd::rUNUSED), + parm)) + return 0; + switch (parm.type) { + case SdParam::number: + decl.addRange(min, count, parm.n); + if (found && adjCount > 0) { + ISet baseMissing; + desc.addBaseRange(baseDesc, min, min + (adjCount - 1), parm.n, + baseMissing); + if (!baseMissing.isEmpty() && options().warnSgmlDecl) + message(ParserMessages::basesetCharsMissing, + CharsetMessageArg(baseMissing)); + } + break; + case SdParam::reservedName + Sd::rUNUSED: + decl.addRange(min, count); + break; + case SdParam::minimumLiteral: + { + UnivChar c = charNameToUniv(*sdBuilder.sd, parm.literalText.string()); + if (adjCount > 256) { + message(ParserMessages::tooManyCharsMinimumLiteral); + adjCount = 256; + } + for (Number i = 0; i < adjCount; i++) + desc.addRange(min + i, min + i, c); + } + maybeISO646 = 0; + decl.addRange(min, count, parm.literalText.string()); + break; + default: + CANNOT_HAPPEN(); + } + SdParam::Type follow = (isDocument + ? SdParam::reservedName + Sd::rCAPACITY + : SdParam::reservedName + Sd::rFUNCTION); + if (!parseSdParam(AllowedSdParams(SdParam::number, + SdParam::reservedName + Sd::rBASESET, + follow), + parm)) + return 0; + + } while (parm.type == SdParam::number); + } while (parm.type == SdParam::reservedName + Sd::rBASESET); + if (!multiplyDeclared.isEmpty()) + message(ParserMessages::duplicateCharNumbers, + CharsetMessageArg(multiplyDeclared)); + ISet declaredSet; + decl.declaredSet(declaredSet); + ISetIter iter(declaredSet); + WideChar min, max, lastMax; + if (iter.next(min, max)) { + ISet holes; + lastMax = max; + while (iter.next(min, max)) { + if (min - lastMax > 1) + holes.addRange(lastMax + 1, min - 1); + lastMax = max; + } + if (!holes.isEmpty()) + message(ParserMessages::codeSetHoles, CharsetMessageArg(holes)); + } + if (!isDocument && sdBuilder.sd->scopeInstance()) { + // If scope is INSTANCE, syntax reference character set + // must be same as reference. + UnivCharsetDescIter iter(desc); + WideChar descMin, descMax; + UnivChar univMin; + Char nextDescMin = 0; + while (maybeISO646) { + if (!iter.next(descMin, descMax, univMin)) { + if (nextDescMin != 128) + maybeISO646 = 0; + break; + } + if (descMin != nextDescMin || univMin != descMin) + maybeISO646 = 0; + nextDescMin = descMax + 1; + } + if (!maybeISO646) + message(ParserMessages::scopeInstanceSyntaxCharset); + } + return 1; +} + +Boolean Parser::sdParseExternalCharset(Sd &sd, UnivCharsetDesc &desc) +{ + SdParam parm; + for (;;) { + if (!parseSdParam(AllowedSdParams(SdParam::number, SdParam::eE), + parm)) + break; + if (parm.type == SdParam::eE) + return 1; + WideChar min = parm.n; + if (!parseSdParam(AllowedSdParams(SdParam::number), parm)) + break; + Number count = parm.n; + if (!parseSdParam(AllowedSdParams(SdParam::number, + SdParam::minimumLiteral, + SdParam::reservedName + Sd::rUNUSED), + parm)) + break; + if (parm.type == SdParam::number) { + if (count > 0) + desc.addRange(min, min + (count - 1), parm.n); + } + else if (parm.type == SdParam::minimumLiteral) { + UnivChar c = charNameToUniv(sd, parm.literalText.string()); + if (count > 256) { + message(ParserMessages::tooManyCharsMinimumLiteral); + count = 256; + } + for (Number i = 0; i < count; i++) + desc.addRange(min + i, min + i, c); + } + } + popInputStack(); + return 0; +} + +UnivChar Parser::charNameToUniv(Sd &sd, const StringC &name) +{ + UnivChar univ; + if (entityCatalog().lookupChar(name, sd.internalCharset(), messenger(), univ)) + return univ; + else + return sd.nameToUniv(name); +} + +Boolean Parser::sdParseCapacity(SdBuilder &sdBuilder, SdParam &parm) +{ + if (!parseSdParam(sdBuilder.www + ? AllowedSdParams(SdParam::reservedName + Sd::rNONE, + SdParam::reservedName + Sd::rPUBLIC, + SdParam::reservedName + Sd::rSGMLREF) + : AllowedSdParams(SdParam::reservedName + Sd::rPUBLIC, + SdParam::reservedName + Sd::rSGMLREF), + parm)) + return 0; +#if _MSC_VER == 1100 + // Workaround for Visual C++ 5.0 bug + int +#else + Boolean +#endif + pushed = 0; + if (parm.type == SdParam::reservedName + Sd::rNONE) + return parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rSCOPE), + parm); + if (parm.type == SdParam::reservedName + Sd::rPUBLIC) { + if (!parseSdParam(AllowedSdParams(SdParam::minimumLiteral), parm)) + return 0; + PublicId id; + PublicId::TextClass textClass; + const MessageType1 *err; + const MessageType1 *err1; + if (id.init(parm.literalText, sd().internalCharset(), syntax().space(), err, err1) != PublicId::fpi) + sdBuilder.addFormalError(currentLocation(), + *err, + id.string()); + else if (id.getTextClass(textClass) + && textClass != PublicId::CAPACITY) + sdBuilder.addFormalError(currentLocation(), + ParserMessages::capacityTextClass, + id.string()); + const StringC &str = id.string(); + if (str != sd().execToInternal("ISO 8879-1986//CAPACITY Reference//EN") + && str != sd().execToInternal("ISO 8879:1986//CAPACITY Reference//EN")) { + Boolean givenError; + if (referencePublic(id, PublicId::CAPACITY, givenError)) + pushed = 1; + else if (!givenError) + message(ParserMessages::unknownCapacitySet, StringMessageArg(str)); + } + if (!pushed) + return parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rSCOPE), + parm); + } + + PackedBoolean capacitySpecified[Sd::nCapacity]; + int i; + for (i = 0; i < Sd::nCapacity; i++) + capacitySpecified[i] = 0; + int final = pushed ? int(SdParam::eE) : SdParam::reservedName + Sd::rSCOPE; + if (!parseSdParam(sdBuilder.www + ? AllowedSdParams(SdParam::capacityName, final) + : AllowedSdParams(SdParam::capacityName), parm)) + return 0; + while (parm.type == SdParam::capacityName) { + Sd::Capacity capacityIndex = parm.capacityIndex; + if (!parseSdParam(AllowedSdParams(SdParam::number), parm)) + return 0; + + if (!capacitySpecified[capacityIndex]) { + sdBuilder.sd->setCapacity(capacityIndex, parm.n); + capacitySpecified[capacityIndex] = 1; + } + else if (options().warnSgmlDecl) + message(ParserMessages::duplicateCapacity, + StringMessageArg(sd().capacityName(i))); + if (!parseSdParam(AllowedSdParams(SdParam::capacityName, final), + parm)) + return 0; + } + Number totalcap = sdBuilder.sd->capacity(0); + for (i = 1; i < Sd::nCapacity; i++) + if (sdBuilder.sd->capacity(i) > totalcap) + message(ParserMessages::capacityExceedsTotalcap, + StringMessageArg(sd().capacityName(i))); + if (pushed) + return parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rSCOPE), + parm); + return 1; +} + +Boolean Parser::referencePublic(const PublicId &id, + PublicId::TextClass entityType, + Boolean &givenError) +{ + givenError = 0; + StringC sysid; + if (entityCatalog().lookupPublic(id.string(), + sd().internalCharset(), + messenger(), + sysid)) { + Location loc = currentLocation(); + eventHandler().sgmlDeclEntity(new (eventAllocator()) + SgmlDeclEntityEvent(id, + entityType, + sysid, + loc)); + Ptr origin(EntityOrigin::make(internalAllocator(), + ConstPtr(0), + loc)); + if (currentMarkup()) + currentMarkup()->addEntityStart(origin); + InputSource *in = entityManager().open(sysid, + sd().docCharset(), + origin.pointer(), + 0, + messenger()); + if (!in) { + givenError = 1; + return 0; + } + pushInput(in); + return 1; + } + return 0; +} + +Boolean Parser::sdParseScope(SdBuilder &sdBuilder, SdParam &parm) +{ + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rINSTANCE, + SdParam::reservedName + Sd::rDOCUMENT), + parm)) + return 0; + if (parm.type == SdParam::reservedName + Sd::rINSTANCE) + sdBuilder.sd->setScopeInstance(); + return 1; +} + +Boolean Parser::sdParseSyntax(SdBuilder &sdBuilder, SdParam &parm) +{ + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rSYNTAX), + parm)) + return 0; + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rSHUNCHAR, + SdParam::reservedName + Sd::rPUBLIC), + parm)) + return 0; + + if (parm.type == SdParam::reservedName + Sd::rPUBLIC) { + if (!parseSdParam(AllowedSdParams(SdParam::minimumLiteral), parm)) + return 0; + PublicId id; + const MessageType1 *err; + const MessageType1 *err1; + PublicId::TextClass textClass; + if (id.init(parm.literalText, sd().internalCharset(), syntax().space(), err, err1) != PublicId::fpi) + sdBuilder.addFormalError(currentLocation(), + *err, + id.string()); + else if (id.getTextClass(textClass) + && textClass != PublicId::SYNTAX) + sdBuilder.addFormalError(currentLocation(), + ParserMessages::syntaxTextClass, + id.string()); + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rFEATURES, + SdParam::reservedName + Sd::rSWITCHES), + parm)) + return 0; + Vector charSwitches; + if (parm.type == SdParam::reservedName + Sd::rSWITCHES) { + if (!parseSdParam(AllowedSdParams(SdParam::number), parm)) + return 0; + for (;;) { + SyntaxChar c = parm.n; + if (!parseSdParam(AllowedSdParams(SdParam::number), parm)) + return 0; + sdBuilder.switcher.addSwitch(c, parm.n); + if (!parseSdParam(AllowedSdParams(SdParam::number, + SdParam::reservedName + + Sd::rFEATURES), + parm)) + return 0; + if (parm.type != SdParam::number) + break; + } + } + const StandardSyntaxSpec *spec = lookupSyntax(id); + if (spec) { + if (!setStandardSyntax(*sdBuilder.syntax, + *spec, + sdBuilder.sd->internalCharset(), + sdBuilder.switcher, + sdBuilder.www)) + sdBuilder.valid = 0; + } + else { + Boolean givenError; + if (referencePublic(id, PublicId::SYNTAX, givenError)) { + sdBuilder.externalSyntax = 1; + SdParam parm2; + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + + Sd::rSHUNCHAR), + parm2)) + return 0; + if (!sdParseExplicitSyntax(sdBuilder, parm2)) + return 0; + } + else { + if (!givenError) + message(ParserMessages::unknownPublicSyntax, + StringMessageArg(id.string())); + sdBuilder.valid = 0; + } + } + } + else { + if (!sdParseExplicitSyntax(sdBuilder, parm)) + return 0; + } + if (!sdBuilder.sd->scopeInstance()) { + // we know the significant chars now + ISet invalidSgmlChar; + sdBuilder.syntax->checkSgmlChar(*sdBuilder.sd, + 0, + 1, + invalidSgmlChar); + if (!invalidSgmlChar.isEmpty()) + message(ParserMessages::invalidSgmlChar, CharsetMessageArg(invalidSgmlChar)); + } + checkSyntaxNames(*sdBuilder.syntax); + checkSyntaxNamelen(*sdBuilder.syntax); + checkSwitchesMarkup(sdBuilder.switcher); + return 1; +} + +Boolean Parser::sdParseExplicitSyntax(SdBuilder &sdBuilder, + SdParam &parm) +{ + typedef Boolean (Parser::*SdParser)(SdBuilder &, SdParam &); + static SdParser parsers[] = { + &Parser::sdParseShunchar, + &Parser::sdParseSyntaxCharset, + &Parser::sdParseFunction, + &Parser::sdParseNaming, + &Parser::sdParseDelim, + &Parser::sdParseNames, + &Parser::sdParseQuantity + }; + for (size_t i = 0; i < SIZEOF(parsers); i++) + if (!(this->*(parsers[i]))(sdBuilder, parm)) + return 0; + return 1; +} + +const StandardSyntaxSpec *Parser::lookupSyntax(const PublicId &id) +{ + PublicId::OwnerType ownerType; + if (!id.getOwnerType(ownerType) || ownerType != PublicId::ISO) + return 0; + StringC str; + if (!id.getOwner(str)) + return 0; + if (str != sd().execToInternal("ISO 8879:1986") + && str != sd().execToInternal("ISO 8879-1986")) + return 0; + PublicId::TextClass textClass; + if (!id.getTextClass(textClass) || textClass != PublicId::SYNTAX) + return 0; + if (!id.getDescription(str)) + return 0; + if (str == sd().execToInternal("Reference")) + return &refSyntax; + if (str == sd().execToInternal("Core")) + return &coreSyntax; + return 0; +} + +Boolean Parser::sdParseSyntaxCharset(SdBuilder &sdBuilder, SdParam &parm) +{ + UnivCharsetDesc desc; + if (!sdParseCharset(sdBuilder, parm, 0, sdBuilder.syntaxCharsetDecl, desc)) + return 0; + sdBuilder.syntaxCharset.set(desc); + checkSwitches(sdBuilder.switcher, sdBuilder.syntaxCharset); + for (size_t i = 0; i < sdBuilder.switcher.nSwitches(); i++) + if (!sdBuilder.syntaxCharsetDecl.charDeclared(sdBuilder.switcher.switchTo(i))) + message(ParserMessages::switchNotInCharset, + NumberMessageArg(sdBuilder.switcher.switchTo(i))); + ISet missing; + findMissingMinimum(sdBuilder.syntaxCharset, missing); + if (!missing.isEmpty()) + message(ParserMessages::missingMinimumChars, + CharsetMessageArg(missing)); + return 1; +} + +Boolean Parser::sdParseShunchar(SdBuilder &sdBuilder, SdParam &parm) +{ + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rNONE, + SdParam::reservedName + Sd::rCONTROLS, + SdParam::number), parm)) + return 0; + if (parm.type == SdParam::reservedName + Sd::rNONE) { + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rBASESET), + parm)) + return 0; + return 1; + } + if (parm.type == SdParam::reservedName + Sd::rCONTROLS) + sdBuilder.syntax->setShuncharControls(); + else { + if (parm.n <= charMax) + sdBuilder.syntax->addShunchar(Char(parm.n)); + } + for (;;) { + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rBASESET, + SdParam::number), parm)) + return 0; + if (parm.type != SdParam::number) + break; + if (parm.n <= charMax) + sdBuilder.syntax->addShunchar(Char(parm.n)); + } + return 1; +} + +Boolean Parser::sdParseFunction(SdBuilder &sdBuilder, SdParam &parm) +{ + static Sd::ReservedName standardNames[3] = { + Sd::rRE, Sd::rRS, Sd::rSPACE + }; + for (int i = 0; i < 3; i++) { + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + + standardNames[i]), + parm)) + return 0; + if (!parseSdParam(AllowedSdParams(SdParam::number), parm)) + return 0; + Char c; + if (translateSyntax(sdBuilder, parm.n, c)) { + if (checkNotFunction(*sdBuilder.syntax, c)) + sdBuilder.syntax->setStandardFunction(Syntax::StandardFunction(i), c); + else + sdBuilder.valid = 0; + } + } + Boolean haveMsichar = 0; + Boolean haveMsochar = 0; + for (;;) { + if (!parseSdParam(sdBuilder.externalSyntax + ? AllowedSdParams(SdParam::name, SdParam::paramLiteral) + : AllowedSdParams(SdParam::name), + parm)) + return 0; + Boolean nameWasLiteral; + size_t nameMarkupIndex; + if (currentMarkup()) + nameMarkupIndex = currentMarkup()->size() - 1; + Boolean invalidName = 0; + StringC name; + if (parm.type == SdParam::paramLiteral) { + nameWasLiteral = 1; + if (!translateSyntax(sdBuilder, parm.paramLiteralText, name)) + invalidName = 1; + } + else { + parm.token.swap(name); + nameWasLiteral = 0; + } + if (!parseSdParam(nameWasLiteral + ? AllowedSdParams(SdParam::reservedName + Sd::rFUNCHAR, + SdParam::reservedName + Sd::rMSICHAR, + SdParam::reservedName + Sd::rMSOCHAR, + SdParam::reservedName + Sd::rMSSCHAR, + SdParam::reservedName + Sd::rSEPCHAR) + : AllowedSdParams(SdParam::reservedName + Sd::rFUNCHAR, + SdParam::reservedName + Sd::rMSICHAR, + SdParam::reservedName + Sd::rMSOCHAR, + SdParam::reservedName + Sd::rMSSCHAR, + SdParam::reservedName + Sd::rSEPCHAR, + SdParam::reservedName + Sd::rLCNMSTRT), + parm)) + return 0; + if (parm.type == SdParam::reservedName + Sd::rLCNMSTRT) { + if (name != sd().reservedName(Sd::rNAMING)) + message(ParserMessages::namingBeforeLcnmstrt, + StringMessageArg(name)); + else if (currentMarkup()) + currentMarkup()->changeToSdReservedName(nameMarkupIndex, Sd::rNAMING); + break; + } + if (!nameWasLiteral) { + StringC tem; + name.swap(tem); + if (!translateName(sdBuilder, tem, name)) + invalidName = 1; + } + Syntax::FunctionClass functionClass; + switch (parm.type) { + case SdParam::reservedName + Sd::rFUNCHAR: + functionClass = Syntax::cFUNCHAR; + break; + case SdParam::reservedName + Sd::rMSICHAR: + haveMsichar = 1; + functionClass = Syntax::cMSICHAR; + break; + case SdParam::reservedName + Sd::rMSOCHAR: + haveMsochar = 1; + functionClass = Syntax::cMSOCHAR; + break; + case SdParam::reservedName + Sd::rMSSCHAR: + functionClass = Syntax::cMSSCHAR; + break; + case SdParam::reservedName + Sd::rSEPCHAR: + functionClass = Syntax::cSEPCHAR; + break; + default: + CANNOT_HAPPEN(); + } + if (!parseSdParam(AllowedSdParams(SdParam::number), parm)) + return 0; + Char c; + if (translateSyntax(sdBuilder, parm.n, c) + && checkNotFunction(*sdBuilder.syntax, c) + && !invalidName) { + Char tem; + if (sdBuilder.syntax->lookupFunctionChar(name, &tem)) + message(ParserMessages::duplicateFunctionName, StringMessageArg(name)); + else + sdBuilder.syntax->addFunctionChar(name, functionClass, c); + } + } + if (haveMsochar && !haveMsichar) + message(ParserMessages::msocharRequiresMsichar); + return 1; +} + +Boolean Parser::sdParseNaming(SdBuilder &sdBuilder, SdParam &parm) +{ + static Sd::ReservedName keys[6] = { + Sd::rUCNMSTRT, Sd::rNAMESTRT, Sd::rLCNMCHAR, Sd::rUCNMCHAR, Sd::rNAMECHAR, + Sd::rNAMECASE + }; + int isNamechar = 0; + ISet nameStartChar; + ISet nameChar; + do { + String lc; + Vector rangeIndex; + enum PrevParam { + paramNone, + paramNumber, + paramOther + } prevParam = paramNone; + + for (;;) { + switch (prevParam) { + case paramNone: + if (!parseSdParam(AllowedSdParams(SdParam::paramLiteral, SdParam::number), + parm)) + return 0; + break; + case paramNumber: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + + keys[isNamechar * 3], + SdParam::paramLiteral, + SdParam::number, + SdParam::minus), + parm)) + return 0; + break; + case paramOther: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + + keys[isNamechar * 3], + SdParam::paramLiteral, + SdParam::number), + parm)) + return 0; + break; + } + switch (parm.type) { + case SdParam::paramLiteral: + if (prevParam == paramNone) + break; + // fall through + case SdParam::number: + if (!sdBuilder.externalSyntax && !sdBuilder.enr) { + message(ParserMessages::enrRequired); + sdBuilder.enr = 1; + } + break; + default: + break; + } + prevParam = (parm.type == SdParam::number ? paramNumber : paramOther); + if (parm.type == SdParam::minus) { + if (!parseSdParam(AllowedSdParams(SdParam::number), + parm)) + return 0; + if (parm.n < lc[lc.size() - 1]) + message(ParserMessages::sdInvalidRange); + else { + if (parm.n > lc[lc.size() - 1] + 1) + rangeIndex.push_back(lc.size() - 1); + lc += SyntaxChar(parm.n); + } + } + else { + sdParamConvertToLiteral(parm); + if (parm.type != SdParam::paramLiteral) + break; + lc += parm.paramLiteralText; + } + } + size_t lcPos = 0; + size_t rangeIndexPos = 0; + unsigned long rangeLeft = 0; + SyntaxChar nextRangeChar; + ISet &set = isNamechar ? nameChar : nameStartChar; + String chars; + Boolean runOut = 0; + prevParam = paramNone; + for (;;) { + switch (prevParam) { + case paramNone: + if (!parseSdParam(AllowedSdParams(SdParam::paramLiteral, SdParam::number), + parm)) + return 0; + break; + case paramNumber: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + + keys[isNamechar * 3 + 1], + SdParam::reservedName + + keys[isNamechar * 3 + 2], + SdParam::paramLiteral, + SdParam::number, + SdParam::minus), + parm)) + return 0; + break; + case paramOther: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + + keys[isNamechar * 3 + 1], + SdParam::reservedName + + keys[isNamechar * 3 + 2], + SdParam::paramLiteral, + SdParam::number), + parm)) + return 0; + break; + } + switch (parm.type) { + case SdParam::paramLiteral: + if (prevParam == paramNone) + break; + // fall through + case SdParam::number: + if (!sdBuilder.externalSyntax && !sdBuilder.enr) { + message(ParserMessages::enrRequired); + sdBuilder.enr = 1; + } + break; + default: + break; + } + prevParam = (parm.type == SdParam::number ? paramNumber : paramOther); + if (parm.type == SdParam::minus) { + if (!parseSdParam(AllowedSdParams(SdParam::number), + parm)) + return 0; + ASSERT(chars.size() == 1); + SyntaxChar start = chars[0]; + SyntaxChar end = parm.n; + if (start > end) + message(ParserMessages::sdInvalidRange); + else { + size_t count = end + 1 - start; + while (count > 0) { + if (rangeLeft == 0 + && rangeIndexPos < rangeIndex.size() + && rangeIndex[rangeIndexPos] == lcPos) { + rangeLeft = 1 + lc[lcPos + 1] - lc[lcPos]; + nextRangeChar = lc[lcPos]; + lcPos += 2; + rangeIndexPos += 1; + } + Char c; + if (rangeLeft > 0) { + rangeLeft--; + c = nextRangeChar++; + } + else if (lcPos < lc.size()) + c = lc[lcPos++]; + else { + c = start; + runOut = 1; + } + if (c == start && count > 1 && (runOut || rangeLeft > 0)) { + size_t n; + if (runOut) + n = count; + else if (rangeLeft < count) { + // rangeLeft + 1 <= count + n = rangeLeft + 1; + rangeLeft = 0; + } + else { + // count < rangeLeft + 1 + n = count; + rangeLeft -= n - 1; + nextRangeChar += n - 1; + } + translateRange(sdBuilder, start, start + (n - 1), set); + count -= n; + start += n; + } + else { + Char transLc, transUc; + if (translateSyntax(sdBuilder, c, transLc) + && translateSyntax(sdBuilder, start, transUc)) { + set.add(transLc); + if (transLc != transUc) { + set.add(transUc); + sdBuilder.syntax->addSubst(transLc, transUc); + } + } + count--; + start++; + } + } + } + chars.resize(0); + } + else { + for (size_t i = 0; i < chars.size(); i++) { + if (rangeLeft == 0 + && rangeIndexPos < rangeIndex.size() + && rangeIndex[rangeIndexPos] == lcPos) { + rangeLeft = 1 + lc[lcPos + 1] - lc[lcPos]; + nextRangeChar = lc[lcPos]; + lcPos += 2; + rangeIndexPos += 1; + } + Char c; + if (rangeLeft > 0) { + rangeLeft--; + c = nextRangeChar++; + } + else if (lcPos < lc.size()) + c = lc[lcPos++]; + else { + runOut = 1; + c = chars[i]; + } + // map from c to chars[i] + Char transLc, transUc; + if (translateSyntax(sdBuilder, c, transLc) + && translateSyntax(sdBuilder, chars[i], transUc)) { + set.add(transLc); + if (transLc != transUc) { + set.add(transUc); + sdBuilder.syntax->addSubst(transLc, transUc); + } + } + } + sdParamConvertToLiteral(parm); + if (parm.type != SdParam::paramLiteral) + break; + parm.paramLiteralText.swap(chars); + } + } + if ((runOut && !sdBuilder.externalSyntax) + || rangeLeft > 0 || lcPos < lc.size()) + message(isNamechar + ? ParserMessages::nmcharLength + : ParserMessages::nmstrtLength); + if (parm.type == SdParam::reservedName + keys[isNamechar * 3 + 1]) { + if (!sdBuilder.externalSyntax && !sdBuilder.enr) { + message(ParserMessages::enrRequired); + sdBuilder.enr = 1; + } + prevParam = paramNone; + for (;;) { + switch (prevParam) { + case paramNone: + if (!parseSdParam(AllowedSdParams(SdParam::paramLiteral, SdParam::number), + parm)) + return 0; + break; + case paramNumber: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + + keys[isNamechar * 3 + 2], + SdParam::paramLiteral, + SdParam::number, + SdParam::minus), + parm)) + return 0; + break; + case paramOther: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + + keys[isNamechar * 3 + 2], + SdParam::paramLiteral, + SdParam::number), + parm)) + return 0; + break; + } + prevParam = (parm.type == SdParam::number ? paramNumber : paramOther); + if (parm.type == SdParam::minus) { + SyntaxChar prevNumber = parm.n; + if (!parseSdParam(AllowedSdParams(SdParam::number), + parm)) + return 0; + if (parm.n < prevNumber) + message(ParserMessages::sdInvalidRange); + else if (parm.n > prevNumber) + translateRange(sdBuilder, prevNumber + 1, parm.n, set); + } + else { + sdParamConvertToLiteral(parm); + if (parm.type != SdParam::paramLiteral) + break; + for (size_t i = 0; i < parm.paramLiteralText.size(); i++) { + Char trans; + if (translateSyntax(sdBuilder, parm.paramLiteralText[i], trans)) + set.add(trans); + } + } + } + } + if (!checkNmchars(set, *sdBuilder.syntax)) + sdBuilder.valid = 0; + } while (!isNamechar++); + ISet bad; + intersectCharSets(nameStartChar, nameChar, bad); + if (!bad.isEmpty()) { + sdBuilder.valid = 0; + message(ParserMessages::nmcharNmstrt, CharsetMessageArg(bad)); + } + sdBuilder.syntax->addNameStartCharacters(nameStartChar); + sdBuilder.syntax->addNameCharacters(nameChar); + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rGENERAL), + parm)) + return 0; + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rNO, + SdParam::reservedName + Sd::rYES), + parm)) + return 0; + sdBuilder.syntax->setNamecaseGeneral(parm.type + == SdParam::reservedName + Sd::rYES); + + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rENTITY), + parm)) + return 0; + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rNO, + SdParam::reservedName + Sd::rYES), + parm)) + return 0; + sdBuilder.syntax->setNamecaseEntity(parm.type + == SdParam::reservedName + Sd::rYES); + return 1; +} + +Boolean Parser::checkNmchars(const ISet &set, const Syntax &syntax) +{ + Boolean valid = 1; + ISet bad; + intersectCharSets(set, *syntax.charSet(Syntax::nameStart), bad); + if (!bad.isEmpty()) { + message(ParserMessages::nmcharLetter, CharsetMessageArg(bad)); + valid = 0; + bad.clear(); + } + intersectCharSets(set, *syntax.charSet(Syntax::digit), bad); + if (!bad.isEmpty()) { + message(ParserMessages::nmcharDigit, CharsetMessageArg(bad)); + valid = 0; + bad.clear(); + } + Char funChar; + if (syntax.getStandardFunction(Syntax::fRE, funChar) + && set.contains(funChar)) { + message(ParserMessages::nmcharRe, NumberMessageArg(funChar)); + valid = 0; + } + if (syntax.getStandardFunction(Syntax::fRS, funChar) + && set.contains(funChar)) { + message(ParserMessages::nmcharRs, NumberMessageArg(funChar)); + valid = 0; + } + if (syntax.getStandardFunction(Syntax::fSPACE, funChar) + && set.contains(funChar)) { + message(ParserMessages::nmcharSpace, NumberMessageArg(funChar)); + valid = 0; + } + intersectCharSets(set, *syntax.charSet(Syntax::sepchar), bad); + if (!bad.isEmpty()) { + message(ParserMessages::nmcharSepchar, CharsetMessageArg(bad)); + valid = 0; + } + return valid; +} + +// Result is a ISet, so it can be used with CharsetMessageArg. + +void Parser::intersectCharSets(const ISet &s1, const ISet &s2, + ISet &inter) +{ + ISetIter i1(s1); + ISetIter i2(s2); + Char min1, max1, min2, max2; + if (!i1.next(min1, max1)) + return; + if (!i2.next(min2, max2)) + return; + for (;;) { + if (max1 < min2) { + if (!i1.next(min1, max1)) + break; + } + else if (max2 < min1) { + if (!i2.next(min2, max2)) + break; + } + else { + // min2 <= max1 + // min1 <= max2 + Char min = min1 > min2 ? min1 : min2; + Char max = max1 < max2 ? max1 : max2; + inter.addRange(min, max); + if (max2 > max) { + if (!i1.next(min1, max1)) + break; + } + else { + if (!i2.next(min2, max2)) + break; + } + } + } +} + +Boolean Parser::sdParseDelim(SdBuilder &sdBuilder, SdParam &parm) +{ + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rDELIM), + parm)) + return 0; + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rGENERAL), + parm)) + return 0; + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rSGMLREF), + parm)) + return 0; + PackedBoolean delimGeneralSpecified[Syntax::nDelimGeneral]; + for (int i = 0; i < Syntax::nDelimGeneral; i++) + delimGeneralSpecified[i] = 0; + for (;;) { + if (!parseSdParam(AllowedSdParams(SdParam::generalDelimiterName, + SdParam::reservedName + Sd::rSHORTREF), + parm)) + return 0; + if (parm.type == SdParam::reservedName + Sd::rSHORTREF) + break; + Syntax::DelimGeneral delimGeneral = parm.delimGeneralIndex; + if (delimGeneralSpecified[delimGeneral]) + message(ParserMessages::duplicateDelimGeneral, + StringMessageArg(sd().generalDelimiterName(delimGeneral))); + switch (delimGeneral) { + case Syntax::dHCRO: + case Syntax::dNESTC: + requireWWW(sdBuilder); + break; + default: + break; + } + if (!parseSdParam(sdBuilder.externalSyntax + ? AllowedSdParams(SdParam::paramLiteral, + SdParam::number) + : AllowedSdParams(SdParam::paramLiteral), + parm)) + return 0; + sdParamConvertToLiteral(parm); + StringC str; + if (parm.paramLiteralText.size() == 0) + message(ParserMessages::sdEmptyDelimiter); + else if (translateSyntax(sdBuilder, parm.paramLiteralText, str)) { + sdBuilder.syntax->generalSubstTable()->subst(str); + if (checkGeneralDelim(*sdBuilder.syntax, str) + && !delimGeneralSpecified[delimGeneral]) + sdBuilder.syntax->setDelimGeneral(delimGeneral, str); + else + sdBuilder.valid = 0; + } + delimGeneralSpecified[delimGeneral] = 1; + } + if (sdBuilder.syntax->delimGeneral(Syntax::dNET).size() + && !sdBuilder.syntax->delimGeneral(Syntax::dNESTC).size()) + sdBuilder.syntax->setDelimGeneral(Syntax::dNESTC, + sdBuilder.syntax->delimGeneral(Syntax::dNET)); + if (!setRefDelimGeneral(*sdBuilder.syntax, + sdBuilder.syntaxCharset, + sdBuilder.sd->internalCharset(), + sdBuilder.switcher)) + sdBuilder.valid = 0; + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rSGMLREF, + SdParam::reservedName + Sd::rNONE), + parm)) + return 0; + if (parm.type == SdParam::reservedName + Sd::rSGMLREF) { + if (!addRefDelimShortref(*sdBuilder.syntax, + sdBuilder.syntaxCharset, + sdBuilder.sd->internalCharset(), + sdBuilder.switcher)) + sdBuilder.valid = 0; + } + String lastLiteral; + for (;;) { + if (!parseSdParam(sdBuilder.externalSyntax + ? AllowedSdParams(SdParam::paramLiteral, + SdParam::number, + SdParam::minus, + SdParam::reservedName + Sd::rNAMES) + : AllowedSdParams(SdParam::paramLiteral, + SdParam::reservedName + Sd::rNAMES), + parm)) + return 0; + sdParamConvertToLiteral(parm); + if (parm.type == SdParam::minus) { + if (!parseSdParam(AllowedSdParams(SdParam::paramLiteral, + SdParam::number), + parm)) + return 0; + sdParamConvertToLiteral(parm); + if (parm.paramLiteralText.size() == 0) + message(ParserMessages::sdEmptyDelimiter); + else if (lastLiteral.size() != 1 + || parm.paramLiteralText.size() != 1) + message(ParserMessages::sdRangeNotSingleChar); + else if (parm.paramLiteralText[0] < lastLiteral[0]) + message(ParserMessages::sdInvalidRange); + else if (parm.paramLiteralText[0] != lastLiteral[0]) { + ISet shortrefChars; + translateRange(sdBuilder, + lastLiteral[0] + 1, + parm.paramLiteralText[0], + shortrefChars); + ISet duplicates; + intersectCharSets(shortrefChars, + sdBuilder.syntax->delimShortrefSimple(), + duplicates); + int nComplexShortrefs = sdBuilder.syntax->nDelimShortrefComplex(); + for (int i = 0; i < nComplexShortrefs; i++) { + const StringC &delim = sdBuilder.syntax->delimShortrefComplex(i); + if (delim.size() == 1 && shortrefChars.contains(delim[0])) + duplicates.add(delim[0]); + } + if (!duplicates.isEmpty()) + message(ParserMessages::duplicateDelimShortrefSet, + CharsetMessageArg(duplicates)); + sdBuilder.syntax->addDelimShortrefs(shortrefChars, + sdBuilder.sd->internalCharset()); + } + lastLiteral.resize(0); + } + else if (parm.type == SdParam::paramLiteral) { + parm.paramLiteralText.swap(lastLiteral); + StringC str; + if (lastLiteral.size() == 0) + message(ParserMessages::sdEmptyDelimiter); + else if (translateSyntax(sdBuilder, lastLiteral, str)) { + sdBuilder.syntax->generalSubstTable()->subst(str); + if (str.size() == 1 + || checkShortrefDelim(*sdBuilder.syntax, + sdBuilder.sd->internalCharset(), + str)) { + if (sdBuilder.syntax->isValidShortref(str)) + message(ParserMessages::duplicateDelimShortref, + StringMessageArg(str)); + else + sdBuilder.syntax->addDelimShortref(str, + sdBuilder.sd->internalCharset()); + } + } + } + else + break; + } + return 1; +} + +Boolean Parser::sdParseNames(SdBuilder &sdBuilder, SdParam &parm) +{ + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rSGMLREF), + parm)) + return 0; + for (;;) { + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rQUANTITY, + SdParam::referenceReservedName), + parm)) + return 0; + if (parm.type == SdParam::reservedName + Sd::rQUANTITY) + break; + Syntax::ReservedName reservedName = parm.reservedNameIndex; + switch (reservedName) { + case Syntax::rALL: + case Syntax::rDATA: + case Syntax::rIMPLICIT: + requireWWW(sdBuilder); + break; + default: + break; + } + if (!parseSdParam(sdBuilder.externalSyntax + ? AllowedSdParams(SdParam::name, SdParam::paramLiteral) + : AllowedSdParams(SdParam::name), + parm)) + return 0; + StringC transName; + if (parm.type == SdParam::name + ? translateName(sdBuilder, parm.token, transName) + : translateSyntax(sdBuilder, parm.paramLiteralText, transName)) { + Syntax::ReservedName tem; + if (sdBuilder.syntax->lookupReservedName(transName, &tem)) + message(ParserMessages::ambiguousReservedName, + StringMessageArg(transName)); + else { + if (transName.size() == 0 + || !sdBuilder.syntax->isNameStartCharacter(transName[0])) { + message(ParserMessages::reservedNameSyntax, + StringMessageArg(transName)); + transName.resize(0); + } + size_t i; + // Check that its a valid name in the declared syntax + // (- and . might not be name characters). + for (i = 1; i < transName.size(); i++) + if (!sdBuilder.syntax->isNameCharacter(transName[i])) { + message(ParserMessages::reservedNameSyntax, + StringMessageArg(transName)); + transName.resize(0); + break; + } + sdBuilder.syntax->generalSubstTable()->subst(transName); + if (sdBuilder.syntax->reservedName(reservedName).size() > 0) + message(ParserMessages::duplicateReservedName, + StringMessageArg(syntax().reservedName(reservedName))); + else if (transName.size() > 0) + sdBuilder.syntax->setName(reservedName, transName); + else + sdBuilder.valid = 0; + } + } + } + setRefNames(*sdBuilder.syntax, sdBuilder.sd->internalCharset(), sdBuilder.www); + static Syntax::ReservedName functionNameIndex[3] = { + Syntax::rRE, Syntax::rRS, Syntax::rSPACE + }; + for (int i = 0; i < 3; i++) { + const StringC &functionName + = sdBuilder.syntax->reservedName(functionNameIndex[i]); + Char tem; + if (sdBuilder.syntax->lookupFunctionChar(functionName, &tem)) + message(ParserMessages::duplicateFunctionName, StringMessageArg(functionName)); + } + sdBuilder.syntax->enterStandardFunctionNames(); + return 1; +} + +Boolean Parser::sdParseQuantity(SdBuilder &sdBuilder, SdParam &parm) +{ + if (!parseSdParam(sdBuilder.www + ? AllowedSdParams(SdParam::reservedName + Sd::rNONE, + SdParam::reservedName + Sd::rSGMLREF) + : AllowedSdParams(SdParam::reservedName + Sd::rSGMLREF), + parm)) + return 0; + int final = (sdBuilder.externalSyntax + ? int(SdParam::eE) + : SdParam::reservedName + Sd::rFEATURES); + if (parm.type == SdParam::reservedName + Sd::rNONE) { + for (int i = 0; i < Syntax::nQuantity; i++) { + if (i != Syntax::qNORMSEP) + sdBuilder.syntax->setQuantity(Syntax::Quantity(i), Syntax::unlimited); + } + if (!parseSdParam(AllowedSdParams(final, SdParam::reservedName + Sd::rENTITIES), parm)) + return 0; + } + else { + for (;;) { + if (!parseSdParam(sdBuilder.www + ? AllowedSdParams(SdParam::quantityName, + final, + SdParam::reservedName + Sd::rENTITIES) + : AllowedSdParams(SdParam::quantityName, final), + parm)) + return 0; + if (parm.type != SdParam::quantityName) + break; + Syntax::Quantity quantity = parm.quantityIndex; + if (!parseSdParam(AllowedSdParams(SdParam::number), parm)) + return 0; + sdBuilder.syntax->setQuantity(quantity, parm.n); + } + if (sdBuilder.sd->scopeInstance()) { + for (int i = 0; i < Syntax::nQuantity; i++) + if (sdBuilder.syntax->quantity(Syntax::Quantity(i)) + < syntax().quantity(Syntax::Quantity(i))) + message(ParserMessages::scopeInstanceQuantity, + StringMessageArg(sd().quantityName(Syntax::Quantity(i)))); + } + } + if (parm.type == SdParam::reservedName + Sd::rENTITIES) + return sdParseEntities(sdBuilder, parm); + else + return 1; +} + +Boolean Parser::sdParseEntities(SdBuilder &sdBuilder, SdParam &parm) +{ + int final = (sdBuilder.externalSyntax + ? int(SdParam::eE) + : SdParam::reservedName + Sd::rFEATURES); + for (;;) { + if (!parseSdParam(AllowedSdParams(final, SdParam::paramLiteral), parm)) + return 0; + if (parm.type != SdParam::paramLiteral) + break; + StringC name; + if (!translateSyntax(sdBuilder, parm.paramLiteralText, name)) + name.resize(0); + else if (name.size() == 0 + || !sdBuilder.syntax->isNameStartCharacter(name[0])) { + message(ParserMessages::entityNameSyntax, StringMessageArg(name)); + name.resize(0); + } + else { + // Check that its a valid name in the declared syntax + for (size_t i = 1; i < name.size(); i++) + if (!sdBuilder.syntax->isNameCharacter(name[i])) { + message(ParserMessages::entityNameSyntax, StringMessageArg(name)); + name.resize(0); + break; + } + } + if (!parseSdParam(AllowedSdParams(SdParam::number), parm)) + return 0; + Char c; + if (translateSyntax(sdBuilder, parm.n, c) && name.size()) + sdBuilder.syntax->addEntity(name, c); + } + return 1; +} + +Boolean Parser::sdParseFeatures(SdBuilder &sdBuilder, SdParam &parm) +{ + struct FeatureInfo { + Sd::ReservedName name; + enum { + none, + boolean, + number, + netenabl, + implyelt + } arg; + }; + static FeatureInfo features[] = { + { Sd::rMINIMIZE, FeatureInfo::none }, + { Sd::rDATATAG, FeatureInfo::boolean }, + { Sd::rOMITTAG, FeatureInfo::boolean }, + { Sd::rRANK, FeatureInfo::boolean }, + { Sd::rSHORTTAG, FeatureInfo::none }, + { Sd::rSTARTTAG, FeatureInfo::none }, + { Sd::rEMPTY, FeatureInfo::boolean }, + { Sd::rUNCLOSED, FeatureInfo::boolean }, + { Sd::rNETENABL, FeatureInfo::netenabl }, + { Sd::rENDTAG, FeatureInfo::none }, + { Sd::rEMPTY, FeatureInfo::boolean }, + { Sd::rUNCLOSED, FeatureInfo::boolean }, + { Sd::rATTRIB, FeatureInfo::none }, + { Sd::rDEFAULT, FeatureInfo::boolean }, + { Sd::rOMITNAME, FeatureInfo::boolean }, + { Sd::rVALUE, FeatureInfo::boolean }, + { Sd::rEMPTYNRM, FeatureInfo::boolean }, + { Sd::rIMPLYDEF, FeatureInfo::none }, + { Sd::rATTLIST, FeatureInfo::boolean }, + { Sd::rDOCTYPE, FeatureInfo::boolean }, + { Sd::rELEMENT, FeatureInfo::implyelt }, + { Sd::rENTITY, FeatureInfo::boolean }, + { Sd::rNOTATION, FeatureInfo::boolean }, + { Sd::rLINK, FeatureInfo::none }, + { Sd::rSIMPLE, FeatureInfo::number }, + { Sd::rIMPLICIT, FeatureInfo::boolean }, + { Sd::rEXPLICIT, FeatureInfo::number }, + { Sd::rOTHER, FeatureInfo::none }, + { Sd::rCONCUR, FeatureInfo::number }, + { Sd::rSUBDOC, FeatureInfo::number }, + { Sd::rFORMAL, FeatureInfo::boolean }, + { Sd::rURN, FeatureInfo::boolean }, + { Sd::rKEEPRSRE, FeatureInfo::boolean }, + { Sd::rVALIDITY, FeatureInfo::none }, + }; + int booleanFeature = 0; + int numberFeature = 0; + for (size_t i = 0; i < SIZEOF(features); i++) { + switch (features[i].name) { + case Sd::rSTARTTAG: + // SHORTTAG + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rSTARTTAG, + SdParam::reservedName + Sd::rNO, + SdParam::reservedName + Sd::rYES), + parm)) + return 0; + if (parm.type == SdParam::reservedName + Sd::rSTARTTAG) + break; + sdBuilder.sd->setShorttag(parm.type == SdParam::reservedName + Sd::rYES); + while (features[++i].name != Sd::rEMPTYNRM) + if (features[i].arg == FeatureInfo::boolean) + booleanFeature++; + // fall through + case Sd::rEMPTYNRM: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + + features[i].name, + SdParam::reservedName + + features[i + 7].name), parm)) + return 0; + if (parm.type == SdParam::reservedName + features[i].name) + requireWWW(sdBuilder); + else { + booleanFeature += 5; + i += 7; + } + break; + case Sd::rURN: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + features[i].name, + SdParam::reservedName + Sd::rAPPINFO), parm)) + return 0; + if (parm.type == SdParam::reservedName + Sd::rAPPINFO) + return 1; + requireWWW(sdBuilder); + break; + default: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + + features[i].name), parm)) + return 0; + break; + } + switch (features[i].arg) { + case FeatureInfo::number: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rNO, + SdParam::reservedName + Sd::rYES), + parm)) + return 0; + if (parm.type == SdParam::reservedName + Sd::rYES) { + if (!parseSdParam(AllowedSdParams(SdParam::number), parm)) + return 0; + sdBuilder.sd->setNumberFeature(Sd::NumberFeature(numberFeature++), + parm.n); + } + else + sdBuilder.sd->setNumberFeature(Sd::NumberFeature(numberFeature++), + 0); + break; + case FeatureInfo::netenabl: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rNO, + SdParam::reservedName + Sd::rIMMEDNET, + SdParam::reservedName + Sd::rALL), + parm)) + return 0; + switch (parm.type) { + case SdParam::reservedName + Sd::rNO: + sdBuilder.sd->setStartTagNetEnable(Sd::netEnableNo); + break; + case SdParam::reservedName + Sd::rIMMEDNET: + sdBuilder.sd->setStartTagNetEnable(Sd::netEnableImmednet); + break; + case SdParam::reservedName + Sd::rALL: + sdBuilder.sd->setStartTagNetEnable(Sd::netEnableAll); + break; + } + break; + case FeatureInfo::implyelt: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rNO, + SdParam::reservedName + Sd::rYES, + SdParam::reservedName + Sd::rANYOTHER), + parm)) + return 0; + switch (parm.type) { + case SdParam::reservedName + Sd::rNO: + sdBuilder.sd->setImplydefElement(Sd::implydefElementNo); + break; + case SdParam::reservedName + Sd::rYES: + sdBuilder.sd->setImplydefElement(Sd::implydefElementYes); + break; + case SdParam::reservedName + Sd::rANYOTHER: + sdBuilder.sd->setImplydefElement(Sd::implydefElementAnyother); + break; + } + break; + case FeatureInfo::boolean: + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rNO, + SdParam::reservedName + Sd::rYES), + parm)) + return 0; + switch (features[i].name) { +#if 0 + case Sd::rDATATAG: + if (parm.type == SdParam::reservedName + Sd::rYES) + message(ParserMessages::datatagNotImplemented); + break; +#endif + case Sd::rEMPTYNRM: + if (parm.type == SdParam::reservedName + Sd::rNO + && sdBuilder.sd->startTagNetEnable() == Sd::netEnableImmednet) { + message(ParserMessages::immednetRequiresEmptynrm); + sdBuilder.valid = 0; + } + break; + } + sdBuilder.sd->setBooleanFeature(Sd::BooleanFeature(booleanFeature++), + parm.type == (SdParam::reservedName + + Sd::rYES)); + break; + } + } + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rNOASSERT, + SdParam::reservedName + Sd::rTYPE), + parm)) + return 0; + switch (parm.type) { + case SdParam::reservedName + Sd::rNOASSERT: + sdBuilder.sd->setTypeValid(0); + break; + case SdParam::reservedName + Sd::rTYPE: + sdBuilder.sd->setTypeValid(1); + break; + } + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rENTITIES), parm)) + return 0; + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rNOASSERT, + SdParam::reservedName + Sd::rREF), + parm)) + return 0; + if (parm.type == SdParam::reservedName + Sd::rNOASSERT) { + sdBuilder.sd->setIntegrallyStored(0); + sdBuilder.sd->setEntityRef(Sd::entityRefAny); + } + else { + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rNONE, + SdParam::reservedName + Sd::rINTERNAL, + SdParam::reservedName + Sd::rANY), + parm)) + return 0; + switch (parm.type) { + case SdParam::reservedName + Sd::rNONE: + sdBuilder.sd->setEntityRef(Sd::entityRefNone); + break; + case SdParam::reservedName + Sd::rINTERNAL: + sdBuilder.sd->setEntityRef(Sd::entityRefInternal); + break; + case SdParam::reservedName + Sd::rANY: + sdBuilder.sd->setEntityRef(Sd::entityRefAny); + break; + } + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rINTEGRAL), parm)) + return 0; + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rNO, + SdParam::reservedName + Sd::rYES), + parm)) + return 0; + sdBuilder.sd->setIntegrallyStored(parm.type == (SdParam::reservedName + Sd::rYES)); + } + return parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rAPPINFO), + parm); +} + +Boolean Parser::sdParseAppinfo(SdBuilder &, SdParam &parm) +{ + Location location(currentLocation()); + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rNONE, + SdParam::minimumLiteral), + parm)) + return 0; + AppinfoEvent *event; + if (parm.type == SdParam::minimumLiteral) + event = new (eventAllocator()) AppinfoEvent(parm.literalText, location); + else + event = new (eventAllocator()) AppinfoEvent(location); + eventHandler().appinfo(event); + return 1; +} + +Boolean Parser::sdParseSeealso(SdBuilder &sdBuilder, SdParam &parm) +{ + SdParam::Type final = sdBuilder.external ? SdParam::eE : SdParam::mdc; + if (!parseSdParam(AllowedSdParams(SdParam::reservedName + Sd::rSEEALSO, final), parm)) + return 0; + if (parm.type == final) + return 1; + requireWWW(sdBuilder); + if (!parseSdParam(AllowedSdParams(SdParam::minimumLiteral, + SdParam::reservedName + Sd::rNONE), parm)) + return 0; + if (parm.type == SdParam::reservedName + Sd::rNONE) + return parseSdParam(AllowedSdParams(final), parm); + do { + if (!parseSdParam(AllowedSdParams(SdParam::minimumLiteral, final), parm)) + return 0; + } while (parm.type != final); + return 1; +} + +Boolean Parser::translateSyntax(CharSwitcher &switcher, + const CharsetInfo &syntaxCharset, + const CharsetInfo &internalCharset, + WideChar syntaxChar, + Char &docChar) +{ + syntaxChar = switcher.subst(syntaxChar); + UnivChar univChar; + if (syntaxCharset.descToUniv(syntaxChar, univChar) + && univToDescCheck(internalCharset, univChar, docChar)) + return 1; + message(sd().internalCharsetIsDocCharset() + ? ParserMessages::translateSyntaxCharDoc + : ParserMessages::translateSyntaxCharInternal, + NumberMessageArg(syntaxChar)); + return 0; +} + +void Parser::translateRange(SdBuilder &sdBuilder, SyntaxChar start, + SyntaxChar end, ISet &chars) +{ +#if 0 + do { + Char docChar; + if (!translateSyntax(sdBuilder, start, docChar)) + break; + chars.add(docChar); + } while (start++ != end); +#endif + for (;;) { + SyntaxChar doneUpTo = end; + Boolean gotSwitch = 0; + WideChar firstSwitch; + for (size_t i = 0; i < sdBuilder.switcher.nSwitches(); i++) { + WideChar c = sdBuilder.switcher.switchFrom(i); + if (start <= c && c <= end) { + if (!gotSwitch) { + gotSwitch = 1; + firstSwitch = c; + } + else if (c < firstSwitch) + firstSwitch = c; + } + } + if (gotSwitch && firstSwitch == start) { + doneUpTo = start; + Char docChar; + if (translateSyntax(sdBuilder, start, docChar)) + chars.add(docChar); + } + else { + if (gotSwitch) + doneUpTo = firstSwitch - 1; + Char docChar; + Number count; + if (translateSyntaxNoSwitch(sdBuilder, start, docChar, count)) { + if (count - 1 < doneUpTo - start) + doneUpTo = start + (count - 1); + chars.addRange(docChar, docChar + (doneUpTo - start)); + } + } + if (doneUpTo == end) + break; + start = doneUpTo + 1; + } +} + +Boolean Parser::translateSyntax(SdBuilder &sdBuilder, + WideChar syntaxChar, Char &docChar) +{ + Number count; + return translateSyntaxNoSwitch(sdBuilder, + sdBuilder.switcher.subst(syntaxChar), + docChar, + count); +} + +Boolean Parser::translateSyntaxNoSwitch(SdBuilder &sdBuilder, + WideChar syntaxChar, Char &docChar, + Number &count) +{ + Number n; + StringC str; + CharsetDeclRange::Type type; + const PublicId *id; + if (sdBuilder.sd->internalCharsetIsDocCharset() + && sdBuilder.syntaxCharsetDecl.getCharInfo(syntaxChar, + id, + type, + n, + str, + count)) { + ISet docChars; + switch (type) { + case CharsetDeclRange::unused: + break; + case CharsetDeclRange::string: + sdBuilder.sd->docCharsetDecl().stringToChar(str, docChars); + break; + case CharsetDeclRange::number: + { + Number count2; + sdBuilder.sd->docCharsetDecl().numberToChar(id, n, docChars, count2); + if (!docChars.isEmpty() && count2 < count) + count = count2; + } + break; + default: + CANNOT_HAPPEN(); + } + if (!docChars.isEmpty()) { + if (!docChars.isSingleton() && options().warnSgmlDecl) + message(ParserMessages::ambiguousDocCharacter, + CharsetMessageArg(docChars)); + ISetIter iter(docChars); + WideChar min, max; + if (iter.next(min, max) && min <= charMax) { + docChar = Char(min); + return 1; + } + } + } + UnivChar univChar; + WideChar alsoMax, count2; + if (sdBuilder.syntaxCharset.descToUniv(syntaxChar, univChar, alsoMax) + && univToDescCheck(sdBuilder.sd->internalCharset(), univChar, docChar, + count2)) { + count = (alsoMax - syntaxChar) + 1; + if (count2 < count) + count = count2; + return 1; + } + sdBuilder.valid = 0; + message(sd().internalCharsetIsDocCharset() + ? ParserMessages::translateSyntaxCharDoc + : ParserMessages::translateSyntaxCharInternal, + NumberMessageArg(syntaxChar)); + return 0; +} + + +Boolean Parser::translateSyntax(SdBuilder &sdBuilder, + const String &syntaxString, + StringC &docString) +{ + docString.resize(0); + int ret = 1; + for (size_t i = 0; i < syntaxString.size(); i++) { + Char c; + if (translateSyntax(sdBuilder, syntaxString[i], c)) + docString += c; + else + ret = 0; + } + return ret; +} + +Boolean Parser::translateName(SdBuilder &sdBuilder, + const StringC &name, + StringC &str) +{ + str.resize(name.size()); + for (size_t i = 0; i < name.size(); i++) { + UnivChar univChar; + Boolean ret = sd().internalCharset().descToUniv(name[i], univChar); + // Might switch hyphen or period. + univChar = translateUniv(univChar, sdBuilder.switcher, + sdBuilder.syntaxCharset); + ASSERT(ret != 0); + if (!univToDescCheck(sdBuilder.sd->internalCharset(), univChar, str[i])) { + message(ParserMessages::translateDocChar, NumberMessageArg(univChar)); + sdBuilder.valid = 0; + return 0; + } + } + return 1; +} + +UnivChar Parser::translateUniv(UnivChar univChar, + CharSwitcher &switcher, + const CharsetInfo &syntaxCharset) +{ + WideChar syntaxChar; + ISet syntaxChars; + if (syntaxCharset.univToDesc(univChar, syntaxChar, syntaxChars) != 1) { + message(ParserMessages::missingSyntaxChar, + NumberMessageArg(univChar)); + return univChar; + } + SyntaxChar tem = switcher.subst(syntaxChar); + if (tem != syntaxChar && !syntaxCharset.descToUniv(tem, univChar)) + message(sd().internalCharsetIsDocCharset() + ? ParserMessages::translateSyntaxCharDoc + : ParserMessages::translateSyntaxCharInternal, + NumberMessageArg(tem)); + return univChar; +} + +Boolean Parser::checkNotFunction(const Syntax &syn, Char c) +{ + if (syn.charSet(Syntax::functionChar)->contains(c)) { + message(ParserMessages::oneFunction, NumberMessageArg(c)); + return 0; + } + else + return 1; +} + + +// Check that it has at most one B sequence and that it +// is not adjacent to a blank sequence. + +Boolean Parser::checkShortrefDelim(const Syntax &syn, + const CharsetInfo &charset, + const StringC &delim) +{ + Boolean hadB = 0; + Char letterB = charset.execToDesc('B'); + const ISet *bSet = syn.charSet(Syntax::blank); + for (size_t i = 0; i < delim.size(); i++) + if (delim[i] == letterB) { + if (hadB) { + message(ParserMessages::multipleBSequence, StringMessageArg(delim)); + return 0; + } + hadB = 1; + if (i > 0 && bSet->contains(delim[i - 1])) { + message(ParserMessages::blankAdjacentBSequence, + StringMessageArg(delim)); + return 0; + } + while (i + 1 < delim.size() && delim[i + 1] == letterB) + i++; + if (i < delim.size() - 1 && bSet->contains(delim[i + 1])) { + message(ParserMessages::blankAdjacentBSequence, + StringMessageArg(delim)); + return 0; + } + } + return 1; +} + +Boolean Parser::checkGeneralDelim(const Syntax &syn, const StringC &delim) +{ + const ISet *functionSet = syn.charSet(Syntax::functionChar); + if (delim.size() > 0) { + Boolean allFunction = 1; + for (size_t i = 0; i < delim.size(); i++) + if (!functionSet->contains(delim[i])) + allFunction = 0; + if (allFunction) { + message(ParserMessages::generalDelimAllFunction, + StringMessageArg(delim)); + return 0; + } + } + return 1; +} + +Boolean Parser::checkSwitches(CharSwitcher &switcher, + const CharsetInfo &syntaxCharset) +{ + Boolean valid = 1; + for (size_t i = 0; i < switcher.nSwitches(); i++) { + WideChar c[2]; + c[0] = switcher.switchFrom(i); + c[1] = switcher.switchTo(i); + for (int j = 0; j < 2; j++) { + UnivChar univChar; + if (syntaxCharset.descToUniv(c[j], univChar)) { + // Check that it is not Digit Lcletter or Ucletter + if ((UnivCharsetDesc::a <= univChar + && univChar < UnivCharsetDesc::a + 26) + || (UnivCharsetDesc::A <= univChar + && univChar < UnivCharsetDesc::A + 26) + || (UnivCharsetDesc::zero <= univChar + && univChar < UnivCharsetDesc::zero + 10)) { + message(ParserMessages::switchLetterDigit, + NumberMessageArg(univChar)); + valid = 0; + } + } + } + } + return valid; +} + +Boolean Parser::checkSwitchesMarkup(CharSwitcher &switcher) +{ + Boolean valid = 1; + size_t nSwitches = switcher.nSwitches(); + for (size_t i = 0; i < nSwitches; i++) + if (!switcher.switchUsed(i)) { + // If the switch wasn't used, + // then the character wasn't a markup character. + message(ParserMessages::switchNotMarkup, + NumberMessageArg(switcher.switchFrom(i))); + valid = 0; + } + return valid; +} + +void Parser::checkSyntaxNames(const Syntax &syn) +{ + HashTableIter iter(syn.functionIter()); + const StringC *name; + const Char *c; + while (iter.next(name, c)) { + for (size_t i = 1; i < name->size(); i++) + if (!syn.isNameCharacter((*name)[i])) { + message(ParserMessages::reservedNameSyntax, + StringMessageArg(*name)); + break; + } + } +} + +void Parser::checkSyntaxNamelen(const Syntax &syn) +{ + size_t namelen = syn.namelen(); + int i; + for (i = 0; i < Syntax::nDelimGeneral; i++) + if (syn.delimGeneral(i).size() > namelen) + message(ParserMessages::delimiterLength, + StringMessageArg(syn.delimGeneral(i)), + NumberMessageArg(namelen)); + for (i = 0; i < syn.nDelimShortrefComplex(); i++) + if (syn.delimShortrefComplex(i).size() > namelen) + message(ParserMessages::delimiterLength, + StringMessageArg(syn.delimShortrefComplex(i)), + NumberMessageArg(namelen)); + for (i = 0; i < Syntax::nNames; i++) + if (syn.reservedName(Syntax::ReservedName(i)).size() > namelen + && options().warnSgmlDecl) + message(ParserMessages::reservedNameLength, + StringMessageArg(syn.reservedName(Syntax::ReservedName(i))), + NumberMessageArg(namelen)); +} + +Boolean Parser::univToDescCheck(const CharsetInfo &charset, UnivChar from, + Char &to) +{ + WideChar c; + ISet descSet; + unsigned ret = charset.univToDesc(from, c, descSet); + if (ret > 1) { + if (options().warnSgmlDecl) + message(ParserMessages::ambiguousDocCharacter, + CharsetMessageArg(descSet)); + ret = 1; + } + if (ret && c <= charMax) { + to = Char(c); + return 1; + } + return 0; +} + +Boolean Parser::univToDescCheck(const CharsetInfo &charset, UnivChar from, + Char &to, WideChar &count) +{ + WideChar c; + ISet descSet; + unsigned ret = charset.univToDesc(from, c, descSet, count); + if (ret > 1) { + if (options().warnSgmlDecl) + message(ParserMessages::ambiguousDocCharacter, + CharsetMessageArg(descSet)); + ret = 1; + } + if (ret && c <= charMax) { + to = Char(c); + return 1; + } + return 0; +} + +Boolean Parser::parseSdParam(const AllowedSdParams &allow, + SdParam &parm) +{ + for (;;) { + Token token = getToken(sdMode); + switch (token) { + case tokenUnrecognized: + if (reportNonSgmlCharacter()) + break; + { + message(ParserMessages::markupDeclarationCharacter, + StringMessageArg(currentToken()), + AllowedSdParamsMessageArg(allow, sdPointer())); + } + return 0; + case tokenEe: + if (allow.param(SdParam::eE)) { + parm.type = SdParam::eE; + if (currentMarkup()) + currentMarkup()->addEntityEnd(); + popInputStack(); + return 1; + } + message(ParserMessages::sdEntityEnd, + AllowedSdParamsMessageArg(allow, sdPointer())); + return 0; + case tokenS: + if (currentMarkup()) + currentMarkup()->addS(currentChar()); + break; + case tokenCom: + if (!parseComment(sdcomMode)) + return 0; + break; + case tokenDso: + case tokenGrpo: + case tokenMinusGrpo: + case tokenPlusGrpo: + case tokenRni: + case tokenPeroNameStart: + case tokenPeroGrpo: + sdParamInvalidToken(token, allow); + return 0; + case tokenMinus: + if (allow.param(SdParam::minus)) { + parm.type = SdParam::minus; + return 1; + } + sdParamInvalidToken(tokenMinus, allow); + return 0; + case tokenLita: + case tokenLit: + { + Boolean lita = (token == tokenLita); + if (allow.param(SdParam::minimumLiteral)) { + if (!parseMinimumLiteral(lita, parm.literalText)) + return 0; + parm.type = SdParam::minimumLiteral; + if (currentMarkup()) + currentMarkup()->addLiteral(parm.literalText); + } + else if (allow.param(SdParam::paramLiteral)) { + if (!parseSdParamLiteral(lita, parm.paramLiteralText)) + return 0; + parm.type = SdParam::paramLiteral; + } + else if (allow.param(SdParam::systemIdentifier)) { + if (!parseSdSystemIdentifier(lita, parm.literalText)) + return 0; + parm.type = SdParam::systemIdentifier; + } + else { + sdParamInvalidToken(token, allow); + return 0; + } + return 1; + } + case tokenMdc: + if (allow.param(SdParam::mdc)) { + parm.type = SdParam::mdc; + if (currentMarkup()) + currentMarkup()->addDelim(Syntax::dMDC); + return 1; + } + sdParamInvalidToken(tokenMdc, allow); + return 0; + case tokenNameStart: + { + extendNameToken(syntax().namelen(), ParserMessages::nameLength); + getCurrentToken(syntax().generalSubstTable(), parm.token); + if (allow.param(SdParam::capacityName)) { + if (sd().lookupCapacityName(parm.token, parm.capacityIndex)) { + parm.type = SdParam::capacityName; + if (currentMarkup()) + currentMarkup()->addName(currentInput()); + return 1; + } + } + if (allow.param(SdParam::referenceReservedName)) { + if (syntax().lookupReservedName(parm.token, + &parm.reservedNameIndex)) { + parm.type = SdParam::referenceReservedName; + if (currentMarkup()) + currentMarkup()->addName(currentInput()); + return 1; + } + } + if (allow.param(SdParam::generalDelimiterName)) { + if (sd().lookupGeneralDelimiterName(parm.token, + parm.delimGeneralIndex)) { + parm.type = SdParam::generalDelimiterName; + if (currentMarkup()) + currentMarkup()->addName(currentInput()); + return 1; + } + } + if (allow.param(SdParam::quantityName)) { + if (sd().lookupQuantityName(parm.token, parm.quantityIndex)) { + parm.type = SdParam::quantityName; + if (currentMarkup()) + currentMarkup()->addName(currentInput()); + return 1; + } + } + for (int i = 0;; i++) { + SdParam::Type t = allow.get(i); + if (t == SdParam::invalid) + break; + if (t >= SdParam::reservedName) { + Sd::ReservedName sdReservedName + = Sd::ReservedName(t - SdParam::reservedName); + if (parm.token == sd().reservedName(sdReservedName)) { + parm.type = t; + if (currentMarkup()) + currentMarkup()->addSdReservedName(sdReservedName, + currentInput()); + return 1; + } + } + } + if (allow.param(SdParam::name)) { + parm.type = SdParam::name; + if (currentMarkup()) + currentMarkup()->addName(currentInput()); + return 1; + } + { + message(ParserMessages::sdInvalidNameToken, + StringMessageArg(parm.token), + AllowedSdParamsMessageArg(allow, sdPointer())); + } + return 0; + } + case tokenDigit: + if (allow.param(SdParam::number)) { + extendNumber(syntax().namelen(), ParserMessages::numberLength); + parm.type = SdParam::number; + unsigned long n; + if (!stringToNumber(currentInput()->currentTokenStart(), + currentInput()->currentTokenLength(), + n) + || n > Number(-1)) { + message(ParserMessages::numberTooBig, + StringMessageArg(currentToken())); + parm.n = Number(-1); + } + else { + if (currentMarkup()) + currentMarkup()->addNumber(currentInput()); + parm.n = Number(n); + } + Token token = getToken(sdMode); + if (token == tokenNameStart) + message(ParserMessages::psRequired); + currentInput()->ungetToken(); + return 1; + } + sdParamInvalidToken(tokenDigit, allow); + return 0; + default: + CANNOT_HAPPEN(); + } + } +} + +// This is a separate function, because we might want SyntaxChar +// to be bigger than Char. + +Boolean Parser::parseSdParamLiteral(Boolean lita, String &str) +{ + Location loc(currentLocation()); + loc += 1; + SdText text(loc, lita); // first character of content + str.resize(0); + const unsigned refLitlen = Syntax::referenceQuantity(Syntax::qLITLEN); + + Mode mode = lita ? sdplitaMode : sdplitMode; + for (;;) { + Token token = getToken(mode); + switch (token) { + case tokenEe: + message(ParserMessages::literalLevel); + return 0; + case tokenUnrecognized: + if (reportNonSgmlCharacter()) + break; + if (options().errorSignificant) + message(ParserMessages::sdLiteralSignificant, + StringMessageArg(currentToken())); + text.addChar(currentChar(), currentLocation()); + break; + case tokenCroDigit: + { + InputSource *in = currentInput(); + Location startLocation = currentLocation(); + in->discardInitial(); + extendNumber(syntax().namelen(), ParserMessages::numberLength); + unsigned long n; + Boolean valid; + if (!stringToNumber(in->currentTokenStart(), + in->currentTokenLength(), + n) + || n > syntaxCharMax) { + message(ParserMessages::syntaxCharacterNumber, + StringMessageArg(currentToken())); + valid = 0; + } + else + valid = 1; + Owner markupPtr; + if (eventsWanted().wantPrologMarkup()) { + markupPtr = new Markup; + markupPtr->addDelim(Syntax::dCRO); + markupPtr->addNumber(in); + switch (getToken(refMode)) { + case tokenRefc: + markupPtr->addDelim(Syntax::dREFC); + break; + case tokenRe: + markupPtr->addRefEndRe(); + if (options().warnRefc) + message(ParserMessages::refc); + break; + default: + if (options().warnRefc) + message(ParserMessages::refc); + break; + } + } + else if (options().warnRefc) { + if (getToken(refMode) != tokenRefc) + message(ParserMessages::refc); + } + else + (void)getToken(refMode); + if (valid) + text.addChar(SyntaxChar(n), + Location(new NumericCharRefOrigin(startLocation, + currentLocation().index() + + currentInput()->currentTokenLength() + - startLocation.index(), + markupPtr), + 0)); + } + break; + case tokenCroNameStart: + if (!parseNamedCharRef()) + return 0; + break; + case tokenLit: + case tokenLita: + goto done; + case tokenPeroNameStart: + case tokenPeroGrpo: + message(ParserMessages::sdParameterEntity); + { + Location loc(currentLocation()); + const Char *p = currentInput()->currentTokenStart(); + for (size_t count = currentInput()->currentTokenLength(); + count > 0; + count--) { + text.addChar(*p++, loc); + loc += 1; + } + } + break; + case tokenChar: + if (text.string().size() > refLitlen + && currentChar() == syntax().standardFunction(Syntax::fRE)) { + message(ParserMessages::parameterLiteralLength, NumberMessageArg(refLitlen)); + // guess that the closing delimiter has been omitted + message(ParserMessages::literalClosingDelimiter); + return 0; + } + text.addChar(currentChar(), currentLocation()); + break; + } + } + done: + if (text.string().size() > refLitlen) + message(ParserMessages::parameterLiteralLength, + NumberMessageArg(refLitlen)); + + str = text.string(); + if (currentMarkup()) + currentMarkup()->addSdLiteral(text); + return 1; +} + +Boolean Parser::parseSdSystemIdentifier(Boolean lita, Text &text) +{ + text.addStartDelim(currentLocation()); + + const unsigned refLitlen = Syntax::referenceQuantity(Syntax::qLITLEN); + + Mode mode = lita ? sdslitaMode : sdslitMode; + for (;;) { + Token token = getToken(mode); + switch (token) { + case tokenEe: + message(ParserMessages::literalLevel); + return 0; + case tokenUnrecognized: + if (reportNonSgmlCharacter()) + break; + if (options().errorSignificant) + message(ParserMessages::sdLiteralSignificant, + StringMessageArg(currentToken())); + text.addChar(currentChar(), currentLocation()); + break; + case tokenLit: + case tokenLita: + text.addEndDelim(currentLocation(), token == tokenLita); + goto done; + case tokenChar: + text.addChar(currentChar(), currentLocation()); + break; + default: + CANNOT_HAPPEN(); + } + } +done: + if (text.string().size() > refLitlen) + message(ParserMessages::systemIdentifierLength, + NumberMessageArg(refLitlen)); + if (currentMarkup()) + currentMarkup()->addLiteral(text); + return 1; +} + +Boolean Parser::stringToNumber(const Char *s, size_t length, + unsigned long &result) +{ + unsigned long n = 0; + if (length < 10) + for (; length > 0; length--, s++) + n = 10*n + sd().digitWeight(*s); + else + for (; length > 0; length--, s++) { + int val = sd().digitWeight(*s); + if (n <= ULONG_MAX/10 && (n *= 10) <= ULONG_MAX - val) + n += val; + else + return 0; + } + result = n; + return 1; +} + +void Parser::sdParamInvalidToken(Token token, + const AllowedSdParams &allow) +{ + message(ParserMessages::sdParamInvalidToken, + TokenMessageArg(token, sdMode, syntaxPointer(), sdPointer()), + AllowedSdParamsMessageArg(allow, sdPointer())); +} + +void Parser::sdParamConvertToLiteral(SdParam &parm) +{ + if (parm.type == SdParam::number) { + parm.type = SdParam::paramLiteral; + parm.paramLiteralText.resize(1); + parm.paramLiteralText[0] = parm.n; + } +} + +void Parser::requireWWW(SdBuilder &sdBuilder) +{ + if (!sdBuilder.www) { + message(ParserMessages::wwwRequired); + sdBuilder.www = 1; + } +} + +AllowedSdParams::AllowedSdParams(SdParam::Type arg1, SdParam::Type arg2, + SdParam::Type arg3, SdParam::Type arg4, + SdParam::Type arg5, SdParam::Type arg6) +{ + allow_[0] = arg1; + allow_[1] = arg2; + allow_[2] = arg3; + allow_[3] = arg4; + allow_[4] = arg5; + allow_[5] = arg6; +} + +Boolean AllowedSdParams::param(SdParam::Type t) const +{ + for (int i = 0; i < maxAllow && allow_[i] != SdParam::invalid; i++) + if (t == allow_[i]) + return 1; + return 0; +} + +SdParam::Type AllowedSdParams::get(int i) const +{ + return i < 0 || i >= maxAllow ? SdParam::Type(SdParam::invalid) : allow_[i]; +} + +AllowedSdParamsMessageArg::AllowedSdParamsMessageArg( + const AllowedSdParams &allow, + const ConstPtr &sd) +: allow_(allow), sd_(sd) +{ +} + +MessageArg *AllowedSdParamsMessageArg::copy() const +{ + return new AllowedSdParamsMessageArg(*this); +} + +void AllowedSdParamsMessageArg::append(MessageBuilder &builder) const +{ + for (int i = 0;; i++) { + SdParam::Type type = allow_.get(i); + if (type == SdParam::invalid) + break; + if (i != 0) + builder.appendFragment(ParserMessages::listSep); + switch (type) { + case SdParam::eE: + builder.appendFragment(ParserMessages::entityEnd); + break; + case SdParam::minimumLiteral: + builder.appendFragment(ParserMessages::minimumLiteral); + break; + case SdParam::mdc: + { + builder.appendFragment(ParserMessages::delimStart); + Char c = sd_->execToInternal('>'); + builder.appendChars(&c, 1); +#if 0 + builder.appendFragment(ParserMessages::delimEnd); +#endif + } + break; + case SdParam::number: + builder.appendFragment(ParserMessages::number); + break; + case SdParam::name: + builder.appendFragment(ParserMessages::name); + break; + case SdParam::paramLiteral: + builder.appendFragment(ParserMessages::parameterLiteral); + break; + case SdParam::systemIdentifier: + builder.appendFragment(ParserMessages::systemIdentifier); + break; + case SdParam::capacityName: + builder.appendFragment(ParserMessages::capacityName); + break; + case SdParam::generalDelimiterName: + builder.appendFragment(ParserMessages::generalDelimiteRoleName); + break; + case SdParam::referenceReservedName: + builder.appendFragment(ParserMessages::referenceReservedName); + break; + case SdParam::quantityName: + builder.appendFragment(ParserMessages::quantityName); + break; + case SdParam::minus: + { + StringC str(sd_->execToInternal("...")); + builder.appendChars(str.data(), str.size()); + break; + } + default: + { + StringC str(sd_->reservedName(type - SdParam::reservedName)); + builder.appendChars(str.data(), str.size()); + break; + } + } + } +} + +SdBuilder::SdBuilder() +: valid(1), externalSyntax(0), enr(0), www(0), external(0) +{ +} + +void SdBuilder::addFormalError(const Location &location, + const MessageType1 &message, + const StringC &id) +{ + formalErrorList.insert(new SdFormalError(location, message, id)); +} + +SdFormalError::SdFormalError(const Location &location, + const MessageType1 &message, + const StringC &id) +: location_(location), + message_(&message), + id_(id) +{ +} + +void SdFormalError::send(ParserState &parser) +{ + parser.Messenger::setNextLocation(location_); + parser.message(*message_, StringMessageArg(id_)); +} + +CharSwitcher::CharSwitcher() +{ +} + +void CharSwitcher::addSwitch(WideChar from, WideChar to) +{ + switches_.push_back(from); + switches_.push_back(to); + switchUsed_.push_back(0); +} + +SyntaxChar CharSwitcher::subst(WideChar c) +{ + for (size_t i = 0; i < switches_.size(); i += 2) + if (switches_[i] == c) { + switchUsed_[i/2] = 1; + return switches_[i + 1]; + } + return c; +} + +size_t CharSwitcher::nSwitches() const +{ + return switchUsed_.size(); +} + +Boolean CharSwitcher::switchUsed(size_t i) const +{ + return switchUsed_[i]; +} + +WideChar CharSwitcher::switchFrom(size_t i) const +{ + return switches_[i*2]; +} + +WideChar CharSwitcher::switchTo(size_t i) const +{ + return switches_[i*2 + 1]; +} + +CharsetMessageArg::CharsetMessageArg(const ISet &set) +: set_(set) +{ +} + +MessageArg *CharsetMessageArg::copy() const +{ + return new CharsetMessageArg(*this); +} + +void CharsetMessageArg::append(MessageBuilder &builder) const +{ + ISetIter iter(set_); + WideChar min, max; + Boolean first = 1; + while (iter.next(min, max)) { + if (first) + first = 0; + else + builder.appendFragment(ParserMessages::listSep); + builder.appendNumber(min); + if (max != min) { + builder.appendFragment(max == min + 1 + ? ParserMessages::listSep + : ParserMessages::rangeSep); + builder.appendNumber(max); + } + } +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/lib/parser_inst.cxx b/lib/parser_inst.cxx new file mode 100644 index 0000000..a7f7863 --- /dev/null +++ b/lib/parser_inst.cxx @@ -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 new file mode 100644 index 0000000..541c614 --- /dev/null +++ b/lib/parser_inst.m4 @@ -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 */ diff --git a/lib/splib.cxx b/lib/splib.cxx new file mode 100644 index 0000000..8fd70f3 --- /dev/null +++ b/lib/splib.cxx @@ -0,0 +1,4 @@ +// This file is used to build the pre-compiled header on those +// systems that support it. + +#include "splib.h" diff --git a/lib/splib.h b/lib/splib.h new file mode 100644 index 0000000..f1f9745 --- /dev/null +++ b/lib/splib.h @@ -0,0 +1,10 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +// This file must be included first by all files in lib. + +#define BUILD_LIBSP +#include "config.h" +#ifdef SP_PCH +#include "splibpch.h" +#endif /* SP_PCH */ diff --git a/lib/splibpch.h b/lib/splibpch.h new file mode 100644 index 0000000..cf7be7e --- /dev/null +++ b/lib/splibpch.h @@ -0,0 +1,153 @@ +// Copyright (c) 1996 James Clark, 1999 Matthias Clasen +// See the file COPYING for copying permission. + +// Include all header files for systems that support pre-compiled headers. + +#include "Allocator.h" +#include "ArcEngine.h" +#include "Attribute.h" +#include "Attributed.h" +#include "Boolean.h" +#include "CharMap.h" +#include "CharsetDecl.h" +#include "CharsetInfo.h" +#include "CmdLineApp.h" +#include "CodingSystem.h" +#include "CodingSystemKit.h" +#include "ConsoleOutput.h" +#include "ContentState.h" +#include "ContentToken.h" +#include "CopyOwner.h" +#include "DescriptorManager.h" +#include "Dtd.h" +#include "ElementType.h" +#include "Entity.h" +#include "EntityApp.h" +#include "EntityCatalog.h" +#include "EntityDecl.h" +#include "EntityManager.h" +#include "ErrnoMessageArg.h" +#include "ErrorCountEventHandler.h" +#include "Event.h" +#include "EventsWanted.h" +#include "ExtendEntityManager.h" +#include "ExternalId.h" +#include "GenericEventHandler.h" +#include "Hash.h" +#include "HashTable.h" +#include "HashTableItemBase.h" +#include "IList.h" +#include "IListBase.h" +#include "IListIter.h" +#include "IListIterBase.h" +#include "IQueue.h" +#include "ISet.h" +#include "ISetIter.h" +#include "IdentityCodingSystem.h" +#include "InputSource.h" +#include "Link.h" +#include "LinkProcess.h" +#include "List.h" +#include "ListIter.h" +#include "LiteralStorage.h" +#include "Location.h" +#include "Lpd.h" +#include "Markup.h" +#include "Message.h" +#include "MessageArg.h" +#include "MessageBuilder.h" +#include "MessageEventHandler.h" +#include "MessageFormatter.h" +#include "MessageReporter.h" +#include "Mode.h" +#include "NCVector.h" +#include "Named.h" +#include "NamedResource.h" +#include "NamedResourceTable.h" +#include "NamedTable.h" +#include "Notation.h" +#include "NotationStorage.h" +#include "OpenElement.h" +#include "Options.h" +#include "OutputByteStream.h" +#include "OutputCharStream.h" +#include "Owner.h" +#include "OwnerTable.h" +#include "ParserApp.h" +#include "ParserOptions.h" +#include "PointerTable.h" +#include "PosixStorage.h" +#include "Ptr.h" +#include "RangeMap.h" +#include "Resource.h" +#include "RewindStorageObject.h" +#include "SOEntityCatalog.h" +#include "Sd.h" +#include "SdText.h" +#include "SearchResultMessageArg.h" +#include "SgmlParser.h" +#include "ShortReferenceMap.h" +#include "StdioStorage.h" +#include "StorageManager.h" +#include "StringC.h" +#include "StringOf.h" +#include "StringResource.h" +#include "SubstTable.h" +#include "Syntax.h" +#include "Text.h" +#include "TypeId.h" +#include "URLStorage.h" +#include "UnivCharsetDesc.h" +#include "Vector.h" +#include "XcharMap.h" +#include "config.h" +#include "constant.h" +#include "macros.h" +#include "rtti.h" +#include "sptchar.h" +#include "types.h" +#include "xnew.h" +#ifdef SP_MULTI_BYTE +#include "EUCJPCodingSystem.h" +#include "Fixed2CodingSystem.h" +#include "Fixed4CodingSystem.h" +#include "SJISCodingSystem.h" +#include "UnicodeCodingSystem.h" +#include "UTF8CodingSystem.h" +#include "UTF16CodingSystem.h" +#ifdef WIN32 +#include "Win32CodingSystem.h" +#endif +#endif /* SP_MULTI_BYTE */ +#include "EventGenerator.h" +#include "ParserEventGeneratorKit.h" +#include "SGMLApplication.h" +#include "ArcProcessor.h" +#include "CatalogEntry.h" +#include "CharsetRegistry.h" +#include "EquivClass.h" +#include "EventQueue.h" +#include "Group.h" +#include "Id.h" +#include "InternalInputSource.h" +#include "LpdEntityRef.h" +#include "MarkupScan.h" +#include "ModeInfo.h" +#include "NameToken.h" +#include "NumericCharRefOrigin.h" +#include "OutputState.h" +#include "Param.h" +#include "Parser.h" +#include "ParserMessages.h" +#include "ParserState.h" +#include "Partition.h" +#include "Priority.h" +#include "Recognizer.h" +#include "SdFormalError.h" +#include "SrInfo.h" +#include "StorageObjectPosition.h" +#include "TokenMessageArg.h" +#include "Trie.h" +#include "TrieBuilder.h" +#include "Undo.h" +#include "token.h" diff --git a/lib/strerror.c b/lib/strerror.c new file mode 100644 index 0000000..280decb --- /dev/null +++ b/lib/strerror.c @@ -0,0 +1,23 @@ +#include "config.h" +#include + +#ifndef HAVE_STRERROR + +#define INT_DIGITS 19 /* enough for 64 bit integer */ + +extern int sys_nerr; +extern char *sys_errlist[]; + +char *strerror(n) + int n; +{ + static char buf[sizeof("Error ") + 1 + INT_DIGITS]; + if (n >= 0 && n < sys_nerr && sys_errlist[n] != 0) + return sys_errlist[n]; + else { + sprintf(buf, "Error %d", n); + return buf; + } +} + +#endif diff --git a/lib/token.h b/lib/token.h new file mode 100644 index 0000000..ea81400 --- /dev/null +++ b/lib/token.h @@ -0,0 +1,83 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef token_INCLUDED +#define token_INCLUDED 1 + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +enum EnumToken { + // tokenUnrecognized must be 0 + tokenUnrecognized, // no token could be recognized + tokenEe, // end of entity + tokenS, // RS RE SPACE SEPCHAR + tokenRe, // RE + tokenRs, // RS + tokenSpace, // SPACE + tokenSepchar, // SEPCHAR + tokenNameStart, // X + tokenDigit, // 1 + tokenLcUcNmchar, // LCNMCHAR or UCNMCHAR + tokenChar, // a legal data character + tokenCharDelim, // a data character which starts a delimiter + tokenIgnoredChar, // character in ignored marked section + // delimiters and delimiters in context + tokenAnd, + tokenCom, + tokenCroDigit, + tokenCroNameStart, + tokenDsc, + tokenDso, + tokenDtgc, + tokenDtgo, + tokenEroNameStart, + tokenEroGrpo, + tokenEtago, + tokenEtagoNameStart, + tokenEtagoTagc, + tokenEtagoGrpo, + tokenGrpc, + tokenGrpo, + tokenHcroHexDigit, + tokenLit, + tokenLita, + tokenMdc, + tokenMdoNameStart, + tokenMdoMdc, + tokenMdoCom, + tokenMdoDso, + tokenMinus, + tokenMinusGrpo, + tokenMscMdc, + tokenNet, + tokenNestc, + tokenOpt, + tokenOr, + tokenPero, + tokenPeroNameStart, + tokenPeroGrpo, + tokenPic, + tokenPio, + tokenPlus, + tokenPlusGrpo, + tokenRefc, + tokenRep, + tokenRni, + tokenSeq, + tokenStago, + tokenStagoNameStart, + tokenStagoTagc, + tokenStagoGrpo, + tokenTagc, + tokenVi, + // short references start here + tokenFirstShortref +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not token_INCLUDED */ diff --git a/lib/xentmgr_inst.cxx b/lib/xentmgr_inst.cxx new file mode 100644 index 0000000..c4da64b --- /dev/null +++ b/lib/xentmgr_inst.cxx @@ -0,0 +1,748 @@ +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + + +#ifdef SP_NAMESPACE +} +#endif +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "StringOf.h" +#include "Vector.h" +#include "NCVector.h" +#include "ListIter.h" +#include "IList.h" +#include "List.h" +#include "Owner.h" +#include "OwnerTable.h" +#include "PointerTable.h" +#include "HashTableItemBase.h" +#include "HashTable.h" +#include "Ptr.h" +#include "CharMap.h" +#undef SP_DEFINE_TEMPLATES + +#include "StorageManager.h" +#include "ExtendEntityManager.h" +#include "OffsetOrderedList.h" +#include "CodingSystem.h" +#include "CodingSystemKit.h" +#include "types.h" +#include "StringOf.h" +#include "DescriptorManager.h" +#include "StorageManager.h" +#include "Boolean.h" +#include "StorageObjectPosition.h" +#include "CatalogEntry.h" +#include "CharsetRegistry.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#ifdef __DECCXX +#pragma define_template String +#else +#ifdef __xlC__ +#pragma define(String) +#else +#ifdef SP_ANSI_CLASS_INST +template class String; +#else +typedef String Dummy_0; +#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_1; +#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_2; +#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_3; +#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_4; +#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_5; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template List +#else +#ifdef __xlC__ +#pragma define(List) +#else +#ifdef SP_ANSI_CLASS_INST +template class List; +#else +typedef List Dummy_6; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ListIter +#else +#ifdef __xlC__ +#pragma define(ListIter) +#else +#ifdef SP_ANSI_CLASS_INST +template class ListIter; +#else +typedef ListIter Dummy_7; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ListItem +#else +#ifdef __xlC__ +#pragma define(ListItem) +#else +#ifdef SP_ANSI_CLASS_INST +template class ListItem; +#else +typedef ListItem Dummy_8; +#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_9; +#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_10; +#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_11; +#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_12; +#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_13; +#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_14; +#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_15; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template HashTable,CatalogEntry> +#else +#ifdef __xlC__ +#pragma define(HashTable,CatalogEntry>) +#else +#ifdef SP_ANSI_CLASS_INST +template class HashTable,CatalogEntry>; +#else +typedef HashTable,CatalogEntry> Dummy_16; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template HashTableIter,CatalogEntry> +#else +#ifdef __xlC__ +#pragma define(HashTableIter,CatalogEntry>) +#else +#ifdef SP_ANSI_CLASS_INST +template class HashTableIter,CatalogEntry>; +#else +typedef HashTableIter,CatalogEntry> Dummy_17; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template HashTableItem,CatalogEntry> +#else +#ifdef __xlC__ +#pragma define(HashTableItem,CatalogEntry>) +#else +#ifdef SP_ANSI_CLASS_INST +template class HashTableItem,CatalogEntry>; +#else +typedef HashTableItem,CatalogEntry> Dummy_18; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template HashTableItemBase > +#else +#ifdef __xlC__ +#pragma define(HashTableItemBase >) +#else +#ifdef SP_ANSI_CLASS_INST +template class HashTableItemBase >; +#else +typedef HashTableItemBase > Dummy_19; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template OwnerTable >,String,Hash,HashTableKeyFunction > > +#else +#ifdef __xlC__ +#pragma define(OwnerTable >,String,Hash,HashTableKeyFunction > >) +#else +#ifdef SP_ANSI_CLASS_INST +template class OwnerTable >,String,Hash,HashTableKeyFunction > >; +#else +typedef OwnerTable >,String,Hash,HashTableKeyFunction > > Dummy_20; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CopyOwnerTable >,String,Hash,HashTableKeyFunction > > +#else +#ifdef __xlC__ +#pragma define(CopyOwnerTable >,String,Hash,HashTableKeyFunction > >) +#else +#ifdef SP_ANSI_CLASS_INST +template class CopyOwnerTable >,String,Hash,HashTableKeyFunction > >; +#else +typedef CopyOwnerTable >,String,Hash,HashTableKeyFunction > > Dummy_21; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template OwnerTableIter >, String, Hash, HashTableKeyFunction > > +#else +#ifdef __xlC__ +#pragma define(OwnerTableIter >, String, Hash, HashTableKeyFunction > >) +#else +#ifdef SP_ANSI_CLASS_INST +template class OwnerTableIter >, String, Hash, HashTableKeyFunction > >; +#else +typedef OwnerTableIter >, String, Hash, HashTableKeyFunction > > Dummy_22; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template PointerTable >*,String,Hash,HashTableKeyFunction > > +#else +#ifdef __xlC__ +#pragma define(PointerTable >*,String,Hash,HashTableKeyFunction > >) +#else +#ifdef SP_ANSI_CLASS_INST +template class PointerTable >*,String,Hash,HashTableKeyFunction > >; +#else +typedef PointerTable >*,String,Hash,HashTableKeyFunction > > Dummy_23; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template PointerTableIter > *, String, Hash, HashTableKeyFunction > > +#else +#ifdef __xlC__ +#pragma define(PointerTableIter > *, String, Hash, HashTableKeyFunction > >) +#else +#ifdef SP_ANSI_CLASS_INST +template class PointerTableIter > *, String, Hash, HashTableKeyFunction > >; +#else +typedef PointerTableIter > *, String, Hash, HashTableKeyFunction > > Dummy_24; +#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_25; +#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_26; +#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_27; +#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_28; +#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_29; +#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_30; +#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_31; +#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_32; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CharMap +#else +#ifdef __xlC__ +#pragma define(CharMap) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMap; +#else +typedef CharMap Dummy_33; +#endif +#endif +#endif +#ifdef SP_MULTI_BYTE +#ifdef __DECCXX +#pragma define_template CharMapPlane +#else +#ifdef __xlC__ +#pragma define(CharMapPlane) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapPlane; +#else +typedef CharMapPlane Dummy_34; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CharMapPage +#else +#ifdef __xlC__ +#pragma define(CharMapPage) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapPage; +#else +typedef CharMapPage Dummy_35; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CharMapColumn +#else +#ifdef __xlC__ +#pragma define(CharMapColumn) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapColumn; +#else +typedef CharMapColumn Dummy_36; +#endif +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CharMapResource +#else +#ifdef __xlC__ +#pragma define(CharMapResource) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapResource; +#else +typedef CharMapResource Dummy_37; +#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_38; +#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_39; +#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_40; +#endif +#endif +#endif +#ifdef SP_MULTI_BYTE +#ifdef __DECCXX +#pragma define_template CharMap +#else +#ifdef __xlC__ +#pragma define(CharMap) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMap; +#else +typedef CharMap Dummy_41; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CharMapPlane +#else +#ifdef __xlC__ +#pragma define(CharMapPlane) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapPlane; +#else +typedef CharMapPlane Dummy_42; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CharMapPage +#else +#ifdef __xlC__ +#pragma define(CharMapPage) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapPage; +#else +typedef CharMapPage Dummy_43; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CharMapColumn +#else +#ifdef __xlC__ +#pragma define(CharMapColumn) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapColumn; +#else +typedef CharMapColumn Dummy_44; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template CharMapResource +#else +#ifdef __xlC__ +#pragma define(CharMapResource) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapResource; +#else +typedef CharMapResource Dummy_45; +#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_46; +#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_47; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template String +#else +#ifdef __xlC__ +#pragma define(String) +#else +#ifdef SP_ANSI_CLASS_INST +template class String; +#else +typedef String Dummy_48; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template String +#else +#ifdef __xlC__ +#pragma define(String) +#else +#ifdef SP_ANSI_CLASS_INST +template class String; +#else +typedef String Dummy_49; +#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_50; +#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_51; +#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_52; +#endif +#endif +#endif +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/lib/xentmgr_inst.m4 b/lib/xentmgr_inst.m4 new file mode 100644 index 0000000..a7baba9 --- /dev/null +++ b/lib/xentmgr_inst.m4 @@ -0,0 +1,104 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#include "splib.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "StringOf.h" +#include "Vector.h" +#include "NCVector.h" +#include "ListIter.h" +#include "IList.h" +#include "List.h" +#include "Owner.h" +#include "OwnerTable.h" +#include "PointerTable.h" +#include "HashTableItemBase.h" +#include "HashTable.h" +#include "Ptr.h" +#include "CharMap.h" +#undef SP_DEFINE_TEMPLATES + +#include "StorageManager.h" +#include "ExtendEntityManager.h" +#include "OffsetOrderedList.h" +#include "CodingSystem.h" +#include "CodingSystemKit.h" +#include "types.h" +#include "StringOf.h" +#include "DescriptorManager.h" +#include "StorageManager.h" +#include "Boolean.h" +#include "StorageObjectPosition.h" +#include "CatalogEntry.h" +#include "CharsetRegistry.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +__instantiate(String) +__instantiate(NCVector >) +__instantiate(Vector) +__instantiate(NCVector >) +__instantiate(NCVector) +__instantiate(IList >) +__instantiate(List) +__instantiate(ListIter) +__instantiate(ListItem) +__instantiate(IListIter >) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(Owner) +__instantiate(NCVector >) +__instantiate(`HashTable,CatalogEntry>') +__instantiate(`HashTableIter,CatalogEntry>') +__instantiate(`HashTableItem,CatalogEntry>') +__instantiate(HashTableItemBase >) +__instantiate(`OwnerTable >,String,Hash,HashTableKeyFunction > >') +__instantiate(`CopyOwnerTable >,String,Hash,HashTableKeyFunction > >') +__instantiate(`OwnerTableIter >, String, Hash, HashTableKeyFunction > >') +__instantiate(`PointerTable >*,String,Hash,HashTableKeyFunction > >') +__instantiate(`PointerTableIter > *, String, Hash, HashTableKeyFunction > >') +__instantiate(Vector >*>) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Vector) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(ConstPtr) +__instantiate(Ptr) +__instantiate(CharMap) +#ifdef SP_MULTI_BYTE +__instantiate(CharMapPlane) +__instantiate(CharMapPage) +__instantiate(CharMapColumn) +#endif +__instantiate(CharMapResource) +__instantiate(Ptr >) +__instantiate(ConstPtr >) +__instantiate(Owner) +#ifdef SP_MULTI_BYTE +__instantiate(CharMap) +__instantiate(CharMapPlane) +__instantiate(CharMapPage) +__instantiate(CharMapColumn) +__instantiate(CharMapResource) +__instantiate(Ptr >) +__instantiate(ConstPtr >) +__instantiate(String) +__instantiate(String) +__instantiate(Vector >) +__instantiate(Ptr >) +__instantiate(Ptr >) +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/ltmain.sh b/ltmain.sh new file mode 100644 index 0000000..bc48901 --- /dev/null +++ b/ltmain.sh @@ -0,0 +1,6500 @@ +# ltmain.sh - Provide generalized library-building support services. +# NOTE: Changing this file will not affect anything until you rerun configure. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +basename="s,^.*/,,g" + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath="$0" + +# The name of this program: +progname=`echo "$progpath" | $SED $basename` +modename="$progname" + +# Global variables: +EXIT_SUCCESS=0 +EXIT_FAILURE=1 + +PROGRAM=ltmain.sh +PACKAGE=libtool +VERSION=1.5.18 +TIMESTAMP=" (1.1220.2.246 2005/05/16 10:00:18)" + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes. +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +# Check that we have a working $echo. +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then + # Yippee, $echo works! + : +else + # Restart under the correct shell, and then maybe $echo will work. + exec $SHELL "$progpath" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat <&2 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 + exit $EXIT_FAILURE +fi + +# Global variables. +mode=$default_mode +nonopt= +prev= +prevopt= +run= +show="$echo" +show_help= +execute_dlfiles= +lo2o="s/\\.lo\$/.${objext}/" +o2lo="s/\\.${objext}\$/.lo/" +quote_scanset='[[~#^*{};<>?'"'"' ]' + +##################################### +# Shell function definitions: +# This seems to be the best place for them + +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +func_win32_libid () +{ + win32_libid_type="unknown" + win32_fileres=`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type="x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then + win32_nmres=`eval $NM -f posix -A $1 | \ + sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'` + if test "X$win32_nmres" = "Ximport" ; then + win32_libid_type="x86 archive import" + else + win32_libid_type="x86 archive static" + fi + fi + ;; + *DLL*) + win32_libid_type="x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type="x86 DLL" + ;; + esac + ;; + esac + $echo $win32_libid_type +} + + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted= + for arg in $CC; do + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + CC_quoted="$CC_quoted $arg" + done + case $@ in + # Blanks in the command may have been stripped by the calling shell, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted= + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + CC_quoted="$CC_quoted $arg" + done + case "$@ " in + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + $echo "$modename: unable to infer tagged configuration" + $echo "$modename: specify a tag with \`--tag'" 1>&2 + exit $EXIT_FAILURE +# else +# $echo "$modename: using $tagname tagged configuration" + fi + ;; + esac + fi +} + + +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + f_ex_an_ar_dir="$1"; shift + f_ex_an_ar_oldlib="$1" + + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then + : + else + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 + exit $EXIT_FAILURE + fi +} + +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + my_gentop="$1"; shift + my_oldlibs=${1+"$@"} + my_oldobjs="" + my_xlib="" + my_xabs="" + my_xdir="" + my_status="" + + $show "${rm}r $my_gentop" + $run ${rm}r "$my_gentop" + $show "$mkdir $my_gentop" + $run $mkdir "$my_gentop" + my_status=$? + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then + exit $my_status + fi + + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; + *) my_xabs=`pwd`"/$my_xlib" ;; + esac + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` + my_xdir="$my_gentop/$my_xlib" + + $show "${rm}r $my_xdir" + $run ${rm}r "$my_xdir" + $show "$mkdir $my_xdir" + $run $mkdir "$my_xdir" + status=$? + if test "$status" -ne 0 && test ! -d "$my_xdir"; then + exit $status + fi + case $host in + *-darwin*) + $show "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + if test -z "$run"; then + darwin_orig_dir=`pwd` + cd $my_xdir || exit $? + darwin_archive=$my_xabs + darwin_curdir=`pwd` + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` + if test -n "$darwin_arches"; then + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch= + $show "$darwin_base_archive has multiple architectures $darwin_arches" + for darwin_arch in $darwin_arches ; do + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" + func_extract_an_archive "`pwd`" "${darwin_base_archive}" + cd "$darwin_curdir" + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" + done # $darwin_arches + ## Okay now we have a bunch of thin objects, gotta fatten them up :) + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` + darwin_file= + darwin_files= + for darwin_file in $darwin_filelist; do + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` + lipo -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + ${rm}r unfat-$$ + cd "$darwin_orig_dir" + else + cd "$darwin_orig_dir" + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + fi # $run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` + done + func_extract_archives_result="$my_oldobjs" +} +# End of Shell function definitions +##################################### + +# Darwin sucks +eval std_shrext=\"$shrext_cmds\" + +# Parse our command line options once, thoroughly. +while test "$#" -gt 0 +do + arg="$1" + shift + + case $arg in + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + execute_dlfiles) + execute_dlfiles="$execute_dlfiles $arg" + ;; + tag) + tagname="$arg" + preserve_args="${preserve_args}=$arg" + + # Check whether tagname contains only valid characters + case $tagname in + *[!-_A-Za-z0-9,/]*) + $echo "$progname: invalid tag name: $tagname" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + case $tagname in + CC) + # Don't test for the "default" C tag, as we know, it's there, but + # not specially marked. + ;; + *) + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then + taglist="$taglist $tagname" + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" + else + $echo "$progname: ignoring unknown tag $tagname" 1>&2 + fi + ;; + esac + ;; + *) + eval "$prev=\$arg" + ;; + esac + + prev= + prevopt= + continue + fi + + # Have we seen a non-optional argument yet? + case $arg in + --help) + show_help=yes + ;; + + --version) + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" + $echo + $echo "Copyright (C) 2005 Free Software Foundation, Inc." + $echo "This is free software; see the source for copying conditions. There is NO" + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + exit $? + ;; + + --config) + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath + # Now print the configurations for the tags. + for tagname in $taglist; do + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" + done + exit $? + ;; + + --debug) + $echo "$progname: enabling shell trace mode" + set -x + preserve_args="$preserve_args $arg" + ;; + + --dry-run | -n) + run=: + ;; + + --features) + $echo "host: $host" + if test "$build_libtool_libs" = yes; then + $echo "enable shared libraries" + else + $echo "disable shared libraries" + fi + if test "$build_old_libs" = yes; then + $echo "enable static libraries" + else + $echo "disable static libraries" + fi + exit $? + ;; + + --finish) mode="finish" ;; + + --mode) prevopt="--mode" prev=mode ;; + --mode=*) mode="$optarg" ;; + + --preserve-dup-deps) duplicate_deps="yes" ;; + + --quiet | --silent) + show=: + preserve_args="$preserve_args $arg" + ;; + + --tag) prevopt="--tag" prev=tag ;; + --tag=*) + set tag "$optarg" ${1+"$@"} + shift + prev=tag + preserve_args="$preserve_args --tag" + ;; + + -dlopen) + prevopt="-dlopen" + prev=execute_dlfiles + ;; + + -*) + $echo "$modename: unrecognized option \`$arg'" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + ;; + + *) + nonopt="$arg" + break + ;; + esac +done + +if test -n "$prevopt"; then + $echo "$modename: option \`$prevopt' requires an argument" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE +fi + +# If this variable is set in any of the actions, the command in it +# will be execed at the end. This prevents here-documents from being +# left over by shells. +exec_cmd= + +if test -z "$show_help"; then + + # Infer the operation mode. + if test -z "$mode"; then + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 + case $nonopt in + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) + mode=link + for arg + do + case $arg in + -c) + mode=compile + break + ;; + esac + done + ;; + *db | *dbx | *strace | *truss) + mode=execute + ;; + *install*|cp|mv) + mode=install + ;; + *rm) + mode=uninstall + ;; + *) + # If we have no mode, but dlfiles were specified, then do execute mode. + test -n "$execute_dlfiles" && mode=execute + + # Just use the default operation mode. + if test -z "$mode"; then + if test -n "$nonopt"; then + $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 + else + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 + fi + fi + ;; + esac + fi + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$execute_dlfiles" && test "$mode" != execute; then + $echo "$modename: unrecognized option \`-dlopen'" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Change the help message to a mode-specific one. + generic_help="$help" + help="Try \`$modename --help --mode=$mode' for more information." + + # These modes are in order of execution frequency so that they run quickly. + case $mode in + # libtool compile mode + compile) + modename="$modename: compile" + # Get the compilation command and the source file. + base_compile= + srcfile="$nonopt" # always keep a non-empty value in "srcfile" + suppress_opt=yes + suppress_output= + arg_mode=normal + libobj= + later= + + for arg + do + case "$arg_mode" in + arg ) + # do not "continue". Instead, add this to base_compile + lastarg="$arg" + arg_mode=normal + ;; + + target ) + libobj="$arg" + arg_mode=normal + continue + ;; + + normal ) + # Accept any command-line options. + case $arg in + -o) + if test -n "$libobj" ; then + $echo "$modename: you cannot specify \`-o' more than once" 1>&2 + exit $EXIT_FAILURE + fi + arg_mode=target + continue + ;; + + -static | -prefer-pic | -prefer-non-pic) + later="$later $arg" + continue + ;; + + -no-suppress) + suppress_opt=no + continue + ;; + + -Xcompiler) + arg_mode=arg # the next one goes into the "base_compile" arg list + continue # The current "srcfile" will either be retained or + ;; # replaced later. I would guess that would be a bug. + + -Wc,*) + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` + lastarg= + save_ifs="$IFS"; IFS=',' + for arg in $args; do + IFS="$save_ifs" + + # Double-quote args containing other shell metacharacters. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + lastarg="$lastarg $arg" + done + IFS="$save_ifs" + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` + + # Add the arguments to base_compile. + base_compile="$base_compile $lastarg" + continue + ;; + + * ) + # Accept the current argument as the source file. + # The previous "srcfile" becomes the current argument. + # + lastarg="$srcfile" + srcfile="$arg" + ;; + esac # case $arg + ;; + esac # case $arg_mode + + # Aesthetically quote the previous argument. + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` + + case $lastarg in + # Double-quote args containing other shell metacharacters. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, and some SunOS ksh mistreat backslash-escaping + # in scan sets (worked around with variable expansion), + # and furthermore cannot handle '|' '&' '(' ')' in scan sets + # at all, so we specify them separately. + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + lastarg="\"$lastarg\"" + ;; + esac + + base_compile="$base_compile $lastarg" + done # for arg + + case $arg_mode in + arg) + $echo "$modename: you must specify an argument for -Xcompile" + exit $EXIT_FAILURE + ;; + target) + $echo "$modename: you must specify a target with \`-o'" 1>&2 + exit $EXIT_FAILURE + ;; + *) + # Get the name of the library object. + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` + ;; + esac + + # Recognize several different file suffixes. + # If the user specifies -o file.o, it is replaced with file.lo + xform='[cCFSifmso]' + case $libobj in + *.ada) xform=ada ;; + *.adb) xform=adb ;; + *.ads) xform=ads ;; + *.asm) xform=asm ;; + *.c++) xform=c++ ;; + *.cc) xform=cc ;; + *.ii) xform=ii ;; + *.class) xform=class ;; + *.cpp) xform=cpp ;; + *.cxx) xform=cxx ;; + *.f90) xform=f90 ;; + *.for) xform=for ;; + *.java) xform=java ;; + esac + + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` + + case $libobj in + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; + *) + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + func_infer_tag $base_compile + + for arg in $later; do + case $arg in + -static) + build_old_libs=yes + continue + ;; + + -prefer-pic) + pic_mode=yes + continue + ;; + + -prefer-non-pic) + pic_mode=no + continue + ;; + esac + done + + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` + case $qlibobj in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + qlibobj="\"$qlibobj\"" ;; + esac + if test "X$libobj" != "X$qlibobj"; then + $echo "$modename: libobj name \`$libobj' may not contain shell special characters." + exit $EXIT_FAILURE + fi + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$obj"; then + xdir= + else + xdir=$xdir/ + fi + lobj=${xdir}$objdir/$objname + + if test -z "$base_compile"; then + $echo "$modename: you must specify a compilation command" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Delete any leftover library objects. + if test "$build_old_libs" = yes; then + removelist="$obj $lobj $libobj ${libobj}T" + else + removelist="$lobj $libobj ${libobj}T" + fi + + $run $rm $removelist + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 + + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in + cygwin* | mingw* | pw32* | os2*) + pic_mode=default + ;; + esac + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi + + # Calculate the filename of the output object if compiler does + # not support -o with -c + if test "$compiler_c_o" = no; then + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} + lockfile="$output_obj.lock" + removelist="$removelist $output_obj $lockfile" + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 + else + output_obj= + need_locks=no + lockfile= + fi + + # Lock this critical section if it is needed + # We use this script file to make the link, it avoids creating a new file + if test "$need_locks" = yes; then + until $run ln "$progpath" "$lockfile" 2>/dev/null; do + $show "Waiting for $lockfile to be removed" + sleep 2 + done + elif test "$need_locks" = warn; then + if test -f "$lockfile"; then + $echo "\ +*** ERROR, $lockfile exists and contains: +`cat $lockfile 2>/dev/null` + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $run $rm $removelist + exit $EXIT_FAILURE + fi + $echo "$srcfile" > "$lockfile" + fi + + if test -n "$fix_srcfile_path"; then + eval srcfile=\"$fix_srcfile_path\" + fi + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` + case $qsrcfile in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + qsrcfile="\"$qsrcfile\"" ;; + esac + + $run $rm "$libobj" "${libobj}T" + + # Create a libtool object file (analogous to a ".la" file), + # but don't create it if we're doing a dry run. + test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then + $echo "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $run $rm $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed, then go on to compile the next one + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then + $show "$mv $output_obj $lobj" + if $run $mv $output_obj $lobj; then : + else + error=$? + $run $rm $removelist + exit $error + fi + fi + + # Append the name of the PIC object to the libtool object file. + test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then + $echo "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $run $rm $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then + $show "$mv $output_obj $obj" + if $run $mv $output_obj $obj; then : + else + error=$? + $run $rm $removelist + exit $error + fi + fi + + # Append the name of the non-PIC object the libtool object file. + # Only append if the libtool object file exists. + test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 + fi + if test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + else + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + fi + build_libtool_libs=no + build_old_libs=yes + prefer_static_libs=yes + break + ;; + esac + done + + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes + + # Go through the arguments, transforming them on the way. + while test "$#" -gt 0; do + arg="$1" + shift + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test + ;; + *) qarg=$arg ;; + esac + libtool_args="$libtool_args $qarg" + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + output) + compile_command="$compile_command @OUTPUT@" + finalize_command="$finalize_command @OUTPUT@" + ;; + esac + + case $prev in + dlfiles|dlprefiles) + if test "$preload" = no; then + # Add the symbol object into the linking commands. + compile_command="$compile_command @SYMFILE@" + finalize_command="$finalize_command @SYMFILE@" + preload=yes + fi + case $arg in + *.la | *.lo) ;; # We handle these cases below. + force) + if test "$dlself" = no; then + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + self) + if test "$prev" = dlprefiles; then + dlself=yes + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then + dlself=yes + else + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + *) + if test "$prev" = dlfiles; then + dlfiles="$dlfiles $arg" + else + dlprefiles="$dlprefiles $arg" + fi + prev= + continue + ;; + esac + ;; + expsyms) + export_symbols="$arg" + if test ! -f "$arg"; then + $echo "$modename: symbol file \`$arg' does not exist" + exit $EXIT_FAILURE + fi + prev= + continue + ;; + expsyms_regex) + export_symbols_regex="$arg" + prev= + continue + ;; + inst_prefix) + inst_prefix_dir="$arg" + prev= + continue + ;; + precious_regex) + precious_files_regex="$arg" + prev= + continue + ;; + release) + release="-$arg" + prev= + continue + ;; + objectlist) + if test -f "$arg"; then + save_arg=$arg + moreargs= + for fil in `cat $save_arg` + do +# moreargs="$moreargs $fil" + arg=$fil + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + pic_object= + non_pic_object= + + # Read the .lo file + # If there is no directory component, then add one. + case $arg in + */* | *\\*) . $arg ;; + *) . ./$arg ;; + esac + + if test -z "$pic_object" || \ + test -z "$non_pic_object" || + test "$pic_object" = none && \ + test "$non_pic_object" = none; then + $echo "$modename: cannot find name of object for \`$arg'" 1>&2 + exit $EXIT_FAILURE + fi + + # Extract subdirectory from the argument. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$arg"; then + xdir= + else + xdir="$xdir/" + fi + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi + + # A PIC object. + libobjs="$libobjs $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + non_pic_objects="$non_pic_objects $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + fi + else + # Only an error if not doing a dry-run. + if test -z "$run"; then + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 + exit $EXIT_FAILURE + else + # Dry-run case. + + # Extract subdirectory from the argument. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$arg"; then + xdir= + else + xdir="$xdir/" + fi + + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` + libobjs="$libobjs $pic_object" + non_pic_objects="$non_pic_objects $non_pic_object" + fi + fi + done + else + $echo "$modename: link input file \`$save_arg' does not exist" + exit $EXIT_FAILURE + fi + arg=$save_arg + prev= + continue + ;; + rpath | xrpath) + # We need an absolute path. + case $arg in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + $echo "$modename: only absolute run-paths are allowed" 1>&2 + exit $EXIT_FAILURE + ;; + esac + if test "$prev" = rpath; then + case "$rpath " in + *" $arg "*) ;; + *) rpath="$rpath $arg" ;; + esac + else + case "$xrpath " in + *" $arg "*) ;; + *) xrpath="$xrpath $arg" ;; + esac + fi + prev= + continue + ;; + xcompiler) + compiler_flags="$compiler_flags $qarg" + prev= + compile_command="$compile_command $qarg" + finalize_command="$finalize_command $qarg" + continue + ;; + xlinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $wl$qarg" + prev= + compile_command="$compile_command $wl$qarg" + finalize_command="$finalize_command $wl$qarg" + continue + ;; + xcclinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $qarg" + prev= + compile_command="$compile_command $qarg" + finalize_command="$finalize_command $qarg" + continue + ;; + shrext) + shrext_cmds="$arg" + prev= + continue + ;; + darwin_framework) + compiler_flags="$compiler_flags $arg" + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + prev= + continue + ;; + *) + eval "$prev=\"\$arg\"" + prev= + continue + ;; + esac + fi # test -n "$prev" + + prevarg="$arg" + + case $arg in + -all-static) + if test -n "$link_static_flag"; then + compile_command="$compile_command $link_static_flag" + finalize_command="$finalize_command $link_static_flag" + fi + continue + ;; + + -allow-undefined) + # FIXME: remove this flag sometime in the future. + $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 + continue + ;; + + -avoid-version) + avoid_version=yes + continue + ;; + + -dlopen) + prev=dlfiles + continue + ;; + + -dlpreopen) + prev=dlprefiles + continue + ;; + + -export-dynamic) + export_dynamic=yes + continue + ;; + + -export-symbols | -export-symbols-regex) + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + $echo "$modename: more than one -exported-symbols argument is not allowed" + exit $EXIT_FAILURE + fi + if test "X$arg" = "X-export-symbols"; then + prev=expsyms + else + prev=expsyms_regex + fi + continue + ;; + + -framework) + prev=darwin_framework + compiler_flags="$compiler_flags $arg" + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + continue + ;; + + -inst-prefix-dir) + prev=inst_prefix + continue + ;; + + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + case $with_gcc/$host in + no/*-*-irix* | /*-*-irix*) + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + ;; + esac + continue + ;; + + -L*) + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 + exit $EXIT_FAILURE + fi + dir="$absdir" + ;; + esac + case "$deplibs " in + *" -L$dir "*) ;; + *) + deplibs="$deplibs -L$dir" + lib_search_path="$lib_search_path $dir" + ;; + esac + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + case :$dllsearchpath: in + *":$dir:"*) ;; + *) dllsearchpath="$dllsearchpath:$dir";; + esac + ;; + esac + continue + ;; + + -l*) + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then + case $host in + *-*-cygwin* | *-*-pw32* | *-*-beos*) + # These systems don't actually have a C or math library (as such) + continue + ;; + *-*-mingw* | *-*-os2*) + # These systems don't actually have a C library (as such) + test "X$arg" = "X-lc" && continue + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + test "X$arg" = "X-lc" && continue + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C and math libraries are in the System framework + deplibs="$deplibs -framework System" + continue + esac + elif test "X$arg" = "X-lc_r"; then + case $host in + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; + esac + fi + deplibs="$deplibs $arg" + continue + ;; + + # Tru64 UNIX uses -model [arg] to determine the layout of C++ + # classes, name mangling, and exception handling. + -model) + compile_command="$compile_command $arg" + compiler_flags="$compiler_flags $arg" + finalize_command="$finalize_command $arg" + prev=xcompiler + continue + ;; + + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) + compiler_flags="$compiler_flags $arg" + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + continue + ;; + + -module) + module=yes + continue + ;; + + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler + # -r[0-9][0-9]* specifies the processor on the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler + # +DA*, +DD* enable 64-bit mode on the HP compiler + # -q* pass through compiler args for the IBM compiler + # -m* pass through architecture-specific compiler args for GCC + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*) + + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + if test "$with_gcc" = "yes" ; then + compiler_flags="$compiler_flags $arg" + fi + continue + ;; + + -shrext) + prev=shrext + continue + ;; + + -no-fast-install) + fast_install=no + continue + ;; + + -no-install) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + # The PATH hackery in wrapper scripts is required on Windows + # in order for the loader to find any dlls it needs. + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 + fast_install=no + ;; + *) no_install=yes ;; + esac + continue + ;; + + -no-undefined) + allow_undefined=no + continue + ;; + + -objectlist) + prev=objectlist + continue + ;; + + -o) prev=output ;; + + -precious-files-regex) + prev=precious_regex + continue + ;; + + -release) + prev=release + continue + ;; + + -rpath) + prev=rpath + continue + ;; + + -R) + prev=xrpath + continue + ;; + + -R*) + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + $echo "$modename: only absolute run-paths are allowed" 1>&2 + exit $EXIT_FAILURE + ;; + esac + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + continue + ;; + + -static) + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. + continue + ;; + + -thread-safe) + thread_safe=yes + continue + ;; + + -version-info) + prev=vinfo + continue + ;; + -version-number) + prev=vinfo + vinfo_number=yes + continue + ;; + + -Wc,*) + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + case $flag in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + flag="\"$flag\"" + ;; + esac + arg="$arg $wl$flag" + compiler_flags="$compiler_flags $flag" + done + IFS="$save_ifs" + arg=`$echo "X$arg" | $Xsed -e "s/^ //"` + ;; + + -Wl,*) + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + case $flag in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + flag="\"$flag\"" + ;; + esac + arg="$arg $wl$flag" + compiler_flags="$compiler_flags $wl$flag" + linker_flags="$linker_flags $flag" + done + IFS="$save_ifs" + arg=`$echo "X$arg" | $Xsed -e "s/^ //"` + ;; + + -Xcompiler) + prev=xcompiler + continue + ;; + + -Xlinker) + prev=xlinker + continue + ;; + + -XCClinker) + prev=xcclinker + continue + ;; + + # Some other compiler flag. + -* | +*) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + ;; + + *.$objext) + # A standard object. + objs="$objs $arg" + ;; + + *.lo) + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + pic_object= + non_pic_object= + + # Read the .lo file + # If there is no directory component, then add one. + case $arg in + */* | *\\*) . $arg ;; + *) . ./$arg ;; + esac + + if test -z "$pic_object" || \ + test -z "$non_pic_object" || + test "$pic_object" = none && \ + test "$non_pic_object" = none; then + $echo "$modename: cannot find name of object for \`$arg'" 1>&2 + exit $EXIT_FAILURE + fi + + # Extract subdirectory from the argument. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$arg"; then + xdir= + else + xdir="$xdir/" + fi + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi + + # A PIC object. + libobjs="$libobjs $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + non_pic_objects="$non_pic_objects $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + fi + else + # Only an error if not doing a dry-run. + if test -z "$run"; then + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 + exit $EXIT_FAILURE + else + # Dry-run case. + + # Extract subdirectory from the argument. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$arg"; then + xdir= + else + xdir="$xdir/" + fi + + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` + libobjs="$libobjs $pic_object" + non_pic_objects="$non_pic_objects $non_pic_object" + fi + fi + ;; + + *.$libext) + # An archive. + deplibs="$deplibs $arg" + old_deplibs="$old_deplibs $arg" + continue + ;; + + *.la) + # A libtool-controlled library. + + if test "$prev" = dlfiles; then + # This library was specified with -dlopen. + dlfiles="$dlfiles $arg" + prev= + elif test "$prev" = dlprefiles; then + # The library was specified with -dlpreopen. + dlprefiles="$dlprefiles $arg" + prev= + else + deplibs="$deplibs $arg" + fi + continue + ;; + + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + ;; + esac # arg + + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + fi + done # argument parsing loop + + if test -n "$prev"; then + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + fi + + oldlibs= + # calculate the name of the file, without its directory + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` + libobjs_save="$libobjs" + + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` + else + shlib_search_path= + fi + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" + + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` + if test "X$output_objdir" = "X$output"; then + output_objdir="$objdir" + else + output_objdir="$output_objdir/$objdir" + fi + # Create the object directory. + if test ! -d "$output_objdir"; then + $show "$mkdir $output_objdir" + $run $mkdir $output_objdir + status=$? + if test "$status" -ne 0 && test ! -d "$output_objdir"; then + exit $status + fi + fi + + # Determine the type of output + case $output in + "") + $echo "$modename: you must specify an output file" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + ;; + *.$libext) linkmode=oldlib ;; + *.lo | *.$objext) linkmode=obj ;; + *.la) linkmode=lib ;; + *) linkmode=prog ;; # Anything else should be a program. + esac + + case $host in + *cygwin* | *mingw* | *pw32*) + # don't eliminate duplications in $postdeps and $predeps + duplicate_compiler_generated_deps=yes + ;; + *) + duplicate_compiler_generated_deps=$duplicate_deps + ;; + esac + specialdeplibs= + + libs= + # Find all interdependent deplibs by searching for libraries + # that are linked more than once (e.g. -la -lb -la) + for deplib in $deplibs; do + if test "X$duplicate_deps" = "Xyes" ; then + case "$libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + libs="$libs $deplib" + done + + if test "$linkmode" = lib; then + libs="$predeps $libs $compiler_lib_search_path $postdeps" + + # Compute libraries that are listed more than once in $predeps + # $postdeps and mark them as special (i.e., whose duplicates are + # not to be eliminated). + pre_post_deps= + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then + for pre_post_dep in $predeps $postdeps; do + case "$pre_post_deps " in + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; + esac + pre_post_deps="$pre_post_deps $pre_post_dep" + done + fi + pre_post_deps= + fi + + deplibs= + newdependency_libs= + newlib_search_path= + need_relink=no # whether we're linking any uninstalled libtool libraries + notinst_deplibs= # not-installed libtool libraries + notinst_path= # paths that contain not-installed libtool libraries + case $linkmode in + lib) + passes="conv link" + for file in $dlfiles $dlprefiles; do + case $file in + *.la) ;; + *) + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 + exit $EXIT_FAILURE + ;; + esac + done + ;; + prog) + compile_deplibs= + finalize_deplibs= + alldeplibs=no + newdlfiles= + newdlprefiles= + passes="conv scan dlopen dlpreopen link" + ;; + *) passes="conv" + ;; + esac + for pass in $passes; do + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan"; then + libs="$deplibs" + deplibs= + fi + if test "$linkmode" = prog; then + case $pass in + dlopen) libs="$dlfiles" ;; + dlpreopen) libs="$dlprefiles" ;; + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; + esac + fi + if test "$pass" = dlopen; then + # Collect dlpreopened libraries + save_deplibs="$deplibs" + deplibs= + fi + for deplib in $libs; do + lib= + found=no + case $deplib in + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + compiler_flags="$compiler_flags $deplib" + fi + continue + ;; + -l*) + if test "$linkmode" != lib && test "$linkmode" != prog; then + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 + continue + fi + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do + for search_ext in .la $std_shrext .so .a; do + # Search the libtool library + lib="$searchdir/lib${name}${search_ext}" + if test -f "$lib"; then + if test "$search_ext" = ".la"; then + found=yes + else + found=no + fi + break 2 + fi + done + done + if test "$found" != yes; then + # deplib doesn't seem to be a libtool library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + else # deplib is a libtool library + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, + # We need to do some special things here, and not later. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $deplib "*) + if (${SED} -e '2q' $lib | + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + library_names= + old_library= + case $lib in + */* | *\\*) . $lib ;; + *) . ./$lib ;; + esac + for l in $old_library $library_names; do + ll="$l" + done + if test "X$ll" = "X$old_library" ; then # only static version available + found=no + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` + test "X$ladir" = "X$lib" && ladir="." + lib=$ladir/$old_library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + fi + ;; + *) ;; + esac + fi + fi + ;; # -l + -L*) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + test "$pass" = conv && continue + newdependency_libs="$deplib $newdependency_libs" + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` + ;; + prog) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + if test "$pass" = scan; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` + ;; + *) + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 + ;; + esac # linkmode + continue + ;; # -L + -R*) + if test "$pass" = link; then + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` + # Make sure the xrpath contains only unique directories. + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + fi + deplibs="$deplib $deplibs" + continue + ;; + *.la) lib="$deplib" ;; + *.$libext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + case $linkmode in + lib) + valid_a_lib=no + case $deplibs_check_method in + match_pattern*) + set dummy $deplibs_check_method + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` + if eval $echo \"$deplib\" 2>/dev/null \ + | $SED 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + valid_a_lib=yes + fi + ;; + pass_all) + valid_a_lib=yes + ;; + esac + if test "$valid_a_lib" != yes; then + $echo + $echo "*** Warning: Trying to link with static lib archive $deplib." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have" + $echo "*** because the file extensions .$libext of this argument makes me believe" + $echo "*** that it is just a static archive that I should not used here." + else + $echo + $echo "*** Warning: Linking the shared library $output against the" + $echo "*** static library $deplib is not portable!" + deplibs="$deplib $deplibs" + fi + continue + ;; + prog) + if test "$pass" != link; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + continue + ;; + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + elif test "$linkmode" = prog; then + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + newdlprefiles="$newdlprefiles $deplib" + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + newdlfiles="$newdlfiles $deplib" + fi + fi + continue + ;; + %DEPLIBS%) + alldeplibs=yes + continue + ;; + esac # case $deplib + if test "$found" = yes || test -f "$lib"; then : + else + $echo "$modename: cannot find the library \`$lib'" 1>&2 + exit $EXIT_FAILURE + fi + + # Check to see that this really is a libtool archive. + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + else + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 + exit $EXIT_FAILURE + fi + + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` + test "X$ladir" = "X$lib" && ladir="." + + dlname= + dlopen= + dlpreopen= + libdir= + library_names= + old_library= + # If the library was installed with an old release of libtool, + # it will not redefine variables installed, or shouldnotlink + installed=yes + shouldnotlink=no + avoidtemprpath= + + + # Read the .la file + case $lib in + */* | *\\*) . $lib ;; + *) . ./$lib ;; + esac + + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan" || + { test "$linkmode" != prog && test "$linkmode" != lib; }; then + test -n "$dlopen" && dlfiles="$dlfiles $dlopen" + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" + fi + + if test "$pass" = conv; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then + if test -z "$old_library"; then + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 + exit $EXIT_FAILURE + fi + # It is a libtool convenience library, so add in its objects. + convenience="$convenience $ladir/$objdir/$old_library" + old_convenience="$old_convenience $ladir/$objdir/$old_library" + tmp_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if test "X$duplicate_deps" = "Xyes" ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + elif test "$linkmode" != prog && test "$linkmode" != lib; then + $echo "$modename: \`$lib' is not a convenience library" 1>&2 + exit $EXIT_FAILURE + fi + continue + fi # $pass = conv + + + # Get the name of the library we link against. + linklib= + for l in $old_library $library_names; do + linklib="$l" + done + if test -z "$linklib"; then + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 + exit $EXIT_FAILURE + fi + + # This library was specified with -dlopen. + if test "$pass" = dlopen; then + if test -z "$libdir"; then + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 + exit $EXIT_FAILURE + fi + if test -z "$dlname" || + test "$dlopen_support" != yes || + test "$build_libtool_libs" = no; then + # If there is no dlname, no dlopen support or we're linking + # statically, we need to preload. We also need to preload any + # dependent libraries so libltdl's deplib preloader doesn't + # bomb out in the load deplibs phase. + dlprefiles="$dlprefiles $lib $dependency_libs" + else + newdlfiles="$newdlfiles $lib" + fi + continue + fi # $pass = dlopen + + # We need an absolute path. + case $ladir in + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; + *) + abs_ladir=`cd "$ladir" && pwd` + if test -z "$abs_ladir"; then + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 + abs_ladir="$ladir" + fi + ;; + esac + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` + + # Find the relevant object directory and library name. + if test "X$installed" = Xyes; then + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then + $echo "$modename: warning: library \`$lib' was moved." 1>&2 + dir="$ladir" + absdir="$abs_ladir" + libdir="$abs_ladir" + else + dir="$libdir" + absdir="$libdir" + fi + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes + else + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then + dir="$ladir" + absdir="$abs_ladir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + else + dir="$ladir/$objdir" + absdir="$abs_ladir/$objdir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + fi + fi # $installed = yes + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` + + # This library was specified with -dlpreopen. + if test "$pass" = dlpreopen; then + if test -z "$libdir"; then + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 + exit $EXIT_FAILURE + fi + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + newdlprefiles="$newdlprefiles $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + newdlprefiles="$newdlprefiles $dir/$dlname" + else + newdlprefiles="$newdlprefiles $dir/$linklib" + fi + fi # $pass = dlpreopen + + if test -z "$libdir"; then + # Link the convenience library + if test "$linkmode" = lib; then + deplibs="$dir/$old_library $deplibs" + elif test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$dir/$old_library $compile_deplibs" + finalize_deplibs="$dir/$old_library $finalize_deplibs" + else + deplibs="$lib $deplibs" # used for prog,scan pass + fi + continue + fi + + + if test "$linkmode" = prog && test "$pass" != link; then + newlib_search_path="$newlib_search_path $ladir" + deplibs="$lib $deplibs" + + linkalldeplibs=no + if test "$link_all_deplibs" != no || test -z "$library_names" || + test "$build_libtool_libs" = no; then + linkalldeplibs=yes + fi + + tmp_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test + esac + # Need to link against all dependency_libs? + if test "$linkalldeplibs" = yes; then + deplibs="$deplib $deplibs" + else + # Need to hardcode shared library paths + # or/and link against static libraries + newdependency_libs="$deplib $newdependency_libs" + fi + if test "X$duplicate_deps" = "Xyes" ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done # for deplib + continue + fi # $linkmode = prog... + + if test "$linkmode,$pass" = "prog,link"; then + if test -n "$library_names" && + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then + # We need to hardcode the library path + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then + # Make sure the rpath contains only unique directories. + case "$temp_rpath " in + *" $dir "*) ;; + *" $absdir "*) ;; + *) temp_rpath="$temp_rpath $dir" ;; + esac + fi + + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi # $linkmode,$pass = prog,link... + + if test "$alldeplibs" = yes && + { test "$deplibs_check_method" = pass_all || + { test "$build_libtool_libs" = yes && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue + fi + fi + + link_static=no # Whether the deplib will be linked statically + if test -n "$library_names" && + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then + if test "$installed" = no; then + notinst_deplibs="$notinst_deplibs $lib" + need_relink=yes + fi + # This is a shared library + + # Warn about portability, can't link against -module's on + # some systems (darwin) + if test "$shouldnotlink" = yes && test "$pass" = link ; then + $echo + if test "$linkmode" = prog; then + $echo "*** Warning: Linking the executable $output against the loadable module" + else + $echo "*** Warning: Linking the shared library $output against the loadable module" + fi + $echo "*** $linklib is not portable!" + fi + if test "$linkmode" = lib && + test "$hardcode_into_libs" = yes; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi + + if test -n "$old_archive_from_expsyms_cmds"; then + # figure out the soname + set dummy $library_names + realname="$2" + shift; shift + libname=`eval \\$echo \"$libname_spec\"` + # use dlname if we got it. it's perfectly good, no? + if test -n "$dlname"; then + soname="$dlname" + elif test -n "$soname_spec"; then + # bleh windows + case $host in + *cygwin* | mingw*) + major=`expr $current - $age` + versuffix="-$major" + ;; + esac + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + + # Make a new name for the extract_expsyms_cmds to use + soroot="$soname" + soname=`$echo $soroot | ${SED} -e 's/^.*\///'` + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" + + # If the library has no export list, then create one now + if test -f "$output_objdir/$soname-def"; then : + else + $show "extracting exported symbol list from \`$soname'" + save_ifs="$IFS"; IFS='~' + cmds=$extract_expsyms_cmds + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + fi + + # Create $newlib + if test -f "$output_objdir/$newlib"; then :; else + $show "generating import library for \`$soname'" + save_ifs="$IFS"; IFS='~' + cmds=$old_archive_from_expsyms_cmds + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + fi + # make sure the library variables are pointing to the new library + dir=$output_objdir + linklib=$newlib + fi # test -n "$old_archive_from_expsyms_cmds" + + if test "$linkmode" = prog || test "$mode" != relink; then + add_shlibpath= + add_dir= + add= + lib_linked=yes + case $hardcode_action in + immediate | unsupported) + if test "$hardcode_direct" = no; then + add="$dir/$linklib" + case $host in + *-*-sco3.2v5* ) add_dir="-L$dir" ;; + *-*-darwin* ) + # if the lib is a module then we can not link against + # it, someone is ignoring the new warnings I added + if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then + $echo "** Warning, lib $linklib is a module, not a shared library" + if test -z "$old_library" ; then + $echo + $echo "** And there doesn't seem to be a static archive available" + $echo "** The link will probably fail, sorry" + else + add="$dir/$old_library" + fi + fi + esac + elif test "$hardcode_minus_L" = no; then + case $host in + *-*-sunos*) add_shlibpath="$dir" ;; + esac + add_dir="-L$dir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = no; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + relink) + if test "$hardcode_direct" = yes; then + add="$dir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$dir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case "$libdir" in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + *) lib_linked=no ;; + esac + + if test "$lib_linked" != yes; then + $echo "$modename: configuration error: unsupported hardcode properties" + exit $EXIT_FAILURE + fi + + if test -n "$add_shlibpath"; then + case :$compile_shlibpath: in + *":$add_shlibpath:"*) ;; + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; + esac + fi + if test "$linkmode" = prog; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + if test "$hardcode_direct" != yes && \ + test "$hardcode_minus_L" != yes && \ + test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + fi + fi + fi + + if test "$linkmode" = prog || test "$mode" = relink; then + add_shlibpath= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. + if test "$hardcode_direct" = yes; then + add="$libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + add="-l$name" + elif test "$hardcode_automatic" = yes; then + if test -n "$inst_prefix_dir" && + test -f "$inst_prefix_dir$libdir/$linklib" ; then + add="$inst_prefix_dir$libdir/$linklib" + else + add="$libdir/$linklib" + fi + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir="-L$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case "$libdir" in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + fi + + if test "$linkmode" = prog; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi + fi + elif test "$linkmode" = prog; then + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test "$hardcode_direct" != unsupported; then + test -n "$old_library" && linklib="$old_library" + compile_deplibs="$dir/$linklib $compile_deplibs" + finalize_deplibs="$dir/$linklib $finalize_deplibs" + else + compile_deplibs="-l$name -L$dir $compile_deplibs" + finalize_deplibs="-l$name -L$dir $finalize_deplibs" + fi + elif test "$build_libtool_libs" = yes; then + # Not a shared library + if test "$deplibs_check_method" != pass_all; then + # We're trying link a shared library against a static one + # but the system doesn't support it. + + # Just print a warning and add the library to dependency_libs so + # that the program can be linked against the static library. + $echo + $echo "*** Warning: This system can not link to static lib archive $lib." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have." + if test "$module" = yes; then + $echo "*** But as you try to build a module library, libtool will still create " + $echo "*** a static module, that should work as long as the dlopening application" + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." + if test -z "$global_symbol_pipe"; then + $echo + $echo "*** However, this would only work if libtool was able to extract symbol" + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + $echo "*** not find such a program. So, this module is probably useless." + $echo "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + else + convenience="$convenience $dir/$old_library" + old_convenience="$old_convenience $dir/$old_library" + deplibs="$dir/$old_library $deplibs" + link_static=yes + fi + fi # link shared/static library? + + if test "$linkmode" = lib; then + if test -n "$dependency_libs" && + { test "$hardcode_into_libs" != yes || + test "$build_old_libs" = yes || + test "$link_static" = yes; }; then + # Extract -R from dependency_libs + temp_deplibs= + for libdir in $dependency_libs; do + case $libdir in + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` + case " $xrpath " in + *" $temp_xrpath "*) ;; + *) xrpath="$xrpath $temp_xrpath";; + esac;; + *) temp_deplibs="$temp_deplibs $libdir";; + esac + done + dependency_libs="$temp_deplibs" + fi + + newlib_search_path="$newlib_search_path $absdir" + # Link against this library + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" + # ... and its dependency_libs + tmp_libs= + for deplib in $dependency_libs; do + newdependency_libs="$deplib $newdependency_libs" + if test "X$duplicate_deps" = "Xyes" ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + + if test "$link_all_deplibs" != no; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + case $deplib in + -L*) path="$deplib" ;; + *.la) + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` + test "X$dir" = "X$deplib" && dir="." + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 + absdir="$dir" + fi + ;; + esac + if grep "^installed=no" $deplib > /dev/null; then + path="$absdir/$objdir" + else + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + if test -z "$libdir"; then + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 + exit $EXIT_FAILURE + fi + if test "$absdir" != "$libdir"; then + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 + fi + path="$absdir" + fi + depdepl= + case $host in + *-*-darwin*) + # we do not want to link against static libs, + # but need to link against shared + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` + if test -n "$deplibrary_names" ; then + for tmp in $deplibrary_names ; do + depdepl=$tmp + done + if test -f "$path/$depdepl" ; then + depdepl="$path/$depdepl" + fi + # do not add paths which are already there + case " $newlib_search_path " in + *" $path "*) ;; + *) newlib_search_path="$newlib_search_path $path";; + esac + fi + path="" + ;; + *) + path="-L$path" + ;; + esac + ;; + -l*) + case $host in + *-*-darwin*) + # Again, we only want to link against shared libraries + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` + for tmp in $newlib_search_path ; do + if test -f "$tmp/lib$tmp_libs.dylib" ; then + eval depdepl="$tmp/lib$tmp_libs.dylib" + break + fi + done + path="" + ;; + *) continue ;; + esac + ;; + *) continue ;; + esac + case " $deplibs " in + *" $path "*) ;; + *) deplibs="$path $deplibs" ;; + esac + case " $deplibs " in + *" $depdepl "*) ;; + *) deplibs="$depdepl $deplibs" ;; + esac + done + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs + dependency_libs="$newdependency_libs" + if test "$pass" = dlpreopen; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done + fi + if test "$pass" != dlopen; then + if test "$pass" != conv; then + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do + case "$lib_search_path " in + *" $dir "*) ;; + *) lib_search_path="$lib_search_path $dir" ;; + esac + done + newlib_search_path= + fi + + if test "$linkmode,$pass" != "prog,link"; then + vars="deplibs" + else + vars="compile_deplibs finalize_deplibs" + fi + for var in $vars dependency_libs; do + # Add libraries to $var in reverse order + eval tmp_libs=\"\$$var\" + new_libs= + for deplib in $tmp_libs; do + # FIXME: Pedantically, this is the right thing to do, so + # that some nasty dependency loop isn't accidentally + # broken: + #new_libs="$deplib $new_libs" + # Pragmatically, this seems to cause very few problems in + # practice: + case $deplib in + -L*) new_libs="$deplib $new_libs" ;; + -R*) ;; + *) + # And here is the reason: when a library appears more + # than once as an explicit dependence of a library, or + # is implicitly linked in more than once by the + # compiler, it is considered special, and multiple + # occurrences thereof are not removed. Compare this + # with having the same library being listed as a + # dependency of multiple other libraries: in this case, + # we know (pedantically, we assume) the library does not + # need to be listed more than once, so we keep only the + # last copy. This is not always right, but it is rare + # enough that we require users that really mean to play + # such unportable linking tricks to link the library + # using -Wl,-lname, so that libtool does not consider it + # for duplicate removal. + case " $specialdeplibs " in + *" $deplib "*) new_libs="$deplib $new_libs" ;; + *) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$deplib $new_libs" ;; + esac + ;; + esac + ;; + esac + done + tmp_libs= + for deplib in $new_libs; do + case $deplib in + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + done + eval $var=\"$tmp_libs\" + done # for var + fi + # Last step: remove runtime libs from dependency_libs + # (they stay in deplibs) + tmp_libs= + for i in $dependency_libs ; do + case " $predeps $postdeps $compiler_lib_search_path " in + *" $i "*) + i="" + ;; + esac + if test -n "$i" ; then + tmp_libs="$tmp_libs $i" + fi + done + dependency_libs=$tmp_libs + done # for pass + if test "$linkmode" = prog; then + dlfiles="$newdlfiles" + dlprefiles="$newdlprefiles" + fi + + case $linkmode in + oldlib) + if test -n "$deplibs"; then + $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 + fi + + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 + fi + + if test -n "$rpath"; then + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 + fi + + if test -n "$xrpath"; then + $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 + fi + + if test -n "$vinfo"; then + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 + fi + + if test -n "$release"; then + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 + fi + + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 + fi + + # Now set the variables for building old libraries. + build_libtool_libs=no + oldlibs="$output" + objs="$objs$old_deplibs" + ;; + + lib) + # Make sure we only generate libraries of the form `libNAME.la'. + case $outputname in + lib*) + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + ;; + *) + if test "$module" = no; then + $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + if test "$need_lib_prefix" != no; then + # Add the "lib" prefix for modules if required + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + else + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` + fi + ;; + esac + + if test -n "$objs"; then + if test "$deplibs_check_method" != pass_all; then + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 + exit $EXIT_FAILURE + else + $echo + $echo "*** Warning: Linking the shared library $output against the non-libtool" + $echo "*** objects $objs is not portable!" + libobjs="$libobjs $objs" + fi + fi + + if test "$dlself" != no; then + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 + fi + + set dummy $rpath + if test "$#" -gt 2; then + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 + fi + install_libdir="$2" + + oldlibs= + if test -z "$rpath"; then + if test "$build_libtool_libs" = yes; then + # Building a libtool convenience library. + # Some compilers have problems with a `.al' extension so + # convenience libraries should have the same extension an + # archive normally would. + oldlibs="$output_objdir/$libname.$libext $oldlibs" + build_libtool_libs=convenience + build_old_libs=yes + fi + + if test -n "$vinfo"; then + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 + fi + + if test -n "$release"; then + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 + fi + else + + # Parse the version information argument. + save_ifs="$IFS"; IFS=':' + set dummy $vinfo 0 0 0 + IFS="$save_ifs" + + if test -n "$8"; then + $echo "$modename: too many parameters to \`-version-info'" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # convert absolute version numbers to libtool ages + # this retains compatibility with .la files and attempts + # to make the code below a bit more comprehensible + + case $vinfo_number in + yes) + number_major="$2" + number_minor="$3" + number_revision="$4" + # + # There are really only two kinds -- those that + # use the current revision as the major version + # and those that subtract age and use age as + # a minor version. But, then there is irix + # which has an extra 1 added just for fun + # + case $version_type in + darwin|linux|osf|windows) + current=`expr $number_major + $number_minor` + age="$number_minor" + revision="$number_revision" + ;; + freebsd-aout|freebsd-elf|sunos) + current="$number_major" + revision="$number_minor" + age="0" + ;; + irix|nonstopux) + current=`expr $number_major + $number_minor - 1` + age="$number_minor" + revision="$number_minor" + ;; + esac + ;; + no) + current="$2" + revision="$3" + age="$4" + ;; + esac + + # Check that each of the things are valid numbers. + case $current in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + case $revision in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + case $age in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + if test "$age" -gt "$current"; then + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit $EXIT_FAILURE + fi + + # Calculate the version variables. + major= + versuffix= + verstring= + case $version_type in + none) ;; + + darwin) + # Like Linux, but with the current version available in + # verstring for coding it into the library header + major=.`expr $current - $age` + versuffix="$major.$age.$revision" + # Darwin ld doesn't like 0 for these options... + minor_current=`expr $current + 1` + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" + ;; + + freebsd-aout) + major=".$current" + versuffix=".$current.$revision"; + ;; + + freebsd-elf) + major=".$current" + versuffix=".$current"; + ;; + + irix | nonstopux) + major=`expr $current - $age + 1` + + case $version_type in + nonstopux) verstring_prefix=nonstopux ;; + *) verstring_prefix=sgi ;; + esac + verstring="$verstring_prefix$major.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$revision + while test "$loop" -ne 0; do + iface=`expr $revision - $loop` + loop=`expr $loop - 1` + verstring="$verstring_prefix$major.$iface:$verstring" + done + + # Before this point, $major must not contain `.'. + major=.$major + versuffix="$major.$revision" + ;; + + linux) + major=.`expr $current - $age` + versuffix="$major.$age.$revision" + ;; + + osf) + major=.`expr $current - $age` + versuffix=".$current.$age.$revision" + verstring="$current.$age.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$age + while test "$loop" -ne 0; do + iface=`expr $current - $loop` + loop=`expr $loop - 1` + verstring="$verstring:${iface}.0" + done + + # Make executables depend on our current version. + verstring="$verstring:${current}.0" + ;; + + sunos) + major=".$current" + versuffix=".$current.$revision" + ;; + + windows) + # Use '-' rather than '.', since we only want one + # extension on DOS 8.3 filesystems. + major=`expr $current - $age` + versuffix="-$major" + ;; + + *) + $echo "$modename: unknown library version type \`$version_type'" 1>&2 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 + exit $EXIT_FAILURE + ;; + esac + + # Clear the version info if we defaulted, and they specified a release. + if test -z "$vinfo" && test -n "$release"; then + major= + case $version_type in + darwin) + # we can't check for "0.0" in archive_cmds due to quoting + # problems, so we reset it completely + verstring= + ;; + *) + verstring="0.0" + ;; + esac + if test "$need_version" = no; then + versuffix= + else + versuffix=".0.0" + fi + fi + + # Remove version info from name if versioning should be avoided + if test "$avoid_version" = yes && test "$need_version" = no; then + major= + versuffix= + verstring="" + fi + + # Check to see if the archive will have undefined symbols. + if test "$allow_undefined" = yes; then + if test "$allow_undefined_flag" = unsupported; then + $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 + build_libtool_libs=no + build_old_libs=yes + fi + else + # Don't allow undefined symbols. + allow_undefined_flag="$no_undefined_flag" + fi + fi + + if test "$mode" != relink; then + # Remove our outputs, but don't remove object files since they + # may have been created when compiling PIC objects. + removelist= + tempremovelist=`$echo "$output_objdir/*"` + for p in $tempremovelist; do + case $p in + *.$objext) + ;; + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) + if test "X$precious_files_regex" != "X"; then + if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 + then + continue + fi + fi + removelist="$removelist $p" + ;; + *) ;; + esac + done + if test -n "$removelist"; then + $show "${rm}r $removelist" + $run ${rm}r $removelist + fi + fi + + # Now set the variables for building old libraries. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then + oldlibs="$oldlibs $output_objdir/$libname.$libext" + + # Transform .lo files to .o files. + oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` + fi + + # Eliminate all temporary directories. + for path in $notinst_path; do + lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'` + deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'` + dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'` + done + + if test -n "$xrpath"; then + # If the user specified any rpath flags, then add them. + temp_xrpath= + for libdir in $xrpath; do + temp_xrpath="$temp_xrpath -R$libdir" + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then + dependency_libs="$temp_xrpath $dependency_libs" + fi + fi + + # Make sure dlfiles contains only unique files that won't be dlpreopened + old_dlfiles="$dlfiles" + dlfiles= + for lib in $old_dlfiles; do + case " $dlprefiles $dlfiles " in + *" $lib "*) ;; + *) dlfiles="$dlfiles $lib" ;; + esac + done + + # Make sure dlprefiles contains only unique files + old_dlprefiles="$dlprefiles" + dlprefiles= + for lib in $old_dlprefiles; do + case "$dlprefiles " in + *" $lib "*) ;; + *) dlprefiles="$dlprefiles $lib" ;; + esac + done + + if test "$build_libtool_libs" = yes; then + if test -n "$rpath"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C library is in the System framework + deplibs="$deplibs -framework System" + ;; + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + test "X$arg" = "X-lc" && continue + ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test "$build_libtool_need_lc" = "yes"; then + deplibs="$deplibs -lc" + fi + ;; + esac + fi + + # Transform deplibs into only deplibs that can be linked in shared. + name_save=$name + libname_save=$libname + release_save=$release + versuffix_save=$versuffix + major_save=$major + # I'm not sure if I'm treating the release correctly. I think + # release should show up in the -l (ie -lgmp5) so we don't want to + # add it in twice. Is that correct? + release="" + versuffix="" + major="" + newdeplibs= + droppeddeps=no + case $deplibs_check_method in + pass_all) + # Don't check for shared/static. Everything works. + # This might be a little naive. We might want to check + # whether the library exists or not. But this is on + # osf3 & osf4 and I'm not really sure... Just + # implementing what was already the behavior. + newdeplibs=$deplibs + ;; + test_compile) + # This code stresses the "libraries are programs" paradigm to its + # limits. Maybe even breaks it. We compile a program, linking it + # against the deplibs as a proxy for the library. Then we can check + # whether they linked in statically or dynamically with ldd. + $rm conftest.c + cat > conftest.c </dev/null` + for potent_lib in $potential_libs; do + # Follow soft links. + if ls -lLd "$potent_lib" 2>/dev/null \ + | grep " -> " >/dev/null; then + continue + fi + # The statement above tries to avoid entering an + # endless loop below, in case of cyclic links. + # We might still enter an endless loop, since a link + # loop can be closed while we follow links, + # but so what? + potlib="$potent_lib" + while test -h "$potlib" 2>/dev/null; do + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` + case $potliblink in + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; + *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; + esac + done + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ + | ${SED} 10q \ + | $EGREP "$file_magic_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + $echo + $echo "*** Warning: linker path does not have real file for library $a_deplib." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have" + $echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $echo "*** with $libname but no candidates were found. (...for file magic test)" + else + $echo "*** with $libname and none of the candidates passed a file format test" + $echo "*** using a file magic. Last file checked: $potlib" + fi + fi + else + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + fi + done # Gone through all deplibs. + ;; + match_pattern*) + set dummy $deplibs_check_method + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` + for a_deplib in $deplibs; do + name="`expr $a_deplib : '-l\(.*\)'`" + # If $name is empty we are operating on a -L argument. + if test -n "$name" && test "$name" != "0"; then + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $a_deplib "*) + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=`eval \\$echo \"$libname_spec\"` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib="$potent_lib" # see symlink-check above in file_magic test + if eval $echo \"$potent_lib\" 2>/dev/null \ + | ${SED} 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + $echo + $echo "*** Warning: linker path does not have real file for library $a_deplib." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have" + $echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $echo "*** with $libname but no candidates were found. (...for regex pattern test)" + else + $echo "*** with $libname and none of the candidates passed a file format test" + $echo "*** using a regex pattern. Last file checked: $potlib" + fi + fi + else + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + fi + done # Gone through all deplibs. + ;; + none | unknown | *) + newdeplibs="" + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ + -e 's/ -[LR][^ ]*//g'` + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + for i in $predeps $postdeps ; do + # can't use Xsed below, because $i might contain '/' + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` + done + fi + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ + | grep . >/dev/null; then + $echo + if test "X$deplibs_check_method" = "Xnone"; then + $echo "*** Warning: inter-library dependencies are not supported in this platform." + else + $echo "*** Warning: inter-library dependencies are not known to be supported." + fi + $echo "*** All declared inter-library dependencies are being dropped." + droppeddeps=yes + fi + ;; + esac + versuffix=$versuffix_save + major=$major_save + release=$release_save + libname=$libname_save + name=$name_save + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` + ;; + esac + + if test "$droppeddeps" = yes; then + if test "$module" = yes; then + $echo + $echo "*** Warning: libtool could not satisfy all declared inter-library" + $echo "*** dependencies of module $libname. Therefore, libtool will create" + $echo "*** a static module, that should work as long as the dlopening" + $echo "*** application is linked with the -dlopen flag." + if test -z "$global_symbol_pipe"; then + $echo + $echo "*** However, this would only work if libtool was able to extract symbol" + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + $echo "*** not find such a program. So, this module is probably useless." + $echo "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + else + $echo "*** The inter-library dependencies that have been dropped here will be" + $echo "*** automatically added whenever a program is linked with this library" + $echo "*** or is declared to -dlopen it." + + if test "$allow_undefined" = no; then + $echo + $echo "*** Since this library must not contain undefined symbols," + $echo "*** because either the platform does not support them or" + $echo "*** it was explicitly requested with -no-undefined," + $echo "*** libtool will only create a static version of it." + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + fi + fi + # Done checking deplibs! + deplibs=$newdeplibs + fi + + # All the library-specific variables (install_libdir is set above). + library_names= + old_library= + dlname= + + # Test again, we may have decided not to build it any more + if test "$build_libtool_libs" = yes; then + if test "$hardcode_into_libs" = yes; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= + rpath="$finalize_rpath" + test "$mode" != relink && rpath="$compile_rpath$rpath" + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + dep_rpath="$dep_rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + if test -n "$hardcode_libdir_flag_spec_ld"; then + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" + else + eval dep_rpath=\"$hardcode_libdir_flag_spec\" + fi + fi + if test -n "$runpath_var" && test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" + fi + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" + fi + + shlibpath="$finalize_shlibpath" + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" + if test -n "$shlibpath"; then + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" + fi + + # Get the real and link names of the library. + eval shared_ext=\"$shrext_cmds\" + eval library_names=\"$library_names_spec\" + set dummy $library_names + realname="$2" + shift; shift + + if test -n "$soname_spec"; then + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + if test -z "$dlname"; then + dlname=$soname + fi + + lib="$output_objdir/$realname" + for link + do + linknames="$linknames $link" + done + + # Use standard objects if they are pic + test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then + $show "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $run $rm $export_symbols + cmds=$export_symbols_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + if len=`expr "X$cmd" : ".*"` && + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then + $show "$cmd" + $run eval "$cmd" || exit $? + skipped_export=false + else + # The command line is too long to execute in one step. + $show "using reloadable object file for export list..." + skipped_export=: + fi + done + IFS="$save_ifs" + if test -n "$export_symbols_regex"; then + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + $show "$mv \"${export_symbols}T\" \"$export_symbols\"" + $run eval '$mv "${export_symbols}T" "$export_symbols"' + fi + fi + fi + + if test -n "$export_symbols" && test -n "$include_expsyms"; then + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' + fi + + tmp_deplibs= + for test_deplib in $deplibs; do + case " $convenience " in + *" $test_deplib "*) ;; + *) + tmp_deplibs="$tmp_deplibs $test_deplib" + ;; + esac + done + deplibs="$tmp_deplibs" + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + else + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $convenience + libobjs="$libobjs $func_extract_archives_result" + fi + fi + + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then + eval flag=\"$thread_safe_flag_spec\" + linker_flags="$linker_flags $flag" + fi + + # Make a backup of the uninstalled library when relinking + if test "$mode" = relink; then + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? + fi + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + eval test_cmds=\"$module_expsym_cmds\" + cmds=$module_expsym_cmds + else + eval test_cmds=\"$module_cmds\" + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + eval test_cmds=\"$archive_expsym_cmds\" + cmds=$archive_expsym_cmds + else + eval test_cmds=\"$archive_cmds\" + cmds=$archive_cmds + fi + fi + + if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` && + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then + : + else + # The command line is too long to link in one step, link piecewise. + $echo "creating reloadable object files..." + + # Save the value of $output and $libobjs because we want to + # use them later. If we have whole_archive_flag_spec, we + # want to use save_libobjs as it was before + # whole_archive_flag_spec was expanded, because we can't + # assume the linker understands whole_archive_flag_spec. + # This may have to be revisited, in case too many + # convenience libraries get linked in and end up exceeding + # the spec. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + fi + save_output=$output + output_la=`$echo "X$output" | $Xsed -e "$basename"` + + # Clear the reloadable object creation command queue and + # initialize k to one. + test_cmds= + concat_cmds= + objlist= + delfiles= + last_robj= + k=1 + output=$output_objdir/$output_la-${k}.$objext + # Loop over the list of objects to be linked. + for obj in $save_libobjs + do + eval test_cmds=\"$reload_cmds $objlist $last_robj\" + if test "X$objlist" = X || + { len=`expr "X$test_cmds" : ".*"` && + test "$len" -le "$max_cmd_len"; }; then + objlist="$objlist $obj" + else + # The command $test_cmds is almost too long, add a + # command to the queue. + if test "$k" -eq 1 ; then + # The first file doesn't have a previous command to add. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\" + else + # All subsequent reloadable object files will link in + # the last one created. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" + fi + last_robj=$output_objdir/$output_la-${k}.$objext + k=`expr $k + 1` + output=$output_objdir/$output_la-${k}.$objext + objlist=$obj + len=1 + fi + done + # Handle the remaining objects by creating one last + # reloadable object file. All subsequent reloadable object + # files will link in the last one created. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" + + if ${skipped_export-false}; then + $show "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $run $rm $export_symbols + libobjs=$output + # Append the command to create the export file. + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" + fi + + # Set up a command to remove the reloadable object files + # after they are used. + i=0 + while test "$i" -lt "$k" + do + i=`expr $i + 1` + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" + done + + $echo "creating a temporary reloadable object file: $output" + + # Loop through the commands generated above and execute them. + save_ifs="$IFS"; IFS='~' + for cmd in $concat_cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + + libobjs=$output + # Restore the value of output. + output=$save_output + + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + fi + # Expand the library linking commands again to reset the + # value of $libobjs for piecewise linking. + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + cmds=$module_expsym_cmds + else + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + cmds=$archive_expsym_cmds + else + cmds=$archive_cmds + fi + fi + + # Append the command to remove the reloadable object files + # to the just-reset $cmds. + eval cmds=\"\$cmds~\$rm $delfiles\" + fi + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? + exit $EXIT_SUCCESS + fi + + # Create links to the real library. + for linkname in $linknames; do + if test "$realname" != "$linkname"; then + $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" + $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? + fi + done + + # If -module or -export-dynamic was specified, set the dlname. + if test "$module" = yes || test "$export_dynamic" = yes; then + # On all known operating systems, these are identical. + dlname="$soname" + fi + fi + ;; + + obj) + if test -n "$deplibs"; then + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 + fi + + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 + fi + + if test -n "$rpath"; then + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 + fi + + if test -n "$xrpath"; then + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 + fi + + if test -n "$vinfo"; then + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 + fi + + if test -n "$release"; then + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 + fi + + case $output in + *.lo) + if test -n "$objs$old_deplibs"; then + $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 + exit $EXIT_FAILURE + fi + libobj="$output" + obj=`$echo "X$output" | $Xsed -e "$lo2o"` + ;; + *) + libobj= + obj="$output" + ;; + esac + + # Delete the old objects. + $run $rm $obj $libobj + + # Objects from convenience libraries. This assumes + # single-version convenience libraries. Whenever we create + # different ones for PIC/non-PIC, this we'll have to duplicate + # the extraction. + reload_conv_objs= + gentop= + # reload_cmds runs $LD directly, so let us get rid of + # -Wl from whole_archive_flag_spec + wl= + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" + else + gentop="$output_objdir/${obj}x" + generated="$generated $gentop" + + func_extract_archives $gentop $convenience + reload_conv_objs="$reload_objs $func_extract_archives_result" + fi + fi + + # Create the old-style object. + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test + + output="$obj" + cmds=$reload_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + + # Exit if we aren't doing a library object file. + if test -z "$libobj"; then + if test -n "$gentop"; then + $show "${rm}r $gentop" + $run ${rm}r $gentop + fi + + exit $EXIT_SUCCESS + fi + + if test "$build_libtool_libs" != yes; then + if test -n "$gentop"; then + $show "${rm}r $gentop" + $run ${rm}r $gentop + fi + + # Create an invalid libtool object if no PIC, so that we don't + # accidentally link it into a program. + # $show "echo timestamp > $libobj" + # $run eval "echo timestamp > $libobj" || exit $? + exit $EXIT_SUCCESS + fi + + if test -n "$pic_flag" || test "$pic_mode" != default; then + # Only do commands if we really have different PIC objects. + reload_objs="$libobjs $reload_conv_objs" + output="$libobj" + cmds=$reload_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + fi + + if test -n "$gentop"; then + $show "${rm}r $gentop" + $run ${rm}r $gentop + fi + + exit $EXIT_SUCCESS + ;; + + prog) + case $host in + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; + esac + if test -n "$vinfo"; then + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 + fi + + if test -n "$release"; then + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 + fi + + if test "$preload" = yes; then + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && + test "$dlopen_self_static" = unknown; then + $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." + fi + fi + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` + ;; + esac + + case $host in + *darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + if test "$tagname" = CXX ; then + compile_command="$compile_command ${wl}-bind_at_load" + finalize_command="$finalize_command ${wl}-bind_at_load" + fi + ;; + esac + + compile_command="$compile_command $compile_deplibs" + finalize_command="$finalize_command $finalize_deplibs" + + if test -n "$rpath$xrpath"; then + # If the user specified any rpath flags, then add them. + for libdir in $rpath $xrpath; do + # This is the magic to use -rpath. + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + fi + + # Now hardcode the library paths + rpath= + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + rpath="$rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + case :$dllsearchpath: in + *":$libdir:"*) ;; + *) dllsearchpath="$dllsearchpath:$libdir";; + esac + ;; + esac + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + compile_rpath="$rpath" + + rpath= + hardcode_libdirs= + for libdir in $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + rpath="$rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + finalize_rpath="$rpath" + + if test -n "$libobjs" && test "$build_old_libs" = yes; then + # Transform all the library objects into standard objects. + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + fi + + dlsyms= + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + if test -n "$NM" && test -n "$global_symbol_pipe"; then + dlsyms="${outputname}S.c" + else + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 + fi + fi + + if test -n "$dlsyms"; then + case $dlsyms in + "") ;; + *.c) + # Discover the nlist of each of the dlfiles. + nlist="$output_objdir/${outputname}.nm" + + $show "$rm $nlist ${nlist}S ${nlist}T" + $run $rm "$nlist" "${nlist}S" "${nlist}T" + + # Parse the name list into a source file. + $show "creating $output_objdir/$dlsyms" + + test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ +/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +/* Prevent the only kind of declaration conflicts we can make. */ +#define lt_preloaded_symbols some_other_symbol + +/* External symbol declarations for the compiler. */\ +" + + if test "$dlself" = yes; then + $show "generating symbol list for \`$output'" + + test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" + + # Add our own program objects to the symbol list. + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + for arg in $progfiles; do + $show "extracting global C symbols from \`$arg'" + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" + done + + if test -n "$exclude_expsyms"; then + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + $run eval '$mv "$nlist"T "$nlist"' + fi + + if test -n "$export_symbols_regex"; then + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' + $run eval '$mv "$nlist"T "$nlist"' + fi + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + export_symbols="$output_objdir/$outputname.exp" + $run $rm $export_symbols + $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + else + $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' + $run eval 'mv "$nlist"T "$nlist"' + fi + fi + + for arg in $dlprefiles; do + $show "extracting global C symbols from \`$arg'" + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` + $run eval '$echo ": $name " >> "$nlist"' + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" + done + + if test -z "$run"; then + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + if test -n "$exclude_expsyms"; then + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $mv "$nlist"T "$nlist" + fi + + # Try sorting and uniquifying the output. + if grep -v "^: " < "$nlist" | + if sort -k 3 /dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then + : + else + grep -v "^: " < "$nlist" > "$nlist"S + fi + + if test -f "$nlist"S; then + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' + else + $echo '/* NONE */' >> "$output_objdir/$dlsyms" + fi + + $echo >> "$output_objdir/$dlsyms" "\ + +#undef lt_preloaded_symbols + +#if defined (__STDC__) && __STDC__ +# define lt_ptr void * +#else +# define lt_ptr char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +" + + case $host in + *cygwin* | *mingw* ) + $echo >> "$output_objdir/$dlsyms" "\ +/* DATA imports from DLLs on WIN32 can't be const, because + runtime relocations are performed -- see ld's documentation + on pseudo-relocs */ +struct { +" + ;; + * ) + $echo >> "$output_objdir/$dlsyms" "\ +const struct { +" + ;; + esac + + + $echo >> "$output_objdir/$dlsyms" "\ + const char *name; + lt_ptr address; +} +lt_preloaded_symbols[] = +{\ +" + + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" + + $echo >> "$output_objdir/$dlsyms" "\ + {0, (lt_ptr) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif\ +" + fi + + pic_flag_for_symtable= + case $host in + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + case "$compile_command " in + *" -static "*) ;; + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; + esac;; + *-*-hpux*) + case "$compile_command " in + *" -static "*) ;; + *) pic_flag_for_symtable=" $pic_flag";; + esac + esac + + # Now compile the dynamic symbol file. + $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" + $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? + + # Clean up the generated files. + $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" + $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" + + # Transform the symbol file into the correct name. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` + ;; + *) + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 + exit $EXIT_FAILURE + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe + # really was required. + + # Nullify the symbol file. + compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` + fi + + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then + # Replace the output file specification. + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + link_command="$compile_command$compile_rpath" + + # We have no uninstalled library dependencies, so finalize right now. + $show "$link_command" + $run eval "$link_command" + status=$? + + # Delete the generated files. + if test -n "$dlsyms"; then + $show "$rm $output_objdir/${outputname}S.${objext}" + $run $rm "$output_objdir/${outputname}S.${objext}" + fi + + exit $status + fi + + if test -n "$shlibpath_var"; then + # We should set the shlibpath_var + rpath= + for dir in $temp_rpath; do + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) + # Absolute path. + rpath="$rpath$dir:" + ;; + *) + # Relative path: add a thisdir entry. + rpath="$rpath\$thisdir/$dir:" + ;; + esac + done + temp_rpath="$rpath" + fi + + if test -n "$compile_shlibpath$finalize_shlibpath"; then + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" + fi + if test -n "$finalize_shlibpath"; then + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" + fi + + compile_var= + finalize_var= + if test -n "$runpath_var"; then + if test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + compile_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + if test -n "$finalize_perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $finalize_perm_rpath; do + rpath="$rpath$dir:" + done + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + fi + + if test "$no_install" = yes; then + # We don't need to create a wrapper script. + link_command="$compile_var$compile_command$compile_rpath" + # Replace the output file specification. + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + # Delete the old output file. + $run $rm $output + # Link the executable and exit + $show "$link_command" + $run eval "$link_command" || exit $? + exit $EXIT_SUCCESS + fi + + if test "$hardcode_action" = relink; then + # Fast installation is not supported + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 + $echo "$modename: \`$output' will be relinked during installation" 1>&2 + else + if test "$fast_install" != no; then + link_command="$finalize_var$compile_command$finalize_rpath" + if test "$fast_install" = yes; then + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` + else + # fast_install is set to needless + relink_command= + fi + else + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + fi + fi + + # Replace the output file specification. + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + + # Delete the old output files. + $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname + + $show "$link_command" + $run eval "$link_command" || exit $? + + # Now create the wrapper script. + $show "creating $output" + + # Quote the relink command for shipping. + if test -n "$relink_command"; then + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` + relink_command="$var=\"$var_value\"; export $var; $relink_command" + fi + done + relink_command="(cd `pwd`; $relink_command)" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + fi + + # Quote $echo for shipping. + if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then + case $progpath in + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; + esac + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` + else + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` + fi + + # Only actually do things if our run command is non-null. + if test -z "$run"; then + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in + *cygwin*) + exeext=.exe + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; + *) exeext= ;; + esac + case $host in + *cygwin* | *mingw* ) + cwrappersource=`$echo ${objdir}/lt-${outputname}.c` + cwrapper=`$echo ${output}.exe` + $rm $cwrappersource $cwrapper + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + + cat > $cwrappersource <> $cwrappersource<<"EOF" +#include +#include +#include +#include +#include +#include + +#if defined(PATH_MAX) +# define LT_PATHMAX PATH_MAX +#elif defined(MAXPATHLEN) +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif + +#ifndef DIR_SEPARATOR +#define DIR_SEPARATOR '/' +#endif + +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ + defined (__OS2__) +#define HAVE_DOS_BASED_FILE_SYSTEM +#ifndef DIR_SEPARATOR_2 +#define DIR_SEPARATOR_2 '\\' +#endif +#endif + +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ + +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) +#define XFREE(stale) do { \ + if (stale) { free ((void *) stale); stale = 0; } \ +} while (0) + +const char *program_name = NULL; + +void * xmalloc (size_t num); +char * xstrdup (const char *string); +char * basename (const char *name); +char * fnqualify(const char *path); +char * strendzap(char *str, const char *pat); +void lt_fatal (const char *message, ...); + +int +main (int argc, char *argv[]) +{ + char **newargz; + int i; + + program_name = (char *) xstrdup ((char *) basename (argv[0])); + newargz = XMALLOC(char *, argc+2); +EOF + + cat >> $cwrappersource <> $cwrappersource <<"EOF" + newargz[1] = fnqualify(argv[0]); + /* we know the script has the same name, without the .exe */ + /* so make sure newargz[1] doesn't end in .exe */ + strendzap(newargz[1],".exe"); + for (i = 1; i < argc; i++) + newargz[i+1] = xstrdup(argv[i]); + newargz[argc+1] = NULL; +EOF + + cat >> $cwrappersource <> $cwrappersource <<"EOF" +} + +void * +xmalloc (size_t num) +{ + void * p = (void *) malloc (num); + if (!p) + lt_fatal ("Memory exhausted"); + + return p; +} + +char * +xstrdup (const char *string) +{ + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL +; +} + +char * +basename (const char *name) +{ + const char *base; + +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + /* Skip over the disk name in MSDOS pathnames. */ + if (isalpha (name[0]) && name[1] == ':') + name += 2; +#endif + + for (base = name; *name; name++) + if (IS_DIR_SEPARATOR (*name)) + base = name + 1; + return (char *) base; +} + +char * +fnqualify(const char *path) +{ + size_t size; + char *p; + char tmp[LT_PATHMAX + 1]; + + assert(path != NULL); + + /* Is it qualified already? */ +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + if (isalpha (path[0]) && path[1] == ':') + return xstrdup (path); +#endif + if (IS_DIR_SEPARATOR (path[0])) + return xstrdup (path); + + /* prepend the current directory */ + /* doesn't handle '~' */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal ("getcwd failed"); + size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */ + p = XMALLOC(char, size); + sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path); + return p; +} + +char * +strendzap(char *str, const char *pat) +{ + size_t len, patlen; + + assert(str != NULL); + assert(pat != NULL); + + len = strlen(str); + patlen = strlen(pat); + + if (patlen <= len) + { + str += len - patlen; + if (strcmp(str, pat) == 0) + *str = '\0'; + } + return str; +} + +static void +lt_error_core (int exit_status, const char * mode, + const char * message, va_list ap) +{ + fprintf (stderr, "%s: %s: ", program_name, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); + + if (exit_status >= 0) + exit (exit_status); +} + +void +lt_fatal (const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, "FATAL", message, ap); + va_end (ap); +} +EOF + # we should really use a build-platform specific compiler + # here, but OTOH, the wrappers (shell script and this C one) + # are only useful if you want to execute the "real" binary. + # Since the "real" binary is built for $host, then this + # wrapper might as well be built for $host, too. + $run $LTCC -s -o $cwrapper $cwrappersource + ;; + esac + $rm $output + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 + + $echo > $output "\ +#! $SHELL + +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='${SED} -e 1s/^X//' +sed_quote_subst='$sed_quote_subst' + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +relink_command=\"$relink_command\" + +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" = \"$magic\"; then + # install mode needs the following variable: + notinst_deplibs='$notinst_deplibs' +else + # When we are sourced in execute mode, \$file and \$echo are already set. + if test \"\$libtool_execute_magic\" != \"$magic\"; then + echo=\"$qecho\" + file=\"\$0\" + # Make sure echo works. + if test \"X\$1\" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then + # Yippee, \$echo works! + : + else + # Restart under the correct shell, and then maybe \$echo will work. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} + fi + fi\ +" + $echo >> $output "\ + + # Find the directory that this script lives in. + thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` + test \"x\$thisdir\" = \"x\$file\" && thisdir=. + + # Follow symbolic links until we get to the real thisdir. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" != \"x\$file\"; then + case \"\$destdir\" in + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; + *) thisdir=\"\$thisdir/\$destdir\" ;; + esac + fi + + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` + done + + # Try to get the absolute directory name. + absdir=\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=\"\$absdir\" +" + + if test "$fast_install" = yes; then + $echo >> $output "\ + program=lt-'$outputname'$exeext + progdir=\"\$thisdir/$objdir\" + + if test ! -f \"\$progdir/\$program\" || \\ + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ + test \"X\$file\" != \"X\$progdir/\$program\"; }; then + + file=\"\$\$-\$program\" + + if test ! -d \"\$progdir\"; then + $mkdir \"\$progdir\" + else + $rm \"\$progdir/\$file\" + fi" + + $echo >> $output "\ + + # relink executable if necessary + if test -n \"\$relink_command\"; then + if relink_command_output=\`eval \$relink_command 2>&1\`; then : + else + $echo \"\$relink_command_output\" >&2 + $rm \"\$progdir/\$file\" + exit $EXIT_FAILURE + fi + fi + + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || + { $rm \"\$progdir/\$program\"; + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } + $rm \"\$progdir/\$file\" + fi" + else + $echo >> $output "\ + program='$outputname' + progdir=\"\$thisdir/$objdir\" +" + fi + + $echo >> $output "\ + + if test -f \"\$progdir/\$program\"; then" + + # Export our shlibpath_var if we have one. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + $echo >> $output "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` + + export $shlibpath_var +" + fi + + # fixup the dll searchpath if we need to. + if test -n "$dllsearchpath"; then + $echo >> $output "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" + fi + + $echo >> $output "\ + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. +" + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2*) + $echo >> $output "\ + exec \$progdir\\\\\$program \${1+\"\$@\"} +" + ;; + + *) + $echo >> $output "\ + exec \$progdir/\$program \${1+\"\$@\"} +" + ;; + esac + $echo >> $output "\ + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" + exit $EXIT_FAILURE + fi + else + # The program doesn't exist. + \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2 + \$echo \"This script is just a wrapper for \$program.\" 1>&2 + $echo \"See the $PACKAGE documentation for more information.\" 1>&2 + exit $EXIT_FAILURE + fi +fi\ +" + chmod +x $output + fi + exit $EXIT_SUCCESS + ;; + esac + + # See if we need to build an old-fashioned archive. + for oldlib in $oldlibs; do + + if test "$build_libtool_libs" = convenience; then + oldobjs="$libobjs_save" + addlibs="$convenience" + build_libtool_libs=no + else + if test "$build_libtool_libs" = module; then + oldobjs="$libobjs_save" + build_libtool_libs=no + else + oldobjs="$old_deplibs $non_pic_objects" + fi + addlibs="$old_convenience" + fi + + if test -n "$addlibs"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $addlibs + oldobjs="$oldobjs $func_extract_archives_result" + fi + + # Do each command in the archive commands. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then + cmds=$old_archive_from_new_cmds + else + # POSIX demands no paths to be encoded in archives. We have + # to avoid creating archives with duplicate basenames if we + # might have to extract them afterwards, e.g., when creating a + # static archive out of a convenience library, or when linking + # the entirety of a libtool archive into another (currently + # not supported by libtool). + if (for obj in $oldobjs + do + $echo "X$obj" | $Xsed -e 's%^.*/%%' + done | sort | sort -uc >/dev/null 2>&1); then + : + else + $echo "copying selected object files to avoid basename conflicts..." + + if test -z "$gentop"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + $show "${rm}r $gentop" + $run ${rm}r "$gentop" + $show "$mkdir $gentop" + $run $mkdir "$gentop" + status=$? + if test "$status" -ne 0 && test ! -d "$gentop"; then + exit $status + fi + fi + + save_oldobjs=$oldobjs + oldobjs= + counter=1 + for obj in $save_oldobjs + do + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` + case " $oldobjs " in + " ") oldobjs=$obj ;; + *[\ /]"$objbase "*) + while :; do + # Make sure we don't pick an alternate name that also + # overlaps. + newobj=lt$counter-$objbase + counter=`expr $counter + 1` + case " $oldobjs " in + *[\ /]"$newobj "*) ;; + *) if test ! -f "$gentop/$newobj"; then break; fi ;; + esac + done + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" + $run ln "$obj" "$gentop/$newobj" || + $run cp "$obj" "$gentop/$newobj" + oldobjs="$oldobjs $gentop/$newobj" + ;; + *) oldobjs="$oldobjs $obj" ;; + esac + done + fi + + eval cmds=\"$old_archive_cmds\" + + if len=`expr "X$cmds" : ".*"` && + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then + cmds=$old_archive_cmds + else + # the command line is too long to link in one step, link in parts + $echo "using piecewise archive linking..." + save_RANLIB=$RANLIB + RANLIB=: + objlist= + concat_cmds= + save_oldobjs=$oldobjs + + # Is there a better way of finding the last object in the list? + for obj in $save_oldobjs + do + last_oldobj=$obj + done + for obj in $save_oldobjs + do + oldobjs="$objlist $obj" + objlist="$objlist $obj" + eval test_cmds=\"$old_archive_cmds\" + if len=`expr "X$test_cmds" : ".*"` && + test "$len" -le "$max_cmd_len"; then + : + else + # the above command should be used before it gets too long + oldobjs=$objlist + if test "$obj" = "$last_oldobj" ; then + RANLIB=$save_RANLIB + fi + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" + objlist= + fi + done + RANLIB=$save_RANLIB + oldobjs=$objlist + if test "X$oldobjs" = "X" ; then + eval cmds=\"\$concat_cmds\" + else + eval cmds=\"\$concat_cmds~\$old_archive_cmds\" + fi + fi + fi + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + eval cmd=\"$cmd\" + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + done + + if test -n "$generated"; then + $show "${rm}r$generated" + $run ${rm}r$generated + fi + + # Now create the libtool archive. + case $output in + *.la) + old_library= + test "$build_old_libs" = yes && old_library="$libname.$libext" + $show "creating $output" + + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` + relink_command="$var=\"$var_value\"; export $var; $relink_command" + fi + done + # Quote the link command for shipping. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + if test "$hardcode_automatic" = yes ; then + relink_command= + fi + + + # Only create the output if not a dry run. + if test -z "$run"; then + for installed in no yes; do + if test "$installed" = yes; then + if test -z "$install_libdir"; then + break + fi + output="$output_objdir/$outputname"i + # Replace all uninstalled libtool libraries with the installed ones + newdependency_libs= + for deplib in $dependency_libs; do + case $deplib in + *.la) + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + if test -z "$libdir"; then + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 + exit $EXIT_FAILURE + fi + newdependency_libs="$newdependency_libs $libdir/$name" + ;; + *) newdependency_libs="$newdependency_libs $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" + newdlfiles= + for lib in $dlfiles; do + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + if test -z "$libdir"; then + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 + exit $EXIT_FAILURE + fi + newdlfiles="$newdlfiles $libdir/$name" + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + if test -z "$libdir"; then + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 + exit $EXIT_FAILURE + fi + newdlprefiles="$newdlprefiles $libdir/$name" + done + dlprefiles="$newdlprefiles" + else + newdlfiles= + for lib in $dlfiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlfiles="$newdlfiles $abs" + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlprefiles="$newdlprefiles $abs" + done + dlprefiles="$newdlprefiles" + fi + $rm $output + # place dlname in correct position for cygwin + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + esac + $echo > $output "\ +# $outputname - a libtool library file +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='$tdlname' + +# Names of this library. +library_names='$library_names' + +# The name of the static archive. +old_library='$old_library' + +# Libraries that this one depends upon. +dependency_libs='$dependency_libs' + +# Version information for $libname. +current=$current +age=$age +revision=$revision + +# Is this an already installed library? +installed=$installed + +# Should we warn about portability when linking against -modules? +shouldnotlink=$module + +# Files to dlopen/dlpreopen +dlopen='$dlfiles' +dlpreopen='$dlprefiles' + +# Directory that this library needs to be installed in: +libdir='$install_libdir'" + if test "$installed" = no && test "$need_relink" = yes; then + $echo >> $output "\ +relink_command=\"$relink_command\"" + fi + done + fi + + # Do a symbolic link so that the libtool archive can be found in + # LD_LIBRARY_PATH before the program is installed. + $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? + ;; + esac + exit $EXIT_SUCCESS + ;; + + # libtool install mode + install) + modename="$modename: install" + + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || + # Allow the use of GNU shtool's install command. + $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then + # Aesthetically quote it. + arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + install_prog="$arg " + arg="$1" + shift + else + install_prog= + arg="$nonopt" + fi + + # The real first argument should be the name of the installation program. + # Aesthetically quote it. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + install_prog="$install_prog$arg" + + # We need to accept at least all the BSD install flags. + dest= + files= + opts= + prev= + install_type= + isdir=no + stripme= + for arg + do + if test -n "$dest"; then + files="$files $dest" + dest="$arg" + continue + fi + + case $arg in + -d) isdir=yes ;; + -f) prev="-f" ;; + -g) prev="-g" ;; + -m) prev="-m" ;; + -o) prev="-o" ;; + -s) + stripme=" -s" + continue + ;; + -*) ;; + + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + prev= + else + dest="$arg" + continue + fi + ;; + esac + + # Aesthetically quote the argument. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + install_prog="$install_prog $arg" + done + + if test -z "$install_prog"; then + $echo "$modename: you must specify an install program" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + if test -n "$prev"; then + $echo "$modename: the \`$prev' option requires an argument" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + if test -z "$files"; then + if test -z "$dest"; then + $echo "$modename: no file or destination specified" 1>&2 + else + $echo "$modename: you must specify a destination" 1>&2 + fi + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Strip any trailing slash from the destination. + dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` + + # Check to see that the destination is a directory. + test -d "$dest" && isdir=yes + if test "$isdir" = yes; then + destdir="$dest" + destname= + else + destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` + test "X$destdir" = "X$dest" && destdir=. + destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` + + # Not a directory, so check to see that there is only one file specified. + set dummy $files + if test "$#" -gt 2; then + $echo "$modename: \`$dest' is not a directory" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + fi + case $destdir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + for file in $files; do + case $file in + *.lo) ;; + *) + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + ;; + esac + done + ;; + esac + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + staticlibs= + future_libdirs= + current_libdirs= + for file in $files; do + + # Do each installation. + case $file in + *.$libext) + # Do the static libraries later. + staticlibs="$staticlibs $file" + ;; + + *.la) + # Check to see that this really is a libtool archive. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + else + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + library_names= + old_library= + relink_command= + # If there is no directory component, then add one. + case $file in + */* | *\\*) . $file ;; + *) . ./$file ;; + esac + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" = "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) current_libdirs="$current_libdirs $libdir" ;; + esac + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) future_libdirs="$future_libdirs $libdir" ;; + esac + fi + + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ + test "X$dir" = "X$file/" && dir= + dir="$dir$objdir" + + if test -n "$relink_command"; then + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. + if test "$inst_prefix_dir" = "$destdir"; then + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 + exit $EXIT_FAILURE + fi + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` + fi + + $echo "$modename: warning: relinking \`$file'" 1>&2 + $show "$relink_command" + if $run eval "$relink_command"; then : + else + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 + exit $EXIT_FAILURE + fi + fi + + # See the names of the shared library. + set dummy $library_names + if test -n "$2"; then + realname="$2" + shift + shift + + srcname="$realname" + test -n "$relink_command" && srcname="$realname"T + + # Install the shared library and build the symlinks. + $show "$install_prog $dir/$srcname $destdir/$realname" + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? + if test -n "$stripme" && test -n "$striplib"; then + $show "$striplib $destdir/$realname" + $run eval "$striplib $destdir/$realname" || exit $? + fi + + if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + for linkname + do + if test "$linkname" != "$realname"; then + $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" + $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" + fi + done + fi + + # Do each command in the postinstall commands. + lib="$destdir/$realname" + cmds=$postinstall_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + fi + + # Install the pseudo-library for information purposes. + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" + ;; + + *.lo) + # Install (i.e. copy) a libtool object. + + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + destfile="$destdir/$destfile" + fi + + # Deduce the name of the destination old-style object file. + case $destfile in + *.lo) + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` + ;; + *.$objext) + staticdest="$destfile" + destfile= + ;; + *) + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + # Install the libtool object if requested. + if test -n "$destfile"; then + $show "$install_prog $file $destfile" + $run eval "$install_prog $file $destfile" || exit $? + fi + + # Install the old object if enabled. + if test "$build_old_libs" = yes; then + # Deduce the name of the old-style object file. + staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` + + $show "$install_prog $staticobj $staticdest" + $run eval "$install_prog \$staticobj \$staticdest" || exit $? + fi + exit $EXIT_SUCCESS + ;; + + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + destfile="$destdir/$destfile" + fi + + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext="" + case $file in + *.exe) + if test ! -f "$file"; then + file=`$echo $file|${SED} 's,.exe$,,'` + stripped_ext=".exe" + fi + ;; + esac + + # Do a test to see if this is really a libtool program. + case $host in + *cygwin*|*mingw*) + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` + ;; + *) + wrapper=$file + ;; + esac + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then + notinst_deplibs= + relink_command= + + # To insure that "foo" is sourced, and not "foo.exe", + # finese the cygwin/MSYS system by explicitly sourcing "foo." + # which disallows the automatic-append-.exe behavior. + case $build in + *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; + *) wrapperdot=${wrapper} ;; + esac + # If there is no directory component, then add one. + case $file in + */* | *\\*) . ${wrapperdot} ;; + *) . ./${wrapperdot} ;; + esac + + # Check the variables that should have been set. + if test -z "$notinst_deplibs"; then + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 + exit $EXIT_FAILURE + fi + + finalize=yes + for lib in $notinst_deplibs; do + # Check to see that each library is installed. + libdir= + if test -f "$lib"; then + # If there is no directory component, then add one. + case $lib in + */* | *\\*) . $lib ;; + *) . ./$lib ;; + esac + fi + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test + if test -n "$libdir" && test ! -f "$libfile"; then + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 + finalize=no + fi + done + + relink_command= + # To insure that "foo" is sourced, and not "foo.exe", + # finese the cygwin/MSYS system by explicitly sourcing "foo." + # which disallows the automatic-append-.exe behavior. + case $build in + *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; + *) wrapperdot=${wrapper} ;; + esac + # If there is no directory component, then add one. + case $file in + */* | *\\*) . ${wrapperdot} ;; + *) . ./${wrapperdot} ;; + esac + + outputname= + if test "$fast_install" = no && test -n "$relink_command"; then + if test "$finalize" = yes && test -z "$run"; then + tmpdir="/tmp" + test -n "$TMPDIR" && tmpdir="$TMPDIR" + tmpdir="$tmpdir/libtool-$$" + save_umask=`umask` + umask 0077 + if $mkdir "$tmpdir"; then + umask $save_umask + else + umask $save_umask + $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 + continue + fi + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` + outputname="$tmpdir/$file" + # Replace the output file specification. + relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` + + $show "$relink_command" + if $run eval "$relink_command"; then : + else + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 + ${rm}r "$tmpdir" + continue + fi + file="$outputname" + else + $echo "$modename: warning: cannot relink \`$file'" 1>&2 + fi + else + # Install the binary that we compiled earlier. + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` + fi + fi + + # remove .exe since cygwin /usr/bin/install will append another + # one anyways + case $install_prog,$host in + */usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=$destfile.exe + ;; + *:*.exe) + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` + ;; + esac + ;; + esac + $show "$install_prog$stripme $file $destfile" + $run eval "$install_prog\$stripme \$file \$destfile" || exit $? + test -n "$outputname" && ${rm}r "$tmpdir" + ;; + esac + done + + for file in $staticlibs; do + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + + # Set up the ranlib parameters. + oldlib="$destdir/$name" + + $show "$install_prog $file $oldlib" + $run eval "$install_prog \$file \$oldlib" || exit $? + + if test -n "$stripme" && test -n "$old_striplib"; then + $show "$old_striplib $oldlib" + $run eval "$old_striplib $oldlib" || exit $? + fi + + # Do each command in the postinstall commands. + cmds=$old_postinstall_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + done + + if test -n "$future_libdirs"; then + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 + fi + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + test -n "$run" && current_libdirs=" -n$current_libdirs" + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' + else + exit $EXIT_SUCCESS + fi + ;; + + # libtool finish mode + finish) + modename="$modename: finish" + libdirs="$nonopt" + admincmds= + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + for dir + do + libdirs="$libdirs $dir" + done + + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + cmds=$finish_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || admincmds="$admincmds + $cmd" + done + IFS="$save_ifs" + fi + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=\"$finish_eval\" + $run eval "$cmds" || admincmds="$admincmds + $cmds" + fi + done + fi + + # Exit here if they wanted silent mode. + test "$show" = : && exit $EXIT_SUCCESS + + $echo "----------------------------------------------------------------------" + $echo "Libraries have been installed in:" + for libdir in $libdirs; do + $echo " $libdir" + done + $echo + $echo "If you ever happen to want to link against installed libraries" + $echo "in a given directory, LIBDIR, you must either use libtool, and" + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" + $echo "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" + $echo " during execution" + fi + if test -n "$runpath_var"; then + $echo " - add LIBDIR to the \`$runpath_var' environment variable" + $echo " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" + + $echo " - use the \`$flag' linker flag" + fi + if test -n "$admincmds"; then + $echo " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" + fi + $echo + $echo "See any operating system documentation about shared libraries for" + $echo "more information, such as the ld(1) and ld.so(8) manual pages." + $echo "----------------------------------------------------------------------" + exit $EXIT_SUCCESS + ;; + + # libtool execute mode + execute) + modename="$modename: execute" + + # The first argument is the command name. + cmd="$nonopt" + if test -z "$cmd"; then + $echo "$modename: you must specify a COMMAND" 1>&2 + $echo "$help" + exit $EXIT_FAILURE + fi + + # Handle -dlopen flags immediately. + for file in $execute_dlfiles; do + if test ! -f "$file"; then + $echo "$modename: \`$file' is not a file" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + dir= + case $file in + *.la) + # Check to see that this really is a libtool archive. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + else + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Read the libtool library. + dlname= + library_names= + + # If there is no directory component, then add one. + case $file in + */* | *\\*) . $file ;; + *) . ./$file ;; + esac + + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" + continue + fi + + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` + test "X$dir" = "X$file" && dir=. + + if test -f "$dir/$objdir/$dlname"; then + dir="$dir/$objdir" + else + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 + exit $EXIT_FAILURE + fi + ;; + + *.lo) + # Just add the directory containing the .lo file. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` + test "X$dir" = "X$file" && dir=. + ;; + + *) + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 + continue + ;; + esac + + # Get the absolute pathname. + absdir=`cd "$dir" && pwd` + test -n "$absdir" && dir="$absdir" + + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=\"\$dir\"" + else + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" + fi + done + + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic="$magic" + + # Check if any of the arguments is a wrapper script. + args= + for file + do + case $file in + -*) ;; + *) + # Do a test to see if this is really a libtool program. + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + # If there is no directory component, then add one. + case $file in + */* | *\\*) . $file ;; + *) . ./$file ;; + esac + + # Transform arg to wrapped name. + file="$progdir/$program" + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` + args="$args \"$file\"" + done + + if test -z "$run"; then + if test -n "$shlibpath_var"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + fi + + # Restore saved environment variables + if test "${save_LC_ALL+set}" = set; then + LC_ALL="$save_LC_ALL"; export LC_ALL + fi + if test "${save_LANG+set}" = set; then + LANG="$save_LANG"; export LANG + fi + + # Now prepare to actually exec the command. + exec_cmd="\$cmd$args" + else + # Display what would be done. + if test -n "$shlibpath_var"; then + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" + $echo "export $shlibpath_var" + fi + $echo "$cmd$args" + exit $EXIT_SUCCESS + fi + ;; + + # libtool clean and uninstall mode + clean | uninstall) + modename="$modename: $mode" + rm="$nonopt" + files= + rmforce= + exit_status=0 + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + for arg + do + case $arg in + -f) rm="$rm $arg"; rmforce=yes ;; + -*) rm="$rm $arg" ;; + *) files="$files $arg" ;; + esac + done + + if test -z "$rm"; then + $echo "$modename: you must specify an RM program" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + rmdirs= + + origobjdir="$objdir" + for file in $files; do + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` + if test "X$dir" = "X$file"; then + dir=. + objdir="$origobjdir" + else + objdir="$dir/$origobjdir" + fi + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + test "$mode" = uninstall && objdir="$dir" + + # Remember objdir for removal later, being careful to avoid duplicates + if test "$mode" = clean; then + case " $rmdirs " in + *" $objdir "*) ;; + *) rmdirs="$rmdirs $objdir" ;; + esac + fi + + # Don't error if the file doesn't exist and rm -f was used. + if (test -L "$file") >/dev/null 2>&1 \ + || (test -h "$file") >/dev/null 2>&1 \ + || test -f "$file"; then + : + elif test -d "$file"; then + exit_status=1 + continue + elif test "$rmforce" = yes; then + continue + fi + + rmfiles="$file" + + case $name in + *.la) + # Possibly a libtool archive, so verify it. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + . $dir/$name + + # Delete the libtool libraries and symlinks. + for n in $library_names; do + rmfiles="$rmfiles $objdir/$n" + done + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" + test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" + + if test "$mode" = uninstall; then + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + cmds=$postuninstall_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" + if test "$?" -ne 0 && test "$rmforce" != yes; then + exit_status=1 + fi + done + IFS="$save_ifs" + fi + + if test -n "$old_library"; then + # Do each command in the old_postuninstall commands. + cmds=$old_postuninstall_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" + if test "$?" -ne 0 && test "$rmforce" != yes; then + exit_status=1 + fi + done + IFS="$save_ifs" + fi + # FIXME: should reinstall the best remaining shared library. + fi + fi + ;; + + *.lo) + # Possibly a libtool object, so verify it. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + + # Read the .lo file + . $dir/$name + + # Add PIC object to the list of files to remove. + if test -n "$pic_object" \ + && test "$pic_object" != none; then + rmfiles="$rmfiles $dir/$pic_object" + fi + + # Add non-PIC object to the list of files to remove. + if test -n "$non_pic_object" \ + && test "$non_pic_object" != none; then + rmfiles="$rmfiles $dir/$non_pic_object" + fi + fi + ;; + + *) + if test "$mode" = clean ; then + noexename=$name + case $file in + *.exe) + file=`$echo $file|${SED} 's,.exe$,,'` + noexename=`$echo $name|${SED} 's,.exe$,,'` + # $file with .exe has already been added to rmfiles, + # add $file without .exe + rmfiles="$rmfiles $file" + ;; + esac + # Do a test to see if this is a libtool program. + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + relink_command= + . $dir/$noexename + + # note $name still contains .exe if it was in $file originally + # as does the version of $file that was added into $rmfiles + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" + if test "$fast_install" = yes && test -n "$relink_command"; then + rmfiles="$rmfiles $objdir/lt-$name" + fi + if test "X$noexename" != "X$name" ; then + rmfiles="$rmfiles $objdir/lt-${noexename}.c" + fi + fi + fi + ;; + esac + $show "$rm $rmfiles" + $run $rm $rmfiles || exit_status=1 + done + objdir="$origobjdir" + + # Try to remove the ${objdir}s in the directories where we deleted files + for dir in $rmdirs; do + if test -d "$dir"; then + $show "rmdir $dir" + $run rmdir $dir >/dev/null 2>&1 + fi + done + + exit $exit_status + ;; + + "") + $echo "$modename: you must specify a MODE" 1>&2 + $echo "$generic_help" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + if test -z "$exec_cmd"; then + $echo "$modename: invalid operation mode \`$mode'" 1>&2 + $echo "$generic_help" 1>&2 + exit $EXIT_FAILURE + fi +fi # test -z "$show_help" + +if test -n "$exec_cmd"; then + eval exec $exec_cmd + exit $EXIT_FAILURE +fi + +# We need to display help for each of the modes. +case $mode in +"") $echo \ +"Usage: $modename [OPTION]... [MODE-ARG]... + +Provide generalized library-building support services. + + --config show all configuration variables + --debug enable verbose shell tracing +-n, --dry-run display commands without modifying any files + --features display basic configuration information and exit + --finish same as \`--mode=finish' + --help display this help message and exit + --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] + --quiet same as \`--silent' + --silent don't print informational messages + --tag=TAG use configuration variables from tag TAG + --version print version information + +MODE must be one of the following: + + clean remove files from the build directory + compile compile a source file into a libtool object + execute automatically set library path, then run a program + finish complete the installation of libtool libraries + install install libraries or executables + link create a library or an executable + uninstall remove libraries from an installed directory + +MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for +a more detailed description of MODE. + +Report bugs to ." + exit $EXIT_SUCCESS + ;; + +clean) + $echo \ +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... + +Remove files from the build directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, object or program, all the files associated +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; + +compile) + $echo \ +"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE + +Compile a source file into a libtool library object. + +This mode accepts the following additional options: + + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -prefer-pic try to building PIC objects only + -prefer-non-pic try to building non-PIC objects only + -static always build a \`.o' file suitable for static linking + +COMPILE-COMMAND is a command to be used in creating a \`standard' object file +from the given SOURCEFILE. + +The output file name is determined by removing the directory component from +SOURCEFILE, then substituting the C source code suffix \`.c' with the +library object suffix, \`.lo'." + ;; + +execute) + $echo \ +"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... + +Automatically set library path, then run a program. + +This mode accepts the following additional options: + + -dlopen FILE add the directory containing FILE to the library path + +This mode sets the library path environment variable according to \`-dlopen' +flags. + +If any of the ARGS are libtool executable wrappers, then they are translated +into their corresponding uninstalled binary, and any of their required library +directories are added to the library path. + +Then, COMMAND is executed, with ARGS as arguments." + ;; + +finish) + $echo \ +"Usage: $modename [OPTION]... --mode=finish [LIBDIR]... + +Complete the installation of libtool libraries. + +Each LIBDIR is a directory that contains libtool libraries. + +The commands that this mode executes may require superuser privileges. Use +the \`--dry-run' option if you just want to see what would be executed." + ;; + +install) + $echo \ +"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... + +Install executables or libraries. + +INSTALL-COMMAND is the installation command. The first component should be +either the \`install' or \`cp' program. + +The rest of the components are interpreted as arguments to that command (only +BSD-compatible install options are recognized)." + ;; + +link) + $echo \ +"Usage: $modename [OPTION]... --mode=link LINK-COMMAND... + +Link object files or libraries together to form another library, or to +create an executable program. + +LINK-COMMAND is a command using the C compiler that you would use to create +a program from several object files. + +The following components of LINK-COMMAND are treated specially: + + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -export-symbols-regex REGEX + try to export only the symbols matching REGEX + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable + -no-undefined declare that a library does not refer to external symbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE Use a list of object files found in FILE to specify objects + -precious-files-regex REGEX + don't remove output files matching REGEX + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries + -static do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults to 0] + +All other options (arguments beginning with \`-') are ignored. + +Every other argument is treated as a filename. Files ending in \`.la' are +treated as uninstalled libtool libraries, other files are standard or library +object files. + +If the OUTPUT-FILE ends in \`.la', then a libtool library is created, +only library objects (\`.lo' files) may be specified, and \`-rpath' is +required, except when creating a convenience library. + +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created +using \`ar' and \`ranlib', or on Windows using \`lib'. + +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file +is created, otherwise an executable program is created." + ;; + +uninstall) + $echo \ +"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... + +Remove libraries from an installation directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, all the files associated with it are deleted. +Otherwise, only FILE itself is deleted using RM." + ;; + +*) + $echo "$modename: invalid operation mode \`$mode'" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + ;; +esac + +$echo +$echo "Try \`$modename --help' for more information about other modes." + +exit $? + +# The TAGs below are defined such that we never get into a situation +# in which we disable both kinds of libraries. Given conflicting +# choices, we go for a static library, that is the most portable, +# since we can't tell whether shared libraries were disabled because +# the user asked for that or because the platform doesn't support +# them. This is particularly important on AIX, because we don't +# support having both static and shared libraries enabled at the same +# time on that platform, so we default to a shared-only configuration. +# If a disable-shared tag is given, we'll fallback to a static-only +# configuration. But we'll never go from static-only to shared-only. + +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared +build_libtool_libs=no +build_old_libs=yes +# ### END LIBTOOL TAG CONFIG: disable-shared + +# ### BEGIN LIBTOOL TAG CONFIG: disable-static +build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac` +# ### END LIBTOOL TAG CONFIG: disable-static + +# Local Variables: +# mode:shell-script +# sh-indentation:2 +# End: diff --git a/m4/codeset.m4 b/m4/codeset.m4 new file mode 100644 index 0000000..a6e67ec --- /dev/null +++ b/m4/codeset.m4 @@ -0,0 +1,21 @@ +# codeset.m4 serial AM1 (gettext-0.10.40) +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_DEFUN([AM_LANGINFO_CODESET], +[ + AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, + [AC_TRY_LINK([#include ], + [char* cs = nl_langinfo(CODESET);], + am_cv_langinfo_codeset=yes, + am_cv_langinfo_codeset=no) + ]) + if test $am_cv_langinfo_codeset = yes; then + AC_DEFINE(HAVE_LANGINFO_CODESET, 1, + [Define if you have and nl_langinfo(CODESET).]) + fi +]) diff --git a/m4/gettext.m4 b/m4/gettext.m4 new file mode 100644 index 0000000..624a807 --- /dev/null +++ b/m4/gettext.m4 @@ -0,0 +1,549 @@ +# gettext.m4 serial 37 (gettext-0.14.4) +dnl Copyright (C) 1995-2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995-2000. +dnl Bruno Haible , 2000-2003. + +dnl Macro to add for using GNU gettext. + +dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). +dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The +dnl default (if it is not specified or empty) is 'no-libtool'. +dnl INTLSYMBOL should be 'external' for packages with no intl directory, +dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. +dnl If INTLSYMBOL is 'use-libtool', then a libtool library +dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, +dnl depending on --{enable,disable}-{shared,static} and on the presence of +dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library +dnl $(top_builddir)/intl/libintl.a will be created. +dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext +dnl implementations (in libc or libintl) without the ngettext() function +dnl will be ignored. If NEEDSYMBOL is specified and is +dnl 'need-formatstring-macros', then GNU gettext implementations that don't +dnl support the ISO C 99 formatstring macros will be ignored. +dnl INTLDIR is used to find the intl libraries. If empty, +dnl the value `$(top_builddir)/intl/' is used. +dnl +dnl The result of the configuration is one of three cases: +dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled +dnl and used. +dnl Catalog format: GNU --> install in $(datadir) +dnl Catalog extension: .mo after installation, .gmo in source tree +dnl 2) GNU gettext has been found in the system's C library. +dnl Catalog format: GNU --> install in $(datadir) +dnl Catalog extension: .mo after installation, .gmo in source tree +dnl 3) No internationalization, always use English msgid. +dnl Catalog format: none +dnl Catalog extension: none +dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. +dnl The use of .gmo is historical (it was needed to avoid overwriting the +dnl GNU format catalogs when building on a platform with an X/Open gettext), +dnl but we keep it in order not to force irrelevant filename changes on the +dnl maintainers. +dnl +AC_DEFUN([AM_GNU_GETTEXT], +[ + dnl Argument checking. + ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , + [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT +])])])])]) + ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , + [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT +])])])]) + define([gt_included_intl], ifelse([$1], [external], [no], [yes])) + define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) + + AC_REQUIRE([AM_PO_SUBDIRS])dnl + ifelse(gt_included_intl, yes, [ + AC_REQUIRE([AM_INTL_SUBDIR])dnl + ]) + + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + + dnl Sometimes libintl requires libiconv, so first search for libiconv. + dnl Ideally we would do this search only after the + dnl if test "$USE_NLS" = "yes"; then + dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then + dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT + dnl the configure script would need to contain the same shell code + dnl again, outside any 'if'. There are two solutions: + dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. + dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. + dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not + dnl documented, we avoid it. + ifelse(gt_included_intl, yes, , [ + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) + ]) + + dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. + gt_INTL_MACOSX + + dnl Set USE_NLS. + AM_NLS + + ifelse(gt_included_intl, yes, [ + BUILD_INCLUDED_LIBINTL=no + USE_INCLUDED_LIBINTL=no + ]) + LIBINTL= + LTLIBINTL= + POSUB= + + dnl If we use NLS figure out what method + if test "$USE_NLS" = "yes"; then + gt_use_preinstalled_gnugettext=no + ifelse(gt_included_intl, yes, [ + AC_MSG_CHECKING([whether included gettext is requested]) + AC_ARG_WITH(included-gettext, + [ --with-included-gettext use the GNU gettext library included here], + nls_cv_force_use_gnu_gettext=$withval, + nls_cv_force_use_gnu_gettext=no) + AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) + + nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" + if test "$nls_cv_force_use_gnu_gettext" != "yes"; then + ]) + dnl User does not insist on using GNU NLS library. Figure out what + dnl to use. If GNU gettext is available we use this. Else we have + dnl to fall back to GNU NLS library. + + dnl Add a version number to the cache macros. + define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) + define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) + define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) + + AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, + [AC_TRY_LINK([#include +]ifelse([$2], [need-formatstring-macros], +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) +#endif +changequote(,)dnl +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; +changequote([,])dnl +], [])[extern int _nl_msg_cat_cntr; +extern int *_nl_domain_bindings;], + [bindtextdomain ("", ""); +return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], + gt_cv_func_gnugettext_libc=yes, + gt_cv_func_gnugettext_libc=no)]) + + if test "$gt_cv_func_gnugettext_libc" != "yes"; then + dnl Sometimes libintl requires libiconv, so first search for libiconv. + ifelse(gt_included_intl, yes, , [ + AM_ICONV_LINK + ]) + dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL + dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) + dnl because that would add "-liconv" to LIBINTL and LTLIBINTL + dnl even if libiconv doesn't exist. + AC_LIB_LINKFLAGS_BODY([intl]) + AC_CACHE_CHECK([for GNU gettext in libintl], + gt_cv_func_gnugettext_libintl, + [gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCINTL" + gt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBINTL" + dnl Now see whether libintl exists and does not depend on libiconv. + AC_TRY_LINK([#include +]ifelse([$2], [need-formatstring-macros], +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) +#endif +changequote(,)dnl +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; +changequote([,])dnl +], [])[extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *);], + [bindtextdomain ("", ""); +return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], + gt_cv_func_gnugettext_libintl=yes, + gt_cv_func_gnugettext_libintl=no) + dnl Now see whether libintl exists and depends on libiconv. + if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then + LIBS="$LIBS $LIBICONV" + AC_TRY_LINK([#include +]ifelse([$2], [need-formatstring-macros], +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) +#endif +changequote(,)dnl +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; +changequote([,])dnl +], [])[extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *);], + [bindtextdomain ("", ""); +return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], + [LIBINTL="$LIBINTL $LIBICONV" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + gt_cv_func_gnugettext_libintl=yes + ]) + fi + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS"]) + fi + + dnl If an already present or preinstalled GNU gettext() is found, + dnl use it. But if this macro is used in GNU gettext, and GNU + dnl gettext is already preinstalled in libintl, we update this + dnl libintl. (Cf. the install rule in intl/Makefile.in.) + if test "$gt_cv_func_gnugettext_libc" = "yes" \ + || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ + && test "$PACKAGE" != gettext-runtime \ + && test "$PACKAGE" != gettext-tools; }; then + gt_use_preinstalled_gnugettext=yes + else + dnl Reset the values set by searching for libintl. + LIBINTL= + LTLIBINTL= + INCINTL= + fi + + ifelse(gt_included_intl, yes, [ + if test "$gt_use_preinstalled_gnugettext" != "yes"; then + dnl GNU gettext is not found in the C library. + dnl Fall back on included GNU gettext library. + nls_cv_use_gnu_gettext=yes + fi + fi + + if test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Mark actions used to generate GNU NLS library. + BUILD_INCLUDED_LIBINTL=yes + USE_INCLUDED_LIBINTL=yes + LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV" + LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV" + LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` + fi + + CATOBJEXT= + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Mark actions to use GNU gettext tools. + CATOBJEXT=.gmo + fi + ]) + + if test -n "$INTL_MACOSX_LIBS"; then + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Some extra flags are needed during linking. + LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" + LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" + fi + fi + + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + AC_DEFINE(ENABLE_NLS, 1, + [Define to 1 if translation of program messages to the user's native language + is requested.]) + else + USE_NLS=no + fi + fi + + AC_MSG_CHECKING([whether to use NLS]) + AC_MSG_RESULT([$USE_NLS]) + if test "$USE_NLS" = "yes"; then + AC_MSG_CHECKING([where the gettext function comes from]) + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if test "$gt_cv_func_gnugettext_libintl" = "yes"; then + gt_source="external libintl" + else + gt_source="libc" + fi + else + gt_source="included intl directory" + fi + AC_MSG_RESULT([$gt_source]) + fi + + if test "$USE_NLS" = "yes"; then + + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if test "$gt_cv_func_gnugettext_libintl" = "yes"; then + AC_MSG_CHECKING([how to link with libintl]) + AC_MSG_RESULT([$LIBINTL]) + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) + fi + + dnl For backward compatibility. Some packages may be using this. + AC_DEFINE(HAVE_GETTEXT, 1, + [Define if the GNU gettext() function is already present or preinstalled.]) + AC_DEFINE(HAVE_DCGETTEXT, 1, + [Define if the GNU dcgettext() function is already present or preinstalled.]) + fi + + dnl We need to process the po/ directory. + POSUB=po + fi + + ifelse(gt_included_intl, yes, [ + dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL + dnl to 'yes' because some of the testsuite requires it. + if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then + BUILD_INCLUDED_LIBINTL=yes + fi + + dnl Make all variables we use known to autoconf. + AC_SUBST(BUILD_INCLUDED_LIBINTL) + AC_SUBST(USE_INCLUDED_LIBINTL) + AC_SUBST(CATOBJEXT) + + dnl For backward compatibility. Some configure.ins may be using this. + nls_cv_header_intl= + nls_cv_header_libgt= + + dnl For backward compatibility. Some Makefiles may be using this. + DATADIRNAME=share + AC_SUBST(DATADIRNAME) + + dnl For backward compatibility. Some Makefiles may be using this. + INSTOBJEXT=.mo + AC_SUBST(INSTOBJEXT) + + dnl For backward compatibility. Some Makefiles may be using this. + GENCAT=gencat + AC_SUBST(GENCAT) + + dnl For backward compatibility. Some Makefiles may be using this. + INTLOBJS= + if test "$USE_INCLUDED_LIBINTL" = yes; then + INTLOBJS="\$(GETTOBJS)" + fi + AC_SUBST(INTLOBJS) + + dnl Enable libtool support if the surrounding package wishes it. + INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix + AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) + ]) + + dnl For backward compatibility. Some Makefiles may be using this. + INTLLIBS="$LIBINTL" + AC_SUBST(INTLLIBS) + + dnl Make all documented variables known to autoconf. + AC_SUBST(LIBINTL) + AC_SUBST(LTLIBINTL) + AC_SUBST(POSUB) +]) + + +dnl Checks for all prerequisites of the intl subdirectory, +dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, +dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. +AC_DEFUN([AM_INTL_SUBDIR], +[ + AC_REQUIRE([AC_PROG_INSTALL])dnl + AC_REQUIRE([AM_MKINSTALLDIRS])dnl + AC_REQUIRE([AC_PROG_CC])dnl + AC_REQUIRE([AC_CANONICAL_HOST])dnl + AC_REQUIRE([gt_GLIBC2])dnl + AC_REQUIRE([AC_PROG_RANLIB])dnl + AC_REQUIRE([AC_ISC_POSIX])dnl + AC_REQUIRE([AC_HEADER_STDC])dnl + AC_REQUIRE([AC_C_CONST])dnl + AC_REQUIRE([bh_C_SIGNED])dnl + AC_REQUIRE([AC_C_INLINE])dnl + AC_REQUIRE([AC_TYPE_OFF_T])dnl + AC_REQUIRE([AC_TYPE_SIZE_T])dnl + AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl + AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl + AC_REQUIRE([gt_TYPE_WCHAR_T])dnl + AC_REQUIRE([gt_TYPE_WINT_T])dnl + AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) + AC_REQUIRE([gl_AC_HEADER_STDINT_H]) + AC_REQUIRE([gt_TYPE_INTMAX_T]) + AC_REQUIRE([gt_PRINTF_POSIX]) + AC_REQUIRE([AC_FUNC_ALLOCA])dnl + AC_REQUIRE([AC_FUNC_MMAP])dnl + AC_REQUIRE([gl_GLIBC21])dnl + AC_REQUIRE([gt_INTDIV0])dnl + AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl + AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl + AC_REQUIRE([gt_INTTYPES_PRI])dnl + AC_REQUIRE([gl_XSIZE])dnl + AC_REQUIRE([gt_INTL_MACOSX])dnl + + AC_CHECK_TYPE([ptrdiff_t], , + [AC_DEFINE([ptrdiff_t], [long], + [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) + ]) + AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ +stdlib.h string.h unistd.h sys/param.h]) + AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \ +mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ +strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ +__fsetlocking]) + + dnl Use the _snprintf function only if it is declared (because on NetBSD it + dnl is defined as a weak alias of snprintf; we prefer to use the latter). + gt_CHECK_DECL(_snprintf, [#include ]) + gt_CHECK_DECL(_snwprintf, [#include ]) + + dnl Use the *_unlocked functions only if they are declared. + dnl (because some of them were defined without being declared in Solaris + dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built + dnl on Solaris 2.5.1 to run on Solaris 2.6). + dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. + gt_CHECK_DECL(feof_unlocked, [#include ]) + gt_CHECK_DECL(fgets_unlocked, [#include ]) + gt_CHECK_DECL(getc_unlocked, [#include ]) + + case $gt_cv_func_printf_posix in + *yes) HAVE_POSIX_PRINTF=1 ;; + *) HAVE_POSIX_PRINTF=0 ;; + esac + AC_SUBST([HAVE_POSIX_PRINTF]) + if test "$ac_cv_func_asprintf" = yes; then + HAVE_ASPRINTF=1 + else + HAVE_ASPRINTF=0 + fi + AC_SUBST([HAVE_ASPRINTF]) + if test "$ac_cv_func_snprintf" = yes; then + HAVE_SNPRINTF=1 + else + HAVE_SNPRINTF=0 + fi + AC_SUBST([HAVE_SNPRINTF]) + if test "$ac_cv_func_wprintf" = yes; then + HAVE_WPRINTF=1 + else + HAVE_WPRINTF=0 + fi + AC_SUBST([HAVE_WPRINTF]) + + AM_ICONV + AM_LANGINFO_CODESET + if test $ac_cv_header_locale_h = yes; then + gt_LC_MESSAGES + fi + + if test -n "$INTL_MACOSX_LIBS"; then + CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" + fi + + dnl intl/plural.c is generated from intl/plural.y. It requires bison, + dnl because plural.y uses bison specific features. It requires at least + dnl bison-1.26 because earlier versions generate a plural.c that doesn't + dnl compile. + dnl bison is only needed for the maintainer (who touches plural.y). But in + dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put + dnl the rule in general Makefile. Now, some people carelessly touch the + dnl files or have a broken "make" program, hence the plural.c rule will + dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not + dnl present or too old. + AC_CHECK_PROGS([INTLBISON], [bison]) + if test -z "$INTLBISON"; then + ac_verc_fail=yes + else + dnl Found it, now check the version. + AC_MSG_CHECKING([version of bison]) +changequote(<<,>>)dnl + ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` + case $ac_prog_version in + '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; + 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) +changequote([,])dnl + ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; + *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; + esac + AC_MSG_RESULT([$ac_prog_version]) + fi + if test $ac_verc_fail = yes; then + INTLBISON=: + fi +]) + + +dnl Checks for special options needed on MacOS X. +dnl Defines INTL_MACOSX_LIBS. +AC_DEFUN([gt_INTL_MACOSX], +[ + dnl Check for API introduced in MacOS X 10.2. + AC_CACHE_CHECK([for CFPreferencesCopyAppValue], + gt_cv_func_CFPreferencesCopyAppValue, + [gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" + gt_save_LIBS="$LIBS" + LIBS="$LIBS -framework CoreFoundation" + AC_TRY_LINK([#include ], + [CFPreferencesCopyAppValue(NULL, NULL)], + [gt_cv_func_CFPreferencesCopyAppValue=yes], + [gt_cv_func_CFPreferencesCopyAppValue=no]) + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS"]) + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then + AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, + [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) + fi + dnl Check for API introduced in MacOS X 10.3. + AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, + [gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" + gt_save_LIBS="$LIBS" + LIBS="$LIBS -framework CoreFoundation" + AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], + [gt_cv_func_CFLocaleCopyCurrent=yes], + [gt_cv_func_CFLocaleCopyCurrent=no]) + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS"]) + if test $gt_cv_func_CFLocaleCopyCurrent = yes; then + AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, + [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) + fi + INTL_MACOSX_LIBS= + if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + fi + AC_SUBST([INTL_MACOSX_LIBS]) +]) + + +dnl gt_CHECK_DECL(FUNC, INCLUDES) +dnl Check whether a function is declared. +AC_DEFUN([gt_CHECK_DECL], +[ + AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, + [AC_TRY_COMPILE([$2], [ +#ifndef $1 + char *p = (char *) $1; +#endif +], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) + if test $ac_cv_have_decl_$1 = yes; then + gt_value=1 + else + gt_value=0 + fi + AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], + [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) +]) + + +dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) +AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) diff --git a/m4/glibc2.m4 b/m4/glibc2.m4 new file mode 100644 index 0000000..e8f5bfe --- /dev/null +++ b/m4/glibc2.m4 @@ -0,0 +1,30 @@ +# glibc2.m4 serial 1 +dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Test for the GNU C Library, version 2.0 or newer. +# From Bruno Haible. + +AC_DEFUN([gt_GLIBC2], + [ + AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer, + ac_cv_gnu_library_2, + [AC_EGREP_CPP([Lucky GNU user], + [ +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ >= 2) + Lucky GNU user + #endif +#endif + ], + ac_cv_gnu_library_2=yes, + ac_cv_gnu_library_2=no) + ] + ) + AC_SUBST(GLIBC2) + GLIBC2="$ac_cv_gnu_library_2" + ] +) diff --git a/m4/glibc21.m4 b/m4/glibc21.m4 new file mode 100644 index 0000000..d95fd98 --- /dev/null +++ b/m4/glibc21.m4 @@ -0,0 +1,30 @@ +# glibc21.m4 serial 3 +dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Test for the GNU C Library, version 2.1 or newer. +# From Bruno Haible. + +AC_DEFUN([gl_GLIBC21], + [ + AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, + ac_cv_gnu_library_2_1, + [AC_EGREP_CPP([Lucky GNU user], + [ +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) + Lucky GNU user + #endif +#endif + ], + ac_cv_gnu_library_2_1=yes, + ac_cv_gnu_library_2_1=no) + ] + ) + AC_SUBST(GLIBC21) + GLIBC21="$ac_cv_gnu_library_2_1" + ] +) diff --git a/m4/iconv.m4 b/m4/iconv.m4 new file mode 100644 index 0000000..654c415 --- /dev/null +++ b/m4/iconv.m4 @@ -0,0 +1,101 @@ +# iconv.m4 serial AM4 (gettext-0.11.3) +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], +[ + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + + dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([iconv]) +]) + +AC_DEFUN([AM_ICONV_LINK], +[ + dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and + dnl those with the standalone portable GNU libiconv installed). + + dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV + dnl accordingly. + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) + + dnl Add $INCICONV to CPPFLAGS before performing the following checks, + dnl because if the user has installed libiconv and not disabled its use + dnl via --without-libiconv-prefix, he wants to use it. The first + dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. + am_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) + + AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ + am_cv_func_iconv="no, consider installing GNU libiconv" + am_cv_lib_iconv=no + AC_TRY_LINK([#include +#include ], + [iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd);], + am_cv_func_iconv=yes) + if test "$am_cv_func_iconv" != yes; then + am_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + AC_TRY_LINK([#include +#include ], + [iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd);], + am_cv_lib_iconv=yes + am_cv_func_iconv=yes) + LIBS="$am_save_LIBS" + fi + ]) + if test "$am_cv_func_iconv" = yes; then + AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) + fi + if test "$am_cv_lib_iconv" = yes; then + AC_MSG_CHECKING([how to link with libiconv]) + AC_MSG_RESULT([$LIBICONV]) + else + dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV + dnl either. + CPPFLAGS="$am_save_CPPFLAGS" + LIBICONV= + LTLIBICONV= + fi + AC_SUBST(LIBICONV) + AC_SUBST(LTLIBICONV) +]) + +AC_DEFUN([AM_ICONV], +[ + AM_ICONV_LINK + if test "$am_cv_func_iconv" = yes; then + AC_MSG_CHECKING([for iconv declaration]) + AC_CACHE_VAL(am_cv_proto_iconv, [ + AC_TRY_COMPILE([ +#include +#include +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(__cplusplus) +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); +#else +size_t iconv(); +#endif +], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") + am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) + am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` + AC_MSG_RESULT([$]{ac_t:- + }[$]am_cv_proto_iconv) + AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, + [Define as const if the declaration of iconv() needs const.]) + fi +]) diff --git a/m4/intdiv0.m4 b/m4/intdiv0.m4 new file mode 100644 index 0000000..b8d7817 --- /dev/null +++ b/m4/intdiv0.m4 @@ -0,0 +1,70 @@ +# intdiv0.m4 serial 1 (gettext-0.11.3) +dnl Copyright (C) 2002 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_DEFUN([gt_INTDIV0], +[ + AC_REQUIRE([AC_PROG_CC])dnl + AC_REQUIRE([AC_CANONICAL_HOST])dnl + + AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], + gt_cv_int_divbyzero_sigfpe, + [ + AC_TRY_RUN([ +#include +#include + +static void +#ifdef __cplusplus +sigfpe_handler (int sig) +#else +sigfpe_handler (sig) int sig; +#endif +{ + /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ + exit (sig != SIGFPE); +} + +int x = 1; +int y = 0; +int z; +int nan; + +int main () +{ + signal (SIGFPE, sigfpe_handler); +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) + signal (SIGTRAP, sigfpe_handler); +#endif +/* Linux/SPARC yields signal SIGILL. */ +#if defined (__sparc__) && defined (__linux__) + signal (SIGILL, sigfpe_handler); +#endif + + z = x / y; + nan = y / y; + exit (1); +} +], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, + [ + # Guess based on the CPU. + case "$host_cpu" in + alpha* | i[34567]86 | m68k | s390*) + gt_cv_int_divbyzero_sigfpe="guessing yes";; + *) + gt_cv_int_divbyzero_sigfpe="guessing no";; + esac + ]) + ]) + case "$gt_cv_int_divbyzero_sigfpe" in + *yes) value=1;; + *) value=0;; + esac + AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, + [Define if integer division by zero raises signal SIGFPE.]) +]) diff --git a/m4/intmax.m4 b/m4/intmax.m4 new file mode 100644 index 0000000..d99c999 --- /dev/null +++ b/m4/intmax.m4 @@ -0,0 +1,30 @@ +# intmax.m4 serial 2 (gettext-0.14.2) +dnl Copyright (C) 2002-2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. +dnl Test whether the system has the 'intmax_t' type, but don't attempt to +dnl find a replacement if it is lacking. + +AC_DEFUN([gt_TYPE_INTMAX_T], +[ + AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) + AC_REQUIRE([gl_AC_HEADER_STDINT_H]) + AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, + [AC_TRY_COMPILE([ +#include +#include +#if HAVE_STDINT_H_WITH_UINTMAX +#include +#endif +#if HAVE_INTTYPES_H_WITH_UINTMAX +#include +#endif +], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)]) + if test $gt_cv_c_intmax_t = yes; then + AC_DEFINE(HAVE_INTMAX_T, 1, + [Define if you have the 'intmax_t' type in or .]) + fi +]) diff --git a/m4/inttypes-pri.m4 b/m4/inttypes-pri.m4 new file mode 100644 index 0000000..4d56a9a --- /dev/null +++ b/m4/inttypes-pri.m4 @@ -0,0 +1,30 @@ +# inttypes-pri.m4 serial 1 (gettext-0.11.4) +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +# Define PRI_MACROS_BROKEN if exists and defines the PRI* +# macros to non-string values. This is the case on AIX 4.3.3. + +AC_DEFUN([gt_INTTYPES_PRI], +[ + AC_REQUIRE([gt_HEADER_INTTYPES_H]) + if test $gt_cv_header_inttypes_h = yes; then + AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], + gt_cv_inttypes_pri_broken, + [ + AC_TRY_COMPILE([#include +#ifdef PRId32 +char *p = PRId32; +#endif +], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) + ]) + fi + if test "$gt_cv_inttypes_pri_broken" = yes; then + AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, + [Define if exists and defines unusable PRI* macros.]) + fi +]) diff --git a/m4/inttypes.m4 b/m4/inttypes.m4 new file mode 100644 index 0000000..779bcea --- /dev/null +++ b/m4/inttypes.m4 @@ -0,0 +1,25 @@ +# inttypes.m4 serial 1 (gettext-0.11.4) +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paul Eggert. + +# Define HAVE_INTTYPES_H if exists and doesn't clash with +# . + +AC_DEFUN([gt_HEADER_INTTYPES_H], +[ + AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h, + [ + AC_TRY_COMPILE( + [#include +#include ], + [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no) + ]) + if test $gt_cv_header_inttypes_h = yes; then + AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, + [Define if exists and doesn't clash with .]) + fi +]) diff --git a/m4/inttypes_h.m4 b/m4/inttypes_h.m4 new file mode 100644 index 0000000..a5d075d --- /dev/null +++ b/m4/inttypes_h.m4 @@ -0,0 +1,26 @@ +# inttypes_h.m4 serial 6 +dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paul Eggert. + +# Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, +# doesn't clash with , and declares uintmax_t. + +AC_DEFUN([gl_AC_HEADER_INTTYPES_H], +[ + AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h, + [AC_TRY_COMPILE( + [#include +#include ], + [uintmax_t i = (uintmax_t) -1;], + gl_cv_header_inttypes_h=yes, + gl_cv_header_inttypes_h=no)]) + if test $gl_cv_header_inttypes_h = yes; then + AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, + [Define if exists, doesn't clash with , + and declares uintmax_t. ]) + fi +]) diff --git a/m4/lcmessage.m4 b/m4/lcmessage.m4 new file mode 100644 index 0000000..19aa77e --- /dev/null +++ b/m4/lcmessage.m4 @@ -0,0 +1,30 @@ +# lcmessage.m4 serial 4 (gettext-0.14.2) +dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995. + +# Check whether LC_MESSAGES is available in . + +AC_DEFUN([gt_LC_MESSAGES], +[ + AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES, + [AC_TRY_LINK([#include ], [return LC_MESSAGES], + gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)]) + if test $gt_cv_val_LC_MESSAGES = yes; then + AC_DEFINE(HAVE_LC_MESSAGES, 1, + [Define if your file defines LC_MESSAGES.]) + fi +]) diff --git a/m4/lib-ld.m4 b/m4/lib-ld.m4 new file mode 100644 index 0000000..96c4e2c --- /dev/null +++ b/m4/lib-ld.m4 @@ -0,0 +1,110 @@ +# lib-ld.m4 serial 3 (gettext-0.13) +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Subroutines of libtool.m4, +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision +dnl with libtool.m4. + +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. +AC_DEFUN([AC_LIB_PROG_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by GCC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]* | [A-Za-z]:[\\/]*)] + [re_direlt='/[^/][^/]*/\.\./'] + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(acl_cv_path_LD, +[if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break ;; + *) + test "$with_gnu_ld" != yes && break ;; + esac + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi]) +LD="$acl_cv_path_LD" +if test -n "$LD"; then + AC_MSG_RESULT($LD) +else + AC_MSG_RESULT(no) +fi +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) +AC_LIB_PROG_LD_GNU +]) diff --git a/m4/lib-link.m4 b/m4/lib-link.m4 new file mode 100644 index 0000000..ea0b0c4 --- /dev/null +++ b/m4/lib-link.m4 @@ -0,0 +1,553 @@ +# lib-link.m4 serial 6 (gettext-0.14.3) +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_PREREQ(2.50) + +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and +dnl augments the CPPFLAGS variable. +AC_DEFUN([AC_LIB_LINKFLAGS], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + define([Name],[translit([$1],[./-], [___])]) + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + ac_cv_lib[]Name[]_libs="$LIB[]NAME" + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" + ac_cv_lib[]Name[]_cppflags="$INC[]NAME" + ]) + LIB[]NAME="$ac_cv_lib[]Name[]_libs" + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" + INC[]NAME="$ac_cv_lib[]Name[]_cppflags" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the + dnl results of this search when this library appears as a dependency. + HAVE_LIB[]NAME=yes + undefine([Name]) + undefine([NAME]) +]) + +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) +dnl searches for libname and the libraries corresponding to explicit and +dnl implicit dependencies, together with the specified include files and +dnl the ability to compile and link the specified testcode. If found, it +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + define([Name],[translit([$1],[./-], [___])]) + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, + dnl because if the user has installed lib[]Name and not disabled its use + dnl via --without-lib[]Name-prefix, he wants to use it. + ac_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ + ac_save_LIBS="$LIBS" + LIBS="$LIBS $LIB[]NAME" + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) + LIBS="$ac_save_LIBS" + ]) + if test "$ac_cv_lib[]Name" = yes; then + HAVE_LIB[]NAME=yes + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) + AC_MSG_CHECKING([how to link with lib[]$1]) + AC_MSG_RESULT([$LIB[]NAME]) + else + HAVE_LIB[]NAME=no + dnl If $LIB[]NAME didn't lead to a usable library, we don't need + dnl $INC[]NAME either. + CPPFLAGS="$ac_save_CPPFLAGS" + LIB[]NAME= + LTLIB[]NAME= + fi + AC_SUBST([HAVE_LIB]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + undefine([Name]) + undefine([NAME]) +]) + +dnl Determine the platform dependent parameters needed to use rpath: +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, +dnl hardcode_direct, hardcode_minus_L. +AC_DEFUN([AC_LIB_RPATH], +[ + dnl Tell automake >= 1.10 to complain if config.rpath is missing. + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + ]) + wl="$acl_cv_wl" + libext="$acl_cv_libext" + shlibext="$acl_cv_shlibext" + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + hardcode_direct="$acl_cv_hardcode_direct" + hardcode_minus_L="$acl_cv_hardcode_minus_L" + dnl Determine whether the user wants rpath handling at all. + AC_ARG_ENABLE(rpath, + [ --disable-rpath do not hardcode runtime library paths], + :, enable_rpath=yes) +]) + +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. +AC_DEFUN([AC_LIB_LINKFLAGS_BODY], +[ + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib$1-prefix], +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib + --without-lib$1-prefix don't search for lib$1 in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi +]) + dnl Search the library and its dependencies in $additional_libdir and + dnl $LDFLAGS. Using breadth-first-seach. + LIB[]NAME= + LTLIB[]NAME= + INC[]NAME= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='$1 $2' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS + dnl or AC_LIB_HAVE_LINKFLAGS call. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" + else + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined + dnl that this library doesn't exist. So just drop it. + : + fi + else + dnl Search the library lib$name in $additional_libdir and $LDFLAGS + dnl and the already constructed $LIBNAME/$LTLIBNAME. + found_dir= + found_la= + found_so= + found_a= + if test $use_additional = yes; then + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then + found_dir="$additional_libdir" + found_so="$additional_libdir/lib$name.$shlibext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + else + if test -f "$additional_libdir/lib$name.$libext"; then + found_dir="$additional_libdir" + found_a="$additional_libdir/lib$name.$libext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then + found_dir="$dir" + found_so="$dir/lib$name.$shlibext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + else + if test -f "$dir/lib$name.$libext"; then + found_dir="$dir" + found_a="$dir/lib$name.$libext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + dnl Found the library. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + dnl Linking with a shared library. We attempt to hardcode its + dnl directory into the executable's runpath, unless it's the + dnl standard /usr/lib. + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then + dnl No hardcoding is needed. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + dnl The hardcoding into $LIBNAME is system dependent. + if test "$hardcode_direct" = yes; then + dnl Using DIR/libNAME.so during linking hardcodes DIR into the + dnl resulting binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + dnl Rely on "-L$found_dir". + dnl But don't add it if it's already contained in the LDFLAGS + dnl or the already constructed $LIBNAME + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" + fi + if test "$hardcode_minus_L" != no; then + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH + dnl here, because this doesn't fit in flags passed to the + dnl compiler. So give up. No hardcoding. This affects only + dnl very old systems. + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + dnl Linking with a static library. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" + else + dnl We shouldn't come here, but anyway it's good to have a + dnl fallback. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" + fi + fi + dnl Assume the include files are nearby. + additional_includedir= + case "$found_dir" in + */lib | */lib/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + dnl Potentially add $additional_includedir to $INCNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's /usr/local/include and we are using GCC on Linux, + dnl 3. if it's already present in $CPPFLAGS or the already + dnl constructed $INCNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INC[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $INCNAME. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + dnl Look for dependencies. + if test -n "$found_la"; then + dnl Read the .la file. It defines the variables + dnl dlname, library_names, old_library, dependency_libs, current, + dnl age, revision, installed, dlopen, dlpreopen, libdir. + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + dnl We use only dependency_libs. + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's /usr/local/lib and we are using GCC on Linux, + dnl 3. if it's already present in $LDFLAGS or the already + dnl constructed $LIBNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LIBNAME. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LTLIBNAME. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + dnl Handle this in the next round. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + dnl Handle this in the next round. Throw away the .la's + dnl directory; it is already contained in a preceding -L + dnl option. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + dnl Most likely an immediate library name. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" + ;; + esac + done + fi + else + dnl Didn't find the library; assume it is in the system directories + dnl known to the linker and runtime loader. (All the system + dnl directories known to the linker should also be known to the + dnl runtime loader, otherwise the system is severely misconfigured.) + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user must + dnl pass all path elements in one option. We can arrange that for a + dnl single library, but not when more than one $LIBNAMEs are used. + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" + done + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + else + dnl The -rpath options are cumulative. + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + dnl When using libtool, the option that works for both libraries and + dnl executables is -R. The -R options are cumulative. + for found_dir in $ltrpathdirs; do + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" + done + fi +]) + +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, +dnl unless already present in VAR. +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes +dnl contains two or three consecutive elements that belong together. +AC_DEFUN([AC_LIB_APPENDTOVAR], +[ + for element in [$2]; do + haveit= + for x in $[$1]; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + [$1]="${[$1]}${[$1]:+ }$element" + fi + done +]) diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4 new file mode 100644 index 0000000..0d895ca --- /dev/null +++ b/m4/lib-prefix.m4 @@ -0,0 +1,153 @@ +# lib-prefix.m4 serial 4 (gettext-0.14.2) +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't +dnl require excessive bracketing. +ifdef([AC_HELP_STRING], +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) + +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed +dnl to access previously installed libraries. The basic assumption is that +dnl a user will want packages to use other packages he previously installed +dnl with the same --prefix option. +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate +dnl libraries, but is otherwise very convenient. +AC_DEFUN([AC_LIB_PREFIX], +[ + AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib-prefix], +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib + --without-lib-prefix don't search for libraries in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi +]) + if test $use_additional = yes; then + dnl Potentially add $additional_includedir to $CPPFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's already present in $CPPFLAGS, + dnl 3. if it's /usr/local/include and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + for x in $CPPFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $CPPFLAGS. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" + fi + fi + fi + fi + dnl Potentially add $additional_libdir to $LDFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's already present in $LDFLAGS, + dnl 3. if it's /usr/local/lib and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + for x in $LDFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LDFLAGS. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" + fi + fi + fi + fi + fi +]) + +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, +dnl acl_final_exec_prefix, containing the values to which $prefix and +dnl $exec_prefix will expand at the end of the configure script. +AC_DEFUN([AC_LIB_PREPARE_PREFIX], +[ + dnl Unfortunately, prefix and exec_prefix get only finally determined + dnl at the end of configure. + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the +dnl variables prefix and exec_prefix bound to the values they will have +dnl at the end of the configure script. +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], +[ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + $1 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" +]) diff --git a/m4/longdouble.m4 b/m4/longdouble.m4 new file mode 100644 index 0000000..40cd7ce --- /dev/null +++ b/m4/longdouble.m4 @@ -0,0 +1,28 @@ +# longdouble.m4 serial 1 (gettext-0.12) +dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. +dnl Test whether the compiler supports the 'long double' type. +dnl Prerequisite: AC_PROG_CC + +AC_DEFUN([gt_TYPE_LONGDOUBLE], +[ + AC_CACHE_CHECK([for long double], gt_cv_c_long_double, + [if test "$GCC" = yes; then + gt_cv_c_long_double=yes + else + AC_TRY_COMPILE([ + /* The Stardent Vistra knows sizeof(long double), but does not support it. */ + long double foo = 0.0; + /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ + int array [2*(sizeof(long double) >= sizeof(double)) - 1]; + ], , + gt_cv_c_long_double=yes, gt_cv_c_long_double=no) + fi]) + if test $gt_cv_c_long_double = yes; then + AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.]) + fi +]) diff --git a/m4/longlong.m4 b/m4/longlong.m4 new file mode 100644 index 0000000..7b399e0 --- /dev/null +++ b/m4/longlong.m4 @@ -0,0 +1,23 @@ +# longlong.m4 serial 5 +dnl Copyright (C) 1999-2004 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paul Eggert. + +# Define HAVE_LONG_LONG if 'long long' works. + +AC_DEFUN([gl_AC_TYPE_LONG_LONG], +[ + AC_CACHE_CHECK([for long long], ac_cv_type_long_long, + [AC_TRY_LINK([long long ll = 1LL; int i = 63;], + [long long llmax = (long long) -1; + return ll << i | ll >> i | llmax / ll | llmax % ll;], + ac_cv_type_long_long=yes, + ac_cv_type_long_long=no)]) + if test $ac_cv_type_long_long = yes; then + AC_DEFINE(HAVE_LONG_LONG, 1, + [Define if you have the 'long long' type.]) + fi +]) diff --git a/m4/nls.m4 b/m4/nls.m4 new file mode 100644 index 0000000..2082c3b --- /dev/null +++ b/m4/nls.m4 @@ -0,0 +1,51 @@ +# nls.m4 serial 2 (gettext-0.14.3) +dnl Copyright (C) 1995-2003, 2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995-2000. +dnl Bruno Haible , 2000-2003. + +AC_PREREQ(2.50) + +AC_DEFUN([AM_NLS], +[ + AC_MSG_CHECKING([whether NLS is requested]) + dnl Default is enabled NLS + AC_ARG_ENABLE(nls, + [ --disable-nls do not use Native Language Support], + USE_NLS=$enableval, USE_NLS=yes) + AC_MSG_RESULT($USE_NLS) + AC_SUBST(USE_NLS) +]) + +AC_DEFUN([AM_MKINSTALLDIRS], +[ + dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing. + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])]) + dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly + dnl find the mkinstalldirs script in another subdir but $(top_srcdir). + dnl Try to locate it. + MKINSTALLDIRS= + if test -n "$ac_aux_dir"; then + case "$ac_aux_dir" in + /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; + *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; + esac + fi + if test -z "$MKINSTALLDIRS"; then + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" + fi + AC_SUBST(MKINSTALLDIRS) +]) diff --git a/m4/po.m4 b/m4/po.m4 new file mode 100644 index 0000000..f2795ee --- /dev/null +++ b/m4/po.m4 @@ -0,0 +1,429 @@ +# po.m4 serial 7 (gettext-0.14.3) +dnl Copyright (C) 1995-2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995-2000. +dnl Bruno Haible , 2000-2003. + +AC_PREREQ(2.50) + +dnl Checks for all prerequisites of the po subdirectory. +AC_DEFUN([AM_PO_SUBDIRS], +[ + AC_REQUIRE([AC_PROG_MAKE_SET])dnl + AC_REQUIRE([AC_PROG_INSTALL])dnl + AC_REQUIRE([AM_MKINSTALLDIRS])dnl + AC_REQUIRE([AM_NLS])dnl + + dnl Perform the following tests also if --disable-nls has been given, + dnl because they are needed for "make dist" to work. + + dnl Search for GNU msgfmt in the PATH. + dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. + dnl The second test excludes FreeBSD msgfmt. + AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, + [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && + (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], + :) + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) + + dnl Search for GNU xgettext 0.12 or newer in the PATH. + dnl The first test excludes Solaris xgettext and early GNU xgettext versions. + dnl The second test excludes FreeBSD xgettext. + AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, + [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && + (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], + :) + dnl Remove leftover from FreeBSD xgettext call. + rm -f messages.po + + dnl Search for GNU msgmerge 0.11 or newer in the PATH. + AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, + [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) + + dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. + dnl Test whether we really found GNU msgfmt. + if test "$GMSGFMT" != ":"; then + dnl If it is no GNU msgfmt we define it as : so that the + dnl Makefiles still can work. + if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && + (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + : ; + else + GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` + AC_MSG_RESULT( + [found $GMSGFMT program is not GNU msgfmt; ignore it]) + GMSGFMT=":" + fi + fi + + dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. + dnl Test whether we really found GNU xgettext. + if test "$XGETTEXT" != ":"; then + dnl If it is no GNU xgettext we define it as : so that the + dnl Makefiles still can work. + if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && + (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + : ; + else + AC_MSG_RESULT( + [found xgettext program is not GNU xgettext; ignore it]) + XGETTEXT=":" + fi + dnl Remove leftover from FreeBSD xgettext call. + rm -f messages.po + fi + + AC_OUTPUT_COMMANDS([ + for ac_file in $CONFIG_FILES; do + # Support "outfile[:infile[:infile...]]" + case "$ac_file" in + *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + esac + # PO directories have a Makefile.in generated from Makefile.in.in. + case "$ac_file" in */Makefile.in) + # Adjust a relative srcdir. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` + # In autoconf-2.13 it is called $ac_given_srcdir. + # In autoconf-2.50 it is called $srcdir. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" + case "$ac_given_srcdir" in + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; + /*) top_srcdir="$ac_given_srcdir" ;; + *) top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + # Treat a directory as a PO directory if and only if it has a + # POTFILES.in file. This allows packages to have multiple PO + # directories under different names or in different locations. + if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then + rm -f "$ac_dir/POTFILES" + test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" + cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" + POMAKEFILEDEPS="POTFILES.in" + # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend + # on $ac_dir but don't depend on user-specified configuration + # parameters. + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then + # The LINGUAS file contains the set of available languages. + if test -n "$OBSOLETE_ALL_LINGUAS"; then + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" + fi + ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` + # Hide the ALL_LINGUAS assigment from automake. + eval 'ALL_LINGUAS''=$ALL_LINGUAS_' + POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" + else + # The set of available languages was given in configure.in. + eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' + fi + # Compute POFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) + # Compute UPDATEPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) + # Compute DUMMYPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) + # Compute GMOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) + case "$ac_given_srcdir" in + .) srcdirpre= ;; + *) srcdirpre='$(srcdir)/' ;; + esac + POFILES= + UPDATEPOFILES= + DUMMYPOFILES= + GMOFILES= + for lang in $ALL_LINGUAS; do + POFILES="$POFILES $srcdirpre$lang.po" + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" + DUMMYPOFILES="$DUMMYPOFILES $lang.nop" + GMOFILES="$GMOFILES $srcdirpre$lang.gmo" + done + # CATALOGS depends on both $ac_dir and the user's LINGUAS + # environment variable. + INST_LINGUAS= + if test -n "$ALL_LINGUAS"; then + for presentlang in $ALL_LINGUAS; do + useit=no + if test "%UNSET%" != "$LINGUAS"; then + desiredlanguages="$LINGUAS" + else + desiredlanguages="$ALL_LINGUAS" + fi + for desiredlang in $desiredlanguages; do + # Use the presentlang catalog if desiredlang is + # a. equal to presentlang, or + # b. a variant of presentlang (because in this case, + # presentlang can be used as a fallback for messages + # which are not translated in the desiredlang catalog). + case "$desiredlang" in + "$presentlang"*) useit=yes;; + esac + done + if test $useit = yes; then + INST_LINGUAS="$INST_LINGUAS $presentlang" + fi + done + fi + CATALOGS= + if test -n "$INST_LINGUAS"; then + for lang in $INST_LINGUAS; do + CATALOGS="$CATALOGS $lang.gmo" + done + fi + test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" + sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" + for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do + if test -f "$f"; then + case "$f" in + *.orig | *.bak | *~) ;; + *) cat "$f" >> "$ac_dir/Makefile" ;; + esac + fi + done + fi + ;; + esac + done], + [# Capture the value of obsolete ALL_LINGUAS because we need it to compute + # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it + # from automake. + eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' + # Capture the value of LINGUAS because we need it to compute CATALOGS. + LINGUAS="${LINGUAS-%UNSET%}" + ]) +]) + +dnl Postprocesses a Makefile in a directory containing PO files. +AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], +[ + # When this code is run, in config.status, two variables have already been + # set: + # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, + # - LINGUAS is the value of the environment variable LINGUAS at configure + # time. + +changequote(,)dnl + # Adjust a relative srcdir. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` + # In autoconf-2.13 it is called $ac_given_srcdir. + # In autoconf-2.50 it is called $srcdir. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" + case "$ac_given_srcdir" in + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; + /*) top_srcdir="$ac_given_srcdir" ;; + *) top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + # Find a way to echo strings without interpreting backslash. + if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then + gt_echo='echo' + else + if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then + gt_echo='printf %s\n' + else + echo_func () { + cat < "$ac_file.tmp" + if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then + # Add dependencies that cannot be formulated as a simple suffix rule. + for lang in $ALL_LINGUAS; do + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` + cat >> "$ac_file.tmp" < /dev/null; then + # Add dependencies that cannot be formulated as a simple suffix rule. + for lang in $ALL_LINGUAS; do + frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` + cat >> "$ac_file.tmp" <> "$ac_file.tmp" < +#include +/* The string "%2$d %1$d", with dollar characters protected from the shell's + dollar expansion (possibly an autoconf bug). */ +static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; +static char buf[100]; +int main () +{ + sprintf (buf, format, 33, 55); + return (strcmp (buf, "55 33") != 0); +}], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no, + [ + AC_EGREP_CPP(notposix, [ +#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ + notposix +#endif + ], gt_cv_func_printf_posix="guessing no", + gt_cv_func_printf_posix="guessing yes") + ]) + ]) + case $gt_cv_func_printf_posix in + *yes) + AC_DEFINE(HAVE_POSIX_PRINTF, 1, + [Define if your printf() function supports format strings with positions.]) + ;; + esac +]) diff --git a/m4/progtest.m4 b/m4/progtest.m4 new file mode 100644 index 0000000..a56365c --- /dev/null +++ b/m4/progtest.m4 @@ -0,0 +1,92 @@ +# progtest.m4 serial 4 (gettext-0.14.2) +dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1996. + +AC_PREREQ(2.50) + +# Search path for a program which passes the given test. + +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) +AC_DEFUN([AM_PATH_PROG_WITH_TEST], +[ +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then + ac_executable_p="test -x" +else + ac_executable_p="test -f" +fi +rm -f conf$$.file + +# Extract the first word of "$2", so it can be a program name with args. +set dummy $2; ac_word=[$]2 +AC_MSG_CHECKING([for $ac_word]) +AC_CACHE_VAL(ac_cv_path_$1, +[case "[$]$1" in + [[\\/]]* | ?:[[\\/]]*) + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. + ;; + *) + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in ifelse([$5], , $PATH, [$5]); do + IFS="$ac_save_IFS" + test -z "$ac_dir" && ac_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then + echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD + if [$3]; then + ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" + break 2 + fi + fi + done + done + IFS="$ac_save_IFS" +dnl If no 4th arg is given, leave the cache variable unset, +dnl so AC_PATH_PROGS will keep looking. +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" +])dnl + ;; +esac])dnl +$1="$ac_cv_path_$1" +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then + AC_MSG_RESULT([$]$1) +else + AC_MSG_RESULT(no) +fi +AC_SUBST($1)dnl +]) diff --git a/m4/signed.m4 b/m4/signed.m4 new file mode 100644 index 0000000..048f593 --- /dev/null +++ b/m4/signed.m4 @@ -0,0 +1,17 @@ +# signed.m4 serial 1 (gettext-0.10.40) +dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_DEFUN([bh_C_SIGNED], +[ + AC_CACHE_CHECK([for signed], bh_cv_c_signed, + [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)]) + if test $bh_cv_c_signed = no; then + AC_DEFINE(signed, , + [Define to empty if the C compiler doesn't support this keyword.]) + fi +]) diff --git a/m4/size_max.m4 b/m4/size_max.m4 new file mode 100644 index 0000000..4fe81c7 --- /dev/null +++ b/m4/size_max.m4 @@ -0,0 +1,59 @@ +# size_max.m4 serial 2 +dnl Copyright (C) 2003 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_DEFUN([gl_SIZE_MAX], +[ + AC_CHECK_HEADERS(stdint.h) + dnl First test whether the system already has SIZE_MAX. + AC_MSG_CHECKING([for SIZE_MAX]) + result= + AC_EGREP_CPP([Found it], [ +#include +#if HAVE_STDINT_H +#include +#endif +#ifdef SIZE_MAX +Found it +#endif +], result=yes) + if test -z "$result"; then + dnl Define it ourselves. Here we assume that the type 'size_t' is not wider + dnl than the type 'unsigned long'. + dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr', + dnl which is guaranteed to work from LONG_MIN to LONG_MAX. + _AC_COMPUTE_INT([~(size_t)0 / 10], res_hi, + [#include ], result=?) + _AC_COMPUTE_INT([~(size_t)0 % 10], res_lo, + [#include ], result=?) + _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint, + [#include ], result=?) + if test "$fits_in_uint" = 1; then + dnl Even though SIZE_MAX fits in an unsigned int, it must be of type + dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. + AC_TRY_COMPILE([#include + extern size_t foo; + extern unsigned long foo; + ], [], fits_in_uint=0) + fi + if test -z "$result"; then + if test "$fits_in_uint" = 1; then + result="$res_hi$res_lo"U + else + result="$res_hi$res_lo"UL + fi + else + dnl Shouldn't happen, but who knows... + result='~(size_t)0' + fi + fi + AC_MSG_RESULT([$result]) + if test "$result" != yes; then + AC_DEFINE_UNQUOTED([SIZE_MAX], [$result], + [Define as the maximum value of type 'size_t', if the system doesn't define it.]) + fi +]) diff --git a/m4/stdint_h.m4 b/m4/stdint_h.m4 new file mode 100644 index 0000000..3355f35 --- /dev/null +++ b/m4/stdint_h.m4 @@ -0,0 +1,26 @@ +# stdint_h.m4 serial 5 +dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paul Eggert. + +# Define HAVE_STDINT_H_WITH_UINTMAX if exists, +# doesn't clash with , and declares uintmax_t. + +AC_DEFUN([gl_AC_HEADER_STDINT_H], +[ + AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h, + [AC_TRY_COMPILE( + [#include +#include ], + [uintmax_t i = (uintmax_t) -1;], + gl_cv_header_stdint_h=yes, + gl_cv_header_stdint_h=no)]) + if test $gl_cv_header_stdint_h = yes; then + AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, + [Define if exists, doesn't clash with , + and declares uintmax_t. ]) + fi +]) diff --git a/m4/uintmax_t.m4 b/m4/uintmax_t.m4 new file mode 100644 index 0000000..bf83ed7 --- /dev/null +++ b/m4/uintmax_t.m4 @@ -0,0 +1,30 @@ +# uintmax_t.m4 serial 9 +dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paul Eggert. + +AC_PREREQ(2.13) + +# Define uintmax_t to 'unsigned long' or 'unsigned long long' +# if it is not already defined in or . + +AC_DEFUN([gl_AC_TYPE_UINTMAX_T], +[ + AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) + AC_REQUIRE([gl_AC_HEADER_STDINT_H]) + if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then + AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG]) + test $ac_cv_type_unsigned_long_long = yes \ + && ac_type='unsigned long long' \ + || ac_type='unsigned long' + AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, + [Define to unsigned long or unsigned long long + if and don't define.]) + else + AC_DEFINE(HAVE_UINTMAX_T, 1, + [Define if you have the 'uintmax_t' type in or .]) + fi +]) diff --git a/m4/ulonglong.m4 b/m4/ulonglong.m4 new file mode 100644 index 0000000..dee10cc --- /dev/null +++ b/m4/ulonglong.m4 @@ -0,0 +1,23 @@ +# ulonglong.m4 serial 4 +dnl Copyright (C) 1999-2004 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paul Eggert. + +# Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works. + +AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG], +[ + AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, + [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;], + [unsigned long long ullmax = (unsigned long long) -1; + return ull << i | ull >> i | ullmax / ull | ullmax % ull;], + ac_cv_type_unsigned_long_long=yes, + ac_cv_type_unsigned_long_long=no)]) + if test $ac_cv_type_unsigned_long_long = yes; then + AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, + [Define if you have the 'unsigned long long' type.]) + fi +]) diff --git a/m4/wchar_t.m4 b/m4/wchar_t.m4 new file mode 100644 index 0000000..cde2129 --- /dev/null +++ b/m4/wchar_t.m4 @@ -0,0 +1,20 @@ +# wchar_t.m4 serial 1 (gettext-0.12) +dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. +dnl Test whether has the 'wchar_t' type. +dnl Prerequisite: AC_PROG_CC + +AC_DEFUN([gt_TYPE_WCHAR_T], +[ + AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t, + [AC_TRY_COMPILE([#include + wchar_t foo = (wchar_t)'\0';], , + gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)]) + if test $gt_cv_c_wchar_t = yes; then + AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.]) + fi +]) diff --git a/m4/wint_t.m4 b/m4/wint_t.m4 new file mode 100644 index 0000000..b8fff9c --- /dev/null +++ b/m4/wint_t.m4 @@ -0,0 +1,20 @@ +# wint_t.m4 serial 1 (gettext-0.12) +dnl Copyright (C) 2003 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. +dnl Test whether has the 'wint_t' type. +dnl Prerequisite: AC_PROG_CC + +AC_DEFUN([gt_TYPE_WINT_T], +[ + AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t, + [AC_TRY_COMPILE([#include + wint_t foo = (wchar_t)'\0';], , + gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)]) + if test $gt_cv_c_wint_t = yes; then + AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.]) + fi +]) diff --git a/m4/xsize.m4 b/m4/xsize.m4 new file mode 100644 index 0000000..85bb721 --- /dev/null +++ b/m4/xsize.m4 @@ -0,0 +1,13 @@ +# xsize.m4 serial 3 +dnl Copyright (C) 2003-2004 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_XSIZE], +[ + dnl Prerequisites of lib/xsize.h. + AC_REQUIRE([gl_SIZE_MAX]) + AC_REQUIRE([AC_C_INLINE]) + AC_CHECK_HEADERS(stdint.h) +]) diff --git a/missing b/missing new file mode 100755 index 0000000..894e786 --- /dev/null +++ b/missing @@ -0,0 +1,360 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. + +scriptversion=2005-06-08.21 + +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# Originally by Fran,cois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +run=: + +# In the cases where this matters, `missing' is being run in the +# srcdir already. +if test -f configure.ac; then + configure_ac=configure.ac +else + configure_ac=configure.in +fi + +msg="missing on your system" + +case "$1" in +--run) + # Try to run requested program, and just exit if it succeeds. + run= + shift + "$@" && exit 0 + # Exit code 63 means version mismatch. This often happens + # when the user try to use an ancient version of a tool on + # a file that requires a minimum version. In this case we + # we should proceed has if the program had been absent, or + # if --run hadn't been passed. + if test $? = 63; then + run=: + msg="probably too old" + fi + ;; + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an +error status if there is no known handling for PROGRAM. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + --run try to run the given command, and emulate it if it fails + +Supported PROGRAM values: + aclocal touch file \`aclocal.m4' + autoconf touch file \`configure' + autoheader touch file \`config.h.in' + automake touch all \`Makefile.in' files + bison create \`y.tab.[ch]', if possible, from existing .[ch] + flex create \`lex.yy.c', if possible, from existing .c + help2man touch the output file + lex create \`lex.yy.c', if possible, from existing .c + makeinfo touch the output file + tar try tar, gnutar, gtar, then tar without non-portable flags + yacc create \`y.tab.[ch]', if possible, from existing .[ch] + +Send bug reports to ." + exit $? + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing $scriptversion (GNU Automake)" + exit $? + ;; + + -*) + echo 1>&2 "$0: Unknown \`$1' option" + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 + ;; + +esac + +# Now exit if we have it, but it failed. Also exit now if we +# don't have it and --version was passed (most likely to detect +# the program). +case "$1" in + lex|yacc) + # Not GNU programs, they don't have --version. + ;; + + tar) + if test -n "$run"; then + echo 1>&2 "ERROR: \`tar' requires --run" + exit 1 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then + exit 1 + fi + ;; + + *) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then + # Could not run --version or --help. This is probably someone + # running `$TOOL --version' or `$TOOL --help' to check whether + # $TOOL exists and not knowing $TOOL uses missing. + exit 1 + fi + ;; +esac + +# If it does not exist, or fails to run (possibly an outdated version), +# try to emulate it. +case "$1" in + aclocal*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`acinclude.m4' or \`${configure_ac}'. You might want + to install the \`Automake' and \`Perl' packages. Grab them from + any GNU archive site." + touch aclocal.m4 + ;; + + autoconf) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`${configure_ac}'. You might want to install the + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU + archive site." + touch configure + ;; + + autoheader) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`acconfig.h' or \`${configure_ac}'. You might want + to install the \`Autoconf' and \`GNU m4' packages. Grab them + from any GNU archive site." + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` + test -z "$files" && files="config.h" + touch_files= + for f in $files; do + case "$f" in + *:*) touch_files="$touch_files "`echo "$f" | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; + *) touch_files="$touch_files $f.in";; + esac + done + touch $touch_files + ;; + + automake*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. + You might want to install the \`Automake' and \`Perl' packages. + Grab them from any GNU archive site." + find . -type f -name Makefile.am -print | + sed 's/\.am$/.in/' | + while read f; do touch "$f"; done + ;; + + autom4te) + echo 1>&2 "\ +WARNING: \`$1' is needed, but is $msg. + You might have modified some files without having the + proper tools for further handling them. + You can get \`$1' as part of \`Autoconf' from any GNU + archive site." + + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo "#! /bin/sh" + echo "# Created by GNU Automake missing as a replacement of" + echo "# $ $@" + echo "exit 0" + chmod +x $file + exit 1 + fi + ;; + + bison|yacc) + echo 1>&2 "\ +WARNING: \`$1' $msg. You should only need it if + you modified a \`.y' file. You may need the \`Bison' package + in order for those modifications to take effect. You can get + \`Bison' from any GNU archive site." + rm -f y.tab.c y.tab.h + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.y) + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if [ ! -f y.tab.h ]; then + echo >y.tab.h + fi + if [ ! -f y.tab.c ]; then + echo 'main() { return 0; }' >y.tab.c + fi + ;; + + lex|flex) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a \`.l' file. You may need the \`Flex' package + in order for those modifications to take effect. You can get + \`Flex' from any GNU archive site." + rm -f lex.yy.c + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.l) + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if [ ! -f lex.yy.c ]; then + echo 'main() { return 0; }' >lex.yy.c + fi + ;; + + help2man) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a dependency of a manual page. You may need the + \`Help2man' package in order for those modifications to take + effect. You can get \`Help2man' from any GNU archive site." + + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` + fi + if [ -f "$file" ]; then + touch $file + else + test -z "$file" || exec >$file + echo ".ab help2man is required to generate this page" + exit 1 + fi + ;; + + makeinfo) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a \`.texi' or \`.texinfo' file, or any other file + indirectly affecting the aspect of the manual. The spurious + call might also be the consequence of using a buggy \`make' (AIX, + DU, IRIX). You might want to install the \`Texinfo' package or + the \`GNU make' package. Grab either from any GNU archive site." + # The file to touch is that specified with -o ... + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + # ... or it is the one specified with @setfilename ... + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` + # ... or it is derived from the source name (dir/f.texi becomes f.info) + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info + fi + # If the file does not exist, the user really needs makeinfo; + # let's fail without touching anything. + test -f $file || exit 1 + touch $file + ;; + + tar) + shift + + # We have already tried tar in the generic part. + # Look for gnutar/gtar before invocation to avoid ugly error + # messages. + if (gnutar --version > /dev/null 2>&1); then + gnutar "$@" && exit 0 + fi + if (gtar --version > /dev/null 2>&1); then + gtar "$@" && exit 0 + fi + firstarg="$1" + if shift; then + case "$firstarg" in + *o*) + firstarg=`echo "$firstarg" | sed s/o//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + case "$firstarg" in + *h*) + firstarg=`echo "$firstarg" | sed s/h//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + fi + + echo 1>&2 "\ +WARNING: I can't seem to be able to run \`tar' with the given arguments. + You may want to install GNU tar or Free paxutils, or check the + command line arguments." + exit 1 + ;; + + *) + echo 1>&2 "\ +WARNING: \`$1' is needed, and is $msg. + You might have modified some files without having the + proper tools for further handling them. Check the \`README' file, + it often tells you about the needed prerequisites for installing + this package. You may also peek at any GNU archive site, in case + some other package would contain this missing \`$1' program." + exit 1 + ;; +esac + +exit 0 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/mkinstalldirs b/mkinstalldirs new file mode 100755 index 0000000..259dbfc --- /dev/null +++ b/mkinstalldirs @@ -0,0 +1,158 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy + +scriptversion=2005-06-29.22 + +# Original author: Noah Friedman +# Created: 1993-05-16 +# Public domain. +# +# This file is maintained in Automake, please report +# bugs to or send patches to +# . + +errstatus=0 +dirmode= + +usage="\ +Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... + +Create each directory DIR (with mode MODE, if specified), including all +leading file name components. + +Report bugs to ." + +# process command line arguments +while test $# -gt 0 ; do + case $1 in + -h | --help | --h*) # -h for help + echo "$usage" + exit $? + ;; + -m) # -m PERM arg + shift + test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } + dirmode=$1 + shift + ;; + --version) + echo "$0 $scriptversion" + exit $? + ;; + --) # stop option processing + shift + break + ;; + -*) # unknown option + echo "$usage" 1>&2 + exit 1 + ;; + *) # first non-opt arg + break + ;; + esac +done + +for file +do + if test -d "$file"; then + shift + else + break + fi +done + +case $# in + 0) exit 0 ;; +esac + +# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and +# mkdir -p a/c at the same time, both will detect that a is missing, +# one will create a, then the other will try to create a and die with +# a "File exists" error. This is a problem when calling mkinstalldirs +# from a parallel make. We use --version in the probe to restrict +# ourselves to GNU mkdir, which is thread-safe. +case $dirmode in + '') + if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then + echo "mkdir -p -- $*" + exec mkdir -p -- "$@" + else + # On NextStep and OpenStep, the `mkdir' command does not + # recognize any option. It will interpret all options as + # directories to create, and then abort because `.' already + # exists. + test -d ./-p && rmdir ./-p + test -d ./--version && rmdir ./--version + fi + ;; + *) + if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && + test ! -d ./--version; then + echo "mkdir -m $dirmode -p -- $*" + exec mkdir -m "$dirmode" -p -- "$@" + else + # Clean up after NextStep and OpenStep mkdir. + for d in ./-m ./-p ./--version "./$dirmode"; + do + test -d $d && rmdir $d + done + fi + ;; +esac + +for file +do + case $file in + /*) pathcomp=/ ;; + *) pathcomp= ;; + esac + oIFS=$IFS + IFS=/ + set fnord $file + shift + IFS=$oIFS + + for d + do + test "x$d" = x && continue + + pathcomp=$pathcomp$d + case $pathcomp in + -*) pathcomp=./$pathcomp ;; + esac + + if test ! -d "$pathcomp"; then + echo "mkdir $pathcomp" + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + else + if test ! -z "$dirmode"; then + echo "chmod $dirmode $pathcomp" + lasterr= + chmod "$dirmode" "$pathcomp" || lasterr=$? + + if test ! -z "$lasterr"; then + errstatus=$lasterr + fi + fi + fi + fi + + pathcomp=$pathcomp/ + done +done + +exit $errstatus + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/msggen.pl b/msggen.pl new file mode 100644 index 0000000..0ec3c48 --- /dev/null +++ b/msggen.pl @@ -0,0 +1,428 @@ +#! /usr/bin/perl +# Copyright (c) 1994 James Clark +# Copyright (c) 2000 Peter Nilsson +# See the file COPYING for copying permission. + +use POSIX; + +# Package and version. +$package = 'OpenSP'; +$version = '1.5.2'; +$package = $package; $version = $version; # be quiet, -w + +$prog = $0; +$prog =~ s@.*/@@; + +$gen_c = 0; + +undef $opt_l; +undef $opt_p; +undef $opt_t; +do 'getopts.pl'; +&Getopts('l:p:t:'); +$module = $opt_l; +$pot_file = $opt_p; + +if (defined($opt_t)) { + # don't try to read translations for English + $opt_t =~ /.*en.*/ || &read_po_translations($opt_t); +} + +$num = 0; + +foreach $def_file (@ARGV) { + +@tag_used = (); + +open(DEF, $def_file) || die "can't open \`$def_file': $!\n"; + +while () { + chop; + if (/^!cxx$/) { + $gen_c = 1; + next; + } + if (/^=/) { + if (!defined($opt_p)) { + $n = substr($_, 1); + &error("= directive must increase message num") if ($n < $num); + $num = $n; + } + next; + } + if (/^-/) { + # a deleted message + $num++; + next; + } + + next if /^[ ]*#/; + next if /^[ ]*$/; + @field = split('\+', $_, 5); + &error("too few fields") if $#field < 3; + if ($#field == 4 && $field[4] =~ /^%J/) { + $field[3] .= '+'; + $field[3] .= substr($field[4], 2); + $#field = 3; + } + if ($field[0] eq "") { + $type[$num] = ""; + $argc = 0; + } + else { + $field[0] =~ /^[IWQXE][0-9]$/ || &error("invalid first field");; + $type[$num] = substr($field[0], 0, 1); + $argc = int(substr($field[0], 1, 1)); + } + $nargs[$num] = $argc; + $field[1] =~ /^[a-zA-Z_][a-zA-Z0-9_]+$/ || &error("invalid tag"); + $tag[$num] = $field[1]; + &error("duplicate tag $field[1]") + if (!defined($opt_p) && defined($tag_used{$field[1]})); + $tag_used{$field[1]} = 1; + $field[2] =~ /^((ISO(\/IEC)? [0-9]+:[0-9]+ )?[A-Z]?[0-9]+(\.[0-9]+)*(p[0-9]+)?( (ISO(\/IEC)? [0-9]+:[0-9]+ )?[A-Z]?[0-9]+(\.[0-9]+)*(p[0-9]+)?)*)?$/ + || &error("invalid clauses field"); + # push @clauses, $field[2]; + $clauses[$num] = $field[2]; + if ($argc == 0) { + if ($field[0] ne "") { + $field[3] =~ /^([^%]|%%)*$/ || &error("invalid character after %"); + } + } + else { + $field[3] =~ /^([^%]|%[%1-$argc])*$/ || &error("invalid character after %"); + } + $auxloc[$num] = ($#field == 4 ? "L" : ""); + $message[$num] = $field[3]; + $num++; + if ($#field == 4) { + $message2[$num] = $field[4]; + $num++; + } +} + +close(DEF); + +if (!defined($opt_p)) { + +$file_base = $ARGV[0]; +$file_base =~ s/\.[^.]*$//; + +$class = $file_base; +$class =~ s|.*[\\/]||; + +# this is needed on Windows NT +chmod 0666, "$file_base.h"; +unlink("$file_base.h"); +open(OUT, ">$file_base.h"); +chmod 0444, "$file_base.h"; +select(OUT); + +print <$file_base.cxx"); + chmod 0444, "$file_base.cxx"; + select(OUT); + + print <$file_base.rc"); +chmod 0444, "$file_base.rc"; +select(OUT); + +print "STRINGTABLE\nBEGIN\n"; + +foreach $i (0 .. $#message) { + if (defined($message[$i])) { + $str = $message[$i]; + if ($translation{$str}) { + $str = $translation{$str}; + } + $str =~ s/"/""/g; + printf " %d, \"%s\"\n", $i, $str; + } + elsif (defined($message2[$i])) { + $str = $message2[$i]; + $str =~ s/"/""/g; + printf " %d, \"%s\"\n", $i, $str; + } +} + +print "END\n"; +close(OUT); + +} # !opt_p + +} # foreach def_file + +if (defined($opt_p)) { + + # this is needed for GNU gettext + chmod 0666, "$pot_file"; + unlink("$pot_file"); + open(OUT, ">$pot_file"); + chmod 0444, "$pot_file"; + select(OUT); + + $crdate = POSIX::strftime "%Y-%m-%d %H:%M+0000", gmtime; + print <, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\\n" +"POT-Creation-Date: $crdate\\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n" +"Last-Translator: FULL NAME \\n" +"Language-Team: LANGUAGE \\n" +"MIME-Version:: 1.0\\n" +"Content-Type: text/plain; charset=CHARSET\\n" +"Content-Transfer-Encoding: ENCODING\\n" + +END + + foreach $i (0 .. $#message) { + if (defined($message[$i]) && !defined($written{$message[$i]})) { + next if $message[$i] eq ""; + $written{$message[$i]} = 1; + $str = $message[$i]; + $str =~ s/"/\\"/g; + printf "msgid \"%s\"\nmsgstr \"\"\n\n", $str; + } + elsif (defined($message2[$i]) && ! defined($written{$message2[$i]})) { + $written{$message2[$i]} = 1; + $str = $message2[$i]; + $str =~ s/"/\\"/g; + printf "msgid \"%s\"\nmsgstr \"\"\n\n", $str; + } + } +} + +close(OUT); + +sub error { + die "$def_file:$.: $_[0]\n"; +} + +# Read a PO file with message translations. +# This doesn't accept every valid PO file, but it seems to work reasonably. +sub read_po_translations { + my $po_in = $_[0]; + open(PO_IN, "<$po_in") || die "Can't open file $po_in."; + my $id = ""; + my $str = ""; + my $catching_string = 0; + + while() { + if (/^\s*msgid/) { + if ($catching_string) { + &po_flush($id, $str); + $id = ""; + $str = ""; + } + $_ = $'; + $catching_string = 1; + } + elsif (/^\s*msgstr/) { + die "No msgid." if !$catching_string or $id; + $id = $str; + $str = ""; + $_ = $'; + } + + if ($catching_string) { + my $in_string = 0; + s/\s*//; + while ($_) { + if (s/^\"//) { + $in_string = !$in_string; + } + if ($in_string) { + if (s/^[^\"\\]+//) { + $str .= $&; + } + elsif (s/^\\([ntbrf\\\"])//) { + $str .= "\n" if $1 eq "n"; + $str .= "\t" if $1 eq "t"; + $str .= "\b" if $1 eq "b"; + $str .= "\r" if $1 eq "r"; + $str .= "\f" if $1 eq "f"; + $str .= "\\" if $1 eq "\\"; + $str .= "\"" if $1 eq "\""; + } + elsif (s/\\([0-9]+)//) { + $str .= chr(oct($1)); + } + elsif (s/\\[xX]([0-9a-fA-F]+)//) { + $str .= chr(hex($1)); + } + else { + die "Invalid control sequence." if /^\\/; + } + } + else { + s/\s*//; + last if /^[^"]/; + } + } + } + } + if ($catching_string) { + &po_flush($id, $str); + + } +} + +sub po_flush { + my $id = $_[0]; + my $str = $_[1]; + # We use a translation only if $id is non-empty (we don't include the + # PO file header) and if $str is non-empty (the message is translated). + if ($id && $str) { + $translation{$id} = $str; + } + $id = ""; + $str = ""; +} + + diff --git a/msggen.pl.in b/msggen.pl.in new file mode 100644 index 0000000..17c5b24 --- /dev/null +++ b/msggen.pl.in @@ -0,0 +1,428 @@ +#! @PERL@ +# Copyright (c) 1994 James Clark +# Copyright (c) 2000 Peter Nilsson +# See the file COPYING for copying permission. + +use POSIX; + +# Package and version. +$package = '@PACKAGE@'; +$version = '@VERSION@'; +$package = $package; $version = $version; # be quiet, -w + +$prog = $0; +$prog =~ s@.*/@@; + +$gen_c = 0; + +undef $opt_l; +undef $opt_p; +undef $opt_t; +do 'getopts.pl'; +&Getopts('l:p:t:'); +$module = $opt_l; +$pot_file = $opt_p; + +if (defined($opt_t)) { + # don't try to read translations for English + $opt_t =~ /.*en.*/ || &read_po_translations($opt_t); +} + +$num = 0; + +foreach $def_file (@ARGV) { + +@tag_used = (); + +open(DEF, $def_file) || die "can't open \`$def_file': $!\n"; + +while () { + chop; + if (/^!cxx$/) { + $gen_c = 1; + next; + } + if (/^=/) { + if (!defined($opt_p)) { + $n = substr($_, 1); + &error("= directive must increase message num") if ($n < $num); + $num = $n; + } + next; + } + if (/^-/) { + # a deleted message + $num++; + next; + } + + next if /^[ ]*#/; + next if /^[ ]*$/; + @field = split('\+', $_, 5); + &error("too few fields") if $#field < 3; + if ($#field == 4 && $field[4] =~ /^%J/) { + $field[3] .= '+'; + $field[3] .= substr($field[4], 2); + $#field = 3; + } + if ($field[0] eq "") { + $type[$num] = ""; + $argc = 0; + } + else { + $field[0] =~ /^[IWQXE][0-9]$/ || &error("invalid first field");; + $type[$num] = substr($field[0], 0, 1); + $argc = int(substr($field[0], 1, 1)); + } + $nargs[$num] = $argc; + $field[1] =~ /^[a-zA-Z_][a-zA-Z0-9_]+$/ || &error("invalid tag"); + $tag[$num] = $field[1]; + &error("duplicate tag $field[1]") + if (!defined($opt_p) && defined($tag_used{$field[1]})); + $tag_used{$field[1]} = 1; + $field[2] =~ /^((ISO(\/IEC)? [0-9]+:[0-9]+ )?[A-Z]?[0-9]+(\.[0-9]+)*(p[0-9]+)?( (ISO(\/IEC)? [0-9]+:[0-9]+ )?[A-Z]?[0-9]+(\.[0-9]+)*(p[0-9]+)?)*)?$/ + || &error("invalid clauses field"); + # push @clauses, $field[2]; + $clauses[$num] = $field[2]; + if ($argc == 0) { + if ($field[0] ne "") { + $field[3] =~ /^([^%]|%%)*$/ || &error("invalid character after %"); + } + } + else { + $field[3] =~ /^([^%]|%[%1-$argc])*$/ || &error("invalid character after %"); + } + $auxloc[$num] = ($#field == 4 ? "L" : ""); + $message[$num] = $field[3]; + $num++; + if ($#field == 4) { + $message2[$num] = $field[4]; + $num++; + } +} + +close(DEF); + +if (!defined($opt_p)) { + +$file_base = $ARGV[0]; +$file_base =~ s/\.[^.]*$//; + +$class = $file_base; +$class =~ s|.*[\\/]||; + +# this is needed on Windows NT +chmod 0666, "$file_base.h"; +unlink("$file_base.h"); +open(OUT, ">$file_base.h"); +chmod 0444, "$file_base.h"; +select(OUT); + +print <$file_base.cxx"); + chmod 0444, "$file_base.cxx"; + select(OUT); + + print <$file_base.rc"); +chmod 0444, "$file_base.rc"; +select(OUT); + +print "STRINGTABLE\nBEGIN\n"; + +foreach $i (0 .. $#message) { + if (defined($message[$i])) { + $str = $message[$i]; + if ($translation{$str}) { + $str = $translation{$str}; + } + $str =~ s/"/""/g; + printf " %d, \"%s\"\n", $i, $str; + } + elsif (defined($message2[$i])) { + $str = $message2[$i]; + $str =~ s/"/""/g; + printf " %d, \"%s\"\n", $i, $str; + } +} + +print "END\n"; +close(OUT); + +} # !opt_p + +} # foreach def_file + +if (defined($opt_p)) { + + # this is needed for GNU gettext + chmod 0666, "$pot_file"; + unlink("$pot_file"); + open(OUT, ">$pot_file"); + chmod 0444, "$pot_file"; + select(OUT); + + $crdate = POSIX::strftime "%Y-%m-%d %H:%M+0000", gmtime; + print <, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\\n" +"POT-Creation-Date: $crdate\\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n" +"Last-Translator: FULL NAME \\n" +"Language-Team: LANGUAGE \\n" +"MIME-Version:: 1.0\\n" +"Content-Type: text/plain; charset=CHARSET\\n" +"Content-Transfer-Encoding: ENCODING\\n" + +END + + foreach $i (0 .. $#message) { + if (defined($message[$i]) && !defined($written{$message[$i]})) { + next if $message[$i] eq ""; + $written{$message[$i]} = 1; + $str = $message[$i]; + $str =~ s/"/\\"/g; + printf "msgid \"%s\"\nmsgstr \"\"\n\n", $str; + } + elsif (defined($message2[$i]) && ! defined($written{$message2[$i]})) { + $written{$message2[$i]} = 1; + $str = $message2[$i]; + $str =~ s/"/\\"/g; + printf "msgid \"%s\"\nmsgstr \"\"\n\n", $str; + } + } +} + +close(OUT); + +sub error { + die "$def_file:$.: $_[0]\n"; +} + +# Read a PO file with message translations. +# This doesn't accept every valid PO file, but it seems to work reasonably. +sub read_po_translations { + my $po_in = $_[0]; + open(PO_IN, "<$po_in") || die "Can't open file $po_in."; + my $id = ""; + my $str = ""; + my $catching_string = 0; + + while() { + if (/^\s*msgid/) { + if ($catching_string) { + &po_flush($id, $str); + $id = ""; + $str = ""; + } + $_ = $'; + $catching_string = 1; + } + elsif (/^\s*msgstr/) { + die "No msgid." if !$catching_string or $id; + $id = $str; + $str = ""; + $_ = $'; + } + + if ($catching_string) { + my $in_string = 0; + s/\s*//; + while ($_) { + if (s/^\"//) { + $in_string = !$in_string; + } + if ($in_string) { + if (s/^[^\"\\]+//) { + $str .= $&; + } + elsif (s/^\\([ntbrf\\\"])//) { + $str .= "\n" if $1 eq "n"; + $str .= "\t" if $1 eq "t"; + $str .= "\b" if $1 eq "b"; + $str .= "\r" if $1 eq "r"; + $str .= "\f" if $1 eq "f"; + $str .= "\\" if $1 eq "\\"; + $str .= "\"" if $1 eq "\""; + } + elsif (s/\\([0-9]+)//) { + $str .= chr(oct($1)); + } + elsif (s/\\[xX]([0-9a-fA-F]+)//) { + $str .= chr(hex($1)); + } + else { + die "Invalid control sequence." if /^\\/; + } + } + else { + s/\s*//; + last if /^[^"]/; + } + } + } + } + if ($catching_string) { + &po_flush($id, $str); + + } +} + +sub po_flush { + my $id = $_[0]; + my $str = $_[1]; + # We use a translation only if $id is non-empty (we don't include the + # PO file header) and if $str is non-empty (the message is translated). + if ($id && $str) { + $translation{$id} = $str; + } + $id = ""; + $str = ""; +} + + diff --git a/nsgmls/.cvsignore b/nsgmls/.cvsignore new file mode 100644 index 0000000..b47c323 --- /dev/null +++ b/nsgmls/.cvsignore @@ -0,0 +1,11 @@ +Makefile +Makefile.in +.libs +.deps +*.la +*.lo +*Messages.h +*Messages.rc +*Messages.cxx +*_inst.cxx +onsgmls diff --git a/nsgmls/Makefile.am b/nsgmls/Makefile.am new file mode 100644 index 0000000..0ef42ed --- /dev/null +++ b/nsgmls/Makefile.am @@ -0,0 +1,30 @@ +## Process this file with automake to produce Makefile.in + +bin_PROGRAMS = onsgmls + +onsgmls_SOURCES = nsgmls.cxx SgmlsEventHandler.cxx SgmlsEventHandler.h \ + RastEventHandler.cxx RastEventHandler.h StringSet.cxx StringSet.h \ + nsgmls_inst.cxx NsgmlsMessages.h RastEventHandlerMessages.h nsgmls.h + +EXTRA_DIST = nsgmls_inst.m4 NsgmlsMessages.msg NsgmlsMessages.rc \ + RastEventHandlerMessages.msg RastEventHandlerMessages.rc \ + nsgmls.rc nsgmls.dsp .cvsignore + +onsgmls_LDADD = $(top_builddir)/lib/libosp.la $(LTLIBINTL) + +INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/generic + +BUILT_SOURCES = nsgmls_inst.cxx NsgmlsMessages.h NsgmlsMessages.rc \ + RastEventHandlerMessages.h RastEventHandlerMessages.rc + +MAINTAINERCLEANFILES = Makefile.in + +MSGGENFLAGS = -l appModule + +SUFFIXES = .msg .m4 .rc + +.m4.cxx: + $(PERL) $(top_srcdir)/instmac.pl $< >$@ + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< diff --git a/nsgmls/Makefile.in b/nsgmls/Makefile.in new file mode 100644 index 0000000..962772f --- /dev/null +++ b/nsgmls/Makefile.in @@ -0,0 +1,545 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = onsgmls$(EXEEXT) +subdir = nsgmls +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +PROGRAMS = $(bin_PROGRAMS) +am_onsgmls_OBJECTS = nsgmls.$(OBJEXT) SgmlsEventHandler.$(OBJEXT) \ + RastEventHandler.$(OBJEXT) StringSet.$(OBJEXT) \ + nsgmls_inst.$(OBJEXT) +onsgmls_OBJECTS = $(am_onsgmls_OBJECTS) +am__DEPENDENCIES_1 = +onsgmls_DEPENDENCIES = $(top_builddir)/lib/libosp.la \ + $(am__DEPENDENCIES_1) +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(onsgmls_SOURCES) +DIST_SOURCES = $(onsgmls_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +onsgmls_SOURCES = nsgmls.cxx SgmlsEventHandler.cxx SgmlsEventHandler.h \ + RastEventHandler.cxx RastEventHandler.h StringSet.cxx StringSet.h \ + nsgmls_inst.cxx NsgmlsMessages.h RastEventHandlerMessages.h nsgmls.h + +EXTRA_DIST = nsgmls_inst.m4 NsgmlsMessages.msg NsgmlsMessages.rc \ + RastEventHandlerMessages.msg RastEventHandlerMessages.rc \ + nsgmls.rc nsgmls.dsp .cvsignore + +onsgmls_LDADD = $(top_builddir)/lib/libosp.la $(LTLIBINTL) +INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/generic +BUILT_SOURCES = nsgmls_inst.cxx NsgmlsMessages.h NsgmlsMessages.rc \ + RastEventHandlerMessages.h RastEventHandlerMessages.rc + +MAINTAINERCLEANFILES = Makefile.in +MSGGENFLAGS = -l appModule +SUFFIXES = .msg .m4 .rc +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .msg .m4 .rc .cxx .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu nsgmls/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu nsgmls/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + || test -f $$p1 \ + ; then \ + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ + else :; fi; \ + done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ + done + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done +onsgmls$(EXEEXT): $(onsgmls_OBJECTS) $(onsgmls_DEPENDENCIES) + @rm -f onsgmls$(EXEEXT) + $(CXXLINK) $(onsgmls_LDFLAGS) $(onsgmls_OBJECTS) $(onsgmls_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/RastEventHandler.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SgmlsEventHandler.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/StringSet.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nsgmls.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nsgmls_inst.Po@am__quote@ + +.cxx.o: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< + +.cxx.obj: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cxx.lo: +@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-libtool distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-exec-am: install-binPROGRAMS + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS uninstall-info-am + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool ctags distclean distclean-compile \ + distclean-generic distclean-libtool distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-binPROGRAMS uninstall-info-am + + +.m4.cxx: + $(PERL) $(top_srcdir)/instmac.pl $< >$@ + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/nsgmls/NsgmlsMessages.h b/nsgmls/NsgmlsMessages.h new file mode 100644 index 0000000..75be1d4 --- /dev/null +++ b/nsgmls/NsgmlsMessages.h @@ -0,0 +1,229 @@ +// This file was automatically generated from NsgmlsMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct NsgmlsMessages { + // 0 + static const MessageType1 unknownOutputOption; + // 1 + static const MessageType1 BHelp; + // 2 + static const MessageType1 oHelp; + // 3 + static const MessageType1 pHelp; + // 4 + static const MessageType1 sHelp; + // 5 + static const MessageType1 tHelp; + // 6 + static const MessageType1 dHelp; + // 7 + static const MessageType1 lHelp; + // 8 + static const MessageType1 mHelp; + // 9 + static const MessageType1 rHelp; + // 10 + static const MessageType1 uHelp; + // 11 + static const MessageType1 info1; + // 12 + static const MessageType1 info2; + // 13 + static const MessageType1 info3; + // 14 + static const MessageType1 info4; + // 15 + static const MessageType1 info5; + // 16 + static const MessageType1 info6; + // 17 + static const MessageType1 info7; + // 18 + static const MessageType1 info8; + // 19 + static const MessageFragment file; + // 20 + static const MessageFragment option; + // 21 + static const MessageFragment sysid; +}; +const MessageType1 NsgmlsMessages::unknownOutputOption( +MessageType::error, +&appModule, +0 +#ifndef SP_NO_MESSAGE_TEXT +,"unknown output option %1" +#endif +); +const MessageType1 NsgmlsMessages::BHelp( +MessageType::info, +&appModule, +1 +#ifndef SP_NO_MESSAGE_TEXT +,"Enable batch mode." +#endif +); +const MessageType1 NsgmlsMessages::oHelp( +MessageType::info, +&appModule, +2 +#ifndef SP_NO_MESSAGE_TEXT +,"Produce output according to %1." +#endif +); +const MessageType1 NsgmlsMessages::pHelp( +MessageType::info, +&appModule, +3 +#ifndef SP_NO_MESSAGE_TEXT +,"Stop after the document prolog." +#endif +); +const MessageType1 NsgmlsMessages::sHelp( +MessageType::info, +&appModule, +4 +#ifndef SP_NO_MESSAGE_TEXT +,"Suppress output." +#endif +); +const MessageType1 NsgmlsMessages::tHelp( +MessageType::info, +&appModule, +5 +#ifndef SP_NO_MESSAGE_TEXT +,"Send RAST output to file %1." +#endif +); +const MessageType1 NsgmlsMessages::dHelp( +MessageType::info, +&appModule, +6 +#ifndef SP_NO_MESSAGE_TEXT +,"Same as -wduplicate." +#endif +); +const MessageType1 NsgmlsMessages::lHelp( +MessageType::info, +&appModule, +7 +#ifndef SP_NO_MESSAGE_TEXT +,"Same as -oline." +#endif +); +const MessageType1 NsgmlsMessages::mHelp( +MessageType::info, +&appModule, +8 +#ifndef SP_NO_MESSAGE_TEXT +,"Same as -c." +#endif +); +const MessageType1 NsgmlsMessages::rHelp( +MessageType::info, +&appModule, +9 +#ifndef SP_NO_MESSAGE_TEXT +,"Same as -wdefault." +#endif +); +const MessageType1 NsgmlsMessages::uHelp( +MessageType::info, +&appModule, +10 +#ifndef SP_NO_MESSAGE_TEXT +,"Same as -wundef." +#endif +); +const MessageType1 NsgmlsMessages::info1( +MessageType::info, +&appModule, +11 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 parses and validates the SGML document whose document entity is" +#endif +); +const MessageType1 NsgmlsMessages::info2( +MessageType::info, +&appModule, +12 +#ifndef SP_NO_MESSAGE_TEXT +,"specified by the system identifiers SYSID... and prints on the standard" +#endif +); +const MessageType1 NsgmlsMessages::info3( +MessageType::info, +&appModule, +13 +#ifndef SP_NO_MESSAGE_TEXT +,"output a simple text representation of its Element Structure Information Set." +#endif +); +const MessageType1 NsgmlsMessages::info4( +MessageType::info, +&appModule, +14 +#ifndef SP_NO_MESSAGE_TEXT +,"If more than one system identifier is specified, then the corresponding" +#endif +); +const MessageType1 NsgmlsMessages::info5( +MessageType::info, +&appModule, +15 +#ifndef SP_NO_MESSAGE_TEXT +,"entities will be concatenated to form the document entity. If no system" +#endif +); +const MessageType1 NsgmlsMessages::info6( +MessageType::info, +&appModule, +16 +#ifndef SP_NO_MESSAGE_TEXT +,"identifiers are specified, then %1 will read the document entity from" +#endif +); +const MessageType1 NsgmlsMessages::info7( +MessageType::info, +&appModule, +17 +#ifndef SP_NO_MESSAGE_TEXT +,"the standard input. A command line system identifier of - can be used" +#endif +); +const MessageType1 NsgmlsMessages::info8( +MessageType::info, +&appModule, +18 +#ifndef SP_NO_MESSAGE_TEXT +,"to refer to the standard input." +#endif +); +const MessageFragment NsgmlsMessages::file( +&appModule, +19 +#ifndef SP_NO_MESSAGE_TEXT +,"FILE" +#endif +); +const MessageFragment NsgmlsMessages::option( +&appModule, +20 +#ifndef SP_NO_MESSAGE_TEXT +,"OPTION" +#endif +); +const MessageFragment NsgmlsMessages::sysid( +&appModule, +21 +#ifndef SP_NO_MESSAGE_TEXT +,"SYSID" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/nsgmls/NsgmlsMessages.msg b/nsgmls/NsgmlsMessages.msg new file mode 100644 index 0000000..e477390 --- /dev/null +++ b/nsgmls/NsgmlsMessages.msg @@ -0,0 +1,27 @@ +# Copyright (c) 1994, 1995 James Clark +# See the file COPYING for copying permission. + +# nsgmls message definitions + +E1+unknownOutputOption++unknown output option %1 +I1+BHelp++Enable batch mode. +I1+oHelp++Produce output according to %1. +I1+pHelp++Stop after the document prolog. +I1+sHelp++Suppress output. +I1+tHelp++Send RAST output to file %1. +I1+dHelp++Same as -wduplicate. +I1+lHelp++Same as -oline. +I1+mHelp++Same as -c. +I1+rHelp++Same as -wdefault. +I1+uHelp++Same as -wundef. +I1+info1++%1 parses and validates the SGML document whose document entity is +I1+info2++specified by the system identifiers SYSID... and prints on the standard +I1+info3++output a simple text representation of its Element Structure Information Set. +I1+info4++If more than one system identifier is specified, then the corresponding +I1+info5++entities will be concatenated to form the document entity. If no system +I1+info6++identifiers are specified, then %1 will read the document entity from +I1+info7++the standard input. A command line system identifier of - can be used +I1+info8++to refer to the standard input. ++file++FILE ++option++OPTION ++sysid++SYSID diff --git a/nsgmls/NsgmlsMessages.rc b/nsgmls/NsgmlsMessages.rc new file mode 100644 index 0000000..06013ab --- /dev/null +++ b/nsgmls/NsgmlsMessages.rc @@ -0,0 +1,25 @@ +STRINGTABLE +BEGIN + 0, "unknown output option %1" + 1, "Enable batch mode." + 2, "Produce output according to %1." + 3, "Stop after the document prolog." + 4, "Suppress output." + 5, "Send RAST output to file %1." + 6, "Same as -wduplicate." + 7, "Same as -oline." + 8, "Same as -c." + 9, "Same as -wdefault." + 10, "Same as -wundef." + 11, "%1 parses and validates the SGML document whose document entity is" + 12, "specified by the system identifiers SYSID... and prints on the standard" + 13, "output a simple text representation of its Element Structure Information Set." + 14, "If more than one system identifier is specified, then the corresponding" + 15, "entities will be concatenated to form the document entity. If no system" + 16, "identifiers are specified, then %1 will read the document entity from" + 17, "the standard input. A command line system identifier of - can be used" + 18, "to refer to the standard input." + 19, "FILE" + 20, "OPTION" + 21, "SYSID" +END diff --git a/nsgmls/RastEventHandler.cxx b/nsgmls/RastEventHandler.cxx new file mode 100644 index 0000000..4d9c5e4 --- /dev/null +++ b/nsgmls/RastEventHandler.cxx @@ -0,0 +1,911 @@ +// Copyright (c) 1994,1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "config.h" +#include "RastEventHandler.h" +#include "SgmlParser.h" +#include "ParserOptions.h" +#include "Entity.h" +#include "Notation.h" +#include "Attribute.h" +#include "Vector.h" +#include "Vector.h" +#include "MessageArg.h" + +#include "RastEventHandlerMessages.h" + +#include +#include + +// This is based on ISO/IEC 13673, Intermediate Editor's Draft, 1994/8/29, +// together with editing instructions in ISO/IEC JTC1/SC18/WG8 N1777. + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const OutputCharStream::Newline nl = OutputCharStream::newline; + +class EventHandlerMessenger : public Messenger { +public: + EventHandlerMessenger(EventHandler *eh) : eh_(eh) { } + void dispatchMessage(const Message &message) { + eh_->message(new MessageEvent(message)); + } + void dispatchMessage(Message &message) { + eh_->message(new MessageEvent(message)); + } +private: + EventHandler *eh_; +}; + +#if 0 +const +#endif +RastPrintable RastEventHandler::printable; + +RastPrintable::RastPrintable() +{ + static const char s[] = + " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; + size_t i; + for (i = 0; i < sizeof(v_); i++) + v_[i] = 0; + for (i = 0; s[i] != '\0'; i++) + v_[(unsigned char)s[i]] = 32 + i; +} + +// inline +void RastEventHandler::flushLine(LineType type) +{ + if (lineLength_ > 0) { + os() << char(type) << nl; + lineLength_ = 0; + } +} + +RastSubdocState::RastSubdocState() +{ + init(0, 0); +} + +RastSubdocState::RastSubdocState(SgmlParser *parser, RastEventHandler *rast) +{ + init(parser, rast); +} + +void RastSubdocState::init(SgmlParser *parser, RastEventHandler *rast) +{ + parser_ = parser; + hadActiveLpdOrDtd_ = 0; + activeLinkTypes_.clear(); + hadDocumentElement_ = 0; + linkProcess_.clear(); + linkProcess_.setHandler(rast); + haveLinkProcess_ = 0; + endPrologEvent_.clear(); + parseSubdocQueue_.clear(); + linkRuleQueue_.clear(); + for (int i = 0; i < nAttributeType; i++) + attributeSortOrder_[i].clear(); +} + +void RastSubdocState::swap(RastSubdocState &to) +{ + { + SgmlParser *tem = to.parser_; + to.parser_ = parser_; + parser_ = tem; + } + { + Boolean tem = to.hadActiveLpdOrDtd_; + to.hadActiveLpdOrDtd_ = hadActiveLpdOrDtd_; + hadActiveLpdOrDtd_ = tem; + } + { + Boolean tem = to.hadDocumentElement_; + to.hadDocumentElement_ = hadDocumentElement_; + hadDocumentElement_ = tem; + } + activeLpdOrDtdLocation_.swap(to.activeLpdOrDtdLocation_); + activeLinkTypes_.swap(to.activeLinkTypes_); + linkProcess_.swap(to.linkProcess_); + endPrologEvent_.swap(to.endPrologEvent_); + parseSubdocQueue_.swap(to.parseSubdocQueue_); + linkRuleQueue_.swap(to.linkRuleQueue_); + for (int i = 0; i < nAttributeType; i++) + attributeSortOrder_[i].swap(to.attributeSortOrder_[i]); +} + +RastEventHandler::RastEventHandler(SgmlParser *parser, Messenger *mgr) +: lineLength_(0), + os_(0), + piErrorCount_(0), + RastSubdocState(parser, this), + mgr_(mgr) +{ + RastSubdocState::init(parser, this); +} + +void RastEventHandler::end() +{ + if (errorCount() != 0) { + truncateOutput(); + os() << (piErrorCount_ != 0 + ? "#RAST-PI-ERROR" + : "#ERROR") + << nl; + } +} + +void RastEventHandler::truncateOutput() +{ + // This must be handled by derived classes to get conforming output. +} + +void RastEventHandler::sgmlDecl(SgmlDeclEvent *event) +{ + rastParseSubdocYesString_ = event->sd().execToInternal("rast-parse-subdoc:yes"); + rastParseSubdocNoString_ = event->sd().execToInternal("rast-parse-subdoc:no"); + rastActiveLpdString_ = event->sd().execToInternal("rast-active-lpd:"); + rastLinkRuleString_ = event->sd().execToInternal("rast-link-rule:"); + delete event; +} + +void RastEventHandler::startElement(StartElementEvent *event) +{ + flushLine(dataLine); + if (!hadDocumentElement_) { + if (activeLinkTypes_.size() > 0) { + activeLinks(); + simpleLinkInfo(); + } + hadDocumentElement_ = 1; + } + os() << '[' << event->name(); + Boolean hadNewline; + if (event->attributes().size() > 0) { + hadNewline = 1; + os() << nl; + attributeInfo(event->attributes(), dtdAttribute); + } + else + hadNewline = 0; + if (haveLinkProcess_) { + const AttributeList *linkAttributes; + const ResultElementSpec *resultElementSpec; + EventHandlerMessenger messenger(this); + linkProcess_.startElement(event->elementType(), + event->attributes(), + event->location(), + messenger, + linkAttributes, + resultElementSpec); + if (linkProcess_.nImpliedLinkRules() > 0) { + if (!hadNewline) { + os() << nl; + hadNewline = 1; + } + os() << "#LINK-SET-INFO" << nl; + impliedSourceLinkRules(); + } + if (linkAttributes) { + if (!hadNewline) { + os() << nl; + hadNewline = 1; + } + os() << "#LINK-RULE" << nl; + attributeInfo(*linkAttributes, linkAttribute); + if (linkProcess_.isExplicit()) { + os() << "#RESULT="; + if (resultElementSpec && resultElementSpec->elementType) { + os() << resultElementSpec->elementType->name() << nl; + attributeInfo(resultElementSpec->attributeList, resultAttribute); + } + else + os() << "#IMPLIED" << nl; + } + } + else + hadNewline = 0; + } + os() << ']' << nl; + delete event; +} + +void RastEventHandler::activeLinks() +{ + for (size_t i = 0; i < activeLinkTypes_.size(); i++) { + os() << "#ACTIVE-LINK=" << activeLinkTypes_[i] << nl; + Boolean found = 0; + if (haveLinkProcess_ && linkProcess_.name() == activeLinkTypes_[i]) { + found = 1; + if (linkProcess_.nImpliedLinkRules() > 0) { + os() << "#INITIAL" << nl; + impliedSourceLinkRules(); + } + } + if (!found) { + if (endPrologEvent_) { + for (size_t j = 0; j < endPrologEvent_->simpleLinkNames().size(); j++) + if (endPrologEvent_->simpleLinkNames()[j] == activeLinkTypes_[i]) { + found = 1; + break; + } + } + if (!found) { + setNextLocation(activeLpdOrDtdLocation_); + Messenger::message(RastEventHandlerMessages::invalidActiveLinkType, + StringMessageArg(activeLinkTypes_[i])); + } + } + os() << "#END-ACTIVE-LINK" << nl; + } +} + +void RastEventHandler::simpleLinkInfo() +{ + if (!endPrologEvent_) + return; + for (size_t i = 0; i < activeLinkTypes_.size(); i++) { + for (size_t j = 0; j < endPrologEvent_->simpleLinkNames().size(); j++) { + const StringC &name = endPrologEvent_->simpleLinkNames()[j]; + if (name == activeLinkTypes_[i]) { + os() << "#SIMPLE-LINK=" << name << nl; + if (endPrologEvent_->simpleLinkAttributes()[j].size() > 0) + attributeInfo(endPrologEvent_->simpleLinkAttributes()[j], + simpleAttribute); + os() << "#END-SIMPLE-LINK" << nl; + break; + } + } + } +} + +void RastEventHandler::impliedSourceLinkRules() +{ + size_t n = linkProcess_.nImpliedLinkRules(); + Vector sortOrder(n); + size_t i; + for (i = 0; i < n; i++) + sortOrder[i] = i; + for (i = 1; i < n; i++) { + size_t tem = sortOrder[i]; + const StringC &name + = linkProcess_.impliedLinkRule(tem).elementType->name(); + size_t j; + for (j = i; j > 0; j--) { + if (lexCmp(linkProcess_.impliedLinkRule(j - 1).elementType->name(), + name) <= 0) + break; + sortOrder[j] = sortOrder[j - 1]; + } + sortOrder[j] = tem; + } + for (i = 0; i < n; i++) { + const ResultElementSpec &result + = linkProcess_.impliedLinkRule(sortOrder[i]); + os() << '[' << result.elementType->name(); + if (result.attributeList.size() > 0) { + os() << nl; + attributeInfo(result.attributeList, resultAttribute); + } + os() << ']' << nl; + } +} + +void RastEventHandler::endElement(EndElementEvent *event) +{ + if (haveLinkProcess_) + linkProcess_.endElement(); + flushLine(dataLine); + os() << "[/" << event->name() << ']' << nl; + if (haveLinkProcess_ && linkProcess_.nImpliedLinkRules() > 0) { + os() << "#LINK-SET-INFO" << nl; + impliedSourceLinkRules(); + os() << "#END-LINK-SET-INFO" << nl; + } + delete event; +} + +void RastEventHandler::data(DataEvent *event) +{ + lines(dataLine, event->data(), event->dataLength()); + delete event; +} + +void RastEventHandler::pi(PiEvent *event) +{ + flushLine(dataLine); + os() << "[?"; + size_t dataLength = event->dataLength(); + if (dataLength > 0) { + const Char *data = event->data(); + if (dataLength >= 4 + && memcmp(data, + rastParseSubdocYesString_.data(), + 4*sizeof(Char)) == 0 + && !interpretRastPi(data, dataLength, event->location())) { + setNextLocation(event->location()); + Messenger::message(RastEventHandlerMessages::invalidRastPiError); + } + os() << nl; + lines(dataLine, event->data(), dataLength); + flushLine(dataLine); + } + os() << ']' << nl; + delete event; +} + +inline +Boolean equal(const Char *s1, size_t n1, const StringC &s2) +{ + return (n1 == s2.size() + && (n1 == 0 + || memcmp(s1, s2.data(), n1*sizeof(Char)) == 0)); +} + +// Is s2 a prefix of s1 of length n1? + +inline +Boolean prefix(const Char *s1, size_t n1, const StringC &s2) +{ + return (n1 >= s2.size() + && (n1 == 0 + || memcmp(s1, s2.data(), s2.size()*sizeof(Char)) == 0)); +} + +Boolean RastEventHandler::interpretRastPi(const Char *data, + size_t dataLength, + const Location &loc) +{ + if (equal(data, dataLength, rastParseSubdocNoString_)) { + queueParseSubdoc(0); + return 1; + } + if (equal(data, dataLength, rastParseSubdocYesString_)) { + queueParseSubdoc(1); + return 1; + } + if (prefix(data, dataLength, rastActiveLpdString_)) { + if (hadActiveLpdOrDtd_) + return 1; + hadActiveLpdOrDtd_ = 1; + activeLpdOrDtdLocation_ = loc; + const Char *p = data + rastActiveLpdString_.size(); + size_t n = dataLength - rastActiveLpdString_.size(); + StringC name; + for (;;) { + if (n == 0 || *p == ',') { + if (name.size() == 0) + return 0; + for (size_t i = 0; i < activeLinkTypes_.size(); i++) + if (name == activeLinkTypes_[i]) { + setNextLocation(activeLpdOrDtdLocation_); + Messenger::message(RastEventHandlerMessages::duplicateActiveLinkType, + StringMessageArg(name)); + } + activeLinkTypes_.resize(activeLinkTypes_.size() + 1); + name.swap(activeLinkTypes_.back()); + if (n == 0) + break; + } + else + name += *p; + p++; + n--; + } + for (size_t i = 0; i < activeLinkTypes_.size(); i++) + parser_->activateLinkType(activeLinkTypes_[i]); + return 1; + } + if (prefix(data, dataLength, rastLinkRuleString_)) { + LinkRulePi *p = new LinkRulePi; + p->pi.assign(data + rastLinkRuleString_.size(), + dataLength - rastLinkRuleString_.size()); + p->loc = loc; + linkRuleQueue_.append(p); + return 1; + } + return 0; +} + +void RastEventHandler::sdataEntity(SdataEntityEvent *event) +{ + flushLine(dataLine); + os() << "#SDATA-TEXT" << nl; + lines(markupLine, event->data(), event->dataLength()); + flushLine(markupLine); + os() << "#END-SDATA" << nl; + delete event; +} + +void RastEventHandler::externalDataEntity(ExternalDataEntityEvent *event) +{ + const ExternalDataEntity *entity = event->entity(); + if (!entity) + return; + flushLine(dataLine); + os() << "[&" << entity->name() << nl; + externalEntityInfo(entity, dtdAttribute); + os() << ']' << nl; + delete event; +} + +void RastEventHandler::externalEntityInfo(const ExternalDataEntity *entity, + AttributeType attributeType) +{ + char c; + switch (entity->dataType()) { + case Entity::cdata: + c = 'C'; + break; + case Entity::sdata: + c = 'S'; + break; + case Entity::ndata: + c = 'N'; + break; + default: + return; + } + os() << '#' << c << "DATA-EXTERNAL" << nl; + externalIdInfo(entity->externalId()); + os() << "#NOTATION=" << entity->notation()->name() << nl; + externalIdInfo(entity->notation()->externalId()); + attributeInfo(entity->attributes(), + (attributeType == resultAttribute + ? resultAttribute + : dtdAttribute)); +} + +void RastEventHandler::subdocEntity(SubdocEntityEvent *event) +{ + const SubdocEntity *entity = event->entity(); + if (!entity) + return; + flushLine(dataLine); + os() << "[&" << entity->name() << nl; + Ptr origin(event->entityOrigin()->copy()); + subdocEntityInfo(entity, origin, 1); + os() << ']' << nl; + delete event; +} + +void RastEventHandler::subdocEntityInfo(const SubdocEntity *entity, + const Ptr &entityOrigin, + Boolean referenced) +{ + os() << "#SUBDOC" << nl; + externalIdInfo(entity->externalId()); + if (parseNextSubdoc()) { + // FIXME subdocuments in entity attributes shouldn't count against + // SUBDOC quantity limit. + os() << "#PARSED-SUBDOCUMENT" << nl; + SgmlParser::Params params; + params.entityType = SgmlParser::Params::subdoc; + params.subdocInheritActiveLinkTypes = 0; + params.subdocReferenced = referenced; + params.parent = parser_; + params.sysid = entity->externalId().effectiveSystemId(); + params.origin = entityOrigin; + SgmlParser parser(params); + RastSubdocState oldSubdocState; + RastSubdocState::swap(oldSubdocState); + RastSubdocState::init(&parser, this); + parser.parseAll(*this); + oldSubdocState.swap(*this); + } +} + +void RastEventHandler::queueParseSubdoc(Boolean parseSubdoc) +{ + parseSubdocQueue_.push_back(PackedBoolean(parseSubdoc)); +} + +Boolean RastEventHandler::parseNextSubdoc() +{ + if (parseSubdocQueue_.size() == 0) + return 0; + Boolean result = parseSubdocQueue_[0]; + if (parseSubdocQueue_.size() > 1) { + for (size_t i = 1; i < parseSubdocQueue_.size(); i++) + parseSubdocQueue_[i - 1] = parseSubdocQueue_[i]; + } + parseSubdocQueue_.resize(parseSubdocQueue_.size() - 1); + return result; +} + + +void RastEventHandler::externalIdInfo(const ExternalId &id) +{ + const StringC *systemId = id.systemIdString(); + const StringC *publicId = id.publicIdString(); + if (publicId) { + os() << "#PUBLIC" << nl; + if (publicId->size() == 0) + os() << "#EMPTY" << nl; + else { + lines(markupLine, publicId->data(), publicId->size()); + flushLine(markupLine); + } + } + if (systemId || !publicId) { + os() << "#SYSTEM" << nl; + if (!systemId) + os() << "#NONE" << nl; + else if (systemId->size() == 0) + os() << "#EMPTY" << nl; + else { + lines(markupLine, systemId->data(), systemId->size()); + flushLine(markupLine); + } + } +} + +void RastEventHandler::nonSgmlChar(NonSgmlCharEvent *event) +{ + flushLine(dataLine); + os() <<'#' << (unsigned long)event->character() << nl; + delete event; +} + +void RastEventHandler::lines(LineType type, const Char *p, size_t length) +{ + // This needs to be fast. + while (length != 0) { + if (printable(*p)) { + size_t lim; + switch (lineLength_) { + case maxLineLength: + os() << char(type) << nl; + lineLength_ = 0; + // fall through + case 0: + os() << char(type); + lim = maxLineLength; + break; + default: + lim = maxLineLength - lineLength_; + break; + } + if (lim > length) + lim = length; + size_t n = lim; + for (;;) { + os().put(*p); + p++; + if (--n == 0) + break; + if (!printable(*p)) { + lim -= n; + break; + } + } + length -= lim; + lineLength_ += lim; + } + else { + // *p is an unprintable character print it + flushLine(type); + switch (*p) { + case RS: + os() << "#RS" << nl; + break; + case RE: + os() << "#RE" << nl; + break; + case TAB: + os() << "#TAB" << nl; + break; + default: + os() << '#' << (unsigned long)*p << nl; + break; + } + p++; + length--; + } + } +} + +int RastEventHandler::lexCmp(const StringC &s1, const StringC &s2) +{ + const Char *p1 = s1.data(); + size_t n1 = s1.size(); + const Char *p2 = s2.data(); + size_t n2 = s2.size(); + for (;;) { + if (n1 == 0) + return n2 == 0 ? 0 : -1; + if (n2 == 0) + return 1; + if (*p1 != *p2) { + // printable characters precede non-printable characters; + // printable characters are in ASCII order + // non-printable characters are in document character set order + int a1 = printable(*p1); + int a2 = printable(*p2); + if (a1 == 0) { + if (a2 == 0) + return *p1 < *p2 ? -1 : 1; + else + return 1; + } + else if (a2 == 0) + return -1; + else + return a1 - a2; + } + p1++; + p2++; + n1--; + n2--; + } +} + +void RastEventHandler::attributeInfo(const AttributeList &attributes, + AttributeType attributeType) +{ + size_t length = attributes.size(); + if (length == 0) + return; + size_t defIndex = attributes.defIndex(); + if (defIndex >= attributeSortOrder_[attributeType].size()) + attributeSortOrder_[attributeType].resize(defIndex + 1); + Vector &sortOrder = attributeSortOrder_[attributeType][defIndex]; + if (sortOrder.size() != length + || attributeType == simpleAttribute) { + sortOrder.resize(length); + size_t i; + for (i = 0; i < length; i++) + sortOrder[i] = i; + // insertion sort + for (i = 1; i < length; i++) { + size_t tem = sortOrder[i]; + size_t j; + for (j = i; j > 0; j--) { + if (lexCmp(attributes.name(sortOrder[j - 1]), + attributes.name(tem)) <= 0) + break; + sortOrder[j] = sortOrder[j - 1]; + } + sortOrder[j] = tem; + } + } + for (size_t j = 0; j < length; j++) { + // Don't use sortOrder because attributeSortOrder_ may be grown + // because of data attributes. + size_t i = attributeSortOrder_[attributeType][defIndex][j]; + os() << attributes.name(i) << '=' << nl; + const Text *text; + const StringC *string; + const AttributeValue *value = attributes.value(i); + if (value) { + switch (value->info(text, string)) { + case AttributeValue::implied: + os() << "#IMPLIED" << nl; + break; + case AttributeValue::tokenized: + lines(markupLine, string->data(), string->size()); + flushLine(markupLine); + break; + case AttributeValue::cdata: + { + TextIter iter(*text); + TextItem::Type type; + const Char *p; + size_t length; + const Location *loc; + while (iter.next(type, p, length, loc)) + switch (type) { + case TextItem::data: + case TextItem::cdata: + lines(markupLine, p, length); + break; + case TextItem::sdata: + flushLine(markupLine); + os() << "#SDATA-TEXT" << nl; + lines(markupLine, p, length); + flushLine(markupLine); + os() << "#END-SDATA" << nl; + break; + case TextItem::nonSgml: + flushLine(markupLine); + os() << '#' << (unsigned long)*p << nl; + break; + default: + break; + } + flushLine(markupLine); + } + break; + } + } + const AttributeSemantics *semantics = attributes.semantics(i); + if (semantics) { + ConstPtr notation + = semantics->notation(); + if (!notation.isNull()) + externalIdInfo(notation->externalId()); + size_t nEntities = semantics->nEntities(); + for (size_t i = 0; i < nEntities; i++) { + ConstPtr entity + = semantics->entity(i); + if (!entity.isNull()) { + const ExternalDataEntity *externalDataEntity + = entity->asExternalDataEntity(); + if (externalDataEntity) + externalEntityInfo(externalDataEntity, + (attributeType == resultAttribute + ? resultAttribute + : dtdAttribute)); + else { + const SubdocEntity *subdocEntity = entity->asSubdocEntity(); + if (subdocEntity) { + Ptr entityOrigin + = EntityOrigin::make(entity, + ((TokenizedAttributeValue *)value) + ->tokenLocation(i)); + subdocEntityInfo(subdocEntity, entityOrigin, 0); + } + else { + const InternalEntity *internalEntity = entity->asInternalEntity(); + if (internalEntity) + internalEntityInfo(internalEntity); + } + } + } + os() << "#END-ENTITY" << nl; + } + } + } +} + +void RastEventHandler::internalEntityInfo(const InternalEntity *entity) +{ + if (!entity) + return; + os() << '#' + << char(entity->dataType() == Entity::cdata ? 'C' : 'S') + << "DATA-INTERNAL" << nl; + const StringC &str = entity->string(); + lines(markupLine, str.data(), str.size()); + flushLine(markupLine); +} + +void RastEventHandler::endProlog(EndPrologEvent *event) +{ + if (!event->lpdPointer().isNull()) { + linkProcess_.init(event->lpdPointer()); + haveLinkProcess_ = 1; + } + if (event->simpleLinkNames().size() > 0) + endPrologEvent_ = event; + else + delete event; +} + +void RastEventHandler::uselink(UselinkEvent *event) +{ + linkProcess_.uselink(event->linkSet(), + event->restore(), + event->lpd().pointer()); + if (haveLinkProcess_ && linkProcess_.nImpliedLinkRules() > 0) { + flushLine(dataLine); + os() << "#LINK-SET-INFO" << nl; + impliedSourceLinkRules(); + os() << "#END-LINK-SET-INFO" << nl; + } + delete event; +} + +void RastEventHandler::initMessage(Message &msg) +{ + mgr_->initMessage(msg); +} + +void RastEventHandler::dispatchMessage(const Message &msg) +{ + if (msg.isError()) + piErrorCount_++; + if (!cancelled()) { + noteMessage(msg); + mgr_->dispatchMessage(msg); + } +} + +RastLinkProcess::RastLinkProcess() +: rast_(0) +{ +} + +void RastLinkProcess::setHandler(RastEventHandler *rast) +{ + rast_ = rast; +} + +// Always return 1. 0 means not ready. + +Boolean RastLinkProcess::selectLinkRule(const Vector &linkAttributes, + const Location &location, + size_t &selected) +{ + if (!rast_->linkRuleQueue_.empty()) { + LinkRulePi *p = rast_->linkRuleQueue_.get(); + if (!selectLinkRulePi(p->pi, p->loc, linkAttributes, selected)) + selected = 0; + } + else { + if (linkAttributes.size() > 0) { + rast_->setNextLocation(location); + rast_->Messenger::message(RastEventHandlerMessages::multipleLinkRules); + } + selected = 0; + } + return 1; +} + +// Return zero for failure (RAST-PI-ERROR). + +Boolean RastLinkProcess::selectLinkRulePi(const StringC &value, + const Location &loc, + const Vector &linkAttributes, + size_t &selected) +{ + Boolean haveSelection = 0; + size_t i; + for (i = 0; i < linkAttributes.size(); i++) { + const AttributeList &a = *linkAttributes[i]; + Boolean matchValue = 0; + for (size_t j = 0; j < a.size(); j++) { + const Text *textp; + const StringC *strp; + switch (a.value(j)->info(textp, strp)) { + case AttributeValue::cdata: + // What if it contains SDATA entities? + if (textp->string() == value) + matchValue = 1; + break; + case AttributeValue::tokenized: + if (*strp == value) + matchValue = 1; + break; + default: + break; + } + if (matchValue) + break; + } + if (matchValue) { + if (haveSelection) { + rast_->setNextLocation(loc); + rast_->Messenger::message(RastEventHandlerMessages::multipleLinkRuleMatch); + return 0; + } + haveSelection = 1; + selected = i; + } + } + if (!haveSelection) { + rast_->setNextLocation(loc); + rast_->Messenger::message(RastEventHandlerMessages::noLinkRuleMatch); + return 0; + } + return 1; +} + +void RastLinkProcess::swap(RastLinkProcess &to) +{ + LinkProcess::swap(to); + RastEventHandler *tem = to.rast_; + to.rast_ = rast_; + rast_ = tem; +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/nsgmls/RastEventHandler.h b/nsgmls/RastEventHandler.h new file mode 100644 index 0000000..c6fa882 --- /dev/null +++ b/nsgmls/RastEventHandler.h @@ -0,0 +1,193 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef RastEventHandler_INCLUDED +#define RastEventHandler_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Event.h" +#include "Vector.h" +#include "Vector.h" +#include "Boolean.h" +#include "Vector.h" +#include "StringC.h" +#include "types.h" +#include "OutputCharStream.h" +#include "LinkProcess.h" +#include "Message.h" +#include "Link.h" +#include "IQueue.h" +#include "ErrorCountEventHandler.h" + +#include +#include + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class AttributeList; +class ExternalDataEntity; +class SubdocEntity; +class ExternalId; +class InternalEntity; +class SgmlParser; + +class RastPrintable { +public: + RastPrintable(); + int operator()(Char c) const; +private: + char v_[UCHAR_MAX + 1]; +}; + +class RastEventHandler; + +class RastLinkProcess : public LinkProcess { +public: + RastLinkProcess(); + void setHandler(RastEventHandler *); + Boolean selectLinkRule(const Vector &linkAttributes, + const Location &location, + size_t &selected); + void swap(RastLinkProcess &); +private: + Boolean selectLinkRulePi(const StringC &str, + const Location &loc, + const Vector &linkAttributes, + size_t &selected); + + RastLinkProcess(const RastLinkProcess &); // undefined + void operator=(RastLinkProcess &); // undefined + RastEventHandler *rast_; +}; + +struct LinkRulePi : public Link { + inline virtual ~LinkRulePi() {} + StringC pi; + Location loc; +}; + +class RastSubdocState { +public: + RastSubdocState(); + RastSubdocState(SgmlParser *, RastEventHandler *); + void init(SgmlParser *, RastEventHandler *); + void swap(RastSubdocState &); +protected: + SgmlParser *parser_; + Boolean hadActiveLpdOrDtd_; + Location activeLpdOrDtdLocation_; + Vector activeLinkTypes_; + Boolean hadDocumentElement_; + RastLinkProcess linkProcess_; + Boolean haveLinkProcess_; + Owner endPrologEvent_; + Vector parseSubdocQueue_; + IQueue linkRuleQueue_; + enum AttributeType { + dtdAttribute, + linkAttribute, + resultAttribute, + simpleAttribute + }; + enum { nAttributeType = simpleAttribute + 1 }; + Vector > attributeSortOrder_[nAttributeType]; +private: + RastSubdocState(const RastSubdocState &); // undefined + void operator=(const RastSubdocState &); // undefined + friend class RastLinkProcess; +}; + +class RastEventHandler : public ErrorCountEventHandler, + private RastSubdocState, + protected Messenger { +public: + RastEventHandler(SgmlParser *, Messenger *); + void data(DataEvent *); + void startElement(StartElementEvent *); + void endElement(EndElementEvent *); + void pi(PiEvent *); + void sdataEntity(SdataEntityEvent *); + void externalDataEntity(ExternalDataEntityEvent *); + void subdocEntity(SubdocEntityEvent *); + void nonSgmlChar(NonSgmlCharEvent *); + void sgmlDecl(SgmlDeclEvent *); + void endProlog(EndPrologEvent *); + void uselink(UselinkEvent *); + virtual void truncateOutput(); + void end(); + void setOutputStream(OutputCharStream *os); + static const char *messageText(int); + static const char messageSource[]; +protected: + void initMessage(Message &); + void dispatchMessage(const Message &); +private: + RastEventHandler(const RastEventHandler &); // undefined + void operator=(const RastEventHandler &); // undefined + + enum LineType { dataLine = '|', markupLine = '!' }; + void lines(LineType, const Char *p, size_t length); + enum { maxLineLength = 60 }; + enum { RS = '\n', RE = '\r', TAB = '\t' }; +#if 0 + static const RastPrintable printable; +#else + static RastPrintable printable; +#endif + int lineLength_; + OutputCharStream *os_; + StringC rastParseSubdocYesString_; + StringC rastParseSubdocNoString_; + StringC rastActiveLpdString_; + StringC rastLinkRuleString_; + unsigned piErrorCount_; + Messenger *mgr_; + + int lexCmp(const StringC &s1, const StringC &s2); + void flushLine(LineType); + void attributeInfo(const AttributeList &, AttributeType); + void externalEntityInfo(const ExternalDataEntity *, AttributeType); + void subdocEntityInfo(const SubdocEntity *, + const Ptr &entityOrigin, + Boolean referenced); + void externalIdInfo(const ExternalId &); + void internalEntityInfo(const InternalEntity *); + void queueParseSubdoc(Boolean); + Boolean parseNextSubdoc(); + Boolean interpretRastPi(const Char *data, size_t dataLength, + const Location &); + void activeLinks(); + void simpleLinkInfo(); + void impliedSourceLinkRules(); + + OutputCharStream &os(); + friend class RastLinkProcess; +}; + +inline +int RastPrintable::operator()(Char c) const +{ + return c <= UCHAR_MAX ? v_[c] : 0; +} + +inline +void RastEventHandler::setOutputStream(OutputCharStream *os) +{ + os_ = os; +} + +inline +OutputCharStream &RastEventHandler::os() +{ + return *os_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not RastEventHandler_INCLUDED */ diff --git a/nsgmls/RastEventHandlerMessages.h b/nsgmls/RastEventHandlerMessages.h new file mode 100644 index 0000000..9291b58 --- /dev/null +++ b/nsgmls/RastEventHandlerMessages.h @@ -0,0 +1,72 @@ +// This file was automatically generated from RastEventHandlerMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct RastEventHandlerMessages { + // 100 + static const MessageType0 invalidRastPiError; + // 101 + static const MessageType1 invalidActiveLinkType; + // 102 + static const MessageType1 duplicateActiveLinkType; + // 103 + static const MessageType0 multipleLinkRuleMatch; + // 104 + static const MessageType0 noLinkRuleMatch; + // 105 + static const MessageType0 multipleLinkRules; +}; +const MessageType0 RastEventHandlerMessages::invalidRastPiError( +MessageType::error, +&appModule, +100 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid RAST processing instruction" +#endif +); +const MessageType1 RastEventHandlerMessages::invalidActiveLinkType( +MessageType::error, +&appModule, +101 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid link type %1 in rast-active-lpd processing instruction" +#endif +); +const MessageType1 RastEventHandlerMessages::duplicateActiveLinkType( +MessageType::error, +&appModule, +102 +#ifndef SP_NO_MESSAGE_TEXT +,"duplicate link type %1 in rast-active-lpd processing instruction" +#endif +); +const MessageType0 RastEventHandlerMessages::multipleLinkRuleMatch( +MessageType::error, +&appModule, +103 +#ifndef SP_NO_MESSAGE_TEXT +,"rast-link-rule: processing instruction matches more than one link rule" +#endif +); +const MessageType0 RastEventHandlerMessages::noLinkRuleMatch( +MessageType::error, +&appModule, +104 +#ifndef SP_NO_MESSAGE_TEXT +,"rast-link-rule: processing instruction does not match any link rules" +#endif +); +const MessageType0 RastEventHandlerMessages::multipleLinkRules( +MessageType::error, +&appModule, +105 +#ifndef SP_NO_MESSAGE_TEXT +,"multiple applicable link rules without disambiguating rast-link-rule: processing instruction" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/nsgmls/RastEventHandlerMessages.msg b/nsgmls/RastEventHandlerMessages.msg new file mode 100644 index 0000000..4b6781d --- /dev/null +++ b/nsgmls/RastEventHandlerMessages.msg @@ -0,0 +1,12 @@ +# Copyright (c) 1994,1995 James Clark +# See the file COPYING for copying permission. + +# RastEventHandler message definitions + +=100 +E0+invalidRastPiError++invalid RAST processing instruction +E1+invalidActiveLinkType++invalid link type %1 in rast-active-lpd processing instruction +E1+duplicateActiveLinkType++duplicate link type %1 in rast-active-lpd processing instruction +E0+multipleLinkRuleMatch++rast-link-rule: processing instruction matches more than one link rule +E0+noLinkRuleMatch++rast-link-rule: processing instruction does not match any link rules +E0+multipleLinkRules++multiple applicable link rules without disambiguating rast-link-rule: processing instruction diff --git a/nsgmls/RastEventHandlerMessages.rc b/nsgmls/RastEventHandlerMessages.rc new file mode 100644 index 0000000..302c9cb --- /dev/null +++ b/nsgmls/RastEventHandlerMessages.rc @@ -0,0 +1,9 @@ +STRINGTABLE +BEGIN + 100, "invalid RAST processing instruction" + 101, "invalid link type %1 in rast-active-lpd processing instruction" + 102, "duplicate link type %1 in rast-active-lpd processing instruction" + 103, "rast-link-rule: processing instruction matches more than one link rule" + 104, "rast-link-rule: processing instruction does not match any link rules" + 105, "multiple applicable link rules without disambiguating rast-link-rule: processing instruction" +END diff --git a/nsgmls/SgmlsEventHandler.cxx b/nsgmls/SgmlsEventHandler.cxx new file mode 100644 index 0000000..58248f8 --- /dev/null +++ b/nsgmls/SgmlsEventHandler.cxx @@ -0,0 +1,739 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "config.h" +#include "SgmlsEventHandler.h" +#include "SgmlParser.h" +#include "ParserOptions.h" +#include "Entity.h" +#include "Notation.h" +#include "Attribute.h" +#include "ExtendEntityManager.h" +#include "StorageManager.h" +#include "macros.h" +#include "sptchar.h" +#include "nsgmls.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +const char dataCode = '-'; +const char piCode = '?'; +const char conformingCode = 'C'; +const char appinfoCode = '#'; +const char startElementCode = '('; +const char endElementCode = ')'; +const char referenceEntityCode = '&'; +const char attributeCode = 'A'; +const char dataAttributeCode = 'D'; +const char linkAttributeCode = 'a'; +const char defineNotationCode = 'N'; +const char defineExternalEntityCode = 'E'; +const char defineInternalEntityCode = 'I'; +const char defineSubdocEntityCode = 'S'; +const char defineExternalTextEntityCode = 'T'; +const char pubidCode = 'p'; +const char sysidCode = 's'; +const char startSubdocCode = '{'; +const char endSubdocCode = '}'; +const char fileCode = 'f'; +const char locationCode = 'L'; +const char includedElementCode = 'i'; +const char emptyElementCode = 'e'; +const char commentCode = '_'; +const char omissionCode = 'o'; +const char featuresCode = 'V'; +const char featuresSubCodeOptions = 'o'; +const char featuresSubCodeVersion = 'v'; +const char featuresSubCodePackage = 'p'; +const char featuresSubCodePossibleCodes = 'c'; + +const OutputCharStream::Newline nl = OutputCharStream::newline; + +const char space = ' '; +const char re = '\r'; +const Char reChar = re; +const char escapePrefix = '\\'; +const Char escapePrefixChar = escapePrefix; +const char sdataDelim = '|'; +const char nonSgmlEscape = '%'; +const char newlineEscape = 'n'; +const char numEscape = '#'; +const char escapeEnd = ';'; + +inline +void SgmlsEventHandler::startData() +{ + if (!haveData_) { + os() << dataCode; + haveData_ = 1; + } +} + +inline +void SgmlsEventHandler::flushData() +{ + if (haveData_) { + os() << nl; + haveData_ = 0; + } +} + +inline +void SgmlsEventHandler::outputLocation(const Location &loc) +{ + if (outputLine_) + outputLocation1(loc); +} + +SgmlsEventHandler::SgmlsEventHandler(const SgmlParser *parser, + OutputCharStream *os, + Messenger *messenger, + unsigned outputFlags) +: SgmlsSubdocState(parser), os_(os), messenger_(messenger), + outputLine_((outputFlags & outputLine) != 0), + outputEntity_((outputFlags & outputEntity) != 0), + outputId_((outputFlags & outputId) != 0), + outputNotationSysid_((outputFlags & outputNotationSysid) != 0), + outputIncluded_((outputFlags & outputIncluded) != 0), + outputNonSgml_((outputFlags & outputNonSgml) != 0), + outputEmpty_((outputFlags & outputEmpty) != 0), + outputDataAtt_((outputFlags & outputDataAtt) != 0), + outputComment_((outputFlags & outputComment) != 0), + outputTagOmission_((outputFlags & outputTagOmission) != 0), + outputAttributeOmission_((outputFlags & outputAttributeOmission) != 0), + outputParserInformation_((outputFlags & outputParserInformation) != 0), + + haveData_(0), lastSos_(0), inDocument_(0) +{ + os_->setEscaper(escaper); + if (outputParserInformation_) + features(outputFlags); +} + +SgmlsEventHandler::~SgmlsEventHandler() +{ + flushData(); + if (errorCount() == 0) + os() << conformingCode << nl; + delete os_; +} + +void SgmlsEventHandler::message(MessageEvent *event) +{ + messenger_->dispatchMessage(event->message()); + ErrorCountEventHandler::message(event); +} + +void SgmlsEventHandler::features(unsigned outputFlags) +{ + os() << featuresCode << featuresSubCodePackage << space + << SP_PACKAGE + << nl; + + os() << featuresCode << featuresSubCodeVersion << space + << SP_VERSION + << nl; + + os() << featuresCode << featuresSubCodePossibleCodes << space; + os() << dataCode; + os() << piCode; + os() << conformingCode; + os() << appinfoCode; + os() << startElementCode; + os() << endElementCode; + os() << referenceEntityCode; + os() << attributeCode; + os() << dataAttributeCode; + os() << linkAttributeCode; + os() << defineNotationCode; + os() << defineExternalEntityCode; + os() << defineInternalEntityCode; + os() << defineSubdocEntityCode; + os() << defineExternalTextEntityCode; + os() << pubidCode; + os() << sysidCode; + os() << startSubdocCode; + os() << endSubdocCode; + os() << fileCode; + os() << locationCode; + os() << includedElementCode; + os() << emptyElementCode; + os() << commentCode; + os() << omissionCode; + os() << featuresCode; + + os() << nl; + + os() << featuresCode << featuresSubCodeOptions + << space << SP_T("esis"); + for (size_t i = 1; NsgmlsApp::outputOptions[i].flag != 0; i++) { + if (NsgmlsApp::outputOptions[i].flag == 0) + break; + if (0 != (outputFlags & NsgmlsApp::outputOptions[i].flag)) { + os() << space << NsgmlsApp::outputOptions[i].name; + } + } + os() << nl; +} + +void SgmlsEventHandler::appinfo(AppinfoEvent *event) +{ + const StringC *str; + if (event->literal(str)) { + outputLocation(event->location()); + flushData(); + os() << appinfoCode; + outputString(*str); + os() << nl; + } + delete event; +} + +void SgmlsEventHandler::endProlog(EndPrologEvent *event) +{ + if (outputEntity_) { + flushData(); + const Dtd &dtd = event->dtd(); + Dtd::ConstEntityIter iter(dtd.generalEntityIter()); + for (;;) { + const Entity *entity = iter.next().pointer(); + if (!entity) + break; + defineEntity(entity); + } + } + if (outputComment_) + inDocument_ = true; + if (!event->lpdPointer().isNull()) { + linkProcess_.init(event->lpdPointer()); + haveLinkProcess_ = 1; + flushData(); + } + for (size_t i = 0; i < event->simpleLinkNames().size(); i++) { + flushData(); + attributes(event->simpleLinkAttributes()[i], + linkAttributeCode, + &event->simpleLinkNames()[i]); + } + delete event; +} + +void SgmlsEventHandler::entityDefaulted(EntityDefaultedEvent *event) +{ + if (outputEntity_) { + flushData(); + defineEntity(event->entityPointer().pointer()); + } + delete event; +} + +void SgmlsEventHandler::uselink(UselinkEvent *event) +{ + linkProcess_.uselink(event->linkSet(), + event->restore(), + event->lpd().pointer()); + delete event; +} + +void SgmlsEventHandler::sgmlDecl(SgmlDeclEvent *event) +{ + sd_ = event->sdPointer(); + syntax_ = event->instanceSyntaxPointer(); // FIXME which syntax? + delete event; +} + +void SgmlsEventHandler::data(DataEvent *event) +{ + outputLocation(event->location()); + startData(); + outputString(event->data(), event->dataLength()); + delete event; +} + +void SgmlsEventHandler::sdataEntity(SdataEntityEvent *event) +{ + outputLocation(event->location()); + startData(); + os() << escapePrefix << sdataDelim; + outputString(event->data(), event->dataLength()); + os() << escapePrefix << sdataDelim; + delete event; +} + +void SgmlsEventHandler::pi(PiEvent *event) +{ + outputLocation(event->location()); + flushData(); + os() << piCode; + outputString(event->data(), event->dataLength()); + os() << nl; + delete event; +} + +void SgmlsEventHandler::commentDecl(CommentDeclEvent *event) +{ + if (inDocument_) { //only receive this event if outputComment_ true + outputLocation(event->location()); + flushData(); + MarkupIter iter(event->markup()); + for (; iter.valid(); iter.advance()) { + if (iter.type() == Markup::comment) { + os() << commentCode; + outputString(iter.charsPointer(), iter.charsLength()); + os() << nl; + } + } + } + delete event; +} + +void SgmlsEventHandler::nonSgmlChar(NonSgmlCharEvent *event) +{ + if (outputNonSgml_) { + outputLocation(event->location()); + startData(); + os() << escapePrefix << nonSgmlEscape << (unsigned long)event->character() << escapeEnd; + } + delete event; +} + +void SgmlsEventHandler::startElement(StartElementEvent *event) +{ + flushData(); + currentLocation_ = event->location(); + if (haveLinkProcess_) { + const AttributeList *linkAttributes; + const ResultElementSpec *resultElementSpec; + linkProcess_.startElement(event->elementType(), + event->attributes(), + event->location(), + *this, // Messenger & + linkAttributes, + resultElementSpec); + if (linkAttributes) + attributes(*linkAttributes, linkAttributeCode, &linkProcess_.name()); + } + attributes(event->attributes(), attributeCode, 0); + currentLocation_.clear(); + if (outputTagOmission_ && !event->markupPtr()) + os() << omissionCode << nl; + if (outputIncluded_ && event->included()) + os() << includedElementCode << nl; + if (outputEmpty_ && event->mustOmitEnd()) + os() << emptyElementCode << nl; + outputLocation(event->location()); + os() << startElementCode << event->name() << nl; + delete event; +} + +void SgmlsEventHandler::attributes(const AttributeList &attributes, + char code, + const StringC *ownerName) +{ + size_t nAttributes = attributes.size(); + for (size_t i = 0; i < nAttributes; i++) { + const Text *text; + const StringC *string; + const AttributeValue *value = attributes.value(i); + if (value) { + if (outputAttributeOmission_) { + if (! attributes.specified(i)) { + os() << omissionCode << nl; + } + } + switch (value->info(text, string)) { + case AttributeValue::implied: + startAttribute(attributes.name(i), code, ownerName); + os() << "IMPLIED" << nl; + break; + case AttributeValue::tokenized: + { + const char *typeString = "TOKEN"; + const AttributeSemantics *semantics = attributes.semantics(i); + if (semantics) { + ConstPtr notation + = semantics->notation(); + if (!notation.isNull()) { + defineNotation(notation.pointer()); + typeString = "NOTATION"; + } + else { + size_t nEntities = semantics->nEntities(); + if (nEntities) { + typeString = "ENTITY"; + if (!outputEntity_) + for (size_t i = 0; i < nEntities; i++) { + const Entity *entity = semantics->entity(i).pointer(); + if (!markEntity(entity)) + defineEntity(entity); + } + } + } + } + if (outputId_ && attributes.id(i)) + typeString = "ID"; + startAttribute(attributes.name(i), code, ownerName); + os() << typeString << space << *string << nl; + } + break; + case AttributeValue::cdata: + { + startAttribute(attributes.name(i), code, ownerName); + CdataAttributeValue *cdataValue = (CdataAttributeValue *)value; + if (outputDataAtt_ && cdataValue->notation()) + os() << "DATA " << cdataValue->notation()->name() << " "; + else + os() << "CDATA "; + TextIter iter(*text); + TextItem::Type type; + const Char *p; + size_t length; + const Location *loc; + while (iter.next(type, p, length, loc)) + switch (type) { + case TextItem::data: + case TextItem::cdata: + outputString(p, length); + break; + case TextItem::sdata: + os() << escapePrefix << sdataDelim; + outputString(p, length); + os() << escapePrefix << sdataDelim; + break; + case TextItem::nonSgml: + if (outputNonSgml_) + os() << escapePrefix << nonSgmlEscape << (unsigned long)*p << escapeEnd; + break; + default: + break; + } + os() << nl; + if (outputDataAtt_ && cdataValue->notation()) { + defineNotation(cdataValue->notation()); + DataAttributeValue *dataValue = (DataAttributeValue *)cdataValue; + SgmlsEventHandler::attributes(dataValue->attributes(), + dataAttributeCode, + &attributes.name(i)); + } + } + break; + } + } + } +} + +void SgmlsEventHandler::startAttribute(const StringC &name, + char code, + const StringC *ownerName) +{ + os() << code; + if (ownerName) + os() << *ownerName << space; + os() << name << space; +} + +void SgmlsEventHandler::endElement(EndElementEvent *event) +{ + flushData(); + if (haveLinkProcess_) + linkProcess_.endElement(); + outputLocation(event->location()); + if (outputTagOmission_ && !event->markupPtr()) + os() << omissionCode << nl; + os() << endElementCode << event->name() << nl; + delete event; +} + +void SgmlsEventHandler::externalDataEntity(ExternalDataEntityEvent *event) +{ + currentLocation_ = event->location(); + outputLocation(event->location()); + flushData(); + if (!outputEntity_ && !markEntity(event->entity())) + defineExternalDataEntity(event->entity()); + currentLocation_.clear(); + os() << referenceEntityCode << event->entity()->name() << nl; + delete event; +} + +void SgmlsEventHandler::subdocEntity(SubdocEntityEvent *event) +{ + currentLocation_ = event->location(); + outputLocation(event->location()); + flushData(); + const SubdocEntity *entity = event->entity(); + if (!outputEntity_ && !markEntity(entity)) + defineSubdocEntity(entity); + currentLocation_.clear(); + os() << startSubdocCode << entity->name() << nl; + SgmlParser::Params params; + params.subdocInheritActiveLinkTypes = 1; + params.subdocReferenced = 1; + params.origin = event->entityOrigin()->copy(); + params.parent = parser_; + params.sysid = entity->externalId().effectiveSystemId(); + params.entityType = SgmlParser::Params::subdoc; + SgmlParser parser(params); + SgmlsSubdocState oldState; + SgmlsSubdocState::swap(oldState); + SgmlsSubdocState::init(&parser); + parser.parseAll(*this); + oldState.swap(*this); + os() << endSubdocCode << entity->name() << nl; + delete event; +} + +void SgmlsEventHandler::defineEntity(const Entity *entity) +{ + const InternalEntity *internalEntity = entity->asInternalEntity(); + if (internalEntity) + defineInternalEntity(internalEntity); + else { + switch (entity->dataType()) { + case Entity::cdata: + case Entity::sdata: + case Entity::ndata: + defineExternalDataEntity(entity->asExternalDataEntity()); + break; + case Entity::subdoc: + defineSubdocEntity(entity->asSubdocEntity()); + break; + case Entity::sgmlText: + defineExternalTextEntity(entity->asExternalEntity()); + break; + default: + CANNOT_HAPPEN(); + } + } +} + +void SgmlsEventHandler::defineExternalDataEntity(const ExternalDataEntity *entity) +{ + const Notation *notation = entity->notation(); + defineNotation(notation); + externalId(entity->externalId()); + const char *typeString; + switch (entity->dataType()) { + case Entity::cdata: + typeString = "CDATA"; + break; + case Entity::sdata: + typeString = "SDATA"; + break; + case Entity::ndata: + typeString = "NDATA"; + break; + default: + CANNOT_HAPPEN(); + } + os() << defineExternalEntityCode << entity->name() + << space << typeString + << space << notation->name() + << nl; + attributes(entity->attributes(), dataAttributeCode, &entity->name()); +} + +void SgmlsEventHandler::defineSubdocEntity(const SubdocEntity *entity) +{ + externalId(entity->externalId()); + os() << defineSubdocEntityCode << entity->name() << nl; +} + +void SgmlsEventHandler::defineExternalTextEntity(const ExternalEntity *entity) +{ + externalId(entity->externalId()); + os() << defineExternalTextEntityCode << entity->name() << nl; +} + +void SgmlsEventHandler::defineInternalEntity(const InternalEntity *entity) +{ + os() << defineInternalEntityCode << entity->name() << space; + const char *s; + switch (entity->dataType()) { + case Entity::sdata: + s = "SDATA"; + break; + case Entity::cdata: + s = "CDATA"; + break; + case Entity::sgmlText: + s = "TEXT"; + break; + case Entity::pi: + s = "PI"; + break; + default: + CANNOT_HAPPEN(); + } + os() << s << space; + outputString(entity->string()); + os() << nl; +} + +void SgmlsEventHandler::defineNotation(const Notation *notation) +{ + if (markNotation(notation)) + return; + externalId(notation->externalId(), outputNotationSysid_); + os() << defineNotationCode << notation->name() << nl; +} + +void SgmlsEventHandler::externalId(const ExternalId &id, Boolean outputFile) +{ + const StringC *str = id.publicIdString(); + if (str) { + os() << pubidCode; + outputString(*str); + os() << nl; + } + str = id.systemIdString(); + if (str) { + os() << sysidCode; + outputString(*str); + os() << nl; + } + if (outputFile && id.effectiveSystemId().size()) { + os() << fileCode; + outputString(id.effectiveSystemId()); + os() << nl; + } +} + +Boolean SgmlsEventHandler::markEntity(const Entity *entity) +{ + return definedEntities_.add(entity->name()); +} + +Boolean SgmlsEventHandler::markNotation(const Notation *notation) +{ + return definedNotations_.add(notation->name()); +} + +void SgmlsEventHandler::outputString(const Char *p, size_t n) +{ + for (; n > 0; p++, n--) { + switch (*p) { + case escapePrefixChar: + os() << escapePrefix << escapePrefix; + break; + case reChar: + os() << escapePrefix << newlineEscape; + if (outputLine_ && haveData_) + lastLineno_++; + break; + default: + // FIXME not clear what to do here given possibility of wide characters + unsigned long c = *p; + if (c < 040) { + static const char digits[] = "0123456789"; + os() << escapePrefix << '0' << digits[(c / 8) % 8] << digits[c % 8]; + } + else + os().put(*p); + break; + } + } +} + +void SgmlsEventHandler::escaper(OutputCharStream &s, Char c) +{ + s << escapePrefix << numEscape << (unsigned long)c << escapeEnd; +} + +void SgmlsEventHandler::outputLocation1(const Location &loc) +{ + const Origin *origin = loc.origin().pointer(); + const InputSourceOrigin *inputSourceOrigin; + const ExternalInfo *info; + Index index = loc.index(); + for (;;) { + if (!origin) + return; + inputSourceOrigin = origin->asInputSourceOrigin(); + if (inputSourceOrigin) { + info = inputSourceOrigin->externalInfo(); + if (info) + break; + } + const Location &loc = origin->parent(); + index = loc.index(); + origin = loc.origin().pointer(); + } + Offset off = inputSourceOrigin->startOffset(index); + StorageObjectLocation soLoc; + if (!ExtendEntityManager::externalize(info, off, soLoc)) + return; + if (soLoc.lineNumber == (unsigned long)-1) + return; + if (soLoc.storageObjectSpec == lastSos_) { + if (soLoc.lineNumber == lastLineno_) + return; + flushData(); + os() << locationCode << soLoc.lineNumber << nl; + lastLineno_ = soLoc.lineNumber; + } + else { + flushData(); + os() << locationCode << soLoc.lineNumber << space; + outputString(soLoc.actualStorageId); + os() << nl; + lastLineno_ = soLoc.lineNumber; + lastSos_ = soLoc.storageObjectSpec; + lastLoc_ = loc; // make sure lastSos_ doesn't get freed + } +} + +void SgmlsEventHandler::dispatchMessage(const Message &msg) +{ + if (!cancelled()) { + noteMessage(msg); + messenger_->dispatchMessage(msg); + } +} + +void SgmlsEventHandler::initMessage(Message &msg) +{ + msg.loc = currentLocation_; +} + +SgmlsSubdocState::SgmlsSubdocState() +: haveLinkProcess_(0), parser_(0) +{ +} + +SgmlsSubdocState::SgmlsSubdocState(const SgmlParser *parser) +: haveLinkProcess_(0), parser_(parser) +{ +} + +void SgmlsSubdocState::init(const SgmlParser *parser) +{ + parser_ = parser; + definedNotations_.clear(); + definedEntities_.clear(); + haveLinkProcess_ = 0; + linkProcess_.clear(); +} + +void SgmlsSubdocState::swap(SgmlsSubdocState &to) +{ + { + const SgmlParser *tem = to.parser_; + to.parser_ = parser_; + parser_ = tem; + } + { + Boolean tem = to.haveLinkProcess_; + to.haveLinkProcess_ = haveLinkProcess_; + haveLinkProcess_ = tem; + } + linkProcess_.swap(to.linkProcess_); + definedNotations_.swap(to.definedNotations_); + definedEntities_.swap(to.definedEntities_); +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/nsgmls/SgmlsEventHandler.h b/nsgmls/SgmlsEventHandler.h new file mode 100644 index 0000000..05cb755 --- /dev/null +++ b/nsgmls/SgmlsEventHandler.h @@ -0,0 +1,157 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef SgmlsEventHandler_INCLUDED +#define SgmlsEventHandler_INCLUDED 1 + +#include +#include "Event.h" +#include "Boolean.h" +#include "StringC.h" +#include "OutputCharStream.h" +#include "StringSet.h" +#include "Location.h" +#include "Syntax.h" +#include "Sd.h" +#include "Ptr.h" +#include "LinkProcess.h" +#include "Message.h" +#include "ErrorCountEventHandler.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class SgmlParser; +struct StorageObjectSpec; + +class SgmlsSubdocState { +public: + SgmlsSubdocState(); + SgmlsSubdocState(const SgmlParser *); + void init(const SgmlParser *); + void swap(SgmlsSubdocState &); +protected: + const SgmlParser *parser_; + StringSet definedEntities_; + StringSet definedNotations_; + Boolean haveLinkProcess_; + LinkProcess linkProcess_; +private: + SgmlsSubdocState(const SgmlsSubdocState &); // undefined + void operator=(const SgmlsSubdocState &); // undefined +}; + +class SgmlsEventHandler : public ErrorCountEventHandler, + private SgmlsSubdocState, private Messenger { +public: + enum { + outputAll = 07777, + outputLine = 01, + outputEntity = 02, + outputId = 04, + outputIncluded = 010, + outputNotationSysid = 020, + outputNonSgml = 040, + outputEmpty = 0100, + outputDataAtt = 0200, + outputComment = 0400, + outputTagOmission = 01000, + outputAttributeOmission = 02000, + outputParserInformation = 04000, + outputPostfix = 010000, // note this not in outputAll + }; + + SgmlsEventHandler(const SgmlParser *, + OutputCharStream *, + Messenger *, + unsigned outputFlags); + ~SgmlsEventHandler(); + void data(DataEvent *); + void startElement(StartElementEvent *); + void endElement(EndElementEvent *); + void pi(PiEvent *); + void commentDecl(CommentDeclEvent *); + void sdataEntity(SdataEntityEvent *); + void externalDataEntity(ExternalDataEntityEvent *); + void subdocEntity(SubdocEntityEvent *); + void nonSgmlChar(NonSgmlCharEvent *); + void appinfo(AppinfoEvent *); + void uselink(UselinkEvent *); + void sgmlDecl(SgmlDeclEvent *); + void endProlog(EndPrologEvent *); + void message(MessageEvent *); + void entityDefaulted(EntityDefaultedEvent *event); +protected: + void dispatchMessage(const Message &); + void initMessage(Message &); +private: + SgmlsEventHandler(const SgmlsEventHandler &); // undefined + void operator=(const SgmlsEventHandler &); // undefined + + void features(unsigned outputFlags); + void attributes(const AttributeList &attributes, char code, + const StringC *ownerName); + void startAttribute(const StringC &name, char code, + const StringC *ownerName); + void defineEntity(const Entity *entity); + void defineExternalDataEntity(const ExternalDataEntity *entity); + void defineSubdocEntity(const SubdocEntity *entity); + void defineExternalTextEntity(const ExternalEntity *entity); + void defineInternalEntity(const InternalEntity *entity); + void defineNotation(const Notation *notation); + void externalId(const ExternalId &id, Boolean outputFile = 1); + Boolean markEntity(const Entity *); + Boolean markNotation(const Notation *); + void startData(); + void flushData(); + + void outputLocation(const Location &loc); + void outputLocation1(const Location &loc); + void outputString(const StringC &str); + void outputString(const Char *, size_t); + static void escaper(OutputCharStream &, Char); + + OutputCharStream &os(); + + Messenger *messenger_; + Location currentLocation_; + OutputCharStream *os_; + Boolean inDocument_; + Boolean haveData_; + ConstPtr sd_; + ConstPtr syntax_; + const StorageObjectSpec *lastSos_; + unsigned long lastLineno_; + Location lastLoc_; + PackedBoolean outputLine_; + PackedBoolean outputIncluded_; + PackedBoolean outputEntity_; + PackedBoolean outputId_; + PackedBoolean outputNotationSysid_; + PackedBoolean outputNonSgml_; + PackedBoolean outputEmpty_; + PackedBoolean outputDataAtt_; + PackedBoolean outputComment_; + PackedBoolean outputTagOmission_; + PackedBoolean outputAttributeOmission_; + PackedBoolean outputParserInformation_; +}; + +inline +void SgmlsEventHandler::outputString(const StringC &str) +{ + outputString(str.data(), str.size()); +} + +inline +OutputCharStream &SgmlsEventHandler::os() +{ + return *os_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not SgmlsEventHandler_INCLUDED */ diff --git a/nsgmls/StringSet.cxx b/nsgmls/StringSet.cxx new file mode 100644 index 0000000..b36507b --- /dev/null +++ b/nsgmls/StringSet.cxx @@ -0,0 +1,33 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "config.h" +#include "StringSet.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +StringSet::StringSet() +{ +} + +Boolean StringSet::add(const StringC &str) +{ + StringC *p = table_.lookup(str); + if (p) + return 1; + p = new StringC(str); + table_.insert(p); + return 0; +} + +void StringSet::swap(StringSet &to) +{ + table_.swap(to.table_); +} + + +#ifdef SP_NAMESPACE +} +#endif diff --git a/nsgmls/StringSet.h b/nsgmls/StringSet.h new file mode 100644 index 0000000..e48d438 --- /dev/null +++ b/nsgmls/StringSet.h @@ -0,0 +1,43 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef StringSet_INCLUDED +#define StringSet_INCLUDED 1 + +#include "StringC.h" +#include "Hash.h" +#include "Boolean.h" +#include "OwnerTable.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class StringSetKey { +public: + static inline const StringC &key(const StringC &str) { return str; } +}; + +class StringSet { +public: + StringSet(); + Boolean add(const StringC &); // return 1 if already there + void swap(StringSet &); + void clear(); +private: + StringSet(const StringSet &); // undefined + void operator=(const StringSet &); // undefined + OwnerTable table_; +}; + +inline +void StringSet::clear() +{ + table_.clear(); +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not StringSet_INCLUDED */ diff --git a/nsgmls/nsgmls.cxx b/nsgmls/nsgmls.cxx new file mode 100644 index 0000000..8f0859d --- /dev/null +++ b/nsgmls/nsgmls.cxx @@ -0,0 +1,274 @@ +// Copyright (c) 1994, 1995 James Clark +// See the file COPYING for copying permission. + +#include "config.h" +#include "Event.h" +#include "MessageEventHandler.h" +#include "SgmlsEventHandler.h" +#include "RastEventHandler.h" +#include "OutputCharStream.h" +#include "Boolean.h" +#include "NsgmlsMessages.h" +#include "MessageArg.h" +#include "ErrnoMessageArg.h" +#include "sptchar.h" +#include "macros.h" +#include "nsgmls.h" + +#include +#include +#include +#include + +#ifdef SP_NAMESPACE +using namespace SP_NAMESPACE; +#endif + +SP_DEFINE_APP(NsgmlsApp) + +const NsgmlsApp::OptionFlags NsgmlsApp::outputOptions[] = { + { SP_T("all"), SgmlsEventHandler::outputAll }, + { SP_T("line"), SgmlsEventHandler::outputLine }, + { SP_T("entity"), SgmlsEventHandler::outputEntity }, + { SP_T("id"), SgmlsEventHandler::outputId }, + { SP_T("included"), SgmlsEventHandler::outputIncluded }, + { SP_T("notation-sysid"), SgmlsEventHandler::outputNotationSysid }, + { SP_T("nonsgml"), SgmlsEventHandler::outputNonSgml }, + { SP_T("empty"), SgmlsEventHandler::outputEmpty }, + { SP_T("data-attribute"), SgmlsEventHandler::outputDataAtt }, + { SP_T("comment"), SgmlsEventHandler::outputComment }, + { SP_T("omitted"), (SgmlsEventHandler::outputTagOmission | + SgmlsEventHandler::outputAttributeOmission ) }, + { SP_T("tagomit"), SgmlsEventHandler::outputTagOmission }, + { SP_T("attromit"), SgmlsEventHandler::outputAttributeOmission }, + { SP_T("version"), SgmlsEventHandler::outputParserInformation }, + { SP_T("all"), 0 }, + }; + + + +class PrologMessageEventHandler : public MessageEventHandler { +public: + PrologMessageEventHandler(class Messenger *messenger); + void endProlog(EndPrologEvent *); +}; + +class XRastEventHandler : public RastEventHandler { +public: + XRastEventHandler(SgmlParser *, + const NsgmlsApp::AppChar *filename, + const StringC &filenameStr, + const OutputCodingSystem *, + CmdLineApp *, + class ::Messenger *messenger); + ~XRastEventHandler(); + void message(MessageEvent *); + void truncateOutput(); + void allLinkTypesActivated(); +private: + class ::Messenger *messenger_; + // file_ must come before os_ so it gets inited first + FileOutputByteStream file_; + EncodeOutputCharStream os_; + const NsgmlsApp::AppChar *filename_; + const StringC filenameStr_; + CmdLineApp *app_; +}; + +NsgmlsApp::NsgmlsApp() +: suppressOutput_(0), + batchMode_(0), + prologOnly_(0), + outputFlags_(0), + rastOption_(0) +{ + registerOption('B', SP_T("batch-mode"), NsgmlsMessages::BHelp); + registerOption('o', SP_T("option"), NsgmlsMessages::option, + NsgmlsMessages::oHelp); + registerOption('p', SP_T("only-prolog"), NsgmlsMessages::pHelp); + registerOption('s', SP_T("no-output"), NsgmlsMessages::sHelp); + registerOption('t', SP_T("rast-file"), NsgmlsMessages::file, + NsgmlsMessages::tHelp); + // FIXME treat these as aliases + registerOption('d', 0, NsgmlsMessages::dHelp); + registerOption('l', 0, NsgmlsMessages::lHelp); + // registerOption('m', SP_T("catalog"), NsgmlsMessages::sysid, NsgmlsMessages::mHelp); + registerOption('m', 0, NsgmlsMessages::sysid, NsgmlsMessages::mHelp); + registerOption('r', 0, NsgmlsMessages::rHelp); + registerOption('u', 0, NsgmlsMessages::uHelp); + registerInfo(NsgmlsMessages::info1); + registerInfo(NsgmlsMessages::info2); + registerInfo(NsgmlsMessages::info3); + registerInfo(NsgmlsMessages::info4); + registerInfo(NsgmlsMessages::info5); + registerInfo(NsgmlsMessages::info6); + registerInfo(NsgmlsMessages::info7); + registerInfo(NsgmlsMessages::info8); +} + +void NsgmlsApp::processOption(AppChar opt, const AppChar *arg) +{ + switch (opt) { + case 'B': + batchMode_ = 1; + break; + case 'd': + // warn about duplicate entity declarations + options_.warnDuplicateEntity = 1; + break; + case 'l': + // output L commands + outputFlags_ |= SgmlsEventHandler::outputLine; + break; + case 'm': + processOption(SP_T('c'), arg); + break; + case 'o': + { + Boolean found = 0; + //was i < SIZEOF(outputOptions) + for (size_t i = 0; outputOptions[i].flag != 0; i++) + if (tcscmp(arg, outputOptions[i].name) == 0) { + outputFlags_ |= outputOptions[i].flag; + found = 1; + break; + } + if (!found) + message(NsgmlsMessages::unknownOutputOption, + StringMessageArg(convertInput(arg))); + } + break; + case 'p': + prologOnly_ = 1; + break; + case 'r': + // warn about defaulted entity reference + options_.warnDefaultEntityReference = 1; + break; + case 's': + suppressOutput_ = 1; + break; + case 't': + rastOption_ = arg; + break; + case 'u': + // warn about undefined elements + options_.warnUndefinedElement = 1; + break; + default: + ParserApp::processOption(opt, arg); + break; + } + if (outputFlags_ & SgmlsEventHandler::outputComment) { + options_.eventsWanted.addCommentDecls(); + options_.eventsWanted.addPrologMarkup(); + } + if (outputFlags_ & SgmlsEventHandler::outputTagOmission) + options_.eventsWanted.addInstanceMarkup(); +} + +int NsgmlsApp::processArguments(int argc, AppChar **argv) +{ + if (batchMode_) { + int ret = 0; + for (int i = 0; i < argc; i++) { + if (rastOption_) { + rastFile_.assign(rastOption_, tcslen(rastOption_)); + rastFile_.append(argv[i], tcslen(argv[i])); + rastFile_ += SP_T('\0'); + } + int tem = ParserApp::processArguments(1, argv + i); + if (tem > ret) + ret = tem; + } + return ret; + } + else + return ParserApp::processArguments(argc, argv); +} + +void NsgmlsApp::allLinkTypesActivated() +{ + if (!rastOption_) + ParserApp::allLinkTypesActivated(); +} + +ErrorCountEventHandler *NsgmlsApp::makeEventHandler() +{ + if (prologOnly_) + return new PrologMessageEventHandler(this); + else if (rastOption_) { + const AppChar *s = batchMode_ ? rastFile_.data() : rastOption_; + return new XRastEventHandler(&parser_, s, convertInput(s), + outputCodingSystem_, this, this); + } + else if (suppressOutput_) + return new MessageEventHandler(this, &parser_); + else + return new SgmlsEventHandler(&parser_, + makeStdOut(), + this, + outputFlags_); +} + +PrologMessageEventHandler::PrologMessageEventHandler(class Messenger *messenger) +: MessageEventHandler(messenger) +{ +} + +void PrologMessageEventHandler::endProlog(EndPrologEvent *event) +{ + cancel(); + delete event; +} + +XRastEventHandler::XRastEventHandler(SgmlParser *parser, + const NsgmlsApp::AppChar *filename, + const StringC &filenameStr, + const OutputCodingSystem *codingSystem, + CmdLineApp *app, + ::Messenger *messenger) +: RastEventHandler(parser, messenger), + messenger_(messenger), + filename_(filename), + filenameStr_(filenameStr), + app_(app) +{ + errno = 0; + if (!file_.open(filename)) { + messenger->message(CmdLineApp::openFileErrorMessage(), + StringMessageArg(filenameStr), + ErrnoMessageArg(errno)); + exit(1); + } + os_.open(&file_, codingSystem); + setOutputStream(&os_); +} + +XRastEventHandler::~XRastEventHandler() +{ + end(); +} + +void XRastEventHandler::truncateOutput() +{ + os_.flush(); + errno = 0; + if (!file_.close()) + messenger_->message(CmdLineApp::closeFileErrorMessage(), + StringMessageArg(filenameStr_), + ErrnoMessageArg(errno)); + errno = 0; + if (!file_.open(filename_)) { + messenger_->message(CmdLineApp::openFileErrorMessage(), + StringMessageArg(filenameStr_), + ErrnoMessageArg(errno)); + exit(1); + } +} + +void XRastEventHandler::message(MessageEvent *event) +{ + messenger_->dispatchMessage(event->message()); + ErrorCountEventHandler::message(event); +} diff --git a/nsgmls/nsgmls.dsp b/nsgmls/nsgmls.dsp new file mode 100644 index 0000000..3b2be46 --- /dev/null +++ b/nsgmls/nsgmls.dsp @@ -0,0 +1,253 @@ +# Microsoft Developer Studio Project File - Name="nsgmls" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=nsgmls - Win32 Release +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "nsgmls.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "nsgmls.mak" CFG="nsgmls - Win32 Release" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "nsgmls - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "nsgmls - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "nsgmls - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir ".\Release" +# PROP BASE Intermediate_Dir ".\Release" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir ".\Release" +# PROP Intermediate_Dir ".\Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /YX /FD /c +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"..\bin\onsgmls.exe" +# SUBTRACT LINK32 /profile + +!ELSEIF "$(CFG)" == "nsgmls - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir ".\Debug" +# PROP BASE Intermediate_Dir ".\Debug" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir ".\Debug" +# PROP Intermediate_Dir ".\Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /YX /FD /c +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\dbgbin\onsgmls.exe" + +!ENDIF + +# Begin Target + +# Name "nsgmls - Win32 Release" +# Name "nsgmls - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat;for;f90" +# Begin Source File + +SOURCE=.\nsgmls.cxx +# End Source File +# Begin Source File + +SOURCE=.\nsgmls_inst.cxx +# End Source File +# Begin Source File + +SOURCE=.\nsgmls_inst.m4 + +!IF "$(CFG)" == "nsgmls - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\nsgmls_inst.m4 +InputName=nsgmls_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ELSEIF "$(CFG)" == "nsgmls - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\nsgmls_inst.m4 +InputName=nsgmls_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\NsgmlsMessages.msg + +!IF "$(CFG)" == "nsgmls - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\NsgmlsMessages.msg +InputName=NsgmlsMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "nsgmls - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\NsgmlsMessages.msg +InputName=NsgmlsMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\RastEventHandler.cxx +# End Source File +# Begin Source File + +SOURCE=.\RastEventHandlerMessages.msg + +!IF "$(CFG)" == "nsgmls - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\RastEventHandlerMessages.msg +InputName=RastEventHandlerMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "nsgmls - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\RastEventHandlerMessages.msg +InputName=RastEventHandlerMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\SgmlsEventHandler.cxx +# End Source File +# Begin Source File + +SOURCE=.\StringSet.cxx +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd" +# Begin Source File + +SOURCE=.\NsgmlsMessages.h +# End Source File +# Begin Source File + +SOURCE=.\RastEventHandler.h +# End Source File +# Begin Source File + +SOURCE=.\RastEventHandlerMessages.h +# End Source File +# Begin Source File + +SOURCE=.\SgmlsEventHandler.h +# End Source File +# Begin Source File + +SOURCE=.\StringSet.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# Begin Source File + +SOURCE=.\nsgmls.rc +# End Source File +# Begin Source File + +SOURCE=.\NsgmlsMessages.rc +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\RastEventHandlerMessages.rc +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# End Group +# End Target +# End Project + diff --git a/nsgmls/nsgmls.h b/nsgmls/nsgmls.h new file mode 100644 index 0000000..3ca8b2c --- /dev/null +++ b/nsgmls/nsgmls.h @@ -0,0 +1,40 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#ifndef Nsgmls_INCLUDED +#define Nsgmls_INCLUDED 1 + +#include "ParserApp.h" +#include "Boolean.h" + +#ifdef SP_NAMESPACE +using namespace SP_NAMESPACE; +#endif + +class SgmlsEventHander; + +class NsgmlsApp : public ParserApp { +public: + NsgmlsApp(); + int processArguments(int argc, AppChar **argv); + ErrorCountEventHandler *makeEventHandler(); + void processOption(AppChar opt, const AppChar *arg); + void allLinkTypesActivated(); + + typedef struct { + // Qualifier works around CodeWarrior bug + const CmdLineApp::AppChar *name; + const unsigned flag; + } OptionFlags; + static const OptionFlags outputOptions[]; + +private: + Boolean suppressOutput_; + Boolean prologOnly_; + unsigned outputFlags_; + String rastFile_; + const AppChar *rastOption_; + Boolean batchMode_; +}; + +#endif diff --git a/nsgmls/nsgmls.rc b/nsgmls/nsgmls.rc new file mode 100644 index 0000000..464f913 --- /dev/null +++ b/nsgmls/nsgmls.rc @@ -0,0 +1,5 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#include "NsgmlsMessages.rc" +#include "RastEventHandlerMessages.rc" diff --git a/nsgmls/nsgmls_inst.cxx b/nsgmls/nsgmls_inst.cxx new file mode 100644 index 0000000..ddbef81 --- /dev/null +++ b/nsgmls/nsgmls_inst.cxx @@ -0,0 +1,115 @@ +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + + +#ifdef SP_NAMESPACE +} +#endif +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "config.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "Vector.h" +#include "PointerTable.h" +#include "OwnerTable.h" +#include "Vector.h" +#include "IQueue.h" +#include "Owner.h" +#undef SP_DEFINE_TEMPLATES + +#include "StringSet.h" +#include "RastEventHandler.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#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_0; +#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_1; +#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_2; +#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_3; +#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_4; +#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_5; +#endif +#endif +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/nsgmls/nsgmls_inst.m4 b/nsgmls/nsgmls_inst.m4 new file mode 100644 index 0000000..5983ee0 --- /dev/null +++ b/nsgmls/nsgmls_inst.m4 @@ -0,0 +1,35 @@ +// Copyright (c) 1994 James Clark +// See the file COPYING for copying permission. + +#include "config.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "Vector.h" +#include "PointerTable.h" +#include "OwnerTable.h" +#include "Vector.h" +#include "IQueue.h" +#include "Owner.h" +#undef SP_DEFINE_TEMPLATES + +#include "StringSet.h" +#include "RastEventHandler.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +__instantiate(`PointerTable') +__instantiate(`OwnerTable') +__instantiate(Vector) +__instantiate(Owner) +__instantiate(IQueue) +__instantiate(Vector >) + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/packaging/opensp-multilib.patch b/packaging/opensp-multilib.patch new file mode 100644 index 0000000..a988613 --- /dev/null +++ b/packaging/opensp-multilib.patch @@ -0,0 +1,91 @@ +--- OpenSP-1.5.2/configure.in.multilib 2005-12-23 14:15:21.000000000 +0000 ++++ OpenSP-1.5.2/configure.in 2006-06-13 13:36:49.000000000 +0100 +@@ -90,7 +90,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 + +--- OpenSP-1.5.2/lib/parser_inst.cxx.multilib 2005-07-21 16:33:41.000000000 +0100 ++++ OpenSP-1.5.2/lib/parser_inst.cxx 2006-06-13 13:36:49.000000000 +0100 +@@ -9,6 +9,7 @@ + // Copyright (c) 1994 James Clark + // See the file COPYING for copying permission. + ++#include + #include "splib.h" + + #ifdef SP_MANUAL_INST +@@ -1338,7 +1339,7 @@ + #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 +--- OpenSP-1.5.2/lib/parser_inst.m4.multilib 2005-05-14 10:17:35.000000000 +0100 ++++ OpenSP-1.5.2/lib/parser_inst.m4 2006-06-13 13:36:49.000000000 +0100 +@@ -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) + // 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 + +--- OpenSP-1.5.2/config.h.in.multilib 2005-11-05 09:43:42.000000000 +0000 ++++ OpenSP-1.5.2/config.h.in 2006-06-13 13:41:45.000000000 +0100 +@@ -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/packaging/opensp-nodeids.patch b/packaging/opensp-nodeids.patch new file mode 100644 index 0000000..4e539d0 --- /dev/null +++ b/packaging/opensp-nodeids.patch @@ -0,0 +1,128 @@ +--- OpenSP-1.5.2/docsrc/releasenotes.xml.nodeids 2006-10-13 13:54:59.000000000 +0100 ++++ OpenSP-1.5.2/docsrc/releasenotes.xml 2006-10-13 13:58:25.000000000 +0100 +@@ -1,7 +1,7 @@ + + +- ++ + + OpenSP 1.5.2 + Release Notes +@@ -16,7 +16,7 @@ + + + +- OpenSP 1.5.2 Release Notes ++ OpenSP 1.5.2 Release Notes + + The OpenJade project provides a suite of tools and libraries for + validating, processing and applying DSSSL (Document Style Semantics and +@@ -29,7 +29,7 @@ + can be used as a basis for either open source or commerical projects. The + library can be built as either a dynamic or static library. + +- Applications of OpenSP ++ Applications of OpenSP + The OpenSP library has been used in a number of projects. The + World Wide Web consortium on-line HTML and XHTML validator is based on the + OpenSP library. In addition to the OpenSP library a set of command line tools +@@ -41,7 +41,7 @@ + tools. + + +- Obtaining OpenSP ++ Obtaining OpenSP + OpenSP is a project hosted at sourceforge.net and is available + from the OpenJade web site at http://openjade.sourceforge.net or directly from + the OpenJade project page at http://sourceforge.net/projects/openjade +@@ -49,7 +49,7 @@ + linkend="bindist"/> for information on how to obtain pre-compiled + binary packages. + +- Supported Platforms ++ Supported Platforms + OpenSP is intended to be as portable as possible. It should be + possible to compile and build on most contemporary UNIX type platforms. In + addition OpenSP should also build on Microsoft's Win32 based operating +@@ -166,7 +166,7 @@ + openjade-devel@lists.sourceforge.net, including any + diffs/patches you have used. + +- Building OpenSP from Source ++ Building OpenSP from Source + OpenSP requires 20Mb to 50Mb of disk space to build. An + installation will require around 10Mb to 20Mb depending on + architecture. +@@ -249,7 +249,7 @@ + the latest version of OpenSP to be available from your distributor in due + course. + +- Installation ++ Installation + In addition to the OpenSP executables and libraries you will also + need various DTDs and declaration files. Some DTDs and associated files + (entity definitions) are available in the pubtext +@@ -263,7 +263,7 @@ + recommended that you set up and use such a catalog system. + + +- Support ++ Support + If, after reading the documentation, you still have a problem, + then you may require some additional help. The OpenJade project is a volunteer + effort and as such does not provide any formal support. Instead, you should +@@ -299,7 +299,7 @@ + often the case that someone has had the same problem before. + + +- Version 1.5.2 ++ Version 1.5.2 + Released December 2005. + The release contains a number of enhancements together with + support for version 4.0 of the GNU C++ compiler. +@@ -418,7 +418,7 @@ + + + +- Version 1.5.1 ++ Version 1.5.1 + Released October 2003. + The release contains a number of new features together with + support for version 3.3 for the GNU C++ compiler. +@@ -613,7 +613,7 @@ + + + +- Version 1.5 ++ Version 1.5 + Released November 2002. + In addition to many new features this version also supports the + latest GNU C++ compiler: gcc 3.2 at the time of writing. +@@ -976,7 +976,7 @@ + + + +- ++ + Version 1.4 + Released February 2000 + Version 1.4 added many improvements. Changes +@@ -1023,7 +1023,7 @@ + + + +- Version 1.3.4 ++ Version 1.3.4 + Released October 1999 + The second release from the OpenJade project. This version was + distributed as part of OpenJade 1.3 +@@ -1040,7 +1040,7 @@ + + + +- Version 1.3.3 ++ Version 1.3.3 + The first release from the OpenJade project + + diff --git a/packaging/opensp-sigsegv.patch b/packaging/opensp-sigsegv.patch new file mode 100644 index 0000000..69bd3a9 --- /dev/null +++ b/packaging/opensp-sigsegv.patch @@ -0,0 +1,20 @@ +--- OpenSP-1.5.2/lib/ExtendEntityManager.cxx 2005-11-05 10:05:20.000000000 +0100 ++++ OpenSP-1.5.2.new/lib/ExtendEntityManager.cxx 2007-06-21 12:56:26.000000000 +0200 +@@ -1238,7 +1238,8 @@ StorageObjectSpec::StorageObjectSpec() + } + + StorageObjectSpec::StorageObjectSpec(const StorageObjectSpec& x) +-: codingSystemName(x.codingSystemName), ++: storageManager(x.storageManager), ++ codingSystemName(x.codingSystemName), + codingSystem(x.codingSystem), + specId(x.specId), + baseId(x.baseId), +@@ -1253,6 +1254,7 @@ StorageObjectSpec::StorageObjectSpec(con + StorageObjectSpec& StorageObjectSpec::operator=(const StorageObjectSpec& x) + { + if (this != &x) { ++ storageManager = x.storageManager; + codingSystemName = x.codingSystemName; + codingSystem = x.codingSystem; + specId = x.specId; diff --git a/packaging/opensp.changes b/packaging/opensp.changes new file mode 100644 index 0000000..809fed3 --- /dev/null +++ b/packaging/opensp.changes @@ -0,0 +1,59 @@ +* Fri Aug 31 19:23:58 UTC 2012 - tracy.graydon@intel.com +- TIVI-153: add as dependency for iputils. Imported from MeeGo trunk + +* Fri Dec 05 2008 Anas Nashif 1.5.2 +- Fixed build requirements + +* Mon Feb 11 2008 Ondrej Vasik 1.5.2-7 +- gcc43 rebuild + +* Mon Aug 27 2007 Ondrej Vasik 1.5.2-6 +- License tag change to BSD +- Rebuilt for F8 + +* Thu Jun 21 2007 Ondrej Vasik 1.5.2-5 +- fixed SIGSEGV (bug #245104) + +* Mon Feb 12 2007 Tim Waugh 1.5.2-4 +- Fixed build root. +- Give IDs to nodes in the release notes source to prevent releasenotes.html + having multilib conflicts (bug #228320). + +* Wed Jul 12 2006 Jesse Keating - 1.5.2-3.1 +- rebuild + +* Tue Jun 13 2006 Tim Waugh 1.5.2-3 +- Fixed multilib fix (bug #194702). + +* Fri May 26 2006 Tim Waugh 1.5.2-2 +- Fixed multilib devel conflicts (bug #192741). + +* Fri Feb 10 2006 Jesse Keating - 1.5.2-1.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 1.5.2-1.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Thu Jan 5 2006 Tim Waugh 1.5.2-1 +- 1.5.2. + +* Tue Dec 14 2005 Tim Waugh 1.5.1-2 +- Backported patch from 1.5.2pre1 to fix ArcEngine crash. + +* Tue Dec 13 2005 Tim Waugh 1.5.1-1 +- Back down to 1.5.1 for now. +- Fixes for GCC4.1. + +* Sun Dec 4 2005 Ville Skyttä - 1.5.2-0.1.pre1 +- Fix build dependencies. +- Require exact version of main package in -devel. +- Build with dependency tracking disabled. +- Add %%{_datadir}/xml to default search path. +- Run test suite during build. +- Add URL tag. +- Use %%find_lang. +- Cosmetic improvements. + +* Tue Nov 29 2005 Terje Bless 1.5.2-0.pre1 +- New package OpenSP. + diff --git a/packaging/opensp.spec b/packaging/opensp.spec new file mode 100644 index 0000000..e62a93b --- /dev/null +++ b/packaging/opensp.spec @@ -0,0 +1,103 @@ +#specfile originally created for Fedora, modified for Moblin Linux +Summary: SGML and XML parser +Name: opensp +Version: 1.5.2 +Release: 7 +Requires: sgml-common >= 0.5 +URL: http://openjade.sourceforge.net/ +Source: http://download.sourceforge.net/openjade/OpenSP-%{version}.tar.gz +Patch0: opensp-multilib.patch +Patch1: opensp-nodeids.patch +Patch2: opensp-sigsegv.patch +License: BSD +Group: Applications/Text +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: xmlto + +%description +OpenSP is an implementation of the ISO/IEC 8879:1986 standard SGML +(Standard Generalized Markup Language). OpenSP is based on James +Clark's SP implementation of SGML. OpenSP is a command-line +application and a set of components, including a generic API. + +%package devel +Summary: Files for developing applications that use OpenSP +Requires: %{name} = %{version}-%{release} +Group: Development/Libraries + +%description devel +Header files and libtool library for developing applications that use OpenSP. + + +%prep +%setup -q -n OpenSP-%{version} +%patch0 -p1 -b .multilib +%patch1 -p1 -b .nodeids +%patch2 -p1 -b .sigsegv + +%build +%configure --disable-dependency-tracking --disable-static --enable-http \ + --enable-default-catalog=%{_sysconfdir}/sgml/catalog \ + --enable-default-search-path=%{_datadir}/sgml:%{_datadir}/xml +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT + +make install DESTDIR=$RPM_BUILD_ROOT + +# Fix up libtool libraries +find $RPM_BUILD_ROOT -name '*.la' | \ + xargs perl -p -i -e "s|-L$RPM_BUILD_DIR[\w/.-]*||g" + +# oMy, othis ois osilly. +for file in nsgmls sgmlnorm spam spent sx ; do + ln -s o$file $RPM_BUILD_ROOT%{_bindir}/$file + echo ".so man1/o${file}.1" > $RPM_BUILD_ROOT%{_mandir}/man1/${file}.1 +done + +# +# Rename sx to sgml2xml. +mv $RPM_BUILD_ROOT%{_bindir}/sx $RPM_BUILD_ROOT%{_bindir}/sgml2xml +mv $RPM_BUILD_ROOT%{_mandir}/man1/{sx,sgml2xml}.1 + +# +# Clean out (installed) redundant copies of the docs and DTDs. +rm -rf $RPM_BUILD_ROOT%{_docdir}/OpenSP +rm -rf $RPM_BUILD_ROOT%{_datadir}/OpenSP + +%find_lang sp5 + + +%check +make check || : # failures as of 1.5.2pre1 :( + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files -f sp5.lang +%defattr(-,root,root) +%doc doc/*.htm +%doc docsrc/releasenotes.html +%doc AUTHORS BUGS COPYING ChangeLog NEWS README +%doc pubtext/opensp-implied.dcl +%{_bindir}/* +%{_libdir}/libosp.so.* +%{_mandir}/man1/*.1* + +%files devel +%defattr(-,root,root) +%{_includedir}/OpenSP/* +%{_libdir}/libosp.so +%{_libdir}/libosp.la + + diff --git a/po/ChangeLog b/po/ChangeLog new file mode 100644 index 0000000..598d5e1 --- /dev/null +++ b/po/ChangeLog @@ -0,0 +1,7 @@ +2005-08-26 gettextize + + * Makefile.in.in: Upgrade to gettext-0.14.5. + * Rules-quot: Upgrade to gettext-0.14.5. + * cat-id-tbl.c: Remove file. + * stamp-cat-id: Remove file. + diff --git a/po/LINGUAS b/po/LINGUAS new file mode 100644 index 0000000..285dd2e --- /dev/null +++ b/po/LINGUAS @@ -0,0 +1 @@ +de fr ja sv tr diff --git a/po/Makefile.in.in b/po/Makefile.in.in new file mode 100644 index 0000000..0cc7564 --- /dev/null +++ b/po/Makefile.in.in @@ -0,0 +1,386 @@ +# Makefile for PO directory in any package using GNU gettext. +# Copyright (C) 1995-1997, 2000-2005 by Ulrich Drepper +# +# This file can be copied and used freely without restrictions. It can +# be used in projects which are not available under the GNU General Public +# License but which still want to provide support for the GNU gettext +# functionality. +# Please note that the actual code of GNU gettext is covered by the GNU +# General Public License and is *not* in the public domain. +# +# Origin: gettext-0.14.4 + +PACKAGE = @SP_MESSAGE_DOMAIN@ +VERSION = @VERSION@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ + +SHELL = /bin/sh +@SET_MAKE@ +PERL = @PERL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ + +prefix = @prefix@ +exec_prefix = @exec_prefix@ +datadir = @datadir@ +localedir = $(datadir)/locale +gettextsrcdir = $(datadir)/gettext/po + +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) + +GMSGFMT = @GMSGFMT@ +MSGFMT = @MSGFMT@ +XGETTEXT = @XGETTEXT@ +MSGMERGE = msgmerge +MSGMERGE_UPDATE = @MSGMERGE@ --update +MSGINIT = msginit +MSGCONV = msgconv +MSGFILTER = msgfilter + +POFILES = @POFILES@ +GMOFILES = @GMOFILES@ +UPDATEPOFILES = @UPDATEPOFILES@ +DUMMYPOFILES = @DUMMYPOFILES@ +DISTFILES.common = Makefile.in.in remove-potcdate.sin \ +$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) +DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ +$(POFILES) $(GMOFILES) \ +$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) + +POTFILES = \ + +CATALOGS = @CATALOGS@ + +# Makevars gets inserted here. (Don't remove this line!) + +.SUFFIXES: +.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update + +.po.mo: + @echo "$(MSGFMT) -c -o $@ $<"; \ + $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ + +.po.gmo: + @lang=`echo $* | sed -e 's,.*/,,'`; \ + test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + +.sin.sed: + sed -e '/^#/d' $< > t-$@ + mv t-$@ $@ + + +all: all-@USE_NLS@ + +all-yes: stamp-po +all-no: + +# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no +# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because +# we don't want to bother translators with empty POT files). We assume that +# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. +# In this case, stamp-po is a nop (i.e. a phony target). + +# stamp-po is a timestamp denoting the last time at which the CATALOGS have +# been loosely updated. Its purpose is that when a developer or translator +# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, +# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent +# invocations of "make" will do nothing. This timestamp would not be necessary +# if updating the $(CATALOGS) would always touch them; however, the rule for +# $(POFILES) has been designed to not touch files that don't need to be +# changed. +stamp-po: $(srcdir)/$(DOMAIN).pot + test ! -f $(srcdir)/$(DOMAIN).pot || \ + test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) + @test ! -f $(srcdir)/$(DOMAIN).pot || { \ + echo "touch stamp-po" && \ + echo timestamp > stamp-poT && \ + mv stamp-poT stamp-po; \ + } + +# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', +# otherwise packages like GCC can not be built if only parts of the source +# have been downloaded. + +# This target rebuilds $(DOMAIN).pot; it is an expensive operation. +# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. +# NON-STANDARD method +# If the POT-Creation-Date is not filtered out, then the files always appear +# to differ. +$(DOMAIN).pot-update: $(POTFILES) + $(PERL) -w ../msggen.pl -p $(DOMAIN).po $(POTFILES) + if ! test -f $(srcdir)/$(DOMAIN).pot; then \ + mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ + else \ + TMPPO=`mktemp`; \ + TMPPOT=`mktemp`; \ + grep -v POT-Creation-Date $(DOMAIN).po > $$TMPPO; \ + grep -v POT-Creation-Date $(srcdir)/$(DOMAIN).pot > $$TMPPOT; \ + if cmp -s $$TMPPO $$TMPPOT; then \ + rm -f $(DOMAIN).po; \ + else \ + rm -f $(srcdir)/$(DOMAIN).pot \ + && mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ + fi; \ + rm $$TMPPO $$TMPPOT; \ + fi + + +# This rule has no dependencies: we don't need to update $(DOMAIN).pot at +# every "make" invocation, only create it when it is missing. +# Only "make $(DOMAIN).pot-update" or "make dist" will force an update. +$(srcdir)/$(DOMAIN).pot: + $(MAKE) $(DOMAIN).pot-update + + +# This target rebuilds a PO file if $(DOMAIN).pot has changed. +# Note that a PO file is not touched if it doesn't need to be changed. +$(POFILES): $(srcdir)/$(DOMAIN).pot + @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ + if test -f "$(srcdir)/$${lang}.po"; then \ + test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + else \ + $(MAKE) $${lang}.po-create; \ + fi + + +install: install-exec install-data +install-exec: +install-data: install-data-@USE_NLS@ + if test "$(PACKAGE)" = "gettext-tools"; then \ + $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ + for file in $(DISTFILES.common) Makevars.template; do \ + $(INSTALL_DATA) $(srcdir)/$$file \ + $(DESTDIR)$(gettextsrcdir)/$$file; \ + done; \ + for file in Makevars; do \ + rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ + done; \ + else \ + : ; \ + fi +install-data-no: all +install-data-yes: all + $(mkinstalldirs) $(DESTDIR)$(datadir) + @catalogs='$(CATALOGS)'; \ + for cat in $$catalogs; do \ + cat=`basename $$cat`; \ + lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ + dir=$(localedir)/$$lang/LC_MESSAGES; \ + $(mkinstalldirs) $(DESTDIR)$$dir; \ + if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ + $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ + echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ + for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ + if test -n "$$lc"; then \ + if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ + link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ + mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ + mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ + (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ + for file in *; do \ + if test -f $$file; then \ + ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ + fi; \ + done); \ + rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ + else \ + if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ + :; \ + else \ + rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ + mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ + fi; \ + fi; \ + rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ + ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ + ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ + cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ + echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ + fi; \ + done; \ + done + +install-strip: install + +installdirs: installdirs-exec installdirs-data +installdirs-exec: +installdirs-data: installdirs-data-@USE_NLS@ + if test "$(PACKAGE)" = "gettext-tools"; then \ + $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ + else \ + : ; \ + fi +installdirs-data-no: +installdirs-data-yes: + $(mkinstalldirs) $(DESTDIR)$(datadir) + @catalogs='$(CATALOGS)'; \ + for cat in $$catalogs; do \ + cat=`basename $$cat`; \ + lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ + dir=$(localedir)/$$lang/LC_MESSAGES; \ + $(mkinstalldirs) $(DESTDIR)$$dir; \ + for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ + if test -n "$$lc"; then \ + if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ + link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ + mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ + mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ + (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ + for file in *; do \ + if test -f $$file; then \ + ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ + fi; \ + done); \ + rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ + else \ + if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ + :; \ + else \ + rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ + mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ + fi; \ + fi; \ + fi; \ + done; \ + done + +# Define this as empty until I found a useful application. +installcheck: + +uninstall: uninstall-exec uninstall-data +uninstall-exec: +uninstall-data: uninstall-data-@USE_NLS@ + if test "$(PACKAGE)" = "gettext-tools"; then \ + for file in $(DISTFILES.common) Makevars.template; do \ + rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ + done; \ + else \ + : ; \ + fi +uninstall-data-no: +uninstall-data-yes: + catalogs='$(CATALOGS)'; \ + for cat in $$catalogs; do \ + cat=`basename $$cat`; \ + lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ + for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ + rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ + done; \ + done + +check: all + +info dvi ps pdf html tags TAGS ctags CTAGS ID: + +mostlyclean: + rm -f remove-potcdate.sed + rm -f stamp-poT + rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po + rm -fr *.o + +clean: mostlyclean + +distclean: clean + rm -f Makefile Makefile.in POTFILES *.mo + +maintainer-clean: distclean + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + rm -f stamp-po $(GMOFILES) + +distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) +dist distdir: + $(MAKE) update-po + @$(MAKE) dist2 +# This is a separate target because 'update-po' must be executed before. +dist2: stamp-po $(DISTFILES) + dists="$(DISTFILES)"; \ + if test "$(PACKAGE)" = "gettext-tools"; then \ + dists="$$dists Makevars.template"; \ + fi; \ + if test -f $(srcdir)/$(DOMAIN).pot; then \ + dists="$$dists $(DOMAIN).pot stamp-po"; \ + fi; \ + if test -f $(srcdir)/ChangeLog; then \ + dists="$$dists ChangeLog"; \ + fi; \ + for i in 0 1 2 3 4 5 6 7 8 9; do \ + if test -f $(srcdir)/ChangeLog.$$i; then \ + dists="$$dists ChangeLog.$$i"; \ + fi; \ + done; \ + if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ + for file in $$dists; do \ + if test -f $$file; then \ + cp -p $$file $(distdir) || exit 1; \ + else \ + cp -p $(srcdir)/$$file $(distdir) || exit 1; \ + fi; \ + done + +update-po: Makefile + $(MAKE) $(DOMAIN).pot-update + test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) + $(MAKE) update-gmo + +# General rule for creating PO files. + +.nop.po-create: + @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ + echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ + exit 1 + +# General rule for updating PO files. + +.nop.po-update: + @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ + if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ + tmpdir=`pwd`; \ + echo "$$lang:"; \ + test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ + echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + cd $(srcdir); \ + if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ + rm -f $$tmpdir/$$lang.new.po; \ + else \ + if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ + :; \ + else \ + echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ + exit 1; \ + fi; \ + fi; \ + else \ + echo "msgmerge for $$lang.po failed!" 1>&2; \ + rm -f $$tmpdir/$$lang.new.po; \ + fi + +$(DUMMYPOFILES): + +update-gmo: Makefile $(GMOFILES) + @: + +Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ + cd $(top_builddir) \ + && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ + $(SHELL) ./config.status + +force: + +# Tell versions [3.59,3.63) of GNU make not to export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: + +# Local Variables: +# mode: makefile +# End: diff --git a/po/Makevars b/po/Makevars new file mode 100644 index 0000000..98ee451 --- /dev/null +++ b/po/Makevars @@ -0,0 +1,41 @@ +# Makefile variables for PO directory in any package using GNU gettext. + +# Usually the message domain is the same as the package name. +DOMAIN = $(PACKAGE) + +# These two variables depend on the location of this directory. +subdir = po +top_builddir = .. + +# These options get passed to xgettext. +XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ + +# This is the copyright holder that gets inserted into the header of the +# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding +# package. (Note that the msgstr strings, extracted from the package's +# sources, belong to the copyright holder of the package.) Translators are +# expected to transfer the copyright for their translations to this person +# or entity, or to disclaim their copyright. The empty string stands for +# the public domain; in this case the translators are expected to disclaim +# their copyright. +COPYRIGHT_HOLDER = The OpenJade Project + +# This is the email address or URL to which the translators shall report +# bugs in the untranslated strings: +# - Strings which are not entire sentences, see the maintainer guidelines +# in the GNU gettext documentation, section 'Preparing Strings'. +# - Strings which use unclear terms or require additional context to be +# understood. +# - Strings which make invalid assumptions about notation of date, time or +# money. +# - Pluralisation problems. +# - Incorrect English spelling. +# - Incorrect formatting. +# It can be your email address, or a mailing list address where translators +# can write to without being subscribed, or the URL of a web page through +# which the translators can contact you. +MSGID_BUGS_ADDRESS = openjade-devel@lists.sf.net + +# This is the list of locale categories, beyond LC_MESSAGES, for which the +# message catalogs shall be used. It is usually empty. +EXTRA_LOCALE_CATEGORIES = diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..15108c8 --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,21 @@ +lib/ArcEngineMessages.msg +lib/CatalogMessages.msg +lib/CmdLineAppMessages.msg +lib/EntityAppMessages.msg +lib/EntityManagerMessages.msg +lib/MessageFormatterMessages.msg +lib/MessageReporterMessages.msg +lib/ParserAppMessages.msg +lib/ParserMessages.msg +lib/PosixStorageMessages.msg +lib/StdioStorageMessages.msg +lib/URLStorageMessages.msg +lib/WinInetStorageMessages.msg +nsgmls/NsgmlsMessages.msg +nsgmls/RastEventHandlerMessages.msg +spam/SpamMessages.msg +sx/SxMessages.msg +sx/XmlOutputMessages.msg +sgmlnorm/SgmlnormMessages.msg +spcat/SpcatMessages.msg +spent/SpentMessages.msg diff --git a/po/Rules-quot b/po/Rules-quot new file mode 100644 index 0000000..9c2a995 --- /dev/null +++ b/po/Rules-quot @@ -0,0 +1,47 @@ +# Special Makefile rules for English message catalogs with quotation marks. + +DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot + +.SUFFIXES: .insert-header .po-update-en + +en@quot.po-create: + $(MAKE) en@quot.po-update +en@boldquot.po-create: + $(MAKE) en@boldquot.po-update + +en@quot.po-update: en@quot.po-update-en +en@boldquot.po-update: en@boldquot.po-update-en + +.insert-header.po-update-en: + @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ + if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ + tmpdir=`pwd`; \ + echo "$$lang:"; \ + ll=`echo $$lang | sed -e 's/@.*//'`; \ + LC_ALL=C; export LC_ALL; \ + cd $(srcdir); \ + if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ + if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ + rm -f $$tmpdir/$$lang.new.po; \ + else \ + if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ + :; \ + else \ + echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ + exit 1; \ + fi; \ + fi; \ + else \ + echo "creation of $$lang.po failed!" 1>&2; \ + rm -f $$tmpdir/$$lang.new.po; \ + fi + +en@quot.insert-header: insert-header.sin + sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header + +en@boldquot.insert-header: insert-header.sin + sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header + +mostlyclean: mostlyclean-quot +mostlyclean-quot: + rm -f *.insert-header diff --git a/po/boldquot.sed b/po/boldquot.sed new file mode 100644 index 0000000..4b937aa --- /dev/null +++ b/po/boldquot.sed @@ -0,0 +1,10 @@ +s/"\([^"]*\)"/“\1”/g +s/`\([^`']*\)'/‘\1’/g +s/ '\([^`']*\)' / ‘\1’ /g +s/ '\([^`']*\)'$/ ‘\1’/g +s/^'\([^`']*\)' /‘\1’ /g +s/“”/""/g +s/“/“/g +s/”/”/g +s/‘/‘/g +s/’/’/g diff --git a/po/de.gmo b/po/de.gmo new file mode 100644 index 0000000000000000000000000000000000000000..09164df24c18aa9959132110702dbf670e339cce GIT binary patch literal 92260 zcmc$n31D4Swf;{LK~Uy-l0%`;N)srh3}tHCgc92(B}plRf;Y)cdTDYKauZ6cBA|i; zD$etO^XyYpoPEy;=kfXUsZXDZv(H%+Mc@DTt+n?#=MG6z(Dx6VerNBq$F*LF*iqrrC{nk08UC`s10$u~*1oSP&kfE92R_)Ksa_$BaQaKU*=vKl-T zJO;cBOu=oSzP|`m{I`Kyz^{Uj1G8z_3N08_9G9uM9Oo(R4fR5`u^s$TyAs$RbbMX%-SlH?@t zF`&|W3b+S&8<>JG1l6wZ3;y2*75)dH^4WX6)3qH`J6-@D1#SjKms)V&42tfr2A6{G z2HU~!gW|XSH+VhPf;3IC4OIX82zVO!8&Ldze2=%=W>9q81}fj}py>H*Q0ct^d?@%` zQ1$;gsC<77sy;{edOyDad?M}}z)j%p8@=9_gAd02SWtX&BdGLl2loTt2C9A^2G#$+ z4DJv92vj@W1B%`UU+n#I8Mp}dSit85d>^Rtd>2$Y3;Mj@9||tU-3u!J>p-RdB2awv zCQ$YIFxUou3_KV7O~5ufuhP33JPv#UDE_(~+zb2$D7t+gRDJFR)oyzYI2{*(qVG8% zRY}eZ?q`CMBe#L#)6asiZn8hbTMJ$W!dl7gAgr4F5>)&%E^&I_0&d3rX^MK2;XM<{wZ-6QICvX*b_*KrQ zmw|`kz7-T*UjrTn-T{g)J_kx}{0uw?-0&EeqfZ6T!hHv*cKju{5?n%|(` z0hP}mz+=JvMqLh^0*YQ&f%^V<@O=J9snrRxqhJzq}39_dkN| zVEffhuSbImao-s5wcr`J?*bu3^7nv)Tb&O-1;Xk{+nCFXn?UjH9^*;!G;kZJ@4HpK zKW+w>;C?cwbl(ArK0gMP{t*-2FCGs*8TS{#SAhd0nu31>9}XURjrZdfAXQEt39bU) z1+D{s4-z%GUV~=mq5{XuN_XmbHSy!9}S95PXoKb z{{R&(eXPrgeo%aH3#jmK22TLL0j>h?1J#etdz_DZPXHDF4WRtL1+D>)e!SD`G2p?t zZv&45Uk8fbcY)`D_kaq2`t`2=TnCEpZw5t|*Mld4UjbF`d%-ioW1issa1*HVPJsJ> z&k6po0#n={09F2PgZqJEf@6UF1Ga-l;9d_N4vqwT0(b%L7lEgP-vn2I``qa1^?-|U z*T7!zWuWN#OK>fC)=fTc-vFw-cY(_1e?hh95l{5?TnqN$?gLkVuLCayzYQJ-p8h14 z+n0dizgs}j<4*7}@O$7P;GaO1XCFGxQQ#S%=+Ou2`(r@me=WEOybVyzLk zz(0a(!Sw0g{#!uR<7V(A@Xg>};8(%D!S8@4fIk6M&xhUWxDZ@{`z%m=R0WmJt)S@s zFW^$}^PuW+Z}30)8BX`L;KT7B2M54g!7IVOA z{1kXHxc76sUT1*oaBl%&>EzwuW#F05_3+OI75?ksGH}83obQ)|sz(V_`+ovdI?40B z9_zu2aXtEKhrHt-|hBJh`>+V{X0JH6V$4%}P8v%$B4;m@P~~}Kz+rGX?(4w=z;}UahfjbPf!_uf zf+xJ%`C={j5ZuF{@*f8!FJ1_W-robS1kZhq=l@dhXxzUCj{^69t+)45Q1Lf{s^1Q9 z1^7l#_5UuYcG&%OKCe6wT!s4xa00v>Tn&B}oCNoIy^jyqgKFQefa3qfZ*aYD0362s zEO1Zo4`3g7AE7lRjpuLRYOKLw8k4}Xih&jLmNEuiYP15CjWgO32e3#vSOz17370gu65 z182ZzgX_UP-{$)G0N8{3jbJbMr{G@uc9-8T06X!26?h@|Bk)1s(swwYo(hVOmxHR$ zMc`TBRp2S$i$Im@)1dm_@4*wmhyIJ#^HfmZw}Z!luLVWNPl4ixzk^EWsCRn0>p;=t zNdaFAF2wx_unYVNxE5@Cm&?r=Q2g?K@Idg_;HltlcX<0P2am@+0(O8;16AM8gL{Do zyxZI5C{X-R0o5MUy~oRSIjC@t2YbN}gNK0oyw~e-JlKbO z4fqW31)%!l33s|&c^tSO?r(sq*H6IRz*FAm?$bc=%MNe__;FBtaW8lVc<%eX-ZfC) zZw5v04}qtFKLJ(lBR}B%sRKM1_b7NS_&D$Y@cp3j{Tz55_(kwmaP0@Z-Txg_xL<&( z=ik6h;D!&OBZ030mF|%r_WAWG;MKU_0;*hxe#HCBdhltup8~2q5BjLf%gewgZrUfo}=^zXV0+1HSD2_!Lm}=?29Y(_lY%2e<>=^DADi zn?R+12Pi)J9w<5<^;Or8`oTxyek`bd`YBN5+xKgp?k4ae+|L8|0sjjWzx)CeAMO6{ z&POS@8}8FVnkP9E+yI^p?hW1oJ_LLYxCDGDsPcRgJPlm%b+6Cq;1Rg50`~*AgZqO| z1(n}Rz=wkG1y_R~15@z9|Ka(a2#WsGpy+iwsPcRi6kYxeJQO_l8!pfKLAfj7gTWg> z)$eBT4Dgkp;{OMD82C+4<@gP#{2%sBr+Y8>aNMr}MbD3c%735#^nP+OxF_xl!Lz^~ z@C5J{P<;GWa1r=5aCh)t@Hp`A;5snf&AgK0O2M&QR z1g`-93YNglKlXXs`@t&igMQ-edK0)6_cuVLyXL3pWZ>(;8Su!Tx!k`EyaD%*!5!e} z&wV`o0r+Cvr~Sgm)6aulxYzvB<;_#U4%}Y>&jSzoAD_ox436S{DcB1>=vQ8jesDAH zkAf=4VZZi#pAK%r{jlG7eVznfg8Ro{3ZC~{Z@()+<^NPr{rgMcf#4p$BQAIZDEgiV zimod`)n@=a8~hS@8o1Z*J)LvGZrnG4Yr)S4_rZT~_m$vr_`e>!82mJNB6#E-iWk#eEZ~{9Xg99^V1a01vp&-4}t+!2NjeUEo9i=5+iBcqZsBi3#?op09DT4 zf~&w2AGE;Qdla0+eLJZ3J8<^}#^=M}Gjab2RC%T!yuj%5V(<{$cY>xf#SO( zAL{uGf|ufc3n+fx{b38NUmXDMi@O&*7`zfxJJ&$*=X=2(@SC9MchWu!%#QOsupRfW zK=Ju8`#O$-YR`9q%fX+5l2b?Tx4_21lR%|+A-D(le6SOI8Mq4kK6o~`aQ_9yFOLG{ zemto1-wF1E`yb%-9tM};em;0Sco(=7{6%mdexTFkTu}6w22TV(1gd}i5L^YO2YJ0q zpvwPR@KEsEp!n=}pz3qf!JdCFxC!@bK+*GFQ1X3`L%dukf^E1rgDLoAP<;P-@JR4` zp!&;Sz{C~>IEe)t^xJ^c2M;AEGW71O;F+P0Y%TlkMZ~y zg8Duh@X4UQzXlY2z5RKIy0D0==BlpH$qIB)lBL8bc+P~SfT_JM~lboW+J<^KRE z`u!9<89d^6=eI8K;kaK6s($YSH6Hu`R6P$l!RwiVC*WQRs-71I90fPveth`;IZ)~S z23!d4x5)d^Y2Z1yhe7e-t3c)Vub|rD=in9K!%lR0umu!fejPjrycawi+~=ePrr(?h zZpVE-*a5x|6yN;?RDW2v*wcFwxC8fpgX$kwED3Z2mF_!0<@0e+<@yP@3f%J%3rsJ% zDBvV0dHf=`B6}G`Yot_xOj!jzl%Z9a|`$y@B`q!;FV{1`;LPt?k9ta_j*w6|0PiM z{V6ElOIo|))fd}Kh9#r_}g6D%D1y#ZST;%P4CMfxS1*m@Ze6SsS zJt+Eq9n^T3bUPm$1Bz~ap!ntn@CNWj;2?O!Bc1M#14nWH7!+N4)-6cN;CsNmz@yfC zzKcMOr&oaw0$&D-PhSP9UatlZ0N(|QE}sBZ{=GMNKVAiDoS6c}C%1y)n|Fhf3%mDt zd!GfWo>zg#fiDK7KYkEYfA~FkEZE-b{i+94J*Pp*$yW!w7nGdcxY6Uk22_9eHmGs) zH=ydX;$o-Y6ezmC9NY^20^Aea+~?!yRiNB&0wvep2`c_wpz`0n-}~Wd;40i#fa2em zfvV@n!AF4y4S4)XP~UF`9|OJ(dIZ z;BUc4g6C{@Ie#;F4(>02YL~q(_4YUlRKK}6xUUD*9`6PvKfVKsUkp>K*^hZuk`WyByb1r+d-A%=&QUxJ{J_u;dwb@Y(S_0t3Pg6iK_ zgW}t#fReu-2i0G98}@wKK&3Mb9tS=Vtb(rtRnCLU9&P|s`JWDoPIrOgs{=&w?#ppJPF_XWwqjsd#RdgTH?Rr^EY0@c$EjujKi7@OvSC z@sFl5*|9WylmAYT`9{%`&Vt_(+%LoZ9lpIbr1ihxQ^Why__i0% zi9C`i`ulgjy%T&oehYY?;5nLS5l{SkCGS`AU4L)n5#9F3@4tDD2>y5CcV>9!)pQ`? z=kZ%cIMF!%P2zW<{CFxn`qNmUzfa;`!uMOiGr-s4C;s2ayZ)Yp|I>M%h5JNMf6ou! z%)$FLyu72}cN}iSdh*5K_gUV1@LPlX^SpnI_q%w%5j+65{%B^imwn5f$&2{@2p;|Y z3y;P|{T)U)hJxe{zWpoidwG8kcr(xOA^h9Hf$)xZvW75{6;H+$~s&%g5&|BmF_=^>o_KM~%SgHI0u=>kbt@c$@&pW?Y2_jvgJOw!Qb zvv{6||A%;y| zFuwu!<?$HP4>7-^BAv9{s(8=LtN|=IIQ6zXRV*8u~-L z+TU^DnLIz?c_Gis@qGn&E8(66>hEgs8r=KwzB$C-7QX!}coTlTJO_nu(oe3(|34I& zzt`~o9-iOxT+6e?y_2VcuP4rL@!NyoxIn;7lB8EhlVhyFgCY3 z6~8azCq3owJYVAdT_Ft4gds3FCb*x3n;{|llP>cr9>jj~I#6Tpk9off+=n=i3Gq5` zKPbF2G}_-sz}hlLeiGk5#`_^5 z?dS6Sb37;WJTdt3YJVCp_4jG~@9@{`--m_t_UGFd@zvNr&ik)}|BrEhpZ6*JHfOQu zgShqgdxz{_o!|LiTnz8Y=Rz9$fv*ei$A)+x1|J>X6?um5Uk<4}r{FKIhXwb0c^@I% zV{w0gXE)xT!ZXVILqJr{QE#!Su zh;v}TYr((c|9J3R!n_CkZ}4e6`ujTHo&xR`!oQFA|KfQI{_!v6<=wasFZg{NzpsS= zuOsg5ye|je$1@nx`f3ROAK)ACla8*xWxW3-eEYR~*}tFR-y`vtE~3A$5bjdk57T=H zzZrZ9?hoF+bR_u|=ychu)z^IQ9Ze#3hk&x`r~>EI_g9``HoU&i}`ct4qU{XH9e8_x%LU&3<$&!IdY4Cy}& zd>L-(ZM*Y+X^3|g?;qv)68G73-~7DA4|Z=5cngwFW}p` zJd1eO-)q2Uhwv{5cnY`>{}Xt|c>f{cp3L*B@Llorx7s0jJ^ot=8~;wl{aBuTc;1iy z9^u<60=$;@d+@)FXK{=Gz7zik^IXjP6yMf{IKx8RRq$Kjg(1!pdDq`FJ8(aR=exM|_fv=D zPq-hBzy99MvkLbi;IDW-!t*npf8+ZN_@5Kv;$?PU;jKJJ@|;VUtL4Gp350tnco}~G z64HKhh&zM(F?`#=^AnyMaQ~2R2lM<0_lLndcm{ZX72nPPuLs-k+o2vSotKi3RKaWR$ zr}3-{VdbvqAO2p!^Jt#8g>P4ae+}=?z<(X_@8nq-{QicY{yy)JOz`b?z8xI$k@so1 zZvji-dH7F1_MCT1p+<8#mPiQ)2?d#BS|O4I4^ zM7gFsy=k&PZjdHm&@N0TwMw zujt)4(B0ef=(PW`{_f89_VxtNNVAz5DVAz!DXq;6)}|}dB51WVURI!?QdJ2LmML+W zicgM}hP>9IR|%hyvX>X4l&7vGDMcm1P>F=o3dJF5(%4d-nl1D{E~CamPK?Ye?}_TQ z<*Dgf+P`+gdNuH+8`iheqUmI5szwu)s>A8ErLoFzX&RUEuz%6vT^d7+yrr?RiEWUMmg^kow00;rCEE~i{l<9)tW;~$B{*s) z8Bb14j7^LxP^D^>U71c)$F`@7PP6($3fff_s+IK)V?r1&_bx`7QXjMm&l+)hVyil5 zA*Z<__1A@@u?9NUu8Dc1FrL+2e5hVNPSe!3(~ri}$}r6*c>ybDvV_Xd&;ise)q;2I z5lSXV8`1kH$+=TW2QI+BBkRJS`7bAX$;CTJjO8Th8gw7Kl6~dRJ%0 z2LX6PF*0__1Js;XvZ%0WDW!MPowLxY=k#`?cg&$x**)*kaZ6 znyO4f?m)X10Zm9nl3L%T`wdN0ho<0h*rPgKx~@gES<6xscv}#r;}b9}LcU5TDyOSq z&}(KS*6(kc;=19hk-ZvkCZK!X{5F&zr+x4cpOn(Uu~K#GoS9k;3slY1bAD@4Q16t5 z?qn?&M3)U9b&Z&HJOvx6R4cVD(3s&`be=BZQ5}s!5mp;!&_?()1un2~2r@sZoNn7P z!2ncq+BMaDplltd1Rza|3xWi5(qUoc?MAuc!ZI-gm|pcoa%;!G~9!3&L~lu z8cru>rYEUmiJC~%RCZA5tPn+69Lk_hEyiPPse0d_U&+&YUxfi@TV;Anivp?)Hg*p( zxRT$LHMzu^#w+W?m7#)&Q+S5Cn&~&EC5wZYPfJsyHjJ4bvn2N)o1jbtE_jWXYqip7 zc}cP~McwVVu(Pjj;G2TUD^qIZGIF-8(xp_!!j-S1e#*O+bo6uv<*1`?ZPGD0N#m#G zsVVwv$bdn1!u#@~W$j7F)KDknzfip46bgJYT!yX4jy7UwDz!0o64+})f1w1i*_K*a zI(ye_+R)WAAkt24Z%@{st*!4}Yfcf`RhF@diAgS5ktXM(Iys1AiIkvr_H|uY5N>NW z_4O&mZ1_kNk?|)TDVL^aD1sQeGCt|LB0S#N-Pg5dpttX`L__^>1%-(ap-W`_p{P$t z)5Kiwr4WKvH(uLhUYu0b->{{5KbXIEUgxif{Q6WYNAGxd@Q%_erM+DXg{jafVS<*T zPtn-z$%cvH%80Wpntmp+hp3xsCE+8E>FLkfPuD;jQhSh0Ml}LV zO}D`(R=~>mI4U1P9Tj?HA`Fs)+tEnIq*x6r;B4`O9A!RoQE%UXgo(N&nRWGatX`jX zZ`jb)i3?sfd0R`nHf$WYtfy~-hwB}aM;3Rt58DuEeH+-gR9)9>QLm zg81|?>Aj?@udlnaE6+F^I}r0hjP&#-y>SSvms$lDZI5AwCZH2Tapobd85XK(TxPJy z{Id}e5+ag@t%X8H`sUM@_GF``Z0WYC>2?Nyp)E+3Arr%D(2dslQ%yalh7gGIK@afJ zwpkT0T{e?@^9c-R#sO+R!COez`9#b5s?lKQRS%U~V+>p3dv>*=N&hbcrlK7)+Mx>46fWx%lB zoNL)hUujz?Lc8Ai2UE;cWk{+mgOAKl5(0}wS2KK6)6M0spyg+0?|j?Zz}_sb#L=s3miK-v*gziHdqi_SuYPCKQR} zRFcal2{n~OgY_AwpRtnGN}9@$4YxM9ySlmyBfk&uO{qpjLF1o{eP-73e=%+a9lcQ{ zPx{ra3^Z*+G)R1(fI$%inR^?L#i_zbHUZsXuW^JTQMUz^xzG~z zI&=s%fqEU)N-N_Mitpg3$Pk4>i2=zWv{ePR33^!SeT>up|= z+hv1J&1j3Q#}&V#o*W~Z9Tzif5IrpdPESPbEr=+e&cqR+e`azLl?8R!hNbpofZ@`t zGx<1^3|zLcD;c2Gl*GceHq`)?)7r+y0h`cQs-nM%`1WMenw|}7F6!uW8Dgg8toee? zhEcK5kzl>`A&y1vALtv{)yRsIZ0cK|_Mu&f)5J7VSIkqIQH|B3WtOyfj>z^g)z~@BNxBxXidTk!qJ|NHD_?JfIRu zU{1}rdLi1mq_;^nlXf~^Qc7o0?1DrM+AMSKNKjt`s1wqpVn!xg29P#gR9op_n9l0W zY+2`0_rn-3byCxg2bPdn(tEP+GhQ~ zb%r^a=}4KGDOfy$G6L0EQ{#J4mkXV+QJX6+Tv>%(g+zDjH^WcR`bn(bW}=R1S<6YbX2iWW2>t}n+Z)O24r)?k_39~uB8ynN86?*SZz4_ z>}WAVN73kd4kll$1SY8%ythp;i%sI9lgA0OA)9;576E3>7PabzCKm}!{RHnv!>bFt2;D^kCfphy0 z*2Fm72uy(rY${*2nWQL1(44acg$64UqQSSCMAL8H$53_Y7$=!MfmM*Os+i;fEDAF$ zmW-@t6o_gHwW~IWfa1;)I6LdbJ4=8%*yN-T#kxr}`{pUR{j$Lw`&=Qq_j{vF^H;5y zXn~X7NWTgMv6`5y%#`C;oyAIL(Xu6y8auIFXC(`>fMVjYmL@5!Xu-TnvMBw@U{1IgC|ou#tzjl%ZmFpz zFqPOkX2vvTXH<%^AZB~4230MV=$ZARiUgUMc()tY_7vo$?_SbS>c$2)9=K5;uwsaz zaXU9ikhNtRMuD(8*3*md9ZuJG_pHm8$S`t~r+9B@OsmZG!*RNJ(P>Mv04yC=sx$eP zD9VLB;@Zjt<~?6)Y6|KrzJ=`@(Q-FuTL8HZ_^44UBkFD6K(^|_e z&zdz>(l8JWn2+XNmNhRc(6UpXlVS{pD_Qjlb@JK0Z6;~lYebQn4f0uY%`<`e zj)E|oU%m}Shk3`V>xJ{nsvxK5S-4zN3ChmAix<`mOeo}$e7~pf@Cdyd-M%POaQga> zSzV_qSbsw0%x(&g6#KII$@ zO#Zc5H0M2zn7h8WZ|Bh)l(KC0l*|z|F8$Zf3TKPjqzP(1<^y+en6loN4N|JDN32y4 z4I^0aS?fa*8=QxE3WpB)xN%>HD z5)H%mrWQBpiaM>Nc2i+R6JJEn8_go;OJ&-*74|2i3e{3G8|0xOcY`jLX#jB}L0G+# z?pt4ghKNPIIIR26m5(M1vXjmgCYV6;AjWusKjLiPc5LK9@-ef7<#<#(jTkWMclO0i zl!eUmXn}_`=PV=;*8rBLaRp(itqa(403(BZ?LCgvzK6Q6>;E8+{(pWR{Tn;h?5rv^ z6d)ER@)gUljXdqFj8>*au5^7_)=il#HbqCvvWGqs)c!)Z&*X$8rWO=4VJhY>_8JSOEsBz-4-GZKMdtU03kztbUq`Ml^Z;9R%9794oa4;8 zt}71t8dY=XF!z<%wpl67JxjV+^<=uusgq^2sb^DvS7$@CoR@a8;Xf}^9;Hqt&*cPz zk+k>%=RF((t=;&F~Wt}tAe;9eMnL)Sl?air~ zOKt19hk(jC-(>-9_T~Gq$(AtjXpkvDWT<@rT1eI|EOq)io`QXGQ+nIT-68?AStCZV z=&?tQf}qgLIFqxbCy{N^u(TA&k1kQ!()eIybcR{-N-eci;TVQr+bWRvP}br#P9Uu$ zTvWtxTxHSnsH?E)KA6>w?u!KNZg5XhqrlkIs9htN#=wkZ7yOKH&=g&e%}r~luUzE#m}m*#8*r+k_SuV^ax z@_%B%i|u~D3ou@}4hEK7%Fg4NLYT&*du2rOc3bUhU>cpqQ{#>if=!(!Ol#@dzK!cI zSs#o9Hlj$@jml&e3@z}>Vr&gHj2EM9NUfUsv1mCqg)BHbqo*r&dLZ45g<)bFn?cR^ zP-{$>tt}H{Y+>fKgBj&~zM3V}^qHOSX=#+>7wH(*j;Ug%O<{v|&&^aj2`LK3rq!NzO3UPZ`~b(lGnlrleb)eD>|pmW~$6 zeeof4a)N>#?HF!y|16ZIg_*%SR~X5l-r_AgVp7Z#DS-)F8_S~2a?Y<39V6_<;f#t6 z*xCejStlnCIBU>7aGCA%^#owuY#?Z$cdk}=tfd~iyQ_aGd(HK5mLWjD6tbRPjxKOc zG?cuUw3&bM_Q{jpSwh7+`_6xe6|6gXdYEh?d3Ii#a0r6}htn6$ac3=VJg=e1c9uhN zt+UY?X{09en1ud}PEcyhs1KWu=b5#tA#~hjO2qh@Q%+-}7@8rFUC5(_Fq)Cn4}f8W zL4b$>nT_Q3&ZtGX_RbOGWLT3V|Cdqpe#|^g^~$uexOx*iY}{}fM!xvjOy@GTCRxlZ zq(v>Pie@3AIX?5SR8-rBRkr#74T3rrfq15K?MmQtM4=hXQKRv2gv7L!)wbyGT3T_k zp+kRC4C+#fyGRRiuE0~cU7d}%&z1|R)qQ#Xok9? zvZThI;o@0zG|`MUE~26=a_=N>5mSNK_E$JDs&ip#YdeEsN>C|?mOS5GPa%rp)@j6} zd(bzoQ)lZss3CR=r2GBjweZnZ6aWlNvfiCSfB4i%4Za_ zaAw%9?C|cG^{2WpVG6(*B-?X0?JJx)ljcI9miPz}XNiS2315Qk)6`ccNOhaN^B_)Z z8*EHXq`fa17}%)AFD5S`oF;p5ov>v9)I;enc|q$sT1chPF3^&GkqJ=JWcO6O+&~3y z_*%HppvBiQTLD_Ka)_bBDQeq_@UmIA0wzz7rcRX33J zZs@l2Su7IQ8TsanR6(mNv}8W*nAGyMmZLbNtWp;`HmIs`V8UJ&Ep_o%BCNb(KZn2kTkMQ!0UbC=qh`F zv|9mXqi&`i0)_yjK!Ey0!g^BTA+`CeIiu)XT$`>B-*_`deI86F%9U%Ct}#H164uIP z+fGy;FZya5MqSMdALh=vMnfxKZR*CHQdfOxGP*J#u_4(n4=7)!Qz}SFQ#7;l9d(D- zvrWprtJ_QzqPBidxJwb4Fpd4O%4y$QkJ8E$$p-v1Pbr`A zS%OP_i}_NIs%f`NrliH`arde>HpUrj-t#D}I!|VfNa{DMW!=>ZtWm65o?&|!8g;`4 zEPay-<}xwdZX|K6+d5q7F{5ZEpT*D&;_|fmVlz(S3_73kQa;kCvFghr+r*eoL=!2l zoaS<^Ra`D5(%o8_Kn-0l%OxkXNDw=w)Hnu)1_^B?tGg0IDI?3x{w>`^M!-Tko=bg< zI-Mt*GB&6VrU}-ELA043}ad{iC3zHO8_954b&1jtwv>&APLqyaYZ%~yV$2wakYVe z@WIplqiG?Y^@9)lx-Q%=%`i?oQ+WShnS9Kr`#TPK0DwaYpQ zocYc}c$&C0ksGJLEiSoWMial<(c4)Rg&1a2Uk?;snKC|1aq_8B9vjZ$$8RyLc2n2b zhs8oqc6Hc10>|zhO?@%Bn0)N;3s){|N-g^~GgV!=P+LbwD%WM9O7Zd@$?mrCaHul- z++yOm()+oXifw5%>Vc&2olO#d^n{{Ufv4w_Xs)B)|Ky|8Zqm#n)y%$0`LhDKrehY? z%uiZ}?R_tV(?kNGXG z(>$s<3z?f{zs1R{L06WX}fd6X`TC-YcU$vkd4mR9`A6^LOcTF zI)wzSX(gOlhDN%RgT*v$?8zx=BUI3V3vGEn?TnG4+2P}iGIN+eVk944;B0lacyJ_3 zpzbTfN5>4Rd||wh!sTbP^I6lZk-JB$o%0CB+4jQKg$XP_$~w3PpLkRutPa@-t3lq? z0JgIatmn=b+bhu1+qa>g%SUZn^8-wxOBarc)Zf)2WJ{DyM|(r7cIs*aC+)0+YOdV;O6LcO8Y(hN!&q3~Gtrp%Y%%k#z+ISUsy#7MNn?xCjI*wxpYH&P?_w^kaOT5=;-h>4Ty$erKBXIzqJ>mO!D7{QxT znuRbJT?^OhB71hyi?Zne3j&BK?MOkKs*_|oY+&kUw&bR%7PV;AWRylVC`?$ zAN~V`(F07ZK`hmY>TF9CvxVu23A<+n5oV*%{a-${@hLEow>6ecTL&|TkMuiMG7yDSOvshiJe#4E-PHS==E1(KEp zj~}x&TVDxs`;FE3G*W>_86Pq3*p()k2Tc-{m}p_k#A-5LVq5<-H_mCmgKla(wv6Fl zyh2RVZleM+yx~iMPK}XvVl-?>h@`VwOks_qA(VAZhAJ}~j+d^pyAOkALk&!e_3b@a z!%EuMc8-iARgTD+&e_%#)%*Mc-oi!S(NLqYCvIJm@xEX_%I_4PcM7yXDeTGf{V;La zD_^$o-BMxm31cErCMTdrGF#ASY!cS#)REx&BOQSS{kn=U7f z3F!{WQ@Xp>q;@$XH%y*==0f8Sl*_ubNyP1M(Km7_t=%{`$$EJG4V5h~t(^Nd%f_OF zOeq>0IcV99-D~neEAy?J2IjhLjMTu0^oT5`&R1ZA&+dGWQG(RRT%)d^wMSB5xMZB= zzzR2;7ER?QL8fLHbB$@4VsfC4y(!wu$p}OZY)62CwJF%j*>(hEiHF&#ZETJ+)w-S= zOHs&LWv1vbSQL^lsjop>sC-0~Yk8F#5{oPwrP=*W78y{u)~%LEaj}1LGpIW= zQD~}-FTTTg#cN+eqvV>czMGlRRt^^%lR}BX%CM=b+;`5ZQ@mEFw!||E>-xp3AHrI{ zjWuEE0(ur!PJ8=2Ze$iWRMwZYv2-4TP8AQbWgg8IV_AK(&vASX9=g)AVYIM}y<)jQ zFi%q(EaGrZV5Dof>?WZjFzIEoCaGPRt6}zRoT}x9P(`V~N?3$t;Y&9}!*lkX^x!_{ zQ}$gDr8GQ@GNpV7@7V4u->l5g>|CWuxagWOn;b1_=DK&bs$g+q7k3^B!)w-+qgB94 z?AJt5qQ?88Qq8Xmnr>MBu#iRp+nJp8Ffoi`gT1s{iOi!<+6E%T)-6LI` znWyY(3$LNnhuJo+amBc9z{?6l;xZfBWGSC5W}jmri)-tRbFhwqf&Ogje@>k0YPFgp z={rf@3mnC2W6FiuU30pSJZ()CGR>q`)0C$8O?(msl8*AnX-`v_xPI$LLgxtCEVyP% z7gaUO&{TyjENbO+x1!jEEp@dK-$YTOA=P`Nrg7ZvoR2fO^g9^=G)X}v$;KYjXKc{& zojDDb6;2Uki*)%M!8cO2nu(!rMaw|en{wV3jr+9*)K$10kD@o}u{MV<NdHJmaP z&|FI6l?|+6vJ&%!1--~zevv0ZKa2xbHcG_hww;!lbv)frpEu|{${cvf3rzUDIqP&i zMg@#=jm+Mf?2RX*NtH2ISC=%jT3&4~u;z~RoEbDaS)2lC>UQg8%_l2NJU^1BXJPC0 z_|^uTS)vxMRNE=l!&a$zP<>)#L{s=A9^!B%%sMoS!)!QsZhAIrLm^N8bI)AwwMkj!Y3nT7PCZGaTaHegmF zs3Rj961whubTB@`&Eb|Kb+^0&u%fUHHG(;jZ1Hd1~PW=ey0N&_{H0*DNtJ)1iwOtER;JY~h{G`l<;T{lf2Li*jOK z_dD587k-fZUDr{?8>^ZXnxFtN+xH&{#ZzYEM!`-2~!Y%VJB97pjYX!jN*UZj?gEi`7=9c#TikChD=UNxR10 zpe=BrZK@7KYH?#y@v0{AeO)h76UP;`T#3yuzs}@9V8~(^JE)VX4yFQ9@!|qr2pvoc zQEUcvJqfdysHmBdh6^ItUJ#6Mxej^F40jl7+i6<5c7oq*aWzgqHklDUf6K)jg6#gD zOeI~3#ia27MZPjP>z5);b@ej^hb|^I3#$9-+OFU^ z(nHF}E7$TdtjK`b*8O0Y(8km-3&|p+4K+tKw>#Iv>6)wsj6d^OuAR~&(Y|Z``y)kL ztdTfdiVr_?TQ{##i`1PnXgSA97n>&9;=m$Sw_p^?2q-Eqp)_W^t@Cw*inySzkg-d) zNFFj_0nUy*V4VD?q$@2K0@`-hjJUYNPi*_|i!h6B9HY6aBK*v>Dbe9~E;%ZoT{oyT z_B)vgcfiH>aDD1hEsJY*^@Oypz6KEveKa2nF#To@gLUo?{5&rIKb z-y~l1*j(8B7wwb~XCT%3Xk@771tU+^f#OuTK#|Puu13@(%6~J^PmIj#w4Y}zQ%9Vn z)JX+RS(%@?h@$H|1?8nkEiTY0=*6nY|&S?8}cGim5P4hE5)Hjan|EP=$CpgtS*>5X~ zNvhL2f@8mJ#HtrIHyQEs-*m2~y?wzFBr0I?S?wnw;_-hgqaApt^T|nXEn2wfJa1`~ zC7nvlgVK($uJXZ-mU&wanafAHT}>}e0UJ`y`mOh=V95|W<#(CMY*-k;v@&GBP&q*} z)tR3HH_UzWm{q25y2}?7RAs-gUScjURT#W5k|8X&%y4k9FgX;ZU@3jGQMgb@brkL` zWyIY1C3ec&da5E7f07|u95X4TU-B&W7dl8$ zM(C&;M8>qw>al*DwtlV8&hD$h6eMrH*l0Nqnet&pi9ZZosq(wf?P&+ndz>rJ?PBv5 zqo>B5w%86b(29h#w|X%;b|&7C+Qknu)d~kF3)KzP$W)D-!$gRD(6h>L-)+1=FxvLK zM_3JJ|E+M6npY{ZXt>S8D#{pclb$qQQ{63vMC?NKDGrhK*b zbO4rNA1>#3!q`O2Q`2x#j+r9%*hcL{E>9U3{Yma)4;=3-VqrJikfLrc0CS`l5 zGPaRoT3{j*0{PGr6OyotGCPcb`9#Ur2(nD=d%dMg$D<14f1~)Oz}Ti`Sj)JfFdHo1 zLh2$q_QYuJw&^U@rK7|-jHyT3@a6NTS!OvlO(q5kgi@c zaADD1m`GbLyoH(nYGTXNZIhT3@^HwJO7 zSN2g7q}CO+0=VW*C{lt9a^;n%c@-ZUYO! zEKU2=Ffpb(aWTcR#LJlLp}EAfdv4T>jGDf5mdS*`I(}L>H_T<kTq;E-u zNoONph)PebkEvyIRyeYCN0TNk1KW*f8tDnHpIM00;&{W>@>ybqVP3;<)XRO6;2jPuCod>v2Z~dB%jd^Aq{AkpEO^ad6#+bxAinHzr%p=sshuABa z6E9Xjqg*CJO(BE@?5BeGM3fd21Iy{Ma4}I;{*Te*T)9{#E8j{AJtTA#FWW9}@47iP} zBO9kCu4cKkt$Vob5B8LIxWy*Ks_w5`!(lud|joyWa2y z%i2y|k)C??$`z-cd@6qgZ0qA^U3C6A54XH+*{S@Wp0;e|va?P;m6&_4*E-YyrUk6S z2#S^II&LIOySU$HTWM^VW02==Ew8H4%iD*`=M&mbP__+}OXDlkwJgU#mUD;8tHvtr z6H}w-@4caWLswq*W$mZ#y~fQ0Z3EbxR@x8coWhNkm8u;lV0-2Cc_=V#XPvd;?6zfj zV3mlKpSG^>)2%Dhvj!{EdnfUrW7-jPPnu?m`J`$2J23L?;C$UX=25OvtZpU0jlQ7-=~L!*3ida3U7W6+ z(n-?hZyUH5acpeVzNQmf*h9hbZC0~3rWf5kGg2Ads`^NFZ&i~t$Ja?GBx! z{f?{+9YnkIG=#u`+9Os7SFl;OC_IXbY!ae@6~eDTS7luH*)gLn7`AbP0kKxbsK;QNB4sNiNvL6j zk7-Gr?5d>B{6K)bDpe)dS>B4t!AHD!sHaLp8h6DAfy0`@`;BD-<;obzvfayDp*+Qk z&!82yF7?>r+Uhg^IO_4S9ByUbv6FnpQ-qdwHZ&Cnwz-cZ8KWzi#G!%MuE%sE)n`*K zl!D6YD24LRFM@i;PGb#d^03n^`qP0>3bi3y-PXvS%9$uyvY3TB#Ab@TG*q%jgN&HH zmWd&)tI-2o^NU(Um( z@!f4qrqsQu6(*y^R92msV9P*E1xDHIW^$rSmY2pvGXd(t(}-G`VpI39D3b|uRLNY} z2imsGFiQMbDpj*6p}Y#kujO>z%+!vcGc=IL8M>T`OziWhZJnx2(lk!sVj^h>87M@a zqSml={~#H+PE@z*v^ec;CXLq7i)9%skHW4y%2P`bpA`-$GSMw>K@Ua{TYIl&a~XD* z>JCkhw%m>C7D!{Y&Wf~?G#SxFq`*ArJ(g>bV@_l~D?`pLlo^Xcp4U!HZMC~QY>+5s z%~n2>1Y)Y~)1~VoaRVFHlaK6?qzoZxKjRxy!(!oUsrBrbcvDy}o(NJHg(92glG1}+ z%P&aOrtfB;-=O79;0P$t>O!>WiIbTmgx5OM#+jt^6&R)B&OKqfYt8sGD^wf>kZxHr8a&ZY`SrPJWVWRkIx_`uWvRI! zHUMs`FoCE|Y@66JW^CIBcQF$h$F578m1d~7UhEJ@MH^$M&|i#A#BGD+>df>GYl)y9 z>pa2YIBpQ4BiulPdbXtSA>GJ@cqVJfj|$g)+rS+=B(Wq}nkH?D9n~z3q-1&zqZs@@ zScb*bE`FY~3tdKszlck3mllE=*wMFkllJQ+7u~JV`@-^;G1O6a8f{P3aC_YP-nH&=H)TX!<3cAL{`LNz_772LZmCIJ+bzg5PB>P# z&~=h<*;SO(NxUI0^U#G!47H)awwYFHlDICpq^s}pF6LN0-ThX1RZOA`y*rL+UA|Gk zvvy5N1Fw2WR9t9$Q#TW%i`1(itWbrVOi}3|fVl2^aE`hKErp3qv5aO?TSCaC=?FuY z-94%!0Jh~)F|uWEZ5ZgZ%iA?^%(NU;j4{p{l;{h)d)BPq)Y-MLJwd!eVKEc>6PKlp zk3(%u*R18ctoj_zMM*7k*|r&}&5_xH)RKN_W=Ve7BwZiQBVw-#m90MooGuPWepUR& zPn$PyUa~OhkSL)&%IRwTqDdQ*h8Y&NbMMXUR#wMfw5&bpx^5C#Vxgn1Ul!|j40LrT zYb%2+?a%=5tTQ~-n;D_@l`<3gZRJrWP+0m9V(CC>RBa*7rc+6(+^>wUI{CFbEj+(fManzw= zLt)(TE*ADM(v-2r7SV*J;?OkerJ1mby)b92Sa{8@O$QY%eX8A_z=mOd@BM~(SX)OJ zz)&jh{vMTUPjqvM{o@J9*FFA1L;T(|%Ke>)H`R$jacWxI7hFcnRBhwL z*dQHAlv0()(;oH%NC!|j2H=UY(Ye!#qetDMq;l`-=~%r!?cT7Vs}q-cw2d-;b9+zU z2HU>fBX+DMmv>yWKIz%CVRctusFl69tkxP9H7{DxD^ zKND>|y~ZhV9I?J^&0c7v0-LMrwp*Zeeu0~og)={GoKasyq^Rpc^88!q=Ej;a4GFn0 zue3A}s2s#)J~cYVqNV?o`c@XNtjS%NtYc)VqB4;Dpo9}_=jBmaP5sBl47y7`A&KIq zsT^}DS4t*MF?Knk3I8}Bj{Q{~v`B@W<=#}YT}?oxaDzobtf^jwcHZTxJ&?G0pWih~ zsGaXY5oSY)_35JK7>Uv~wWB=4xZBYrH!e=XNw8e%BNKvBQ#d4MTr92B*f{Cy>E=Dm z%VaRF6@`V2UNy7yhpA4K89_}<`X=ZJp)l=owI}O!pvV%jStjp;WwG_$RV}P8R?DFL z%8Vv1XYATs9&GF2dg%5g?MZIY;DdVWRGM|iLT7Ci4)Moj5ag7PL}8G@3@N>Y6eT8O z(}szGDJo6;Q!o>bYPYkNFQduN=B`Q!6-csIRtOuqg4<>glB^QTRV1#g7nXheb-$p* z`5f2wHgst`iuwm^!!)NATbueMS*K~l(sW|bCL%5MC(om$f~2uFX{vIraM`|Pw?o_B z!zAB_K!b6()2}hMl`T~=32p! z0gWjFi6>ooe3Rhwph~>EF!oT ztu=@kW74dy?a3x-%fnOm@muh@Akocxwpq17T5&GS`s>2Bwk_qc$%SdJ?Ym>Iugvru zK$bbFa9EM#IZkLRVkX*Rl~q$i!p7$^Krfv z!$Zg=Nn_n? zO@b8nVYs6@Nxyfa!ariV=X1JC6Rc^>j!IR;Z%BPyQx5ANsM02NHDaLSYS={Ba9pj$+8W2TAWC=VKJ+!Wv1GZfQoA|`+60mGV{W>#K|(41N$oLOXZ ze=~hem&G;>Lo$I|m_}lDHU(P?BX$<_Q19DWo}Or9iCJMo{$zyBKF9T+sjvnqVZh)z z#V@p)G$RI?hS92+t0^Ay%ByajXaqJV&(tmiv?c7dBVk>K z;gU<+QPt?CK?KLV@sakEtu5J*j%QsL{O9CpZPg~ds4b2Qd9FRV8SZjM4lGweM-vCR zK&aD`ZDzgHtQrc@)TX9x%*JEkatGrmnH#gIorI07dZfs2KN$ViX?p@ED5BkqjJyB|Q7Ovg-AGX&H!aXtV3Ri8CA5Q|Umz>JY|%djfdU<>VP z-Cvtm0o}GB7R?MkMkE^BY@PpCM81C|YamEn^SZRD8%K(3Wo($#f)r|T!Ty(Xl-Mn| zAkUf#$`P{%peM(sUnItCa;)6 zP-Mgd6{#uni*4)?EvNMpLldT2_7P7+^}!8LHqyIFT&GXOgqRaDTSvUH<17vYN(FT* z?C+_|s-|mlP=@KkrW1OGoEgZc;8_=yaL7_oJ}&f$lG(^>IJB0k?J?0>uC!eq#ZE6F zrnOYkL&XloQi63w%Tq4~iFNawd<~)Qc!INBNXh1mHoKfpUOC01&EIHFonj-@Vihvl z%M{+Fd7VPBd=a}W1h8l^C2LZ7WkGy(6LN*Imbpk6Ib)nS1o<$_t%9&0&82DVoOw3M z_W5MqYS_NN1*jXucO~;MmhWo5zU1Hpugkkm{xmYC22A1vb;~W!owT9YAlnsJWF(a5 z+)%2eA)lezm`XYlSJ|paUCyi>4sD@R1_LWI0fdSDOkiA5i7YPhVcpi_>v+CIqjP}m z@JeD(UyiXgSnI@fQdCAQ&d>KA z1P0H(uqDA(ccaQ_W#9SY4}wMY9Hu+iFcIgU%yOA;X^}sWH(1KJ$q%hVYllk;Su2TH zKaoF+wNk~=M6SLqeRIj2o0Alglo%>F6kyZmY`ey0$xXh+g2Q&hX(ZvCi82YFH5FF2 zD(qFCe&8w9_yJuOpB`|DSO6cgUzB^mDTS@S^GnD0AP8wQgFlZt5eY@5=?Ep2ytOj@9YN;E+Flog^154*SV>kt@U-c>M%Qdml zU;?v&eGsiA+_c9M6xK?9Bco?szS54TDK!X?xQ!IkjqPK}RGNZJGVO-*Ga?S%Tm`qE z`nZtEY}nk2zjkm)AVSH}GV?~%V|?6fNEyO9VN#5Q$+Vz>&OZ&OAI*BXPb%W*VKX8( zcB{vEv$08x%4&0jHp`mjJVeum$`Y&Pnbrw;v8OIto->b)z7I4ziL02Umx+pJOZ4H3 z@h+Md=j7w4|A6y_LaR-$4eNP2O=a?sjYsMlsTs!-%O`BRY_ZOlQ4$#^^I?&o9#<8- zq|Wx8b(t~og@>|DX#EpdSy6L+5lM`MXtn}m*&xE9z&T>k8Wwgs4=d~z#4KbjN@${$ z%Ju~-h4F!utfm!)nD5Thi~UfYo1)D>qVjFMBs%{zav`z{85f7N`Ddl#X6hqjXxwYF z3n|de>lO{o(qE*R?M}$|RkXQC@_h+J4yu5&Cfg8XmdWH&J#UbYq>70j`x1U2)#Dbw z&MD6orn1`qZ$<#QsMX3U@nGNs4 zR`H!htkbFEJbczj+0LmtQ$UMo8kmuNrV>d(jl;4eag(;%Kt8?r^+m{gOn$mhZTgwkZ?h;zSCp{7!3HmyOv%WP0G zddS#jmB`kAvjK3{B1=RgPZ6fEE}}v$pY_+4LN4}@!ibigHKj~uNsIuKQO4M0fl+;V zA{rIK;L_ZL7y)yO52a|movS`4ZziVN`G%raEH#U%KBQH#EtRGb+LpGKT;^-167%A< zx((s^rhL|-M$4?ynHFSI^GKOIx-pz*!6}!xoVPTMOMpww&sOTp&>(+v71ORe*3;Kz zDoCi!KQ*WR|Erw*Hwhv2oCHLPL^;bxf}p#>vo_7Wyuxxe+xT%X7o7NBIB_ATZDSfl zb-*0XUVxSvN%gcd1F`GuDD0%rJ_L2StO#Tpd9x^>-MDUD#*`ahm<%a3SMDF3XAo#} z)WqgKb-ZKKR0+UX3YY#&)L{xRXhh?M;jOX4M~{)0TUfDA{G+L5&S)dr z`e2K^^)rPzBe6JQCkw?#n|e0&GquaJ3o3vm5XUW3TE)JBUfJ*5o0+z_Zy`(#U5Aza z7GgwJp6@isyOI|3`RU(rvw|s`mNOHbeMqvBwdNn0(R#vGqtU5*v?W}%N34cfqcd!A zn}JlRn5v>{>La_HRtQ?|Te8VIL{dxSV}G#F6!A={`+ zG!|{X#SuL+#l-o=caC9xmNKI;EXe{Ww@h~rOSOfs#WSs<=TPOK(bH=F*j?e!?$Xfk}S1q+6zDV_ws-k>9})qRg=q`eaZtJ#9XUB@lMU@_GjUtjFUqMR`68+ImvLcN zcG=fDewo0mHeuQp_`8g4%Z9|oT57z{Hs2zHmt+6&2%G6S6WciZZ8oB4`3yh$#61kM z;01$`N9Zft$>5+Bqd5eR-1x`7UpJculfnInH_gv1O-$X*8IoYk%*wk<*=P3Xe?U50 z%7faAkQc}%Yo%7pyA~(jFRMVS_6M9x5vFS!VJKGV#4ovy) z2>Uw_xGkr89-FD$s9)(|k+Q8h4W91IEkjI!3py)bnG|A|E9&CWs#3^2%#ovX55_Iy z@|}j_UXe0JC~}24N5(2!O})*2Ab>-N+?8(!Of<6kNUd?J?Bkz?#6Xy=S&GYi9)GFs z$m{06uKuN*meRw8>;d}20Tk|>(ftx!@W2HKb7Ur)Va$uX3scc~rQARzsTN&6&|{gN zp5j1=tz!As3l>$Vb&P^`=k|!XY8(zVn%*7{G-g$5k<#qdiLpJY-X2I6hyz!5+6tg; zwwJb&8)CES#A&{5z8|c()N6>ADOG`In&L=;**Wqw$zKa3w+>|0%RajaPs4CgoiNKC z*KeH`t)OsR*c4!A1{t)JY-X$UX)lNWH2bY;%5}f245s@^(TKWGTtUs(?z{P^j}qtL zMaC{)U!~7!nLyO=rW3*AHsKK55^z;MpC!c92jhm=7%N!UO(U&a9v6QV1I2+Wlte{n zeRAD6^M1u#39U!(Mv&Pux6eRm7kJaov^|i7ySUmyClbwCQJ1E6rZXsJ(%9Fc^EG~3 zAkHhDbj~Y6VJRSwQIvUFF$vupQqCTxMMo$G)@r-;wR&T2o*>s7WXBIBQtUT7{O6C_ z#wPhezWN>2dD{JcJ4M+29M{g{n5E{IUs$wiI-53II*rA=aOyt0r7F%-Y(|jNB_4C} z!;(=*1(}fKtzxG-3u6Em&$`)>GX#thQoA(~X*}1x%L!yR;6^$W%Mcd;L}vBbxG}{p z2*Q$9SjDZ6mTiA1dN(9O9ST=H#DHGq`~piKyuwfD)ho?j z;?}XV!+oY#wySJFICW z3p&}%vi^%thX}6tSgA+3Y{zC?+?NxN##htT2sKtAXUWNoKtBV?A*@cVQb~xq${H9GO1dQMPjBvvhB4H;O`ynu>b40pQ{vK@*Y(u`E%#N7C zbaf%b$@H{Aj6;lkn(@%%o5JTIYHUCoEX_0r3=}jo z%vu(*YkY*$yK~iACyH&Qsa0|8yzxA~&Zj8->W?laI;tbwUBsp(TN|`0cK9iF{?)!f zlnFb~ZpQ)acXZgcLaRu%kTeOmZd|%?eK)@#Xhsno2jT*n@Efs#FOul%KYSK_yFysA z2$gdYsHt+}F{B^@wMRG32<^0ijwo@Dj%V6p(o!^ssJmObT)3@xOVb`Z;bis%7p{Bf zLO0r#5K9a^ow<2Ii^R4Z)1@zLfXnRp+Rqt{6tVB)MU#4mt`pmugx7Bg=J2@cWOE*x zsLH|v)>+>An>MCK(V(?}AoLpsr9fn2$K|!gF^F`-ulpn&+0}x&ogrE{D7Vb0GKbk- z6n0EDo{cNS%p-ETniU+2-L&~V%P5l>8Fli3Me`Ip?Uq4v0vqpG zIk6Qmh0i-luzGUEldWQy4XBu+SqS5yed}j^T^Dca?qgBh3`w&mnN4{uVTlCBFLgs* z*IdpK>K`3@!Pd<{o9vP6@O-SZE- zDQ@AX@5B?QQQ?`Y+pbC%HqNx;pD~Da_PyP-=+24Nh1rw{8X3Z?PQWMK)vf#>0+s-F5~PjmIEW-2woAgsf`&mM z`qmE$-MWi_0c5_i+_ghbBj?K~yl1^94Dv?1Nq*YGZ|rDLsS2Mr_4Uv$E734&cl$*- zNJMTSY!M_T4sHEJ9G9?-7w)vp*&`;}GDcevIgsA^=@bpuA~%UFjqBW!w{qd!-}%v! zl?&PWaW^;E=OMX_H{3X4J)mto+-{MF$Y;7vWi$TBn(XQ>D|~~A?u< z@EK{E_qCm-9k*!gY985~yin3YW>MNTZ4xhpaWgx$`+vP%+j3Ob5j~$WMP8r^VQ^e_ znN%gkMR8Ohi6F&J@+OA?Qx=kHM#7j6&1+ux3?8!9>dWqZ&WsodCl4XkoOAZ2ckjNe z-MhQ|X67SS0*N4gp0@{>6iq}(j#qk-<~P!5|E2`=eVj4m3yos*tfQS zC|k`cP|y|Mf@g@`H?sDVr#9?aZ2VqbkNJ4R7LsS{3^ffKU?q}6wwDv*i!c1D*;VIa zUN$OOZwFe^b!1s+t~sa@m+NJO}9dj}V1&GD9}`BVvDvD+YO!o;REfIpSw0a+KHB849U(_yXd?LXf=KxqKp zHSxVtgBNhB3Zv+HEpC0fNlL>srsW0H&Ji((^oks-9It*Pi`if1@3xri!DiK7-Ebn( zt-z#|8Wui)AY`108VJ$TYGdk*8%-6R&B9_Sci-M}N^^%`Bl3EjJkcak zw}2$dMoYHQpvW&cZJ6c+dCY82wg}gx?34(V4>zW*841^1ZTncBf-mhA83y+WuET5O za344+yqFqoqD2hGHYFXA;DqJu+4l4Ox=S`B7=4y5C6iI^+0KS*$&qLN?B$e2{prO^ z*7>ohlg>U;4@<` zsMC>m?mg1hTWD6SDvnJ(arTktjz$F;3}WCHdHpK@`G#I}k0E%OXZUiwBfo&$g#?aT zDh8}?coDw>-ED-pa=j`s3(X0VQ$3VR{!RydzcvtrqxFZ(ooskeP66i`_#FEI$xnD) z8x{ak68uOPRroUZOVca{>5xeF$?y;tm4UN62#w`OEyVvcWFAWt=s}(=c(QYOGMrTB z%V?S_zZ!OtV4Qz$ZO>5d0ZLmq!|v;Iq<>~%MUf)HN@?dR z){_`B;+Wvb;B22^0bE1lg_VVxwy`)@ZqrerdDoMSx`=^Du-Mo~Nb@9qX!RFyNJQ@w zw5RJOtwU^6cuoJAd+IBJ&pUB@wOb%|80hc?X+$76RDkylKLFQ8ZVrTo& z?B3mPzWVC^y>Gw$=7z#c4AVrX8J88EfknJoMykW7Bob`n$bFFD@#ONM=Fn$wyul%hD?);$iO@Rw6mL)}xh`kum8361NB78UevkuM1xnxXh)SmAH6UCp? zE)1G3NiuGZ%@+ghNBwgW8JF}|6Y6GQx)kA#homs7bVro@X=;D^yDB}ygVmd2bl@sK zzDAx3W&O7lwrOqM^1*nA!mMowvO@f43PhlrJevfW;q~G!4CLhga~r(4rlr{m3@|3K zegZB<$^~$7DhJ?`u7Rzo;B?|Ll3t9HtLx2%qcHj9;|o^k(g<>dg`b0z)5?{$M1Q@2Mwn-ObiN*v zM6}D5AwZ=-#yqYe?OX&~zH<>CUw1+h=$&;pQC8izf5zD9SSLG9C&OElyq&{^pT;9u z){l%f*I48sv7rS-1|C7ZzA{(?8yl|K>0wW(AaDM`;o-rh;1sO&1XCE50H5fxE_=k(4Y18z{uMom zMb=C__7~S`>bcgZq;HzeDs!2VdHmW`GL&GnVf^+~w61TR>{QyiO=kr=MJANwSs=|O zxfuA~^@j~bGe8nyWkE4iz6nJ-5NXpgxi7{qVY7vTg|J0)>=n^cQB_CmfSY!Y_6{!x zv%O6r31}D1$nCa}9e2COH~7dyTn4&q2RtU;Zgv#M!U0bF1BNrbV$xK`edETrhBcm6 zkWKc4+!ZrCWM$Yy1c%}D>=hE)9ePZ|m$zy|W?Dhx@UCkM$IvYv+}SuWM9rG0Q}H}# z$p>vJwRKL;`A=3;Qh$T}xygdKprLSaC(LD#PLA;FLyKGVZO94mUEUO;$CfXfw5#AD z3gnqHZ=ujqpVfSTwqQ663cpCKNll|WMv%i`QGDOyBM+ejsvY+Q~e@ttNx0R=H~SJ|ywKyBcx zPvEiDU0AVQ1;fJ^yukpouDgD@E*cvGXyB=#0_G3kFupm$c7Y+}MHzO&V~7oHa9`w` z!k56Q?G|F}Ir5R)xETx)t@L$`J?u<^Zs+kLBXgqq~g7j9reu&!@#Hx5t7%5eOgL@pfi^xo|508#H8e3LFcF4Ug z8|DON-OkAiP>Es=_C@?1#8PJaj^g`$&6FW=huP83@8_ueLG)OBluEXpQN{Rz$z<^XZs5sO_oQGqw-0s>ZZYcr z&cM)rs4M+Jr3-5SR|g3(Q*v*Ce%8($an{_49Qj;15g`05c%8nKu92YX4Z3fv&Q^HW zuvH|%fzHm}cVl2Dzrai)n%(wMaw1~YaC?zOcA0ilW0-v9vLGyem-9ou7r;@#6{hRb zV}hLzxoQ2@E%fZ=5pG-FV?Z2qjY70ND5XnbxSTJ?>LH9quIk-k1lypm7atd>uR~$O z=+qm3`r{4n9&|7;bo>!)BGv~98<>!0Sx_N*&6y6g5 z?fQZ5))lz&%km9v@Brjf8u+Y<1A1*Vf$uSe1`EDATk@bl@`{wM`v2dZXEdq5By< z)PEOvR2P^k*x{3dG9HnLbG6YoZ5$yUf(1c~#n`BSOSH3Bp?p(&<~^GgZ>M@p)(9su zpSa=-Kgegv$T&~Rc)ez$Qjl+i&usRPp#)cKvbr3}`Js=U;$FZ0IRLx2$YX{3ugF!2 zdK@p^}wdOxL&&p%5oSz|M5%Qv;oMPZ7Fs*1{qM!P!b}#f1nbb~lE07-$ z71JGJznvhIpnjZ9u3f+SwpY5T@8%Bfnk_Gq5+&&cX^4GldWIIFf<&ob(y4_d6 zFFK9gMeo+nGFExVV{dnMlMcXl32!pd+L7uKKu7kr#k z7Cd0=3qX5_uDpdUN5fopaKTUD2kh*ZAL00EU4RxSlm(&*747Z}q}8Y!GSVIH;j_iZ zm+q+XQoXq_zrqA8w>i=t8E_&C$Ig1$rb+?9!P5!yc{m4|1^*M5CdXG=V9Q}ZR#Kf@ zi-B;~cfc zN)*32YPqADZWP2i`yJd;)Np6v_UWD*zl@nTIE4#E2-(RRCfs~E{>o_<9W=o>IYvXK zL!=#5^b-(TR=5UNFfr|IC_SJiGgKM%ETcY@Oz0+{z@OPV$AD;4LJo-|c|zuE!X&GO z<}5!A+jBf5a5%je^!9z;ELEV|mk=<1X14Ssm73@8O`_=9wJ8EEB4god?G7eiVUk4n zl1wB{LDD2DH^LRWMdm7EoR{{fsvGF@7vvA}P}Rq0$tz?~v$g1ce2k0;xI zPT|G4F)aQ-Hiv`dm-Qm|kbc&cy!_=cUv$Q^H7^O33gz>qs-=|;0ECBM7i}06^tlbD z3*DMUH=&!j5%V~b21-=wCfgU)s8cCBlQQ(~c@G=%?)A%DtGP zv$_qDy#&ZKxHk?|J$la-sHAmUDq|Nxjynf;XJ3EywND0ni{x*CSV7miQLV;Q3G)h~0gADSChU>OVgu`$r|l`~g{G7!D$w(_@m>2Cs3dQ&t%*-`@^Tt{t6v8K zfcr3$J^vxcSV> z)t8^T0Dm>ofAOT$tLG}H3J>fLLx{}8={v!3B+li)Y}3|Ckd+z9=qol48PHr;8~}oq zCj#AAu%33sr`qyY|6KUG;V35%?5`0sj6*=QGwq2a1at+yz-dS%L%Y9*Me+ranO8<& zS|mUTc^5&DY}FrE2fslk)B(l(tU)3YJd#!<8s%lg20;gSLR%UieBwzq0zAs+8Q$V3 zppHbdO&uXeQ>3m^e4;r&0iz|>dx-6OTJo_vq-a1f9FF^gCK?T&169>+|5;~xqY?A# z89~6j?!KWY`d5BSsRbtVs!<{keX2rEN;ou&O~u>$FpM^Dig6m}1aUWNk1`|A(AZ^~ zV^$I($A5@y$WI?Vc-DqOksMJEjimCMFgc6Iro$B`%`fz|aw7bC`Q~3xQ?VHMVZ~a6 zEt5?;wTH}H@}1~NF!b{J3Q=2uO5=7zXxG~8l5@ppVbCT*1m5v?(_N@Z, 2000. +# Karl Eichwalder , 2002. +# +# Translation 1.5.pre4 was done by Matthias Clasen, 2000. +# Sent to the TP Robot by Karl Eichwalder, 2002. +# +msgid "" +msgstr "" +"Project-Id-Version: sp 1.5.1pre1\n" +"POT-Creation-Date: 2005-11-05 09:50+0000\n" +"PO-Revision-Date: 2003-10-10 21:18+0200\n" +"Last-Translator: Karl Eichwalder \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "" +"no system identifier could be generated for meta-DTD for architecture %1" +msgstr "" +"Für die Meta-DTD für Architektur %1 konnte kein Systembezeichner erzeugt " +"werden" + +msgid "element type %1 not defined in meta-DTD" +msgstr "Elementtyp %1 nicht in der Meta-DTD definiert" + +msgid "element %1 invalid in meta-DTD because excluded" +msgstr "Element %1 ungültig in der Meta-DTD, da ausgeschlossen" + +msgid "meta-DTD does not allow element %1 at this point" +msgstr "Die Meta-DTD erlaubt Element %1 an dieser Stelle nicht" + +msgid "document element must be instance of %1 element type form" +msgstr "Das Dokumentelement muss eine Instanz der Elementtypform %1 sein" + +msgid "element %1 unfinished in meta-DTD" +msgstr "Element %1 in der Meta-DTD unvollständig" + +msgid "missing substitute name" +msgstr "Fehlender Ersetzungsname" + +msgid "substitute for non-existent architecture attribute %1" +msgstr "Ersetzung für nicht-existentes Architekturattribut %1" + +msgid "substitute name for %1 already defined" +msgstr "Ersetzungsname für %1 bereits definiert" + +msgid "substitute name %1 is not the name of an attribute" +msgstr "Ersetzungsname %1 ist nicht der Name eines Attributes" + +msgid "reference in architecture to non-existent ID %1" +msgstr "Referenz auf nicht-existente ID %1 in der Architektur" + +msgid "architectural content specified with #ARCCONT not allowed by meta-DTD" +msgstr "" +"Der mit #ARCCONT spezifizierte architekturale Inhalt ist in der Meta-DTD " +"nicht erlaubt" + +msgid "invalid value %1 for ArcSupr attribute" +msgstr "Ungültiger Wert %1 für ArcSupr Attribut" + +msgid "no declaration for meta-DTD parameter entity %1" +msgstr "Keine Deklaration für Meta-DTD Parameterentität %1" + +msgid "no declaration for meta-DTD general entity %1" +msgstr "Keine Deklaration für Meta-DTD allgemeine Entität %1" + +msgid "meta-DTD entity %1 must be external" +msgstr "Die Meta-DTD Entität %1 muss extern sein" + +msgid "no ArcDTD architecture support attribute specified" +msgstr "Kein ArcDTD Architekturunterstützungsattribut spezifiziert" + +msgid "ArcDataF notation %1 not defined in meta-DTD" +msgstr "Die ArcDataF Notation %1 is in der Meta-DTD nicht definiert" + +msgid "ID attribute %1 in meta-DTD not declared as ID in DTD" +msgstr "Das Meta-DTD ID Attribut %1 ist in der DTD nicht als ID deklariert" + +msgid "invalid value %1 for ArcAuto architectural support attribute" +msgstr "Ungültiger Wert %1 für ArcAuto Architekturunterstützungsattribut" + +msgid "no notation declaration for architecture %1" +msgstr "Keine Notationsdeklaration für Architektur %1" + +msgid "meta-DTD does not allow data at this point" +msgstr "Die Meta-DTD erlaubt keine Daten an dieser Stelle" + +msgid "invalid value %1 for ArcIgnD attribute" +msgstr "Ungültiger Wert %1 für ArcIgnD Attribut" + +msgid "unrecognized quantity name %1" +msgstr "Unbekannter Quantitätsname %1" + +msgid "no value specified for quantity %1" +msgstr "Kein Wert für Quantität %1 spezifiziert" + +msgid "length of value %1 for quantity is too long" +msgstr "Der Wert %1 ist zu lang für eine Quantität" + +msgid "invalid digit %1" +msgstr "Ungültige Ziffer %1" + +msgid "only value of nArcIndr for ArcIndr attribute supported" +msgstr "Nur der Wert nArcIndr für das ArcIndr Attribut wird unterstützt" + +msgid "#ARCCONT attribute already specified" +msgstr "#ARCCONT Attribut bereits spezifiziert" + +msgid "invalid value %1 for #ARCCONT" +msgstr "Ungültiger Wert %1 für #ARCCONT" + +msgid "%1 already used as a substitute name" +msgstr "%1 ist schon Ersetzungsname" + +msgid "substitute name #CONTENT already specified" +msgstr "Ersetzungsname #CONTENT bereits spezifiziert" + +msgid "IS10744 PI keyword missing" +msgstr "IS10744 PI-Schlüsselwort fehlt" + +msgid "invalid IS10744 PI keyword %1" +msgstr "IS10744 PI-Schlüsselwort %1 ungültig" + +msgid "architecture %1 already defined" +msgstr "Architektur %1 bereits definiert" + +msgid "the first definition" +msgstr "die erste Definition" + +msgid "ignoring PI declaration of architecture %1" +msgstr "PI-Deklaration für Architektur %1 ignoriert" + +msgid "the ArcBase definition" +msgstr "die ArcBase-Definition" + +msgid "ignoring ArcBase declaration of architecture %1" +msgstr "ArcBase-Deklaration für Architektur %1 ignoriert" + +msgid "the PI definition" +msgstr "die PI-Definition" + +msgid "name expected" +msgstr "Name erwartet" + +msgid "literal expected" +msgstr "Literal erwartet" + +msgid "name or literal expected" +msgstr "Name oder Literal erwartet" + +msgid "nul character" +msgstr "Nul Zeichen" + +msgid "not a minimum data character" +msgstr "Kein minimales Datenzeichen" + +msgid "end of entity in comment" +msgstr "Ende einer Entität in einem Kommentar" + +msgid "end of entity in literal" +msgstr "Ende einer Entität in einem Literal" + +msgid "OVERRIDE requires argument of YES or NO" +msgstr "OVERRIDE benötigt YES oder NO als Argument" + +msgid "CATALOG entries cause loop" +msgstr "CATALOG Einträge verursachen eine Schleife" + +msgid "second argument for SYSTEM entry should be quoted to avoid ambiguity" +msgstr "" +"Das zweite Argument für SYSTEM Einträge sollte der Eindeutigkeit halber in " +"Anführungszeichen gesetzt werden" + +msgid "no DOCUMENT entry in catalog %1" +msgstr "Kein DOCUMENT Eintrag in Katalog %1" + +msgid "no entry for public identifier %1 in catalog %2" +msgstr "Kein Eintrag für den öffentlichen Bezeichner %1 in Katalog %2" + +msgid "invalid option %1" +msgstr "Ungültige Option %1" + +msgid "missing argument for option %1" +msgstr "Fehlendes Argument für Option %1" + +msgid "option %1 is ambiguous" +msgstr "Option %1 ist nicht eindeutig" + +msgid "option %1 doesn't allow an argument" +msgstr "Option %1 akzeptiert kein Argument" + +msgid "Usage: %1" +msgstr "Aufruf: %1" + +msgid "or: %1" +msgstr "oder: %1" + +msgid "%1 [OPTION] SYSID..." +msgstr "%1 [OPTION] SYSID..." + +msgid "Short options need the same arguments as their long forms." +msgstr "Kurzoptionen benötigen dieselben Argumente wie ihre Langformen." + +msgid "%1 version %2" +msgstr "%1 Version %2" + +msgid "unknown BCTF %1" +msgstr "Unbekannte BCTF %1" + +msgid "unknown encoding %1" +msgstr "Unbekannte Kodierung %1" + +msgid "cannot open output file %1 (%2)" +msgstr "Ausgabedatei %1 kann nicht geöffnet werden (%2)" + +msgid "cannot close output file %1 (%2)" +msgstr "Ausgabedatei %1 kann nicht geschlossen werden (%2)" + +msgid "Use bctf %1 for output." +msgstr "Benutze BCTF %1 zur Ausgabe." + +msgid "Use encoding %1 for output." +msgstr "Benutze Kodierung %1 zur Ausgabe." + +msgid "Append error messages to file %1." +msgstr "Hänge Fehlermeldungen an die Datei %1 an." + +msgid "Display the program version." +msgstr "Zeige die Programmversion an." + +msgid "Show this help text." +msgstr "Zeige diesen Text an." + +msgid "NAME" +msgstr "NAME" + +msgid "FILE" +msgstr "DATEI" + +msgid "NOTHING" +msgstr "Nichts" + +msgid "Try the \"--help\" option for more information." +msgstr "Die \"--help\" Option liefert mehr Information." + +msgid "ARG" +msgstr "ARGUMENT" + +msgid "Undocumented option (check the application's manual)." +msgstr "Undokumentierte Option (siehe Programmdokumentation)." + +msgid "Use catalog %1." +msgstr "Benutze Katalog %1." + +msgid "Arguments are catalogs, use DOCUMENT entry." +msgstr "Argumente sind Kataloge, benutze DOCUMENT Eintrag." + +msgid "Search files in directory %1." +msgstr "Suche Dateien im Verzeichnis %1." + +msgid "Restrict file reading (for use in Web apps)." +msgstr "Lesen von Dateien beschränken (für Verwendung in Web-Appl.)." + +msgid "DIRECTORY" +msgstr "VERZEICHNIS" + +msgid "SYSID" +msgstr "SYSID" + +msgid "bad formal system identifier syntax in %1" +msgstr "Syntax für formale Systembezeichner in %1 verletzt" + +msgid "value for attribute %1 missing in formal system identifier" +msgstr "Der Wert für das Attribut %1 fehlt in formalem Systembezeichner" + +msgid "%1 is a formal system identifier attribute value not an attribute name" +msgstr "%1 ist Wert, nicht Name eines Attributes für formale Systembezeichner" + +msgid "value of smcrd attribute must be a single character not %1" +msgstr "" +"Der Wert des smcrd Attributes muss ein einzelnes Zeichen ungleich %1 sein" + +msgid "unsupported record boundary indicator %1" +msgstr "Blockgrenzenindikator %1 nicht unterstützt" + +msgid "unsupported formal system identifier attribute %1" +msgstr "Attribut %1 für formale Systembezeichner nicht unterstützt" + +msgid "unsupported formal system identifier attribute value %1" +msgstr "Attributwert %1 für formale Systembezeichner nicht unterstützt" + +msgid "bad value %1 for formal system identifier tracking attribute" +msgstr "" +"Ungültiger Wert %1 für das tracking Attribut für formale Systembezeichner" + +msgid "duplicate specification for formal system identifier attribute %1" +msgstr "" +"Doppelte Spezifikation für das Attribut %1 für formale Systembezeichner" + +msgid "bad value %1 for formal system identifier zapeof attribute" +msgstr "" +"Ungültiger Wert %1 für das zapeof Attribut für formale Systembezeichner" + +msgid "bad value %1 for formal system identifier search attribute" +msgstr "" +"Ungültiger Wert %1 für das search Attribut für formale Systembezeichner" + +msgid "bad value %1 for formal system identifier fold attribute" +msgstr "Ungültiger Wert %1 für das fold Attribut für formale Systembezeichner" + +msgid "fold attribute allowed only for neutral storage manager" +msgstr "Das fold Attribut is nur für den neutralen Speicherverwalter erlaubt" + +msgid "bctf and encoding attributes not applicable to this storage manager" +msgstr "" +"Die Attribute bctf und encoding sind auf diesen Speicherverwalter nicht " +"anwendbar" + +msgid "cannot specify both bctf and encoding attribute" +msgstr "Die Attribute bctf und encoding können nicht beide spezifiziert werden" + +msgid "zapeof attribute not applicable to this storage manager" +msgstr "Das zapeof Attribut ist auf diesen Speicherverwalter nicht anwendbar" + +msgid "records attribute not applicable to this storage manager" +msgstr "Das records Attribut ist auf diesen Speicherverwalter nicht anwendbar" + +msgid "bad value %1 for formal system identifier indirect attribute" +msgstr "" +"Ungültiger Wert %1 für das indirect Attribut für formale Systembezeichner" + +msgid "" +"non-minimum data character (number %1) in value of formal system identifier " +"lookup attribute" +msgstr "" +"Zeichen (Nummer %1) im Wert des lookup Attributes für formale " +"Systembezeichner ist kein minimales Datenzeichen" + +msgid "st" +msgstr "." + +msgid "nd" +msgstr "." + +msgid "rd" +msgstr "." + +msgid "th" +msgstr "." + +msgid "(invalid argument type)" +msgstr "(ungültiger Argumenttyp)" + +msgid "(invalid message)" +msgstr "(ungültige Meldung)" + +msgid "I" +msgstr "I" + +msgid "W" +msgstr "W" + +msgid "Q" +msgstr "Q" + +msgid "X" +msgstr "X" + +msgid "E" +msgstr "E" + +msgid "open elements" +msgstr "Offene Elemente" + +msgid "In entity %1 included from %2" +msgstr "In Entität %1 als Teil von %2" + +msgid "In entity included from %2" +msgstr "In Entität als Teil von %2" + +msgid "(invalid location)" +msgstr "(ungültige Positionsangabe)" + +msgid "offset " +msgstr "Abstand " + +msgid "relevant clauses: " +msgstr "Relevante Klauseln: " + +msgid "unknown warning type %1" +msgstr "Unbekannter Warnungstyp %1" + +msgid "invalid error limit" +msgstr "Ungültige Fehlerschranke" + +msgid "maximum number of errors (%1) reached; change with -E option" +msgstr "" +"Maximale Anzahl von Fehlern (%1) erreicht; das Limit lässt sich mit -E ändern" + +msgid "Make doctype or linktype %1 active." +msgstr "Aktiviere Dokumenttyp oder Linktyp %1." + +msgid "Parse wrt. architecture %1." +msgstr "Parse bezgl. Architektur %1." + +msgid "Give up after %1 errors." +msgstr "Gib nach %1 Fehlern auf." + +msgid "Show open entities in error messages." +msgstr "Zeige offene Entitäten in Fehlermeldungen." + +msgid "Show open elements in error messages." +msgstr "Zeige offene Elemente in Fehlermeldungen." + +msgid "Show error numbers in error messages." +msgstr "Zeige Fehlernummern in Fehlermeldungen." + +msgid "Show references in error messages." +msgstr "Zeige Verweise in Fehlermeldungen." + +msgid "Define parameter entity %1 as \"INCLUDE\"." +msgstr "Definiere Parameterentität %1 als \"INCLUDE\"." + +msgid "Enable warning %1." +msgstr "Aktiviere Warnung %1." + +msgid "TYPE" +msgstr "TYP" + +msgid "NUMBER" +msgstr "ZAHL" + +msgid "length of name must not exceed NAMELEN (%1)" +msgstr "Die Länge eines Namens darf NAMELEN (%1) nicht überschreiten" + +msgid "" +"length of parameter entity name must not exceed NAMELEN less the length of " +"the PERO delimiter (%1)" +msgstr "" +"Die Länge des Namens einer Parameterentität darf NAMELEN minus die Länge des " +"PERO Begrenzers (%1) nicht überschreiten" + +msgid "length of number must not exceed NAMELEN (%1)" +msgstr "Die Länge einer Zahl darf NAMELEN (%1) nicht überschreiten" + +msgid "length of attribute value must not exceed LITLEN less NORMSEP (%1)" +msgstr "" +"Die Länge eines Attributwertes darf LITLEN minus NORMSEP (%1) nicht " +"überschreiten" + +msgid "" +"a name group is not allowed in a parameter entity reference in the prolog" +msgstr "" +"Eine Namensgruppe ist in einer Referenz auf eine Parameterentität im Prolog " +"nicht erlaubt" + +msgid "" +"an entity end in a token separator must terminate an entity referenced in " +"the same group" +msgstr "" +"Das Ende einer Entität in einem Tokentrenner muss eine Entität beenden, die " +"in derselben Gruppe referenziert worden ist" + +msgid "character %1 invalid: only %2 and token separators allowed" +msgstr "Zeichen %1 ungültig: nur %2 und Tokentrenner erlaubt" + +msgid "" +"a parameter separator is required after a number that is followed by a name " +"start character" +msgstr "" +"Nach einer Zahl, auf die ein Namensstartzeichen folgt, ist ein " +"Parametertrenner nötig" + +msgid "character %1 invalid: only %2 and parameter separators allowed" +msgstr "Zeichen %1 ungültig: nur %2 und Parametertrenner erlaubt" + +msgid "" +"an entity end in a parameter separator must terminate an entity referenced " +"in the same declaration" +msgstr "" +"Das Ende einer Entität in einem Parametertrenner muss eine Entität beenden, " +"die in derselben Deklaration referenziert worden ist" + +msgid "" +"an entity end is not allowed in a token separator that does not follow a " +"token" +msgstr "" +"Das Ende einer Entität ist in einem Tokentrenner nicht erlaubt, wenn er " +"nicht auf ein Token folgt" + +msgid "%1 is not a valid token here" +msgstr "%1 ist an dieser Stelle kein gültiges Token" + +msgid "" +"a parameter entity reference can only occur in a group where a token could " +"occur" +msgstr "" +"Eine Referenz auf eine Parameterentität kann in einer Gruppe nur dort " +"vorkommen, wo ein Token vorkommen könnte" + +msgid "token %1 has already occurred in this group" +msgstr "Das Token %1 trat in dieser Gruppe bereits auf" + +msgid "the number of tokens in a group must not exceed GRPCNT (%1)" +msgstr "" +"Die Anzahl der Tokens in einer Gruppe darg GRPCNT (%1) nicht überschreiten" + +msgid "" +"an entity end in a literal must terminate an entity referenced in the same " +"literal" +msgstr "" +"Das Ende einer Entität in einem Literal muss eine Entität beenden, die in " +"demselben Literal referenziert worden ist" + +msgid "character %1 invalid: only minimum data characters allowed" +msgstr "Zeichen %1 ungültig: nur minimale Datenzeichen erlaubt" + +msgid "" +"a parameter literal in a data tag pattern must not contain a numeric " +"character reference to a non-SGML character" +msgstr "" +"Ein Parameterliteral in einem Datatagmuster darf keine numerischen " +"Zeichenreferenzen auf nicht-SGML-Zeichen enthalten" + +msgid "" +"a parameter literal in a data tag pattern must not contain a numeric " +"character reference to a function character" +msgstr "" +"Ein Parameterliteral in einem Datatagmuster darf keine numerischen " +"Zeichenreferenzen auf Funktionszeichen enthalten" + +msgid "" +"a name group is not allowed in a general entity reference in a start tag" +msgstr "" +"Eine Namensgruppe ist in einer Referenz auf eine allgemeine Entität in einem " +"Starttag nicht erlaubt" + +msgid "a name group is not allowed in a general entity reference in the prolog" +msgstr "" +"Eine Namensgruppe ist in einer Referenz auf eine allgemeine Entität im " +"Prolog nicht erlaubt" + +msgid "%1 is not a function name" +msgstr "%1 ist nicht der Name einer Funktion" + +msgid "%1 is not a character number in the document character set" +msgstr "%1 ist keine Zeichennummer im Dokumentzeichensatz" + +msgid "parameter entity %1 not defined" +msgstr "Parameterentität %1 nicht definiert" + +msgid "general entity %1 not defined and no default entity" +msgstr "" +"Allgemeine Entität %1 nicht definiert und keine Standardentität definiert" + +msgid "RNI delimiter must be followed by name start character" +msgstr "RNI Begrenzer muss von einem Namensstartzeichen gefolgt werden" + +msgid "unterminated comment: found end of entity inside comment" +msgstr "Unbeendeter Kommentar: Ende einer Entität in Kommentar" + +msgid "comment started here" +msgstr "Kommentar begann hier" + +msgid "only one type of connector should be used in a single group" +msgstr "Nur ein Typ von Konnektor sollte in einer Gruppe verwendet werden" + +msgid "%1 is not a reserved name" +msgstr "%1 ist kein reservierter Name" + +msgid "%1 is not allowed as a reserved name here" +msgstr "%1 ist an dieser Stelle nicht als reservierter Name erlaubt" + +msgid "" +"length of interpreted minimum literal must not exceed reference LITLEN (%1)" +msgstr "" +"Die Länge eines interpretierten Minimalliterals darf LITLEN (%1) nicht " +"überschreiten" + +msgid "" +"length of tokenized attribute value must not exceed LITLEN less NORMSEP (%1)" +msgstr "" +"Die Länge einer tokenisierten Attributwertes darf LITLEN minus NORMSEP (%1) " +"nicht überschreiten" + +msgid "length of system identifier must not exceed LITLEN (%1)" +msgstr "Die Länge eines Systembezeichners darf LITLEN (%1) nicht überschreiten" + +msgid "length of interpreted parameter literal must not exceed LITLEN (%1)" +msgstr "" +"Die Länge eines interpretierten Parameterliterals darf LITLEN (%1) nicht " +"überschreiten" + +msgid "" +"length of interpreted parameter literal in data tag pattern must not exceed " +"DTEMPLEN (%1)" +msgstr "" +"Die Länge eines interpretierten Parameterliterals in einem Datatagmuster " +"darf DTEMPLEN (%1) nicht überschreiten" + +msgid "literal is missing closing delimiter" +msgstr "Abschließender Begrenzer fehlt in Literal" + +msgid "%1 invalid: only %2 and parameter separators are allowed" +msgstr "%1 ungültig: nur %2 und Parametertrenner sind erlaubt" + +msgid "%1 invalid: only %2 and token separators are allowed" +msgstr "%1 ungültig: nur %2 und Tokentrenner erlaubt" + +msgid "unknown declaration type %1" +msgstr "Unbekannter Deklarationstyp %1" + +msgid "%1 declaration not allowed in DTD subset" +msgstr "%1 Deklaration in DTD Teilmenge nicht erlaubt" + +msgid "character %1 not allowed in declaration subset" +msgstr "Zeichen %1 in Deklarationsteilmenge nicht erlaubt" + +msgid "end of document in DTD subset" +msgstr "Ende des Dokuments in DTD Teilmenge" + +msgid "character %1 not allowed in prolog" +msgstr "Zeichen %1 im Prolog nicht erlaubt" + +msgid "end of document in prolog" +msgstr "Ende des Dokuments im Prolog" + +msgid "%1 declaration not allowed in prolog" +msgstr "%1 Deklaration im Prolog nicht erlaubt" + +msgid "%1 used both a rank stem and generic identifier" +msgstr "" +"%1 wird sowohl als Rangstamm als auch als generischer Bezeichner benutzt" + +msgid "" +"omitted tag minimization parameter can be omitted only if OMITTAG NO is " +"specified" +msgstr "" +"Der Parameter zur OMITTAG-Minimierung kann nur dann entfallen, wenn OMITTAG " +"NO spezifiziert ist" + +msgid "element type %1 already defined" +msgstr "Elementtyp %1 bereits definiert" + +msgid "entity reference with no applicable DTD" +msgstr "Referenz auf Entität ohne anwendbare DTD" + +msgid "" +"invalid comment declaration: found %1 outside comment but inside comment " +"declaration" +msgstr "" +"Ungültige Kommentardeklaration: %1 außerhalb des Kommentars, aber innerhalb " +"der Deklaration" + +msgid "comment declaration started here" +msgstr "Die Kommentardeklaration begann hier" + +msgid "%1 declaration not allowed in instance" +msgstr "%1 Deklaration in der Dokumentinstanz nicht erlaubt" + +msgid "non-SGML character not allowed in content" +msgstr "Nicht-SGML-Zeichen im Inhalt nicht erlaubt" + +msgid "no current rank for rank stem %1" +msgstr "Kein gegenwärtiger Rang für Rangstamm %1" + +msgid "duplicate attribute definition list for notation %1" +msgstr "Doppelte Attributdefinitionsliste für Notation %1" + +msgid "duplicate attribute definition list for element %1" +msgstr "Doppelte Attributdefinitionsliste für Element %1" + +msgid "entity end not allowed in end tag" +msgstr "Ende einer Entität in einem Endtag nicht erlaubt" + +msgid "character %1 not allowed in end tag" +msgstr "Zeichen %1 in einem Endtag nicht erlaubt" + +msgid "%1 invalid: only S separators and TAGC allowed here" +msgstr "%1 ungültig: nur S Trenner und TAGC sind hier erlaubt" + +msgid "character data is not allowed here" +msgstr "Zeicheninhalt ist hier nicht erlaubt" + +msgid "document type does not allow element %1 here" +msgstr "Der Dokumenttyp erlaubt Element %1 an dieser Stelle nicht" + +msgid "" +"document type does not allow element %1 here; missing one of %2 start-tag" +msgstr "" +"Der Dokumenttyp erlaubt Element %1 an dieser Stelle nicht: Es fehlt ein %2 " +"Starttag" + +msgid "" +"document type does not allow element %1 here; assuming missing %2 start-tag" +msgstr "" +"Der Dokumenttyp erlaubt Element %1 an dieser Stelle nicht: ergänze fehlenden " +"%2 Starttag" + +msgid "no start tag specified for implied empty element %1" +msgstr "Kein Starttag für impliziertes leeres Element %1 spezifiziert" + +msgid "end tag for %1 omitted, but its declaration does not permit this" +msgstr "Endtag für %1 ausgelassen obwohl die Deklaration dies nicht erlaubt" + +msgid "start tag was here" +msgstr "Starttag war hier" + +msgid "end tag for %1 omitted, but OMITTAG NO was specified" +msgstr "Endtag für %1 ausgelassen, obwohl OMITTAG NO spezifiziert war" + +msgid "start tag omitted for element %1 with declared content" +msgstr "Starttag für Element %1 mit deklariertem Inhalt ausgelassen" + +msgid "end tag for %1 which is not finished" +msgstr "Endtag für unvollständiges Element %1" + +msgid "start tag for %1 omitted, but its declaration does not permit this" +msgstr "Starttag für %1 ausgelassen, obwohl die Deklaration dies nicht erlaubt" + +msgid "number of open elements exceeds TAGLVL (%1)" +msgstr "Anzahl offener Elemente übersteigt TAGLVL (%1)" + +msgid "element %1 undefined" +msgstr "Element %1 undefiniert" + +msgid "empty end tag but no open elements" +msgstr "Leerer Endtag, aber keine offenen Elemente" + +msgid "%1 not finished but containing element ended" +msgstr "%1 nicht vollständig, aber enthaltendes Element beendet" + +msgid "end tag for element %1 which is not open" +msgstr "Endtag für Element %1, welches nicht offen ist" + +msgid "internal parameter entity %1 cannot be CDATA or SDATA" +msgstr "" +"Interne Parameterentität %1 kann nicht als CDATA oder SDATA deklariert werden" + +msgid "character %1 not allowed in attribute specification list" +msgstr "Zeichen %1 in Attributspezifikationsliste nicht erlaubt" + +msgid "" +"an attribute value must be a literal unless it contains only name characters" +msgstr "" +"Ein Attributwert muss ein Literal sein, wenn er nicht nur Namenszeichen " +"enthält" + +msgid "" +"entity end not allowed in attribute specification list except in attribute " +"value literal" +msgstr "" +"Ende einer Entität in einer Attributspezifikationsliste nicht erlaubt außer " +"in Attributwertliteralen" + +msgid "external parameter entity %1 cannot be CDATA, SDATA, NDATA or SUBDOC" +msgstr "" +"Externe Parameterentität %1 kann nicht als CDATA, SDATA, NDATA oder SUBDOC\n" +"deklariert werden" + +msgid "duplicate declaration of entity %1" +msgstr "Doppelte Deklaration für Entität %1" + +msgid "duplicate declaration of parameter entity %1" +msgstr "Doppelte Deklaration für Parameterentität %1" + +msgid "" +"a reference to a PI entity is allowed only in a context where a processing " +"instruction could occur" +msgstr "" +"Eine Referenz auf eine PI Entität ist nur in solchen Kontexten erlaubt, in " +"denen eine Steuerungsanweisung vorkommen könnte" + +msgid "" +"a reference to a CDATA or SDATA entity is allowed only in a context where a " +"data character could occur" +msgstr "" +"Eine Referenz auf eine CDATA oder SDATA Entität ist nur in solchen Kontexten " +"erlaubt, in denen ein Datenzeichen vorkommen könnte" + +msgid "" +"a reference to a subdocument entity or external data entity is allowed only " +"in a context where a data character could occur" +msgstr "" +"Eine Referenz auf eine Subdokumententität oder eine externe Datenentität ist " +"nur in solchen Kontexten erlaubt, in denen ein Datenzeichen vorkommen könnte" + +msgid "" +"a reference to a subdocument entity or external data entity is not allowed " +"in replaceable character data" +msgstr "" +"Eine Referenz auf eine Subdokumententität oder eine externe Datenentität ist " +"in ersetzbaren Datenzeichen nicht erlaubt" + +msgid "the number of open entities cannot exceed ENTLVL (%1)" +msgstr "Die Anzahl offener Entitäten darf ENTLVL (%1) nicht übersteigen" + +msgid "a reference to a PI entity is not allowed in replaceable character data" +msgstr "" +"Eine Referenz auf eine PI Entität ist in ersetzbaren Zeichendaten nicht " +"erlaubt" + +msgid "entity %1 is already open" +msgstr "Entität %1 ist bereits offen" + +msgid "short reference map %1 not defined" +msgstr "Kurzreferenztabelle %1 nicht definiert" + +msgid "short reference map in DTD must specify associated element type" +msgstr "" +"Kurzreferenztabelle in der DTD muss einen assoziierten Elementtyp " +"spezifizieren" + +msgid "" +"short reference map in document instance cannot specify associated element " +"type" +msgstr "" +"Kurzreferenztabelle in der Dokumentinstanz darf keinen assoziierten " +"Elementtyp spezifizieren" + +msgid "short reference map %1 for element %2 not defined in DTD" +msgstr "Kurzreferenztabelle %1 für Element %2 nicht in der DTD definiert" + +msgid "%1 is not a short reference delimiter" +msgstr "%1 ist keine Kurzreferenz" + +msgid "short reference delimiter %1 already mapped in this declaration" +msgstr "Kurzreferenz %1 ist in dieser Deklaration bereits zugeordnet" + +msgid "no document element" +msgstr "Kein Dokumentelement" + +msgid "entity end not allowed in processing instruction" +msgstr "Ende einer Entität in einer Steueranweisung nicht erlaubt" + +msgid "length of processing instruction must not exceed PILEN (%1)" +msgstr "Die Länge einer Steueranweisung darf PILEN (%1) nicht überschreiten" + +msgid "missing PIC delimiter" +msgstr "Fehlender PIC Begrenzer" + +msgid "an attribute specification must start with a name or name token" +msgstr "" +"Eine Attributspezifikation muss mit einem Namen oder Namenstoken beginnen" + +msgid "%1 is not a member of a group specified for any attribute" +msgstr "%1 ist nicht in einer Gruppe für irgendein Attribut spezifiziert" + +msgid "" +"the name and VI delimiter can be omitted from an attribute specification " +"only if SHORTTAG YES is specified" +msgstr "" +"Der Name und der VI Begrenzer können nur dann entfallen, wenn SHORTTAG YES " +"spezifiziert ist" + +msgid "there is no attribute %1" +msgstr "Es gibt kein Attribut %1" + +msgid "" +"an attribute value specification must start with a literal or a name " +"character" +msgstr "" +"Eine Attributwertspezifikation muss mit einem Literal oder einem " +"Namenszeichen beginnen" + +msgid "length of name token must not exceed NAMELEN (%1)" +msgstr "Die Länge eines Namenstokens darf NAMELEN (%1) nicht überschreiten" + +msgid "" +"an attribute value literal can occur in an attribute specification list only " +"after a VI delimiter" +msgstr "" +"Ein Attributwertliteral kann in einer Attributspezifikationsliste nur nach " +"einem VI Begrenzer vorkommen" + +msgid "duplicate specification of attribute %1" +msgstr "Doppelte Spezifikation von Attribut %1" + +msgid "duplicate definition of attribute %1" +msgstr "Doppelte Definition von Attribut %1" + +msgid "" +"data attribute specification must be omitted if attribute specification list " +"is empty" +msgstr "" +"Datenattributspezifikation muss entfallen, wenn die " +"Attributspezifikationsliste leer ist" + +msgid "marked section end not in marked section declaration" +msgstr "" +"Ende eines markierten Bereichs außerhalb einer Deklaration eines markierten " +"Bereichs" + +msgid "number of open marked sections must not exceed TAGLVL (%1)" +msgstr "" +"Die Anzahl der offenen markierten Bereich darf TAGLVL (%1) nicht " +"überschreiten" + +msgid "missing marked section end" +msgstr "Fehlendes Ende eines markierten Bereichs" + +msgid "marked section started here" +msgstr "Markierter Bereich begann hier" + +msgid "" +"entity end in character data, replaceable character data or ignored marked " +"section" +msgstr "" +"Ende einer Entität in Zeichendaten, ersetzbaren Zeichendaten oder in einem " +"ignorierten markierten Bereich" + +msgid "" +"normalized length of attribute value literal must not exceed LITLEN (%1); " +"length was %2" +msgstr "" +"Die normalisierte Länge eines Attributwertliterals darf LITLEN (%1) nicht " +"überschreiten; die Länge war %2" + +msgid "syntax of attribute value does not conform to declared value" +msgstr "Die Syntax eines Attributwerts entspricht nicht dem deklarierten Wert" + +msgid "character %1 is not allowed in the value of attribute %2" +msgstr "Zeichen %1 ist im Wert von Attribut %2 nicht erlaubt" + +msgid "value of attribute %1 must be a single token" +msgstr "Der Wert von Attribut %1 muss ein einzelnes Token sein" + +msgid "value of attribute %2 invalid: %1 cannot start a number token" +msgstr "" +"Der Wert von Attribut %2 ist ungültig: ein Zahltoken kann nicht mit %1 " +"beginnen" + +msgid "value of attribute %2 invalid: %1 cannot start a name" +msgstr "" +"Der Wert von Attribut %2 ist ungültig: ein Name kann nicht mit %1 beginnen" + +msgid "non-impliable attribute %1 not specified but OMITTAG NO and SHORTTAG NO" +msgstr "" +"Das nicht-implizierbare Attribut %1 ist nicht spezifiziert, aber OMMITAG NO " +"und SHORTTAG NO" + +msgid "required attribute %1 not specified" +msgstr "Notwendiges Attribut %1 nicht spezifiziert" + +msgid "first occurrence of CURRENT attribute %1 not specified" +msgstr "Erstes Vorkommen des CURRENT Attributes %1 nicht spezifiziert" + +msgid "%1 is not a notation name" +msgstr "%1 ist nicht der Name einer Notation" + +msgid "%1 is not a general entity name" +msgstr "%1 ist nicht der Name einer allgemeinen Entität" + +msgid "value of attribute %2 cannot be %1; must be one of %3" +msgstr "Der Wert von Attribut %2 kann nicht %1 sein, nur %3 erlaubt" + +msgid "%1 is not a data or subdocument entity" +msgstr "%1 ist keine Daten- oder Subdokumententität" + +msgid "" +"content model is ambiguous: when no tokens have been matched, both the %2 " +"and %3 occurrences of %1 are possible" +msgstr "" +"Das Inhaltsmodell ist zweideutig: Wenn keine Tokens erfüllt worden sind, ist " +"sowohl das %2 als auch das %3 Vorkommen von %1 möglich" + +msgid "" +"content model is ambiguous: when the current token is the %2 occurrence of %" +"1, both the %4 and %5 occurrences of %3 are possible" +msgstr "" +"Das Inhaltsmodell ist zweideutig: Wenn das gegenwärtige Token das %2 " +"Vorkommen von %2 ist, ist sowohl das %4 als auch das %5 Vorkommen von %3 " +"möglich" + +msgid "" +"content model is ambiguous: when the current token is the %2 occurrence of %" +"1 and the innermost containing AND group has been matched, both the %4 and %" +"5 occurrences of %3 are possible" +msgstr "" +"Das Inhaltsmodell ist zweideutig: Wenn das gegenwärtige Token das %2 " +"Vorkommen von %1 ist und die innerste es enthaltende AND-Gruppe erfüllt ist, " +"ist sowohl das %4 als auch das %5 Vorkommen von %3 möglich" + +msgid "" +"content model is ambiguous: when the current token is the %2 occurrence of %" +"1 and the innermost %3 containing AND groups have been matched, both the %5 " +"and %6 occurrences of %4 are possible" +msgstr "" +"Das Inhaltsmodell ist zweideutig: Wenn das gegenwärtige Token das %2 " +"Vorkommen von %1 ist und die innersten %3 es enthaltenden AND-Gruppen " +"erfüllt sind, ist sowohl das %5 als auch das %6 Vorkommen von %3 möglich" + +msgid "" +"invalid comment declaration: found character %1 outside comment but inside " +"comment declaration" +msgstr "" +"Ungültige Kommentardeklaration: Zeichen %1 außerhalb des Kommentars, aber " +"innerhalb der Kommentardeklaration" + +msgid "non SGML character number %1" +msgstr "Nicht-SGML-Zeichen Nummer %1" + +msgid "data or replaceable character data in declaration subset" +msgstr "Daten- oder ersetzbares Datenzeichen in Deklarationsteilmenge" + +msgid "ID %1 already defined" +msgstr "ID %1 bereits definiert" + +msgid "ID %1 first defined here" +msgstr "ID %1 zuerst hier definiert" + +msgid "value of fixed attribute %1 not equal to default" +msgstr "Der Wert des fixierten Attributs %1 ungleich dem Standardwert" + +msgid "" +"character %1 is not significant in the reference concrete syntax and so " +"cannot occur in a comment in the SGML declaration" +msgstr "" +"Zeichen %1 ist nicht signifikant in der konkreten Referenzsyntax und kann " +"deswegen nicht in einem Kommentar in der SGML Deklaration vorkommen" + +msgid "" +"minimum data of first minimum literal in SGML declaration must be \"ISO " +"8879:1986\" or \"ISO 8879:1986 (ENR)\" or \"ISO 8879:1986 (WWW)\" not %1" +msgstr "" +"Die minimalen Daten des ersten minimalen Literals in der SGML Deklaration " +"muss \"ISO 8879:1986\" oder \"ISO 8879:1986 (ENR)\" oder \"ISO 8879:1986 " +"(WWW)\" sein, nicht %1" + +msgid "parameter before LCNMSTRT must be NAMING not %1" +msgstr "Der Parameter vor LCNMSTRT muss NAMING sein, nicht %1" + +msgid "" +"unexpected entity end in SGML declaration: only %1, S separators and " +"comments allowed" +msgstr "" +"Unerwartetes Ende einer Entität in der SGML Deklaration: nur %1, S Trenner " +"und Kommentare erlaubt" + +msgid "%1 invalid: only %2 and parameter separators allowed" +msgstr "%1 ungültig: nur %2 und Parametertrenner erlaubt" + +msgid "magnitude of %1 too big" +msgstr "Betrag von %1 zu groß" + +msgid "" +"character %1 is not significant in the reference concrete syntax and so " +"cannot occur in a literal in the SGML declaration except as the replacement " +"of a character reference" +msgstr "" +"Zeichen %1 ist nicht signifikant in der konkreten Referenzsyntax und kann " +"deswegen in einem Literal in der SGML Deklaration nur als Ersetzungstext " +"einer Zeichenreferenz vorkommen" + +msgid "%1 is not a valid syntax reference character number" +msgstr "%1 ist keine gültiger Sytaxreferenzzeichennummer" + +msgid "a parameter entity reference cannot occur in an SGML declaration" +msgstr "" +"Eine Referenz auf eine Parameterentität kann in der SGML Deklaration nicht " +"vorkommen" + +msgid "cannot continue because of previous errors" +msgstr "Fortsetzung wegen der aufgetretenen Fehler unmöglich" + +msgid "" +"SGML declaration cannot be parsed because the character set does not contain " +"characters having the following numbers in ISO 646: %1" +msgstr "" +"Die SGML Deklaration kann nicht geparsed werden, weil der Zeichensatz die " +"Zeichen mit folgenden Nummern in ISO 646 nicht enthält: %1" + +msgid "" +"the specified character set is invalid because it does not contain the " +"minimum data characters having the following numbers in ISO 646: %1" +msgstr "" +"Der spezifizierte Zeichensatz ist ungültig, weil er die minimalen " +"Datenzeichen mit folgenden Nummern in IS0 646 nicht enthält: %1" + +msgid "character numbers declared more than once: %1" +msgstr "Folgende Zeichennummern wurden mehrfach deklariert: %1" + +msgid "character numbers should have been declared UNUSED: %1" +msgstr "Folgende Zeichennummern sollten als UNUSED deklariert werden: %1" + +msgid "character numbers missing in base set: %1" +msgstr "Folgende Zeichennummern fehlen in der Grundmenge: %1" + +msgid "" +"characters in the document character set with numbers exceeding %1 not " +"supported" +msgstr "" +"Zeichen im Dokumentzeichensatz mit Nummern größer als %1 werden nicht " +"unterstützt" + +msgid "invalid formal public identifier %1: missing //" +msgstr "Ungültiger formaler öffentlicher Bezeichner %1: // fehlt" + +msgid "invalid formal public identifier %1: no SPACE after public text class" +msgstr "" +"Ungültiger formaler öffentlicher Bezeichner %1: kein SPACE nach der " +"öffentlichen Textklasse" + +msgid "invalid formal public identifier %1: invalid public text class" +msgstr "" +"Ungültiger formaler öffentlicher Bezeichner %1: ungültige öffentliche " +"Textklasse" + +msgid "" +"invalid formal public identifier %1: public text language must be a name " +"containing only upper case letters" +msgstr "" +"Ungültiger formaler öffentlicher Bezeichner %1: öffentliche Textsprache muss " +"ein Name sein, der nur Großbuchstaben enthält" + +msgid "" +"invalid formal public identifer %1: public text display version not " +"permitted with this text class" +msgstr "" +"Ungültiger formaler öffentlicher Bezeichner %1: öffenliche " +"Textdarstellungsversion ist für diese Textklasse nicht erlaubt" + +msgid "invalid formal public identifier %1: extra field" +msgstr "Ungültiger formaler öffentlicher Bezeichner %1: zusätzliches Feld" + +msgid "" +"public text class of public identifier in notation identifier must be " +"NOTATION" +msgstr "" +"Öffentliche Textklasse eines öffentlichen Bezeichners in einem " +"Notationsbezeichner muss NOTATION sein" + +msgid "base character set %1 is unknown" +msgstr "Grundzeichensatz %1 ist unbekannt" + +msgid "" +"delimiter set is ambiguous: %1 and %2 can be recognized in the same mode" +msgstr "" +"Begrenzermenge ist zweideutig: %1 und %2 können im selben Modus erkannt " +"werden" + +msgid "" +"characters with the following numbers in the syntax reference character set " +"are significant in the concrete syntax but are not in the document character " +"set: %1" +msgstr "" +"Zeichen mit den folgenden Nummern im Syntaxreferenzzeichensatz sind " +"signifikant in der konkreten Syntax, aber nicht im Dokumentzeichensatz: %1" + +msgid "" +"there is no unique character in the document character set corresponding to " +"character number %1 in the syntax reference character set" +msgstr "" +"Es gibt kein eindeutiges Zeichen im Dokumentzeichensatz, das der " +"Zeichennummer %1 im Syntaxreferenzzeichensatz entspricht" + +msgid "" +"there is no unique character in the internal character set corresponding to " +"character number %1 in the syntax reference character set" +msgstr "" +"Es gibt kein eindeutiges Zeichen im internen Zeichensatz, das der " +"Zeichennummer %1 im Syntaxreferenzzeichensatz entspricht" + +msgid "" +"the character with number %1 in ISO 646 is significant but has no " +"representation in the syntax reference character set" +msgstr "" +"Das Zeichen mit Nummer %1 in ISO 646 ist signifikant, hat aber keine " +"Repräsentation im Syntaxreferenzzeichensatz" + +msgid "capacity set %1 is unknown" +msgstr "Kapazitätsmenge %1 ist unbekannt" + +msgid "capacity %1 already specified" +msgstr "Kapazität %1 bereits spezifiziert" + +msgid "value of capacity %1 exceeds value of TOTALCAP" +msgstr "Der Wert der Kapazität %1 übersteigt den Wert von TOTALCAP" + +msgid "syntax %1 is unknown" +msgstr "Syntax %1 ist unbekannt" + +msgid "UCNMSTRT must have the same number of characters as LCNMSTRT" +msgstr "UCNMSTRT muss dieselbe Anzahl Zeichen wie LCNMSTRT haben" + +msgid "UCNMCHAR must have the same number of characters as LCNMCHAR" +msgstr "UCNMCHAR muss dieselbe Anzahl Zeichen wie LCNMCHAR haben" + +msgid "" +"number of open subdocuments exceeds quantity specified for SUBDOC parameter " +"in SGML declaration (%1)" +msgstr "" +"Die Anzahl der offenen Subdokumente übersteigt die für den Parameter SUBDOC " +"in der SGML Deklaration angegebene Zahl (%1)" + +msgid "entity %1 declared SUBDOC, but SUBDOC NO specified in SGML declaration" +msgstr "Entität %1 als SUBOC deklariert, aber SUBDOC NO spezifiziert" + +msgid "" +"a parameter entity referenced in a parameter separator must end in the same " +"declaration" +msgstr "" +"Eine Parameterentität, die in einem Parametertrenner referenziert wird, muss " +"in derselben Deklaration enden" + +msgid "reference to non-existent ID %1" +msgstr "Referenz auf nicht existierende ID %1" + +msgid "generic identifier %1 used in DTD but not defined" +msgstr "Generischer Bezeichner %1 in der DTD benutzt, aber nicht definiert" + +msgid "%1 not finished but document ended" +msgstr "%1 am Ende des Dokumentes nicht beendet" + +msgid "cannot continue with subdocument because of previous errors" +msgstr "Fortsetzung im Subdokument wegen der aufgetretenen Fehler unmöglich" + +msgid "no document type declaration; will parse without validation" +msgstr "Keine Documenttypdeklaration, deshalb keine Validation möglich" + +msgid "" +"no internal or external document type declaration subset; will parse without " +"validation" +msgstr "" +"Keine interne oder externe Teilmenge der Dokumenttypdeklaration, deshalb " +"keine Validation möglich" + +msgid "this is not an SGML document" +msgstr "Dies ist kein SGML Dokument" + +msgid "" +"length of start-tag before interpretation of literals must not exceed TAGLEN " +"(%1)" +msgstr "" +"Die Länge des Starttags vor der Interpretation von Literalen darf TAGLEN (%" +"1) nicht überschreiten" + +msgid "" +"a parameter entity referenced in a token separator must end in the same group" +msgstr "" +"Eine Parameterentität, die in einem Tokentrenner referenziert wird, muss in " +"derselben Gruppe enden" + +msgid "" +"the following character numbers are shunned characters that are not " +"significant and so should have been declared UNUSED: %1" +msgstr "" +"Die folgenden Zeichennummern sind gesperrte nicht signifikante Zeichen und " +"sollten als UNUSED deklartiert werden: %1" + +msgid "" +"there is no unique character in the specified document character set " +"corresponding to character number %1 in ISO 646" +msgstr "" +"Es gibt kein eindeutiges Zeichen im spezifizierten Dokumentzeichensatz, das " +"der Zeichennummer %1 in ISO 646 entspricht" + +msgid "length of attribute value must not exceed LITLEN less NORMSEP (-%1)" +msgstr "" +"Die Länge eines Attributwertes darf LITLEN minus NORMSEP (-%1) nicht " +"überschreiten" + +msgid "" +"length of tokenized attribute value must not exceed LITLEN less NORMSEP (-%1)" +msgstr "" +"Die Länge eines tokenisierten Attributwertes darf LITLEN minus NORMSEP (-%1) " +"nicht überschreiten" + +msgid "" +"concrete syntax scope is INSTANCE but value of %1 quantity is less than " +"value in reference quantity set" +msgstr "" +"Der Geltungsbereich der konkreten Syntax ist INSTANCE, aber der Wert der " +"Quantität %1 ist kleiner als ihr Wert in der Referenzquantitätsmenge" + +msgid "" +"public text class of formal public identifier of base character set must be " +"CHARSET" +msgstr "" +"Die öffentliche Textklasse des formalen öffentlichen Bezeichners des " +"Grundzeichensatzes muss CHARSET sein" + +msgid "" +"public text class of formal public identifier of capacity set must be " +"CAPACITY" +msgstr "" +"Die öffentliche Textklasse des formalen öffentlichen Bezeichners der " +"Kapazitätsmenge muss CAPACITY sein" + +msgid "" +"public text class of formal public identifier of concrete syntax must be " +"SYNTAX" +msgstr "" +"Die öffentliche Textklasse des formalen öffentlichen Bezeichners der " +"konkreten Syntax muss SYNTAX sein" + +msgid "when there is an MSOCHAR there must also be an MSICHAR" +msgstr "Wo ein MSOCHAR ist, muss auch ein MSICHAR sein" + +msgid "" +"character number %1 in the syntax reference character set was specified as a " +"character to be switched but is not a markup character" +msgstr "" +"Zeichennummer %1 im Syntaxreferenzzeichensatz war als getauschtes Zeichen " +"spezifiziert, ist aber kein Markupzeichen" + +msgid "" +"character number %1 was specified as a character to be switched but is not " +"in the syntax reference character set" +msgstr "" +"Zeichennummer %1 im Syntaxreferenzzeichensatz war als getauschtes Zeichen " +"spezifiziert, ist aber nicht im Syntaxreferenzzeichensatz" + +msgid "" +"character numbers %1 in the document character set have been assigned the " +"same meaning, but this is the meaning of a significant character" +msgstr "" +"Die Zeichennummern %1 im Dokumentzeichensatz haben dieselbe Bedeutung " +"zugewiesen bekommen, aber diese gehört zu einem signifikanten Zeichen" + +msgid "character number %1 assigned to more than one function" +msgstr "Zeichennummer %1 ist mehr als einer Funktion zugewiesen worden" + +msgid "%1 is already a function name" +msgstr "%1 ist bereits ein Funktionsname" + +msgid "" +"characters with the following numbers in ISO 646 are significant in the " +"concrete syntax but are not in the document character set: %1" +msgstr "" +"Die Zeichen mit den folgenden Nummern in ISO 646 sind in der konkreten " +"Syntax signifikant, aber nicht im Dokumentzeichensatz: %1" + +msgid "general delimiter %1 consists solely of function characters" +msgstr "Allgemeiner Begrenzer %1 besteht nur aus Funktionszeichen" + +msgid "letters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "" +"Buchstaben zu LCNMCHAR, UCNMCHAR, LCNMSTRT oder UCNMSTRT zugewiesen: %1" + +msgid "digits assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "Ziffern zu LCNMCHAR, UCNMCHAR, LCNMSTRT oder UCNMSTRT zugewiesen: %1" + +msgid "" +"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or " +"UCNMSTRT because it is RE" +msgstr "" +"Zeichennummer %1 kann nicht zu LCNMCHAR, UCNMCHAR, LCNMSTRT oder UCNMSTRT " +"zugewiesen werden, da es RE ist" + +msgid "" +"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or " +"UCNMSTRT because it is RS" +msgstr "" +"Zeichennummer %1 kann nicht zu LCNMCHAR, UCNMCHAR, LCNMSTRT oder UCNMSTRT " +"zugewiesen werden, da es RS ist" + +msgid "" +"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or " +"UCNMSTRT because it is SPACE" +msgstr "" +"Zeichennummer %1 kann nicht zu LCNMCHAR, UCNMCHAR, LCNMSTRT oder UCNMSTRT " +"zugewiesen werden, da es SPACE ist" + +msgid "" +"separator characters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "" +"Trennzeichen zu LCNMCHAR, UCNMCHAR, LCNMSTRT oder UCNMSTRT zugewiesen: %1" + +msgid "" +"character number %1 cannot be switched because it is a Digit, LC Letter or " +"UC Letter" +msgstr "" +"Zeichennummer %1 kann nicht getauscht werden, weil es eine Ziffer, ein Groß- " +"oder ein Kleinbuchstabe ist" + +msgid "pointless for number of characters to be 0" +msgstr "Die Anzahl der Zeichen ist 0" + +msgid "" +"%1 cannot be the replacement for a reference reserved name because it is " +"another reference reserved name" +msgstr "" +"%1 kann nicht als Ersetzung für einen reservierten Referenznamen verwendet " +"werden, da es selbst einer ist" + +msgid "" +"%1 cannot be the replacement for a reference reserved name because it is the " +"replacement of another reference reserved name" +msgstr "" +"%1 kann nicht als Ersetzung für einen reservierten Referenznamen verwendet " +"werden, da es bereits die Ersetzung für einen anderen ist" + +msgid "replacement for reserved name %1 already specified" +msgstr "Ersetzung für den reservierten Namen %1 bereits spezifiziert" + +msgid "%1 is not a valid name in the declared concrete syntax" +msgstr "%1 ist kein gültiger Name in der deklarierten konkreten Syntax" + +msgid "" +"%1 is not a valid short reference delimiter because it has more than one B " +"sequence" +msgstr "" +"%1 ist kein gültiger Kurzreferenzbegrenzer, weil es mehr als eine B Sequenz " +"enthält" + +msgid "" +"%1 is not a valid short reference delimiter because it is adjacent to a " +"character that can occur in a blank sequence" +msgstr "" +"%1 ist kein gültiger Kurzreferenzbegrenzer, weil es an ein Zeichen angrenzt, " +"das nicht in einer Leersequenz vorkommen kann" + +msgid "length of delimiter %1 exceeds NAMELEN (%2)" +msgstr "Die Länge des Begrenzers %1 überschreitet NAMELEN (%2)" + +msgid "length of reserved name %1 exceeds NAMELEN (%2)" +msgstr "Die Länge des reservierten Namens %1 überschreitet NAMELEN (%2)" + +msgid "" +"character numbers assigned to both LCNMCHAR or UCNMCHAR and LCNMSTRT or " +"UCNMSTRT: %1" +msgstr "" +"Folgende Zeichennummern wurden sowohl zu LCNMCHAR oder UCNMCHAR und LCNMSTRT " +"oder UCNMSTRT zugewiesen: %1" + +msgid "" +"when the concrete syntax scope is INSTANCE the syntax reference character " +"set of the declared syntax must be the same as that of the reference " +"concrete syntax" +msgstr "" +"Wenn der Gültigkeitsbereich der konkreten Syntax INSTANCE ist, muss der " +"Syntaxreferenzzeichensatz der deklarierten Syntax derselbe wie der der " +"konkreten Referenzsyntax sein" + +msgid "" +"end-tag minimization should be O for element with declared content of EMPTY" +msgstr "" +"Enttag-Minimierung sollte für ein Element mit deklariertem Inhalt EMPTY O " +"sein" + +msgid "" +"end-tag minimization should be O for element %1 because it has CONREF " +"attribute" +msgstr "" +"Endtag-Minimierung sollte für Element %1 O sein, weil es ein CONREF Attribut " +"hat" + +msgid "element %1 has a declared content of EMPTY and a CONREF attribute" +msgstr "Element %1 hat deklarierten Inhalt EMPTY und ein CONREF Attribut" + +msgid "element %1 has a declared content of EMPTY and a NOTATION attribute" +msgstr "Element %1 hat deklarierten Inhalt EMPTY und ein NOTATION Attribut" + +msgid "" +"declared value of data attribute cannot be ENTITY, ENTITIES, ID, IDREF, " +"IDREFS or NOTATION" +msgstr "" +"Der deklarierte Wert eines Datenattributs kann nicht ENTITY, ENTITITES, ID, " +"IDREF, IDREFS oder NOTATION sein" + +msgid "default value of data attribute cannot be CONREF or CURRENT" +msgstr "" +"Der Standardwert eines Datenattributs kann nicht CONREF oder CURRENT sein" + +msgid "number of attribute names and name tokens (%1) exceeds ATTCNT (%2)" +msgstr "" +"Die Anzahl der Attributnamen und Namenstoken (%1) übersteigt ATTCNT (%2)" + +msgid "" +"if the declared value is ID the default value must be IMPLIED or REQUIRED" +msgstr "" +"Wenn der deklarierte Wert ID ist, muss der Standardwert IMPLIED oder " +"REQUIRED sein" + +msgid "" +"the attribute definition list already declared attribute %1 as the ID " +"attribute" +msgstr "" +"Die Attributdefinitionsliste deklarierte Attribut %1 bereits als das ID " +"Attribut" + +msgid "" +"the attribute definition list already declared attribute %1 as the NOTATION " +"attribute" +msgstr "" +"Die Attributdefinitionsliste deklarierte Attribut %1 bereits als das " +"NOTATION Attribut" + +msgid "token %1 occurs more than once in attribute definition list" +msgstr "Token %1 kommt mehrfach in der Attributdefinitionsliste vor" + +msgid "no attributes defined for notation %1" +msgstr "Keine Atttribute für Notation %1 definiert" + +msgid "notation %1 for entity %2 undefined" +msgstr "Notation %1 für Entität %2 undefiniert" + +msgid "entity %1 undefined in short reference map %2" +msgstr "Entität %1 undefiniert in der Kurzreferenztabelle %2" + +msgid "notation %1 is undefined but had attribute definition" +msgstr "Notation %1 ist undefiniert, hatte aber eine Attributdefinition" + +msgid "" +"length of interpreted parameter literal in bracketed text plus the length of " +"the bracketing delimiters must not exceed LITLEN (%1)" +msgstr "" +"Die Länge eines interpretierten Parameterliterals in geklammertem Text plus " +"der Länge der klammernden Begrenzer darf LITLEN (%2) nicht überschreiten" + +msgid "" +"length of rank stem plus length of rank suffix must not exceed NAMELEN (%1)" +msgstr "" +"Die Länge des Rangstamms plus der Länge des Rangsuffixes darf NAMELEN (%1) " +"nicht überschreiten" + +msgid "document instance must start with document element" +msgstr "Die Dokumentinstanz muss mit dem Dokumentelement beginnen" + +msgid "content model nesting level exceeds GRPLVL (%1)" +msgstr "Die Verschachtelungstiefe der Inhaltsmodelle überschreitet GRPLVL (%1)" + +msgid "grand total of content tokens exceeds GRPGTCNT (%1)" +msgstr "Gesamtsumme der Inhaltstoken überschreitet GRPGTCNT (%1)" + +msgid "unclosed start-tag requires SHORTTAG YES" +msgstr "Ungeschlossener Starttag benötigt SHORTTAG YES" + +msgid "NET-enabling start-tag requires SHORTTAG YES" +msgstr "NET-ermöglichender Starttag benötigt SHORTTAG YES" + +msgid "unclosed end-tag requires SHORTTAG YES" +msgstr "Ungeschlossener Endtag benötigt SHORTTAG YES" + +msgid "DTDs other than base allowed only if CONCUR YES or EXPLICIT YES" +msgstr "" +"DTDs außer der Grund-DTD sind nur erlaubt, falls CONCUR YES oder EXPLICIT YES" + +msgid "end of entity other than document entity after document element" +msgstr "" +"Ende einer Entität verschieden von der Dokumententität nach dem " +"Dokumentelement" + +msgid "%1 declaration illegal after document element" +msgstr "%1 Deklaration illegal nach dem Dokumentelement" + +msgid "character reference illegal after document element" +msgstr "Referenz auf ein Zeichen illegal nach dem Dokumentelement" + +msgid "entity reference illegal after document element" +msgstr "Referenz auf eine Entität illegal nach dem Dokumentelement" + +msgid "marked section illegal after document element" +msgstr "Markierter Bereich illegal nach dem Dokumentelement" + +msgid "" +"the %1 occurrence of %2 in the content model for %3 cannot be excluded at " +"this point because it is contextually required" +msgstr "" +"Das %1 Vorkommen von %2 im Inhaltsmodell für %3 kann hier nicht " +"ausgeschlossen werden, da es kontextuell benötigt wird" + +msgid "" +"the %1 occurrence of %2 in the content model for %3 cannot be excluded " +"because it is neither inherently optional nor a member of an OR group" +msgstr "" +"Das %1 Vorkommen von %2 im Inhaltsmodell für %2 kann nicht ausgeschlossen " +"werden, weil es weder inhärent optional noch ein Mitglied einer OR Gruppe ist" + +msgid "" +"an attribute value specification must be an attribute value literal unless " +"SHORTTAG YES is specified" +msgstr "" +"Eine Attributwertspezifikation muss ein Attributwertliteral sein, falls " +"SHORTTAG YES nicht spezifiziert ist" + +msgid "" +"value cannot be specified both for notation attribute and content reference " +"attribute" +msgstr "" +"Es kann nicht gleichzeitig ein Wert für ein Notationsattribut und ein " +"Inhaltsreferenzattribut angegeben werden" + +msgid "notation %1 already defined" +msgstr "Notation %1 bereits definiert" + +msgid "short reference map %1 already defined" +msgstr "Kurzreferenztabelle %1 bereits definiert" + +msgid "first defined here" +msgstr "erste Definition war hier" + +msgid "general delimiter role %1 already defined" +msgstr "Allgemeine Begrenzerrolle %1 bereits definiert" + +msgid "number of ID references in start-tag must not exceed GRPCNT (%1)" +msgstr "" +"Die Anzahl der ID referenzen in einem Starttag darf GRPCNT (%1) nicht " +"überschreiten" + +msgid "" +"number of entity names in attribute specification list must not exceed " +"GRPCNT (%1)" +msgstr "" +"Die Anzahl der Entitätsnamen in einer Attributspezifikationsliste darf " +"GRPCNT (%1) nicht überschreiten" + +msgid "" +"normalized length of attribute specification list must not exceed ATTSPLEN (%" +"1); length was %2" +msgstr "" +"Die normalisierte Länge einer Attributspezifikationsliste darf ATTSPLEN (%1) " +"nicht überschreiten; die Länge war %2" + +msgid "short reference delimiter %1 already specified" +msgstr "Kurzreferenzbegrenzer %1 bereits spezifiziert" + +msgid "" +"single character short references were already specified for character " +"numbers: %1" +msgstr "" +"Kurzreferenzen aus einzelnen Zeichen wurden für folgende Zeichennummern " +"bereits spezifiziert: %1" + +msgid "default entity used in entity attribute %1" +msgstr "Standardentität in Entitätsattribut %1 benutzt" + +msgid "reference to entity %1 uses default entity" +msgstr "Referenz auf Entität %1 benutzt die Standardentität" + +msgid "entity %1 in short reference map %2 uses default entity" +msgstr "Entität %1 in der Kurzreferenztabelle %2 benutzt die Standardentität" + +msgid "no DTD %1 declared" +msgstr "Keine DTD %1 deklariert" + +msgid "LPD %1 has neither internal nor external subset" +msgstr "LPD %1 hat weder eine interne noch ein externe Teilmenge" + +msgid "element types have different link attribute definitions" +msgstr "Elementtypen haben verschiedene Linkattributdefinitionen" + +msgid "link set %1 already defined" +msgstr "Linkmenge %1 bereits definiert" + +msgid "empty result attribute specification" +msgstr "Leere Zielattributspezifikation" + +msgid "no source element type %1" +msgstr "Kein Quellelementtyp %1" + +msgid "no result element type %1" +msgstr "Kein Zielelementtyp %1" + +msgid "end of document in LPD subset" +msgstr "Ende des Dokuments in einer LPD Teilmenge" + +msgid "%1 declaration not allowed in LPD subset" +msgstr "%1 Deklaration in einer LPD Teilmenge nicht erlaubt" + +msgid "ID link set declaration not allowed in simple link declaration subset" +msgstr "" +"ID Linkmengendeklaration in einer einfachen Linkdeklarationsteilmenge nicht " +"erlaubt" + +msgid "link set declaration not allowed in simple link declaration subset" +msgstr "" +"Linkmengendeklaration in einer einfachen Linkdeklarationsteilmenge nicht " +"erlaubt" + +msgid "" +"attributes can only be defined for base document element (not %1) in simple " +"link declaration subset" +msgstr "" +"Attribute können in einer einfachen Linkdeklarationsteilmenge nur für das " +"Grunddokumentelement definiert werden (nicht %1)" + +msgid "a short reference mapping declaration is allowed only in the base DTD" +msgstr "Eine Kurzreferenztabellendeklaration ist nur in der Grund-DTD erlaubt" + +msgid "a short reference use declaration is allowed only in the base DTD" +msgstr "" +"Eine Kurzreferenzbenutzungsdeklaration ist nur in der Grund-DTD erlaubt" + +msgid "default value of link attribute cannot be CURRENT or CONREF" +msgstr "" +"Der Standardwert eines Linkattributes kann nicht CURRENT oder CONREF sein" + +msgid "" +"declared value of link attribute cannot be ID, IDREF, IDREFS or NOTATION" +msgstr "" +"Der deklarierte Wert eines Linkattributes kann nicht ID, IDREF, IDREFS oder " +"NOTATION sein" + +msgid "only fixed attributes can be defined in simple LPD" +msgstr "In einer einfachen LPD können nur fixierte Attribute definiert werden" + +msgid "only one ID link set declaration allowed in an LPD subset" +msgstr "In einer LPD Teilmenge is nur eine ID-Linkmengendeklaration erlaubt" + +msgid "no initial link set defined for LPD %1" +msgstr "Keine initiale Linkmenge für LPD %1 definiert" + +msgid "notation %1 not defined in source DTD" +msgstr "Notation %1 in der Quell-DTD nicht definiert" + +msgid "result document type in simple link specification must be implied" +msgstr "" +"In einer einfachen Linkspezifikation muss der Zieldokumenttyp impliziert sein" + +msgid "simple link requires SIMPLE YES" +msgstr "Ein einfacher Link benötigt SIMPLE YES" + +msgid "implicit link requires IMPLICIT YES" +msgstr "Ein impliziter Link benötigt IMPLICIT YES" + +msgid "explicit link requires EXPLICIT YES" +msgstr "Ein expliziter Link benötigt EXPLICIT YES" + +msgid "LPD not allowed before first DTD" +msgstr "LPD vor der ersten DTD nicht erlaubt" + +msgid "DTD not allowed after an LPD" +msgstr "DTD nach einer LPD nicht erlaubt" + +msgid "definition of general entity %1 is unstable" +msgstr "Die Definition der allgemeinen Entität %1 ist instabil" + +msgid "definition of parameter entity %1 is unstable" +msgstr "Die Definition der Parameterentität %1 ist instabil" + +msgid "" +"multiple link rules for ID %1 but not all have link attribute specifications" +msgstr "" +"Mehrere Linkregeln für ID %1, aber nicht alle haben " +"Linkattributspezifikationen" + +msgid "" +"multiple link rules for element type %1 but not all have link attribute " +"specifications" +msgstr "" +"Mehrere Linkregeln für Elementtyp %1, aber nicht alle haben " +"Linkattributspezifikationen" + +msgid "link type %1 does not have a link set %2" +msgstr "Linktyp %1 hat keine Linkmenge %2" + +msgid "link set use declaration for simple link process" +msgstr "Linkmengenbenutzungsdeklaration für einen einfachen Linkprozess" + +msgid "no link type %1" +msgstr "Kein Linktyp %1" + +msgid "both document type and link type %1" +msgstr "Sowohl Dokumenttyp als auch Linktyp %1" + +msgid "link type %1 already defined" +msgstr "Linktyp %1 bereits definiert" + +msgid "document type %1 already defined" +msgstr "Dokumenttyp %1 bereits definiert" + +msgid "link set %1 used in LPD but not defined" +msgstr "Linkmenge %1 in LPD benutzt, aber nicht definiert" + +msgid "#IMPLIED already linked to result element type %1" +msgstr "#IMPLIED ist bereits mit dem Zielelementtyp %1 gelinkt" + +msgid "" +"number of active simple link processes exceeds quantity specified for SIMPLE " +"parameter in SGML declaration (%1)" +msgstr "" +"Die Anzahl aktiver einfacher Linkprozesse überschreitet die für den SIMPLE " +"Parameter in der SGML Deklaration angegebene Größe (%1)" + +msgid "only one chain of explicit link processes can be active" +msgstr "Nur eine Kette expliziter Linkprozesse kann aktiv sein" + +msgid "" +"source document type name for link type %1 must be base document type since " +"EXPLICIT YES 1" +msgstr "" +"Quelldokumenttypname für Linktyp %1 muss der Grunddokumenttyp sein, da " +"EXPLICIT YES 1" + +msgid "only one implicit link process can be active" +msgstr "Nur ein impliziter Linkprozess kann aktiv sein" + +msgid "" +"sorry, link type %1 not activated: only one implicit or explicit link " +"process can be active (with base document type as source document type)" +msgstr "" +"Sorry, Linktyp %1 nicht aktiviert: nur ein impliziter oder expliziter " +"Linkprozess kann aktiv sein (mit Grunddokumenttyp als Quelldokumenttyp)" + +msgid "name missing after name group in entity reference" +msgstr "Name fehlt nach einer Namensgruppe in einer Referenz auf eine Entität" + +msgid "" +"source document type name for link type %1 must be base document type since " +"EXPLICIT NO" +msgstr "" +"Quelldokumenttypname für Linktyp %1 muss der Grunddokumenttyp sein, da " +"EXPLICIT NO" + +msgid "link process must be activated before base DTD" +msgstr "Linkprozess muss vor der Grund-DTD aktiviert sein" + +msgid "unexpected entity end while starting second pass" +msgstr "Unerwartetes Ende einer Entität, während der zweite Durchgang begann" + +msgid "" +"type %1 of element with ID %2 not associated element type for applicable " +"link rule in ID link set" +msgstr "" +"Typ %1 des Elements mit ID %2 ist nicht der assoziierte Elementtyp einer " +"anwendbaren Linkregel in einer ID-Linkmenge" + +msgid "DATATAG feature not implemented" +msgstr "DATATAG nicht implementiert" + +msgid "" +"generic identifier specification missing after document type specification " +"in start-tag" +msgstr "Generischer Bezeichner fehlt nach der Dokumenttypspezifikation" + +msgid "" +"generic identifier specification missing after document type specification " +"in end-tag" +msgstr "" +"Generischer Bezeichner fehlt nach der Dokumenttypspezifikation in einem " +"Endtag" + +msgid "a NET-enabling start-tag cannot include a document type specification" +msgstr "" +"Ein NET-ermöglichender Starttag kann keine Dokumenttypspezikation enthalten" + +msgid "DTD did not contain element declaration for document type name" +msgstr "Die DTD enthielt keine Elementdeklaration für den Dokumenttypnamen" + +msgid "invalid default SGML declaration" +msgstr "Ungültige Standard SGML Deklaration" + +msgid "" +"reference to entity %1 for which no system identifier could be generated" +msgstr "" +"Referenz auf Entität %1, für welche kein Systembezeichner erzeugt werden " +"konnte" + +msgid "entity was defined here" +msgstr "Die Entität wurde hier definiert" + +msgid "content model is mixed but does not allow #PCDATA everywhere" +msgstr "Das Inhaltsmodell ist gemischt, aber erlaubt #PCDATA nicht überall" + +msgid "start or end of range must specify a single character" +msgstr "" +"Beginn oder Ende eines Bereichs müssen ein einzelnes Zeichen spezifizieren" + +msgid "" +"number of first character in range must not exceed number of second " +"character in range" +msgstr "" +"Die Nummer des ersten Zeichens eines Bereichs darf die des zweiten Zeichens " +"nicht überschreiten" + +msgid "delimiter cannot be an empty string" +msgstr "Begrenzer kann nicht leer sein" + +msgid "too many characters assigned same meaning with minimum literal" +msgstr "Zu viele Zeichen haben dieselbe Bedeutung mit minimalem Literal" + +msgid "earlier reference to entity %1 used default entity" +msgstr "Frühere Referenz auf Entität %1 benutzte die Standardentität" + +msgid "empty start-tag" +msgstr "Leerer Starttag" + +msgid "empty end-tag" +msgstr "Leerer Endtag" + +msgid "unused short reference map %1" +msgstr "Unbenutzte Kurzreferenztabelle %1" + +msgid "unused parameter entity %1" +msgstr "Unbenutzte Parameterentität %1" + +msgid "cannot generate system identifier for public text %1" +msgstr "Kann keinen Systembezeichner für den öffentlichen Text %1 erzeugen" + +msgid "cannot generate system identifier for general entity %1" +msgstr "Kann keinen Systembezeichner für die allgemeine Entität %1 erzeugen" + +msgid "cannot generate system identifier for parameter entity %1" +msgstr "Kann keinen Systembezeichner für die Parameterentität %1 erzeugen" + +msgid "cannot generate system identifier for document type %1" +msgstr "Kann keinen Systembezeichner für Dokumenttyp %1 erzeugen" + +msgid "cannot generate system identifier for link type %1" +msgstr "Kann keinen Systembezeichner für Linktyp %1 erzeugen" + +msgid "cannot generate system identifier for notation %1" +msgstr "Kann keinen Systembezeichner für Notation %1 erzeugen" + +msgid "element type %1 both included and excluded" +msgstr "Elementyp %1 sowohl ein- als auch ausgeschlossen" + +msgid "no document type declaration; implying %1" +msgstr "Keine Dokumenttypdeklaration: impliziere %1" + +msgid "minimum data of AFDR declaration must be \"ISO/IEC 10744:1997\" not %1" +msgstr "" +"Minimale Daten der AFDR Deklaration müssen \"ISO/IEC 10744:1997\" und nicht %" +"1 sein" + +msgid "AFDR declaration required before use of AFDR extensions" +msgstr "" +"AFDR Deklaration benötigt, bevor die AFDR Erweiterungen benutzt werden können" + +msgid "" +"ENR extensions were used but minimum literal was not \"ISO 8879:1986 (ENR)\" " +"or \"ISO 8879:1986 (WWW)\"" +msgstr "" +"Die ENR Erweiterungen wurden benutzt, aber das minimale Literal war nicht " +"\"ISO 8879:1986 (ENR)\" oder \"ISO 8879:1986 (WWW)\"" + +msgid "illegal numeric character reference to non-SGML character %1 in literal" +msgstr "" +"Ungültige numerische Zeichenreferenz auf das nicht-SGML Zeichen %1 in einem " +"Literal" + +msgid "" +"cannot convert character reference to number %1 because description %2 " +"unrecognized" +msgstr "" +"Kann die Zeichenreferenz auf Nummer %1 nicht konvertieren, weil die " +"Beschreibung %2 nicht erkannt wurde" + +msgid "" +"cannot convert character reference to number %1 because character %2 from " +"baseset %3 unknown" +msgstr "" +"Kann die Zeichenreferenz auf Nummer %1 nicht konvertieren, weil Zeichen %2 " +"aus der Grundmenge %3 unbekannt ist" + +msgid "" +"character reference to number %1 cannot be converted because of problem with " +"internal character set" +msgstr "" +"Kann die Zeichenreferenz auf Nummer %1 nicht konvertieren, weil es ein " +"Problem mit dem internen Zeichensatz gibt" + +msgid "" +"cannot convert character reference to number %1 because character not in " +"internal character set" +msgstr "" +"Kann die Zeichenreferenz auf Nummer %1 nicht konvertieren, weil das Zeichen " +"nicht im internen Zeichensatz vorhanden ist" + +msgid "" +"Web SGML adaptations were used but minimum literal was not \"ISO 8879:1986 " +"(WWW)\"" +msgstr "" +"Die Web SGML Anpassungen wurden benutzt, aber das minimale Literal war nicht " +"\"ISO 8879:1986 (WWW)\"" + +msgid "" +"token %1 can be value for multiple attributes so attribute name required" +msgstr "" +"Token %1 kann als Wert mehrerer Attribute vorkommen, deswegen wird ein " +"Attributname benötigt" + +msgid "length of hex number must not exceed NAMELEN (%1)" +msgstr "Die Länge einer Hex-Zahl darf NAMELEN (%1) nicht überschreiten" + +msgid "CDATA declared content" +msgstr "CDATA deklarierter Inhalt" + +msgid "RCDATA declared content" +msgstr "RCDATA deklarierter Inhalt" + +msgid "inclusion" +msgstr "Einschluss" + +msgid "exclusion" +msgstr "Ausschluss" + +msgid "NUMBER or NUMBERS declared value" +msgstr "NUMBER oder NUMBERS deklarierter Wert" + +msgid "NAME or NAMES declared value" +msgstr "NAME oder NAMES deklarierter Wert" + +msgid "NUTOKEN or NUTOKENS declared value" +msgstr "NUTOKEN oder NUTOKENS deklarierter Wert" + +msgid "CONREF attribute" +msgstr "CONREF Attribut" + +msgid "CURRENT attribute" +msgstr "CURRENT Attribut" + +msgid "TEMP marked section" +msgstr "TEMP markierter Bereich" + +msgid "included marked section in the instance" +msgstr "eingeschlossener markierter Bereich in der Instanz" + +msgid "ignored marked section in the instance" +msgstr "ignorierter markierter Bereich in der Instanz" + +msgid "RCDATA marked section" +msgstr "RCDATA markierter Bereich" + +msgid "processing instruction entity" +msgstr "Steueranweisungsentität" + +msgid "bracketed text entity" +msgstr "geklammerte Text-Entität" + +msgid "internal CDATA entity" +msgstr "interne CDATA Entität" + +msgid "internal SDATA entity" +msgstr "interne SDATA Entität" + +msgid "external CDATA entity" +msgstr "externe CDATA Entität" + +msgid "external SDATA entity" +msgstr "externe SDATA Entität" + +msgid "attribute definition list declaration for notation" +msgstr "Attributdefinitionslistendeklaration für eine Notation" + +msgid "rank stem" +msgstr "Rangstamm" + +msgid "no system id specified" +msgstr "Kein Systembezeichner spezifiziert" + +msgid "comment in parameter separator" +msgstr "Kommentar in Parametertrenner" + +msgid "named character reference" +msgstr "namentliche Zeichenreferenz" + +msgid "AND group" +msgstr "AND Gruppe" + +msgid "attribute value not a literal" +msgstr "Attributwert kein Literal" + +msgid "attribute name missing" +msgstr "Attributname fehlt" + +msgid "element declaration for group of element types" +msgstr "Elementdeklaration für eine Gruppe von Elementtypen" + +msgid "attribute definition list declaration for group of element types" +msgstr "Attributdefinitionslistendeklaration für eine Gruppe von Elementtypen" + +msgid "empty comment declaration" +msgstr "Leere Kommentardeklaration" + +msgid "S separator in comment declaration" +msgstr "S Trenner in einer Kommentardeklaration" + +msgid "multiple comments in comment declaration" +msgstr "Mehrere Kommentare in einer Kommentardeklaration" + +msgid "no status keyword" +msgstr "Kein Statusschlüsselwort" + +msgid "multiple status keywords" +msgstr "Mehrere Statusschlüsselwörter" + +msgid "parameter entity reference in document instance" +msgstr "Referenz auf eine Parameterentität in der Dokumentinstanz" + +msgid "element type minimization parameter" +msgstr "Elementtyp-Minimierungsparameter" + +msgid "reference not terminated by REFC delimiter" +msgstr "Referenz nicht durch REFC Begrenzer abgeschlossen" + +msgid "#PCDATA not first in model group" +msgstr "#PCDATA nicht am Beginn einer Modellgruppe" + +msgid "#PCDATA in SEQ group" +msgstr "#PCDATA in einer SEQ Gruppe" + +msgid "#PCDATA in nested model group" +msgstr "#PCDATA in einer verschachtelten Modellgruppe" + +msgid "#PCDATA in model group that does not have REP occurrence indicator" +msgstr "#PCDATA in einer Modellgruppe ohne den REP Häufigkeitsindikator" + +msgid "name group or name token group used connector other than OR" +msgstr "Namensgruppe oder Namenstokengruppe mit Verbinder ungleich OR" + +msgid "processing instruction does not start with name" +msgstr "Steueranweisung beginnt nicht mit einem Namen" + +msgid "S separator in status keyword specification in document instance" +msgstr "" +"S Trenner in einer Statusschlüsselwortspezifikation in der Dokumentinstanz" + +msgid "reference to external data entity" +msgstr "Referenz auf eine externe Datenentität" + +msgid "reference to external entity in attribute value" +msgstr "Referenz auf eine externe Entität in einem Attributwert" + +msgid "character %1 is the first character of a delimiter but occurred as data" +msgstr "" +"Zeichen %1 ist das erste Zeichen eines Begrenzers, kam aber als Daten vor" + +msgid "SGML declaration was not implied" +msgstr "SGML Deklaration war nicht impliziert" + +msgid "marked section in internal DTD subset" +msgstr "Markierter Bereich in der internen DTD Teilmenge" + +msgid "NET-enabling start-tag not immediately followed by null end-tag" +msgstr "" +"NET-ermöglichender Starttag nicht unmittelbar von einem Null Endtag gefolgt" + +msgid "entity end in different element from entity reference" +msgstr "Ende einer Entität in einem anderen Element als die Referenz" + +msgid "NETENABL IMMEDNET requires EMPTYNRM YES" +msgstr "NETENABL IMMEDNET benötigt EMPTYNRM YES" + +msgid "reference to non-SGML character" +msgstr "Referenz auf nicht-SGML Zeichen" + +msgid "declaration of default entity" +msgstr "Deklaration einer Standardentität" + +msgid "reference to parameter entity in parameter separator in internal subset" +msgstr "" +"Referenz auf eine Parameterentität in einem Parametertrenner in der internen " +"Teilmenge" + +msgid "reference to parameter entity in token separator in internal subset" +msgstr "" +"Referenz auf eine Parameterentität in einem Tokentrenner in der internen " +"Teilmenge" + +msgid "reference to parameter entity in parameter literal in internal subset" +msgstr "" +"Referenz auf eine Parameterentität in einem Parameterliteral in der internen " +"Teilmenge" + +msgid "cannot generate system identifier for SGML declaration reference" +msgstr "" +"Kann keinen Systembezeichner für die Referenz auf die SGML Deklaration " +"erzeugen" + +msgid "" +"public text class of formal public identifier of SGML declaration must be SD" +msgstr "" +"Die öffentliche Textklasse des formalen öffentlichen Bezeichners der SGML " +"Deklaration muss SD sein" + +msgid "" +"SGML declaration reference was used but minimum literal was not \"ISO " +"8879:1986 (WWW)\"" +msgstr "" +"Eine Referenz auf die SGML Deklaration wurde benutzt, obwohl das minimale " +"Literal nicht \"ISO 8879:1986 (WWW)\" ist" + +msgid "member of model group containing #PCDATA has occurrence indicator" +msgstr "" +"Ein Mitglied einer #PCDATA enthaltenden Modellgruppe hat einen " +"Häufigkeitsindikator" + +msgid "member of model group containing #PCDATA is a model group" +msgstr "" +"Ein Mitglied einer #PCDATA enthaltenden Modellgruppe ist eine Modellgruppe" + +msgid "reference to non-predefined entity" +msgstr "Referenz auf eine nicht vordefinierte Entität" + +msgid "reference to external entity" +msgstr "Referenz auf eine externe Entität" + +msgid "declaration of default entity conflicts with IMPLYDEF ENTITY YES" +msgstr "" +"Die Deklaration einer Standardentität steht im Konflikt zu IMPLYDEF ENTITY " +"YES" + +msgid "parsing with respect to more than one active doctype not supported" +msgstr "Mehrere aktive Dokumenttypen nicht unterstützt" + +msgid "cannot have active doctypes and link types at the same time" +msgstr "Aktive Dokument- und Linktypen können nicht gemischt werden" + +msgid "" +"number of concurrent document instances exceeds quantity specified for " +"CONCUR parameter in SGML declaration (%1)" +msgstr "" +"Die Anzahl gleichzeitiger Dokumentinstanzen übersteigt die für den CONCUR " +"Parameter in der SG" + +msgid "datatag group can only be specified in base document type" +msgstr "Datentaggruppen können nur im Dokumentgrundtyp spezifiziert werden" + +msgid "element not in the base document type can't have an empty start-tag" +msgstr "" +"Ein Element, das nicht zum Dokumentgrundtyp gehört, kann keinen leeren " +"Starttag haben" + +msgid "element not in base document type can't have an empty end-tag" +msgstr "" +"Ein Element, das nicht zum Dokumentgrundtyp gehört, kann keinen leeren " +"Endtag haben" + +msgid "immediately recursive element" +msgstr "Unmittelbar rekursives Element" + +msgid "invalid URN %1: missing \":\"" +msgstr "Ungültige URN %1: fehlendes \":\"" + +msgid "invalid URN %1: missing \"urn:\" prefix" +msgstr "Ungültige URN %1: fehlendes \"urn:\" Präfix" + +msgid "invalid URN %1: invalid namespace identifier" +msgstr "Ungültige URN %1: ungültiger Namensraumbezeichner" + +msgid "invalid URN %1: invalid namespace specific string" +msgstr "Ungültige URN %1: ungültiger Namensraum-spezifischer String" + +msgid "invalid URN %1: extra field" +msgstr "Ungültige URN %1: zusätliches Feld" + +msgid "" +"prolog can't be omitted unless CONCUR NO and LINK EXPLICIT NO and either " +"IMPLYDEF ELEMENT YES or IMPLYDEF DOCTYPE YES" +msgstr "" +"Der Prolog kann nur dann weggelassen werden, wenn CONCUR NO, LINK EXPLICIT " +"NO und IMPLYDEF ELEMENT YES oder IMPLYDEF DOCTYPE YES" + +msgid "can't determine name of #IMPLIED document element" +msgstr "Kann den Namen des #IMPLIED Dokumentelements nicht bestimmen" + +msgid "can't use #IMPLICIT doctype unless CONCUR NO and LINK EXPLICIT NO" +msgstr "" +"#IMPLICIT kann als Dokumenttyp nur bei CONCUR NO und LINK EXPLICIT NO " +"verwendet werden" + +msgid "Sorry, #IMPLIED doctypes not implemented" +msgstr "Sorry, #IMPLIED als Dokumenttypen nicht implementiert" + +msgid "reference to DTD data entity ignored" +msgstr "Referenz auf DTD-Datenentität ignoriert" + +msgid "notation %1 for parameter entity %2 undefined" +msgstr "Notation %1 für Parameterentität %2 undefiniert" + +msgid "notation %1 for external subset undefined" +msgstr "Notation %1 für externe Teilmenge undefiniert" + +msgid "attribute %1 can't be redeclared" +msgstr "Attribut %1 kann nicht redeklariert werden" + +msgid "#IMPLICIT attributes have already been specified for notation %1" +msgstr "#IMPLICIT Attribut für Notationo %1 bereits spezifiziert" + +msgid "" +"a name group is not allowed in a parameter entity reference in a start tag" +msgstr "" +"Eine Namensgruppe ist in einer Referenz auf eine Parameterentität in einem " +"Starttag nicht erlaubt" + +msgid "" +"name group in a parameter entity reference in an end tag (SGML forbids them " +"in start tags)" +msgstr "" +"Namensgruppe ist in einer Referenz auf eine Parameterentität in einem Endtag " +"(SGML verbietet diese in Starttags)" + +msgid "if the declared value is NOTATION a default value of CONREF is useless" +msgstr "" +"Wenn der deklarierte Wert NOTATION ist, ist ein Defaultwert von CONREF " +"sinnlos" + +msgid "Sorry, #ALL and #IMPLICIT content tokens not implemented" +msgstr "Sorry, #ALL und #IMPLICIT Inhaltstoken nicht implementiert" + +msgid "delimiter " +msgstr "Begrenzer " + +msgid "digit" +msgstr "Ziffer" + +msgid "name start character" +msgstr "Namensstartzeichen" + +msgid "sepchar" +msgstr "sepchar" + +msgid "separator" +msgstr "Trenner" + +msgid "name character" +msgstr "Namenszeichen" + +msgid "data character" +msgstr "Datenzeichen" + +msgid "minimum data character" +msgstr "minimales Datenzeichen" + +msgid "significant character" +msgstr "signifikantes Zeichen" + +msgid "record end character" +msgstr "Blockendzeichen" + +msgid "record start character" +msgstr "Blockstartzeichen" + +msgid "space character" +msgstr "Leerzeichen" + +msgid ", " +msgstr ", " + +msgid "-" +msgstr "-" + +msgid "parameter literal" +msgstr "Parameterliteral" + +msgid "data tag group" +msgstr "Datentaggruppe" + +msgid "model group" +msgstr "Modellgruppe" + +msgid "data tag template group" +msgstr "Datentagmustergruppe" + +msgid "name" +msgstr "Name" + +msgid "name token" +msgstr "Namenstoken" + +msgid "element token" +msgstr "Elementtoken" + +msgid "inclusions" +msgstr "Einschlüsse" + +msgid "exclusions" +msgstr "Ausschlüsse" + +msgid "minimum literal" +msgstr "Minimalliteral" + +msgid "attribute value literal" +msgstr "Attributwertliteral" + +msgid "system identifier" +msgstr "Systembezeichner" + +msgid "number" +msgstr "Zahl" + +msgid "attribute value" +msgstr "Attributwert" + +msgid "name of capacity" +msgstr "Kapazitätsname" + +msgid "name of general delimiter role" +msgstr "Name einer allgemeinen Begrenzerrolle" + +msgid "reference reserved name" +msgstr "reservierter Referenzname" + +msgid "name of quantity" +msgstr "Quantitätsname" + +msgid "entity end" +msgstr "Entitätsende" + +msgid "short reference delimiter" +msgstr "Kurzreferenzbegrenzer" + +msgid "error reading %1 (%2)" +msgstr "Fehler beim Lesen von %1 (%2)" + +msgid "cannot open %1 (%2)" +msgstr "Kann %1 nicht öffnen (%2)" + +msgid "error closing %1 (%2)" +msgstr "Fehler beim Schließen von %1 (%2)" + +msgid "error seeking on %1 (%2)" +msgstr "Fehler beim Suchen in %1 (%2)" + +msgid "invalid filename %1" +msgstr "Ungültiger Dateiname %1" + +msgid "error reading file descriptor %1 (%2)" +msgstr "Fehler beim Lesen von Dateideskriptor %1 (%2)" + +msgid "error seeking on file descriptor %1 (%2)" +msgstr "Fehler beim Suchen in Dateideskriptor %1 (%2)" + +msgid "%1 is not a valid file descriptor number" +msgstr "%1 ist keine gültige Dateideskriptornummer" + +msgid "cannot find %1; tried %2" +msgstr "Kann %1 nicht finden; versuchte %2" + +msgid "error seeking %1 (%2)" +msgstr "Fehler beim Suchen in %1 (%2)" + +msgid "empty host in HTTP URL %1" +msgstr "Leerer Rechnername in HTTP URL %1" + +msgid "uncompletable relative HTTP URL %1" +msgstr "Relative HTTP URL %1 kann nicht vervollständigt werden" + +msgid "empty port number in HTTP URL %1" +msgstr "Leere Portnummer in HTTP URL %1" + +msgid "invalid port number in HTTP URL %1" +msgstr "Ungültige Portnummer in HTTP URL %1" + +msgid "host %1 not found" +msgstr "Rechner %1 nicht gefunden" + +msgid "could not resolve host %1 (try again later)" +msgstr "Konnte Rechnernummer zu Rechner %1 nicht bestimmen (temporärer Fehler)" + +msgid "could not resolve host %1 (unrecoverable error)" +msgstr "" +"Konnte Rechnernummer zu Rechner %1 nicht bestimmen (unbehebbarer Fehler)" + +msgid "no address record for host name %1" +msgstr "Keine Addresseintragung für Rechnernamen %1" + +msgid "could not resolve host %1 (%2)" +msgstr "Konnte Rechnernummer zu Rechner %1 nicht bestimmen (%2)" + +msgid "could not resolve host %1 (unknown error)" +msgstr "" +"Konnte Rechnernummer zu Rechner %1 nicht bestimmen (unbekannter Fehler)" + +msgid "cannot create socket (%1)" +msgstr "Kann kein Socket erzeugen (%1)" + +msgid "error connecting to %1 (%2)" +msgstr "Fehler beim Verbindungsaufbau zu %1 (%2)" + +msgid "error sending request to %1 (%2)" +msgstr "Fehler beim Senden der Anfrage an %1 (%2)" + +msgid "error receiving from host %1 (%2)" +msgstr "Fehler beim Emfangen von %1 (%2)" + +msgid "error closing connection to host %1 (%2)" +msgstr "Fehler beim Schließen der Verbindung zu %1 (%2)" + +msgid "invalid host number %1" +msgstr "Ungültige Rechnernummer %1" + +msgid "could not get %2 from %1 (reason given was %3)" +msgstr "Konnte %2 nicht von %1 erhalten (Begründung: %3)" + +msgid "URL not supported by this version" +msgstr "URL in dieser Version nicht unterstützt" + +msgid "only HTTP scheme supported" +msgstr "nur HTTP Schema unterstützt" + +msgid "could not initialize Windows Sockets (%1)" +msgstr "Konnte Windows Sockets nicht initialisieren (%1)" + +msgid "incompatible Windows Sockets version" +msgstr "Inkompatible Windows Sockets Version" + +msgid "error number " +msgstr "Fehlernummer " + +msgid "URL Redirected to %1" +msgstr "URL Weitergeleitet nach %1" + +msgid "cannot open URL %1 (%2)" +msgstr "Kann URL %1 nicht öffnen (%2)" + +msgid "error reading URL %1 (%2)" +msgstr "Fehler beim Lesen von URL %1 (%2)" + +msgid "unknown output option %1" +msgstr "Ungültige Ausgabeoption %1" + +msgid "Enable batch mode." +msgstr "Aktiviere Batch-Modus." + +msgid "Produce output according to %1." +msgstr "Erzeuge Ausgabe gemäß %1." + +msgid "Stop after the document prolog." +msgstr "Stoppe nach dem Dokumentprolog." + +msgid "Suppress output." +msgstr "Unterdrücke Ausgabe." + +msgid "Send RAST output to file %1." +msgstr "Sende RAST Ausgabe in Datei %1." + +msgid "Same as -wduplicate." +msgstr "Dasselbe wie -wduplicate." + +msgid "Same as -oline." +msgstr "Dasselbe wie -oline." + +msgid "Same as -c." +msgstr "Dasselbe wie -c." + +msgid "Same as -wdefault." +msgstr "Dasselbe wie -wdefault." + +msgid "Same as -wundef." +msgstr "Dasselbe wie -wundef." + +msgid "%1 parses and validates the SGML document whose document entity is" +msgstr "" +"%1 parsed und validiert das SGML Dokument dessen Dokumententität durch die" + +msgid "specified by the system identifiers SYSID... and prints on the standard" +msgstr "" +"Systembezeichner SYSID... spezifiziert ist und gibt auf der Standardausgabe" + +msgid "" +"output a simple text representation of its Element Structure Information Set." +msgstr "" +"eine einfache Textrepräsentation seiner Elementstrukturinformationsmenge " +"(ESIS) aus." + +msgid "If more than one system identifier is specified, then the corresponding" +msgstr "" +"Sind mehrere Systembezeichner spezifiziert, so ist die Dokumententität die" + +msgid "entities will be concatenated to form the document entity. If no system" +msgstr "" +"Verkettung der entsprechenden Entitäten. Ist kein Systembezeichner " +"spezifiziert," + +msgid "identifiers are specified, then %1 will read the document entity from" +msgstr "" +"so liest %1 die Dokumententität von der Standardeingabe. Auf der " +"Kommandozeile" + +msgid "the standard input. A command line system identifier of - can be used" +msgstr "" +"kann der Systembezeichner - verwendet werden, um die Standardeingabe zu" + +msgid "to refer to the standard input." +msgstr "spezifizieren." + +msgid "OPTION" +msgstr "OPTION" + +# RastEventHandlerMessages +# RastEventHandlerMessages +msgid "invalid RAST processing instruction" +msgstr "Ungültige RAST Steueranweisung" + +msgid "invalid link type %1 in rast-active-lpd processing instruction" +msgstr "Ungültiger Linktyp %1 in rast-active-lpd Steueranweisung" + +msgid "duplicate link type %1 in rast-active-lpd processing instruction" +msgstr "Doppelter Linktyp %1 in rast-active-lpd Steueranweisung" + +msgid "rast-link-rule: processing instruction matches more than one link rule" +msgstr "rast-link-rule: Steueranweisung passt zu mehreren Linkregeln" + +msgid "rast-link-rule: processing instruction does not match any link rules" +msgstr "rast-link-rule: Steueranweisung passt zu keiner Linkregel" + +msgid "" +"multiple applicable link rules without disambiguating rast-link-rule: " +"processing instruction" +msgstr "" +"Mehrere anwendbare Linkregeln ohne eindeutig machende rast-link-rule: " +"Steueranweisung" + +# SpamMessages +# SpamMessages +msgid "invalid argument for -m option" +msgstr "Ungültiges Argument für -m Option" + +msgid "" +"omitted start or end tag implied in CDATA or RCDATA marked section; not " +"normalized" +msgstr "" +"Weggelassener Start- oder Endtag in einem CDATA oder RCDATA markierten " +"Bereich impliziert; nicht normalisiert" + +msgid "Hoist omitted tags." +msgstr "Ziehe weggelassene Tags aus internen Entitäten heraus." + +msgid "Prefer lowercase." +msgstr "Ziehe Kleinschreibung vor." + +msgid "Use markup option %1." +msgstr "Benutze Markup-Option %1." + +msgid "Output the entity named %1." +msgstr "Gib Entität %1 aus." + +msgid "Output the prolog." +msgstr "Gib den Prolog aus." + +msgid "Raw." +msgstr "Roh." + +msgid "Expand references." +msgstr "Expandiere Referenzen." + +msgid "%1 is an SGML markup stream editor. %1 parses the SGML document" +msgstr "%1 ist ein SGML Markupstromeditor. %1 parsed das SGML Dokument, das in" + +msgid "contained in SYSID... and copies portions of the document to the" +msgstr "" +"SYSID... enthalten ist und kopiert Teile des Dokumentes in die Standard-" + +msgid "standard output, adding or changing markup as specified by the options." +msgstr "" +"ausgabe, wobei Markup entsprechend der Optionen hinzugefügt oder verändert " +"wird." + +msgid "Modify the XML output according to %1." +msgstr "Modifiziere die XML-Ausgabe gemäß %1." + +msgid "%1 converts SGML to XML. %1 parses and validates the SGML document" +msgstr "" +"%1 konvertiert SGML zu XML. %1 parse't und validiert das SGML Dokument, das " +"in" + +msgid "" +"contained in SYSID... and writes an equivalent XML document to the standard" +msgstr "" +"SYSID... enthalten ist und gibt ein äquivalentes XML-Dokument auf der " +"Standard-" + +msgid "" +"output. %1 will warn about SGML constructs which have no XML equivalent." +msgstr "" +"ausgabe aus. %1 warnt vor SGML-Konstrukten, die keine XML-Entsprechung haben." + +msgid "reference to internal SDATA entity %1 not allowed in XML" +msgstr "Referenz auf interne SDATA Entität %1 in XML nicht erlaubt" + +msgid "reference to external data entity %1 not allowed in XML" +msgstr "Referenz auf externe Datenentität %1 in XML nicht erlaubt" + +msgid "reference to subdocument entity %1 not allowed in XML" +msgstr "Referenz auf Subdokumententität %1 in XML nicht erlaubt" + +msgid "processing instruction containing \"?>\" not allowed in XML" +msgstr "Steueranweisungen dürfen in XML \"?>\" nicht enthalten" + +msgid "XML requires processing instructions to start with a name" +msgstr "Steueranweisungen müssen in XML mit einem Namen beginnen" + +msgid "external data entity %1 is CDATA or SDATA, but XML allows only NDATA" +msgstr "" +"Externe Datenentität %1 ist CDATA oder SDATA, aber XML erlaubt nur NDATA" + +msgid "attributes were defined for notation %1; not allowed in XML" +msgstr "Attribute für Notation %1 definiert: in XML nicht erlaubt" + +msgid "cannot convert formal system identifier %1 to URL" +msgstr "Kann formalen Systembezeichner %1 nicht in URL konvertieren" + +msgid "cannot open output file %1" +msgstr "Ausgabedatei %1 kann nicht geöffnet werden" + +msgid "missing system ID for entity %1" +msgstr "Systembezeichner für die Entität %1 fehlt." + +msgid "unexpected entity type for entity named %1" +msgstr "Unerwarteter Entitätstyp die Entität namens %1" + +msgid "cannot create directory %1" +msgstr "Kann das Verzeichnis %1 nicht anlegen" + +msgid "already wrote 99 versions of %1; will not overwrite" +msgstr "bereits 99 Versionen von %1 geschrieben; Überschreiben verweigert" + +msgid "already wrote output file %1; will not overwrite" +msgstr "bereits Ausgabedatei %1 geschrieben; Überschreiben verweigert" + +msgid "removing leading slashes from output filename %1" +msgstr "führende Schrägstriche werden vom Namen der Ausgabedatei %1 entfernt" + +msgid "path %1 outside output directory" +msgstr "Pfad %1 liegt außerhalb des Verzeichnisses" + +msgid "Output a document type declaration." +msgstr "Gib eine Dokumenttypdeklaration aus." + +msgid "Output marked sections." +msgstr "Gib markierte Bereiche aus." + +msgid "Output comments." +msgstr "Gib Kommentare aus." + +msgid "Raw output." +msgstr "Rohe Ausgabe." + +msgid "%1 prints on the standard output a normalized document instance" +msgstr "%1 gibt auf der Standardausgabe eine normalisierte Dokumentinstanz für" + +msgid "for the SGML document contained in the concatenation of the entities" +msgstr "das in der Verkettung der Entitäten mit den Systembezeichnern SYSID..." + +msgid "with system identifiers SYSID..." +msgstr "enthaltene SGML Dokument aus." + +msgid "Print the effective system id for the public id %1." +msgstr "" +"Gib den effektiven Systembezeichner für den öffentlichen Bezeichner %1 aus." + +msgid "Print the effective system id for system id %1." +msgstr "Gib den effektiven Systembezeichner für Systembezeichner %1 aus." + +msgid "Print the effective system id for parameter entity %1." +msgstr "Gib den effektiven Systembezeichner für die Parameterentität %1 aus." + +msgid "Print the effective system id for the doctype %1." +msgstr "Gib den effektiven Systembezeichner für Dokumenttyp %1 aus." + +msgid "Print the effective system id for the linktype %1." +msgstr "Gib den effektiven Systembezeichner für Linktyp %1 aus." + +msgid "Print the effective system id for entity %1." +msgstr "Gib den Systembezeichner für die allgemeine Entität %1 aus." + +msgid "Print the effective system id for notation %1." +msgstr "Gib den effektiven Systembezeichner für Notation %1 aus." + +msgid "Print the effective system id for the SGML declaration for doctype %1." +msgstr "" +"Gib den effektiven Systembezeichner für die SGML Deklaration für Dokumenttyp " +"%1 aus." + +msgid "%1 prints effective system identifiers found in the catalogs on the" +msgstr "" +"%1 gibt den in den Katalogen gefundenen effektiven Systembezeichner auf" + +msgid "" +"standard output. It doesn't check that the system identifiers correspond" +msgstr "" +"der Standardausgabe aus. %1 prüft nicht, ob der Systembezeichner auf eine" + +msgid "" +"to actual files. The return value is 0 if the last system identifier was" +msgstr "existierende Datei verweist. Der Rückgabewert ist 0, falls der letzte" + +msgid "successfully created and 1 otherwise." +msgstr "Systembezeichner erfolgreich erzeugt wurde, sonst 1." + +msgid "LITERAL" +msgstr "LITERAL" + +msgid "non-SGML" +msgstr "nicht-SGML" + +msgid "raw" +msgstr "roh" + +msgid "%1 prints the concatenation of the entities with system identifiers" +msgstr "%1 gibt die Verkettung der Entitäten mit den Systembezeichnern" + +msgid "SYSID... on the standard output" +msgstr "SYSID... auf der Standardausgabe aus." diff --git a/po/en@boldquot.header b/po/en@boldquot.header new file mode 100644 index 0000000..fedb6a0 --- /dev/null +++ b/po/en@boldquot.header @@ -0,0 +1,25 @@ +# All this catalog "translates" are quotation characters. +# The msgids must be ASCII and therefore cannot contain real quotation +# characters, only substitutes like grave accent (0x60), apostrophe (0x27) +# and double quote (0x22). These substitutes look strange; see +# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html +# +# This catalog translates grave accent (0x60) and apostrophe (0x27) to +# left single quotation mark (U+2018) and right single quotation mark (U+2019). +# It also translates pairs of apostrophe (0x27) to +# left single quotation mark (U+2018) and right single quotation mark (U+2019) +# and pairs of quotation mark (0x22) to +# left double quotation mark (U+201C) and right double quotation mark (U+201D). +# +# When output to an UTF-8 terminal, the quotation characters appear perfectly. +# When output to an ISO-8859-1 terminal, the single quotation marks are +# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to +# grave/acute accent (by libiconv), and the double quotation marks are +# transliterated to 0x22. +# When output to an ASCII terminal, the single quotation marks are +# transliterated to apostrophes, and the double quotation marks are +# transliterated to 0x22. +# +# This catalog furthermore displays the text between the quotation marks in +# bold face, assuming the VT100/XTerm escape sequences. +# diff --git a/po/en@quot.header b/po/en@quot.header new file mode 100644 index 0000000..a9647fc --- /dev/null +++ b/po/en@quot.header @@ -0,0 +1,22 @@ +# All this catalog "translates" are quotation characters. +# The msgids must be ASCII and therefore cannot contain real quotation +# characters, only substitutes like grave accent (0x60), apostrophe (0x27) +# and double quote (0x22). These substitutes look strange; see +# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html +# +# This catalog translates grave accent (0x60) and apostrophe (0x27) to +# left single quotation mark (U+2018) and right single quotation mark (U+2019). +# It also translates pairs of apostrophe (0x27) to +# left single quotation mark (U+2018) and right single quotation mark (U+2019) +# and pairs of quotation mark (0x22) to +# left double quotation mark (U+201C) and right double quotation mark (U+201D). +# +# When output to an UTF-8 terminal, the quotation characters appear perfectly. +# When output to an ISO-8859-1 terminal, the single quotation marks are +# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to +# grave/acute accent (by libiconv), and the double quotation marks are +# transliterated to 0x22. +# When output to an ASCII terminal, the single quotation marks are +# transliterated to apostrophes, and the double quotation marks are +# transliterated to 0x22. +# diff --git a/po/fr.gmo b/po/fr.gmo new file mode 100644 index 0000000000000000000000000000000000000000..1e134fc4d18fec4eb0dc57f49128e8fd91f8ff1f GIT binary patch literal 94096 zcmc$n34EMY)&HNc3W`A4_n}bQLK9lrLTOo=wxLAQq$DY&AmTKcv;#>dWD?pUiyNqj zf;;Y@;0|smsHm?i?z{53?@AQW*L^|#e}CsL&-2Vo(zGuBeERhFEO$Nk+;h%7cbV_a z*zF|=e_!1tNsa{XIXFok*fmKyn)NnGHlL9s$Ae{XIrw~V0r*AmK(Oh|Bv}C-3?2n; z01Mz2P~UF_75^@9Gx!zoDd4iRT)cZhW%XBZ4mjs*hv$PQ@O%}h__u?Lz)ylpz`yzD zMaz?9AXZsG4O3=PST{z}vw?z_)`lzz4wn!Eb@PfDeOB;IF~c!2bjH0_Q@6UBQLmvEXT-%CP}F z3A_P39DEl@QzxGX_XB?dD*ZozqRXDEU3#-YnkHEQs(vG&%Kbc0boso0|3^^eIpEwR z=>rb}RqkybZ}RwBa5vt+3p^CO7d!y`5~%n;0S^Ly=D$A*F6Q~5_9UT-$$6m4{{oOK zled9t@8A3PGoC=%d2R+p&&6N?EP=;?H-IOAZvj<~FN3PrH$c_vccAFC@Vq3M4L%uE zdd~*;0B->c;LAX@>wW(Hw?T#f5vY9j?r?N%0o9IYgGYetLD8k^pKky~_t$~*zem3|Fo}UV?19w~N>U|NoJI_x6#V1b#mEP^(zTjP;>i0oV{r^kg ze&A0*wbLI#(fh#jUB6ra&frwx9j%@gL8Q90+s((Q0d z#Ek;-7kfqxZAG^*nzHq)C$k4aNEGW4#0WJgAJlV<7=YUIiemAIgd>C8`&ZW?L?g#aJJ6Hg} z1Fi)B4yqrvLZpMh61V_-3fKzX1s1?xgC~Ofk-73+22$l@3rJCtuYs^YvIwFm{%{j424jpwI=r-1i?ivLUSbnqw|aS^y4RK7QX2Y{afMVIe@ z%IEjsG2p(NoE$hA6umA5_5B*~EbvxPba>F?446Q4TLW$bZvfv0CS}JjcY*r;2e1Wf zxy;e)5^yHZPxE*Ocq-2ifRG~jhsTYVJ3jm*2&*T}gHB#N9Tea0F_a`Xf?Gg+-(}eK z$MxV`p05X$?%P4p=VzeOKdj>V#WmpdJbwYa4eTY+0{92;Xz<`GTt8k6Qsv|c;BxR? z;CbNhK%ypRk0J}ew}bbALsi-YJYmf7&l|y$dHxC50v9iZCr!=T#xK~U|s{}xxylfjF49s$nncaTGr)N~Ujm9wH-hcp zH$a6eJjKb09#DMnEKuR!0v-=O2rdU71=WwvyxQr#>p;bSBdGV^0#|}ZUgPNXWbijdZU zTm`$pSAnAI!{BOg$5=7W3jd_E}tyBItU8~_#XMvu3Ft9X8|$G?FycwYW2*WY_U(cwl=;XVp3 z1NVHk?{}c|)DXA;yd7Kzeid8~&V7#i{xooZp5Ftufe(P~;667xdanmh;Q2M6==BNk zMDP#bYOwHJ*Z!M9)#C z{T<*u@N=N*@fZL8q~|%huLh6i{Sep--UL1g{2^EXmp|XxHAPT*VbtRd;6|Qb0nP{i z4xR zUgGM}0iMs})u8z03t$Jh$4i}k)B`Hr+rj1F=fM{6@h@}qKND1YZU9yOr-AdqkAp{o ze*ouzGj4TsUIwb2JHSK0E5JqIbHHZsL*Oj%VNmTmQCEnq9pmxHH+cY)%wpM%P8 z#w#3OtOO6{c@rqUzZQfQlaGP>f}O8)eDx$yd@%+d4!#IfdF}>}0Y3>o7W^6bMDVwu z>e2NoN1v_W1w4NOJQO_g)y^JX3_hOcrQkkbJ9rVe9$W^#3sn0&0`3PEUgOHK0MzqZ zQ0W!H1Hr36^^cpu!@yU7yMXtAr-1i@D(^4A8Q|Wpb^LY|C^{|&3*Z1K`aTOh8GH{Y ze*Y;r7yJvT@*Q`Z`+g}X{=6An555-^{T_e2lL% z{5CifJpOf#FIIz(;kh4F{zIVT#mhj^`}^RNz%yR&@_!|GB+tJCj{x_(!?pK3Q1RD- zs^3-MV(?9%>i<1Z?XcUOZd^G7T+Z`hUrIZIZU@yq_k*W{zXneO=f2s=t0E|RKOa05{0yjaHoe8w zYhO_GTL|s}J^@?uoOl zO7JM2tKc~J0x*`hEi_dfyM80{$FSxetH8>rbuVfjn;l&j7Cm_XpnxD&Nn7Tfr}YH-W1^;M)Cb zpu+tUR6YL=t^?QHkBtPr9#p!Af6$GuPX;gJ`K_SJb?}E=f9U{k6l{XYxN0e=h5 z1dsTbEB{%b_~pf*==KRv?eQD%2r&7$le0&Hhw?ZdJOpe9)$fYn0`NNUH1M6E@|gga zfHOYfAaKA4){y!OP=XndLdVT~{ef|s{4<7m@*PqV>_5SIg+U<3q==LE{^!OF1{APXG zjTbh8&*Aw4U>n%>6~|}K1y$cSf$BeB0@Xgde$~mF`Jl=(28wPU0?!3^|C-ZFo!~w^ z-wYlOz8Vz2+y~A8zXa|A{urcrlAnRg!H2-T!MR^|@^=xae3yXYuM#Nwz0AM=CU_9f zdwj$3>yhAoJkJA<1kVJO-bLUOz>74Ipa`007z0C*3$2|VJPu6>>XcJlmMQ1pHTRC^x$ zEvGM+fvWckQ18dU6Tz2*bHR^;yMm8^s_$>Xi@|-r?eyd2pwhh)+#UQpxCi)EumFAw zlpOe*e}D9M93RaBn|Xg3cqn))sQSOt;}^jLc>WbAdNh64)&Dr~44#*P>K9u<(fK}5 z@@SXuIX%z{>iNZ>!hIDy6FlJiu72l(qT|)z!QizXUjnxB{5DYh^$4hXJqoS`clm+S zqdlOWp8?(gehn1;FaDuxkB@?iHvt|4{u;u)Gwt}Mn z8^K=i%it35gdaP+)Z?w7`p=ia!@%8s;`s1rP<&kmPXJ#Eik=_z_+@Z6o_`7|{x3k$ z^{AgZI$Z>+Jhy@~!MniIz%PM&fsgr_iJ{flfjdIVMDa!Ch)~P&-|r( ze=oR==R+UH#sFUkUI^~?D{MFL67VYU*I*BL*&~k59|9Nhe88_=eOH5$JJ*5Nfu8~g zz;k~?UkBd~UJ4%cf37~`;2_Um1pB}%#GjnJFM~($d>eQ=ct5D`e*~phR{h!0Wdu~ZcYq_{BcSMb>0eyCd<#@RTk%&X zx1I{B{I3O%1@8yD!0&-7Ps`t2xyQg(p6>${|F59vzT{E&{b``Se*!!h-1F~FUK|ac z!1EcP%Gn1l0dEEm13v{G4gLsJe{K4Q8`pP(=kWX*@J#Th;5FcJ|745--VXMFgK)9v z`9I*<;A5Mbj6co;)laVj=Yn^Gi@^T{#UK0Z;&2Qs^Zae_NnqQqP05?VJHQu%ox3#| zKmHh8&-3{1O=hQm9z2!jzk`dxMSC<^|GNyV^87kbd~@)gP035a&EP%YKS8zcJ&$R! z{{LN2bl7{ZrsQVucu@7Y2V4#Q9#lJ?v3FDQN$@W4W8m0hn{2*q$>W-g&+Z48^8WAO zGH}U0uAF1wF+AS^iXI;aC3k)YE&vOUZ?b;U4IaSreW1$yIq)d(=zW_^@0!{I>;Ez1{$x4p8O)1t@y9AL;1yI`BN6 zCqRpLlq=V@p!omg;N!qAf<^EDp@KEpz;L+gE z{r5czu0Cgg`|P#i9Y0?I&f)oH zQ2psX@G0Q8!Rx{GC%W={7gT@Q<)kLl3kQSZ=VtI~@LW*z`~)ca{R32ct)ACpv;YuC^^~F?7|I!YLEAVD#xcm)$g~U$%&RGvy(6M_zbX@?{|aU;I1dT{&)d+8qd!J z_5ObFW^mv6j&ENJO3v-Kz{#zPLG_=TK+)yX;5hhqQ2MHRit9h`2gPrPEp*T4g6e;7 z1TO|32A>F?yU3OIPEc~-`=ID?%;F~N#}|TX_ibPwcsHo>%s92l^!6p7^@9mea(MUCTtDvtRp0AD@%;xu<@-ZWSBG`1gOLrc) zmgjT9SAj1F_XST~+GO_8IiUFBNnind8h9l5I#7K7VNmk%kD%nmZp$1U2Ea>sz6~4% zlQW!L7y@_Y@di-!yb*jX_)72v;2S~7r_;}L<-Z^A1pa{u5C3{U_K8 zp1R!e&sI?F{2s6$d<0ZK>1lQRzX??OuLjkx9{?5pVelYu)(S_LW#EN8_k!a8yFk(T zo8V)>KZ4@Ze}bLh!j(6mQ2Ea6apl|wsy*)l#lH`N>JNwXx_U1LRj(^R<@Yx5 z81M_A?50ORwa9N=mCh4D$*1Ro>X#n`*ML6-=YtD3I62i1mUw;-sD6CJMK0e{K$Wu_ zd_H(LI0T+~v6KIA1;sZV3$@Ci7difLHK*FQ{_O?Q{IR5fmNn1XZs^{Z5WO9eg#x}V{{)}o?{DPWUR)<|EhdcqzQ(tAg3sk$6Zcdn zIg)D@SNMA^_fO)x{@%o8{LH%_a2@8~-^=^c{Jp}7ruzFF?-meFvMl_K@a`PF#_K37+Tj{aN6t;2pe|d|S)C{+`ME=W^Z5^9i8-UgE#m1NZ6=Z_m6tmgjQ``vw2* zGu(IbZY9s3u6Oh8e|Yy7 z?%xC6z;&Dte>d3c?|Gf9B#e0Udfxqk`nG*L8gR6^N>_KgrK?33nLJ zi1lOz7iz-z_=_MSFL^y-_T(DjUVm!{{}wLk;LE`aK}31-3GT1*VFtN>1Mh#&^);^S z-{E{)6@fUu7T58^tT`@6v#z|Z@zf9Ls?{(fKHf12y# zy8OF#?q#F=k?Se`U4XxEb3Whu!7Axw|6a{|{ap&)4@xc^Lzv%ykLS|g|M2ZOiqHE? zx!%t8Bi{dz>vddv^89A5hq?6kcCPEVUcj}=zxyqC4{7KR@o#^}f~Rr)oa<#=lHsob zZz9~yp#Bhv$rU{B%l&#Ee~bV2Kj71O*Tr>!|0X?pE$_df$o##Y`}c7Dj_XRU&F;0$ zE4_g@|Hr#McqjSyR-eY3c&EQlaJ`fJDtId>8Gf)2)4}sN&(aHD;+^cPe{g+~`*-;; zJSM30u20Q0PaJaC;NDPnciv{s155O*}uJ`y;r{?;`EaiT4^ssGW^%vI$C=^rO7I`NzXm*mFz*3> z0N%)@zpwM{+2Afd{C(Vim+P&(4}S%2?&0~+%)5{A?yEk)oy5JJ`-R|rTpN8_U-99; z0ltxUyZZ18xc{sF_G|x6@M*5Yc`w^Ue_tltg*-n__dfi3P`1|ne7lb8lm7iLz?Ucz zfB(yMCf8^A-pl)^b8Y1LBA)l){$lQ1xj&if+dRJxd@Aqs_i3K@;@XFMh6C{r(5L{`i+k>kMQSk{hxiozTv)^>*aj^ zlz%5Uj_23#egXHpa(@!{`g;L*7uWl_*BE7gu7kNg;M2bmd=<~bT)T09p^vwO`ww${ zk@p4OJ(KH2T<_zZ{ucXiy4USe|NLHXsb2E8gzH$IzruAA@d{jr^6t;zVy@TnzQlDI z*DrW~EtmdY?jU(TVZz_G%>Cv5{yvXyCjK!59Pxoa#PivFJA-Q$_xgK1_yQmPr5;ZP zXY&4du0ig9Ot|a09`WB5Pk$>MByZsTX2OQQ`8+>`Yag!n@qQ2gZ8-t%;Qo)izlCc~ zhycEm_q%hQ&;2OhR{J>pLY{}gZ-M9dIM3i-f46WQ!F3haD|z=4t_|Fu?&EW7f4}tM z_0Yn7C*Nmq|4r^k!K-;b3j7q$-v{-#JJ*2SVI%PVIPSj-J_bCC@L%Qrc<#T<^*1j4 zE#kVB>%Dv{6Xq7Kw{Snfbu`zxe0v9Y8`qn;Z{hokxc@!Z6S)5=_%7Zb%KhiL|2+6g zuA{gQf8Y1_7w}$xPxH9d<3s-YOZj%Be`n!%|EO;G`vUi`;2Plj6MXoC!6M)81ux)g z=l<2;%L%j0r*j(b+PMD_@Adad?%xJ}iRaI7|5&aoxc?>Z&H|V7tiRjAyWOq*zdz4C z{@e3;^OMZCn~1l9Z>?a9f4?Ws7jge6@BRv2#q+bdzQ?ov9&(WUiRYtvufKb^mh*fN z_z2gBxF)zh!uO~0ewmNUEAx{HZ{j+f>kPtNrWgDjPq@c|8+i8)pZ4`W?l{j+=Gz*s zpL0Ex=O6R!K(3$i{6X;DT)o`i#LH#|* z^fimHcl!IBgQUW@+xd2&&quFM;rUr$5j>OkV?OL5 z;A-AIk9S9KZR0wHOMin7l5c~16DIt9)PLWi_gn{ZJ&|{R2EWd=l1qPY;kue@4&V0X zny+}rwRW#u+11%wD2|PdmN$-%l?uhd(NeL0TcJ8q>MIYFOZ~}l?Q7O{w6AQ>gsK)c z7q3jiZY-6C(+Guu%4lJ@GFBWbSB49-7Wf3(R>iaj%fpwK`U_)~!f2^FJ~&n=4VH#V z!()Z9Z6hU%v3BLE*51}adAQKic79>gXk~mPIWB!UROv4by4QuV&Bd`of2CAao~~To zZEFjazP|C%(b8~ViB$T_eZ{fLXf}!AQgw_nWKxP>mCitUv^u8zvjJu;C|umNwzs{j z^O8c(hMx9SEiEkxF9XfStE5=07K(-H_{Qp3c}xTyE)JCxsINGzgg2HbafynL3>N!b ztwpaQZw5-Pybz@{dL>CIDiQjMBwQ#{9FiuD&85-FLjU_Rsx4$?U|M-shOaD*j#Udi ztJid>fiGOs(L#$BMv9|Vny5J3U%0Y3Sne;5@uWN~V1K1=TnwP%_m}zxi=&Qt%7cTY zO~t`NabS!(hfslCYD0^>#lgYK7Dz|St?FH6?NF*qwkBZ5+Gz$X4_C*EaMX4(9vQ6+ zRyHY6dDtquv``ry+*X)%iq#)d(5|XbwWNC(6T-N1?_i`+^+Bufq!Gs|m#cGTa+)eq zPc9^l)!VvyWyqrd<5}Ishw9}+G);9I{b;CA?x*=AFJR>;OQ`%f9YD=8oOvC3gp%>n zhUCVF`%GYDzta81M?=NY%g09w)iFfVP@&XchGbc;YRE^VZaEkFHbdk-(R+A&Xd?h` zC`M$bG(gqyN{kAd77O%Fx^oPzdX8-~dWReumEGmNsWe;~g-R|`lm#(^p^}wIoy&`} zD0fYa7KgW`gv;eg`mT>;=;iXviH}^I>gLMmSVnXpM9V{ED3c3iEQD?;QK_&32EAfj zVtr@R6xa1%hU}HTsX+I%`AwA|r=9W;pA-ul2aCg(PnoIJFhkWeJ;!ei3hFv#raM{7 zdC_GGB-em- zT9ZqxNncqXF85_boWi5#s%GDulFad9zEB+9WNOUpn7Qfu!3t#}aOTxesah>=D$Pyi z6)<;O&so)-Q+%T^d3jWgTtd#4RJsC{v2dlW)K7U=lh)2v-Z*OQUY)d#jL`Un(&#At z)n|Z`t+>8CYe7rWI@-4i@}DE#a1`=<(qDqD$c{EbH5HrDodkBZp}$aq&}{RpEUUU! zu3OXA*(=hHZfi+aVy$&_t+q!I+L$uAaUx&O zt&}mQE2tWo++)Q}ylYR|R~Zew1>iZ*zjfw!;7Sve1dptth#6M3szwf@>V)O9n3y|_ zHW1(p5;B%$wz&yfHNJ8|v%zG?V-vLZESP`VqD6(Z?S;!r+qP5?PDABt6|tMN57cO= zI{7EFJ!$2R7Wa|PL$5D6H~?*<>9`;ab$F1V6-xX-I)1W_o<`3x2?Oi zBasygS)?+DOUOAhbl`?z*Z~1*ykif(P70r;f|oRo@*>@u;^ijvt)Gy9=;#M%1?(vr zyCqpu=`RmBmc`PK61$JOsa6s`;+W3XHEs5vSWgc>OHr;b9K_WZq16eZVy%kdr@DBb-i8ZwRO4>c3T(3 z4Ih)P3);H7+gG)v8AsiLnD=6&vn%NeDljj#GA!B>!t_<36RJ4Akkt$eRi&3v7V&-5 zh>#GG)Nd{1GtxIVd}&G6YRFdDGCJ0R0_fX}Wa%?8tOi|coxh-=$7mk{QE#vVoVKku z1a&J0;;mn|*rW3q@be&GL*jJ4P+pmJi;|8o5QR0<~?;6v|R>{zyI~XI=|E8PC z$T%HJmW!`nrGFfMNU*DFd+GT}_aw^Nzt3}2(%sokH}*q_!q7M}9`8o3i^_pvy*ahA zlkVacUxXIj^B=C5(Q=VgyHWrE_Bh|SrNoIs98SlA1E8A;> zkpI|tH41Joik(HKBx2W!CS_d{r@kArm}QnZ3r8)P+WV$tf+s52A@Q?0%}gi~$x%s9 zZjew_Nu;b#U3BVFS}Un5LsYk>+?~0)1Df9{__|bsp&#X-2XVYyp3LKk|#ZC zR}@Wi9}N=jD=;X6AU^{nXy|8Uw;kee04jY%Gepzo* zqiyl^IKwY%Cx?jU$HfinMNfl(W0hdNc@gD?GeINtjE{_9vS1FIT53spQJ3bON%c(9 zyJ2lx(o3r;iJ8sKssSdawT$0GOicK7aRWW`C=b$1lHu`a}EVj7t%_EMHnmFnU!;XT%dwT2(`CF_QR(BPx5 z+MK@4rM}Cp)`%+Oa@6i@92mvn@!}w&Yn?`X*16ZASU2{K4Un6WB+ygu{Xol@UeEYC zFtT9S24N+TF}QsR)J@hWl9krYi~YqBr$ia}?$l_($&3pVnRd}af*JbY0hLGsb9CI9 z7owe$^ft(5&`#$|iiJrGJ1ZS zjd_1H3K?PG$w0~_qFM*t4r3xAv0YN(L`MnpIP{2&UptDg99jPT84g#5o2~yh&M+l2 z9Vxn*yvM^EBT$_=HNIzUIo}Cut-0*Pl~vf8kl1cL=J@eeKZ)giChC}`x3-SqUvw;J z1dqk$bCwrt=*m!hN0M$VwRRwj8kytg@6272mRJ>_d25PVKYO4NqI@|v9=BTWNL_Y> zOgonMj#RSNfj@-SlTyfZRIyNPtE)qs3r#KtWOL1w1a|F?rQqF1TShC)Hk^KX@R(tv zNV_h><%^fVBo)eg%P6DRBuqNFIDRx_V~@!qz^rjnE2o;ANT}0$YF|@XCWeyS?3bGq z3;o{YvZSqvKd6QU)F>v=14(Xcdow?r8Fv{?RClhKg$kO7C@AtfY~nfyq>xPktGN6a0|bGjQtv!J8O{8=fgJ zfz9NLi%GIl1j{*2DAah75DjjrNpSt9eGF5VjxpQ(3Cx1{S;Zs`U{M%hF=b>uBSTa( zsGVtp2*|E1fwN;T-d+OK!3HOpDArAa+c!> zL98YwE2D87sxwFF%vvy4Qe!*5>sT^B3dklNYH5loDYNM*f6g{I}Oc5^=6W8tfwLArR=~gdEl{#mGa~?RSfM-P?LwY-PNRYK< z>a~EM9qa5u`1Th%+B?rnr^s+}lc#vEZ&0($d39WvGwYPOF#uDC<>B#kNfhP6A8}>5 zf_u-+HPr=mGrpPS8^LooWn8Uc$~00`6e75HNYH2@skAj&;bSv4>a^Cf3uCi}O1cG7 zJCnF*L}$az?(D`iTTM~zZ2Dn|heRpGA0MWRRW=Q4vb{FVNxL+(fH3${VhjX3sy6Gv ztNB!|i1}#V1+jUVftH_oSpjD-T*<7Luag_y+hUU1wMG=F-XR~GYnln;2OA{XGU?ZP(VX@; zV($3bzU@b^G0NiTDVZW_nEKC;3MY$NX9;RN<`j2UOM;Ptfij6c#sxymtjyGwg5eg%}vM(&6%w(QM^E{+6 zXC{F#2QaS?W)SAtynsyypc(Ym?t`XwYpA>1{tJ2Z{O9xNS=+jDdsV4o05LI<&RF_o ztI$!BcT+Blb>X35*?ph!W`CyJM>!#hsR_j>OvT*UUPGhPglU=R2Z3?I zBHzd~4a=~TsZXoubs1L8GIvrg+6b|Hwxr0^qHTXj`I7!`DsZS&)RL)rwouc|bm}VU z;6KQ$#sQX*s4?vZMM=|#hSG3>`CY^L2{f~>1J`GIfXzC^E8Vn*va*Y&ims)?5J(sma7r)5f`yO+nZ?CIt@(KvX~d zZ_6#SY~i`LR=rA#Xl15y^FbPyG*9jAl|seaP9ImU|Na7cqadfUG;>E2I(3p-4XJe- z{cuSzD$He=#>tx`)jkYQ$(;7ip5E5Zm2K8Jqy2;Cy}l5s8J9MdO2rO zwsc9vMH-ft0=cbARJJ&@vAk)VQSwqvwG6{Cs9#$ukoHjK;-x2$RuV2MqTjAEYhkce zSak2*>c)2?6;v_ZY5VypHMbi}OYXHF#Y;l6@OF^)X+atqKq5>L%EN4(7^<+Sh!S}6 zsKdlH&wdk{N#6#gUu-GOIyIAnEB&JXZs{8p-BxK%R&dIvf$-wGf-n3J7ChVTJ6(XG z@>UpFaw+b|GlQ@Yw(gY>$=htUuZC%~8&8cpNC*~nnlP;vR(G%MxS+#32~49%)@_o@ z%sX1(mpS+vsyHt;u^@HW%#T?M@hQaMtc)Hj+wOtFdOQr3Ei48#=R>tNVV1U323f+) zZU=M9x$$aDsO~c>-wVY}Y`-WB;_VpCW?C24d-t51YC9q2fq_sqw`gvyx%{FY8<8d( z1%#QNu)v!2=#vFCXE~j(G&I5l6Jz_LWKDR09mXptJd9!~P#adU^MJhu z?Y$dpov%v(){TmwhTf@J;bP5mvD@2v=CRgX7ke2z^vEFV>|*Nz`$T=ovq_u#CvBfJ z>Fp(yt+QMC53#&=CruBRO(4(qYvVUzP+-6NqCW1V#SQy46xsH2D6VxjIwOr#=N^;L zAJ+~_>5P2XRG&w0RZZxy%9M!VHl>_&qZk?$$SUMbnJ^lWnO@N<3$r(&!-fT?Uh{>|<~oX#b|mmJQD_`@)TXdGLSov=YD@HYEUhru(562b2Dy~ND$&`QAY9vf#(#eA~;OJc7Y){E|-dNDApIEFpTC9#WyNwsk zgCqSK%rsbtm&wITRqrbjLBv!{;KpU|sz}YAUCEDFgnSA#L$0Vysj+4_yB8fxG}6Y2 zs342n>m+RvGl5w4m)S9@ePL>A+k;_7P|=H)G~XRhA&BC}X@sqN&^OFe$9Wyh5Zi^5 z&C}K@YpY!TrJB<=WoFWeA+p?~R+waRI?%?C=jzp~K~FP< zw1Gn^@trb3~bI1Ld-iJ3O>U%csNgkUGbb7}`072l{)_Lh zr0Hps)O`pmV)7p{dm>}Wd}3~mQu@|y*|daZ0ICz9VZ6QS9AsT<+HHRplf*eE-;|Nc zSaq3}OotsKn!eU_6q}S)>P)U%Hka9DfKebO4E;72C@?lf%mo%pD4=-2?YIow>HS?; z6J1uhObQv-v$p1Wiz~MLj-_W7?4%--wEV6ETl7Y0uzj`JLhGK)<1YDcgX^?u%-PXW zU>hS$?-YYe$EL?(UOnqpu;TEnBeJ@tNCCSCeEaf<+wsoU zg?AoORzasLRVl}vuL*ZjL@rEYf4p*9_tvSj(nO-dFQh4@BR)%To?Bu*&qdX++exOR z!R~SQD(`FzBiOX(QCfAL=#EJ8i`8OxwE|0v4VT7Q9)?9-vj9uqWP&-F=ubD2IM!($ z&ge0xXq3-lXq32KT7B^uCt(Dg4tXgbX;hi@Ws&0ABGK&PEW6F#}G1N$CD_QPH45f@LH~+V66FC7h>9}0-F>*Ff95U9J4rU4FLm~v> zbTh;nlp`NDj3TF%YHDzC_JWKC#)5+)u-Xms@WPzt8TaJs-j$ub&W{*+x@v6)o+Rm+ zNT@MQnS>+N{2>64%oMdmP9v>s5+uQ!C$5N^*ol2Q6-OJm4^DZy_rbLg_WHqx-EHTu zmhp08Hfz$Bp z?8w@5je`1P!I0-uZN91B2_r6reS*%+o-Bae9_K_C+`nFdC$=TFUOvXt@N|+u9PZ?e zgL-1+K|lLI|_2yAuj8EubGp+4)p14feNYjPd-TPI?Fsz&HS5`KNiSYI_6=G?__n@+V@O24J43_@q7U( z4~F2@`q>49{r*fF&&{S1+}KPb60;9&WrVFZZI$lWvY&4D`+ca)#y!|-~VGE42DI{pkDq+tuG}4(IOr~jJ zPfAhKP~Ha4wB=6v83RS*=Hp12Dcm0+l2b2mwmMtbI1&@ceMNn=j$_Ja^o0yAw>LW- zHBB11ebex&X#`_$d*r$G8FgRT^$Lb<`w$qE^aDWK` z#FSQ~AWqduq7Cbrx}GgLX{teO>gQc*TgeNP8Y)=(+wq7024VCsCRQVsa-upeiDI-c zR;k!ID~K@DLOVZwYWm4Dk!x!_n>G(-ZcX1fHrXNXk_FeiFD)FLhheOn{T4>6@|D+) zR%5t~(PmO77pL{*vFaHzP|&OY>(4K*+;)-CVB8&=f1wqp0IRD&ijn}C_Phr+9}WiMZYG`t%nKIUg@-jTP@`mpP&M;mbFFknNlUp2WON*zYfQ@!lMQvO zP0?CTG!Qkg6#)v?tYAwgTM-Zw_oGu=*c?Wxxt<$Jk;z(RrsyzO5Rx#dn}fDcsYVJz zbJLF1v`RIJ1(prcY-f{224s$Pt0ppB?7!3v>K>ygG}FdSzQcIgV_$ruq?WC|o14*Q z4(Aw?LWzy#elt}$@0?kuaI8>uuFJ^J>t~OC@N@m9Yy8v&^vukhc6GbBfmxiRGGEf# z(zzIPs<4qQzNq&Y%j+9I2mS0{=t$2RZDAR^ilqXGMQp}NZ(0xV5sR=7c>V%E)<)^tE#d0F{Dm75j)!m zrzpH%M4Or#VSYeKxRYmHF!)Ia&hj>>naOM97clrUTBa(li4ZR^luvBN41KINImUBj z@@p+>#Ew#_R>nv1KQ{Ujx^~K{mb^bDvEbH{gorMmygah>!%rimspMXZcWm{QTda&~ zc3h=Fxab<0O%Dxf=4|gct6*_L7k513)obj^!7E@TcE?0fqT2JK3L0N$EL}hSVIhqI zwlX>PFfoi`qy>>k&#dRrTuM9$rnAe^36?>`Mhbm_P{kzcmaV15@@wHk<~EbS#B)Z7)4yXU zNbI|Qk~`Sg~>3xXq$B1U+^YrL+|h= zD&~gxR=}vmhB1%Zhx=_EwoGNak5tMMF?-T*5=WutD9{pM=O=&`VYHeFBR50X@0V0Y zZ3lusHA96ns@rrM+kE5_Wl4%Hr=nt7PTA&vimk^^cGb^rw5Lb)7J5n?MC?*)k={2$ zQ@;&SC~lOMX;KjSxN~6{xY}Y%^HX7PX~|EziLoU~`OiD?w5K^e%NK^hmCFJA#?aU- zY51V!oaGVpT;2DmA|x~FWM(G4;2R(X^9`7n20A>_6 zi!_kK=6^ly<5@U~d34N^E?tt!rD&zed8(Z$^ApdIviT+G{aL$N_tea@&vHJOOdrw7 zU6aI&u0tnYteO(jS4=ojuxwjd{_b-t6SI{%9l>F%qJHv9b;|5FF?J)=P# zAZ^>SveTb7SE~;0Ey4O>3*YK=uqhQN*|RFy;l#|L9NWZp`-kLoR&`HX?~bP#2JHFN zS~Ob%vAEHZ`rAFGQSK$gY|S!`G=wQ9nk`Cp=}_d)`3V2J@#; zUFvifl}X=)5hX8UCH#3lIdY{jQj(9HCxVg^(AkEiLeBsA7w#2mK=LDr8Aj7?#=T9*Ol`b-zE7^~D;A<5ax=ncLjBN-dJxXV7qrRhVOzXoC%l zc-_2HC=yUqo=a)Wd7FFd94g|1Tp>f3Y>+%;!UG()Jm8%CkEAOr7XsRH*GOER{ZDMW z-xpyNU8|!xs>1)wv>DO}drH-2rdw}Aqx4N83(yql>=^IB{ur%`@TP<5$$G6m%p zW!QM1wuTSz3whfLoXKcXN*+fj3hRt+DeEWO{3%Z^+i?7_f2oW^u72TT96LfY@?|4o znDK&+&f2PD;ACtw|7_n$X7L1xv-Qu^h3!!^li5v&TZK69C;nJEE>ZVWh`IF*agVk; z&dyqK>lin799I+BWAtuxygy2{-*PAp{v__fQ_lV5xnb&)$E-4$-Cb@%K~;7K)=SK#rSi%P zCmF(W^Eev^GlN4>3YOA0)54iTs-tjjDH?P8huA4^>#2&A{Yi%4ag0((zvP+i%fX%M z?MCwy;&P1>Wzrdwa(7Yza4ipu=gR-`fi4mW0yn{A2^f4!<{U z%25>XakFlF#f|xA2rK_AMGK3$GaV!=Bec~GBIDX;_Ea@lCTRh+iSpdpycKVVy5;z z@9EO^sEq!v72gyX-?SWSksC6j!R#rdPDF>E7~I`9oTa*SlrV-d^GFN6-1updQH~80 zG9I(&k2BeyPU9rwY<%NbfBl+)J2xR6tYm+YHwH8F&8BfD4alB3))deqmP1dmJQyjzHhG)fis8go5XX!U+S*dNh8 zruqm*Z84Mg&4^_<=x+f*?WZ3KD^~WNlYPz%q~p&vgs}0~Au{p3UnI^K#e~DJcl-9{ zz5J!_l>hX^OJiY6F3x7Cou_eP5XXAO-%6ZD4A-q{a`GNrrjazN*+zr)>z6_ymj%pt zPkq~j?RS2J5glIHU3b*fX68~Km=9)Y+NYX+h zCV19yyMS1+Rpj`N%+Qc-Nh(Y_8TouvdTKtVrp=k*i1UsnO&SKa6VIgS39g@6 z2*cuV!q&n`VtF+$H5}}6H^_23&~_r0Ge>Gl8s|pHCai;SjX<4yIZv-+W$W5BGd6zI zTEAw+uw-LU;vK_TX9T7ZszZIO6-!SV7X}E>W3+6X3 zSX7w5Wa<3*L?B#;=An9VE#MtSP%JI1;bQJE5IZu7tCy0oyQnd0r8 z1h$NOAq)Kzm;C_pP4waWn~2}5nIGAq1TNIX*hCDe4Fmj`+#r23NGCWs{q-KDI#`}4 z@c-m|qq?lc1Cl0w1w#Y#t8frF<@t?`Iw%q-*r&SOH z4g0kjSvrdei$i7lV`X}U@aH^3`II)Q{tC?OM zeTcS;Oc!F+M!?Mm^_eNvwkgkh_++ci{IWHU73D{+Mf2v@jO+4IuF0%HG9wZEX%Coo3L-`H5L%A} zt@-HRzGL;z4v|HXwC}oZ2l)oj%C?@}eRGn(g}xHHGZjaWD3 z22$&zefq{8qT7-lJ$Iw-#FBiwtTe8-F^Dy2mZ!5RQ9U_oOi1*zcx(cCRxG}8_GHma zTGUiDo2-4`G%-A(4S)T!T^=G<8c4oKm0BI&ZBGd*#R;+D+00YwH_j1OG*6b|X(Ggx z+%h6Ki#MN%|L!GW-M9V;cVe$=msCiy>Ya@1g5v<17_9{PLZ;yt%0k1Ur0Aop#dN zQroY@p=;O?#+XH)5|64KGpBfIA( zq%gXK7b$ovt}OMLgw9J=%Hl+;Y8DJ0tUhR6f%>lSwbB@(P`TkgiDMHi@`NgZaDEFr zAm*5bh;$C;<)ExMle?ce**SxiKForuSN-lF7rke}dsSzb1idylnO8`fbE?>OnVQcB z#b31LAcM1AxifWU6%nWE=yx;}J~5HTyh`V)q_ul>(s~&l5X?g9E1#u^&30hP4my+C z*Bv3#l0^HMSs4Z+MR{Im3Wz(QxftKMpx4mESg~1)2RcYL)Y_|T2o_s^o+q;}0R4AV zf}S9&x>l~!YR5zc%e-I7iFX}ctJk$*&{nRjKxy$F4oM%G--9-(AMzNFW@# z9z=FL!97^@I@<{yZB^1@6nff3(*0@9YUu6aIIu*E$;eFIuq;{Q4E7LPoG4*w?B<3P z&UzJ#=s@5st6EY}E?7{`)&dTn!*jf)Zy9WhOI36<@YQX=J*ZD<8>d_uU|iR zX0nDe<|%{ZJi}K;B*|J#K+a1*v=7dvV5ufyq&A$hjrP7RWdm_)TEO>^A zt{=oV>J)KsX#+4>MkY+4VLa^43r%a5$eT*iq-ENhGDb?u;vAkO<0>!7VpR1(7uK;Q zWmOx(y~6w;p?)mDS>u^;Nr>pz(bUFIhG><(!3lno$u_sMSsVr!w*5d!4|E91KVMci z?_l;UYCM`+>}EykM>b7ojNsBzvdSnE^b(|UN5qvFqhoQ5mCc+*@aDr!5~!p1)7`Bd ziQAHC194i7#>i90O(M~u%edN*n8PKDkrFLPV9Xp1wbjz1emA~WaUgu-*S=%MTAvuc z+&d2JWR8Ir@iv|d$-=1rZ23PU;Xd27YkEsu-PyG!(UC1OiG@ABp(bQzAh?r>z^%>w z6PiE{y+!1)@i&rvc%BR=^+68xV;I2b!n#eBpG<-PW~Qa-$dX`#8A3LFH+kAoN@eF} zlg>7lb+oSND73Fx)3%Byd;~Z@B+cvq`_Aq)wu-%V-O6>Hs^kiUZs)o+E837Q)YR_k z>e{)kx9dF4!Lbl_TNlK+Hj+=TP*1G;tE9P6$(6Zj_pgRd9#7;~GwI~}&3fcxlIgu_vhcL)>vGK?L$R za;Vk$8DJjF3{>_QiE1m#>@A~XEwhnO$y%hIxYATTKMGy#(?JPYL0@az#F1t&Qb$wamsk&89VTG!39Gh#nEkdXFGBc zQ^1^tPVz`Z(J`Z+Kt0n*8XJ?-Awmb(IEwAslB@t)5VZO!8+XpN>zsqW3!tfj73(@S zsgIj+t*q1?ysO^zLV~X^ZDhG*bUhUiC|(!WD8x*kZXDh#G*r9|LdNm=IxX2R8wlsB z(`0dAL*{Wflg-Qc3)|C1vqmgGeACn@O9jjNJuf2HJ6X)TTx+yu#;eqRn;%j-<)H-q z8UtHLk}U>=jkc4yhnPjn*nB%@@;S>cn~ke&#!9rM;cPlACAPZL{om5kqS0eUUHai- zf6{I)Gg;3+C^YwBrDdNhbQ4)_*>_v~(A8hBgxQ^j3^45=FJfBs4yNX&^ z_+u4yBy|;=dGY3|9S;kw{ZO}NtknTq`ZcEXI=OvV=`mryUPIq<&e5S?X!6SsDyueF z5I2WtG?w`gv7;(X+mxzU7@Es*Jnx)Flr#+X94ivPZX77nB#r3DJMzcL+>UkKZbXXB zKp?~;qv_@tS#IhmQG_F$v|SUiF}sLi+`=%3qrWHSSzkAI3<qNJB96Pp-j{ZWUYd4_4>I?c>T{ZM`^f?D<^5gFr zPM%0~n4%Y)!9Yl~%`a)gFR)EvXZuA9Gn<>4!5iUpUQJ_pGrOGbKy69FPdz(PtDO>J zfr7D50}qxlQuwW0i)B@VjPib=0;Nc& zW6KAvW5Xxpn7MD=ENf6}-gJflfvFRhfoS4APHFeZyFIfS#e3$}ahoXB8(kV~r`+S@t;=6^S3zxxZm^*Rps|q$D$$<@1S*w!NGj9ZUw+=i+6l<8);ZJYM-C`YN#99gi`* zlIIOS%LUym7tzf*{E^n;q|_ib)vb;|8u}8-E^CL((|}|jr~I~4s#;F{50u7Pb<{kT zU!K_&l8zKMM_5l&dItYp&av-ebFXMCu!mlx)HC4)S9;yBtL2r}+|5XF)UzSy*L z1g5igkU`=4M2^5=cCx;UOp-HxF_Z0n#(wJDm{>{0x6RT$^l?BzX*9{jK(T~zvys(i%qXAP_maf|EJB7_Op zggi5{6EgWRsSW+3b3F95tl}c94po9$QxqlbY|$jocq1-oH&%~X#{5zj1?3Ip`vGHl zIw#h$)+|8)KQAOw#JL$6X0d-6;gMn0gu>R4i+ZON3nhr2k%rlp3i+)s%Gk7ESOV8D zmq|!!Rjh5KP}N*R#p)QbY=$`+0A8Ymc$R3?$QgMQ7#^G6>1nS)eMHfxVZxIsi|J?7 zz#y1jW*GxuIyIuj%<}LyL2VwB2q4%$UqzRz_u-)L+;Eh{U3YN?!Z=QV=<;P@OFD}p zQ$PGxM4bk(VHX99v$dI2Y}6xJV-ms7@1`@UjCSBQ>xSlxVulF}`&NLWLA3D^`P~>Wc&auzSL}?slY5^(oE9 zBJ0zy6HZ<^BX)3hl%`d_*=|YsGWtcM9`D=` zA9(k-R*D+Y@t@WNvISe)sm2TO$&grsAAn?4;{X1b{aD=~Wcb|MYg6!edO zp%juVeiPbG<)3jm%?>r%sf3&?v?*70$V?i}L$9GjlwvwDW&p8*LB?w**&u?5QH2F% zUb03pHVIQRqqvP=Py3y#&{F<2eLwqKz4c!k4f|@-CXq(L@)>$d6qXI@!nxxoQ%8y4 z(gxT2B~`(eP4yi|!Z3}b09h@U5oWcU0sLyP9o$o}^9eeeJ-b0*inRO)SWC{s@;KTx zMxe=2<<2t&al-0)DxZq5tUnz_2zF}DhGj9-B(dXJ6I!S1q%nijMhl-2lzpRG6He;| zp20!Wm+?Wx1Zw5ae=zsP4raQBTXYzzR9hn3F*yPw*-A6iUv9sW$^MjLG)XEw)7PE{ z=?Yd}&97^d z5XlWRwi7=L%r%&g{_C1JQMu-dFCw|sN}1qfAAEdu46QYi-gL=!3H5xId9%1fd-CG4 z!i=jsZG_bF2@LDjPT1*hiXNsp=M};v={$R9GoH9T^w#c!G3$x8a~%XKH}JXxV8PbytvfGvrPGJh1OR|l8n zAk!$WN})R$ZThVH65fK=2*Rwk@Fg<;PD*%pvZ8I5^&2NbA9LK$xyE)}YXBDdR;HiX z)P18)@5DDO7nTvLzn9%HdoFyw9GY5pex9h4Y+&QYIhkzo(U3+Qj)C9Z`)o8v$&!_I zo$GqqR#~jHrtoJ}3I)Gw6X`z5rp+{HPMA@iNrV*Y*2Y@$&x8eD+H-^y-8iTP(_syS zI!;)goJ~8U3aF%9vova5FAHN(Kexs?0uzL_-vUf~NpN0dM1)^8hUy9A*K`~)(Q`39KDm2x}mpaKT9#kRnY8c-i3%A+-gA&XI^zE1#hOm%7U8;zK#)(6Au4&a-CK=o- z!~L2xw!DH|jpUbY(%#wA+uFIZjn1R38#!aLh~I$b&Dh@77e`9G@;-$$e4g84M6!g`eDNNu&mt72F zY28e2)nJ;AR%hCdd^6MR7Xf~`)a*m%c#7kFr08sWj0usAm9QnZsLVWKakD=DTN`Z5 zS}0n>pN^v|SRMG-=$4`4Q)Q^y`|LC+s4l5uvFxjlpER+(lXBZQNBx-d=`dMrPLl#T zyG#^~bi8|=U0<=_!zk+L%!_GK^u;3KtW%9mvY9RV?^h#V2dKak=0>wT^$zw zr|U2YO*7@8X{N;vLlgS_a=(w$tXJ)GGPxLzlRyTHv3)NYMrCQC6g!hS0wOHRip&+* z4blD({K9c{;i$VpI;h`>aFEB~6xr129vU17UiS<@e(mvdTeoH{4XN=3PTo~b~H;tyTLfNQ6jVPAPsWF zB-}XgN?drU;u5u7vWWv(OQ~LJxH2P3&g~89!t7eZ6-SBxI_0vY5J(3S>d4ndGhERe z4|+RH0z@%P9c6?i*|E5eRY5LGt-yEaD-IzV%Y`6TgCHgiu{7ZB0mk}H@5dj-VCyKq z4`I8BfJ;k;6E@8HrcdkPL*hmB^-YQCq+oCmOjctn4HG0(PL*Pwq+9!M zx0hPuTKU+PkR?fjYB!|Y1(9jbj4#+4)HXuU|8n73qMa_c49tSmkUq>rh`UON9PhIP zzt37#o(smWj{w#My+xdflT-i72Yq;oSUw#Y_-O-rwYPL^aE19mm)=|+7#NL+Me4i_ z^3#T)(DvL7HqwYQUa8%Ph=A3tsZcdz!6tj*X`gHC?rU*+}GciLB4T8anOkjY8ylOQx$?f@vpo zCARdUXdp;vAUDn80;$c7&8Jw5=zid4q`%o_Dr&W7qs;si+GNxCB0!A}Zj=h4;)o(M z+e%-HI)mc-3F7o!Djkzdw<&7S5X>bn#@*Ib$pF4ZN;yHfb8(}-$mAT3dGLfz7v)Iw z*_16?*g4ianl37Mz;BKSud2u7z)IIkzX<&u*1@{6D*ZT+)ED0 ztCt#>dC4KCQPzcETF))7OQoo_#SqRBb@Z66?eI!ssMu`d$$EDd#nRB- zwL)DW>~I~R7d}%3vYy1^&g9=OM~91)SPioJ%xmIC#;|tcPcOXA-~vRx z29ag|WD=<6=7(IbjvAiRNs5yuG|2XTc4wu2L(UESj;9=GU&ZgDz2;vSin!eXT_Q7m^R2)P@QqVRUR~5{(s=1%n;!)-xT*sJXVm zTMC?*;XF?Hg&tucl?g6$PIJQKx)mIkGtafQ|M^swIE7}8k|-j&zW{uX(Ggs{z)g_yIh>`suIgXI$ZFjKDpr&?1 zy8Rj)XPafSb2%U~gAj~zH|H5aUZqqDyNL1$rAsU^&`mhi%Qz`TXGKOvM7xwUFKtmM zN1VuRa7f_xGjvtU>0TEpBbw6w=_YJLaVIzTLbK+0W%~zL)=`XpUCBg`r3yYlMNaz?37M? z47YLsLTY-=9k)?mlJEs3pIvm5W}1mD7q?%imOr{L7A1{_vkEp*S+fqi!O5zYu6C_2 zV*0HiEi<2YpnNQg9j@9b-Li?0Dadm+L+2^$EGa6H#Jg%@Ly!0qSaFYQ{K+XDY~>}6 z+r(Xjibo`Y7NQV+TLN7s%x4kv&1)qi`IuNAdFhgOERAEG&eY2k4i=F zi+As+tc0(+;WFoQ;qTL_X0|z*tfLe+Yc_6K9Q{3|Ri9{>VAc)c8#(JuN`;y?mSwqX zqt0x8I1W2N_Og$LQ9vH%cg$qN#!5=gQPpB5Kb6PW#0FZ7 zlj3Z{>fV*Gt1Wf4VS^agA9p>0p0j1I6Kp?lhw->}3tY`Ff#@JGq70U?pXv-H7r_vXkmBy0mWX7r@VY23~VbGl`B+xhD_>2K8(>4nid?trL}QwCB;@=jD` z&M`|IHNY<%di7%qOxRN44G(V?n4Yy`ld~pTYy9ae_5O5&kDKvR;+r@I6YC`#$$l7X zJK<9;Y>LfoB+hg~dWk=Q+O(iXk8$ClB#wy#S|p5mynzzO!};UHG^xTbgbz5e9uIOc zePBm_8TqwjUvj;UP&Vk!86-w1HyD@Vhv0*A9n?;nsC`#z^#q zrSe}7jp+Q0(&zwAp}OxiVvJv9=X6}#QZad&lgII$QA5+oqt9GAGrDN&3&cJM{rp5> zCXS<~a0kpnTzO+ln)|#+V(ts_y9-k_r;QfXwOcs#8^G-)e#c;iJtP(4#%Aq2MHaofI-U z#j0J3r~`%@wAi`~hCX6evNwCdenl5B%$F{8i^(VWe{-l~$_enf1Gj)6<@e(A&u{US zsU2AC&mWOvQ-XgMs9TJxL;>ymWL15v$Y|fCv{FKvQYiMw-B9R&h-_+B4}XoufR%6P z7DaB6kR%6VLdWo)4Lf%qSp)1o-3{`%#xL_ z8N}T7E-H90ViCTN=rDVeFL`zM<=K-PzPeAZr@{Mi;s1eFQfFykBTww;EDo)7Jn|l% z?jAg)$7Rd7GDqRwvll<^?>u+isvopzJfg-M4eiD3HR9d-AAj1xIa0#KWnH^d^HITN z)^`KI+E%Kh;nm4|iO03&wD0bBv&b=~OAl4)>dE^iagiOUiF3oS%%;r57MY&egOX!S zQIo)8I(Rx>Y(nO~V(4WMYQ)(QiVS z+lwda80Kfu?0(kfxQl zWtf90VT}%bg!?oDryVTy*&T6+#5SvPbMrpmojECdBrtNJzju^3VxK^=xQ}i-6P4>`giQTcy=8V?KtT12}vM1)fPy%v(p~%5?oz^ zt!zh-;BBy;Atm&Orjm4)g|^2^D9ip;#GcC;;s$|nXPPS8i_gpyAA4T9JBBna%NaRJ z)K}ZQB&Pegm!wm%o!d)k-`tNp^ons9%6J*yZR&?Gg}ee7vfFzAOl!c%o!KKFd#vxU zzHa>##M@@JfN{Du%>&-{=$|qPl#PvUU(PbNxbtc^At+=>b#r)q$Q_gym%Ph= zz+zZp-k1nusBXi%;HI;o$5Klj@(1&~TA#0*;^`IG7>pcGjHons6(f!=qcZ*>n2ZP% zne}ize~$;yF;xzHlqbACeD4<{r!QWt*fx`4xu7vysCyMaHfOxMGvu{Cmzn1fsoqT| z&a7Gs3oh*@P2+?u2l^I+=*+;W$f@wThD^i|n+)%=5d{kk!TuY!J)p+2mQ62@Vx;yu zO>fCM3)h8jYE2|$Ejmv(d9zn7*eQ)GAs7;n?g89kYmeuGP8EalP$ja=Id{n=bNuSlE-e^9&`Ks z5%K|BSk8gVsRNXr7@zMxZbVmJiX_7{HNt>lofcc{sP{}y{^rZqbi>c8)acn z`#EVGHIt6f>-_hZO25u~m(@4#?J2?)FBr7wY@Z}$5#{j}Hy!`Hd`Uwg9I(0*Qmw=9 zp3@QjAs&PcUa6sTO7!#0ogD1BdwU4j3W^3~7;S!wh6xIC+SN^0IWIvTBdasURf%1ziFS5T`!kUmBok>X>R+=N&8ixX9 z!K2seeAIcxhqL1$(UGEykoptPJiY)$h4`*h88epQpKIxO?ez{>8+OT29ua=_xE4#C zGbYn`rgM0<$6#3@M2#q*kn=2qb#ZJJ|MmBTc;`#q01}Z#e|?;0>Ukz+dt{|ijyg6- z8c@AJ2m%hSR3SL+LCZbt7PS5?t0*6P!|~bg!M=`?GccBW)ej8=NVv6M{HaN!YI|yZYT-Sm4Fx(()6@L@ovd*U> zmBf)RJsaQ9K9ah6wCD8+i)e6!=WhaaS%Kun@NQ#W6?%(w6dvYJvu{`;)x)M-clWUuS_I45eO!KooIyl%bFWPrzeoM?n(Hr)g-K4-TH66&; zOf?;MTT)xa+*F-Q!zZ#kS8FEM3?ywU_`1HMU_kXUf(YsgGO3&GL6BwYjStWbB3)tq ztttD-B$ut9%&>1V24_DJ`^^XFzf{f1-Vy~X6UOU`XsSt&GYwnOJmaOE3Kwd^`u7Xmmxuc8zIpK^5?>MNCs!1aw zI}DDs?b*H};5$VSJ##f}&b*Cna{h0m0z-$=_x$H988)*xzyPOx4G&D+vmL3F1J?yp zK)@S_)>B<d?Ike(tnc zQs(+uvgjLfTs935D26c-VkR#(sni!aK7V@Z&f<1_;p51+Il1uDSOMZ%q-4V&@~EU( zuL*B>R*@o{yFPzb{Caq*pyJ@N)e2nE8s$_Arj1C*H5+LGEsEJF*8;>^TiP*^O z3L)D#@L~KeQ@vZWS+BLN7R#jm^ioOcT{b{gm=oeytd3r(VTOedOaD9Pa!Y zX}H3Sde7gZYCmT?kcw<)Xjf`j_y&CheiK_^1z{JARWr@mOJQCgzo4pv7Lye}j0(jG zv&pPT+kIEi)N0nedQo^)`@$rRPt`FMkZnKPhgw@I&7G0g955r#E-#1K7<(bOZ50*N zgq{>0c;oxE(yZ%8NK zff{Dz;^MY{Bd$t#kd#NpS+X2sRWu$LOqLVd26(|4%4u&gQ&Hdd4-?Q;t7flR7y|RSd;Pm@~pv}TIM&Eww4A%W4gt} zRfG$*tQKDk8{J%?AuCVfqd$c+GcIfJquKJQq>4MOWjSR<2!ND>c5|eV)L-w9=BS=@ zZS3yGU2Jv!O4MqV@K1Mik+QPuO+YbDvB9EEt=#m3H38D_bN|Wk z!DG)|X2*$p7pHP+tC`fn{?5UN&m$jC^ptFXKYm1t4jlykn_&^hYfX0A4EulIJ9zZB zP2;O(Z(@0dGXWGVt$p%F8=QSIKAy>{!^n~2-cnq?Cueu%{N3X66)H+8RI3}vyHFY~ zA#bzc2*ccF#2U`1qZq<;L|yJUoF8|JJrGFY5K}rod5L*PAVK`Uh+EKvcW?Smi5>Cf z@%QpIn}F8p-kyfX96o{TVU#M*=+y>$vh!Rh_+IuVEQ7ZiTc2bVVY0VpvS*@H*Epwy zZx;=u55r^Wn2hET`+neVn6A({VlBJ~>d7|JvNB7!P27EfEO2IdsA4Oq!a&A7QA`=v&{EXHOgIT2{)??cZ;I3J?~) zZ05Z5)5N1q-;Pp;Zv<3lU}ynS6efd9wPbmLV~C~6^V&e$fb%Pt>HV!Tb}dv1=c!mX z?91ECI$y@N= z_dc#WM^mY19~9D{2iw6ve%yftzEjGlnZgL7Se?8bIv(4zRK%QaS-s}5(85lEO4+wj3gpSmoffox zj2fa2YGc)H%(YI?Q8sJM2`5foClP1`Fh+=67hmOK#N1J}z^ON-tl2=OV zm>Lp`<9LxOj)?^s=lAAld9@V+AF#7Hq!AS+BQ#7B-DH-g9`vmoFWP`*ObKi3WbN@-~V)mb_sp;dj4}Rxp5swm+Pp$k(&69!eXK zEj??)Tl_|`eT8>}YMW&C5f*pS`lwxl!6}}S6Y{T=>4*VmxU5-r;aUy6ifQs=(LphY z{%G=r7~O54s@>er!gHdQwUoqzH~)bi?XmSpW62#o@1THkpx}muDvF4|$u+<%g+CD}VYU$X-jB zKpg=k@nO}yt9vs;-&^cb$Vl$EUx#aoxdz#|7W8)+;qY#FlfuD3V|tKRqN&gw6g*eWTMj3MBe=Cn?@ z8!{)&b4i@y6zpxuZ=wMhmEWwVb=hFywbQ~w<@rBB&<@pU^2|&nmP@kB@^=)Q<=HE4 zZUIRb6mw^$p#)a=N1y#w59)7Gv>&ix8J^JZ)fI94>+@axP$7}-{Vx3}@FkPxz?IDR z03njKbZ5T%a)vHT7NpOvsd2*rt^yT&o zF(P#pSeWX~uM|lS_SH8NXUD`OEQH7NN(KIDx3jd(0T_#%v`FgNTZJ9I+GXMi!(K+0NJXGum1Rzg$B$uA-g5z z_`Su`P0E0c4R#=!aj2LMrSwMRzrnh=J4{*&bc8s0)I)!H=GE6>YOn83=V)gWQizML zX!zT9p;AIh!!L5!;6`mUG6EcgYNK8Q9c<6LP2UQz=^9OeZJtv0a|38RxjATsRa-YO zgT4L8BQ7-@og6JYNy+wJYg>d zeRNVjpE`I`@ib*-X!^W&UUp5w_vT!ZTCtfC_6}bE!UEd2(mX=?oA_lDD_ymO1(09T zqg0@oTGMm{u@3hxw82B>{HFBc!*jGUA+LO;lwiL-Y46$N!+*mL##c5Jif)%}gH<;4 zhYpz8NfqR8w^^i`n1QHBlNri#klK^EVD_>cY7a`ibW5b(FeA(@R9A>bp6)KGIu^n? zRGo)smoOj9YAE&8+U99km3P2znz{LxXD<$j@LLe3z3v+FwI3w6h7qZ$nw#2Pi7fM+ zDmFNz*W8*c+w#2l1WXJ^Q0Kfb59C9)JwLwh{mh&1g-E7LD_Ou*TMrj!b?$rJGF#rX zbbN*Vb8fZbC`qD+%lAtK=;7|@L2(`~onSJsQcu}13@(Q|sf$24c85DZ(KUfpYTTWTVE84bzdWjCPa z=`xt`RJ7ewplo@;q*Acj&t^@?p6q4K`rZR@X0s=yOphUt2fXp5&^khGRGmB{jocT` zsKczziN{~yybB*!tyuR$j)npLkH6e7qtfpf8Q+H8kdlKLYk^ZB$e^DO{?->@;!_Gt zH%`S;S##u{aXM{{2Q*86N_4gRq}wQ~Z55)#+RZ$?dP!ci?l0Ussm?|=6N|f$mq|ycq-5)$E zrx~M}3=AOl_<<#vk{e*@a5>i;d2McW($PxKOuOcJ;~t2NTWC iU*??duEwwG4&rA2wu&OCPBI^507r?p5(CbPkNyYgfZhK9 literal 0 HcmV?d00001 diff --git a/po/fr.po b/po/fr.po new file mode 100644 index 0000000..84c6e56 --- /dev/null +++ b/po/fr.po @@ -0,0 +1,2813 @@ +# Messages français pour GNU concernant sp +# Copyright © 2002 Free Software Foundation, Inc. +# Michel Robitaille , traducteur depuis/since 1996. +# +msgid "" +msgstr "" +"Project-Id-Version: sp 1.5.1pre1\n" +"POT-Creation-Date: 2005-11-05 09:50+0000\n" +"PO-Revision-Date: 2003-10-14 08:00-0500\n" +"Last-Translator: Michel Robitaille \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8-bit\n" + +msgid "" +"no system identifier could be generated for meta-DTD for architecture %1" +msgstr "" +"aucun identificateur de système n'a pu être généré pour la méta-DTD de " +"l'architecture %1" + +msgid "element type %1 not defined in meta-DTD" +msgstr "élément de type %1 non défini dans la méta-DTD" + +msgid "element %1 invalid in meta-DTD because excluded" +msgstr "élément %1 invalide dans la méta-DTD parce qu'exclu" + +msgid "meta-DTD does not allow element %1 at this point" +msgstr "méta-DTD ne permet pas l'élément %1 à ce stade" + +msgid "document element must be instance of %1 element type form" +msgstr "" +"élément du document doit être une instance de l'élément %1 de type format" + +msgid "element %1 unfinished in meta-DTD" +msgstr "élément %1 non terminé dans la méta-DTD" + +msgid "missing substitute name" +msgstr "nom de substitution manquant" + +msgid "substitute for non-existent architecture attribute %1" +msgstr "substitut pour un attribut d'architecture inexistente %1" + +msgid "substitute name for %1 already defined" +msgstr "nom de substitution pour %1 est déjà défini" + +msgid "substitute name %1 is not the name of an attribute" +msgstr "nom de substitution %1 n'est pas un nom pour une attribut" + +msgid "reference in architecture to non-existent ID %1" +msgstr "identificateur inexistent de référence d'architecture %1" + +msgid "architectural content specified with #ARCCONT not allowed by meta-DTD" +msgstr "" +"contenu architectural spécifié avec #ARCCONT n'est pas permis par la méta-DTD" + +msgid "invalid value %1 for ArcSupr attribute" +msgstr "valeur invalide %1 pour l'attribut ArcSupr" + +msgid "no declaration for meta-DTD parameter entity %1" +msgstr "pas de déclaration pour le paramètre d'entité de la méta-DTD %1" + +msgid "no declaration for meta-DTD general entity %1" +msgstr "pas de déclaration pour l'entité générale de la méta-DTD %1" + +msgid "meta-DTD entity %1 must be external" +msgstr "entité de la méta-DTD %1 doit être externe" + +msgid "no ArcDTD architecture support attribute specified" +msgstr "pas de soutien de l'architecture ArcDTD de l'attribut spécifié" + +msgid "ArcDataF notation %1 not defined in meta-DTD" +msgstr "notation ArcDataF %1 non définie dans la méta-DTD" + +msgid "ID attribute %1 in meta-DTD not declared as ID in DTD" +msgstr "" +"identificateur de l'attribut %1 dans la méta-DTD n'est pas déclaré comme un " +"identificateur dans la DTD" + +msgid "invalid value %1 for ArcAuto architectural support attribute" +msgstr "valeur invalide %1 pour l'attribut d'architecture ArcAuto" + +msgid "no notation declaration for architecture %1" +msgstr "pas de déclaration de notation pour l'architecture %1" + +msgid "meta-DTD does not allow data at this point" +msgstr "méta-DTD ne permet pas de données à ce point" + +msgid "invalid value %1 for ArcIgnD attribute" +msgstr "valeur invalide %1 pour l'attribut ArcIgnD" + +msgid "unrecognized quantity name %1" +msgstr "nom de quantité non reconnu %1" + +msgid "no value specified for quantity %1" +msgstr "pas de valeur spécifié pour la quantitié %1" + +msgid "length of value %1 for quantity is too long" +msgstr "longueur de la valeur %1 pour la quantité est trop longue" + +msgid "invalid digit %1" +msgstr "chiffre invalide %1" + +msgid "only value of nArcIndr for ArcIndr attribute supported" +msgstr "une seule valeur de nArcIndr pour l'attribut ArcIndr est supportée" + +msgid "#ARCCONT attribute already specified" +msgstr "attribut #ARCCONT déjà spécifié" + +msgid "invalid value %1 for #ARCCONT" +msgstr "valeur invalide %1 pour l'attribut #ARCCONT" + +msgid "%1 already used as a substitute name" +msgstr "%1 est déjà utilisé comme nom substitut" + +msgid "substitute name #CONTENT already specified" +msgstr "nom de substitution #CONTENT est déjà spécifié" + +msgid "IS10744 PI keyword missing" +msgstr "mot clé IS10744 PI manquant" + +msgid "invalid IS10744 PI keyword %1" +msgstr "mot clé IS10744 PI %1 invalide" + +msgid "architecture %1 already defined" +msgstr "architecture %1 est déjà définie" + +msgid "the first definition" +msgstr "la première définition" + +msgid "ignoring PI declaration of architecture %1" +msgstr "déclaration PI de l'architecture %1 est ignorée" + +msgid "the ArcBase definition" +msgstr "la définition ArcBase" + +msgid "ignoring ArcBase declaration of architecture %1" +msgstr "déclaration ArcBase de l'architecture %1 est ignorée" + +msgid "the PI definition" +msgstr "la définition PI" + +msgid "name expected" +msgstr "nom attendu" + +msgid "literal expected" +msgstr "littéral attendu" + +msgid "name or literal expected" +msgstr "nom ou littéral attendu" + +msgid "nul character" +msgstr "caractère null" + +msgid "not a minimum data character" +msgstr "n'est un caractère minimum de données" + +msgid "end of entity in comment" +msgstr "fin de l'entité dans le commentaire" + +msgid "end of entity in literal" +msgstr "fin de l'entité dans le littéral" + +msgid "OVERRIDE requires argument of YES or NO" +msgstr "ÉCRASER requiert un argument de type YES (pour oui) ou NO (pour non)" + +msgid "CATALOG entries cause loop" +msgstr "les entrées du CATALOGUE provoque une boucle" + +msgid "second argument for SYSTEM entry should be quoted to avoid ambiguity" +msgstr "" +"second argument pour l'entrée SYSTÈME devrait être mise entre guillemets " +"pour éviter toute ambiguité" + +msgid "no DOCUMENT entry in catalog %1" +msgstr "pas d'entrée de DOCUMENT dans le catalogue %1" + +msgid "no entry for public identifier %1 in catalog %2" +msgstr "pas d'entrée d'identificateur public %1 dans le catalogue %2" + +msgid "invalid option %1" +msgstr "option invalide %1" + +msgid "missing argument for option %1" +msgstr "argument manquant pour l'option %1" + +msgid "option %1 is ambiguous" +msgstr "option %1 est ambiguë" + +msgid "option %1 doesn't allow an argument" +msgstr "option %1 ne permet pas d'argument" + +msgid "Usage: %1" +msgstr "Usage: %1" + +msgid "or: %1" +msgstr "ou: %1" + +msgid "%1 [OPTION] SYSID..." +msgstr "%1 [OPTION] SYSID..." + +msgid "Short options need the same arguments as their long forms." +msgstr "" +"Les options courtes nécessitent les même arguments que les options de formes " +"longues" + +msgid "%1 version %2" +msgstr "%1 version %2" + +msgid "unknown BCTF %1" +msgstr "BCTF %1 inconnu" + +msgid "unknown encoding %1" +msgstr "encodage %1 inconnu" + +msgid "cannot open output file %1 (%2)" +msgstr "ne peut ouvrir le fichier de sortie %1 (%2)" + +msgid "cannot close output file %1 (%2)" +msgstr "ne peut fermer le fichier de sortie %1 (%2)" + +msgid "Use bctf %1 for output." +msgstr "Utiliser bctf %1 la sortie." + +msgid "Use encoding %1 for output." +msgstr "Utiliser l'encodage %1 pour la sortie." + +msgid "Append error messages to file %1." +msgstr "Ajouter les messages d'erreur au fichier %1." + +msgid "Display the program version." +msgstr "Afficher la version du logiciel" + +msgid "Show this help text." +msgstr "Afficher ce texte d'aide." + +msgid "NAME" +msgstr "NOM" + +msgid "FILE" +msgstr "FICHIER" + +msgid "NOTHING" +msgstr "AUCUN" + +msgid "Try the \"--help\" option for more information." +msgstr "Essayer l'option \"--help\" pour plus d'information." + +msgid "ARG" +msgstr "ARG" + +msgid "Undocumented option (check the application's manual)." +msgstr "Option non documentée (vérifier avec le manuel usager)." + +msgid "Use catalog %1." +msgstr "Utiliser le catalogue %1." + +msgid "Arguments are catalogs, use DOCUMENT entry." +msgstr "Les arguments sont du catalogue, utiliser les entrées du DOCUMENT" + +msgid "Search files in directory %1." +msgstr "Rechercher les fichiers dans le répertoire %1." + +msgid "Restrict file reading (for use in Web apps)." +msgstr "" +"Restriction de la lecture du fichier (pour un usage par les applications du " +"Web)" + +msgid "DIRECTORY" +msgstr "RÉPERTOIRE" + +msgid "SYSID" +msgstr "SYSID" + +msgid "bad formal system identifier syntax in %1" +msgstr "syntaxe formelle erronée d'identificateur système dans %1" + +msgid "value for attribute %1 missing in formal system identifier" +msgstr "valeur d'attribut %1 manquante dans l'identificateur formel de système" + +msgid "%1 is a formal system identifier attribute value not an attribute name" +msgstr "" +"%1 est une valeur d'attribut formel d'identificateur système et non pas un " +"nom d'attribut" + +msgid "value of smcrd attribute must be a single character not %1" +msgstr "valeur d'attribut smcrd doit être un caractère simple et non pas %1" + +msgid "unsupported record boundary indicator %1" +msgstr "indicateur de frontière d'enregistrement non supporté %1" + +msgid "unsupported formal system identifier attribute %1" +msgstr "attribut formel de système non supporté %1" + +msgid "unsupported formal system identifier attribute value %1" +msgstr "valeur d'attribut formel d'identificateur système non supportée %1" + +msgid "bad value %1 for formal system identifier tracking attribute" +msgstr "" +"valeur erronée %1 d'attribut formel 'tracking' d'identificateur système non " +"supportée" + +msgid "duplicate specification for formal system identifier attribute %1" +msgstr "spécification double de l'attribut formel d'identificateur système %1" + +msgid "bad value %1 for formal system identifier zapeof attribute" +msgstr "valeur erronée %1 d'attribut formel 'zapeof' d'identificateur système" + +msgid "bad value %1 for formal system identifier search attribute" +msgstr "" +"valeur erronée %1 d'attribut formel de recherche d'identificateur système" + +msgid "bad value %1 for formal system identifier fold attribute" +msgstr "valeur erronée %1 d'attribut formel 'fold' d'identificateur système" + +msgid "fold attribute allowed only for neutral storage manager" +msgstr "" +"attribut 'fold' permis seulement pour le gestionnaire neutre de stockage" + +msgid "bctf and encoding attributes not applicable to this storage manager" +msgstr "" +"bctf et l'attribut d'encodage non applicable pour ce gestionnaire de stockage" + +msgid "cannot specify both bctf and encoding attribute" +msgstr "ne peut spécifier ensemble bctf et l'attribut d'encodage" + +msgid "zapeof attribute not applicable to this storage manager" +msgstr "attribut 'zapeof' n'est pas applicable à ce gestionnaire de stockage" + +msgid "records attribute not applicable to this storage manager" +msgstr "" +"attribut des enregistrements n'est pas apllicable à ce gestionnaire de " +"stockage" + +msgid "bad value %1 for formal system identifier indirect attribute" +msgstr "" +"valeur erronée %1 pour l'attribut indirect formel d'identificateur système" + +msgid "" +"non-minimum data character (number %1) in value of formal system identifier " +"lookup attribute" +msgstr "" +"pas de caractère minimum de données (nombre %1) dans la valeur de recherche " +"d'attribut formel d'identificateur système" + +msgid "st" +msgstr "st" + +msgid "nd" +msgstr "nd" + +msgid "rd" +msgstr "rd" + +msgid "th" +msgstr "th" + +msgid "(invalid argument type)" +msgstr "(type d'argument invelide)" + +msgid "(invalid message)" +msgstr "(message invalide)" + +msgid "I" +msgstr "I" + +msgid "W" +msgstr "W" + +msgid "Q" +msgstr "Q" + +msgid "X" +msgstr "X" + +msgid "E" +msgstr "E" + +msgid "open elements" +msgstr "éléments ouverts" + +msgid "In entity %1 included from %2" +msgstr "Dans l'entité %1 incluse à partir de %2" + +msgid "In entity included from %2" +msgstr "Dans l'entité incluse à partir de %2" + +msgid "(invalid location)" +msgstr "(localisation invalide)" + +msgid "offset " +msgstr "décalage " + +msgid "relevant clauses: " +msgstr "clauses pertinentes: " + +msgid "unknown warning type %1" +msgstr "type d,avertissement %1 inconnu" + +msgid "invalid error limit" +msgstr "erreur limite invalide" + +msgid "maximum number of errors (%1) reached; change with -E option" +msgstr "nombre maximum d'erreur (%1) atteint; modifier avec l'option -E" + +msgid "Make doctype or linktype %1 active." +msgstr "Rendre le doctype ou le linktype %1 actif." + +msgid "Parse wrt. architecture %1." +msgstr "Analyser l'architecture 'wrt.' %1" + +msgid "Give up after %1 errors." +msgstr "Abandonner après %1 erreur(s)." + +msgid "Show open entities in error messages." +msgstr "Montrer les entités ouvertes dans les messages d'erreur." + +msgid "Show open elements in error messages." +msgstr "Montrer les éléments ouverts dans les messages d'erreur." + +msgid "Show error numbers in error messages." +msgstr "Montrer les numéros d'erreur dans les messages d'erreur." + +msgid "Show references in error messages." +msgstr "Montrer les références dans les messages d'erreur." + +msgid "Define parameter entity %1 as \"INCLUDE\"." +msgstr "Définir le paramètre de l'entité %1 comme étant \"INCLUDE\"." + +msgid "Enable warning %1." +msgstr "Permettre l'avertissement %1." + +msgid "TYPE" +msgstr "TYPE" + +msgid "NUMBER" +msgstr "NOMBRE" + +msgid "length of name must not exceed NAMELEN (%1)" +msgstr "longueur du nom ne doit pas excéder NAMELEN (%1)" + +msgid "" +"length of parameter entity name must not exceed NAMELEN less the length of " +"the PERO delimiter (%1)" +msgstr "" +"longueur du paramètre de nom d'entité ne doit pas excéder NAMELENT plus " +"petit que la longueur du délimiteur PERO (%1)" + +msgid "length of number must not exceed NAMELEN (%1)" +msgstr "longueur du nombre ne doit pas excéder NAMELEN (%1)" + +msgid "length of attribute value must not exceed LITLEN less NORMSEP (%1)" +msgstr "" +"longueur de valeur d'attribut ne doit pas excéder LITLEN plus petit que " +"NORMSEP (%1)" + +msgid "" +"a name group is not allowed in a parameter entity reference in the prolog" +msgstr "" +"un nom de groupe n'est pas permis dans un paramètre de référence d'entité " +"dans le prologue" + +msgid "" +"an entity end in a token separator must terminate an entity referenced in " +"the same group" +msgstr "" +"la fin d'entité dans un séparateur de jeton doit terminer une entité " +"référencée dans un même groupe" + +msgid "character %1 invalid: only %2 and token separators allowed" +msgstr "" +"caractère %1 invalide: seulement %2 et les séparateurs de jeton sont permis" + +msgid "" +"a parameter separator is required after a number that is followed by a name " +"start character" +msgstr "" +"un séparateur de paramètre est requis après un nombre qui est suivi du " +"caractère de début de nom" + +msgid "character %1 invalid: only %2 and parameter separators allowed" +msgstr "" +"caractère %1 invalide: seulement %2 et les séparateurs de paramètres sont " +"permis" + +msgid "" +"an entity end in a parameter separator must terminate an entity referenced " +"in the same declaration" +msgstr "" +"la fin d'entité dans un séparateur de paramètre doit terminer une entité " +"référencée dans la même déclaration" + +msgid "" +"an entity end is not allowed in a token separator that does not follow a " +"token" +msgstr "" +"la fin d'entité n'est pas permise dans le séparateur de jeton qui ne suit " +"pas un jeton" + +msgid "%1 is not a valid token here" +msgstr "%1 n'est pas un jeton valide" + +msgid "" +"a parameter entity reference can only occur in a group where a token could " +"occur" +msgstr "" +"un paramètre de référence d'entité peut seulement apparaître dans un groupe " +"où un jeton peut apparaître" + +msgid "token %1 has already occurred in this group" +msgstr "jeton %1 est déjà apparu dans ce groupe" + +msgid "the number of tokens in a group must not exceed GRPCNT (%1)" +msgstr "le nombre de jetons dans le groupe ne doit pas excéder GRPCNT (%1)" + +msgid "" +"an entity end in a literal must terminate an entity referenced in the same " +"literal" +msgstr "" +"une fin d'entité dans un litéral doit terminer une entité référencée dans le " +"même litéral" + +msgid "character %1 invalid: only minimum data characters allowed" +msgstr "caractère %1 invalide: seul un nombre minimum de caractères est permis" + +msgid "" +"a parameter literal in a data tag pattern must not contain a numeric " +"character reference to a non-SGML character" +msgstr "" +"un litéral de paramètre dans une étiquette de données ne doit pas contenir " +"une caractère numérique d'une référence à un caractère SGML non numérique" + +msgid "" +"a parameter literal in a data tag pattern must not contain a numeric " +"character reference to a function character" +msgstr "" +"un litéral de paramètre dans un patron d'étiquette de données ne doit pas " +"contenir une caractère numérique d'une référence à un caractère de fonction" + +msgid "" +"a name group is not allowed in a general entity reference in a start tag" +msgstr "" +"un nom de groupe n'est pas permis dans une référence générale d'entité au " +"début d'une étiquette" + +msgid "a name group is not allowed in a general entity reference in the prolog" +msgstr "" +"un nom de groupe n'est pas permis dans une référence générale d'entité dans " +"le prologue" + +msgid "%1 is not a function name" +msgstr "%1 n'est pas un nom de fonction" + +msgid "%1 is not a character number in the document character set" +msgstr "" +"%1 n'est pas un caractère de nombre dans un jeu de caractères de document" + +msgid "parameter entity %1 not defined" +msgstr "paramètre d'entité %1 n'est pas défini" + +msgid "general entity %1 not defined and no default entity" +msgstr "" +"entité générale %1 n'est pas définit et il n'y a pas d'entité par défaut" + +msgid "RNI delimiter must be followed by name start character" +msgstr "délimiteur RNI doit être suivi par un caractère de début d'un nom" + +msgid "unterminated comment: found end of entity inside comment" +msgstr "" +"commentaire non terminé: fin repérée de l'entité à l'intérieur du commentaire" + +msgid "comment started here" +msgstr "le commentaire débute ici" + +msgid "only one type of connector should be used in a single group" +msgstr "seul un type de connecteur doit être utilisé dans un groupe simple" + +msgid "%1 is not a reserved name" +msgstr "%1 n'est pas un nom réservé" + +msgid "%1 is not allowed as a reserved name here" +msgstr "%1 n'est pas permis dans un nom réservé" + +msgid "" +"length of interpreted minimum literal must not exceed reference LITLEN (%1)" +msgstr "" +"longueur minium du litéral interprété ne doit pas excéder la référence " +"LITLEN (%1)" + +msgid "" +"length of tokenized attribute value must not exceed LITLEN less NORMSEP (%1)" +msgstr "" +"longueur de la valeur du jeton de l'attribut ne doit pas dépasser LITLNE " +"moins NROMSEP (%1)" + +msgid "length of system identifier must not exceed LITLEN (%1)" +msgstr "longueur de l'identificateur système ne doit pas excéder LITLEN (%1)" + +msgid "length of interpreted parameter literal must not exceed LITLEN (%1)" +msgstr "" +"longueur du paramètre du litéral interprété ne doitpas excéder LITLEN (%1)" + +msgid "" +"length of interpreted parameter literal in data tag pattern must not exceed " +"DTEMPLEN (%1)" +msgstr "" +"longueur du paramètre litéral interprété dans l'étiquette de patron de " +"données ne doit pas excéder DTEMPLEN (%1)" + +msgid "literal is missing closing delimiter" +msgstr "délimiteur de fermeture du litéral est manquant" + +msgid "%1 invalid: only %2 and parameter separators are allowed" +msgstr "%1 invalide: seul %2 et les séparateurs de paramètres sont permis" + +msgid "%1 invalid: only %2 and token separators are allowed" +msgstr "%1 invalide: seul %2 et les séparateurs de jeton sont permis" + +msgid "unknown declaration type %1" +msgstr "type de déclaration inconnu %1" + +msgid "%1 declaration not allowed in DTD subset" +msgstr "%1 déclaration non permise dans le sous-ensemble de la DTD" + +msgid "character %1 not allowed in declaration subset" +msgstr "caractère %1 non permis dans le sous-ensemble de la déclaration" + +msgid "end of document in DTD subset" +msgstr "fin du document dans le sous-ensemble de la DTD" + +msgid "character %1 not allowed in prolog" +msgstr "caractère %1 n'est pas permis dans le prologue" + +msgid "end of document in prolog" +msgstr "fin du document dans le prologue" + +msgid "%1 declaration not allowed in prolog" +msgstr "%1 déclaration non permise dans le prologue" + +msgid "%1 used both a rank stem and generic identifier" +msgstr "%1 utilisé à la fois dans l'identificateur du tronc et générique" + +msgid "" +"omitted tag minimization parameter can be omitted only if OMITTAG NO is " +"specified" +msgstr "" +"paramètre de l'étiquette de minimisation peut être omis seulement si OMITTAG " +"NO est spécifié" + +msgid "element type %1 already defined" +msgstr "type d'élément %1 déjà défini" + +msgid "entity reference with no applicable DTD" +msgstr "référence d'entitié sans DTD applicable" + +msgid "" +"invalid comment declaration: found %1 outside comment but inside comment " +"declaration" +msgstr "" +"déclaration de commentaire invalide: trouvé %1 en dehors du commentaire mais " +"à l'intérieur du commentaire de la déclaration" + +msgid "comment declaration started here" +msgstr "commentaire de la déclaration débute ici" + +msgid "%1 declaration not allowed in instance" +msgstr "déclaration %1 n'est pas permise dans une instance" + +msgid "non-SGML character not allowed in content" +msgstr "caractère non SGML n'est pas permis dans le contenu" + +msgid "no current rank for rank stem %1" +msgstr "aucun rang courant pour le rang du tronc %1" + +msgid "duplicate attribute definition list for notation %1" +msgstr "définition d'attribut de liste en double pour la notation %1" + +msgid "duplicate attribute definition list for element %1" +msgstr "définition d'attribut de liste en double pour l'élément %1" + +msgid "entity end not allowed in end tag" +msgstr "fin d'entité non permise dans la fin d'une étiquette" + +msgid "character %1 not allowed in end tag" +msgstr "caractère %1 non permis dans la fin d'une étiquette" + +msgid "%1 invalid: only S separators and TAGC allowed here" +msgstr "%1 invalide: seuls les séparateurs S et TAGC sont permis" + +msgid "character data is not allowed here" +msgstr "caractère de données n'est pas permis ici" + +msgid "document type does not allow element %1 here" +msgstr "type de document ne permet pas l'élément %1 ici" + +msgid "" +"document type does not allow element %1 here; missing one of %2 start-tag" +msgstr "" +"type de document ne permet pas l'élément %1 ici; manque un de %2 de " +"l'étiquette de début" + +msgid "" +"document type does not allow element %1 here; assuming missing %2 start-tag" +msgstr "" +"type de document ne permet pas l'élément %1 ici; assume %2 manquant de " +"l'étiquette de début" + +msgid "no start tag specified for implied empty element %1" +msgstr "pas d'étiquette de début spécifié pour l'élément vide %1" + +msgid "end tag for %1 omitted, but its declaration does not permit this" +msgstr "" +"fin d'étiquette pour %1 est omise mais sa déclaration ne permet pas cela" + +msgid "start tag was here" +msgstr "début d'étiquette était ici" + +msgid "end tag for %1 omitted, but OMITTAG NO was specified" +msgstr "fin d'étiquette pour %1 omise mais OMITTAG NO était spécifié" + +msgid "start tag omitted for element %1 with declared content" +msgstr "début d'étiquette omise pour l'élément %1 avec un contenu déclaré" + +msgid "end tag for %1 which is not finished" +msgstr "fin d'étiquette pour %1 lequel n'est pas complété" + +msgid "start tag for %1 omitted, but its declaration does not permit this" +msgstr "début d'étiquette pour %1 omise mais sa déclaration ne permet pas cela" + +msgid "number of open elements exceeds TAGLVL (%1)" +msgstr "nombre d'éléments ouverts excède TAGLVL (%1)" + +msgid "element %1 undefined" +msgstr "élément %1 indéfini" + +msgid "empty end tag but no open elements" +msgstr "fin d'étiquette vide ma sans élément ouvert" + +msgid "%1 not finished but containing element ended" +msgstr "%1 non complété mais contenant la fin d'un élément" + +msgid "end tag for element %1 which is not open" +msgstr "fin d'étiquette pour l'élément %1 lequel n'est pas ouvert" + +msgid "internal parameter entity %1 cannot be CDATA or SDATA" +msgstr "paramètre interne de l'entité %1 ne pas être CDATA ou SDATA" + +msgid "character %1 not allowed in attribute specification list" +msgstr "" +"caractère %1 n'est pas permis dans la liste de spécification des attributs" + +msgid "" +"an attribute value must be a literal unless it contains only name characters" +msgstr "" +"une valeur d'attribut doit être un litéral à moins qu'il ne contienne " +"seulement des caractères de noms" + +msgid "" +"entity end not allowed in attribute specification list except in attribute " +"value literal" +msgstr "" +"fin d'entité non permise dans la spécification d'une liste attribut excepté " +"dans un litéral de valeur d'attribut" + +msgid "external parameter entity %1 cannot be CDATA, SDATA, NDATA or SUBDOC" +msgstr "" +"paramètre externe d'entité %1 ne peut pas être CDATA, SDATA, NDATA ou SUBDOC" + +msgid "duplicate declaration of entity %1" +msgstr "déclaration double de l'entité %1" + +msgid "duplicate declaration of parameter entity %1" +msgstr "déclaration double du paramètre de l'entité %1" + +msgid "" +"a reference to a PI entity is allowed only in a context where a processing " +"instruction could occur" +msgstr "" +"une référence à l'entité PI est permise seulement dans un contexte où " +"l'instruction de traitement peut apparaître" + +msgid "" +"a reference to a CDATA or SDATA entity is allowed only in a context where a " +"data character could occur" +msgstr "" +"une référence à l'entité CDATA ou SDATA est permise seulement dans un " +"contexte où un caractère de données peut apparaître" + +msgid "" +"a reference to a subdocument entity or external data entity is allowed only " +"in a context where a data character could occur" +msgstr "" +"une référence à l'entité de sous-document ou externe de données est permise " +"seulement dans un contexte où un caractère de données peut apparaître" + +msgid "" +"a reference to a subdocument entity or external data entity is not allowed " +"in replaceable character data" +msgstr "" +"une référence à l'entité de sous-document ou externe de données n'est pas " +"permise dans un caractère remplaçable de données" + +msgid "the number of open entities cannot exceed ENTLVL (%1)" +msgstr "le nombre d'entités ouvertes ne peut excéder ENTLVL (%1)" + +msgid "a reference to a PI entity is not allowed in replaceable character data" +msgstr "" +"une référence à une entité PI n'est pas permise dans un caractère " +"remplaçable de données" + +msgid "entity %1 is already open" +msgstr "entité %1 est déjà ouverte" + +msgid "short reference map %1 not defined" +msgstr "référence courte à la table %1 n'est pas définie" + +msgid "short reference map in DTD must specify associated element type" +msgstr "" +"référence courte à la table dans la DTD doit spécifier le type d'élément " +"associé" + +msgid "" +"short reference map in document instance cannot specify associated element " +"type" +msgstr "" +"référence courte à la table dans l'instance d'un document ne peut spécifier " +"le type d'élément associé" + +msgid "short reference map %1 for element %2 not defined in DTD" +msgstr "" +"référence courte à la table %1 pour l'élément %2 n'est pas défini dans la DTD" + +msgid "%1 is not a short reference delimiter" +msgstr "%1 n'est pas un délimiteur de référence courte" + +msgid "short reference delimiter %1 already mapped in this declaration" +msgstr "délimiteur de référence courte %1 déjà mappé dans cette déclaration" + +msgid "no document element" +msgstr "pas un élément de document" + +msgid "entity end not allowed in processing instruction" +msgstr "fin de l'entité n'est pas permise dans l'instruction de traitement" + +msgid "length of processing instruction must not exceed PILEN (%1)" +msgstr "longueur de l'instruction de traitement ne doit pas excéder PILEN (%1)" + +msgid "missing PIC delimiter" +msgstr "délimiteur PIC manquant" + +msgid "an attribute specification must start with a name or name token" +msgstr "" +"une spécification d'attribut doit débuter avec un nom ou un nom de jeton" + +msgid "%1 is not a member of a group specified for any attribute" +msgstr "%1 n'est pas membre d'un group spécifié pour n'importe quel attribut" + +msgid "" +"the name and VI delimiter can be omitted from an attribute specification " +"only if SHORTTAG YES is specified" +msgstr "" +"le nom et le délimiteur VI peut être omis de la spécification d'un attribut " +"seulement si SHORTAG YES est spécifié" + +msgid "there is no attribute %1" +msgstr "il n'y a pas d'attribut %1" + +msgid "" +"an attribute value specification must start with a literal or a name " +"character" +msgstr "" +"la spécification de la valeur d'un attribut doit débuter avec un litéral ou " +"un nom de caractère" + +msgid "length of name token must not exceed NAMELEN (%1)" +msgstr "longueur d'un nom de jeteon ne doit pas excéder NAMELEN (%1)" + +msgid "" +"an attribute value literal can occur in an attribute specification list only " +"after a VI delimiter" +msgstr "" +"le litéral de la valeur d'un attribut peut appraître dans la liste de " +"spécification d'attribut seulement après le délimiteur VI" + +msgid "duplicate specification of attribute %1" +msgstr "spécification double de l'attribut %1" + +msgid "duplicate definition of attribute %1" +msgstr "définition double de l'attribut %1" + +msgid "" +"data attribute specification must be omitted if attribute specification list " +"is empty" +msgstr "" +"spécification d'attribut de données doit être omis si la liste de " +"spécifications d'attributs est vide" + +msgid "marked section end not in marked section declaration" +msgstr "" +"fin de section marquée ne doit pas être marqué dans la déclaration de section" + +msgid "number of open marked sections must not exceed TAGLVL (%1)" +msgstr "nombre de sections ouvertes marquées ne doit pas excéder TAGLVL (%1)" + +msgid "missing marked section end" +msgstr "fin de section marquée manquante" + +msgid "marked section started here" +msgstr "début de section marquée débute ici" + +msgid "" +"entity end in character data, replaceable character data or ignored marked " +"section" +msgstr "" +"fin d'entité dans la donnée caractère, caractère remplaçable de donnée ou " +"section marquée ignorée" + +msgid "" +"normalized length of attribute value literal must not exceed LITLEN (%1); " +"length was %2" +msgstr "" +"longueur normalisée du litéral de la valeur d'attribut ne doit pas excéder " +"LITLEN (%1); longueur était %2" + +msgid "syntax of attribute value does not conform to declared value" +msgstr "" +"syntaxe de la valeur de l'attribut n'est pas conforme à la valeur déclarée" + +msgid "character %1 is not allowed in the value of attribute %2" +msgstr "caractère %1 n'est pas permis dans la valeur de l'attribut %2" + +msgid "value of attribute %1 must be a single token" +msgstr "valeur de l'attribut %1 doit être un jeton simple" + +msgid "value of attribute %2 invalid: %1 cannot start a number token" +msgstr "" +"valeur de l'attribut %2 invalide: %1 ne peut débuter un jeton numérique" + +msgid "value of attribute %2 invalid: %1 cannot start a name" +msgstr "valeur de l'attribut %2 invalide: %1 ne peut débuter un nom" + +msgid "non-impliable attribute %1 not specified but OMITTAG NO and SHORTTAG NO" +msgstr "" +"attribut %1 non implicable n'a pas été spécifié mais OMITTAG NO et SHORTTAG " +"NO" + +msgid "required attribute %1 not specified" +msgstr "attribut requis %1 non spécifié" + +msgid "first occurrence of CURRENT attribute %1 not specified" +msgstr "première occurence de l'attribut COURANT %1 non spécifié" + +msgid "%1 is not a notation name" +msgstr "%1 n'est pas un nom de notation" + +msgid "%1 is not a general entity name" +msgstr "%1 n'est pas un nom général d'entité" + +msgid "value of attribute %2 cannot be %1; must be one of %3" +msgstr "valeur de l'attribut %2 ne peut pas être %1; doit être un de %3" + +msgid "%1 is not a data or subdocument entity" +msgstr "%1 n'est pas une entité de données ou de sous-document" + +msgid "" +"content model is ambiguous: when no tokens have been matched, both the %2 " +"and %3 occurrences of %1 are possible" +msgstr "" +"contenu du modèle est ambiguë: lorsqu'aucun jeton ne concorde, les deux " +"occurences %2 et %3 de %1 sont possibles" + +msgid "" +"content model is ambiguous: when the current token is the %2 occurrence of %" +"1, both the %4 and %5 occurrences of %3 are possible" +msgstr "" +"contenu du modèle est ambiguë: lorsque le jeton courant est l'occurence %2 " +"de %1, les deux occurences %4 et %5 de %3 sont possibles" + +msgid "" +"content model is ambiguous: when the current token is the %2 occurrence of %" +"1 and the innermost containing AND group has been matched, both the %4 and %" +"5 occurrences of %3 are possible" +msgstr "" +"contenu du modèle est ambiguë: lorsque le jeton courant est l'occurence %2 " +"de %1 et que l'interne contenant le gourpe AND concordent, les deux " +"occurences %4 et %5 de l'occurence %3 sont possibles" + +msgid "" +"content model is ambiguous: when the current token is the %2 occurrence of %" +"1 and the innermost %3 containing AND groups have been matched, both the %5 " +"and %6 occurrences of %4 are possible" +msgstr "" +"contenu du modèle est ambiguë: lorsque le jeton courant est l'occurence %2 " +"de %1 et que l'interne %3 contenant le groupe AND concordent, les deux " +"occurences %5 et %6 de l'occurence %4 sont possibles" + +msgid "" +"invalid comment declaration: found character %1 outside comment but inside " +"comment declaration" +msgstr "" +"déclaration de commentaire invalide: caractère %1 repéré en dehors du " +"commentaire mais à l'intérieur de la déclaration de commentaire" + +msgid "non SGML character number %1" +msgstr "caractère non SGML numéro %1" + +msgid "data or replaceable character data in declaration subset" +msgstr "" +"donnée ou caractère remplaçable de donnée dans le sous-ensemble de la " +"déclaration" + +msgid "ID %1 already defined" +msgstr "ID %1 déjà défini" + +msgid "ID %1 first defined here" +msgstr "ID %1 défini pour la première fois ici" + +msgid "value of fixed attribute %1 not equal to default" +msgstr "valeur de l'attribut fixe %1 ne peut être égal au défaut" + +msgid "" +"character %1 is not significant in the reference concrete syntax and so " +"cannot occur in a comment in the SGML declaration" +msgstr "" +"caractère %1 n'est pas significatif dans la syntaxe de référence concrète et " +"ne peut donc apparaître dans la déclaration SGML" + +msgid "" +"minimum data of first minimum literal in SGML declaration must be \"ISO " +"8879:1986\" or \"ISO 8879:1986 (ENR)\" or \"ISO 8879:1986 (WWW)\" not %1" +msgstr "" +"donnée minimum du premier minimum litéral dans la déclaration SGML doit être " +"\"ISO 8879:1986\" ou \"ISO 8879:1986 (ENR)\" ou \"ISO 8879:1986 (WWW)\" et " +"non pas %1" + +msgid "parameter before LCNMSTRT must be NAMING not %1" +msgstr "paramètre avant LCNMSTRT doit être nominatif (NAMING) et non pas %1" + +msgid "" +"unexpected entity end in SGML declaration: only %1, S separators and " +"comments allowed" +msgstr "" +"fin d'entité non attendue dans la déclaration SGML: seul %1, les séparateurs " +"S et les commentaires son permis" + +msgid "%1 invalid: only %2 and parameter separators allowed" +msgstr "%1 invalide: seul %2 et les séparateurs de paramètres sont permis" + +msgid "magnitude of %1 too big" +msgstr "magnitude de %1 trop grande" + +msgid "" +"character %1 is not significant in the reference concrete syntax and so " +"cannot occur in a literal in the SGML declaration except as the replacement " +"of a character reference" +msgstr "" +"caractère %1 n'est pas significatif dans la syntaxe de référence concrète et " +"ne peut donc pas apparaître dans un litéral dans la déclaration SGML excepté " +"lors du remplacement d'un caractère de référence" + +msgid "%1 is not a valid syntax reference character number" +msgstr "%1 n'est pas une syntaxe de référence valide d'un nombre de caractère" + +msgid "a parameter entity reference cannot occur in an SGML declaration" +msgstr "" +"un paramètre d'entité de référence ne peut pas apparaître dans une " +"déclaration SGML" + +msgid "cannot continue because of previous errors" +msgstr "ne peut continuer en raison des erreurs précédentes" + +msgid "" +"SGML declaration cannot be parsed because the character set does not contain " +"characters having the following numbers in ISO 646: %1" +msgstr "" +"déclaration SGML ne peut être analyser en raison du jeu de caractères qui ne " +"contient pas de caractères ayant la valeur en ISO 646: %1" + +msgid "" +"the specified character set is invalid because it does not contain the " +"minimum data characters having the following numbers in ISO 646: %1" +msgstr "" +"le jeu de caractères spécifié est invalide parce qu'il ne contient pas le " +"caractère minimum de données ayant la valeur suivante en ISO 646: %1" + +msgid "character numbers declared more than once: %1" +msgstr "numéro de caractère déclaré plus d'une fois: %1" + +msgid "character numbers should have been declared UNUSED: %1" +msgstr "numéros de caractère doivent être déclarés UNUSED: %1" + +msgid "character numbers missing in base set: %1" +msgstr "numéros de caractères manquant dans la base du jeu: %1" + +msgid "" +"characters in the document character set with numbers exceeding %1 not " +"supported" +msgstr "" +"caractères dans le jeu de caractère avec un nombre excédant %1 n'est pas " +"supporté" + +msgid "invalid formal public identifier %1: missing //" +msgstr "identificateur formel public invalide %1: manquant //" + +msgid "invalid formal public identifier %1: no SPACE after public text class" +msgstr "" +"identificateur formel public invalide %1: pas de SPACE après la classe texte " +"publique" + +msgid "invalid formal public identifier %1: invalid public text class" +msgstr "" +"identificateur formel public invalide %1: classe texte publique invalide" + +msgid "" +"invalid formal public identifier %1: public text language must be a name " +"containing only upper case letters" +msgstr "" +"identificateur formel public invalide %1: langage texte publique doit être " +"un nom contenant seulement des lettres en majuscules" + +msgid "" +"invalid formal public identifer %1: public text display version not " +"permitted with this text class" +msgstr "" +"identificateur formel public invalide %1: texte publique affichage de la " +"version n,est pas permis avec cette classe de texte" + +msgid "invalid formal public identifier %1: extra field" +msgstr "identificateur formel public invalide %1: champ superflu" + +msgid "" +"public text class of public identifier in notation identifier must be " +"NOTATION" +msgstr "" +"classe texte publique d'un identificateur public en notation identificateur " +"doit être de type NOTATION" + +msgid "base character set %1 is unknown" +msgstr "jeu de caractères de base %1 est inconnu" + +msgid "" +"delimiter set is ambiguous: %1 and %2 can be recognized in the same mode" +msgstr "" +"jeu de délimiteur est ambiguë: %1 et %2 peuvent être reconnus dans le même " +"mode" + +msgid "" +"characters with the following numbers in the syntax reference character set " +"are significant in the concrete syntax but are not in the document character " +"set: %1" +msgstr "" +"caractères avec les numéros suivants dans la syntaxe du jeu de caractère de " +"référence sont significatifs dans la syntaxe concrète mais pas dans le jeu " +"de caractères du document: %1" + +msgid "" +"there is no unique character in the document character set corresponding to " +"character number %1 in the syntax reference character set" +msgstr "" +"il n'y a pas de caractère unique dans le jeu de caractères du document " +"correspondant au caractère numéro %1 dans la syntaxe du jeu de caractères de " +"référence" + +msgid "" +"there is no unique character in the internal character set corresponding to " +"character number %1 in the syntax reference character set" +msgstr "" +"il n'y a pas un caractère unique dans le jeu de caractère interne " +"correspondant au caractère numéro %1 dans la jeu de caractère de la syntaxe " +"de référence" + +msgid "" +"the character with number %1 in ISO 646 is significant but has no " +"representation in the syntax reference character set" +msgstr "" +"le caractère portant le numéro %1 en ISO 646 est significatif mais n'a pas " +"de représentation dans le jeur de caractère de la syntaxe de référence" + +msgid "capacity set %1 is unknown" +msgstr "jeu de capacité %1 est inconnu" + +msgid "capacity %1 already specified" +msgstr "capacité %1 déjà spécifié" + +msgid "value of capacity %1 exceeds value of TOTALCAP" +msgstr "valeur de capacité %1 excède la valeur de TOTALCAP" + +msgid "syntax %1 is unknown" +msgstr "syntaxe %1 est inconnue" + +msgid "UCNMSTRT must have the same number of characters as LCNMSTRT" +msgstr "UCNMSTRT doit avait le même nombre de caractères que LCNMSTRT" + +msgid "UCNMCHAR must have the same number of characters as LCNMCHAR" +msgstr "UCNMCHAR doit avoir le même nombre de caractère que LCNMCHAR" + +msgid "" +"number of open subdocuments exceeds quantity specified for SUBDOC parameter " +"in SGML declaration (%1)" +msgstr "" +"nombre de sous-documents excède la quantité spécifié pour le paramètre " +"SUBDOC dans la déclaration SGML (%1)" + +msgid "entity %1 declared SUBDOC, but SUBDOC NO specified in SGML declaration" +msgstr "" +"entité %1 déclarée SUBDOC, mais SUBDOC NO spécifié dans la déclaration SGML" + +msgid "" +"a parameter entity referenced in a parameter separator must end in the same " +"declaration" +msgstr "" +"un paramètre entité référencé dans un séparateur de paramètre doit se " +"terminer dans la même déclaration" + +msgid "reference to non-existent ID %1" +msgstr "référence à un ID %1 inexistant" + +msgid "generic identifier %1 used in DTD but not defined" +msgstr "identificateur générique %1 utilisé dans la DTD mais non défini" + +msgid "%1 not finished but document ended" +msgstr "%1 non terminé mais fin du document atteinte" + +msgid "cannot continue with subdocument because of previous errors" +msgstr "" +"ne peut continuer avec un sous-document en raison des erreurs précédentes" + +msgid "no document type declaration; will parse without validation" +msgstr "pas de déclaration du type de document; analysera sans validation" + +msgid "" +"no internal or external document type declaration subset; will parse without " +"validation" +msgstr "" +"pas de sous-ensemble de déclaration de type de document interne ou extern; " +"analysera sans validation" + +msgid "this is not an SGML document" +msgstr "ceci n'est pas un document SGML" + +msgid "" +"length of start-tag before interpretation of literals must not exceed TAGLEN " +"(%1)" +msgstr "" +"longeur de l'étiquette-début avant interprétation des litéraux ne doit pas " +"excéder TAGLEN (%1)" + +msgid "" +"a parameter entity referenced in a token separator must end in the same group" +msgstr "" +"un paramètre d'entité référencé dans un séparateur de jeton doit se terminer " +"dans le même groupe" + +msgid "" +"the following character numbers are shunned characters that are not " +"significant and so should have been declared UNUSED: %1" +msgstr "" +"les numéros de caractères suivants sont des caractères 'shunned' qui ne sont " +"pas significatifs et devraient avoir été déclaré UNUSED: %1" + +msgid "" +"there is no unique character in the specified document character set " +"corresponding to character number %1 in ISO 646" +msgstr "" +"il n'y a pas de caractère unique dans le jeu de caractère spécifié du " +"document correspondant au numéro de caractère %1 en ISO 646" + +msgid "length of attribute value must not exceed LITLEN less NORMSEP (-%1)" +msgstr "" +"longueur de la valeur de l'attribut ne doit pas excéder LITLEN moins NORMSEP " +"(-1%)" + +msgid "" +"length of tokenized attribute value must not exceed LITLEN less NORMSEP (-%1)" +msgstr "" +"longueur de la valeur l'attribut devenu jeton ne doit pas excéder LITLEN " +"moins NORMSEP (-1%)" + +msgid "" +"concrete syntax scope is INSTANCE but value of %1 quantity is less than " +"value in reference quantity set" +msgstr "" +"étendue de la syntaxe concrète est INSTANCE mais la valeur de la quantité %1 " +"est plus petite que la valeur dans le jeu de quantité de référence" + +msgid "" +"public text class of formal public identifier of base character set must be " +"CHARSET" +msgstr "" +"classe texte publique de l'identificateur public formel du jeu de caractères " +"de base doit être CHARTSET" + +msgid "" +"public text class of formal public identifier of capacity set must be " +"CAPACITY" +msgstr "" +"classe texte publique de l'identificateur public formel de capacité doit " +"être CAPACITY" + +msgid "" +"public text class of formal public identifier of concrete syntax must be " +"SYNTAX" +msgstr "" +"classe texte publique de l'identificateur public formel de la syntaxe " +"concrète doit être SYNTAX" + +msgid "when there is an MSOCHAR there must also be an MSICHAR" +msgstr "lorsqu'il y a un MSOCHAR il y doit y avoir aussi un MSICHAR" + +msgid "" +"character number %1 in the syntax reference character set was specified as a " +"character to be switched but is not a markup character" +msgstr "" +"numéro de caractère %1 dans le jeu de caractère de la syntaxe de référence a " +"été spécifié comme un caractère pouvant être interchangé mais n'est pas un " +"caractère marquer" + +msgid "" +"character number %1 was specified as a character to be switched but is not " +"in the syntax reference character set" +msgstr "" +"numéro de caractère %1 a été spécifié comme un caractère pouvant être " +"interchangé mais n'est pas dans le jeu de caractère de la syntaxe de " +"référence" + +msgid "" +"character numbers %1 in the document character set have been assigned the " +"same meaning, but this is the meaning of a significant character" +msgstr "" +"numéro de caractère %1 dans le jeu de caractère du document a le même sens " +"qu'il lui a été affecté mais c'est le sens d'un caractère significatif" + +msgid "character number %1 assigned to more than one function" +msgstr "numéro de caractère %1 affecté à plus d'une fonction" + +msgid "%1 is already a function name" +msgstr "%1 est déjà un nom de fonction" + +msgid "" +"characters with the following numbers in ISO 646 are significant in the " +"concrete syntax but are not in the document character set: %1" +msgstr "" +"caractère ayant les numéros suivants en ISO 646 sont significatifs dans la " +"syntaxe concrète mais ne sont pas dans le jeu de caractère du document: %1 " + +msgid "general delimiter %1 consists solely of function characters" +msgstr "" +"délimiteur général %1 consiste essentiellement de caractères de fonction" + +msgid "letters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "lettres assignés à LCNMCHAR, UCNMCHAR, LCNMSTRT ou UCNMSTRT: %1" + +msgid "digits assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "chiffres assignés à LCNMCHAR, UCNMCHAR, LCNMSTRT ou UCNMSTRT: %1" + +msgid "" +"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or " +"UCNMSTRT because it is RE" +msgstr "" +"caractère numéro %1 ne peut être assigné à LCNMCHAR, UCNMCHAR, LCNMSTRT ou " +"UCNMSTRT parce qu'il est RE" + +msgid "" +"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or " +"UCNMSTRT because it is RS" +msgstr "" +"caractère numéro %1 ne peut être assigné à LCNMCHAR, UCNMCHAR, LCNMSTRT ou " +"UCNMSTRT parce qu'il est RS" + +msgid "" +"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or " +"UCNMSTRT because it is SPACE" +msgstr "" +"caractère numéro %1 ne peut être assigné à LCNMCHAR, UCNMCHAR, LCNMSTRT ou " +"UCNMSTRT parce qu'il est SPACE" + +msgid "" +"separator characters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "" +"caractères séparateur assigné à LCNMCHAR, UCNMCHAR, LCNMSTRT ou UCNMSTRT: %1" + +msgid "" +"character number %1 cannot be switched because it is a Digit, LC Letter or " +"UC Letter" +msgstr "" +"caractère numéro %1 ne peut pas être interchangé parce qu'il est Digit, LC " +"Letter ou UC Letter" + +msgid "pointless for number of characters to be 0" +msgstr "sans pointeur pour le nombre de caractères à êtrs 0" + +msgid "" +"%1 cannot be the replacement for a reference reserved name because it is " +"another reference reserved name" +msgstr "" +"%1 ne peut pas être le remplacement pour un nom réservé de référence parce " +"qu'il est un autre nom réservé de référence" + +msgid "" +"%1 cannot be the replacement for a reference reserved name because it is the " +"replacement of another reference reserved name" +msgstr "" +"%1 ne peut pas être le remplacement pour un nom réservé de référence parce " +"qu'il est le remplacement d'un autre nom réservé de référence" + +msgid "replacement for reserved name %1 already specified" +msgstr "remplacement pour le nom réservé %1 déjà spécifié" + +msgid "%1 is not a valid name in the declared concrete syntax" +msgstr "%1 n'est pas un nom valide dans la syntaxe concrète déclarée" + +msgid "" +"%1 is not a valid short reference delimiter because it has more than one B " +"sequence" +msgstr "" +"%1 n'est pas un délimiteur de référence court valide parce qu'il a plus " +"d'une séquence B" + +msgid "" +"%1 is not a valid short reference delimiter because it is adjacent to a " +"character that can occur in a blank sequence" +msgstr "" +"%1 n'est pas un délimiteur de référence court valide parce qu'il est " +"adjacent au caractère qui peut appraître dans une séquence de blancs" + +msgid "length of delimiter %1 exceeds NAMELEN (%2)" +msgstr "longueur du délimiteur %1 excède NAMELEN (%2)" + +msgid "length of reserved name %1 exceeds NAMELEN (%2)" +msgstr "longueur du nom réservé %1 excède NAMELEN (%2)" + +msgid "" +"character numbers assigned to both LCNMCHAR or UCNMCHAR and LCNMSTRT or " +"UCNMSTRT: %1" +msgstr "" +"numéros de caractère assigné à la fois LCNMCHAR ou UCNMCHAR et LCNMSTRT ou " +"UCNMSTRT: %1" + +msgid "" +"when the concrete syntax scope is INSTANCE the syntax reference character " +"set of the declared syntax must be the same as that of the reference " +"concrete syntax" +msgstr "" +"lorsque l'étendue de la syntaxe concrète est INSTANCE la syntaxe du jeu de " +"caractères de référence de la syntaxe déclarée doit être la même que celle " +"de la syntaxe concrète de référence" + +msgid "" +"end-tag minimization should be O for element with declared content of EMPTY" +msgstr "" +"minimisation de fin d'étiquette doit être 0 pour l'élément avec un contenu " +"déclaré EMPTY" + +msgid "" +"end-tag minimization should be O for element %1 because it has CONREF " +"attribute" +msgstr "" +"minimisation de fin d'étiquette doit être 0 pour l'élément %1 parce qu'il a " +"un attribut CONREF" + +msgid "element %1 has a declared content of EMPTY and a CONREF attribute" +msgstr "élément %1 a un contenu déclaré EMPTY et un attribut CONREF" + +msgid "element %1 has a declared content of EMPTY and a NOTATION attribute" +msgstr "élément %1 a un contenu déclaré EMPTY et un attribut NOTATION" + +msgid "" +"declared value of data attribute cannot be ENTITY, ENTITIES, ID, IDREF, " +"IDREFS or NOTATION" +msgstr "" +"valeur déclarée de l'attribut de données ne peut pas etre ENTITY, ENTITIES, " +"ID, IDREF, IDREFS ou NOTATION" + +msgid "default value of data attribute cannot be CONREF or CURRENT" +msgstr "" +"valeur par défaut de l'attribut de données ne peut pas être CONREF ou CURRENT" + +msgid "number of attribute names and name tokens (%1) exceeds ATTCNT (%2)" +msgstr "nombre de noms d'attribut et les noms de jeton (%1) excède ATTCNT (%2)" + +msgid "" +"if the declared value is ID the default value must be IMPLIED or REQUIRED" +msgstr "" +"si la valeur déclarée est ID la valeur par défaut doit être IMPLIED ou " +"REQUIRED" + +msgid "" +"the attribute definition list already declared attribute %1 as the ID " +"attribute" +msgstr "" +"la liste de définition d'attribut est déja déclaré attribut %1 tel que " +"l'attribut ID" + +msgid "" +"the attribute definition list already declared attribute %1 as the NOTATION " +"attribute" +msgstr "" +"la liste de définition d'attribut est déja déclaré attribut %1 tel que " +"l'attribut NOTATION" + +msgid "token %1 occurs more than once in attribute definition list" +msgstr "" +"jeton %1 apparaît plus d'une fois dans la liste de définition d'attribut" + +msgid "no attributes defined for notation %1" +msgstr "aucun attribut défini pour la notation %1" + +msgid "notation %1 for entity %2 undefined" +msgstr "notation %1 pour l'entité %2 indéfini" + +msgid "entity %1 undefined in short reference map %2" +msgstr "entité %1 indéfini dans la map courte de référence %2" + +msgid "notation %1 is undefined but had attribute definition" +msgstr "notation %1 est indéfini mais a une définition d'attribut" + +msgid "" +"length of interpreted parameter literal in bracketed text plus the length of " +"the bracketing delimiters must not exceed LITLEN (%1)" +msgstr "" +"longueur du litéral paramètre interprété dans le texte entre crochets plus " +"la longueur des délimiteurs crochets ne doit pas excéder LITLEN (%1)" + +msgid "" +"length of rank stem plus length of rank suffix must not exceed NAMELEN (%1)" +msgstr "" +"longueur de rang du tronc plus la longueur du suffixe de rang ne doit pas " +"excéder NAMELEN (%1)" + +msgid "document instance must start with document element" +msgstr "instance du document doit débuter avec l'élément document" + +msgid "content model nesting level exceeds GRPLVL (%1)" +msgstr "niveau d'imbrication du modèle contenu excède GRPLVL (%1) " + +msgid "grand total of content tokens exceeds GRPGTCNT (%1)" +msgstr "grand total du contenu des jetons excède GRPGTCNT (%1)" + +msgid "unclosed start-tag requires SHORTTAG YES" +msgstr "étiquette-début non fermée requiert SHORTTAG YES" + +msgid "NET-enabling start-tag requires SHORTTAG YES" +msgstr "étiquette-début autorisé par réseau requiert SHORTTAG YES" + +msgid "unclosed end-tag requires SHORTTAG YES" +msgstr "étiquette-fin non fermée requiert SHORTTAG YES" + +msgid "DTDs other than base allowed only if CONCUR YES or EXPLICIT YES" +msgstr "" +"autre DTD que celle de base requiert seulement CONCUR YES ou EXPLICIT YES" + +msgid "end of entity other than document entity after document element" +msgstr "fin de l'entité autre que l'entité document après l'élément document" + +msgid "%1 declaration illegal after document element" +msgstr "%1 déclaration illégale après l'élément document" + +msgid "character reference illegal after document element" +msgstr "caractère de référence illégal après l'élément document" + +msgid "entity reference illegal after document element" +msgstr "entité de référence illégale après l'élément document" + +msgid "marked section illegal after document element" +msgstr "section marquée illégale après l'élément document" + +msgid "" +"the %1 occurrence of %2 in the content model for %3 cannot be excluded at " +"this point because it is contextually required" +msgstr "" +"l'occurence %1 de %2 dans le contenu du modèle pour %3 ne peut pas être " +"exclue à ce point parce qu'il est contextuellement requis" + +msgid "" +"the %1 occurrence of %2 in the content model for %3 cannot be excluded " +"because it is neither inherently optional nor a member of an OR group" +msgstr "" +"l'occurence %1 de %2 dans le contenu du modèle pour %3 ne peut pas être " +"exclue à ce point parce qu'il n'est pas optionnelle de manière inhérente ni " +"membre d'un groupe OU ni un groupe" + +msgid "" +"an attribute value specification must be an attribute value literal unless " +"SHORTTAG YES is specified" +msgstr "" +"la spécification de l'attribut valeur doit être un litéral à moins que " +"SHORTTAG YES ne soit spécifié" + +msgid "" +"value cannot be specified both for notation attribute and content reference " +"attribute" +msgstr "" +"valeur ne peut pas être spécifiée à la fois pour l'attribut notaiton et " +"l'attribut contenu de référence" + +msgid "notation %1 already defined" +msgstr "notation %1 déjà définie" + +msgid "short reference map %1 already defined" +msgstr "map de référence courte %1 déjà définie" + +msgid "first defined here" +msgstr "défini d'abord ici" + +msgid "general delimiter role %1 already defined" +msgstr "rôle du délimiteur général %1 déjà défini" + +msgid "number of ID references in start-tag must not exceed GRPCNT (%1)" +msgstr "" +"nobre de références ID dans l'étiquett-début ne doit pas excéder GRPCNT (%1)" + +msgid "" +"number of entity names in attribute specification list must not exceed " +"GRPCNT (%1)" +msgstr "" +"nombre de noms d'entité dans la liste de spécification d'attribut ne doit " +"pas excéder GRPCNT (%1)" + +msgid "" +"normalized length of attribute specification list must not exceed ATTSPLEN (%" +"1); length was %2" +msgstr "" +"longueur normalisé de la liste de spécification d'attribut ne doit pas " +"excéder ATTSPLEN (%1); longeur était %2" + +msgid "short reference delimiter %1 already specified" +msgstr "délimiteur de référence court %1 déjà spécifié" + +msgid "" +"single character short references were already specified for character " +"numbers: %1" +msgstr "" +"caractère simple de références courtes étaient déjà spécifiés pour le " +"caractère numéros: %1" + +msgid "default entity used in entity attribute %1" +msgstr "entité par défaut utilise dans l'attribut entité %1" + +msgid "reference to entity %1 uses default entity" +msgstr "référence à l'entité %1 utilise l'entité par défaut" + +msgid "entity %1 in short reference map %2 uses default entity" +msgstr "" +"entité %1 dans la map de référence courte %2 utilise l'entité par défaut" + +msgid "no DTD %1 declared" +msgstr "pas de DTD %1 déclarée" + +msgid "LPD %1 has neither internal nor external subset" +msgstr "LPD %1 n'a ni de sous-ensemble interne ni externe" + +msgid "element types have different link attribute definitions" +msgstr "types d'élément ont différentes définitions de liens d'attribut" + +msgid "link set %1 already defined" +msgstr "ensemble de liens %1 déjà défini" + +msgid "empty result attribute specification" +msgstr "résultat vide de la spécification d'attribut" + +msgid "no source element type %1" +msgstr "pas d'élément source pour le type %1" + +msgid "no result element type %1" +msgstr "pas de résultat d'élément pour le type %1" + +msgid "end of document in LPD subset" +msgstr "fin du document dans le sous-ensemble LPD" + +msgid "%1 declaration not allowed in LPD subset" +msgstr "%1 déclaration non permise dans le sous-ensemble LPD" + +msgid "ID link set declaration not allowed in simple link declaration subset" +msgstr "" +"déclaration ID du lien du sous-ensemble non permise dans la déclaration du " +"lien simple du sous-ensemble" + +msgid "link set declaration not allowed in simple link declaration subset" +msgstr "" +"déclaration du lien du sous-ensemble non permis dans la déclaration du lien " +"simple du sous-ensemble" + +msgid "" +"attributes can only be defined for base document element (not %1) in simple " +"link declaration subset" +msgstr "" +"attributs peut seulement être définit pour l'élément document de base (pas %" +"1) la déclaration du lien simple du sous-ensemble" + +msgid "a short reference mapping declaration is allowed only in the base DTD" +msgstr "" +"déclaration de la map courte de référence est permise seulement dans la DTD " +"de base" + +msgid "a short reference use declaration is allowed only in the base DTD" +msgstr "" +"référence courte utilisant une déclaration est permise seulement dans la DTD " +"de base" + +msgid "default value of link attribute cannot be CURRENT or CONREF" +msgstr "" +"valeur par défaut de l'attribut lien ne peut pas être CURRENT ou CONREF" + +msgid "" +"declared value of link attribute cannot be ID, IDREF, IDREFS or NOTATION" +msgstr "" +"valeur déclarée de l'attribut lien ne peut pas être ID, IDREF, IDREFS ou " +"NOTATION" + +msgid "only fixed attributes can be defined in simple LPD" +msgstr "seuls les attributs fixes peuvent être définis dans un LPD simple" + +msgid "only one ID link set declaration allowed in an LPD subset" +msgstr "" +"seuls un ID de lien de sous-ensemble est permis dans un sous-ensemble LPD" + +msgid "no initial link set defined for LPD %1" +msgstr "pas de lien initial de sous-ensemble définit pour LPD %1" + +msgid "notation %1 not defined in source DTD" +msgstr "notation %1 non défini dans la DTD source" + +msgid "result document type in simple link specification must be implied" +msgstr "" +"type de document résultat dans la spécification de lien simple doit être " +"implicite" + +msgid "simple link requires SIMPLE YES" +msgstr "lien simple requiert SIMPLE YES" + +msgid "implicit link requires IMPLICIT YES" +msgstr "lien implicite requiert IMPLICIT YES" + +msgid "explicit link requires EXPLICIT YES" +msgstr "lien explicit requiert EXPLICIT YES" + +msgid "LPD not allowed before first DTD" +msgstr "LPD non permis avant la première DTD" + +msgid "DTD not allowed after an LPD" +msgstr "DTD non permise après un LPD" + +msgid "definition of general entity %1 is unstable" +msgstr "définition de l'entité générale %1 est instable" + +msgid "definition of parameter entity %1 is unstable" +msgstr "définition du paramètre d'entité %1 est instable" + +msgid "" +"multiple link rules for ID %1 but not all have link attribute specifications" +msgstr "" +"règles de liens multiples pour l'ID %1 mais tous n'ont pas de spécifications " +"d'attribut de lien" + +msgid "" +"multiple link rules for element type %1 but not all have link attribute " +"specifications" +msgstr "" +"règles de liens multiples pour l'élément de type %1 mais tous n'ont pas de " +"spécifications d'attribut de lien" + +msgid "link type %1 does not have a link set %2" +msgstr "lien de type %1 n'a pas d'ensemble de lien %2" + +msgid "link set use declaration for simple link process" +msgstr "" +"ensemble de lien utilise une déclaration pour un traitement de lien simple" + +msgid "no link type %1" +msgstr "lien pas de type %1" + +msgid "both document type and link type %1" +msgstr "les deux ensembles type de document et type de lien %1" + +msgid "link type %1 already defined" +msgstr "type de lien %1 déjà définie" + +msgid "document type %1 already defined" +msgstr "type de document %1 déjà défini" + +msgid "link set %1 used in LPD but not defined" +msgstr "ensemble de lien %1 utilisé dans LPD mais pas défini" + +msgid "#IMPLIED already linked to result element type %1" +msgstr "#IMPLIED déjà lié à l'élément résultant de type %1" + +msgid "" +"number of active simple link processes exceeds quantity specified for SIMPLE " +"parameter in SGML declaration (%1)" +msgstr "" +"nombre de traitements de lien acif simple excède la quantité spécifié pour " +"un paramètre SIMPLE dans la déclaration SGML (%1)" + +msgid "only one chain of explicit link processes can be active" +msgstr "seulement une chaîne de traitements explicite de lien peut être actif" + +msgid "" +"source document type name for link type %1 must be base document type since " +"EXPLICIT YES 1" +msgstr "" +"nom du type de document source pour le lien de type %1 doit être un document " +"de type de base avec EXPLICIT YES 1" + +msgid "only one implicit link process can be active" +msgstr "seulement un traitement implicit de lien peut être actif" + +msgid "" +"sorry, link type %1 not activated: only one implicit or explicit link " +"process can be active (with base document type as source document type)" +msgstr "" +"désolé, lien de type %1 non activé: un seul traitement implicit ou explicit " +"de lien peut être activé (avec un document source de type de base)" + +msgid "name missing after name group in entity reference" +msgstr "nom manquant après le nom de groupe dans l'entité de référence" + +msgid "" +"source document type name for link type %1 must be base document type since " +"EXPLICIT NO" +msgstr "" +"nom du type du document source pour le lien de type %1 doit être un document " +"de type de base avec EXPLICIT NO" + +msgid "link process must be activated before base DTD" +msgstr "traitement de lien doit être activé avant la DTD de base" + +msgid "unexpected entity end while starting second pass" +msgstr "fin d'entité non attendue lors du démarrage d'une deuxième passe" + +msgid "" +"type %1 of element with ID %2 not associated element type for applicable " +"link rule in ID link set" +msgstr "" +"type %1 de l'élément avec ID %2 avec un type d'élément non associé à la " +"règle de lien applicable dans l'ensemble des ID de lien" + +msgid "DATATAG feature not implemented" +msgstr "élément DATATAG non implanté" + +msgid "" +"generic identifier specification missing after document type specification " +"in start-tag" +msgstr "" +"spécification d'identificateur générique manquante après la spécification du " +"type de document dans l'étiquette-début" + +msgid "" +"generic identifier specification missing after document type specification " +"in end-tag" +msgstr "" +"spécification d'identificateur générique manquante après la spécification du " +"type de document dans l'étiquette-fin" + +msgid "a NET-enabling start-tag cannot include a document type specification" +msgstr "" +"étiquette-début autorisé par réseau ne peut inclure une spécification de " +"type de document" + +msgid "DTD did not contain element declaration for document type name" +msgstr "" +"DTD ne contient pas d'élément de déclation pour le nom du type de document" + +msgid "invalid default SGML declaration" +msgstr "déclaration SGML par défaut invalide" + +msgid "" +"reference to entity %1 for which no system identifier could be generated" +msgstr "" +"référence à l'entité %1 pour laquelle aucun identificateur système ne peut " +"être généré" + +msgid "entity was defined here" +msgstr "entité était définie ici" + +msgid "content model is mixed but does not allow #PCDATA everywhere" +msgstr "contenu du modèle est mélangé mais ne permet pas #PCDATA partout" + +msgid "start or end of range must specify a single character" +msgstr "début ou fin d'étendue doit spécifier un caractère simple" + +msgid "" +"number of first character in range must not exceed number of second " +"character in range" +msgstr "" +"numéro du premier caractère dans l'étendue ne doit pas excéder le numéro du " +"second caractère dans l'étendue" + +msgid "delimiter cannot be an empty string" +msgstr "délimiteur ne peut pas ¸etre une chaîne vide" + +msgid "too many characters assigned same meaning with minimum literal" +msgstr "trop de caractères assignés au même sens avec un litéral minimum" + +msgid "earlier reference to entity %1 used default entity" +msgstr "référence précédente à l'entité %1 utilise l'entité par défaut" + +msgid "empty start-tag" +msgstr "étiquette-départ vide" + +msgid "empty end-tag" +msgstr "étiquette-fin vide" + +msgid "unused short reference map %1" +msgstr "map de référence courte %1 non utilisée" + +msgid "unused parameter entity %1" +msgstr "paramètre d'entité %1 non utilisé" + +msgid "cannot generate system identifier for public text %1" +msgstr "ne peut générer un identificateur système pour le texte publique %1" + +msgid "cannot generate system identifier for general entity %1" +msgstr "ne peut générer un identificateur système pour l'entité générale %1" + +msgid "cannot generate system identifier for parameter entity %1" +msgstr "" +"ne peut générer un identificateur système pour le paramètre d''entité %1" + +msgid "cannot generate system identifier for document type %1" +msgstr "ne peut générer un identificateur système pour le document de type %1" + +msgid "cannot generate system identifier for link type %1" +msgstr "ne peut générer un identificateur système pour le lien de type %1" + +msgid "cannot generate system identifier for notation %1" +msgstr "ne peut générer un identificateur système pour le notation %1" + +msgid "element type %1 both included and excluded" +msgstr "élément de type %1 à la fois inclus et exclus" + +msgid "no document type declaration; implying %1" +msgstr "pas de déclaration du type de document; %1 est supposé" + +msgid "minimum data of AFDR declaration must be \"ISO/IEC 10744:1997\" not %1" +msgstr "" +"données minimum de la déclaration AFDR doit être \"ISO/IEC 10744:1997\" non " +"pas %1" + +msgid "AFDR declaration required before use of AFDR extensions" +msgstr "déclaration AFDR requise avant l'utilisation des extensions AFDR" + +msgid "" +"ENR extensions were used but minimum literal was not \"ISO 8879:1986 (ENR)\" " +"or \"ISO 8879:1986 (WWW)\"" +msgstr "" +"extensions ENR ont été utilisées mais le litéral minimum n'était pas \"ISO " +"8879:1986 (ENR)\" ou \"ISO 8879:1986 (WWW)\"" + +msgid "illegal numeric character reference to non-SGML character %1 in literal" +msgstr "" +"référence numérique de caractère illégale vers un caractère non SGML %1 dans " +"le litéral" + +msgid "" +"cannot convert character reference to number %1 because description %2 " +"unrecognized" +msgstr "" +"ne peut convertir la référence de caractère au numéro %1 parce que la " +"description %2 n'est pas reconnue" + +msgid "" +"cannot convert character reference to number %1 because character %2 from " +"baseset %3 unknown" +msgstr "" +"ne peut convertir la référence de caractère au numéro %1 parce que le " +"caractère %2 du jeu de base %3 est inconnu" + +msgid "" +"character reference to number %1 cannot be converted because of problem with " +"internal character set" +msgstr "" +"référence de caractère du numéro %1 ne peut être converti en raison d'un " +"problème avec le jeu interne de caractères" + +msgid "" +"cannot convert character reference to number %1 because character not in " +"internal character set" +msgstr "" +"ne peut convertir la référence de caractère au numéro %1 parce que le " +"caractère n'est pas dans le jeu de caractère interne" + +msgid "" +"Web SGML adaptations were used but minimum literal was not \"ISO 8879:1986 " +"(WWW)\"" +msgstr "" +"adaptations web SGML ont été utilisés mais le litéral minimum n'est pas " +"\"ISO 8879:1986 (WWW)\"" + +msgid "" +"token %1 can be value for multiple attributes so attribute name required" +msgstr "" +"jeton %1 peut être une valeur pour de multiples attributs aussi le nom " +"d'attribut est requis" + +msgid "length of hex number must not exceed NAMELEN (%1)" +msgstr "longueur du nombre hex ne doit pas excéder NAMELEN (%1)" + +msgid "CDATA declared content" +msgstr "CDATA déclaré contenu" + +msgid "RCDATA declared content" +msgstr "RCDATA déclaré contenu" + +msgid "inclusion" +msgstr "inclusion" + +msgid "exclusion" +msgstr "exclusion" + +msgid "NUMBER or NUMBERS declared value" +msgstr "NUMBER ou NUMBERS déclaré valeur" + +msgid "NAME or NAMES declared value" +msgstr "NAME ou NAMES déclaré valeur" + +msgid "NUTOKEN or NUTOKENS declared value" +msgstr "NUTOKEN ou NUTOKENS déclaré valeur" + +msgid "CONREF attribute" +msgstr "attribut CONREF" + +msgid "CURRENT attribute" +msgstr "attribut CURRENT" + +msgid "TEMP marked section" +msgstr "TEMP marqué section" + +msgid "included marked section in the instance" +msgstr "section marquée incluse dans l'instance" + +msgid "ignored marked section in the instance" +msgstr "section marquée ignorée dans l'instance" + +msgid "RCDATA marked section" +msgstr "section marquée RCDATA" + +msgid "processing instruction entity" +msgstr "entité d'instruction de traitement" + +msgid "bracketed text entity" +msgstr "entité texte entre crochets" + +msgid "internal CDATA entity" +msgstr "entité CDATA interne" + +msgid "internal SDATA entity" +msgstr "entité SDATA interne" + +msgid "external CDATA entity" +msgstr "entité CDATA externe" + +msgid "external SDATA entity" +msgstr "entité SDATA externe" + +msgid "attribute definition list declaration for notation" +msgstr "déclaration de liste de définitions d'attributs pour la notation" + +msgid "rank stem" +msgstr "rang du tronc" + +msgid "no system id specified" +msgstr "aucun id système spécifé" + +msgid "comment in parameter separator" +msgstr "commentaire dans le paramètre du séparateur " + +msgid "named character reference" +msgstr "référence nommée de caractère" + +msgid "AND group" +msgstr "groupe AND" + +msgid "attribute value not a literal" +msgstr "valeur d'attribut pas un litéral" + +msgid "attribute name missing" +msgstr "nom d'attribut manquant" + +msgid "element declaration for group of element types" +msgstr "déclaration d'élément pour un groupe de types d'éléments" + +msgid "attribute definition list declaration for group of element types" +msgstr "" +"déclation de listes de définitions d'attributs pour un groupe de types " +"d'éléments" + +msgid "empty comment declaration" +msgstr "déclaration d'un commentaire vide" + +msgid "S separator in comment declaration" +msgstr "séparateur S dans la déclaration du commentaire" + +msgid "multiple comments in comment declaration" +msgstr "commentaires multiples dans la déclaration du commentaire" + +msgid "no status keyword" +msgstr "pas de mot clé d'état" + +msgid "multiple status keywords" +msgstr "mot clé d'état multiples" + +msgid "parameter entity reference in document instance" +msgstr "paramètre de référence d'entité dans l'instance du document" + +msgid "element type minimization parameter" +msgstr "paramètre de minimisation du type d'élément" + +msgid "reference not terminated by REFC delimiter" +msgstr "référence non terminée par un délimiteur REFC" + +msgid "#PCDATA not first in model group" +msgstr "#PCDATA n'est pas le premier dans le groupe modèle" + +msgid "#PCDATA in SEQ group" +msgstr "#PCDATA dans le grope SEQ" + +msgid "#PCDATA in nested model group" +msgstr "#PCDATA dans le groupe modèle imbriqué" + +msgid "#PCDATA in model group that does not have REP occurrence indicator" +msgstr "#PCDATA dans le groupe modèle qui n'a pas d'indicateur d'occurence REP" + +msgid "name group or name token group used connector other than OR" +msgstr "" +"nom de groupe ou nom de groupe de jetons utilise un connecteur autre que OR" + +msgid "processing instruction does not start with name" +msgstr "instruction de traitement ne débute pas avec un nom" + +msgid "S separator in status keyword specification in document instance" +msgstr "" +"séparateur S dans la spécification du mot clé d'état dans l'instance du " +"document" + +msgid "reference to external data entity" +msgstr "référence à une entité externe de données" + +msgid "reference to external entity in attribute value" +msgstr "référence à une entité externe dans la valeur de l'attribut" + +msgid "character %1 is the first character of a delimiter but occurred as data" +msgstr "" +"caractère %1 est le premier caractère d'un délimiteur mais est apparu comme " +"données" + +msgid "SGML declaration was not implied" +msgstr "déclaration SGML n'était pas implicite" + +msgid "marked section in internal DTD subset" +msgstr "section marqués dans le sous-ensemble interne de la DTD" + +msgid "NET-enabling start-tag not immediately followed by null end-tag" +msgstr "" +"étiquette-début autorisé par réseau n,est pas immédiatement suivi d'une " +"étiquette-fin nulle" + +msgid "entity end in different element from entity reference" +msgstr "" +"fin d'entité dans un élément différent à partir de la référence d'entité" + +msgid "NETENABL IMMEDNET requires EMPTYNRM YES" +msgstr "NETENABL IMMEDNET requiert EMPTYNRM YES" + +msgid "reference to non-SGML character" +msgstr "référence à un caractère non SGML" + +msgid "declaration of default entity" +msgstr "déclaration à l'entité par défaut" + +msgid "reference to parameter entity in parameter separator in internal subset" +msgstr "" +"référence à un paramètre d'entité dans le paramètre de séparateur dans le " +"sous-ensemble interne" + +msgid "reference to parameter entity in token separator in internal subset" +msgstr "" +"référence à un paramètre d'entité dans un séparateur de jeton dans le sous-" +"ensemble interne" + +msgid "reference to parameter entity in parameter literal in internal subset" +msgstr "" +"référence à un paramètre d'entité dans le paramètre du litéral dans le sous-" +"ensemble interne" + +msgid "cannot generate system identifier for SGML declaration reference" +msgstr "" +"ne peut générer un identificateur système pour la déclaration SGML de " +"référence" + +msgid "" +"public text class of formal public identifier of SGML declaration must be SD" +msgstr "" +"classe texte publique de l'identificateur public formel de la déclaration " +"SGML doit être SD" + +msgid "" +"SGML declaration reference was used but minimum literal was not \"ISO " +"8879:1986 (WWW)\"" +msgstr "" +"déclaration de référence SGML a été utilisés mais le litéral minimum n'était " +"pas \"ISO 8879:1986 (WWW)\"" + +msgid "member of model group containing #PCDATA has occurrence indicator" +msgstr "membre du groupe modèle contenant #PCDATA a un idicateur d'occurence" + +msgid "member of model group containing #PCDATA is a model group" +msgstr "membre du groupe modèle contenant #PCDATA est un groupe modèle" + +msgid "reference to non-predefined entity" +msgstr "référence à une entité non prédéfinie" + +msgid "reference to external entity" +msgstr "référence à une entité extern" + +msgid "declaration of default entity conflicts with IMPLYDEF ENTITY YES" +msgstr "" +"déclaration de l'entité par défaut est en conflit avec IMPLYDEF ENTITY YES" + +msgid "parsing with respect to more than one active doctype not supported" +msgstr "analyse avec respect de plus d'un doctype actif n'est pas supporté" + +msgid "cannot have active doctypes and link types at the same time" +msgstr "ne peut avoir des doctypes actifs et des types de liens à la fois" + +msgid "" +"number of concurrent document instances exceeds quantity specified for " +"CONCUR parameter in SGML declaration (%1)" +msgstr "" +"nombre d'instances de document concurrent excède la quantité spécifié pour " +"le paramètre CONCUR dans la déclaration SGML (%1)" + +msgid "datatag group can only be specified in base document type" +msgstr "" +"groupe datatag peut seulement être spécifié dans le type de document de base" + +msgid "element not in the base document type can't have an empty start-tag" +msgstr "" +"élément qui n'est pas dans le type de document de base ne peut avoir une " +"étiquette-début vide " + +msgid "element not in base document type can't have an empty end-tag" +msgstr "" +"élément qui n'est pas dans le type de document de base ne peut avoir une " +"étiquette-fin vide " + +msgid "immediately recursive element" +msgstr "élément immédiatement récursif" + +msgid "invalid URN %1: missing \":\"" +msgstr "URN invalide %1: \":\" manquant" + +msgid "invalid URN %1: missing \"urn:\" prefix" +msgstr "URN invalide %1: préfixe \"urn:\" manquant" + +msgid "invalid URN %1: invalid namespace identifier" +msgstr "URN invalide %1: identificateur espace nom invalide" + +msgid "invalid URN %1: invalid namespace specific string" +msgstr "URN invalide %1: identificateur espace nom spécifique invalide" + +msgid "invalid URN %1: extra field" +msgstr "URN invalide %1: champ superflu" + +msgid "" +"prolog can't be omitted unless CONCUR NO and LINK EXPLICIT NO and either " +"IMPLYDEF ELEMENT YES or IMPLYDEF DOCTYPE YES" +msgstr "" +"prologue ne peut être omis à moins que CONCUR NO et LINK EXPLICIT NO et que " +"IMPLYDEF ELEMENT YES ou IMPLYDEF DOCTYPE YES" + +msgid "can't determine name of #IMPLIED document element" +msgstr "ne peut déterminer le nom de #IMPLIED élément de document" + +msgid "can't use #IMPLICIT doctype unless CONCUR NO and LINK EXPLICIT NO" +msgstr "" +"ne peut utiliser #IMPLICIT doctypes à moins que CONCUR NO et LINK EXPLICIT NO" + +msgid "Sorry, #IMPLIED doctypes not implemented" +msgstr "Désolé, #IMPLIED doctypes n'est pas implanté" + +msgid "reference to DTD data entity ignored" +msgstr "référence à l'entité donnée de la DTD est ignorée" + +msgid "notation %1 for parameter entity %2 undefined" +msgstr "notation %1 pour le paramètre d'entité %2 indéfini" + +msgid "notation %1 for external subset undefined" +msgstr "notation %1 pour le sous-ensemble externe indéfini" + +msgid "attribute %1 can't be redeclared" +msgstr "attribut %1 ne peut être redéclaré" + +msgid "#IMPLICIT attributes have already been specified for notation %1" +msgstr "attributs #IMPLICIT ont déjà été spécifiés pour la notation %1" + +msgid "" +"a name group is not allowed in a parameter entity reference in a start tag" +msgstr "" +"un nom de groupe n'est pas permis dans paramètre de référence d'entité dans " +"une étiquette de début" + +msgid "" +"name group in a parameter entity reference in an end tag (SGML forbids them " +"in start tags)" +msgstr "" +"un nom de groupe n'est pas permis dans paramètre de référence d'entité dans " +"une étiquette de fin (SGML les interdit dans les étiquettes de début)" + +msgid "if the declared value is NOTATION a default value of CONREF is useless" +msgstr "" +"si la valeur déclarée est NOTATION une valeur par défaut de CONREF est " +"inutile" + +msgid "Sorry, #ALL and #IMPLICIT content tokens not implemented" +msgstr "" +"Désolé, les jetons de contenu pour #ALL et #IMPLICIT ne sont pas implantés" + +msgid "delimiter " +msgstr "délimiteur " + +msgid "digit" +msgstr "chiffre" + +msgid "name start character" +msgstr "caractère de début de nom" + +msgid "sepchar" +msgstr "carsep" + +msgid "separator" +msgstr "séparateur" + +msgid "name character" +msgstr "caractère de nom" + +msgid "data character" +msgstr "caractère de donnée" + +msgid "minimum data character" +msgstr "caractère minimum de donnée" + +msgid "significant character" +msgstr "caractère significatif" + +msgid "record end character" +msgstr "caractère de fin d'enregistrement" + +msgid "record start character" +msgstr "caractère de début d'enregistrement" + +msgid "space character" +msgstr "caractère espace" + +msgid ", " +msgstr ", " + +msgid "-" +msgstr "-" + +msgid "parameter literal" +msgstr "litéral de paramètre" + +msgid "data tag group" +msgstr "groupe d'étiquette de données" + +msgid "model group" +msgstr "groupe modèle" + +msgid "data tag template group" +msgstr "groupe patron d'étiquette de données" + +msgid "name" +msgstr "nom" + +msgid "name token" +msgstr "nom de jeton" + +msgid "element token" +msgstr "élément jeton" + +msgid "inclusions" +msgstr "inclusions" + +msgid "exclusions" +msgstr "exclusions" + +msgid "minimum literal" +msgstr "litéral minimum" + +msgid "attribute value literal" +msgstr "litéral de l'attribut valeur" + +msgid "system identifier" +msgstr "identificateur système" + +msgid "number" +msgstr "nombre" + +msgid "attribute value" +msgstr "valeur d'attribut" + +msgid "name of capacity" +msgstr "nom de capacité" + +msgid "name of general delimiter role" +msgstr "nom du rôle du délimiteur général" + +msgid "reference reserved name" +msgstr "nom réservé de référence" + +msgid "name of quantity" +msgstr "nom de quantité" + +msgid "entity end" +msgstr "fin d'entité" + +msgid "short reference delimiter" +msgstr "délimiteur de référence courte" + +msgid "error reading %1 (%2)" +msgstr "erreur lors de la lecture %1 (%2)" + +msgid "cannot open %1 (%2)" +msgstr "ne peut ouvrir %1 (%2)" + +msgid "error closing %1 (%2)" +msgstr "erreur de fermeture de %1 (%2)" + +msgid "error seeking on %1 (%2)" +msgstr "erreur de recherche de %1 (%2)" + +msgid "invalid filename %1" +msgstr "nom de fichier invalide %1" + +msgid "error reading file descriptor %1 (%2)" +msgstr "erreur de la lecture du descripteur de fichier %1 (%2)" + +msgid "error seeking on file descriptor %1 (%2)" +msgstr "erreur de recherche du descripteur de fichier %1 (%2)" + +msgid "%1 is not a valid file descriptor number" +msgstr "%1 n'est pas un numéro valide de descripteur de fichier" + +msgid "cannot find %1; tried %2" +msgstr "ne peut repérer %1; on a tenté %2" + +msgid "error seeking %1 (%2)" +msgstr "erreur de recherche %1 (%2)" + +msgid "empty host in HTTP URL %1" +msgstr "hôte vide dans HTTP URL %1" + +msgid "uncompletable relative HTTP URL %1" +msgstr "ne peut compléter le HTTP URL %1 relatif" + +msgid "empty port number in HTTP URL %1" +msgstr "numéro de port vide dans HTTP URL %1" + +msgid "invalid port number in HTTP URL %1" +msgstr "numéro de port invalide dans HTTP URL %1" + +msgid "host %1 not found" +msgstr "hôte %1 n'a pas été repéré" + +msgid "could not resolve host %1 (try again later)" +msgstr "ne peut résoudre l'hôte %1 (essayer plus tard)" + +msgid "could not resolve host %1 (unrecoverable error)" +msgstr "ne peut résoudre l'hôte %1 (erreur irrécupérable)" + +msgid "no address record for host name %1" +msgstr "aucune adresse pour le nom de l'hôte %1" + +msgid "could not resolve host %1 (%2)" +msgstr "ne peur résoudre l'hôte %1 (%2)" + +msgid "could not resolve host %1 (unknown error)" +msgstr "ne peut résoudre l'hôte %1 (erreur inconnue)" + +msgid "cannot create socket (%1)" +msgstr "ne peut créer le socker (%1)" + +msgid "error connecting to %1 (%2)" +msgstr "erreur de connexion vers %1 (%2)" + +msgid "error sending request to %1 (%2)" +msgstr "erreur de transmission de requête vers %1 (%2)" + +msgid "error receiving from host %1 (%2)" +msgstr "erreur de réception à partir de l'hôte %1 (%2)" + +msgid "error closing connection to host %1 (%2)" +msgstr "erreur de fermeture de connection avec l'hôte %1 (%2)" + +msgid "invalid host number %1" +msgstr "numéro d'hôte invalide %1" + +msgid "could not get %2 from %1 (reason given was %3)" +msgstr "ne peut obtenir %2 à partir de %1 (raison fournie était %3)" + +msgid "URL not supported by this version" +msgstr "URL non supporté par cette version" + +msgid "only HTTP scheme supported" +msgstr "seul le schème HTTP est supporté" + +msgid "could not initialize Windows Sockets (%1)" +msgstr "ne peut initialiser les Sockets de Windows (%1)" + +msgid "incompatible Windows Sockets version" +msgstr "version incompatible des Sockets de Windows" + +msgid "error number " +msgstr "numéro d'erreur " + +msgid "URL Redirected to %1" +msgstr "URL redirigé vers %1" + +msgid "cannot open URL %1 (%2)" +msgstr "ne peut ouvrir le URL %1 (%2)" + +msgid "error reading URL %1 (%2)" +msgstr "erreur de lecture du URL %1 (%2)" + +msgid "unknown output option %1" +msgstr "option de sortie %1 inconnue" + +msgid "Enable batch mode." +msgstr "Mode lot autorisé" + +msgid "Produce output according to %1." +msgstr "Produire la sortie en concordance avec %1." + +msgid "Stop after the document prolog." +msgstr "Arrêter après le prologue du document." + +msgid "Suppress output." +msgstr "Suprimer la sortieé" + +msgid "Send RAST output to file %1." +msgstr "Transmettre RAST en sortie au fichier %1." + +msgid "Same as -wduplicate." +msgstr "Identique à -wduplicate." + +msgid "Same as -oline." +msgstr "Identique à -oline." + +msgid "Same as -c." +msgstr "Identique à -c." + +msgid "Same as -wdefault." +msgstr "Identique à -wdefault." + +msgid "Same as -wundef." +msgstr "Identique à -wundef." + +msgid "%1 parses and validates the SGML document whose document entity is" +msgstr "%1 analyse et valide le document SGML dont l'entité du document est" + +msgid "specified by the system identifiers SYSID... and prints on the standard" +msgstr "" +"spécifié par l'identificateur système SYSID... et affiche sur la sortie " +"standard" + +msgid "" +"output a simple text representation of its Element Structure Information Set." +msgstr "" +"une représentation textuelle simple de son Ensemble de Structure d'Élément " +"d'Information." + +msgid "If more than one system identifier is specified, then the corresponding" +msgstr "" +"Si plus d'un identificateut système est spécifié alors l'entité " +"correspondante" + +msgid "entities will be concatenated to form the document entity. If no system" +msgstr "sera contaminié pour former l'entité document. Si aucun identificateur" + +msgid "identifiers are specified, then %1 will read the document entity from" +msgstr "système n'est spécifié alors %1 lira l'entité document depuis" + +msgid "the standard input. A command line system identifier of - can be used" +msgstr "" +"l'entrée standard. L'identificateur système donné sur ligne de commande par -" + +msgid "to refer to the standard input." +msgstr "peut être fourni pour référer à l'entrée standard." + +msgid "OPTION" +msgstr "OPTION" + +msgid "invalid RAST processing instruction" +msgstr "instruction de traitement RAST invalide" + +msgid "invalid link type %1 in rast-active-lpd processing instruction" +msgstr "" +"type de lien invalide %1 dans l'instruction de traitement rast-lpd-actif" + +msgid "duplicate link type %1 in rast-active-lpd processing instruction" +msgstr "type de lien double %1 dans l'instruction de traitement rast-lpd-actif" + +msgid "rast-link-rule: processing instruction matches more than one link rule" +msgstr "" +"règle-lien-rast: instruction de traitement concorde avec plus d'une règle de " +"lien" + +msgid "rast-link-rule: processing instruction does not match any link rules" +msgstr "" +"règle-lien-rast: instruction de traitement ne concorde pas avec une règle de " +"lien" + +msgid "" +"multiple applicable link rules without disambiguating rast-link-rule: " +"processing instruction" +msgstr "" +"règles multiples applicables de liens sans désambiguité rast-link-rule: " +"instruction de traitement" + +msgid "invalid argument for -m option" +msgstr "argument invalide pour l'option -m" + +msgid "" +"omitted start or end tag implied in CDATA or RCDATA marked section; not " +"normalized" +msgstr "" +"début omis ou étiquette de fin implicite dans CDATA ou RCDATA section " +"marquée; non normalisée" + +msgid "Hoist omitted tags." +msgstr "Étiquette d'hôte omise." + +msgid "Prefer lowercase." +msgstr "Préfère les minuscules." + +msgid "Use markup option %1." +msgstr "Utiliser l'option %1 de marquage" + +msgid "Output the entity named %1." +msgstr "Sortie du nom de l'entité %1." + +msgid "Output the prolog." +msgstr "Sortie du prologue." + +msgid "Raw." +msgstr "Brut." + +msgid "Expand references." +msgstr "Faire l'expension des références." + +msgid "%1 is an SGML markup stream editor. %1 parses the SGML document" +msgstr "" +"%1 est un éditeur de flot de marqueur SGML. %1 analyse le document SGML" + +msgid "contained in SYSID... and copies portions of the document to the" +msgstr "contenu dans le SYSID....et copie les portions du document vers" + +msgid "standard output, adding or changing markup as specified by the options." +msgstr "" +"la sortie standard, ajoutant ou modifiant les marqueurs tel que spécifiés " +"par les options." + +msgid "Modify the XML output according to %1." +msgstr "Modifier la sortie XML en accord avec %1." + +msgid "%1 converts SGML to XML. %1 parses and validates the SGML document" +msgstr "%1 convertit SGML en XML. %1 analyse et valide le document SGML" + +msgid "" +"contained in SYSID... and writes an equivalent XML document to the standard" +msgstr "" +"contenu dans SYSID... et écrit un document équivalent XML sur la sortie" + +msgid "" +"output. %1 will warn about SGML constructs which have no XML equivalent." +msgstr "" +"standard. %1 avertit à propos des construits SGML qui n'ont pas de référence " +"équivalente en XML." + +msgid "reference to internal SDATA entity %1 not allowed in XML" +msgstr "référence à une entité SDATA interne %1 non permise en XML" + +msgid "reference to external data entity %1 not allowed in XML" +msgstr "référence à une entité externe de données %1 non permise en XML" + +msgid "reference to subdocument entity %1 not allowed in XML" +msgstr "référence à une entité sous-document %1 non permise en XML" + +msgid "processing instruction containing \"?>\" not allowed in XML" +msgstr "instruction de traitement contenant \"?\" non permise en XML" + +msgid "XML requires processing instructions to start with a name" +msgstr "XML requiert des instructions de traitement pour débuter avec un nom" + +msgid "external data entity %1 is CDATA or SDATA, but XML allows only NDATA" +msgstr "" +"entité externe de données %1 est CDATA ou SDATA mais XML permet seulement " +"NDATA" + +msgid "attributes were defined for notation %1; not allowed in XML" +msgstr "attributs ont été définis pour la notation %1; non permis en XML" + +msgid "cannot convert formal system identifier %1 to URL" +msgstr "ne peut convertir d'un identificateur système formel %1 à URL" + +msgid "cannot open output file %1" +msgstr "ne peut ouvrir le fichier de sortie %1" + +msgid "missing system ID for entity %1" +msgstr "l'identificateur système est manquant pour l'entité %1" + +msgid "unexpected entity type for entity named %1" +msgstr "type d'entité inattendue pour l'entité nommé %1" + +msgid "cannot create directory %1" +msgstr "ne peut créer le répertoire %1" + +msgid "already wrote 99 versions of %1; will not overwrite" +msgstr "a déjà produit 99 versions de %1; ne va pas écraser" + +msgid "already wrote output file %1; will not overwrite" +msgstr "déjà produit le fichier de sortie %1; ne va pas écraser" + +msgid "removing leading slashes from output filename %1" +msgstr "enlèvement des barres obliques en en-tête dans le nom du ficheir %1" + +msgid "path %1 outside output directory" +msgstr "chemin %1 en dehors du répertoire de sortie" + +msgid "Output a document type declaration." +msgstr "Sortie de la déclaration du type de document." + +msgid "Output marked sections." +msgstr "Sortie des sections marquées." + +msgid "Output comments." +msgstr "Sortie des commentaires." + +msgid "Raw output." +msgstr "Sortie brute." + +msgid "%1 prints on the standard output a normalized document instance" +msgstr "%1 affiche sur la sortie standars d'une instance normalisé de document" + +msgid "for the SGML document contained in the concatenation of the entities" +msgstr "pour le document SGML contenu dans la concaténation des entités" + +msgid "with system identifiers SYSID..." +msgstr "ave l'identificateur système SYSID..." + +msgid "Print the effective system id for the public id %1." +msgstr "Afficher l'identificateur système effectif pour le public %1." + +msgid "Print the effective system id for system id %1." +msgstr "Afficher l'identificateur système effectif pour le système %1." + +msgid "Print the effective system id for parameter entity %1." +msgstr "" +"Afficher l'identificateur système effectif pour le paramètre d'entité %1." + +msgid "Print the effective system id for the doctype %1." +msgstr "Afficher l'identificateur système effectif pour le doctype %1." + +msgid "Print the effective system id for the linktype %1." +msgstr "Afficher l'identificateur système effectif pour le linktype %1." + +msgid "Print the effective system id for entity %1." +msgstr "Afficher l'identificateur système effectif pour l'entité %1." + +msgid "Print the effective system id for notation %1." +msgstr "Afficher l'identificateur système effectif pour la notation %1." + +msgid "Print the effective system id for the SGML declaration for doctype %1." +msgstr "" +"Afficher l'identificateur système effectif pour la déclaration SGML du " +"doctype %1." + +msgid "%1 prints effective system identifiers found in the catalogs on the" +msgstr "" +"%1 affiche l'identicateur système effectif trouvé dans les catalogues sur" + +msgid "" +"standard output. It doesn't check that the system identifiers correspond" +msgstr "" +"la sortie standard. Il ne vérifie pas que l'identificateur système correspond" + +msgid "" +"to actual files. The return value is 0 if the last system identifier was" +msgstr "" +"aux fichiers actuels. La valeur retourné est 0 si le dernier identificateur " +"système était" + +msgid "successfully created and 1 otherwise." +msgstr "créé avec succès et 1 autrement." + +msgid "LITERAL" +msgstr "LTÉRAL" + +msgid "non-SGML" +msgstr "non SGML" + +msgid "raw" +msgstr "brut" + +msgid "%1 prints the concatenation of the entities with system identifiers" +msgstr "" +"%1 affiche la concaténation des entités avec les identificateurs système" + +msgid "SYSID... on the standard output" +msgstr "SYSID... sur la sortie standard" + +#~ msgid "invalid value %1 for ArcIndr architectural support attribute" +#~ msgstr "valeur invalide %1 pour l'attribut d'architecture ArcIndr" diff --git a/po/insert-header.sin b/po/insert-header.sin new file mode 100644 index 0000000..b26de01 --- /dev/null +++ b/po/insert-header.sin @@ -0,0 +1,23 @@ +# Sed script that inserts the file called HEADER before the header entry. +# +# At each occurrence of a line starting with "msgid ", we execute the following +# commands. At the first occurrence, insert the file. At the following +# occurrences, do nothing. The distinction between the first and the following +# occurrences is achieved by looking at the hold space. +/^msgid /{ +x +# Test if the hold space is empty. +s/m/m/ +ta +# Yes it was empty. First occurrence. Read the file. +r HEADER +# Output the file's contents by reading the next line. But don't lose the +# current line while doing this. +g +N +bb +:a +# The hold space was nonempty. Following occurrences. Do nothing. +x +:b +} diff --git a/po/ja.gmo b/po/ja.gmo new file mode 100644 index 0000000000000000000000000000000000000000..bff4dd53bd383ea9304f2b0f32f6aac6401d2b43 GIT binary patch literal 78495 zcmc${2Y{8u)&KvX#>C!Z*BcZCrP@Gjv{g6KTo!BEvMjI)ySPO}6Jv_0CZ?KV@+RP2 zV{}!-0!S4Qkg}`3c8!I^ifN0Qrg?v#@0ppW+m2>e~X21m6IO67?PK+|$7U zxaWa;fG>jwf`0<{1$QR$KH$ON4&d=%53oNt7#s-h0!{;Iwx|L81b8K=a{LrL9())) z1pF)bad3AEvp0AYsPs<)j|9&KmEIJPDn~Ox)$eXl<=zO2F1wF%{wISfPX$;FR)Q+` zLXR6fz6kDw|6jp_!1qAK+p8>!V7X`?Q2xh)CxgR4{*SKYpL4(^;Njp-G`8x|6Z|N6 z1}OTKfjO`lJPN!CJO+FaRKBl(s>f@f>ain<_*Kim&!8_vHsETGR}xpDh7T z0RIGv&pz=<*FFUFMuld8{jZ-xAQ0qI2xP?J__c*V@A`r zz;i&g{}@p5XMlTwvq9D4o1psrFF^6lJ)qiSB`CVS4646<0QLfhjB)rGk6#5Y z3ej;D@DO;F$2Y-CabJSam;yckP67|Fbm?9PUW0obI1L;{qbUD7!QtRmP<(pw1yNK5 zHiM8hdK#Pz9!=&{J^Chi5%`RE55l2zt^of}aW<&_ z`xEdq@LymbaPTEg?pA?nho6IL=cm1UUn(j0I4}o(3mggF0jhue85I5Z`;_DBKA`G% zDVPI)2_6S715X3r1o=Pe_30@3Ecj&*(nXs=^@~$JIHH2eFoScycHCEo&|L}MijjMW`1>zN5>G3&Gd~{|F zG8SwBzXJXf6yIITNBRF5RKFQD)wN#(sPujTiXQ(BD&3u7I`Q*m;Pv2Q@Ymq*TGuX{ z!6R_*c$w?3Jwc*IgTZ0ouRugd^fGul*!OZruUb&``xz+ySqCbe4)AzzpXtv33{do) z3c~8qPryCFKZ2su``&%>4A(BBK(*heK()tB;4tt$5LS%d1xB z<@(JRz_W2b3=Rf&pY75g1*#oC1F9Ww04u;*mveggcL|9<%AUA<2PmCk4|2R4Jd zfH#3E@2^48{|->;wtIXP9EJN|9*2Fwjlb7}s{cW!%SPmX~ozs_Uz;kfl0IGaXfTGjiL6txEC0G9AK(*h= zpvr%V$C=>CxW5J}{u1y|@MTc_<$X})>+@yje<>(B&H|4Be+gECOTf>7`+UXGZzi}m z?(c*9fpa}R08YZa9#s4G`>K=Ap8?g*zXVm!O&}sD+V6Td4t^0l6ZcJ^=@*b6-DyDt3^ z;OV$O0}cmo22TZl2Ob9=c%#d21b7tgM)2d{Pry;&T_9D8wt{!9R72e<>c`wyMm-U~bu_Xu!ba1z)PYz9TIpMp7X87Mlw z1P%cA_>tr5Gr&H$&j(e$Ye0Qp03HLr4yr%z`C~_?DWKZ@N>JsQ>v0KqBJQWaeZXCB za`Zk7JQw$gpvv`mQ0@OK@MGW-Q29R$o&)|F{1iC&C$2yK2vq)CLB%`or>^~{foj*U zf{K3|sQNt)o(x7mbM-$36#YL1?hIZA4g;?M>%sZp2(ahRonBJ|R^WaLya4QTv#alQ z;85JH;AHT1@T1`9U%2p<;Q6?J10DkY13UrT|Cf$0&jAPH{u0<1Tm+s5z6PEG_WUnb z&Wl0SYbyA0@Y|ruJr^7U{uUHH{|2g^hW*O5|4dNs?}4KK3Q+ZW96S{~;MeZ^IPh@X zUj&=MUxK5-{pL8m_jBM_-1mXwz#Zp0_XKbk+;c(opH}c}@UP&G;E-D!U!D%`kNYf8 z<*x*XfR}?RUmjHdd;&ZW{2%aW@W8yQ*Xf|XUk`o)oCk_-kAsJSySBJ=js=zOh2W9k z_dL!6d*Xf+ECaWK;;U0{b@K2_p!nlqQ2pg!pxSBA-#EGt2S?$q0af4ILDBs_@T1@k zw>iGw6+8>~(O`dYGI$L5Lr~><5L7v~f(rNX-#U6;03Lw*R#4?$0*c>W0KWqcxZUyl zQt%So2i)QM-AwQt+}D9Sfa|<_19&d({aRhUJ_U}z{R2>Z^(3fz?tZ8Hek3URP6So& z>p+$JUa%MV9H{n-?sD?=08so?0V?0g;8oyM@CNW@P<%4uZa4lf1+T=t-#laq_$}}< zaOZnm{#StF``>`y0)G#xo$BU0xpyCUJ?>2&C*14oU(bSS|FQSE`d$u-e)oCz6X5Z< z55M1~Uk;v$`+89ITMhOGw}5Jw{U31U9Sjb{{T*;Ga2a?g*aq$gz6Blx{u>m(9=O2u zp8?qis8Q^0q?9C-Xg6D&$E_3w!HkiY`9_$Bh0Y%?~m%Dt1f#RXM^)VrTaJVSg_Ya?)w<7wZKdOb z0ifu6DR>t64X^@S2lfFEUFFJI2I~7vZ~!*qV2Y1I^>D^Ue58O>2uLMPxtH9mBUx7P(&HxqvD)30~tKcqR9@IE|7uXZr45}Ul_{d zDxVXvV41Nc$!Mo|6rCtz=I z6{vE*4T=wQ>s`L5g5ujV!NK4Kp!(f+LGj57Q0e^%+!=fiR5?EY#V-eMaP=4r_Q5>@ zRC`Sa_XNKH9s=F~iVuI|zdr=-gZpvt81N4sciZUN=>$;x^=WV@_$^TNco;km{F8Sd zyve0A0u1CC_$fclqxN?t%MgP~|)UR63V}BfzUc@yk;1Xz*o^A9>V;I}TL4l!G4! zCxOa$w)g)kC_ecm*dLq=o&i4Qaj(Z*dyN4xkd2Y4oU+EcC^S9^RC9Dx78ryYI{JO%gnK+$zAI11eL8JFKUa0u?7gBOAS z4W0}3eb%*iGk6^CyFshvGi`WkCdT!2e}%1bEV`PM?_tUWxl{a4cB;n(Ke_ zL6zr8Q1y5p%z*=5cl;J)DV;1S@T zK&8LO+m4@xf#Sc3;HBWV!E?aZ!Q;RIe{|#VB_4kcif^9t_&0DD-24B@`5ytQJx>Ew zj@jU7@T;KsdU^^(fANm)EBS7`LTJR9?I#B#}GdKXe z8&ths^8Wk&)$#8!py>5!Q2h2|Q1xvG_Xa=G;ri#t!5r=(pz3|G$FG9Berv_Ag?*PT;uY%=Z@Aq6gG=PeCC)gKU2dcf^ z1up=jzd5>J2%d}cT2S>{>#+mO;XeHDULOFJ-UXoQcLk_+z0rSP2rB(YLDlbh@JR4) z;6U)ef4KC{1rNks>+wsV%J(zy6W|(9{PqT@^g2Mb%Lm{dV9$R#90*q6J`)r_e;*Xz zJ`0K-?}3tsr~b>Oe%b$x=Ru|SPf+b~$qJy7+Y4~_@_397v3MLn$FOaYbd)!+f(cfe1Bw}8ikJ$m%8`u78sPZc-{ zyaAjDJ_ah@u{-oIz3&WgKirpt%KwYtq2L@)bX^MOz}Gx}bjKc6zTTkHoeA~D7vl! z74Lme^f}?9Jxu@j3aEbF28!=Hz_Y;9KGwtf<29h-{TDbCd;&ZH+-sK});=RZqZcUp z-T z2NnK#Q1p2R6dexT*Ohk&coOal!5nx4sD5-OC_Y>VD*Vp-^|1bX6u2|)L7>tb0*b#s z3o3jb6umZs6TkucyZB!LmF}-W^_Rt<%KZmWblB?v=YKjV{;UB%3VsvZ3H&}NIdv1L z_S@v$y+7W=!TDxZM|IzGM_RJncxs=ZzTF9+WSH7;LtkgLxxK=I8g zQ2k;HI1D`gU`MCvp!jPD36um0J-N7rskAv5OIq=8eY2X8(;&pic z-41o(`+_6zKNVDe|2)_eyd4xDZ31V3FM^``1&8%8yUER9CGIVt`t`8Gd$|1*pvv(K zcqaHNC^{W|L=UqARDnC-t^t+)G>@}Eh5r^PdG`pYa%=(BkM}&%wbN0c=y49HcDxQ$ zeeVP{zN`k7?%zSR|1LQvPmTs9KQ06{9$p6O`V2FqC#d@U02KZI2&%n%9`E??RFB^U$Kd~aP~Qjj zb$oX&*aP?Vpz{4XsPe7>HSYWs6kU$(=hC0#@h718WFx5d_ygD*9MIp@`yx=|^Au3y z(AA*A|H%8ddiM%Y{puM|J zY5v>;@@}U+vj-Z}>b{l5zy&hu^jzsVyVM1Sjf#^XN3T**IUDa)le7x74LU*jt$}--+rWgLs^I@+7|Binx_zwPS?JIK^ z{8spP!9RJP#&0tCGLQaN^L&+fpXT`l&y%=k@<_Jnui1f()p{Mz^B&I+c|J<`Tfp?+ z4E*%B7x`=jf6ntg-jBw=7tdne&&RKc_XXgYK0L!&bSuwS@tf=Yc#WEQzmVr)zAfMh zf93cwv`4pr=i>PUkK`Z2LiBxbH2!<@wD3Ni=XRdm_;xq=O`gYiznbTlJX3IAuXn=# ziTC|^^mj4O7kGY%|1`dToA=-I=+b}910-hGy*fw1TLu*c)hi}H#|S!X(!&lc#gq;F>d`;@qP)< zZ=EyR#pfaCWdD8{-$(Gg;N1*S(OEp7$4`Gd^1j7?>x27Fo+J78BmZ4tYW??Td0)eG zcv8Ip8|{?&Mj^^AVoC@VgN#{Hw>m4$pt2 zzE$8i1^0zKf8g8YJU#GB|9zEj1zyp|y+;Gzt|RcNJUa?;U%_)A->Y!vc%-A8hI_h? zGZeS}{!O@pz{kx+Tj2f~&kML`@Z3W90X(HTxO zABF#)z(3vKfKh}pi zk1(&gXf|gXg8wJH`)Q9%AELQFt(=dy2=_ZYxA`zrdEcA&O+MTW-hTpkIetfa_XFTL zJooZ^9sdJ-dei*(8@&5`zFmvoj<|0GSNU|W1$W@N6~Ce2qu|d7^9Jvq;+f8)zsDRz z3vr*$Gm~e%|MoG$kL3I7xcB3IxcB!_qDEfM@Q#0jNAR3YxIYkXFWwIWr~2=L@q8Pc zau39v{`*MEeJ$@b-hC8-PW12p;(cGz{T$C3`27Ub--$eX^6Y@$2K;7we|`HW?@#jl zxA!|7-0a^^^f&;#fTx=H|K;;~)qlIjyZ0fj%kWzQzR&Yz{7(QU;P+kLzr_1Q@Mqw= zJezs+*AqYe?F`;R*wsAxo5k}i??1=?Iq=K4-vb}vd6@UNcpCZkGVWPC$KdY8vn$WX zai77Xzn6Hf#QR+ez~A2-M4#Z>*Lm;Dw+F$4z-s*TSMG5mco_a? z;`cc3SMxrUr|@rz_uH8;6+ABz;3)89{Er0>#C<;RzvI2eN8Xe7U-0Pf8jq(F<`UkY zbKcPk-e=7w^6azgGP8 zw=aI*=NW=~j`x%QUwDqkeLUaZ2cMVcQNt@njvP0(GFR2q)KELAxv3^sHNByxYVzz{ zU2a0z`MIeL_02QWo-^tv*GzZbxu$7VO}WYSHI2Et`lj5psw-=9 z6=mad_0`qQ4GlGQ)itCtxwg8hslFkdL|si|6Jt{haT5eS3C~JqBqGSsK zjvn95fVFjvO;vEzHZq>sP(QtXssh#4S!IXj>g%S@&hJKSsS5>I7M(;2tgmLBG z&PWaFZdTz=BR17vUQ?IJsjEm6G9hWK%HijX40+^WJgd9-FbCJpplKRs(~oB4YA4ft z>h7>|EDET6GaW$9QkU`$JwnNNVL@`ub=B79>92Hu@zIQ`hRd60<{F!jEHiR7lWQSa znyX6k5vg0wx$0>UxmxtDYo0L)fHxE)W~U@TqvMr0Dr{Pnqj%DsS`LGl8Y3}f;fX2HC7^ZE-%hvu_*#Wx7i8dGI^4|>mw<8xjZxCBNL}_T75%P zN^~GZYiHC#nM^2SSp?v8NL15U-B3Fda(mj92xvkokktAv-LJa7uDSsphdt_=s;(*# zt<$ok1>Q7->5O_979n3pC#uPffI+WlmRSF=X^QJ6Uxw_}cvBDEljgUf1Uc;n5AjJ= zZqoFsy34!F)M}WbYLcGgw-N<)oif#(tmVAuvH>L1h;heLuqm~5wT;uDF{7>M+*E}} z-P9lyVYSJOxd@-4z$q5?LAocEbF-$^GXSNcs|PR|DVLcIwROn*nkiFi=)VlUMFOD_ zPHsk&cphOSu0lLE(wypssWhAi-JDUPs$p`jzPV{8b*!Q$5;e6~Q|Y)6X<6*cpiV8u zV{EB&eS>}_PwRcP3^=oDo2Hd0pvqul_ap{a@@udrmsrzyWqr7|Iwj&1o?)(0LsYL5 zqTXK2=c*c}+AwB%OrOMmdOc+#aLQ{&O=Dx#)S5m~-y9ag;b)Jk$P9c9FnMi*8o35B zP@~f2sEmcHxr+KJ@5X5O*il|N8eVZuG<@bv8b4Rl&_I9n88FD!yT06OQ2%InL-i=g zf3|qTQONVj}Vr~rmB97odkBZp}$aq&}@CJEThJaoH(XzY^6xsFuQ*=5^Zht zxO2=YLOYdZdVT%O$Z2wJR3`^>k|^GF$bBlY0^{C6*VXiPTfEb zpcyD_cojBka8hVe6>Skh+PGdjB}Z*2f9~S42^ucSE<)cOSzal3G|EUT1;~&3#*JtL z=#7oJp5s0N)fhH6Q9}5SBrKoBu)Jwzfv{#mkkTU4O-s;5;~^I`9ZWhq z-f+43!ph*vphv~j*FQ-sc*E8X0oLSFwqi$+cUgzYFwRCM=_4HTsy__AgX&Tf~%>UY9(nR78pBxOqu;7UXo*ir#MwKtuGo| zR@o0RJc&%EN~AY5^=qn{Y6YyFF#{bADUD7%rQVNvlV+o0OqZrKSphqX?*$_hjC03T zR7yIikC9o~*x@5a=gP;7DI0|g<}?A?m@6AIzVhO+6=Phuah2zmk3A`^Q5ZBt*tcwifak>6@F6^pD1C4wjqM(9|D^UOf#_QEhTn z4LV-KxEm~sM{-j|W3knp!0=%hU%C^#gmCOmw76$ljkjF|5yQ$ z^KEC0RB!8UCNrDqK2kh<{pu$-W6lU_QDL7vKdR_tto8m`{)sBameXnd3?Mh78G8rD ziA;x-{lWTfq9jKZRkM5%`bVkhqJ*&L*tGC13_@y6&5gOsYi7?vq69JO)FUMkcZ*oR zD{8RBkYehqbR?&4s9h4}+eU$4779v1{JBw$^DC^$t%o-`f)Ttt;8VFubKu4@Aa@7;yiZG zVtlQ_)RysTCL3wXX-_ounkjhHNJNR>CeqX~r(C zlvXVnDsIirgEUQJ(4ST_eP*r+C5$pO)dxk#ivy?m2U$CzdFD)%0W?Pw`2C|w1|l&{S{iBH^$Br3!?(hoNU(MPX6W5zJ z7;jQ+4r7e=aV+wL%8JVEjjTA)#EQ{2dN)!t%m`G2A=}8}r$W)hy3l+1=xfotdRk5O z4=e;PBeiW-2w0kwptrAIcH8i_1TKbX` zpf>enDoZbjs&buZM_#mfm5`ZeAgHs9d!^G!OHwh@iy6nIlBRV(I30sh*7y{2x%vSn zYUyM-sapT5gv5Q0>9?Iu(J-GWQYNJ?f|`Lw_EaP=?WxT*&=x&|p-PfG)ltPlg{`g*ZPp-7t`VpO)^)VP?MneZikD6@qTcn^qH#o|w;{kJ zM3h-$aZ4|uOPa`(AT(*&c|Ox?nFN?kEA*lZQgeh-IfQ9LRcv}{uA45shviByT4d=( zT3bnD{%S0hScytABk7`EKCiSbAY+{AW+oZR2AV-!FDK$cD>={IUZ#h!CJ{wO5V`{v zIW%h(-p7c0Qg$%#f;$do36~hm3rB(MvbU3N6xg#uGQG!GWU`6beQdLGcJO%ZKHXK& z>0$$L!i{E}Lx;xRZ7h=R7@9x3;TOd-y^v26$LzeV1Sor#?( zhS3YdIh`o5X7W`AYON>1mN1wV4wY3kvHl!uU7a;?24Q(=-RAq%Iy{zh1(o_N_qzdV3?)6`rB9vNs>wsV0xY8d6hoLd*Iiy$KdUaX35U$t@r)vl?0cb` zw#Y8dXl)aoMkc~cS~Q0N8X{XZikZgjLP}8= zHj8MXC*Cp>r|MbJ$I#f~!f2U+K$fW&hkh|)>^P*)*!+jQ|q+0S(s+0T^d?I80O<~4E9B6t-W3xMjH-_+mKZ~84pj(u{#UaW8uLU+|3Pb zfxdA6hQwfzX)11$ZYB`(t+$ePGg`rv6-n2<@@BeP_oAePaW^w5nnHHFc;1j}JwJ(L z)*H9*61p%-W?FFIbVhkIo;B5CJMfh=^H)KKH9whYO8Ixu(VbqvP^i`KF61G3&#bD} z(mxr5ojb8ok$f!{vPs_|=Js!j+II8;?I_mOqb{O`HPh@=t+S{_Dw(u@Hw32#9P487 zaHHC~h>f*$@+nwb(Zi4`iX3+-DQM~4GR6aq^|{d0vEoiZTM`N>6!y}B+WseV4qCA< zdtuH@0jq0fqAR#fed*neqE0FKTU1!l#4T1Pjb@RPMG9?s@f$mBqoqw!lhBY`QajAk zC~G{H2j$nVG)Rlh7N8(vTEq40t6k+ItzD+HuEKaLSrWt;&+|tpvn_uoL6Xt03PpIT zwrC*wvsEs%KksdW5WM^ z9uvk7AGxinG@{C2yG~Y@{QleAsM@KuO(Iurbd79jnuSjcj*?~fea0*Bscs+32}w*X z{=~vm9Vy*wXmpw|DHHu5FizMV88c1EGJMF?yH)g}3@Lkx*=$$|9OtOz*Dy>y4Xl=8 zJ6jEi>k}`^xjspgr1`(vtsNAH_ESg6N}JR{<4)4Wa3kxS4abveSXPQNnmBgigtAcu z(UJz-#`ff-Oi7fCMw@g_MgS?nDRwi3xt>|a3^!ZvOb-n_WJ^~Pp|R$bWN+-Ht#3{) zpuHol*@EGgPbB%`MV+KA{cbsv%C<>E!9xNN)vu4*=CBf@Tj7`{(XD-C%FT0C>5^ut zy{%HHc-!b$%Jn~AKtB>^#tE&c(1cEgCqs3jH^ye7D2(K0dP?GC^?=4|R62F^^05;t zhmRduW_vzkrGw$_ie?lFw;3~MW;fd?>q0=~gzw^j@B*3Ju2HfjOgPA3S_c_wp;QZe z+G3)qXoja?U))_JFsp%WCG>ynS!}?eAXvY22q0lgmqfgZZD}cxJ7_^=XVhM$egMD3 zr#ftO%!N}SHFTBPW@s;ntTP?r(&>a?Cy_CEWA2=a@uM#o?WaZ7)5U{RWeM=}M+n)Q zDO4kKvZ?HXsxw*K>qKTzad7t6HPzZ4)ZB&4sp@C31IeaajfDxb>RUgZjd1LlHCuz5 zQpX7ueP;h;u4*cqcyrU4#5JTdEeh+67H;;vjgXpHLMSuq+ibm0WC}-TDp9cH*0UpA zT+FV<&Vrf^kd~^MF_WF}S^e2L5$2sQD~Rhd{l;y)vvjmZvha&ZSOpm!qfU97$?c6r%^zU*Su!;V-FwvTk|I5xm?+Q^qYowQAOllDoH-c~~C zI=lU&5X+mWlk}LR2J&pXHhwEFZSME*7RT+hxMA0?BHNB&#kI~xXQYve3cu^Db^DvZWY*u84Tq}r*?SidwxnYcuN zhyhW}5;IO1-E7J(p%zV+#_0adYDPgR+Ljt_Lt;Ey2BUQ7uwkc^$VIurXEVIWh7`py zAp8-Cuv%M0zn;$Kxu3&%%;|L;M1f#HZwP$%0OVoe~D=; ztL+QjzO+ITIyxfqWKs&-pHgxz#e62@WD84b6HV@B6b6{E{V^4%K*GdK+If%?9GwZA z?kU;M8y7Tf853(ZR5dpBb4I6r(`QcB-i;C)S5monsp==rB8ZrZWuE z9*MI9S+{()FvgsqjeK;xMVfmwE0MtY2FG)c&9nGhbY8Plp zzla4WX|i!49FbMQ3%;h##g_Q$%~}47@35rlX%iKF@Fqn2AO%iL%n0H2&AvvmabwDD zQ$K508H+`ik!sP(QZ1288)j-5UIuiIs;M}sTxU(IWqT`wx|k^RyG)?Km=rM+SWT*c zYD0JKCUBRxBcKh8v&yAXNZHYJp2KTQam#IAdZvMPD)LCnZ+D%AeL}j4rsC+&+K*u7 zL&@*#w9d6&{~TvuU|J{GT{>p#kMo)^aRev7TvNIC94(d6y9+JDsbpY|!aXwVw9%l< za;BOvt(&Ifp*8uFL!S6H<)vX_Ija6&I_;1SEtYy!_{2UUJ-u&N6BalX<0}X8usvlC zVH6~ph>+0swm#`QM?4!(#}fYq<1dAZSt3w1Wv~uL_DnFRo+o|FNF!!1NZ9j#7g=|r z2^1E7TZi(C!W+B7R(}7l7Sgq0%7;@o4?^6OMYls+tJBf}X=Ix~XMN%5I(G_2=J3o+ z+XwUkNPz&^M7(i4av_=b2SZpYqu`rfP0NNaJRhCSgXus`t(`A01}IU&#+n-2<&cdR ze6>29sd?%{*Eu)R&?21nLt+leR9~8i4vt1Pq`D)dHCJg@Hd4|Q#dtq+<_KfFzt3%m zbS+0Ber0?@YIkJfYm;B!$kYW{q~oJ&Hl zw3;M+imq57YOQ3M6V6H*p=>pik|1kbDjkm`aun3GHB6(}+rx zBO5kM=em_@qWN%?R--?YvgsnQ+70sH!POYS7;bjLb1FxUt#k&x&}CI?JHH+!S6nb2 z$)+4Gxba6oA(@T1k{zXnSKF%+VOA4Y#6zl+-}DYnueuLz6mP*};rS?5@9&yJGCWzun2lSCH7 zNg`hBXRtrLRwG2Akrhj(5ATIeMij-1BN3>x z51)LHYehjI2F!s{`Yr9WV;iNMoJ>nCY60gh_t@YEpdnWrs{GMM; zXu4^Lly6goYzv`n1>&Nk#>OPuQd!6{(iw-9EK`UOYMd_IcH|dWXTX5&m5)KiR@MFC z{|}jKIvV$`Ol`JZmi}aF*p2N*UFkSBZgU(B8db9ekaZs|$R`vv8Sd4+R9k*XlUSf= ze6B2}Ocyit5Xp&iI9r`9?7WT>$b99Jj^WK{t*JBGQc2vgyJUjUY2@;$b*bwUIt|7N zMRvHy8-ro_sjLt)JjQ;0A;ZQX4TEk$jSZ!hqd60A%Z+2lRg9UyZELpY@PC;^KkZvg z(#WVuF6&0SYCxHrs-A?MR&!ObloXa$mlL=cnbd7;Kp?7DhK*ohk5ge1@w_cmy`Z+~ zw34AFq{a|hu=jT+W1o%nNd+|W`%q%+xbCcmiu;SHzr96>SJR3PfcaJ(r30$lAXIVX zx>q{4mA{}OoivPvb=&z06YngByVa|kp_4jz4Y|w0`89Qkme4)aRO8Dk#wCqZ$o-|2 zhN6}n&z&ja@l|CDvJQKOL#)xN2HfF)|jbnCs8B#2`mMCfAU?&T+!SuH|9 z_sNZeshdr0N{lH(V^7#+BRjRXt1k_*PUg*FhXMZFj+&_35KdD4D^;?Jm1KAL(QVw*g`_OG;2V4*~r|WfrC#v zi7T~E9o*CS1LZQ4HiMoPtl>ilv2028A#?wgIX!$+aM{z%@ajeAr~^hN;_Y8YAfr_D^D~bIw>AnRelq zYSX86{qn8JWb9G0W+Nt3*UXKpa4Cg$aMC1|oY~FH+8^tuE(XjO4r;_6#kNP;597~a z9P=K!8jO*jSx2@WCWQ*CYQw8VoSb|@3i;cNBN&FsA(I+Ox73^l16tvfCNZfgO7@OH zlo6_BS4YAa_MP-#5ywmjexg)Oo{Z9?%K&s=nemaE1M2P>7c1tSWZ6Lj6dJZua$G2P zcQkjU>Ly5iPxLYuAjQJ=J(gF2(ycL2gNZo|8cHMh855^cJk2geoGsa1 z5W6^}87Rq=AzI@CRvb<8bRDyn1;~YBvma44_H*&XSS4bo8{q_n_xmD~A=zslmV~>( z&IR*kI}#4!xbqtMHR;owJ+-UiT0i%_TKUAyn4*srCBt}*On&*iKsG3q#`@+4>~y8R zgiBKrR<-2)jZHbXJs?DM`DBHLr62B0PEyHui+5~8joW|95azf_lT|fM%xrR$sF~AI zWBatl30>Urh#!XHF)+-Yt;Fuq4N6pa`$kUl(3D2#4e1urC}5jS;~pl4QH-P@lDnxT zep%(?v-@MmSvq0F%#P8y-mw|S4q>|*YMAY8FA{f;>dxr6FeDydBAd*r;?JRw>E+hK zxyta$$_eol`Lr-4)B+}Y=r)pf1rB1hFy+)Ns5o6no-0iiGL5BHk?NoRCO!!QNrz6u z^q?qASkiMxp1KHGEVw#L7nLr~(8lv=ERQ5~x1!k90-4%~Z-OX6==dI~=?=F_|i{y=7l84H?8m_f(ADdBC=c!E|#%2Ia? zQS?Gvw43p#@(U)ooCbGPX3aS?UfICvmHLn`Ea-~NG3_J?`e7Kb;!z^3|7^3&{&@3~u2Pup_ z)IMHeFL~pmyK^EDRB@6;JDHMV`R&aibF;X!gqafJ^zXP6ME2dbvNbXZg^81cMQ)MZ z&UVD?;_l&Kd`owA)u+a;UbZOOx=W|FkzRyIkL;|xgpab zn;Y!L7b>P5c4huIS|-@#cDj$dJh_-KH=%}05nXEiHSU|DsY|1CRgmLz-_<(%db#<`;J@em=I zQ6w`{>4iBoDcF7_v!*~D8Jm#MnWKo_NC!9j`#4m(qyu;+lAbQ%?5_w+n_haJb*8f? zr1)C*!gLZdHj6otU`3Ni?kv2cjlOdKz8D{dfs~3(PefSyuao+ z_GbpCD=zJHOnPb0)*;m?z4lf-)!3c<()7p+U~^6Sej_Nk|QBG-KIIAtaAI) z43liTZ#+(IIA@DF5%eLFE4Tz8q&VT?v6aIwDxF?2;b7-jsY^}WLSkVXdlb)SdE-EU zq-#GJUxumL_lT|MGVb-YOX?iq0eaaLB=HE)vcM%qLVv& z{A~8*oSinUB|#-e?i!8sLCmSdcXHqYn(9{GqOd$2WlbK>?2{9lQ z?X^t`Ou>@*Ip!8WZ74`AOcT=O_mjN>(N#KSSFKJG4fIH>l{Qjl!`tGN?!r&+`3Y0b zu1ZlnugxahW!rn+V1NuNOR2gPjW=}5#4pSO@r*0s@0iGtD~XYiB=L*S5^D(C?sRN& zf#gzpvOI1pjg)R1&m@a(+t66mfbru>-ExAE7po1;;g$WZvrMN@i-pCXM2}2v^NhQ7 zp)n!y>VMF5%*w%GX4bL26)RD~u4t~8?S#gwy0V_@)SVurpK*#Qkh~=_2dR>}$6&kG z@JLrODk|KRo-9Fi`Xx;f-9$;jX&sYcDc!g8l+*DOiWX*PJMR@BfQ#MV@JBgSISu%)=?FM64SWZJXa+8&QAA++#K2K@boy9Lw-=x|o-)*Lc$PIV$ zBm+u%;va8^_7i*k)`VB%;|RHenxos=6|nxqLfitzpGhn??X;t$Q6oPbGP|!E2fZ=V zNF1;E`X7+XOiVNb%Rz8gC=Vy7zyQu2jxJk=s`p6BoDt?MZh>In&U>0h8nV{s$aQqxHWa#jb5_ z??A_}U!aP(Bq+T5oAUZn%Y{P{e zM=<@>t;<@4P7Jb}{2c zU2d4$-t@vWt02|5JG!poEsx@oV`Zu8`f9|=Lc(Dp zL^5oN`;cnM=M3{(4LbiFO_J(XDdJgBlFk1QrAWBqe@PX8!xmK+L%H#bUg8X6;TMxN zr{QP3kdZpJ(AYm$30JXYlOrE~bRp(I-R2`APsi9(tPE*nj!4L6pK2y+k1R*=T|Xp@ zu<}N5XS~*^67Thi*+!~miiu1JB!fptNOCQR=lE7fV|gbZNeN|Iv$lQw1tKrlpe(4$7B*u^$6}aS&6jnm!V6i ziY?D>SS?vy{FwwWkjXNLoA!0cVprE9&b)Q;=)pyqj)VY$2xkis1K0e8eZTW?|r6~?@ z^K?m6)KXnGmPBZrQOypugzTaEG38>ZWjYuvz>RmwG2_&aYv+ou3EcL0s_|c;;^~^# zBSSGP1?@sG4H;$7hflbOnL+x};<$KDiC~->Ghv+lQW;6%X9-tLXIv0_=xe#YMkafU z`g1Zpj|#8!H*$2tzCXU9{xTNn`jt=acY!-RiqvHJv~gyx`pU)=1`ZrF@Wc}a?>c^5 zWxtV{$FTvf-zcVYLvwsPx!<5c{RW<#8+hu_lLsC@kUs+UtKjl`okC5*5$MEzCk$4& zfhQfWe+TY5S_>+bOv@V)@mgn{FuZbHZi3#MbEh{p4&x??88!Wz$rn$P`Wiyk2N}L^<{mT6Bs13~xnN-`fYZQ*At(>>w&V2iQ|H^Mz{LJdN z9(*kSQhsfIQ51fczrv(w5s>o^Dyt@_NhGPsdgveQ=dr`RdAN zHZIGr%P+{US-fu3WBL2@Z|B$K^CYmyg<82R-*#`?`rp}?=ZL!PhTb`qz9%Bv2FQ+ZMh`6GD|0TNbX!w?Fd4iu;Wtu>H2& z-||$;;+9n{>qrFhCZQg9X7Njf^m6gpt5Fzj@w%7{#u|%Smct;6wwWf4_s5n$!b9`6 z8Ppn8MQ8LlA(vmb{;}onJn+Vf=kjkYemuV-e^0)3{_3?$U8_Fw#KWz8f$N9n)5h1(ux>IP#1+U#n0>Wch8x-@b63J z<=4Z=i(1ySyu9R|^&6>Fn?kMHWKCtgd0qa`o`1L8_ssHlHZG&JT+!9)EiYOT=hB!@ zlg_%9w{XAQa+~$jcn_TOjTJ)L~HPiL-?JaA`KnZVt z6poc~TU_qo3XZdA685+mK(4drf}xoVk)}uD=E` zlW%Kz1%7*U&XQ8O+<)iN$4lp6JsjCU%GUQw#a^{|=|;%}$oN*vOIF_kA*3EH39^{}aZI3iEXl=e?a@ zJ#YOo`tyjE1(5$9bu*K{t0l6w8UKNI*LEZk$#lcYg%7@jP`Nd~MQxqm(Dv+#7bGvC z$(Dj7t>~_%Dzd2334i48zP*%K%D1my zonPn$J0nBBbu<~U$w+!<5qG_iT$Ow=T}*H#w;qi!6at8g^v4ZB1z|WtZ1Jz zcjdzmzsJDZws6j}=kgtko^a{Sxn<>}%YK)qqabtJvpv{#s+KzthJQ2(w}GK}HB7xK zzkJi33;$Wv<2xQ%xb)?vkG8evH~6?2iC`T!-=-e3V1B->eeQxSYQZ4-=gbX7-bUmQ zb<>)BlH)Tz(wlJ9-A)eW*I5Vk(x`3O`VaDJtu+dUQFXkQg&Kslo4U7+FYD+1bNM?| zJm2zkpV({Ts;6QHJ$6;gVnyr|^^N*PI=SV>7rouPZgoq(&BpAuhvvc9t(%^v2^U4f z$BqiUJ{n$ePK11WlSJag@*SZQ=ESZWRzEU-l^Zi7Hs_%vR-G+*U>{qFwwyuG^}UVx z)o)0n>Ducg*`| z{?7aFhH+hglGb6{JXOy%n>VeA++}hSaFM@F*WS50nE%eXe-1-e`;wIpy_*_{rTL8F z5}A>e<0>wWC_UT{?=3)p1!Y3KZ=~#iH3H|WU#z7d%Uv7>anlPnnRM``yvjxplq=h7wf`Sy63P=0HX*Ll)fk$**0i!?}!Bu4Iz zT+i~cBS%jhRn{|?Uu(pME}nj-3CwGGv*l%kdCX7n=h7v&MP(7E=Zqy<3)Q%M>w{~T z-G!iCL)43Lj1J zH6a=Yaq$zDZ7UxoX0g(=J1)ix;zQJUd~wRIc&2<5L{ir_ZO`?zRrkz$+xg1fg;K|$ zz91QTvQjSJ8V|^B&{&78eDt1wi!@$TwMT&oxcni90DKdhjIChxS+hAR@XEQdT`~B` z@rtsF;iDsW9tpCo*?jN3N8X{DNWP@RHUvK8xmUd1ZWL@2^Gbk}W^=#EF))XIZp}75 zN^*3x%!OEMnBzP}?1WKGsvyNtMo`L4Sa+;{Y|)}fC;9E4keoawh_I_RMf_;Allb@E zvA7+vIFHV>C_fLyd;^CfrZ2s{ZL#^buDn+%^SC(<@tgu1$8%kg$wzucCEpqgNMe+Y z9X?`ou6)dxvQfC`qGQHaUOcv9j5c%9qa;ejB@#!hcAd*++-U5?F(b+^QAZk1By#>5aQo>O>_S**F+5Pr*|r7QFFmzWz(VA8bN!I)0u z#7;a=Xp+`>u#AxFI%w!QzMFR)*ipy&x1S|yd^c)&H)>8sjfhKL5ViBNyWa1O09_Yn z;otAQqg&-x(>#-Jb6sP_!WDN#=SS{PgUW8>o^!exOSXBVim~Ofs@<-}73Z63+N$0{ z|Ino19(3nN!C(u>FQr2<1a z&}D5YHN9h$>7tB zB6n&=?&GO*n!00#4>9%XKP-O9wM)kXcdz(ur2BkIb`FhBkrcCKFFg2ce*Ln)tl!Gu zw3^bd$+!3H*Kbk8Cb5oZ3<*prTwFhg&KlrQ*yt1|BUUHPFb8Cy6ym#0X z$OX&TTw+rssYzqr^jLIZ)N*UfZ(5#G$9%XI#{EzB_KPA}1x-e3rndCY`3;hl(z~$6 zzJdgPW77v4m$$tF-(|-9B3;DhzYCU|9w$NeN|u+gx{x~4s@EhjeJ;f* zta>VcCl>nKoW`y~x#GD(jW5q8Uu4M&`IWAdWzo#WTq&_an;6Tqna#6Z@+mD? z+*j);-H})Mv}&$Jz=G8h$eYQoi1owLB@G%I_cdA5WC5A&%yb%OiegG>Td*8uz^_&Y z8<^-R(}`K-C64kC>w>-Tn<&s#n31z2~IQKoZ;)U&tp}9h5G0eYX z{U27|DFvtGf>}39mh;;ZI?L(4zifEHgtuABOf_Wwws8eyT@*=k%&#j{3@xd4({{D; z_BP|~Le$euhQCi#^oLu~FcY21OzLep@d2I2IK`&o(Y>!P+-UP+KXXuDjTi6(+vHg{ z!}ig!W)k`XYp|5z^xRE1xaK=- z&Bd+Cw5GC`HO9@cU}34DnzG;H70Rvyx@E*btxlq;Wt^I#dAGIBGqx}uQ-B2s8f(1* zYRUIfbv0-8%=J3atdDc%e!5SzX7eMa`^1Z#Xu;?mt$smF(|C%%?d&irY_miwHg8;E z%g-H~KA7KO#(?!oy^nRBY!9?5b!eXC7X0ISMJ-EN?_;T6H*V%TWLZhkT_U8zWY;|m zh;KWcZO&X7S34H}$xmy7B5MTn-6flQQM!&ZtWb(T-;?&gjYwgFu$|FTU4W&VZs%4g z8oN=zpq_7M0c8UVv-$0enldNDn%3K}muPTMzgu(9;(xPW=L6>Qg}sl4bsY{XMNq|4 zzipE5NcorUsi^=GUx=E5d2PPUNg^l4yjl__e%LO4&m3ZbY~fbtcxzESQ}2*4eDj zLsH3G?X}Gk;0~FUT(#_Zzx=vH6_$q1OzE^ErR89qohneAM=@x*pC8(J2 zA5PFN{{IiBY1XoZ8mLrDRX{8QSGG@dE~Cl94yMY<*p}W<5|7B%)CoD$);3F)Ci6XQ zgBAdm{Mj2cH(26YSKX3-77G@=&sMzF#Ip;xnA)98i^GUh{#V%sc1XxFc8sjDC~W?& zob(s5hKc7izb#k&m%n2M&cGt{xLcOLGk>eiuvK}hqy>>m8&lQv98opyzpM`zq?DUD zcH)GxQCefesv4*07I;NcM1qf!-ejnvm~N45GR&%3=&XNOiMARCWGy&uU~Ds{$)$H9 zm|Ans^K38N;_TI>cBo;0%m=%63RNEMS9wnZ%xbcr4O@Cy593n zYK`8iUCb4wvP&n&YN#6;yvWSAN(;yoMtrpttCld<(=EF&cBmm_h_#IsRN^sBHOP5G z2oSHJTBwjeGFevar}ORQ{@3W$er&9Ty78HfJVTuu(b_h~^pPLS4f)N>?qamR8+y2f z0?B-5>C;wIt#IWR%$chi<=arJTQNDuTbaz3&ez14kEDA;3B}!Uc@&aJqCNB$(v@M2 z39Y5uLE3jN)j}+p`>l+8Tlms_ix`U9q7}bg_?p{6%$|_DY*Sl2DUNp#x91-*QNQ{A z_fp!6_D9In;G?(soyu>wJlnD*-|BvZ-YMP2i9y(-TieVX9-cF|&yqLRXo~37Cf?XY z(tFbfo9?9r`91pZt4KkKS5&n4rElK%K5HHY@uHUJHIAx%O!u>y-u#XQZ_s5s4eI8D zr9<^*nQ85VYaV_!Oa=O+vgk6R*XwMXRVq@KaprG*;B)XJ&8nyFTU2O<^@T74wzn3gz1Ek^ZHkGubC!KLj(J#^G*KJ&|l+8A# zRK;R!3n-fGR(DemQ~2AIkJ2ql zWzJmWkd54(rlU$aW!WwKq9(_il(VGp#B^CEpOmrN1{d=3JK?%4azXrw6%`O8PGH5 zD6zC^2x}m;&CYC9?>d-zj%$aIj){tlWuh(fDL6uY#CEs0xf?L;H{rvY?;4bX5T0_G znL*)8n|DJG4%X)oQ<5zT4h52jl8FnC&L#yxRzIis!NzI%CyQdDGQ<>2?SQx4X=dnO zmu!c{X7xe$;|1xY5*EbtH)Xg@g-(5CLYC~JMAu3RW%dFY0unE`D>&tmiJICotSF@x zBIIuk8!Y|{mfs7pTWO!rGwK0|%YQ&f+ zRmauMZ}@8WyD-^zv)U7?)1Y0~TLu+zt`$LjcHZ;IlP!+(0>2hCjYj;Sw;F{~)QBw$ z+RLBXo|96HBgGHoi&AH?#rl@E=};xV*zOa}J1h~Mg$vAW9)Z%@DxF!jaR&v+m16~Q z5w$lp6N=f5^k9XGG8T!_(E|-AcV<~Gf_k=2U-Uu3GOl{Q)fA@G3?<*1y5qNCd#;=K zZZiS32c?ndEwzjkpSQryWvmvLCbGs-N8^*2(>{A!ZroZ09o^2Z%$XZLid{03w!8bFF`SEL@#vLrP1)eq#=p2;)EtZAlzNB7a8`~u!zFcL&E`HVe-=s9c$-oz zhOMi|q?bC8d@7Z!+BPM;j24bzZANO^I&7C(wVgA!vrPnvmbmf$#am2(EN8Z7dv~2{ z#Vb}E8z7)K8;DFgh&{5I6fCpyQTEJx-12xbTfm?4CxtFyxeL5uK~vQz5j35S_IhXt zbvcx<2d1qZidbOna7UfA>wG<|VEHP9RX->)u|$shVroInhN%14a_(kMsacu@Vz^~d z_1>`h_Tca0fOKgKu|eP2s1he&GdGiUAxOuXNAfQ%`gi`NRItp7LW%ET{SRi054Ndm zyP}thke$KO>`UHVepf2TII>oKyW!t;2|7t+12Xh(NQqwd(BCrI+jwWcOB}y7MjKZw zxy_APnmuHWwj?|3wOz(G7^(dux$GL#*ySc`a=KC2!sh)%%7VJHs_-y2m^pK8#opT^ zbmXqxehocd#83tqrLf%+Lq!jgT7hn83Gk z@PJVjS7q(e)}A*FP>4v`pg$)Wig^+NWX&-Ij8-wDT92`fBDl&w3k$MT1aSBg~lDOtgZ{Px{PI@EW3JeGnL8drr_;!mq$r(^QoEh_>j>*kYU}a{XJT$!^!kFQRZ5pn zr-gL-X5qg4PBQXE&-`R~$-;LXe_K_zeiL|O8$?#vV8V*|$;DxMF{lq4*h&z$L=Ihq z4hpo$sb2sOL^h(v?CRO31ivPyAi@kWlr;G%@RG$u%<9m!-Rr`>QFE<$Vcp*u<>K~@ zxm62-C90aeh-lk99&;57v+yq#YRt2CHb_hY30n0dS{b(Y8dc`HiBQ9BwRLE_`Aa*O z3EL$S3KLYLc>xm(2mA`Mi1@cK>Za2!?eN-Ib8AmW%J!jGP=Rn$Z*o!T5+=S=;3l zB^}Fjl&-d>qZ6d|x}~G0ceGnA-3DK?xnbK?RWuQFQG$uNlPZMI>GW-ZOvdeSkbl$C z``$P4D?_pg%Gf5#UXInF6SMDibG%rfA>Uek}_5b&rj~5wZg&l?4FlG({af;O;nh(W`+Jv6K!`{_Ugiw%ir;GZNsWt z&|a;l&bh^zhnByi5Lkn_fPgw~(JUa>uPm)GXRj&AUa`hRE8LsZZu1`Lqsf(S59x$e z*gAm}j?aZzD`zfx%cPY3Vm8}3bHi_w7bfG+cF5A)HjfKp&`I0;T7E~tdZ1r|kk(qX zcGzaywmXTD*kWW%A%3wMlHC!S+(yGTNUj%gyBF+sG|SyC?JD(?;w94#TEE8stRB&I z;<+J12A|4Ll@B?k=bX7E?=>m*4u``#sbT0w{GNE+dkU91lj)WTA+JB$Y3sCJUC6qb zMG^Hvcl%!Nf(!lo6d5A2JQ?p`a&t3`BeyJiJxs8o>;(i~c<7o!_UYIBExNV2mWwoc$y({-bbx`7NK8ZVYFxW6@yY%JCrXV^W) zYqsQ}u(9A)@{(>=%XAg2jymk3FJ`CVXUBC{Q{^Zf0n5x~!V-*T*Xgs{)M!J|1x@L? zkeC}$ZTL&p%EYH`3TIR6_|yU8^&>5Bqqe%O>B{&}?EZUGud#G14k?qKjar3$+!-p37^##wE`q+~4$@0= zblZ?JVbyO~K+jx;rlpPz+Q7%|f|NA^%}Yf~SFm@|XtuZ&U+d$AjCRBMUT24|u=ypo za;@R+Ka=0w{gad_S$QR+u1n`q4w?rX8jkDvdtqGb)1XF|HajnvqE1>uv}w&aU9-%` zmZeA})a+Ci^B&&#e7^00cQZ?(WEIT7MeBmbIVI#pCe>h!Egw~6UykdfFn+doM+WNc1su_YGUl9g!|Fv4Z*W5?xa zI+#f7FX~5@d56_WT20}R7_)K}%vIvEgYLw}hILz$!Bvu_x3|&su{A~|4Lh*DfwpJM z6-)@)!>@#QHq|~YM<}cvrl>kXrPn&#^e0HXZcd+i7be*!$`)KCO)*j|eB#|5@y4p~ zskf5|ocvO^f`IH!%`Eq-7p3}*4;7+kf(FmtVFqn=?e_UF(z6xSG45UB?UbimvS4FNLY1 zp|2PRYP496UznP^S&kZ;ixiBL__6O2_9q?mlJH6|GZdAi&7I*aT@pHD zaY+(>rXnVGH!kZIh1%NYy`d<{X&)6o_^#Qy?x~G0xKkA=3Z#u($>tmam|?;H#CBq~ zaRhS#3pWPn-ids>>=74??z9ZzCF%AB@I_ZF4Ws6-5fj8 zf{-)sNet)xBtI0c7!EsHf-PO%Y{k!bh6Tci6?j1iSVD4?1v}0;Rn?Dsd(1>) z6UB3H_w8rB>y$(j`cZFnC!@Pj+>%91gTF7}Bzd907(fcv3|X8p(&b34UwxO(?FF+4 z05S1C&o&~!Zm<=6bti3B_plC_HKtfKU!{>i3q2Z}E6*?O|2_W|YGa7Lf@#ROu@No= znUcl1wHPjMq(zkP#xY^5{(?f;z5y2{Fx{*PvKgvM7z?38YrGxt@!G@>-!@K~1qxG+ zjbo=^-ID%bSraswJOoShFIIol>$)8I(Ey_ps+()FX8qbuDu?&h%Wc4h+xS+MtOA{k7MK@0cN`ammsac%3T1B)gZocIb=Q|IHUAz{*z`bfSqkY z1?|PSR_l83c97Oej8pUmsWGDeXdcW2#Xm+dbS2GW)bOtOM+ver&gquN#M+-l2xAya zsR`ROop9Ne{0+zd;87Ezv0C?)QWT?Hwk_n*F4JSnnlbUiMQ{&#jH4ED!kIqDwkWt{ z+@yj6TBS*NWbSNMssOCEB<7EP@f*rax5rG)UByu0j6UMP<<+)3XSr2s1nwmGSi+2B(v$cPuWP!!D>0`|>h_cz zTncgcx|0#e|L6ys6@4hQk5l?0F|+{T%=LKRa*(fkk4r-?NLCT^YaU_@5n-%HnvJ5U zkG)1cjji`yrO=_t)JS>zB4hm)>m(5Tu;nknorGb7;EoA-M=Ak#7<374ytLE8l_|iA z_7>fc9+Xlsx{3><*vWU}L$+@G#SIJDdekiV^MkbW`hCi_CI);OYY013B`p=#ps4R> zQwqo>wA18mYfYAu79W*N5s0p`I+dm2!oVjtQrsjc%aA! z36yF&A5IFiqjVlI8D|Gi4^S%y)uQFkI079|1r_tDt*w{(0T9C(Q57QhfSJwq4-t$# zk050;qKd-PfVDZHMvV}%M$JSLiL@8a!jaE<2VUMxwxsvIm+c{?jFSFVH(5iEWyDZo z#O>*R+9+m7lOC3LpG`07pD-D;4;J3V<<0cBBHHf$nMSE+yDz%cA+3{cnUlz<6}!T@ z;!N^=nKb@mPnfetlk=YtSA_J@Pqf*LxpQg(_*Fa$-N-VSnX!-01ajM)f7gXrXeZcz zpB}>#5hy$D7NeHu1X}@{PMX6|4kRg`twM6;^HjP90V1IlUkGzm2Oj$(c#%q%rxf|W zcE&BB;DF0Tqo#;@-j-V{6<~)_$057Pv>wYFhD^<_y3K2}g-i$?Z9xbMV8vcXaIb=(JVox{KlNSU)0bQ@wiHrjcE3g%D4-|@Z008#qg|b1=nso$R$Ih zYR{JkbPGTe8&D+|Tl16qB1JgfmR9!c1YisU*u^x%222Q4{K<&zSm)6l#jyo4va+> zDS@&R>c1MD{rKe3 z%O~ml<)4Q?R0*Ql8pER}xAk699WsjtYN5&Q!A})3I|BHkKt+HKhbLWAf)KGRdV#M(=J0%lYXz}! z;B{n-2?&;z^$K@#ZZ1R}*{dUCha$>DMhxio8sW6pp>FAQObOq`3mncf6Eu)g0Fr(N z>29+KIaLo90?vLI-Tf&^JMOaCM`0c9;g$EB(AO6904${6v^EnenjGKCWp$@mtJXag z4v2Uawk8J%AQgM{4~XN#ROCGs*R`n(ZP=lLb=M&5ju3wg>u6SC9fdAb!463NlN88< zQP@!n>W5_~kgn=YbU*8ra^;o(3tRH``0*vCir8oN30+K literal 0 HcmV?d00001 diff --git a/po/ja.po b/po/ja.po new file mode 100644 index 0000000..19667c3 --- /dev/null +++ b/po/ja.po @@ -0,0 +1,2613 @@ +# Japanese message catalog for opensp (cvs/HEAD) +# Copyright (C) 2001 SATO Satoru +# SATO Satoru , 2001. +# +# I'm not much familiar with the SGML techinical term, so if you +# found any bugs in this message catalog, tell me or fix it, please. +msgid "" +msgstr "" +"Project-Id-Version: opensp cvs20010327\n" +"POT-Creation-Date: 2005-11-05 09:50+0000\n" +"PO-Revision-Date: 2001-03-27 09:04+09:00\n" +"Last-Translator: SATO Satoru \n" +"Language-Team: Japanese \n" +"MIME-Version:: 1.0\n" +"Content-Type: text/plain; charset=euc-jp\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "" +"no system identifier could be generated for meta-DTD for architecture %1" +msgstr "¹½Â¤ %1 ¤Î¥á¥¿DTD¤ËÂФ·¤Æ¥·¥¹¥Æ¥à¼±Ê̻ҤòÀ¸À®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿" + +msgid "element type %1 not defined in meta-DTD" +msgstr "Í×ÁÇ·¿ %1 ¤Ï¥á¥¿DTDÆâ¤Ç¤Ï̤ÄêµÁ¤Ç¤¹" + +msgid "element %1 invalid in meta-DTD because excluded" +msgstr "exclude ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¥á¥¿DTDÆâ¤Ç¤ÏÍ×ÁÇ %1 ¤ÏÉÔÀµ¤Ç¤¹" + +msgid "meta-DTD does not allow element %1 at this point" +msgstr "¥á¥¿DTD¤Ç¤Ï¤³¤³¤Ç¤ÎÍ×ÁÇ %1 ¤Î¸ºß¤ò¶Ø»ß¤·¤Æ¤¤¤Þ¤¹" + +msgid "document element must be instance of %1 element type form" +msgstr "ʸ½ñÍ×ÁǤÏÍ×ÁÇ·¿·Á¼° %1 ¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "element %1 unfinished in meta-DTD" +msgstr "Í×ÁÇ %1 ¤Ï¥á¥¿DTDÆâ¤Ç¤Ï̤ÄêµÁ¤Ç¤¹" + +msgid "missing substitute name" +msgstr "ÂåÂØ̾(substitute name)¤¬¤ß¤Ä¤«¤ê¤Þ¤»¤ó" + +msgid "substitute for non-existent architecture attribute %1" +msgstr "¸ºß¤·¤Ê¤¤¹½Â¤Â°À­ %1 ¤ËÂФ¹¤ëÂåÂØ" + +msgid "substitute name for %1 already defined" +msgstr "´û¤ËÄêµÁºÑ¤ß¤Î %1 ¤ÎÂåÂØ̾" + +msgid "substitute name %1 is not the name of an attribute" +msgstr "ÂåÂØ̾ %1 ¤Ï¹½Â¤Ì¾¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "reference in architecture to non-existent ID %1" +msgstr "¹½Â¤Æâ¤Ë¡¢Â¸ºß¤·¤Ê¤¤ID %1¤Ø¤Î»²¾È" + +msgid "architectural content specified with #ARCCONT not allowed by meta-DTD" +msgstr "#ARCCONT¤Ç»ØÄꤵ¤ì¤¿¹½Â¤ÆâÍƤϥ᥿DTD¤Ç¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "invalid value %1 for ArcSupr attribute" +msgstr "ArcSupr°À­¤ËÂФ·¤ÆÉÔŬÀÚ¤ÊÃÍ %1" + +msgid "no declaration for meta-DTD parameter entity %1" +msgstr "¥á¥¿DTD¥Ñ¥é¥á¥¿¼ÂÂÎ %1 ¤ÎÀë¸À¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "no declaration for meta-DTD general entity %1" +msgstr "¥á¥¿DTD°ìÈ̼ÂÂÎ %1 ¤ÎÀë¸À¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "meta-DTD entity %1 must be external" +msgstr "¥á¥¿DTD¼ÂÂÎ %1 ¤Ï³°Éô¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "no ArcDTD architecture support attribute specified" +msgstr "ArcDTD¹½Â¤¥µ¥Ý¡¼¥È°À­¤¬Ì¤»ØÄê¤Ç¤¹" + +msgid "ArcDataF notation %1 not defined in meta-DTD" +msgstr "ArcDataFµ­½Ò %1 ¤¬¥á¥¿DTDÆâ¤Ç¤Ï̤ÄêµÁ¤Ç¤¹" + +msgid "ID attribute %1 in meta-DTD not declared as ID in DTD" +msgstr "¥á¥¿DTDÆâ¤ÎID°À­ %1 ¤ÏDTDÆâ¤ÎID¤È¤·¤ÆÀë¸À¤µ¤ì¤Æ¤¤¤Þ¤»¤ó" + +msgid "invalid value %1 for ArcAuto architectural support attribute" +msgstr "ArcAuto¥µ¥Ý¡¼¥È°À­¤ËÂФ·¤ÆÉÔŬÀÚ¤ÊÃÍ %1" + +msgid "no notation declaration for architecture %1" +msgstr "¹½Â¤ %1 ¤ËÂФ·¤ÆÀë¸À¤Îµ­½Ò¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "meta-DTD does not allow data at this point" +msgstr "¥á¥¿DTD¤Ï¤³¤Î°ÌÃ֤ǤΥǡ¼¥¿¤ò¶Ø»ß¤·¤Æ¤¤¤Þ¤¹" + +msgid "invalid value %1 for ArcIgnD attribute" +msgstr "ArcIgnD°À­¤ËÂФ·¤ÆÉÔŬÀÚ¤ÊÃÍ %1" + +msgid "unrecognized quantity name %1" +msgstr "ǧ¼±¤µ¤ì¤Æ¤¤¤Ê¤¤ÎÌ̾ %1" + +msgid "no value specified for quantity %1" +msgstr "ÎÌ %1 ¤ËÂФ·¤ÆÃͤ¬Ì¤»ØÄê¤Ç¤¹" + +msgid "length of value %1 for quantity is too long" +msgstr "%1 ¤ÎÃͤÎŤµ¤¬Î̤ËÂФ·¤ÆŤ¹¤®¤Þ¤¹" + +msgid "invalid digit %1" +msgstr "ÉÔÀµ¤Ê¥Ç¥£¥¸¥Ã¥È %1" + +msgid "only value of nArcIndr for ArcIndr attribute supported" +msgstr "ArcIndr°À­¤ËÂФ·¤Æ¤ÏnArcIndrÃͤÀ¤±¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "#ARCCONT attribute already specified" +msgstr "#ARCCONT°À­¤Ï´û¤Ë»ØÄêºÑ¤ß¤Ç¤¹" + +msgid "invalid value %1 for #ARCCONT" +msgstr "#ARCCONT¤ËÂФ·¤ÆÉÔÀµ¤ÊÃÍ %1" + +msgid "%1 already used as a substitute name" +msgstr "%1 ¤Ï´û¤ËÂåÂØ̾¤È¤·¤Æ»ÈÍѤµ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "substitute name #CONTENT already specified" +msgstr "ÂåÂØ̾ #CONTENT¤Ï´û¤Ë»ØÄꤵ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "IS10744 PI keyword missing" +msgstr "" + +msgid "invalid IS10744 PI keyword %1" +msgstr "" + +#, fuzzy +msgid "architecture %1 already defined" +msgstr "¥ê¥ó¥¯¥»¥Ã¥È %1 ¤Ï´û¤ËÄêµÁºÑ¤ß¤Ç¤¹" + +msgid "the first definition" +msgstr "" + +#, fuzzy +msgid "ignoring PI declaration of architecture %1" +msgstr "¹½Â¤ %1 ¤ËÂФ·¤ÆÀë¸À¤Îµ­½Ò¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "the ArcBase definition" +msgstr "" + +#, fuzzy +msgid "ignoring ArcBase declaration of architecture %1" +msgstr "¹½Â¤ %1 ¤ËÂФ·¤ÆÀë¸À¤Îµ­½Ò¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "the PI definition" +msgstr "" + +msgid "name expected" +msgstr "ͽ´ü¤µ¤ì¤ë̾Á°" + +msgid "literal expected" +msgstr "ͽ´ü¤µ¤ì¤ë¥ê¥Æ¥é¥ë" + +msgid "name or literal expected" +msgstr "ͽ´ü¤µ¤ì¤ë̾Á°¤¢¤ë¤¤¤Ï¥ê¥Æ¥é¥ë" + +msgid "nul character" +msgstr "nulʸ»ú" + +msgid "not a minimum data character" +msgstr "ºÇ¾®¥Ç¡¼¥¿Ê¸»ú¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "end of entity in comment" +msgstr "¥³¥á¥ó¥ÈÆâ¤Ç¤Î¼ÂÂΤνªÃ¼" + +msgid "end of entity in literal" +msgstr "¥ê¥Æ¥é¥ëÆâ¤Ç¤Î¼ÂÂΤνªÃ¼" + +msgid "OVERRIDE requires argument of YES or NO" +msgstr "OVERRIDE¤Ï°ú¿ôYES¤¢¤ë¤¤¤ÏNO¤òɬÍפȤ·¤Þ¤¹" + +msgid "CATALOG entries cause loop" +msgstr "CATALOG¼ÂÂΤ¬¥ë¡¼¥×¤ò°ú¤­µ¯¤³¤·¤Æ¤¤¤Þ¤¹" + +msgid "second argument for SYSTEM entry should be quoted to avoid ambiguity" +msgstr "" +"SYSTEM¼ÂÂΤÎÂèÆó°ú¿ô¤Ï¤¢¤¤¤Þ¤¤¤µ¤ò¤µ¤±¤ë¤¿¤á¤Ë¥¯¥©¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤Ù¤­¤Ç¤¹" + +msgid "no DOCUMENT entry in catalog %1" +msgstr "¥«¥¿¥í¥° %1 Æâ¤ËDOCUMENT¥¨¥ó¥È¥ê¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "no entry for public identifier %1 in catalog %2" +msgstr "¸ø³«¼±ÊÌ»Ò %1 ¤Î¼ÂÂΤ¬¤¢¤ê¤Þ¤»¤ó(¥«¥¿¥í¥° %2 Æâ)" + +msgid "invalid option %1" +msgstr "ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó %1" + +msgid "missing argument for option %1" +msgstr "¥ª¥×¥·¥ç¥ó %1 ¤ËÂФ·¤Æ°ú¿ô¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "option %1 is ambiguous" +msgstr "¥ª¥×¥·¥ç¥ó %1 ¤Ï¤¢¤¤¤Þ¤¤¤Ç¤¹" + +msgid "option %1 doesn't allow an argument" +msgstr "¥ª¥×¥·¥ç¥ó %1 ¤Ë¤Ï°ú¿ô¤òɬÍפȤ·¤Þ¤»¤ó" + +msgid "Usage: %1" +msgstr "»È¤¤Êý: %1" + +msgid "or: %1" +msgstr "¤¢¤ë¤¤¤Ï: %1" + +msgid "%1 [OPTION] SYSID..." +msgstr "%1 [¥ª¥×¥·¥ç¥ó] SYSID..." + +msgid "Short options need the same arguments as their long forms." +msgstr "û¤«¤¤¥ª¥×¥·¥ç¥ó¤ÏŤ¤¥ª¥×¥·¥ç¥ó·Á¼°¤Î¾ì¹ç¤ÈƱ¤¸°ú¿ô¤òɬÍפȤ·¤Þ¤¹" + +msgid "%1 version %2" +msgstr "%1 ¥Ð¡¼¥¸¥ç¥ó %2" + +msgid "unknown BCTF %1" +msgstr "ÉÔÌÀ¤ÊBCTF %1" + +msgid "unknown encoding %1" +msgstr "ÉÔÌÀ¤Ê¥¨¥ó¥³¡¼¥Ç¥£¥ó¥° %1" + +msgid "cannot open output file %1 (%2)" +msgstr "½ÐÎÏ¥Õ¥¡¥¤¥ë %1 (%2)¤ò³«¤±¤Þ¤»¤ó" + +msgid "cannot close output file %1 (%2)" +msgstr "½ÐÎÏ¥Õ¥¡¥¤¥ë %1 (%2)¤òÊĤ¸¤ë¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó" + +msgid "Use bctf %1 for output." +msgstr "½ÐÎϤËÂФ·¤ÆÍøÍѤ¹¤ëBCTF %1" + +msgid "Use encoding %1 for output." +msgstr "½ÐÎϤ˥¨¥ó¥³¡¼¥Ç¥£¥ó¥° %1 ¤òÍøÍѤ·¤Þ¤¹" + +msgid "Append error messages to file %1." +msgstr "¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò¥Õ¥¡¥¤¥ë %1 ¤ËÄɲä·¤Þ¤¹" + +msgid "Display the program version." +msgstr "¥×¥í¥°¥é¥à¤Î¥Ð¡¼¥¸¥ç¥ó¤òɽ¼¨" + +msgid "Show this help text." +msgstr "¤³¤Î¥Ø¥ë¥×¥Æ¥­¥¹¥È¤òɽ¼¨" + +msgid "NAME" +msgstr "NAME" + +msgid "FILE" +msgstr "FILE" + +msgid "NOTHING" +msgstr "NOTHING" + +msgid "Try the \"--help\" option for more information." +msgstr "¤è¤ê¾ÜºÙ¤Ê¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï\"--help\"¤ò¤´ÍøÍѲ¼¤µ¤¤" + +msgid "ARG" +msgstr "ARG" + +msgid "Undocumented option (check the application's manual)." +msgstr "" +"ʸ½ñ²½¤µ¤ì¤Æ¤¤¤Ê¤¤¥ª¥×¥·¥ç¥ó(¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¥Þ¥Ë¥å¥¢¥ë¤ò»²¾È¤·¤Æ²¼¤µ¤¤)" + +msgid "Use catalog %1." +msgstr "¥«¥¿¥í¥° %1 ¤ò»ÈÍѤ·¤Þ¤¹" + +msgid "Arguments are catalogs, use DOCUMENT entry." +msgstr "°ú¿ô¤Ï¥«¥¿¥í¥°¤Ç¤¹¡£DOCUMENT¥¨¥ó¥È¥ê¤ò¤´ÍøÍѲ¼¤µ¤¤" + +msgid "Search files in directory %1." +msgstr "¥Ç¥£¥ì¥¯¥È¥ê %1 Æâ¤Ç¥Õ¥¡¥¤¥ë¤ò¸¡º÷¤·¤Þ¤¹" + +msgid "Restrict file reading (for use in Web apps)." +msgstr "" + +msgid "DIRECTORY" +msgstr "DIRECTORY" + +msgid "SYSID" +msgstr "SYSID" + +msgid "bad formal system identifier syntax in %1" +msgstr "%1 Æâ¤ËÉÔÀµ¤Ê¸ø¼°¤Î¥·¥¹¥Æ¥à¼±ÊÌ»Ò" + +msgid "value for attribute %1 missing in formal system identifier" +msgstr "°À­ %1 ¤ËÂФ¹¤ëÃͤϸø¼°¤Ê¥·¥¹¥Æ¥à¼±Ê̻ҤÎÃæ¤Ë¤Ï¤ß¤Ä¤«¤ê¤Þ¤»¤ó" + +msgid "%1 is a formal system identifier attribute value not an attribute name" +msgstr "%1 ¤Ï°À­Ì¾¤Ç¤Ï¤Ê¤¯¡¢¸ø¼°¤Ê¥·¥¹¥Æ¥à¼±Ê̻ҤΰÀ­ÃͤǤ¹" + +msgid "value of smcrd attribute must be a single character not %1" +msgstr "smcrd°À­ÃÍ¤Ï %1 ¤Ç¤Ï¤Ê¤¯¡¢Ã±°ìʸ»ú¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "unsupported record boundary indicator %1" +msgstr "¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¥ì¥³¡¼¥É¶­³¦»Ø¼¨»Ò %1" + +msgid "unsupported formal system identifier attribute %1" +msgstr "¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¸ø¼°¥·¥¹¥Æ¥à¼±Ê̻ҰÀ­ %1" + +msgid "unsupported formal system identifier attribute value %1" +msgstr "¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¸ø¼°¥·¥¹¥Æ¥à¼±Ê̻ҤΰÀ­ÃÍ %1" + +msgid "bad value %1 for formal system identifier tracking attribute" +msgstr "°À­¤òÊä­¤¹¤ë¸ø¼°¤Ê¥·¥¹¥Æ¥à¼±Ê̻ҤËÂФ·¤ÆÉÔÀµ¤ÊÃÍ %1" + +msgid "duplicate specification for formal system identifier attribute %1" +msgstr "¸ø¼°¤Î¥·¥¹¥Æ¥à¼±Ê̻ҤΰÀ­ %1 ¤ËÂФ·¤Æ½ÅÊ£¤¹¤ë»ØÄê" + +msgid "bad value %1 for formal system identifier zapeof attribute" +msgstr "¸ø¼°¤Î¥·¥¹¥Æ¥à¼±ÊÌ»Ò zapeof °À­¤ËÂФ·¤ÆÉÔÀµ¤ÊÃÍ %1" + +msgid "bad value %1 for formal system identifier search attribute" +msgstr "¸ø¼°¤Î¥·¥¹¥Æ¥à¼±Ê̻Ҥθ¡º÷°À­¤ËÂФ·¤ÆÉÔÀµ¤ÊÃÍ %1" + +msgid "bad value %1 for formal system identifier fold attribute" +msgstr "¸ø¼°¤Î¥·¥¹¥Æ¥à¼±Ê̻ҤΠfold °À­¤ËÂФ·¤ÆÉÔÀµ¤ÊÃÍ %1" + +msgid "fold attribute allowed only for neutral storage manager" +msgstr "fold°À­¤Ï¥Ë¥å¡¼¥È¥é¥ë¥¹¥È¥ì¡¼¥¸¥Þ¥Í¡¼¥¸¥ã¤ËÂФ·¤Æ¤Î¤ßµö²Ä¤µ¤ì¤Þ¤¹" + +msgid "bctf and encoding attributes not applicable to this storage manager" +msgstr "" +"BCTF¤È¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°Â°À­¤Ï¤³¤Î¥¹¥È¥ì¡¼¥¸¥Þ¥Í¡¼¥¸¥ã¤Ë¤Ä¤¤¤Æ¤ÏŬÍѤǤ­¤Þ¤»¤ó" + +msgid "cannot specify both bctf and encoding attribute" +msgstr "BCTF¡¢¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ÎξÊý¤Î°À­¤Ï»ØÄê¤Ç¤­¤Þ¤»¤ó" + +msgid "zapeof attribute not applicable to this storage manager" +msgstr "zapeof°À­¤Ï¤³¤Î¥¹¥È¥ì¡¼¥¸¥Þ¥Í¡¼¥¸¥ã¤Ë¤Ä¤¤¤Æ¤ÏŬÍѤǤ­¤Þ¤»¤ó" + +msgid "records attribute not applicable to this storage manager" +msgstr "¥ì¥³¡¼¥É°À­¤Ï¤³¤Î¥¹¥È¥ì¡¼¥¸¥Þ¥Í¡¼¥¸¥ã¤Ë¤Ä¤¤¤Æ¤ÏŬÍѤǤ­¤Þ¤»¤ó" + +msgid "bad value %1 for formal system identifier indirect attribute" +msgstr "¸ø¼°¤Î¥·¥¹¥Æ¥à¼±Ê̻ҤδÖÀÜ°À­¤ËÂФ·¤ÆÉÔÀµ¤ÊÃÍ %1" + +msgid "" +"non-minimum data character (number %1) in value of formal system identifier " +"lookup attribute" +msgstr "¸ø¼°¥·¥¹¥Æ¥à¼±Ê̻Ҥθ¡º÷°À­¤ÎÃÍÆâ¤ËÈóºÇ¾®¥Ç¡¼¥¿Ê¸»ú(ÈÖ¹æ %1)" + +msgid "st" +msgstr "st" + +msgid "nd" +msgstr "nd" + +msgid "rd" +msgstr "rd" + +msgid "th" +msgstr "th" + +msgid "(invalid argument type)" +msgstr "(ÉÔÀµ¤Ê°ú¿ô¥¿¥¤¥×)" + +msgid "(invalid message)" +msgstr "(ÉÔÀµ¤Ê¥á¥Ã¥»¡¼¥¸)" + +msgid "I" +msgstr "I" + +msgid "W" +msgstr "W" + +msgid "Q" +msgstr "Q" + +msgid "X" +msgstr "X" + +msgid "E" +msgstr "E" + +msgid "open elements" +msgstr "¥¨¥ì¥á¥ó¥È¤¬³«¤¤¤Æ¤¤¤Þ¤¹" + +msgid "In entity %1 included from %2" +msgstr "¼ÂÂÎ %1 (%2 ¤«¤é include)Æâ" + +msgid "In entity included from %2" +msgstr "%2 ¤«¤é include ¤µ¤ì¤¿¼ÂÂÎÆâ" + +msgid "(invalid location)" +msgstr "(ÉÔÀµ¤Ê°ÌÃÖ)" + +msgid "offset " +msgstr "¥ª¥Õ¥»¥Ã¥È" + +msgid "relevant clauses: " +msgstr "ŬÀÚ¤ÊÀá: " + +msgid "unknown warning type %1" +msgstr "ÉÔÌÀ¤Ê·Ù¹ð¥¿¥¤¥× %1" + +msgid "invalid error limit" +msgstr "ÉÔŬÀڤʥ¨¥é¡¼À©¸Â" + +msgid "maximum number of errors (%1) reached; change with -E option" +msgstr "" +"¥¨¥é¡¼¿ô¤Î¾å¸Â¿ô (%1) ¤Ë㤷¤Þ¤·¤¿¡£¥¨¥é¡¼¿ô¾å¸Â¤òÊѹ¹¤¹¤ë¤Ë¤Ï -E ¥ª¥×¥·¥ç¥ó" +"¤ò¤´ÍøÍѲ¼¤µ¤¤" + +msgid "Make doctype or linktype %1 active." +msgstr "DOCTYPE¤¢¤ë¤¤¤ÏLINKTYPE %1 ¤ò¥¢¥¯¥Æ¥£¥Ö¤Ë¤·¤Æ²¼¤µ¤¤" + +msgid "Parse wrt. architecture %1." +msgstr "wrt ²òÀÏ¡£¹½Â¤ %1" + +msgid "Give up after %1 errors." +msgstr "%1 ¥¨¥é¡¼¤Î¸å¤ÇÃæÃǤ·¤Þ¤·¤¿" + +msgid "Show open entities in error messages." +msgstr "¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸Æâ¤Ç³«¤¤¤¿¼ÂÂΤòɽ¼¨" + +msgid "Show open elements in error messages." +msgstr "¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸Æâ¤Ç³«¤¤¤¿Í×ÁǤòɽ¼¨" + +msgid "Show error numbers in error messages." +msgstr "¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸Æâ¤Î¥¨¥é¡¼¿ô¤òɽ¼¨" + +msgid "Show references in error messages." +msgstr "¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸Æâ¤Î»²¾È¤òɽ¼¨" + +msgid "Define parameter entity %1 as \"INCLUDE\"." +msgstr "ÊÑ¿ô¼ÂÂÎ %1 ¤ò \"INCLUDE\" ¤ÇÄêµÁ¤·¤Æ²¼¤µ¤¤" + +msgid "Enable warning %1." +msgstr "·Ù¹ð %1 ¤òÍ­¸ú¤Ë¤¹¤ë" + +msgid "TYPE" +msgstr "TYPE" + +msgid "NUMBER" +msgstr "NUMBER" + +msgid "length of name must not exceed NAMELEN (%1)" +msgstr "̾Á°¤ÎŤµ¤ÏNAMELEN(%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "" +"length of parameter entity name must not exceed NAMELEN less the length of " +"the PERO delimiter (%1)" +msgstr "" +"ÊÑ¿ô¼ÂÂÎŤÏPERO¥Ç¥ê¥ß¥¿(%1)¤è¤êŤ¯¡¢NAMELEN¤è¤êû¤«¤¯¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó" + +msgid "length of number must not exceed NAMELEN (%1)" +msgstr "̾Á°¤ÎŤµ¤ÏNAMELEN (%1) ¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "length of attribute value must not exceed LITLEN less NORMSEP (%1)" +msgstr "" +"°À­ÃͤÎŤµ¤ÏNORMSEP (%1) ¤è¤êŤ¯¡¢LITLEN¤è¤êû¤«¤¯¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"a name group is not allowed in a parameter entity reference in the prolog" +msgstr "¥×¥í¥í¡¼¥°Æâ¤ÎÊÑ¿ô¼ÂÂλ²¾ÈÆâ¤Ç¤Î¥°¥ë¡¼¥×̾¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "" +"an entity end in a token separator must terminate an entity referenced in " +"the same group" +msgstr "" +"¥È¡¼¥¯¥ó¶èÀÚ¤ê»ÒÆâ¤Ç¤Î¼ÂÂΤνªÃ¼¤ÏƱ¤¸¥°¥ë¡¼¥×Æâ¤Ç¤Î¼ÂÂλ²¾È¤Ç½ª¤Ã¤Æ¤¤¤Ê¤±¤ì" +"¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "character %1 invalid: only %2 and token separators allowed" +msgstr "ÉÔÀµ¤Ê¥­¥ã¥é¥¯¥¿ %1: ²Äǽ¤Ê¤Î¤Ï %2 ¤È¥È¡¼¥¯¥ó¶èÀÚ¤ê»Ò¤À¤±¤Ç¤¹" + +msgid "" +"a parameter separator is required after a number that is followed by a name " +"start character" +msgstr "̾Á°³«»Ïʸ»ú¤¬¸å¤Ë³¤¯¿ô»ú¤Î¸å¤Ë¤ÏÊÑ¿ô¶èÀÚ¤ê»Ò¤¬É¬ÍפǤ¹" + +msgid "character %1 invalid: only %2 and parameter separators allowed" +msgstr "ÉÔÀµ¤Ê¥­¥ã¥é¥¯¥¿ %1: ²Äǽ¤Ê¤Î¤Ï %2 ¤ÈÊÑ¿ô¶èÀÚ¤ê»Ò¤À¤±¤Ç¤¹" + +#, fuzzy +msgid "" +"an entity end in a parameter separator must terminate an entity referenced " +"in the same declaration" +msgstr "" +"ÊÑ¿ô¶èÀÚ¤ê»ÒÆâ¤Ç¤Î¼ÂÂΤνªÃ¼¤ÇƱ¤¸Àë¸ÀÆâ¤Ç»²¾È¤µ¤ì¤Æ¤¤¤ë¼ÂÂΤò½ª¤é¤»¤Æ¤¤¤Ê¤±" +"¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"an entity end is not allowed in a token separator that does not follow a " +"token" +msgstr "" +"¥È¡¼¥¯¥ó¤¬¸å¤Ë³¤«¤Ê¤¤¡¢¥È¡¼¥¯¥ó¶èÀÚ¤ê»ÒÆâ¤Î¼ÂÂΤνªÃ¼¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "%1 is not a valid token here" +msgstr "¤³¤³¤Ç¤Ï %1 ¤ÏŬÀڤʥȡ¼¥¯¥ó¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "" +"a parameter entity reference can only occur in a group where a token could " +"occur" +msgstr "ÊÑ¿ô¼ÂÂλ²¾È¤Ï¥È¡¼¥¯¥ó¤Î¤¢¤ë¥°¥ë¡¼¥×Æâ¤Ç¤Î¤ß²Äǽ¤Ç¤¹" + +msgid "token %1 has already occurred in this group" +msgstr "¥È¡¼¥¯¥ó %1 ¤Ï´û¤Ë¤³¤Î¥°¥ë¡¼¥×Æâ¤Ë¤¢¤ê¤Þ¤¹" + +msgid "the number of tokens in a group must not exceed GRPCNT (%1)" +msgstr "¥°¥ë¡¼¥×Æâ¤Ç¤Î¥È¡¼¥¯¥ó¿ô¤ÏGRPCNT (%1) ¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +#, fuzzy +msgid "" +"an entity end in a literal must terminate an entity referenced in the same " +"literal" +msgstr "" +"¥ê¥Æ¥é¥ëÆâ¤Ç¤Î¼ÂÂΤνªÃ¼¤ÏƱ¤¸¥ê¥Æ¥é¥ëÆâ¤Ç»²¾È¤µ¤ì¤Æ¤¤¤ë¼ÂÂΤǽª¤Ã¤Æ¤¤¤Ê¤±¤ì" +"¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "character %1 invalid: only minimum data characters allowed" +msgstr "ÉÔÀµ¤Êʸ»ú %1: ²Äǽ¤Ê¤Î¤ÏºÇ¾®¥Ç¡¼¥¿Ê¸»ú¤À¤±¤Ç¤¹" + +msgid "" +"a parameter literal in a data tag pattern must not contain a numeric " +"character reference to a non-SGML character" +msgstr "" +"¥Ç¡¼¥¿¥¿¥°¥Ñ¥¿¡¼¥óÆâ¤ÎÊÑ¿ô¥ê¥Æ¥é¥ë¤ÏÈóSGMLʸ»ú¤Ø¤Î¿ô»ú»²¾È¤ò´Þ¤ó¤Ç¤¤¤Æ¤Ï¤¤¤±" +"¤Þ¤»¤ó" + +msgid "" +"a parameter literal in a data tag pattern must not contain a numeric " +"character reference to a function character" +msgstr "" +"¥Ç¡¼¥¿¥¿¥°¥Ñ¥¿¡¼¥ó¥óÆâ¤ÎÊÑ¿ô¥ê¥Æ¥é¥ë¤Ï´Ø¿ôʸ»ú¤Ø¤Î¿ô»ú»²¾È¤ò´Þ¤ó¤Ç¤¤¤Æ¤Ï¤¤¤±" +"¤Þ¤»¤ó" + +msgid "" +"a name group is not allowed in a general entity reference in a start tag" +msgstr "³«»Ï¥¿¥°Æâ¤Î°ìÈ̼ÂÂλ²¾ÈÆâ¤Ç¤Ï̾Á°¥°¥ë¡¼¥×¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "a name group is not allowed in a general entity reference in the prolog" +msgstr "¥×¥í¥í¡¼¥°Æâ¤Î°ìÈ̼ÂÂλ²¾ÈÆâ¤Ç¤Ï̾Á°¥°¥ë¡¼¥×¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "%1 is not a function name" +msgstr "%1 ¤Ï´Ø¿ô̾¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "%1 is not a character number in the document character set" +msgstr "%1 ¤Ïʸ½ñʸ»ú¥»¥Ã¥ÈÆâ¤Îʸ»úÈÖ¹æ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "parameter entity %1 not defined" +msgstr "ÊÑ¿ô¼ÂÂÎ %1 ¤Ï̤ÄêµÁ¤Ç¤¹" + +msgid "general entity %1 not defined and no default entity" +msgstr "°ìÈ̼ÂÂÎ %1 ¤Ï̤ÄêµÁ¤Ç¥Ç¥Õ¥©¥ë¥È¼ÂÂΤ⤢¤ê¤Þ¤»¤ó" + +msgid "RNI delimiter must be followed by name start character" +msgstr "RNI¥Ç¥ê¥ß¥¿¤Ï̾Á°³«»Ïʸ»ú¤¬¸å¤Ë³¤«¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "unterminated comment: found end of entity inside comment" +msgstr "ÊĤ¸¤é¤ì¤Æ¤¤¤Ê¤¤¥³¥á¥ó¥È: ¥³¥á¥ó¥ÈÆâ¤Ë¼ÂÂΤνªÃ¼¤¬¤¢¤ê¤Þ¤¹" + +msgid "comment started here" +msgstr "¥³¥á¥ó¥È³«»Ï" + +msgid "only one type of connector should be used in a single group" +msgstr "ñ°ì¥°¥ë¡¼¥×Æâ¤Ç¤Ï°ì¼ïÎà¤Î¥³¥Í¥¯¥¿¤À¤±¤òÍøÍѤ¹¤ë¤Ù¤­¤Ç¤¹" + +msgid "%1 is not a reserved name" +msgstr "%1 ¤Ï³ÎÊݤ·¤Æ¤¤¤¿Ì¾Á°¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "%1 is not allowed as a reserved name here" +msgstr "%1 ¤Ï³ÎÊݤ·¤Æ¤¤¤¿Ì¾Á°¤È¤·¤Æ¤³¤³¤ÇÍøÍѤ¹¤ë¤³¤È¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "" +"length of interpreted minimum literal must not exceed reference LITLEN (%1)" +msgstr "²ò¼á¤µ¤ì¤¿ºÇ¾®¥ê¥Æ¥é¥ë¤ÎŤµ¤ÏLITLEN (%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "" +"length of tokenized attribute value must not exceed LITLEN less NORMSEP (%1)" +msgstr "" +"¥È¡¼¥¯¥ó²½Â°À­ÃͤÎŤµ¤ÏNORMSEP (%1)¤è¤êŤ¯¡¢LITLEN¤è¤êû¤«¤¯¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ" +"¤»¤ó" + +msgid "length of system identifier must not exceed LITLEN (%1)" +msgstr "¥·¥¹¥Æ¥à¼±Ê̻ҤÎŤµ¤ÏLITLEN (%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "length of interpreted parameter literal must not exceed LITLEN (%1)" +msgstr "²ò¼á¤µ¤ì¤¿ÊÑ¿ô¥ê¥Æ¥é¥ë¤ÎŤµ¤ÏLITLEN (%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "" +"length of interpreted parameter literal in data tag pattern must not exceed " +"DTEMPLEN (%1)" +msgstr "" +"¥Ç¡¼¥¿¥¿¥°¥Ñ¥¿¡¼¥óÆâ¤Î²ò¼á¤µ¤ì¤¿ÊÑ¿ô¥ê¥Æ¥é¥ë¤ÎŤµ¤ÏDTEMPLEN (%1)¤ò±Û¤¨¤Æ¤Ï¤¤" +"¤±¤Þ¤»¤ó" + +msgid "literal is missing closing delimiter" +msgstr "¥ê¥Æ¥é¥ë¤ÏÊĥǥê¥ß¥¿¤ò¤â¤Ã¤Æ¤¤¤Þ¤»¤ó" + +msgid "%1 invalid: only %2 and parameter separators are allowed" +msgstr "%1 ¤ÏÉÔŬÀڤǤ¹: ²Äǽ¤Ê¤Î¤Ï %2 ¤ÈÊÑ¿ô¶èÀÚ¤ê»Ò¤À¤±¤Ç¤¹" + +msgid "%1 invalid: only %2 and token separators are allowed" +msgstr "%1 ¤ÏÉÔŬÀڤǤ¹: ²Äǽ¤Ê¤Î¤Ï %2 ¤È¥È¡¼¥¯¥ó¶èÀÚ¤ê»Ò¤À¤±¤Ç¤¹" + +msgid "unknown declaration type %1" +msgstr "ÉÔÌÀ¤ÊÀë¸À¥¿¥¤¥× %1" + +msgid "%1 declaration not allowed in DTD subset" +msgstr "DTD¥µ¥Ö¥»¥Ã¥ÈÆâ¤Ç¤Ï %1 Àë¸À¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "character %1 not allowed in declaration subset" +msgstr "Àë¸À¥µ¥Ö¥»¥Ã¥ÈÆâ¤Ç¤Ïʸ»ú %1 ¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "end of document in DTD subset" +msgstr "DTD¥µ¥Ö¥»¥Ã¥ÈÆâ¤Ëʸ½ñ¤Î½ªÃ¼¤¬¤¢¤ê¤Þ¤¹" + +msgid "character %1 not allowed in prolog" +msgstr "¥×¥í¥í¡¼¥°Æâ¤Ç¤Ïʸ»ú %1 ¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "end of document in prolog" +msgstr "¥×¥í¥í¡¼¥°Æâ¤Ëʸ½ñ¤Î½ªÃ¼¤¬¤¢¤ê¤Þ¤¹" + +msgid "%1 declaration not allowed in prolog" +msgstr "¥×¥í¥í¡¼¥°Æâ¤Ç¤Ï %1 Àë¸À¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "%1 used both a rank stem and generic identifier" +msgstr "%1 ¤Ï¥é¥ó¥¯¥¹¥Æ¥à¤È°ìÈ̼±Ê̻ҤÎξÊý¤ÇÍøÍѤµ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "" +"omitted tag minimization parameter can be omitted only if OMITTAG NO is " +"specified" +msgstr "¾Êά¥¿¥°ºÇ¾®²½ÊÑ¿ô¤ÏOMITTAG NO ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Î¤ß¾Êά¤Ç¤­¤Þ¤¹" + +msgid "element type %1 already defined" +msgstr "Í×ÁÇ¥¿¥¤¥× %1 ¤Ï´û¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "entity reference with no applicable DTD" +msgstr "ŬÀÚ¤ÊDTD¤Ê¤·¤Î¼ÂÂλ²¾È" + +msgid "" +"invalid comment declaration: found %1 outside comment but inside comment " +"declaration" +msgstr "" +"ÉÔÀµ¤Ê¥³¥á¥ó¥ÈÀë¸À: %1 ¤ò¥³¥á¥ó¥È³°¤Ë¤ß¤Ä¤±¤Þ¤·¤¿¤¬¥³¥á¥ó¥ÈÀë¸ÀÆâÉô¤Ç¤¹" + +msgid "comment declaration started here" +msgstr "¥³¥á¥ó¥ÈÀë¸À³«»Ï" + +msgid "%1 declaration not allowed in instance" +msgstr "¥¤¥ó¥¹¥¿¥ó¥¹Æâ¤Ç¤Ï %1 Àë¸À¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "non-SGML character not allowed in content" +msgstr "ÆâÍÆÆâ¤Ç¤ÏÈóSGMLʸ»ú¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "no current rank for rank stem %1" +msgstr "¥é¥ó¥¯¥¹¥Æ¥à %1 ¤ËÂФ·¤Æ¥é¥ó¥¯¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "duplicate attribute definition list for notation %1" +msgstr "µ­½Ò %1 ¤ËÂФ·¤Æ½ÅÊ£¤¹¤ë°À­ÄêµÁ¥ê¥¹¥È" + +msgid "duplicate attribute definition list for element %1" +msgstr "Í×ÁÇ %1 ¤ËÂФ·¤Æ½ÅÊ£¤¹¤ë°À­ÄêµÁ¥ê¥¹¥È" + +msgid "entity end not allowed in end tag" +msgstr "½ªÎ»¥¿¥°Æâ¤Ç¤Î¼ÂÂΤνªÃ¼¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "character %1 not allowed in end tag" +msgstr "½ªÎ»¥¿¥°Æâ¤Ç¤Îʸ»ú %1 ¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "%1 invalid: only S separators and TAGC allowed here" +msgstr "%1 ¤ÏÉÔÀµ¤Ç¤¹: ²Äǽ¤Ê¤Î¤ÏS¶èÀÚ¤ê»Ò¤ÈTAGC¤À¤±¤Ç¤¹" + +msgid "character data is not allowed here" +msgstr "ʸ»ú¥Ç¡¼¥¿¤Ï¤³¤³¤Ç¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "document type does not allow element %1 here" +msgstr "ʸ½ñ·¿¤Ï¤³¤³¤Ç¤ÎÍ×ÁÇ %1 ¤ò¶Ø»ß¤·¤Æ¤¤¤Þ¤¹" + +msgid "" +"document type does not allow element %1 here; missing one of %2 start-tag" +msgstr "" +"ʸ½ñ·¿¤Ï¤³¤³¤Ç¤ÎÍ×ÁÇ %1 ¤ò¶Ø»ß¤·¤Æ¤¤¤Þ¤¹¡£%2 ³«»Ï¥¿¥°¤Î°ì¤Ä¤¬¤ß¤Ä¤«¤ê¤Þ¤»¤ó" + +msgid "" +"document type does not allow element %1 here; assuming missing %2 start-tag" +msgstr "ʸ½ñ·¿¤Ï¤³¤³¤Ç¤ÎÍ×ÁÇ %1 ¤ò¶Ø»ß¤·¤Æ¤¤¤Þ¤¹¡£%2 ³«»Ï¥¿¥°¤¬¤Ê¤¤¤è¤¦¤Ç¤¹" + +msgid "no start tag specified for implied empty element %1" +msgstr "°ÅÌۤζõÍ×ÁÇ %1 ¤ËÂФ·¤Æ³«»Ï¥¿¥°¤¬»ØÄꤵ¤ì¤Æ¤¤¤Þ¤»¤ó" + +msgid "end tag for %1 omitted, but its declaration does not permit this" +msgstr "%1 ¤Î½ªÎ»¥¿¥°¤¬¾Êά¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬Àë¸À¤Ç¤Ï¤³¤ì¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "start tag was here" +msgstr "³«»Ï¥¿¥°¤Ï¤³¤³¤Ç¤·¤¿" + +msgid "end tag for %1 omitted, but OMITTAG NO was specified" +msgstr "%1 ¤Î½ªÎ»¥¿¥°¤¬¾Êά¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬OMITTAG NO ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Þ¤·¤¿" + +msgid "start tag omitted for element %1 with declared content" +msgstr "Àë¸À¤µ¤ì¤¿ÆâÍƤòȼ¤¦Í×ÁÇ %1 ¤Ë¤Ä¤¤¤Æ³«»Ï¥¿¥°¤¬¾Êά¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "end tag for %1 which is not finished" +msgstr "ÊĤ¸¤Æ¤¤¤Ê¤¤ %1 ¤Î½ªÎ»¥¿¥°" + +msgid "start tag for %1 omitted, but its declaration does not permit this" +msgstr "%1 ¤Î³«»Ï¥¿¥°¤¬¾Êά¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬Àë¸À¤Ç¤Ï¤³¤ì¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "number of open elements exceeds TAGLVL (%1)" +msgstr "³«¤¤¤¿Í×ÁÇ¿ô¤¬TAGLVL (%1) ¤ò±Û¤¨¤Æ¤¤¤Þ¤¹" + +msgid "element %1 undefined" +msgstr "Í×ÁÇ %1 ¤Ï̤ÄêµÁ" + +msgid "empty end tag but no open elements" +msgstr "¶õ½ªÎ»¥¿¥°¤¬¤¢¤ê¤Þ¤¹¤¬¡¢³«¤¤¤¿Í×ÁǤϤ¢¤ê¤Þ¤»¤ó" + +msgid "%1 not finished but containing element ended" +msgstr "%1 ¤ÏÊĤ¸¤Æ¤¤¤Þ¤»¤ó¤¬¡¢Í×ÁǤò½ªÃ¼¤Ë´Þ¤ó¤Ç¤¤¤Þ¤¹" + +msgid "end tag for element %1 which is not open" +msgstr "³«¤¤¤Æ¤¤¤Ê¤¤Í×ÁÇ %1 ¤ËÂФ¹¤ë½ªÎ»¥¿¥°" + +msgid "internal parameter entity %1 cannot be CDATA or SDATA" +msgstr "ÆâÉôÊÑ¿ô¼ÂÂÎ %1 ¤Ï CDATA ¤¢¤ë¤¤¤Ï SDATA ¤Ë¤Ï¤Ê¤ê¤¨¤Þ¤»¤ó" + +msgid "character %1 not allowed in attribute specification list" +msgstr "°À­»ØÄê¥ê¥¹¥ÈÆâ¤Ç¤Ïʸ»ú %1 ¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "" +"an attribute value must be a literal unless it contains only name characters" +msgstr "°À­Ãͤϡ¢Ì¾Á°Ê¸»ú¤À¤±¤ò´Þ¤à¤Î¤Ç¤Ê¤±¤ì¤Ð¥ê¥Æ¥é¥ë¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"entity end not allowed in attribute specification list except in attribute " +"value literal" +msgstr "" +"°À­ÃÍ¥ê¥Æ¥é¥ëÆâ¤ò½ü¤±¤Ð°À­»ØÄê¥ê¥¹¥ÈÆâ¤Ç¤Ï¼ÂÂΤνªÃ¼¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "external parameter entity %1 cannot be CDATA, SDATA, NDATA or SUBDOC" +msgstr "" +"³°ÉôÊÑ¿ô¼ÂÂÎ %1 ¤ÏCDATA¡¢SDATA¡¢NDATA¡¢¤¢¤ë¤¤¤Ï SUBDOC ¤Ë¤Ï¤Ê¤ê¤¨¤Þ¤»¤ó" + +msgid "duplicate declaration of entity %1" +msgstr "¼ÂÂÎ %1 ¤Î½ÅÊ£¤¹¤ëÀë¸À" + +msgid "duplicate declaration of parameter entity %1" +msgstr "ÊÑ¿ô¼ÂÂÎ %1 ¤Î½ÅÊ£¤¹¤ëÀë¸À" + +msgid "" +"a reference to a PI entity is allowed only in a context where a processing " +"instruction could occur" +msgstr "PI ¼ÂÂΤؤλ²¾È¤Ïµ¯¤ê¤¦¤ë»ØÎá¤ò½èÍýÃæ¤Îʸ̮Æâ¤Ç¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "" +"a reference to a CDATA or SDATA entity is allowed only in a context where a " +"data character could occur" +msgstr "" +"µ¯¤ê¤¦¤ë¥Ç¡¼¥¿Ê¸»ú¤Îʸ̮Æâ¤Ç¤Î CDATA ¤¢¤ë¤¤¤Ï SDATA ¼ÂÂΤؤλ²¾È¤Ï¶Ø»ß¤µ¤ì¤Æ" +"¤¤¤Þ¤¹" + +msgid "" +"a reference to a subdocument entity or external data entity is allowed only " +"in a context where a data character could occur" +msgstr "" +"µ¯¤ê¤¦¤ë¥Ç¡¼¥¿Ê¸»ú¤Îʸ̮Æâ¤Ç¤Î³°Éô¥Ç¡¼¥¿¼ÂÂΤ¢¤ë¤¤¤Ï¥µ¥Öʸ½ñ¼ÂÂΤؤλ²¾È¤Ï¶Ø" +"»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "" +"a reference to a subdocument entity or external data entity is not allowed " +"in replaceable character data" +msgstr "" +"ÃÖ¤­´¹¤¨²Äǽ¤Êʸ»ú¥Ç¡¼¥¿Æâ¤Ç¤Î³°Éô¥Ç¡¼¥¿¼ÂÂΤ¢¤ë¤¤¤Ï¥µ¥Öʸ½ñ¼ÂÂΤؤλ²¾È¤Ï¶Ø" +"»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "the number of open entities cannot exceed ENTLVL (%1)" +msgstr "³«¤¤¤¿¼ÂÂοô¤ÏENTLVL (%1) ¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "a reference to a PI entity is not allowed in replaceable character data" +msgstr "ÃÖ¤­´¹¤¨²Äǽ¤Êʸ»ú¥Ç¡¼¥¿Æâ¤Ç¤ÎPI¼ÂÂΤؤλ²¾È¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "entity %1 is already open" +msgstr "¼ÂÂÎ %1 ¤Ï´û¤Ë³«¤¤¤Æ¤¤¤Þ¤¹" + +msgid "short reference map %1 not defined" +msgstr "û½Ì»²¾È¥Þ¥Ã¥× %1 ¤Ï̤ÄêµÁ¤Ç¤¹" + +msgid "short reference map in DTD must specify associated element type" +msgstr "DTD Æâ¤Ç¤Îû½Ì»²¾È¥Þ¥Ã¥×¤Ï´ØÏ¢¤¹¤ëÍ×ÁÇ¥¿¥¤¥×¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"short reference map in document instance cannot specify associated element " +"type" +msgstr "" +"ʸ½ñ¥¤¥ó¥¹¥¿¥ó¥¹Æâ¤Ç¤Îû½Ì»²¾È¥Þ¥Ã¥×¤Ç¤Ï´ØÏ¢¤¹¤ëÍ×ÁÇ¥¿¥¤¥×¤ò»ØÄê¤Ç¤­¤Þ¤»¤ó" + +msgid "short reference map %1 for element %2 not defined in DTD" +msgstr "Í×ÁÇ %2 ¤ËÂФ¹¤ëû½Ì»²¾È¥Þ¥Ã¥× %1 ¤ÏDTDÆâ¤Ç¤Ï̤ÄêµÁ¤Ç¤¹" + +msgid "%1 is not a short reference delimiter" +msgstr "%1 ¤Ïû½Ì»²¾È¥Ç¥ê¥ß¥¿¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "short reference delimiter %1 already mapped in this declaration" +msgstr "û½Ì»²¾È¥Ç¥ê¥ß¥¿ %1 ¤Ï´û¤Ë¤³¤ÎÀë¸ÀÆâ¤Ç¥Þ¥Ã¥×¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "no document element" +msgstr "ʸ½ñÍ×ÁǤ¬¤ß¤Ä¤«¤ê¤Þ¤»¤ó" + +msgid "entity end not allowed in processing instruction" +msgstr "¼ÂÂΤνªÃ¼¤Ï»ØÎá½èÍýÆâ¤Ç¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "length of processing instruction must not exceed PILEN (%1)" +msgstr "»ØÎá½èÍý¤ÎŤµ¤ÏPILEN (%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "missing PIC delimiter" +msgstr "PIC¥Ç¥ê¥ß¥¿¤¬¤ß¤Ä¤«¤ê¤Þ¤»¤ó" + +msgid "an attribute specification must start with a name or name token" +msgstr "°À­»ØÄê¤Ï̾Á°¤«Ì¾Á°¥È¡¼¥¯¥ó¤Ç»Ï¤Þ¤é¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "%1 is not a member of a group specified for any attribute" +msgstr "" +"%1 ¤Ï¤¤¤«¤Ê¤ë°À­¤Ë¤Ä¤¤¤Æ¤â¡¢»ØÄꤵ¤ì¤¿¥°¥ë¡¼¥×¤Î¥á¥ó¥Ð¡¼¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "" +"the name and VI delimiter can be omitted from an attribute specification " +"only if SHORTTAG YES is specified" +msgstr "" +"̾Á°¤ÈVI¥Ç¥ê¥ß¥¿¤ÏSHORTTAG YES¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¤­¤Î¤ß°À­»ØÄ꤫¤é¾Êά¤¹¤ë¤³" +"¤È¤¬¤Ç¤­¤Þ¤¹" + +msgid "there is no attribute %1" +msgstr "°À­ %1 ¤Ï¸ºß¤·¤Þ¤»¤ó" + +msgid "" +"an attribute value specification must start with a literal or a name " +"character" +msgstr "°À­ÃÍ»ØÄê¤Ï¥ê¥Æ¥é¥ë¤«Ì¾Á°Ê¸»ú¤Ç»Ï¤Þ¤é¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "length of name token must not exceed NAMELEN (%1)" +msgstr "̾Á°¥È¡¼¥¯¥ó¤ÎŤµ¤ÏNAMELEN (%1) ¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "" +"an attribute value literal can occur in an attribute specification list only " +"after a VI delimiter" +msgstr "°À­ÃÍ¥ê¥Æ¥é¥ë¤ÏVI¥Ç¥ê¥ß¥¿¤Î¸å¤Î°À­»ØÄê¥ê¥¹¥ÈÆâ¤Ë¤Î¤ßÇÛÃ֤Ǥ­¤Þ¤¹" + +msgid "duplicate specification of attribute %1" +msgstr "½ÅÊ£¤¹¤ë°À­»ØÄê %1" + +msgid "duplicate definition of attribute %1" +msgstr "½ÅÊ£¤¹¤ë°À­ÄêµÁ %1" + +msgid "" +"data attribute specification must be omitted if attribute specification list " +"is empty" +msgstr "¥Ç¡¼¥¿¤Î°À­»ØÄê¤Ï°À­»ØÄê¥ê¥¹¥È¤¬¶õ¤Î¾ì¹ç¤Ï¾Êά¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "marked section end not in marked section declaration" +msgstr "¥Þ¡¼¥¯¤µ¤ì¤¿Àá¤Î½ªÃ¼¤¬¥Þ¡¼¥¯¤µ¤ì¤¿Àá¤ÎÀë¸ÀÆâ¤Ë¤¢¤ê¤Þ¤»¤ó" + +msgid "number of open marked sections must not exceed TAGLVL (%1)" +msgstr "³«¤¤¤¿¡¢¥Þ¡¼¥¯¤µ¤ì¤¿Àá¤Î¿ô¤ÏTAGLVL(%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "missing marked section end" +msgstr "¥Þ¡¼¥¯¤µ¤ì¤¿Àá¤Î½ªÃ¼¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "marked section started here" +msgstr "¥Þ¡¼¥¯¤µ¤ì¤¿Àá¤Î³«»Ï" + +msgid "" +"entity end in character data, replaceable character data or ignored marked " +"section" +msgstr "" +"ʸ»ú¥Ç¡¼¥¿Æâ¤Î¼ÂÂΤνªÃ¼¡¢ÃÖ¤­´¹¤¨²Äǽ¤Êʸ»ú¥Ç¡¼¥¿¡¢¤¢¤ë¤¤¤Ï̵»ë¤µ¤ì¤¿¡¢¥Þ¡¼" +"¥¯¤µ¤ì¤¿Àá" + +msgid "" +"normalized length of attribute value literal must not exceed LITLEN (%1); " +"length was %2" +msgstr "" +"Àµµ¬²½¤µ¤ì¤¿Â°À­ÃÍ¥ê¥Æ¥é¥ë¤ÎŤµ¤ÏLITLEN (%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó(Ťµ¤Ï %2 " +"¤Ç¤·¤¿)" + +msgid "syntax of attribute value does not conform to declared value" +msgstr "°À­Ãͤι½Ê¸¤ÏÀë¸À¤µ¤ì¤¿Ãͤò¼õ¤±ÉÕ¤±¤Þ¤»¤ó" + +msgid "character %1 is not allowed in the value of attribute %2" +msgstr "ʸ»ú %1 ¤Ï°À­ %2 ¤ÎÃÍÆâ¤Ç¤Ï»È¤¨¤Þ¤»¤ó" + +msgid "value of attribute %1 must be a single token" +msgstr "°À­ %1 ¤ÎÃͤÏñ°ì¥È¡¼¥¯¥ó¤Ç¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó" + +msgid "value of attribute %2 invalid: %1 cannot start a number token" +msgstr "ÉÔÀµ¤Ê°À­ÃÍ %2: %1 ¤Ï¿ô»ú¥È¡¼¥¯¥ó¤Ç»Ï¤á¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó" + +msgid "value of attribute %2 invalid: %1 cannot start a name" +msgstr "ÉÔÀµ¤Ê°À­ÃÍ %2: %1 ¤Ï̾Á°¤Ç»Ï¤á¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó" + +msgid "non-impliable attribute %1 not specified but OMITTAG NO and SHORTTAG NO" +msgstr "OMITTAG NO¡¢SHORTTAG NO ¤Ê¤·¤ËÌÀ¼¨Â°À­ %1 ¤ò»ØÄꤹ¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó" + +msgid "required attribute %1 not specified" +msgstr "Í׵ᤵ¤ì¤¿Â°À­ %1 ¤Ï̤»ØÄê¤Ç¤¹" + +#, fuzzy +msgid "first occurrence of CURRENT attribute %1 not specified" +msgstr "ºÇ½é¤Î CURRENT°À­ %1 ¤Ï̤»ØÄê¤Ç¤¹" + +msgid "%1 is not a notation name" +msgstr "%1 ¤Ïµ­½Ò̾¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "%1 is not a general entity name" +msgstr "%1 ¤Ï°ìÈ̼ÂÂÎ̾¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "value of attribute %2 cannot be %1; must be one of %3" +msgstr "°À­ %2 ¤ÎÃÍ¤Ï %1 ¤Ë¤Ï¤Ç¤­¤º¡¢%3 ¤ÎÆâ¤Î¤É¤ì¤«¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "%1 is not a data or subdocument entity" +msgstr "%1 ¤Ï¥Ç¡¼¥¿¤Ç¤âÉûʸ½ñ¼ÂÂΤǤ⤢¤ê¤Þ¤»¤ó" + +#, fuzzy +msgid "" +"content model is ambiguous: when no tokens have been matched, both the %2 " +"and %3 occurrences of %1 are possible" +msgstr "" +"¤¢¤¤¤Þ¤¤¤ÊÆâÍÆ¥â¥Ç¥ë: °ìÃפ¹¤ë¥È¡¼¥¯¥ó¤¬¤Ê¤¤¾ì¹ç¡¢%2 ¤È %3 (%1 ¤Î¡¢)¤¬²Äǽ" + +#, fuzzy +msgid "" +"content model is ambiguous: when the current token is the %2 occurrence of %" +"1, both the %4 and %5 occurrences of %3 are possible" +msgstr "" +"¤¢¤¤¤Þ¤¤¤ÊÆâÍÆ¥â¥Ç¥ë: ¥È¡¼¥¯¥ó %2 (%1 ¤Î)¤Ç¤¢¤ë¾ì¹ç¡¢%4¡¢%5 (%3 ¤Î¡¢)ξÊý¤¬²Ä" +"ǽ" + +#, fuzzy +msgid "" +"content model is ambiguous: when the current token is the %2 occurrence of %" +"1 and the innermost containing AND group has been matched, both the %4 and %" +"5 occurrences of %3 are possible" +msgstr "" +"¤¢¤¤¤Þ¤¤¤ÊÆâÍÆ¥â¥Ç¥ë: ¥È¡¼¥¯¥ó %2 (%1 ¤Î¡¢)¤Ç¤¢¤ê¡¢innermost ¤Ë°ìÃפ¹¤ë AND " +"¥°¥ë¡¼¥×¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢%4¡¢%5(%3 ¤Î¡¢)ξÊý¤¬²Äǽ" + +#, fuzzy +msgid "" +"content model is ambiguous: when the current token is the %2 occurrence of %" +"1 and the innermost %3 containing AND groups have been matched, both the %5 " +"and %6 occurrences of %4 are possible" +msgstr "" +"¤¢¤¤¤Þ¤¤¤ÊÆâÍÆ¥â¥Ç¥ë: ¥È¡¼¥¯¥ó %2 (%1 ¤Î¡¢)¤Ç¤¢¤ê¡¢innermost %3 ¤Ë°ìÃפ¹¤ë " +"AND ¥°¥ë¡¼¥×¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢%5¡¢%6 (%4 ¤Î»²¾È)ξÊý¤¬²Äǽ" + +msgid "" +"invalid comment declaration: found character %1 outside comment but inside " +"comment declaration" +msgstr "" +"ÉÔŬÀڤʥ³¥á¥ó¥ÈÀë¸À: ¥³¥á¥ó¥È¤Î³°Â¦¤Ëʸ»ú %1 ¤¬¤¢¤ê¤Þ¤¹¤¬¥³¥á¥ó¥ÈÀë¸À¤ÎÆâ¦" +"¤Ç¤¹" + +msgid "non SGML character number %1" +msgstr "ÈóSGML¿ô»ú %1" + +msgid "data or replaceable character data in declaration subset" +msgstr "Àë¸À¥µ¥Ö¥»¥Ã¥ÈÆâ¤Ë¥Ç¡¼¥¿¤¢¤ë¤¤¤ÏÃÖ´¹²Äǽ¤Êʸ»ú¥Ç¡¼¥¿" + +msgid "ID %1 already defined" +msgstr "ID %1 ¤Ï´û¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "ID %1 first defined here" +msgstr "ID %1 ¤ÏºÇ½é¤³¤³¤ÇÄêµÁ¤µ¤ì¤Þ¤·¤¿" + +msgid "value of fixed attribute %1 not equal to default" +msgstr "¸ÇÄê°À­ÃÍ %1 ¤Ï¥Ç¥Õ¥©¥ë¥ÈÃͤËÅù¤·¤¯¤¢¤ê¤Þ¤»¤ó" + +msgid "" +"character %1 is not significant in the reference concrete syntax and so " +"cannot occur in a comment in the SGML declaration" +msgstr "" +"ʸ»ú %1 ¤Ï»²¾È¶ñ¾Ý¹½Ê¸Æâ¤Ç¤Ï°ÕÌ£¤¬¤Ê¤¤¤Î¤ÇSGMLÀë¸ÀÆâ¤Î¥³¥á¥ó¥ÈÆâ¤Ë´Þ¤á¤ë¤³¤È" +"¤Ï¤Ç¤­¤Þ¤»¤ó" + +msgid "" +"minimum data of first minimum literal in SGML declaration must be \"ISO " +"8879:1986\" or \"ISO 8879:1986 (ENR)\" or \"ISO 8879:1986 (WWW)\" not %1" +msgstr "" +"SGMLÀë¸ÀÆâ¤ÎºÇ¾®¥ê¥Æ¥é¥ë¤ÎºÇ¾®¥Ç¡¼¥¿¤Ï %1 ¤Ç¤Ï¤Ê¤¯¡¢\"ISO 8879:1986\"¡¢\"ISO " +"8879:1986 (ENR)\"¡¢\"ISO 8879:1986 (WWW)\"¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "parameter before LCNMSTRT must be NAMING not %1" +msgstr "LCNSTRT¤ÎÁ°¤ÎÊÑ¿ô¤Ï %1 ¤Ç¤Ï¤Ê¤¯¡¢NAMING¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"unexpected entity end in SGML declaration: only %1, S separators and " +"comments allowed" +msgstr "" +"SGMLÀë¸ÀÆâ¤Ëͽ´ü¤»¤Ì¼ÂÂΤνªÃ¼: ²Äǽ¤Ê¤Î¤Ï %1¡¢S¶èÀÚ¤ê»Ò¤È¥³¥á¥ó¥È¤À¤±¤Ç¤¹" + +msgid "%1 invalid: only %2 and parameter separators allowed" +msgstr "%1 ¤ÏÉÔÀµ: %2 ¤ÈÊÑ¿ô¶èÀÚ¤ê»Ò¤À¤±¤¬²Äǽ" + +msgid "magnitude of %1 too big" +msgstr "%1 ¤ÎÂ礭¤µ¤¬Â礭¤¹¤®¤Þ¤¹" + +msgid "" +"character %1 is not significant in the reference concrete syntax and so " +"cannot occur in a literal in the SGML declaration except as the replacement " +"of a character reference" +msgstr "" +"ʸ»ú %1 ¤Ï»²¾È¶ñ¾Ý¹½Ê¸Æâ¤Ç¤Ï°ÕÌ£¤¬¤Ê¤¤¤Î¤Çʸ»ú»²¾È¤ÎÂåÂؤȤ¹¤ë¾ì¹ç¤ò½ü¤¤¤Æ" +"SGMLÀë¸ÀÆâ¤Î¥ê¥Æ¥é¥ëÆâ¤Ë´Þ¤á¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó" + +msgid "%1 is not a valid syntax reference character number" +msgstr "%1 ¤ÏŬÀڤʹ½Ê¸»²¾Èʸ»úÈÖ¹æ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "a parameter entity reference cannot occur in an SGML declaration" +msgstr "ÊÑ¿ô¼ÂÂλ²¾È¤òSGMLÀë¸ÀÆâ¤Ë´Þ¤á¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó" + +msgid "cannot continue because of previous errors" +msgstr "Á°¤Î¥¨¥é¡¼¤Î¤¿¤á¤Ë³¤±¤ë¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó" + +msgid "" +"SGML declaration cannot be parsed because the character set does not contain " +"characters having the following numbers in ISO 646: %1" +msgstr "" +"ʸ»ú¥»¥Ã¥È¤¬ISO 646Æâ¤Î¼¡¤ÎÈÖ¹æ¤ò´Þ¤ó¤Ç¤¤¤Ê¤¤¤Î¤ÇSGMLÀë¸À¤Ï²òÀÏÉÔǽ¤Ç¤¹: %1" + +msgid "" +"the specified character set is invalid because it does not contain the " +"minimum data characters having the following numbers in ISO 646: %1" +msgstr "" +"ISO 646 Æâ¤Î¼¡¤ÎÈÖ¹æ¤ÎºÇ¾®¥Ç¡¼¥¿Ê¸»ú¤ò´Þ¤ó¤Ç¤¤¤Ê¤¤¤Î¤Ç»ØÄꤵ¤ì¤¿Ê¸»ú¥»¥Ã¥È¤Ï" +"ÉÔŬÀڤǤ¹: %1" + +msgid "character numbers declared more than once: %1" +msgstr "ʸ»úÈÖ¹æ¤ÏÊ£¿ô²óÀë¸À¤µ¤ì¤Þ¤·¤¿: %1" + +msgid "character numbers should have been declared UNUSED: %1" +msgstr "ʸ»úÈÖ¹æ¤Ï UNUSED ¤È¤·¤ÆÀë¸À¤µ¤ì¤Æ¤¤¤ë¤Ù¤­¤Ç¤¹: %1" + +msgid "character numbers missing in base set: %1" +msgstr "´ðËÜ¥»¥Ã¥ÈÆâ¤Ëʸ»úÈֹ椬¤¢¤ê¤Þ¤»¤ó: %1" + +msgid "" +"characters in the document character set with numbers exceeding %1 not " +"supported" +msgstr "%1 ¤ò±Û¤¨¤ë¿ô¤Îʸ½ñʸ»ú¥»¥Ã¥ÈÆâ¤Îʸ»ú¤Ï̤¥µ¥Ý¡¼¥È" + +msgid "invalid formal public identifier %1: missing //" +msgstr "ÉÔŬÀڤʸø¼°¸ø³«¼±ÊÌ»Ò %1: // ¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "invalid formal public identifier %1: no SPACE after public text class" +msgstr "ÉÔŬÀڤʸø¼°¸ø³«¼±ÊÌ»Ò %1: ¸ø³«¥Æ¥­¥¹¥È¥¯¥é¥¹¤Î¸å¤ËSPACE¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "invalid formal public identifier %1: invalid public text class" +msgstr "ÉÔŬÀڤʸø¼°¸ø³«¼±ÊÌ»Ò %1: ÉÔÀµ¤Ê¸ø³«¥Æ¥­¥¹¥È¥¯¥é¥¹" + +msgid "" +"invalid formal public identifier %1: public text language must be a name " +"containing only upper case letters" +msgstr "" +"ÉÔŬÀڤʸø¼°¸ø³«¼±ÊÌ»Ò %1: ¸ø³«¥Æ¥­¥¹¥È¸À¸ì¤ÏÂçʸ»ú¤À¤±¤ò´Þ¤à̾Á°¤Ç¤Ê¤±¤ì¤Ð¤Ê" +"¤ê¤Þ¤»¤ó" + +msgid "" +"invalid formal public identifer %1: public text display version not " +"permitted with this text class" +msgstr "" +"ÉÔŬÀڤʸø¼°¸ø³«¼±ÊÌ»Ò %1: ¸ø¼°¥Æ¥­¥¹¥Èɽ¼¨¥Ð¡¼¥¸¥ç¥ó¤Ï¤³¤Î¥Æ¥­¥¹¥È¥¯¥é¥¹¤Ç¤Ï" +"µö¤µ¤ì¤Æ¤¤¤Þ¤»¤ó" + +msgid "invalid formal public identifier %1: extra field" +msgstr "ÉÔŬÀڤʸø¼°¸ø³«¼±ÊÌ»Ò %1: ;ʬ¤Ê¥Õ¥£¡¼¥ë¥É" + +msgid "" +"public text class of public identifier in notation identifier must be " +"NOTATION" +msgstr "" +"µ­½Ò¼±ÊÌ»ÒÆâ¤Ç¤Î¸ø³«¼±Ê̻Ҥθø³«¥Æ¥­¥¹¥È¥¯¥é¥¹¤Ï NOTATION ¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»" +"¤ó" + +msgid "base character set %1 is unknown" +msgstr "´ðËÜʸ»ú¥»¥Ã¥È %1 ¤ÏÉÔÌÀ¤Ç¤¹" + +msgid "" +"delimiter set is ambiguous: %1 and %2 can be recognized in the same mode" +msgstr "¤¢¤¤¤Þ¤¤¤Ê¥Ç¥ê¥ß¥¿¥»¥Ã¥È: %1 ¤È %2 ¤ÏƱ¤¸¥â¡¼¥É¤Çǧ¼±¤µ¤ì¤Þ¤¹" + +msgid "" +"characters with the following numbers in the syntax reference character set " +"are significant in the concrete syntax but are not in the document character " +"set: %1" +msgstr "" +"¹½Ê¸»²¾Èʸ»ú¥»¥Ã¥ÈÆâ¤Î¼¡¤ÎÈÖ¹æ¤Îʸ»ú¤Ï¶ñ¾Ý¹½Ê¸Æâ¤Ç¤Ï°ÕÌ£¤¬¤¢¤ê¤Þ¤¹¤¬Ê¸½ñʸ»ú" +"¥»¥Ã¥ÈÆâ¤Ç¤Ï¤½¤¦¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó: %1" + +msgid "" +"there is no unique character in the document character set corresponding to " +"character number %1 in the syntax reference character set" +msgstr "" +"¹½Ê¸»²¾Èʸ»ú¥»¥Ã¥ÈÆâ¤Îʸ»úÈÖ¹æ %1 ¤ËÂФ¹¤ëʸ½ñʸ»ú¥»¥Ã¥ÈÆâ¤Ë¤Ï¸ÇÍ­¤Êʸ»ú¤Ï¤¢" +"¤ê¤Þ¤»¤ó" + +msgid "" +"there is no unique character in the internal character set corresponding to " +"character number %1 in the syntax reference character set" +msgstr "" +"¹½Ê¸»²¾Èʸ»ú¥»¥Ã¥ÈÆâ¤Îʸ»úÈÖ¹æ %1 ¤ËÂФ¹¤ëÆâÉôʸ»ú¥»¥Ã¥ÈÆâ¤Ë¤Ï¸ÇÍ­¤Êʸ»ú¤Ï¤¢" +"¤ê¤Þ¤»¤ó" + +msgid "" +"the character with number %1 in ISO 646 is significant but has no " +"representation in the syntax reference character set" +msgstr "" +"ISO 646 Æâ¤ÎÈÖ¹æ %1 ¤Îʸ»ú¤Ï½ÅÍפǤ¹¤¬¹½Ê¸»²¾Èʸ»ú¥»¥Ã¥ÈÆâ¤Çɽ¸½¤µ¤ì¤Æ¤¤¤Þ¤»" +"¤ó" + +msgid "capacity set %1 is unknown" +msgstr "ÉÔÌÀ¤Ê¥­¥ã¥Ñ¥·¥Æ¥£¥»¥Ã¥È %1" + +msgid "capacity %1 already specified" +msgstr "¥­¥ã¥Ñ¥·¥Æ¥£ %1 ¤Ï´û¤Ë»ØÄꤵ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "value of capacity %1 exceeds value of TOTALCAP" +msgstr "¥­¥ã¥Ñ¥·¥Æ¥£ÃÍ %1 ¤Ï TOTALCAP Ãͤò±Û¤¨¤Æ¤¤¤Þ¤¹" + +msgid "syntax %1 is unknown" +msgstr "ÉÔÌÀ¤Ê¹½Ê¸ %1" + +msgid "UCNMSTRT must have the same number of characters as LCNMSTRT" +msgstr "UCNMSTRT ¤Ï LCNMSTRT ¤ÈƱ¿ô¤Îʸ»ú¤ò»ý¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "UCNMCHAR must have the same number of characters as LCNMCHAR" +msgstr "UCNMCHAR ¤Ï LCNMCHAR ¤ÈƱ¿ô¤Îʸ»ú¤ò»ý¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"number of open subdocuments exceeds quantity specified for SUBDOC parameter " +"in SGML declaration (%1)" +msgstr "" +"³«¤¤¤¿Éûʸ½ñ¿ô¤¬SGMLÀë¸À(%1)Æâ¤ÎSUBDOCÊÑ¿ô¤Ë¤Ä¤¤¤Æ»ØÄꤵ¤ì¤¿Ãͤò±Û¤¨¤Æ¤¤¤Þ¤¹" + +msgid "entity %1 declared SUBDOC, but SUBDOC NO specified in SGML declaration" +msgstr "" +"¼ÂÂÎ %1 ¤ÏSUBDOC¤òÀë¸À¤·¤Æ¤¤¤Þ¤¹¤¬SGMLÀë¸ÀÆâ¤ÇSUBDOC NO¤¬»ØÄꤵ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "" +"a parameter entity referenced in a parameter separator must end in the same " +"declaration" +msgstr "ÊÑ¿ô¶èÀÚ¤ê»ÒÆâ¤ÎÊÑ¿ô¼ÂÂλ²¾È¤ÏƱ¤¸Àë¸ÀÆâ¤Ç½ª¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "reference to non-existent ID %1" +msgstr "¸ºß¤·¤Ê¤¤ID %1¤Ø¤Î»²¾È" + +msgid "generic identifier %1 used in DTD but not defined" +msgstr "°ìÈ̼±ÊÌ»Ò %1 ¤ÏDTDÆâ¤Ç»ÈÍѤµ¤ì¤Æ¤¤¤Þ¤¹¤¬Ì¤ÄêµÁ¤Ç¤¹" + +msgid "%1 not finished but document ended" +msgstr "%1 ¤Ï½ª¤Ã¤Æ¤¤¤Ê¤¤¤Î¤Ëʸ½ñ¤Ï½ªÃ¼¤Ç¤¹" + +msgid "cannot continue with subdocument because of previous errors" +msgstr "Á°¤Î¥¨¥é¡¼¤Î¤¿¤á¤ËÉûʸ½ñ¤Ë¤Ä¤¤¤Æ³¤±¤ë¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó" + +msgid "no document type declaration; will parse without validation" +msgstr "ʸ½ñ·¿Àë¸À¤¬¤Ê¤¤¤Î¤ÇÂÅÅöÀ­¤Î¸¡¾Ú¤Ê¤·¤Ë²òÀÏ" + +msgid "" +"no internal or external document type declaration subset; will parse without " +"validation" +msgstr "Æâ¡¢³°Éô¤È¤âʸ½ñ·¿Àë¸À¥µ¥Ö¥»¥Ã¥È¤¬¤Ê¤¤¤Î¤ÇÂÅÅöÀ­¤Î¸¡¾Ú¤Ê¤·¤Ë²òÀÏ" + +msgid "this is not an SGML document" +msgstr "SGMLʸ½ñ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "" +"length of start-tag before interpretation of literals must not exceed TAGLEN " +"(%1)" +msgstr "¥ê¥Æ¥é¥ë¤ò²ò¼á¤¹¤ëÁ°¤Ë³«»Ï¥¿¥°Ä¹¤¬TAGLEN(%1)¤ò±Û¤¨¤Þ¤·¤¿" + +msgid "" +"a parameter entity referenced in a token separator must end in the same group" +msgstr "" +"¥È¡¼¥¯¥ó¶èÀÚ¤ê»ÒÆâ¤ÎÊÑ¿ô¼ÂÂλ²¾È¤ÏƱ¥°¥ë¡¼¥×Æâ¤Ç½ª¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"the following character numbers are shunned characters that are not " +"significant and so should have been declared UNUSED: %1" +msgstr "" +"¼¡¤Îʸ»úÈÖ¹æ¤Ï½ÅÍפǤʤ¤¥¨¥¹¥±¡¼¥×ʸ»ú¤Ê¤Î¤ÇUNUSED¤È¤·¤ÆÀë¸À¤¹¤ë¤Ù¤­¤Ç¤·¤ç" +"¤¦: %1" + +msgid "" +"there is no unique character in the specified document character set " +"corresponding to character number %1 in ISO 646" +msgstr "" +"ISO 646Æâ¤Îʸ»úÈÖ¹æ %1 ¤ËÂбþ¤¹¤ë»ØÄêʸ½ñʸ»ú¥»¥Ã¥ÈÆâ¤Ë¸ÇÍ­¤Êʸ»ú¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "length of attribute value must not exceed LITLEN less NORMSEP (-%1)" +msgstr "°À­ÃÍŤÏNORMSEP(-%1)¤è¤ê¤âŤ¯¡¢LITLEN¤è¤êû¤«¤¯¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"length of tokenized attribute value must not exceed LITLEN less NORMSEP (-%1)" +msgstr "" +"¥È¡¼¥¯¥ó²½Â°À­ÃÍŤÏNORMSEP(-%1)¤è¤êŤ¯¡¢LITLEN¤è¤êû¤¯¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"concrete syntax scope is INSTANCE but value of %1 quantity is less than " +"value in reference quantity set" +msgstr "" +"¶ñ¾Ý¹½Ê¸¥¹¥³¡¼¥×¤ÏINSTANCE¤Ç¤¹¤¬ %1 quantity ¤ÎÃͤϻ²¾ÈÎÌ¥»¥Ã¥ÈÆâ¤ÎÃͤè¤ê¤â¾®" +"¤µ¤¯¤Ê¤Ã¤Æ¤¤¤Þ¤¹" + +msgid "" +"public text class of formal public identifier of base character set must be " +"CHARSET" +msgstr "" +"¸ø¼°¸ø³«¼±Ê̻ҤδðËÜʸ»ú¥»¥Ã¥È¤Î¸ø³«¥Æ¥­¥¹¥È¥¯¥é¥¹¤ÏCHARSET¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»" +"¤ó" + +msgid "" +"public text class of formal public identifier of capacity set must be " +"CAPACITY" +msgstr "" +"¸ø¼°¸ø³«¼±Ê̻ҤΥ­¥ã¥Ñ¥·¥Æ¥£¥»¥Ã¥È¤Î¸ø³«¥Æ¥­¥¹¥È¥¯¥é¥¹¤ÏCAPACITY¤Ç¤Ê¤±¤ì¤Ð¤Ê" +"¤ê¤Þ¤»¤ó" + +msgid "" +"public text class of formal public identifier of concrete syntax must be " +"SYNTAX" +msgstr "" +"¶ñ¾Ý¹½Ê¸¤Î¸ø¼°¸ø³«¼±Ê̻Ҥθø³«¥Æ¥­¥¹¥È¥¯¥é¥¹¤ÏSYNTAX¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "when there is an MSOCHAR there must also be an MSICHAR" +msgstr "MSOCHAR¤¬¤¢¤ë¤Ê¤éƱÍͤËMSICHAR¤â¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó" + +msgid "" +"character number %1 in the syntax reference character set was specified as a " +"character to be switched but is not a markup character" +msgstr "" +"¹½Ê¸»²¾Èʸ»ú¥»¥Ã¥ÈÆâ¤Îʸ»úÈÖ¹æ %1 ¤Ï¥Þ¡¼¥¯¥¢¥Ã¥×ʸ»ú¤Ç¤Ï¤Ê¤¤¤Î¤Ë¤½¤Î¼ï¤Îʸ»ú" +"¤Ë¸ò´¹¤µ¤ì¤ë¤Ù¤­¤â¤Î¤È¤·¤Æ»ØÄꤵ¤ì¤Þ¤·¤¿" + +msgid "" +"character number %1 was specified as a character to be switched but is not " +"in the syntax reference character set" +msgstr "" +"¹½Ê¸»²¾Èʸ»ú¥»¥Ã¥ÈÆâ¤Îʸ»úÈÖ¹æ %1 ¤Ï¹½Ê¸»²¾Èʸ»ú¥»¥Ã¥È¤Ç¤Ï¤Ê¤¤¤Î¤Ë¤½¤Î¼ï¤Îʸ" +"»ú¤Ë¸ò´¹¤µ¤ì¤ë¤Ù¤­¤â¤Î¤È¤·¤Æ»ØÄꤵ¤ì¤Þ¤·¤¿" + +#, fuzzy +msgid "" +"character numbers %1 in the document character set have been assigned the " +"same meaning, but this is the meaning of a significant character" +msgstr "" +"ʸ½ñʸ»ú¥»¥Ã¥ÈÆâ¤Îʸ»úÈÖ¹æ %1 ¤Ï½ÅÍ×ʸ»ú¤Î°ÕÌ£¤ò»ý¤Á¤Þ¤¹¤¬¡¢Æ±¤¸°ÕÌ£¤Ë³äÅö¤Æ" +"¤é¤ì¤Æ¤¤¤Þ¤¹" + +msgid "character number %1 assigned to more than one function" +msgstr "ʸ»úÈÖ¹æ %1 ¤Ï°ì¤Ä°Ê¾å¤Îµ¡Ç½¤Ë³äÅö¤Æ¤é¤ì¤Æ¤¤¤Þ¤¹" + +msgid "%1 is already a function name" +msgstr "´û¤Ë»È¤ï¤ì¤Æ¤¤¤ë´Ø¿ô̾ %1" + +msgid "" +"characters with the following numbers in ISO 646 are significant in the " +"concrete syntax but are not in the document character set: %1" +msgstr "" +"ISO 646 Æâ¤Î¼¡¤ÎÈÖ¹æ¤Îʸ»ú¤Ïʸ½ñʸ»ú¥»¥Ã¥ÈÆâ¤Ë¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¶ñ¾Ý¹½Ê¸Æâ¤Ç½ÅÍ×" +"¤Ê¤â¤Î¤È¤µ¤ì¤Æ¤¤¤Þ¤¹: %1" + +msgid "general delimiter %1 consists solely of function characters" +msgstr "°ìÈ̥ǥê¥ß¥¿ %1 ¤Ï´Ø¿ôʸ»ú¤Î¤ß¤Ç¹½À®¤µ¤ì¤Þ¤¹" + +msgid "letters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "" +"ʸ»ú¤ÏLCNMCHAR¡¢UCNMCHAR¡¢LCNMSTART¤¢¤ë¤¤¤ÏUCNMSTART¤Ë³äÅö¤Æ¤é¤ì¤Þ¤¹: %1" + +msgid "digits assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "" +"¥Ç¥£¥¸¥Ã¥È¤ÏLCNMCHAR¡¢UCNMCHAR¡¢LCNMSTRT¤¢¤ë¤¤¤ÏUCNMSTRT¤Ë³äÅö¤Æ¤é¤ì¤Þ¤¹: %1" + +msgid "" +"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or " +"UCNMSTRT because it is RE" +msgstr "" +"ʸ»úÈÖ¹æ %1 ¤ÏRE¤Ê¤Î¤ÇLCNMCHAR¡¢UCNMCHAR¡¢LCNMSTRT¡¢UCNMSTRT¤Ë¤Ï³äÅö¤Æ¤é¤ì¤Þ" +"¤»¤ó" + +msgid "" +"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or " +"UCNMSTRT because it is RS" +msgstr "" +"ʸ»úÈÖ¹æ %1 ¤ÏRS¤Ê¤Î¤ÇLCNMCHAR¡¢UCNMCHAR¡¢LCNMSTRT¡¢UCNMSTRT¤Ë¤Ï³äÅö¤Æ¤é¤ì¤Þ" +"¤»¤ó" + +msgid "" +"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or " +"UCNMSTRT because it is SPACE" +msgstr "" +"ʸ»úÈÖ¹æ %1 ¤ÏSPACE¤Ê¤Î¤ÇLCNMCHAR¡¢UCNMCHAR¡¢LCNMSTRT¡¢UCNMSTRT¤Ë¤Ï³äÅö¤Æ¤é¤ì" +"¤Þ¤»¤ó" + +msgid "" +"separator characters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "¶èÀÚ¤ê»Òʸ»ú¤òLCNMCHAR¡¢UCNMCHAR¡¢LCNMSTRT¡¢UCNMSTRT¤Ë³äÅö¤Æ¤Þ¤¹: %1" + +msgid "" +"character number %1 cannot be switched because it is a Digit, LC Letter or " +"UC Letter" +msgstr "ʸ»úÈÖ¹æ %1 ¤Ï¥Ç¥£¥¸¥Ã¥È¡¢LCʸ»ú¤¢¤ë¤¤¤ÏUCʸ»ú¤Ê¤Î¤Ç¸ò´¹¤Ç¤­¤Þ¤»¤ó" + +#, fuzzy +msgid "pointless for number of characters to be 0" +msgstr "ʸ»ú¤ÎÈֹ椬²¿¤âº¹¤·¼¨¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï 0 ¤Ë¤Ê¤ê¤Þ¤¹" + +msgid "" +"%1 cannot be the replacement for a reference reserved name because it is " +"another reference reserved name" +msgstr "" +"%1 ¤Ï¾¤Î³ÎÊݤµ¤ì¤¿Ì¾Á°»²¾È¤Ê¤Î¤Ç³ÎÊݤµ¤ì¤¿Ì¾Á°»²¾È¤ËÂФ¹¤ëÂåÂؤˤϤʤꤨ¤Þ¤»" +"¤ó" + +msgid "" +"%1 cannot be the replacement for a reference reserved name because it is the " +"replacement of another reference reserved name" +msgstr "" +"%1 ¤Ï¾¤Î³ÎÊݤµ¤ì¤¿Ì¾Á°»²¾È¤ÎÂåÂؤʤΤdzÎÊݤµ¤ì¤¿Ì¾Á°¤ËÂФ¹¤ëÂåÂؤˤϤʤꤨ¤Þ" +"¤»¤ó" + +msgid "replacement for reserved name %1 already specified" +msgstr "³ÎÊݤµ¤ì¤¿Ì¾Á° %1 ¤ËÂФ¹¤ëÂåÂؤϴû¤Ë»ØÄꤵ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "%1 is not a valid name in the declared concrete syntax" +msgstr "̾Á° %1 ¤ÏÀë¸À¤µ¤ì¤¿¶ñ¾Ý¹½Ê¸Æâ¤Ç¤ÏÉÔŬÀڤǤ¹" + +msgid "" +"%1 is not a valid short reference delimiter because it has more than one B " +"sequence" +msgstr "û½Ì»²¾È¥Ç¥ê¥ß¥¿ %1 ¤Ï°ì¤Ä°Ê¾å¤ÎB¥·¡¼¥±¥ó¥¹¤ò»ý¤Ä¤Î¤ÇÉÔŬÀڤǤ¹" + +msgid "" +"%1 is not a valid short reference delimiter because it is adjacent to a " +"character that can occur in a blank sequence" +msgstr "" +"û½Ì»²¾È¥Ç¥ê¥ß¥¿ %1 ¤Ï¶õÇò¥·¡¼¥±¥ó¥¹Æâ¤Ë¸ºß¤·¤¦¤ëʸ»ú¤ËÎÙÀܤ·¤Æ¤¤¤ë¤Î¤ÇÉÔŬ" +"ÀڤǤ¹" + +msgid "length of delimiter %1 exceeds NAMELEN (%2)" +msgstr "¥Ç¥ê¥ß¥¿Ä¹ %1 ¤ÏNAMELEN(%2)¤ò±Û¤¨¤Æ¤¤¤Þ¤¹" + +msgid "length of reserved name %1 exceeds NAMELEN (%2)" +msgstr "³ÎÊݤµ¤ì¤¿Ì¾Á°Ä¹ %1 ¤ÏNAMELEN(%2)¤ò±Û¤¨¤Æ¤¤¤Þ¤¹" + +msgid "" +"character numbers assigned to both LCNMCHAR or UCNMCHAR and LCNMSTRT or " +"UCNMSTRT: %1" +msgstr "" +"LCNMCHAR¤¢¤ë¤¤¤ÏUCNMCHAR¤ÈLCNMSTRT¤¢¤ë¤¤¤ÏUCNMSTRTξÊý¤Ë³äÅö¤Æ¤é¤ì¤¿Ê¸»ú¿ô: %" +"1" + +msgid "" +"when the concrete syntax scope is INSTANCE the syntax reference character " +"set of the declared syntax must be the same as that of the reference " +"concrete syntax" +msgstr "" +"¶ñ¾Ý¹½Ê¸¥¹¥³¡¼¥×¤¬INSTANCE¤Ç¤¢¤ë¤È¤­¤ÏÀë¸À¤µ¤ì¤¿¹½Ê¸¤Î¹½Ê¸»²¾Èʸ»ú¥»¥Ã¥È¤Ï»²" +"¾È¶ñ¾Ý¹½Ê¸¤Î¤½¤ì¤ÈƱ¤¸¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"end-tag minimization should be O for element with declared content of EMPTY" +msgstr "½ªÎ»¥¿¥°ºÇ¾®²½¤Ï¶õ¤ÎÀë¸ÀÆâÍƤÎÍ×ÁǤˤĤ¤¤Æ0¤Ç¤¢¤ë¤Ù¤­¤Ç¤¹" + +msgid "" +"end-tag minimization should be O for element %1 because it has CONREF " +"attribute" +msgstr "CONREF°À­¤ò»ý¤Ä¤Î¤Ç¡¢½ªÎ»¥¿¥°ºÇ¾®²½¤ÏÍ×ÁÇ %1 ¤Ë¤Ä¤¤¤Æ0¤Ç¤¢¤ë¤Ù¤­¤Ç¤¹" + +msgid "element %1 has a declared content of EMPTY and a CONREF attribute" +msgstr "Í×ÁÇ %1 ¤ÏÀë¸À¤µ¤ì¤¿EMPTYÆâÍƤÈCONREF°À­¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹" + +msgid "element %1 has a declared content of EMPTY and a NOTATION attribute" +msgstr "Í×ÁÇ %1 ¤ÏÀë¸À¤µ¤ì¤¿EMPTYÆâÍƤÈNOTATION°À­¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹" + +msgid "" +"declared value of data attribute cannot be ENTITY, ENTITIES, ID, IDREF, " +"IDREFS or NOTATION" +msgstr "" +"Àë¸À¤µ¤ì¤¿¥Ç¡¼¥¿Â°À­ÃͤÏENTITY¡¢ENTITIES¡¢ID¡¢IDREF¡¢IDREFS¤¢¤ë¤¤¤ÏNOTATION¤Ë" +"¤Ï¤Ê¤ê¤¨¤Þ¤»¤ó" + +msgid "default value of data attribute cannot be CONREF or CURRENT" +msgstr "¥Ç¡¼¥¿Â°À­¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤÏCONREF¤¢¤ë¤¤¤ÏCURRENT¤Ë¤Ï¤Ê¤ê¤¨¤Þ¤»¤ó" + +msgid "number of attribute names and name tokens (%1) exceeds ATTCNT (%2)" +msgstr "°À­Ì¾¤È̾Á°¥È¡¼¥¯¥ó(%1)¤Î¿ô¤ÏATTCNT(%2)¤ò±Û¤¨¤Æ¤¤¤Þ¤¹" + +msgid "" +"if the declared value is ID the default value must be IMPLIED or REQUIRED" +msgstr "" +"¤â¤·Àë¸ÀÃͤ¬ID¤Ê¤é¥Ç¥Õ¥©¥ë¥ÈÃͤÏIMPLIED¤¢¤ë¤¤¤ÏREQUIRED¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"the attribute definition list already declared attribute %1 as the ID " +"attribute" +msgstr "°À­ÄêµÁ¥ê¥¹¥È¤Ï´û¤Ë°À­ %1 ¤òID°À­¤È¤·¤ÆÀë¸À¤·¤Æ¤¤¤Þ¤¹" + +msgid "" +"the attribute definition list already declared attribute %1 as the NOTATION " +"attribute" +msgstr "°À­ÄêµÁ¥ê¥¹¥È¤Ï´û¤Ë°À­ %1 ¤òNOTATION°À­¤È¤·¤ÆÀë¸À¤·¤Æ¤¤¤Þ¤¹" + +msgid "token %1 occurs more than once in attribute definition list" +msgstr "¥È¡¼¥¯¥ó%1 ¤Ï°À­ÄêµÁ¥ê¥¹¥ÈÆâ¤Ç°ì¤Ä°Ê¾å¸ºß¤·¤Æ¤¤¤Þ¤¹" + +msgid "no attributes defined for notation %1" +msgstr "µ­½Ò %1 ¤ËÂФ·¤Æ¤Ï²¿¤â°À­¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó" + +msgid "notation %1 for entity %2 undefined" +msgstr "µ­½Ò %1 (¼ÂÂÎ %2 ¤ËÂФ¹¤ë¡¢)¤Ï̤ÄêµÁ¤Ç¤¹" + +msgid "entity %1 undefined in short reference map %2" +msgstr "¼ÂÂÎ %1 ¤Ïû½Ì»²¾È¥Þ¥Ã¥× %2 Æâ¤Ç¤Ï̤ÄêµÁ¤Ç¤¹" + +msgid "notation %1 is undefined but had attribute definition" +msgstr "µ­½Ò %1 ¤Ï°À­ÄêµÁ¤ò»ý¤Á¤Þ¤¹¤¬Ì¤ÄêµÁ¤Ç¤¹" + +msgid "" +"length of interpreted parameter literal in bracketed text plus the length of " +"the bracketing delimiters must not exceed LITLEN (%1)" +msgstr "" +"°Ï¤Þ¤ì¤¿¥Æ¥­¥¹¥ÈÆâ¤Î²ò¼á¤µ¤ì¤¿ÊÑ¿ô¥ê¥Æ¥é¥ë¤È°Ï¤ó¤Ç¤¤¤ë¥Ç¥ê¥ß¥¿¤Î¹ç·×ŤÏ" +"LITLEN(%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "" +"length of rank stem plus length of rank suffix must not exceed NAMELEN (%1)" +msgstr "¥é¥ó¥¯¥¹¥Æ¥à¤È¥é¥ó¥¯ÀÜÈø¼­¤Î¹ç·×ŤÏNAMELEN(%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "document instance must start with document element" +msgstr "ʸ½ñ¥¤¥ó¥¹¥¿¥ó¥¹¤Ïʸ½ñÍ×ÁǤǻϤޤäƤ¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "content model nesting level exceeds GRPLVL (%1)" +msgstr "ÆâÍÆ¥â¥Ç¥ë¤ÎÆþ¤ì»Ò¥ì¥Ù¥ë¤¬GRPLVL(%1)¤ò±Û¤¨¤Æ¤¤¤Þ¤¹" + +msgid "grand total of content tokens exceeds GRPGTCNT (%1)" +msgstr "ÆâÍƥȡ¼¥¯¥ó¤ÎÁí·×¤¬GRPGTCNT(%1)¤ò±Û¤¨¤Æ¤¤¤Þ¤¹" + +msgid "unclosed start-tag requires SHORTTAG YES" +msgstr "ÊĤ¸¤Æ¤¤¤Ê¤¤³«»Ï¥¿¥°¤ò»È¤¦¤Ë¤ÏSHORTTAG YES¤¬É¬ÍפǤ¹" + +msgid "NET-enabling start-tag requires SHORTTAG YES" +msgstr "NET²Äǽ¤Ê³«»Ï¥¿¥°¤ò»È¤¦¤Ë¤ÏSHORTTAG YES¤¬É¬ÍפǤ¹" + +msgid "unclosed end-tag requires SHORTTAG YES" +msgstr "ÊĤ¸¤Æ¤¤¤Ê¤¤½ªÎ»¥¿¥°¤ò»È¤¦¤Ë¤ÏSHORTTAG YES¤¬É¬ÍפǤ¹" + +msgid "DTDs other than base allowed only if CONCUR YES or EXPLICIT YES" +msgstr "" +"base¤è¤ê¾¤ËDTD¤ò»È¤¦¤Î¤ÏCONCUR YES¤¢¤ë¤¤¤ÏEXPLICIT YES¤Ç¤Ê¤¤¤È¤À¤á¤Ç¤¹" + +#, fuzzy +msgid "end of entity other than document entity after document element" +msgstr "ʸ½ñÍ×ÁǤθå¤Îʸ½ñ¼ÂÂΤè¤ê¾¤Î¼ÂÂΤνªÃ¼" + +msgid "%1 declaration illegal after document element" +msgstr "ʸ½ñÍ×ÁǤθå¤Î %1 Àë¸À¤ÏÉÔÀµ¤Ç¤¹" + +msgid "character reference illegal after document element" +msgstr "ʸ½ñÍ×ÁǤθå¤Îʸ»ú»²¾È¤ÏÉÔÀµ¤Ç¤¹" + +msgid "entity reference illegal after document element" +msgstr "ʸ½ñÍ×ÁǤθå¤Î¼ÂÂλ²¾È¤ÏÉÔÀµ¤Ç¤¹" + +msgid "marked section illegal after document element" +msgstr "ʸ½ñÍ×ÁǤθå¤Î¥Þ¡¼¥¯ÉÕ¤±¥»¥¯¥·¥ç¥ó¤ÏÉÔÀµ¤Ç¤¹" + +msgid "" +"the %1 occurrence of %2 in the content model for %3 cannot be excluded at " +"this point because it is contextually required" +msgstr "" +"%1 (%2¤Î¡¢%3 ¤ËÂФ¹¤ëÆâÍÆ¥â¥Ç¥ëÆâ)¤Ïʸ̮Ū¤ËɬÍפʤΤǤ³¤³¤Ç¤Ï¾Êά¤Ç¤­¤Þ¤»¤ó" + +msgid "" +"the %1 occurrence of %2 in the content model for %3 cannot be excluded " +"because it is neither inherently optional nor a member of an OR group" +msgstr "" +"%1 (%2¤Î¡¢%3 ¤ËÂФ¹¤ëÆâÍÆ¥â¥Ç¥ëÆâ)¤Ïʸ̮Ū¤ËɬÍפʤΤǤ³¤³¤Ç¤Ï¾Êά¤Ç¤­¤Þ¤»¤ó" + +msgid "" +"an attribute value specification must be an attribute value literal unless " +"SHORTTAG YES is specified" +msgstr "" +"°À­ÃÍ»ØÄê¤ÏSHORTTAG YES¤¬Ì¤»ØÄê¤Ç¤¢¤ì¤Ð°À­ÃÍ¥ê¥Æ¥é¥ë¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"value cannot be specified both for notation attribute and content reference " +"attribute" +msgstr "µ­½Ò°À­¡¢ÆâÍÆ»²¾È°À­¤É¤Á¤é¤ËÂФ·¤Æ¤âÃͤϻØÄê¤Ç¤­¤Þ¤»¤ó" + +msgid "notation %1 already defined" +msgstr "µ­½Ò %1 ¤Ï´û¤ËÄêµÁºÑ¤ß¤Ç¤¹" + +msgid "short reference map %1 already defined" +msgstr "û½Ì»²¾È¥Þ¥Ã¥× %1 ¤Ï´û¤ËÄêµÁºÑ¤ß¤Ç¤¹" + +msgid "first defined here" +msgstr "¤³¤³¤ÇºÇ½é¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "general delimiter role %1 already defined" +msgstr "°ìÈ̥ǥê¥ß¥¿¥í¡¼¥ë %1 ¤Ï´û¤ËÄêµÁºÑ¤ß¤Ç¤¹" + +msgid "number of ID references in start-tag must not exceed GRPCNT (%1)" +msgstr "³«»Ï¥¿¥°Æâ¤ÎID»²¾ÈÈÖ¹æ¤ÏGRPCNT(%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "" +"number of entity names in attribute specification list must not exceed " +"GRPCNT (%1)" +msgstr "°À­»ØÄê¥ê¥¹¥ÈÆâ¤Î¼ÂÂÎ̾ÈÖ¹æ¤ÏGRPCNT(%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "" +"normalized length of attribute specification list must not exceed ATTSPLEN (%" +"1); length was %2" +msgstr "" +"°À­»ØÄê¥ê¥¹¥È¤ÎÀµµ¬²½Ä¹¤ÏATTSPLEN(%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó; Ťµ¤Ï %2 ¤Ç¤·¤¿" + +msgid "short reference delimiter %1 already specified" +msgstr "û½Ì»²¾È¥Ç¥ê¥ß¥¿ %1 ¤Ï´û¤Ë»ØÄêºÑ¤ß¤Ç¤¹" + +msgid "" +"single character short references were already specified for character " +"numbers: %1" +msgstr "ñ°ìʸ»úû½Ì»²¾È¤Ï´û¤Ëʸ»úÈÖ¹æ %1 ¤ËÂФ·¤Æ»ØÄêºÑ¤ß¤Ç¤¹" + +msgid "default entity used in entity attribute %1" +msgstr "¼ÂÂΰÀ­ %1 Æâ¤Ç»È¤ï¤ì¤Æ¤¤¤ë¥Ç¥Õ¥©¥ë¥È¼ÂÂÎ" + +msgid "reference to entity %1 uses default entity" +msgstr "¼ÂÂÎ %1 ¤Ø¤Î»²¾È¤Ï¥Ç¥Õ¥©¥ë¥È¼ÂÂΤò»ÈÍѤ·¤Þ¤¹" + +msgid "entity %1 in short reference map %2 uses default entity" +msgstr "¼ÂÂÎ %1 (û½Ì»²¾È¥Þ¥Ã¥× %2 Æâ)¤Ï¥Ç¥Õ¥©¥ë¥È¼ÂÂΤò»ÈÍѤ·¤Þ¤¹" + +msgid "no DTD %1 declared" +msgstr "DTD %1 ¤ÏÀë¸À¤µ¤ì¤Æ¤¤¤Þ¤»¤ó" + +msgid "LPD %1 has neither internal nor external subset" +msgstr "LPD %1 ¤ÏÆâ³°Éô¤È¤â¤Ë¥µ¥Ö¥»¥Ã¥È¤ò»ý¤Á¤Þ¤»¤ó" + +msgid "element types have different link attribute definitions" +msgstr "Í×ÁÇ·¿¤Ï°Û¤Ê¤ë¥ê¥ó¥¯Â°À­ÄêµÁ¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹" + +msgid "link set %1 already defined" +msgstr "¥ê¥ó¥¯¥»¥Ã¥È %1 ¤Ï´û¤ËÄêµÁºÑ¤ß¤Ç¤¹" + +msgid "empty result attribute specification" +msgstr "¶õ¤Î·ë²Ì°À­»ØÄê" + +msgid "no source element type %1" +msgstr "Í×ÁÇ·¿ %1 ¤Î¥½¡¼¥¹¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "no result element type %1" +msgstr "Í×ÁÇ·¿ %1 ¤Î·ë²Ì¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "end of document in LPD subset" +msgstr "LPD¥µ¥Ö¥»¥Ã¥ÈÆâ¤Çʸ½ñ¤Î½ªÃ¼" + +msgid "%1 declaration not allowed in LPD subset" +msgstr "%1 Àë¸À¤ÏLPD¥µ¥Ö¥»¥Ã¥ÈÆâ¤Ç¤Ï»È¤¨¤Þ¤»¤ó" + +msgid "ID link set declaration not allowed in simple link declaration subset" +msgstr "ID¥ê¥ó¥¯¥»¥Ã¥ÈÀë¸À¤Ïñ°ì¥ê¥ó¥¯Àë¸À¥µ¥Ö¥»¥Ã¥ÈÆâ¤Ç¤Ï»È¤¨¤Þ¤»¤ó" + +msgid "link set declaration not allowed in simple link declaration subset" +msgstr "¥ê¥ó¥¯¥»¥Ã¥ÈÀë¸À¤Ïñ½ã¥ê¥ó¥¯Àë¸À¥µ¥Ö¥»¥Ã¥ÈÆâ¤Ç¤Ï»È¤¨¤Þ¤»¤ó" + +msgid "" +"attributes can only be defined for base document element (not %1) in simple " +"link declaration subset" +msgstr "" +"°À­¤Ïñ½ã¥ê¥ó¥¯Àë¸À¥µ¥Ö¥»¥Ã¥ÈÆâ¤Î´ðÄìʸ½ñÍ×ÁÇ (%1 ¤Ç¤Ê¤¯)¤ËÂФ·¤Æ¤Î¤ßÄêµÁ¤Ç" +"¤­¤Þ¤¹" + +msgid "a short reference mapping declaration is allowed only in the base DTD" +msgstr "û½Ì»²¾È¥Þ¥Ã¥Ô¥ó¥°Àë¸À¤Ï´ðÄìDTDÆâ¤Ç¤Î¤ß²Äǽ¤Ç¤¹" + +msgid "a short reference use declaration is allowed only in the base DTD" +msgstr "Àë¸À¤ò»ÈÍѤ¹¤ëû½Ì»²¾È¤Ï´ðÄìDTDÆâ¤Ç¤Î¤ß²Äǽ¤Ç¤¹" + +msgid "default value of link attribute cannot be CURRENT or CONREF" +msgstr "¥ê¥ó¥¯Â°À­¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤÏCURRENT¤¢¤ë¤¤¤ÏCONREF¤Ë¤Ï¤Ê¤ê¤¨¤Þ¤»¤ó" + +msgid "" +"declared value of link attribute cannot be ID, IDREF, IDREFS or NOTATION" +msgstr "" +"¥ê¥ó¥¯Â°À­¤ÎÀë¸ÀÃͤÏID¡¢IDREF¡¢IDREFS¡¢¤¢¤ë¤¤¤ÏNOTATION¤Ë¤Ï¤Ê¤ê¤¨¤Þ¤»¤ó" + +msgid "only fixed attributes can be defined in simple LPD" +msgstr "ñ½ãLPDÆâ¤Ç¤Ï¸ÇÄê°À­¤Î¤ß¤òÄêµÁ¤Ç¤­¤Þ¤¹" + +msgid "only one ID link set declaration allowed in an LPD subset" +msgstr "LPD¥µ¥Ö¥»¥Ã¥ÈÆâ¤Ç²Äǽ¤Ê¤Î¤Ï¤¿¤À°ì¤Ä¤ÎID¥ê¥ó¥¯¥»¥Ã¥ÈÀë¸À¤À¤±¤Ç¤¹" + +msgid "no initial link set defined for LPD %1" +msgstr "LPD %1 ¤ËÂФ·¤Æ½é´ü¥ê¥ó¥¯¥»¥Ã¥È¤¬Ì¤ÄêµÁ¤Ç¤¹" + +msgid "notation %1 not defined in source DTD" +msgstr "µ­½Ò %1 ¤Ï¥½¡¼¥¹DTDÆâ¤Ç¤Ï̤ÄêµÁ¤Ç¤¹" + +#, fuzzy +msgid "result document type in simple link specification must be implied" +msgstr "ñ½ã¥ê¥ó¥¯»ØÄêÆâ¤Ç¤Î·ë²Ìʸ½ñ·¿¤Ï°Å¼¨¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "simple link requires SIMPLE YES" +msgstr "ñ½ã¥ê¥ó¥¯¤Ë¤ÏSIMPLE YES¤¬É¬ÍפǤ¹" + +msgid "implicit link requires IMPLICIT YES" +msgstr "¾Êά¥ê¥ó¥¯¤Ë¤ÏIMPLICIT YES¤¬É¬ÍפǤ¹" + +msgid "explicit link requires EXPLICIT YES" +msgstr "ÌÀ¼¨¥ê¥ó¥¯¤Ë¤ÏEXPLICIT YES¤¬É¬ÍפǤ¹" + +msgid "LPD not allowed before first DTD" +msgstr "LPD¤ÏºÇ½é¤ÎDTD¤ÎÁ°¤Ë¤ª¤¯¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó" + +msgid "DTD not allowed after an LPD" +msgstr "DTD¤ÏLPD¤Î¸å¤Ë¤ª¤¯¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó" + +msgid "definition of general entity %1 is unstable" +msgstr "°ìÈ̼ÂÂÎÄêµÁ %1 ¤ÏÉÔ°ÂÄê¤Ç¤¹" + +msgid "definition of parameter entity %1 is unstable" +msgstr "ÊÑ¿ô¼ÂÂÎÄêµÁ %1 ¤ÏÉÔ°ÂÄê¤Ç¤¹" + +msgid "" +"multiple link rules for ID %1 but not all have link attribute specifications" +msgstr "" +"ID %1 ¤ËÂФ·¤Æ¥ê¥ó¥¯¥ë¡¼¥ë¤¬½ÅÊ£¤·¤Æ¤¤¤Þ¤¹¤¬Ãæ¤Ë¥ê¥ó¥¯Â°À­»ØÄê¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤" +"¤â¤Î¤¬¤¢¤ê¤Þ¤¹" + +msgid "" +"multiple link rules for element type %1 but not all have link attribute " +"specifications" +msgstr "" +"Í×ÁÇ·¿ %1 ¤ËÂФ·¤Æ¥ê¥ó¥¯¥ë¡¼¥ë¤¬½ÅÊ£¤·¤Æ¤¤¤Þ¤¹¤¬Ãæ¤Ë¥ê¥ó¥¯Â°À­»ØÄê¤ò»ý¤Ã¤Æ¤¤" +"¤Ê¤¤¤â¤Î¤¬¤¢¤ê¤Þ¤¹" + +msgid "link type %1 does not have a link set %2" +msgstr "¥ê¥ó¥¯·¿ %1 ¤Ï¥ê¥ó¥¯¥»¥Ã¥È %2 ¤ò»ý¤Á¤Þ¤»¤ó" + +msgid "link set use declaration for simple link process" +msgstr "¥ê¥ó¥¯¥»¥Ã¥È¤Ïñ½ã¥ê¥ó¥¯½èÍý¤Î¤¿¤á¤ÎÀë¸À¤ò»È¤¤¤Þ¤¹" + +msgid "no link type %1" +msgstr "¥ê¥ó¥¯·¿ %1 ¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "both document type and link type %1" +msgstr "ξÊý¤Î ʸ½ñ¡¢¥ê¥ó¥¯·¿ %1" + +msgid "link type %1 already defined" +msgstr "¥ê¥ó¥¯·¿ %1 ¤Ï´û¤ËÄêµÁºÑ¤ß¤Ç¤¹" + +msgid "document type %1 already defined" +msgstr "ʸ½ñ·¿ %1 ¤Ï´û¤ËÄêµÁºÑ¤ß¤Ç¤¹" + +msgid "link set %1 used in LPD but not defined" +msgstr "¥ê¥ó¥¯¥»¥Ã¥È %1 ¤ÏLPDÆâ¤Ç»ÈÍѤµ¤ì¤Æ¤¤¤Þ¤¹¤¬Ì¤ÄêµÁ¤Ç¤¹" + +msgid "#IMPLIED already linked to result element type %1" +msgstr "#IMPLIED¤Ï´û¤Ë·ë²ÌÍ×ÁÇ·¿ %1 ¤Ø¥ê¥ó¥¯ºÑ¤ß¤Ç¤¹" + +msgid "" +"number of active simple link processes exceeds quantity specified for SIMPLE " +"parameter in SGML declaration (%1)" +msgstr "" +"¥¢¥¯¥Æ¥£¥Ö¤Êñ½ã¥ê¥ó¥¯½èÍý¿ô¤¬SGMLÀë¸À(%1)Æâ¤ÇSIMPLEÊÑ¿ô¤ËÂФ·¤Æ»ØÄꤵ¤ì¤¿¿ô" +"¤ò±Û¤¨¤Æ¤¤¤Þ¤¹" + +msgid "only one chain of explicit link processes can be active" +msgstr "ÌÀ¼¨Åª¤Ê¥ê¥ó¥¯½èÍý¤Î¥Á¥§¥¤¥ó¤Ï°ì¤Ä¤À¤±¤·¤«¥¢¥¯¥Æ¥£¥Ö¤Ë¤Ç¤­¤Þ¤»¤ó" + +msgid "" +"source document type name for link type %1 must be base document type since " +"EXPLICIT YES 1" +msgstr "" +"EXPLICIT YES ¤¬ 1 ¤Ê¤Î¤Ç¥ê¥ó¥¯·¿ %1 ¤ËÂФ¹¤ë¥½¡¼¥¹Ê¸½ñ·¿Ì¾¤Ï´ðÄìʸ½ñ·¿¤Ç¤Ê¤±" +"¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "only one implicit link process can be active" +msgstr "°ÅÌۤΥê¥ó¥¯½èÍý¤Ï°ì¤Ä¤À¤±¤·¤«¥¢¥¯¥Æ¥£¥Ö¤Ë¤Ç¤­¤Þ¤»¤ó" + +msgid "" +"sorry, link type %1 not activated: only one implicit or explicit link " +"process can be active (with base document type as source document type)" +msgstr "" +"¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¤¬¡¢¥ê¥ó¥¯·¿ %1 ¤Ï¥¢¥¯¥Æ¥£¥Ö¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤»¤ó: °ÅÌÛ¡¢¤¢¤ë¤¤¤Ï" +"ÌÀ¼¨Åª¥ê¥ó¥¯½èÍý¤Ï(´ðÄìʸ½ñ·¿¤¬¥½¡¼¥¹Ê¸½ñ·¿¤Ç¤¢¤ë¤È¤­¤Ë)°ì¤Ä¤À¤±¥¢¥¯¥Æ¥£¥Ö¤Ë" +"¤Ç¤­¤Þ¤¹" + +msgid "name missing after name group in entity reference" +msgstr "¼ÂÂλ²¾ÈÆâ¤Ç¿·µ¬¥°¥ë¡¼¥×¤Î¸å¤Î̾Á°¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "" +"source document type name for link type %1 must be base document type since " +"EXPLICIT NO" +msgstr "" +"EXPLICIT NO¤Ç¤¢¤ë¤Î¤Ç¡¢¥ê¥ó¥¯·¿ %1 ¤ËÂФ¹¤ë¥½¡¼¥¹Ê¸½ñ·¿Ì¾¤Ï´ðÄìʸ½ñ·¿¤Ç¤Ê¤±¤ì" +"¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "link process must be activated before base DTD" +msgstr "¥ê¥ó¥¯½èÍý¤Ï´ðÄìDTD¤è¤êÁ°¤Ë¥¢¥¯¥Æ¥£¥Ö¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó" + +msgid "unexpected entity end while starting second pass" +msgstr "ÂèÆóÃʳ¬¤ò³«»Ï¤¹¤ë´Ö¤Ëͽ´ü¤»¤Ì¼ÂÂΤνªÃ¼" + +#, fuzzy +msgid "" +"type %1 of element with ID %2 not associated element type for applicable " +"link rule in ID link set" +msgstr "" +"·¿ %1 (ID %2 ¤ÎÍ×ÁǤΡ¢)¤ÏID¥ê¥ó¥¯¥»¥Ã¥ÈÆâ¤ÎÍøÍѲÄǽ¤Ê¥ê¥ó¥¯¥ë¡¼¥ë¤ËÂФ·¤ÆÍ×" +"ÁÇ·¿¤ò´ØÏ¢¤Å¤±¤Æ¤¤¤Þ¤»¤ó" + +msgid "DATATAG feature not implemented" +msgstr "TATATAGµ¡Ç½¤Ï¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó" + +msgid "" +"generic identifier specification missing after document type specification " +"in start-tag" +msgstr "³«»Ï¥¿¥°Æâ¤Îʸ½ñ·¿»ØÄê¤Î¸å¤Î°ìÈ̼±Ê̻һØÄ꤬¤¢¤ê¤Þ¤»¤ó" + +msgid "" +"generic identifier specification missing after document type specification " +"in end-tag" +msgstr "½ªÎ»¥¿¥°Æâ¤Îʸ½ñ·¿»ØÄê¤Î¸å¤Î°ìÈ̼±Ê̻һØÄ꤬¤¢¤ê¤Þ¤»¤ó" + +msgid "a NET-enabling start-tag cannot include a document type specification" +msgstr "NETÍ­¸ú¤Ê³«»Ï¥¿¥°¤Ëʸ½ñ·¿»ØÄê¤ò´Þ¤á¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó" + +msgid "DTD did not contain element declaration for document type name" +msgstr "DTD¤Ïʸ½ñ·¿Ì¾¤ËÂФ¹¤ëÍ×ÁÇÀë¸À¤ò´Þ¤ó¤Ç¤¤¤Þ¤»¤ó¤Ç¤·¤¿" + +msgid "invalid default SGML declaration" +msgstr "ÉÔŬÀڤʥǥե©¥ë¥ÈSGMLÀë¸À" + +msgid "" +"reference to entity %1 for which no system identifier could be generated" +msgstr "¼ÂÂÎ %1 ¤Ø¤Î»²¾È¤¹¤ë¥·¥¹¥Æ¥à¼±Ê̻ҤòÀ¸À®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿" + +msgid "entity was defined here" +msgstr "¼ÂÂΤϤ³¤³¤ÇÄêµÁ¤µ¤ì¤Þ¤·¤¿" + +msgid "content model is mixed but does not allow #PCDATA everywhere" +msgstr "À©¸æ¥â¥Ç¥ë¤¬º®ºß¤·¤Æ¤¤¤Þ¤¹¤¬ #PCDATA¤Ï¤É¤³¤Ç¤âµö¤µ¤ì¤Æ¤¤¤Þ¤»¤ó" + +msgid "start or end of range must specify a single character" +msgstr "Îΰè¤Î³«»Ï¤¢¤ë¤¤¤Ï½ªÃ¼¤Ç¤Ï°ìʸ»ú¤Ç»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"number of first character in range must not exceed number of second " +"character in range" +msgstr "ÎΰèÆâ¤ÎºÇ½é¤Îʸ»ú¿ô¤ÏÎΰèÆâ¤ÎÆóÈÖÌܤÎʸ»ú¿ô¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "delimiter cannot be an empty string" +msgstr "¥Ç¥ê¥ß¥¿¤Ï¶õʸ»ú¤Ë¤Ç¤­¤Þ¤»¤ó" + +msgid "too many characters assigned same meaning with minimum literal" +msgstr "ºÇ¾®¥ê¥Æ¥é¥ë¤Ë¤Ä¤¤¤ÆƱ¤¸°ÕÌ£¤Ë³äÅö¤Æ¤Æ¤¤¤ëʸ»ú¤¬Â¿¤¹¤®¤Þ¤¹" + +msgid "earlier reference to entity %1 used default entity" +msgstr "¼ÂÂÎ %1 ¤Ø¤Î¤è¤êÁ°¤Î»²¾È¤Ï¥Ç¥Õ¥©¥ë¥È¼ÂÂΤò»È¤Ã¤Æ¤¤¤Þ¤¹" + +msgid "empty start-tag" +msgstr "¶õ¤Î³«»Ï¥¿¥°" + +msgid "empty end-tag" +msgstr "¶õ¤Î½ªÎ»¥¿¥°" + +msgid "unused short reference map %1" +msgstr "̤»ÈÍѤÎû½Ì»²¾È¥Þ¥Ã¥× %1" + +msgid "unused parameter entity %1" +msgstr "̤»ÈÍѤÎÊÑ¿ô¼ÂÂÎ %1" + +msgid "cannot generate system identifier for public text %1" +msgstr "¸ø³«¥Æ¥­¥¹¥È %1 ¤ËÂФ¹¤ë°ìÈÌ¥·¥¹¥Æ¥à¼±Ê̻ҤòÀ¸À®¤Ç¤­¤Þ¤»¤ó" + +msgid "cannot generate system identifier for general entity %1" +msgstr "°ìÈ̼ÂÂÎ %1 ¤ËÂФ¹¤ë°ìÈÌ¥·¥¹¥Æ¥à¼±Ê̻ҤòÀ¸À®¤Ç¤­¤Þ¤»¤ó" + +msgid "cannot generate system identifier for parameter entity %1" +msgstr "ÊÑ¿ô¼ÂÂÎ %1 ¤ËÂФ¹¤ë°ìÈÌ¥·¥¹¥Æ¥à¼±Ê̻ҤòÀ¸À®¤Ç¤­¤Þ¤»¤ó" + +msgid "cannot generate system identifier for document type %1" +msgstr "ʸ½ñ·¿ %1 ¤ËÂФ¹¤ë°ìÈÌ¥·¥¹¥Æ¥à¼±Ê̻ҤòÀ¸À®¤Ç¤­¤Þ¤»¤ó" + +msgid "cannot generate system identifier for link type %1" +msgstr "¥ê¥ó¥¯·¿ %1 ¤ËÂФ¹¤ë°ìÈÌ¥·¥¹¥Æ¥à¼±Ê̻ҤòÀ¸À®¤Ç¤­¤Þ¤»¤ó" + +msgid "cannot generate system identifier for notation %1" +msgstr "µ­½Ò %1 ¤ËÂФ¹¤ë°ìÈÌ¥·¥¹¥Æ¥à¼±Ê̻ҤòÀ¸À®¤Ç¤­¤Þ¤»¤ó" + +msgid "element type %1 both included and excluded" +msgstr "Í×ÁÇ·¿ %1 ¤Ïinclude¤«¤Äexclude¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "no document type declaration; implying %1" +msgstr "ʸ½ñ·¿Àë¸À¤¬¤¢¤ê¤Þ¤»¤ó¡¢%1 ¤È¤·¤Æ²ò¼á¤·¤Þ¤¹" + +msgid "minimum data of AFDR declaration must be \"ISO/IEC 10744:1997\" not %1" +msgstr "" +"AFDRÀë¸À¤ÎºÇ¾®¥Ç¡¼¥¿¤Ï %1 ¤Ç¤Ï¤Ê¤¯¡¢\"ISO/IEC 10744:1997\"¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»" +"¤ó" + +msgid "AFDR declaration required before use of AFDR extensions" +msgstr "AFDRÀë¸À¤ÏAFDR³ÈÄ¥¤Î»ÈÍѤÎÁ°¤ÇɬÍפǤ¹" + +msgid "" +"ENR extensions were used but minimum literal was not \"ISO 8879:1986 (ENR)\" " +"or \"ISO 8879:1986 (WWW)\"" +msgstr "" +"ENR³ÈÄ¥¤¬»ÈÍѤµ¤ì¤Æ¤¤¤Þ¤¹¤¬ºÇ¾®¥ê¥Æ¥é¥ë¤Ï \"ISO 8879:1986 (ENR)\" ¤¢¤ë¤¤¤Ï " +"\"ISO 8879:1986 (WWW)\"¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿" + +msgid "illegal numeric character reference to non-SGML character %1 in literal" +msgstr "¥ê¥Æ¥é¥ëÆâ¤ÇÈóSGMLʸ»ú %1 ¤Ø¤ÎÉÔÀµ¤ÊÈÖ¹æʸ»ú»²¾È" + +msgid "" +"cannot convert character reference to number %1 because description %2 " +"unrecognized" +msgstr "ʸ»ú»²¾È¤òÈÖ¹æ %1 ¤ØÊÑ´¹¤Ç¤­¤Þ¤»¤ó(ÀâÌÀ %2 ¤òÍý²òÉÔǽ¤Ê¤¿¤á)" + +msgid "" +"cannot convert character reference to number %1 because character %2 from " +"baseset %3 unknown" +msgstr "" +"ʸ»ú»²¾È¤òÈÖ¹æ %1 ¤ØÊÑ´¹¤Ç¤­¤Þ¤»¤ó(ÉÔÌÀ¤Êʸ»ú %2 [´ðÄ쥻¥Ã¥È %3 ¤«¤é¡¢])" + +msgid "" +"character reference to number %1 cannot be converted because of problem with " +"internal character set" +msgstr "ÆâÉôʸ»ú¥»¥Ã¥È¤ÎÌäÂê¤Çʸ»ú»²¾È¤«¤éÈÖ¹æ %1 ¤Ø¤ÎÊÑ´¹¤Ï¤Ç¤­¤Þ¤»¤ó" + +msgid "" +"cannot convert character reference to number %1 because character not in " +"internal character set" +msgstr "" +"ÆâÉôʸ»ú¥»¥Ã¥ÈÆâ¤Ëʸ»ú¤¬Â¸ºß¤·¤Ê¤¤¤¿¤áʸ»ú»²¾È¤òÈÖ¹æ %1 ¤ØÊÑ´¹¤Ç¤­¤Þ¤»¤ó" + +msgid "" +"Web SGML adaptations were used but minimum literal was not \"ISO 8879:1986 " +"(WWW)\"" +msgstr "" +"¥¦¥§¥ÖSGMLŬ¹ç¤¬»ÈÍѤµ¤ì¤Æ¤¤¤Þ¤¹¤¬ºÇ¾®¥ê¥Æ¥é¥ë¤Ï \"ISO 8879:1986 (WWW)\"¤Ç¤Ï" +"¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿" + +msgid "" +"token %1 can be value for multiple attributes so attribute name required" +msgstr "¥È¡¼¥¯¥ó %1 ¤ÏÊ£¹ç°À­¤ËÂФ¹¤ëÃͤˤʤꤨ¤ë¤Î¤Ç°À­Ì¾¤¬É¬ÍפǤ¹" + +msgid "length of hex number must not exceed NAMELEN (%1)" +msgstr "½½Ï»¿Ê¿ôÃÍŤÏNAMELEN(%1)¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó" + +msgid "CDATA declared content" +msgstr "CDATAÀë¸ÀÆâÍÆ" + +msgid "RCDATA declared content" +msgstr "RCDATAÀë¸ÀÆâÍÆ" + +msgid "inclusion" +msgstr "inclusion" + +msgid "exclusion" +msgstr "exclusion" + +msgid "NUMBER or NUMBERS declared value" +msgstr "NUMBER¤¢¤ë¤¤¤ÏNUMBERSÀë¸ÀÃÍ" + +msgid "NAME or NAMES declared value" +msgstr "NAME¤¢¤ë¤¤¤ÏNAMESÀë¸ÀÃÍ" + +msgid "NUTOKEN or NUTOKENS declared value" +msgstr "NUTOKEN¤¢¤ë¤¤¤ÏNUTOKENSÀë¸ÀÃÍ" + +msgid "CONREF attribute" +msgstr "CONREF°À­" + +msgid "CURRENT attribute" +msgstr "CURRENT°À­" + +msgid "TEMP marked section" +msgstr "TEMP¥Þ¡¼¥¯ÉÕ¤­¥»¥¯¥·¥ç¥ó" + +msgid "included marked section in the instance" +msgstr "¥¤¥ó¥¹¥¿¥ó¥¹Æâ¤Î¥Þ¡¼¥¯ÉÕ¤­¥»¥¯¥·¥ç¥ó¤¬include¤µ¤ì¤Þ¤·¤¿" + +msgid "ignored marked section in the instance" +msgstr "¥¤¥ó¥¹¥¿¥ó¥¹Æâ¤Î¥Þ¡¼¥¯ÉÕ¤­¥»¥¯¥·¥ç¥ó¤¬Ìµ»ë¤µ¤ì¤Þ¤·¤¿" + +msgid "RCDATA marked section" +msgstr "RCDATA¥Þ¡¼¥¯ÉÕ¤­¥»¥¯¥·¥ç¥ó" + +msgid "processing instruction entity" +msgstr "Ì¿Îá¼ÂÂΤò½èÍýÃæ" + +msgid "bracketed text entity" +msgstr "³ç¸ÌÉÕ¤­¥Æ¥­¥¹¥È¼ÂÂÎ" + +msgid "internal CDATA entity" +msgstr "ÆâÉôCDATA¼ÂÂÎ" + +msgid "internal SDATA entity" +msgstr "ÆâÉôSDATA¼ÂÂÎ" + +msgid "external CDATA entity" +msgstr "³°ÉôCDATA¼ÂÂÎ" + +msgid "external SDATA entity" +msgstr "³°ÉôSDATA¼ÂÂÎ" + +msgid "attribute definition list declaration for notation" +msgstr "µ­½Ò¤ËÂФ¹¤ë°À­ÄêµÁ¥ê¥¹¥ÈÀë¸À" + +msgid "rank stem" +msgstr "¥é¥ó¥¯¥¹¥Æ¥à" + +msgid "no system id specified" +msgstr "¥·¥¹¥Æ¥àID»ØÄ꤬¤¢¤ê¤Þ¤»¤ó" + +msgid "comment in parameter separator" +msgstr "ÊÑ¿ô¥»¥Ñ¥ì¡¼Æâ¤Ë¥³¥á¥ó¥È" + +msgid "named character reference" +msgstr "̾Á°ÉÕ¤­Ê¸»ú»²¾È" + +msgid "AND group" +msgstr "AND¥°¥ë¡¼¥×" + +msgid "attribute value not a literal" +msgstr "°À­Ãͤ¬¥ê¥Æ¥é¥ë¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "attribute name missing" +msgstr "°À­Ì¾¤¬¤ß¤Ä¤«¤ê¤Þ¤»¤ó" + +msgid "element declaration for group of element types" +msgstr "Í×ÁÇ·¿¤Î¥°¥ë¡¼¥×¤ËÂФ¹¤ëÍ×ÁÇÀë¸À" + +msgid "attribute definition list declaration for group of element types" +msgstr "Í×ÁÇ·¿¤Î¥°¥ë¡¼¥×¤ËÂФ¹¤ë°À­ÄêµÁ¥ê¥¹¥ÈÀë¸À" + +msgid "empty comment declaration" +msgstr "¶õ¤Î¥³¥á¥ó¥ÈÀë¸À" + +msgid "S separator in comment declaration" +msgstr "¥³¥á¥ó¥ÈÀë¸ÀÆâ¤ÎS¶èÀÚ¤ê»Ò" + +msgid "multiple comments in comment declaration" +msgstr "¥³¥á¥ó¥ÈÀë¸ÀÆâ¤ÎÊ£¹ç¥³¥á¥ó¥È" + +msgid "no status keyword" +msgstr "¥¹¥Æ¡¼¥¿¥¹¥­¡¼¥ï¡¼¥É¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "multiple status keywords" +msgstr "Ê£¹ç¥¹¥Æ¡¼¥¿¥¹¥­¡¼¥ï¡¼¥É" + +msgid "parameter entity reference in document instance" +msgstr "ʸ½ñ¥¤¥ó¥¹¥¿¥ó¥¹Æâ¤ÎÊÑ¿ô¼ÂÂλ²¾È" + +msgid "element type minimization parameter" +msgstr "Í×ÁÇ·¿ºÇ¾®ÊÑ¿ô" + +msgid "reference not terminated by REFC delimiter" +msgstr "»²¾È¤¬REFC¥Ç¥ê¥ß¥¿¤Ç½ª¤Ã¤Æ¤¤¤Þ¤»¤ó" + +msgid "#PCDATA not first in model group" +msgstr "¥â¥Ç¥ë¥°¥ë¡¼¥×Æâ¤ÎºÇ½é¤¬ #PCDATA¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó" + +msgid "#PCDATA in SEQ group" +msgstr "SEQ¥°¥ë¡¼¥×Æâ¤Î #PCDATA" + +msgid "#PCDATA in nested model group" +msgstr "Æþ¤ì»Ò¥â¥Ç¥ë¥°¥ë¡¼¥×Æâ¤Î #PCDATA" + +msgid "#PCDATA in model group that does not have REP occurrence indicator" +msgstr "REPȯÀ¸¥¤¥ó¥Ç¥£¥±¡¼¥¿¤ò»ý¤¿¤Ê¤¤¡¢¥â¥Ç¥ë¥°¥ë¡¼¥×Æâ¤Î #PCDATA" + +msgid "name group or name token group used connector other than OR" +msgstr "" +"̾Á°¥°¥ë¡¼¥×¤¢¤ë¤¤¤Ï̾Á°¥È¡¼¥¯¥ó¥°¥ë¡¼¥×¤¬OR¤Ç¤Ê¤¯¥³¥Í¥¯¥¿¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤·¤¿" + +msgid "processing instruction does not start with name" +msgstr "̾Á°¤Ç³«»Ï¤µ¤ì¤Æ¤¤¤Ê¤¤Ì¿Îá¤ò½èÍýÃæ" + +msgid "S separator in status keyword specification in document instance" +msgstr "ʸ½ñ¥¤¥ó¥¹¥¿¥ó¥¹Æâ¤Î¥¹¥Æ¡¼¥¿¥¹¥­¡¼¥ï¡¼¥É»ØÄêÆâ¤ÎS¶èÀÚ¤ê»Ò" + +msgid "reference to external data entity" +msgstr "³°Éô¥Ç¡¼¥¿¼ÂÂΤؤλ²¾È" + +msgid "reference to external entity in attribute value" +msgstr "°À­ÃÍÆâ¤Î³°Éô¼ÂÂΤؤλ²¾È" + +msgid "character %1 is the first character of a delimiter but occurred as data" +msgstr "ʸ»ú %1 ¤Ï¥Ç¥ê¥ß¥¿¤ÎºÇ½é¤Îʸ»ú¤Ç¤¹¤¬¥Ç¡¼¥¿¤Ç¤¢¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹" + +msgid "SGML declaration was not implied" +msgstr "SGMLÀë¸À¤¬°Å¼¨¤µ¤ì¤Þ¤»¤ó¤Ç¤·¤¿" + +msgid "marked section in internal DTD subset" +msgstr "ÆâÉôDTD¥µ¥Ö¥»¥Ã¥ÈÆâ¤Î¥Þ¡¼¥¯ÉÕ¤­¥»¥¯¥·¥ç¥ó" + +msgid "NET-enabling start-tag not immediately followed by null end-tag" +msgstr "NETÍ­¸ú¤Ê³«»Ï¥¿¥°¤Î¤¹¤°¸å¤Ënull½ªÎ»¥¿¥°¤¬Â³¤¤¤Æ¤¤¤Þ¤»¤ó" + +msgid "entity end in different element from entity reference" +msgstr "¼ÂÂλ²¾È¤«¤é¤Î°Û¤Ê¤ëÍ×ÁÇÆâ¤Î¼ÂÂΤνªÃ¼" + +msgid "NETENABL IMMEDNET requires EMPTYNRM YES" +msgstr "NETENABL IMMEDNET¤ÏEMPTYNRM YES¤òɬÍפȤ·¤Þ¤¹" + +msgid "reference to non-SGML character" +msgstr "ÈóSGMLʸ»ú¤Ø¤Î»²¾È" + +msgid "declaration of default entity" +msgstr "¥Ç¥Õ¥©¥ë¥È¼ÂÂΤÎÀë¸À" + +msgid "reference to parameter entity in parameter separator in internal subset" +msgstr "ÆâÉô¥µ¥Ö¥»¥Ã¥ÈÆâ¤ÎÊÑ¿ô¶èÀÚ¤ê»ÒÆâ¤ÎÊÑ¿ô¼ÂÂΤؤλ²¾È" + +msgid "reference to parameter entity in token separator in internal subset" +msgstr "ÆâÉô¥µ¥Ö¥»¥Ã¥ÈÆâ¤Î¥È¡¼¥¯¥ó¶èÀÚ¤ê»ÒÆâ¤ÎÊÑ¿ô¼ÂÂΤؤλ²¾È" + +msgid "reference to parameter entity in parameter literal in internal subset" +msgstr "ÆâÉô¥µ¥Ö¥»¥Ã¥ÈÆâ¤ÎÊÑ¿ô¥ê¥Æ¥é¥ëÆâ¤ÎÊÑ¿ô¼ÂÂΤؤλ²¾È" + +msgid "cannot generate system identifier for SGML declaration reference" +msgstr "SGMLÀë¸À»²¾È¤ËÂФ·¤Æ¥·¥¹¥Æ¥à¼±Ê̻ҤòÀ¸À®¤Ç¤­¤Þ¤»¤ó" + +msgid "" +"public text class of formal public identifier of SGML declaration must be SD" +msgstr "SGMLÀë¸À¤Î¸ø¼°¸ø³«¼±Ê̻Ҥθø³«¥Æ¥­¥¹¥È¥¯¥é¥¹¤ÏSD¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +msgid "" +"SGML declaration reference was used but minimum literal was not \"ISO " +"8879:1986 (WWW)\"" +msgstr "" +"SGMLÀë¸À»²¾È¤¬»ÈÍѤµ¤ì¤Æ¤¤¤Þ¤¹¤¬ºÇ¾®¥ê¥Æ¥é¥ë¤Ï \"ISO 8879:1986 (WWW)\"¤Ç¤Ï¤¢" +"¤ê¤Þ¤»¤ó¤Ç¤·¤¿" + +msgid "member of model group containing #PCDATA has occurrence indicator" +msgstr "" +"¥â¥Ç¥ë¥°¥ë¡¼¥×¤Î¥á¥ó¥Ð¡¼¤Ï¥¤¥ó¥Ç¥£¥±¡¼¥¿¤ò»ý¤Á¤¦¤ë #PCDATA ¤ò´Þ¤ó¤Ç¤¤¤Þ¤¹" + +msgid "member of model group containing #PCDATA is a model group" +msgstr "¥â¥Ç¥ë¥°¥ë¡¼¥×¤Î¥á¥ó¥Ð¡¼¤Ï¥â¥Ç¥ë¥°¥ë¡¼¥×¤Ç¤¢¤ë¡¢#PCDATA ¤ò´Þ¤ó¤Ç¤¤¤Þ¤¹" + +msgid "reference to non-predefined entity" +msgstr "ÄêµÁºÑ¤ß¤Ç¤Ê¤¤¼ÂÂΤؤλ²¾È" + +msgid "reference to external entity" +msgstr "³°Éô¼ÂÂΤؤλ²¾È" + +msgid "declaration of default entity conflicts with IMPLYDEF ENTITY YES" +msgstr "¥Ç¥Õ¥©¥ë¥È¼ÂÂΤÎÀë¸À¤ÏIMPLYDEF ENTITY YES¤ÈÌ·½â¤·¤Þ¤¹" + +msgid "parsing with respect to more than one active doctype not supported" +msgstr "Æó¤Ä°Ê¾å¤Î¥¢¥¯¥Æ¥£¥Ö¤Êʸ½ñ·¿¤Ë¤Ä¤¤¤Æ¤Î²òÀϤϥµ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó" + +msgid "cannot have active doctypes and link types at the same time" +msgstr "¥¢¥¯¥Æ¥£¥Ö¤Êʸ½ñ·¿¤È¥ê¥ó¥¯·¿¤òƱ»þ¤Ë»ý¤Ä¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó" + +msgid "" +"number of concurrent document instances exceeds quantity specified for " +"CONCUR parameter in SGML declaration (%1)" +msgstr "" +"Ʊ»þʸ½ñ¥¤¥ó¥¹¥¿¥ó¥¹¤¬SGMLÀë¸À(%1)Æâ¤ÎCONCURÊÑ¿ô¤ËÂФ·¤Æ»ØÄꤵ¤ì¤¿Ãͤò±Û¤¨¤Æ" +"¤¤¤Þ¤¹" + +msgid "datatag group can only be specified in base document type" +msgstr "¥Ç¡¼¥¿¥¿¥°¥°¥ë¡¼¥×¤Ï´ðÄìʸ½ñ·¿Æâ¤Ç¤Î¤ß»ØÄê¤Ç¤­¤Þ¤¹" + +msgid "element not in the base document type can't have an empty start-tag" +msgstr "´ðÄìʸ½ñ·¿³°¤ÎÍ×ÁǤ϶õ³«»Ï¥¿¥°¤ò»ý¤Æ¤Þ¤»¤ó" + +msgid "element not in base document type can't have an empty end-tag" +msgstr "´ðÄìʸ½ñ·¿³°¤ÎÍ×ÁǤ϶õ½ªÎ»¥¿¥°¤ò»ý¤Æ¤Þ¤»¤ó" + +#, fuzzy +msgid "immediately recursive element" +msgstr "¤¹¤°¤ÎºÆµ¢Í×ÁÇ" + +msgid "invalid URN %1: missing \":\"" +msgstr "ÉÔÀµ¤ÊURN %1: \":\" ¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "invalid URN %1: missing \"urn:\" prefix" +msgstr "ÉÔÀµ¤ÊURN %1: \"urn:\"ÀÜƬ¼­¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "invalid URN %1: invalid namespace identifier" +msgstr "ÉÔÀµ¤ÊURN %1: ÉÔŬÀÚ¤Ê̾Á°¶õ´Ö¼±ÊÌ»Ò" + +msgid "invalid URN %1: invalid namespace specific string" +msgstr "ÉÔÀµ¤ÊURN %1: ÉÔŬÀÚ¤Ê̾Á°¶õ´Ö¼±ÊÌ»Òʸ»úÎó" + +msgid "invalid URN %1: extra field" +msgstr "ÉÔÀµ¤ÊURN %1: ;ʬ¤Ê¥Õ¥£¡¼¥ë¥É" + +msgid "" +"prolog can't be omitted unless CONCUR NO and LINK EXPLICIT NO and either " +"IMPLYDEF ELEMENT YES or IMPLYDEF DOCTYPE YES" +msgstr "" +"CONCUR NO¤ÈLINK EXPLICIT NO¤ÈIMPLYDEF ELEMENT YES¤¢¤ë¤¤¤ÏIMPLYDEF DOCTYPE YES" +"¤¬¤¢¤ê¤Þ¤»¤ó¤Ç¤Ï¥×¥í¥í¡¼¥°¤Ï¾Êά¤Ç¤­¤Þ¤»¤ó" + +msgid "can't determine name of #IMPLIED document element" +msgstr "#IMPLIEDʸ½ñÍ×ÁǤÎ̾Á°¤òÆÃÄê¤Ç¤­¤Þ¤»¤ó" + +msgid "can't use #IMPLICIT doctype unless CONCUR NO and LINK EXPLICIT NO" +msgstr "" +"CONCUR NO¤ÈLINK EXPLICIT NO¤¬¤¢¤ê¤Þ¤»¤ó¤Ç¤Ï #IMPLICITʸ½ñ·¿¤ò»È¤¦¤³¤È¤Ï¤Ç¤­¤Þ" +"¤»¤ó" + +#, fuzzy +msgid "Sorry, #IMPLIED doctypes not implemented" +msgstr "¿½¤·Ê¬¤±¤¢¤ê¤Þ¤»¤ó¤¬ #IMPLICITʸ½ñ·¿¤Ï¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó" + +msgid "reference to DTD data entity ignored" +msgstr "DTD¥Ç¡¼¥¿¼ÂÂΤؤλ²¾È¤Ï̵»ë¤µ¤ì¤Þ¤¹" + +msgid "notation %1 for parameter entity %2 undefined" +msgstr "µ­½Ò %1 (ÊÑ¿ô¼ÂÂÎ %2 ¤ËÂФ¹¤ë¡¢)¤Ï̤ÄêµÁ¤Ç¤¹" + +msgid "notation %1 for external subset undefined" +msgstr "³°Éô¥µ¥Ö¥»¥Ã¥È¤ËÂФ¹¤ëµ­½Ò %1 ¤Ï̤ÄêµÁ¤Ç¤¹" + +msgid "attribute %1 can't be redeclared" +msgstr "" + +#, fuzzy +msgid "#IMPLICIT attributes have already been specified for notation %1" +msgstr "µ­½Ò %1 ¤ËÂФ·¤Æ¤Ï²¿¤â°À­¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó" + +#, fuzzy +msgid "" +"a name group is not allowed in a parameter entity reference in a start tag" +msgstr "³«»Ï¥¿¥°Æâ¤Î°ìÈ̼ÂÂλ²¾ÈÆâ¤Ç¤Ï̾Á°¥°¥ë¡¼¥×¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +#, fuzzy +msgid "" +"name group in a parameter entity reference in an end tag (SGML forbids them " +"in start tags)" +msgstr "³«»Ï¥¿¥°Æâ¤Î°ìÈ̼ÂÂλ²¾ÈÆâ¤Ç¤Ï̾Á°¥°¥ë¡¼¥×¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +#, fuzzy +msgid "if the declared value is NOTATION a default value of CONREF is useless" +msgstr "" +"¤â¤·Àë¸ÀÃͤ¬ID¤Ê¤é¥Ç¥Õ¥©¥ë¥ÈÃͤÏIMPLIED¤¢¤ë¤¤¤ÏREQUIRED¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó" + +#, fuzzy +msgid "Sorry, #ALL and #IMPLICIT content tokens not implemented" +msgstr "¿½¤·Ê¬¤±¤¢¤ê¤Þ¤»¤ó¤¬ #IMPLICITʸ½ñ·¿¤Ï¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó" + +msgid "delimiter " +msgstr "¥Ç¥ê¥ß¥¿ " + +msgid "digit" +msgstr "¥Ç¥£¥¸¥Ã¥È" + +msgid "name start character" +msgstr "̾Á°³«»Ïʸ»ú" + +msgid "sepchar" +msgstr "¶èÀÚ¤ê»Òʸ»ú" + +msgid "separator" +msgstr "¶èÀÚ¤ê»Ò" + +msgid "name character" +msgstr "̾Á°Ê¸»ú" + +msgid "data character" +msgstr "¥Ç¡¼¥¿Ê¸»ú" + +msgid "minimum data character" +msgstr "ºÇ¾®¥Ç¡¼¥¿Ê¸»ú" + +msgid "significant character" +msgstr "ÌÀ¼¨Ê¸»ú" + +msgid "record end character" +msgstr "¥ì¥³¡¼¥É½ªÃ¼Ê¸»ú" + +msgid "record start character" +msgstr "¥ì¥³¡¼¥É³«»Ïʸ»ú" + +msgid "space character" +msgstr "¥¹¥Ú¡¼¥¹Ê¸»ú" + +msgid ", " +msgstr "," + +msgid "-" +msgstr "-" + +msgid "parameter literal" +msgstr "ÊÑ¿ô¥ê¥Æ¥é¥ë" + +msgid "data tag group" +msgstr "¥Ç¡¼¥¿¥¿¥°¥°¥ë¡¼¥×" + +msgid "model group" +msgstr "¥â¥Ç¥ë¥°¥ë¡¼¥×" + +msgid "data tag template group" +msgstr "¥Ç¡¼¥¿¥¿¥°¥Æ¥ó¥×¥ì¡¼¥È¥°¥ë¡¼¥×" + +msgid "name" +msgstr "̾Á°" + +msgid "name token" +msgstr "̾Á°¥È¡¼¥¯¥ó" + +msgid "element token" +msgstr "Í×Áǥȡ¼¥¯¥ó" + +msgid "inclusions" +msgstr "inclusions" + +msgid "exclusions" +msgstr "exclusions" + +msgid "minimum literal" +msgstr "ºÇ¾®¥ê¥Æ¥é¥ë" + +msgid "attribute value literal" +msgstr "°À­ÃÍ¥ê¥Æ¥é¥ë" + +msgid "system identifier" +msgstr "¥·¥¹¥Æ¥à¼±ÊÌ»Ò" + +msgid "number" +msgstr "¿ô»ú" + +msgid "attribute value" +msgstr "°À­ÃÍ" + +msgid "name of capacity" +msgstr "¥­¥ã¥Ñ¥·¥Æ¥£Ì¾" + +msgid "name of general delimiter role" +msgstr "°ìÈ̥ǥê¥ß¥¿¥í¡¼¥ë̾" + +msgid "reference reserved name" +msgstr "³ÎÊݤµ¤ì¤¿Ì¾Á°¤Î»²¾È" + +msgid "name of quantity" +msgstr "quantity̾" + +msgid "entity end" +msgstr "¼ÂÂΤνªÃ¼" + +msgid "short reference delimiter" +msgstr "û½Ì»²¾È¥Ç¥ê¥ß¥¿" + +msgid "error reading %1 (%2)" +msgstr "%1 (%2)¤òÆɤ߹þ¤ßÃæ¤Ë¥¨¥é¡¼" + +msgid "cannot open %1 (%2)" +msgstr "%1 (%2)¤ò³«¤±¤Þ¤»¤ó" + +msgid "error closing %1 (%2)" +msgstr "%1 (%2)¤òÊĤ¸¤Æ¤¤¤ë´Ö¤Ë¥¨¥é¡¼" + +msgid "error seeking on %1 (%2)" +msgstr "%1 (%2)¤ò¸¡º÷Ãæ¤Ë¥¨¥é¡¼" + +msgid "invalid filename %1" +msgstr "ÉÔŬÀڤʥե¡¥¤¥ë̾ %1" + +msgid "error reading file descriptor %1 (%2)" +msgstr "¥Õ¥¡¥¤¥ë¥Ç¥¹¥¯¥ê¥×¥¿ %1 (%2)¤òÆɤ߹þ¤ßÃæ¤Ë¥¨¥é¡¼" + +msgid "error seeking on file descriptor %1 (%2)" +msgstr "¥Õ¥¡¥¤¥ë¥Ç¥¹¥¯¥ê¥×¥¿ %1 (%2)¤ò¸¡º÷Ãæ¤Ë¥¨¥é¡¼" + +msgid "%1 is not a valid file descriptor number" +msgstr "%1 ¤ÏÉÔŬÀڤʥե¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿ÈÖ¹æ¤Ç¤¹" + +msgid "cannot find %1; tried %2" +msgstr "%1 ¤ò¤ß¤Ä¤±¤é¤ì¤Þ¤»¤ó¡¢%2 ¤ò»î¤·¤Þ¤¹" + +msgid "error seeking %1 (%2)" +msgstr "%1 (%2)¤ò¸¡º÷Ãæ¤Ë¥¨¥é¡¼" + +msgid "empty host in HTTP URL %1" +msgstr "HTTP URL %1Æâ¤Ë¶õ¤Î¥Û¥¹¥È" + +msgid "uncompletable relative HTTP URL %1" +msgstr "ÉÔ´°Á´¤ÊÁêÂÐHTTP URL %1" + +msgid "empty port number in HTTP URL %1" +msgstr "HTTP URL %1Æâ¤Ë¶õ¤Î¥Ý¡¼¥ÈÈÖ¹æ" + +msgid "invalid port number in HTTP URL %1" +msgstr "HTTP URL %1Æâ¤ËÉÔŬÀڤʥݡ¼¥ÈÈÖ¹æ" + +msgid "host %1 not found" +msgstr "¥Û¥¹¥È %1 ¤¬¤ß¤Ä¤«¤ê¤Þ¤»¤ó" + +msgid "could not resolve host %1 (try again later)" +msgstr "¥Û¥¹¥È %1¤Î̾Á°²ò·è¤¬¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿(¸å¤ÇºÆÅٻ¤Þ¤¹)" + +msgid "could not resolve host %1 (unrecoverable error)" +msgstr "¥Û¥¹¥È %1¤Î̾Á°²ò·è¤¬¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿(²óÉüÉÔǽ¤Ê¥¨¥é¡¼)" + +msgid "no address record for host name %1" +msgstr "¥Û¥¹¥È̾ %1 ¤ËÂФ¹¤ë¥¢¥É¥ì¥¹¥ì¥³¡¼¥É¤¬¤¢¤ê¤Þ¤»¤ó" + +msgid "could not resolve host %1 (%2)" +msgstr "¥Û¥¹¥È %1 (%2)¤Î̾Á°²ò·è¤¬¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿" + +msgid "could not resolve host %1 (unknown error)" +msgstr "¥Û¥¹¥È %1 ¤Î̾Á°²ò·è¤¬¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿(ÉÔÌÀ¤Ê¥¨¥é¡¼)" + +msgid "cannot create socket (%1)" +msgstr "¥½¥±¥Ã¥È(%1)¤òÀ¸À®¤Ç¤­¤Þ¤»¤ó" + +msgid "error connecting to %1 (%2)" +msgstr "%1 (%2)¤ËÀܳÃæ¤Ë¥¨¥é¡¼" + +msgid "error sending request to %1 (%2)" +msgstr "%1 (%2)¤Ë¥ê¥¯¥¨¥¹¥ÈÁ÷¿®Ãæ¤Ë¥¨¥é¡¼" + +msgid "error receiving from host %1 (%2)" +msgstr "¥Û¥¹¥È %1 (%2)¤«¤é¼õ¿®Ãæ¤Ë¥¨¥é¡¼" + +msgid "error closing connection to host %1 (%2)" +msgstr "¥Û¥¹¥È %1 (%2)¤Ø¤ÎÀܳ¤òÊĤ¸¤ëºÝ¤Ë¥¨¥é¡¼" + +msgid "invalid host number %1" +msgstr "ÉÔŬÀڤʥۥ¹¥ÈÈÖ¹æ %1" + +msgid "could not get %2 from %1 (reason given was %3)" +msgstr "%2 (%1 ¤«¤é¡¢)¼èÆÀ¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿(Íýͳ: %3)" + +msgid "URL not supported by this version" +msgstr "¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤ÏURL¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó" + +msgid "only HTTP scheme supported" +msgstr "HTTP¥¹¥­¡¼¥à¤À¤±¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "could not initialize Windows Sockets (%1)" +msgstr "Windows ¥½¥±¥Ã¥È (%1)¤ò½é´ü²½¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿" + +msgid "incompatible Windows Sockets version" +msgstr "¸ß´¹À­¤Î¤Ê¤¤Windows¥½¥±¥Ã¥È¥Ð¡¼¥¸¥ç¥ó" + +msgid "error number " +msgstr "¥¨¥é¡¼ÈÖ¹æ" + +msgid "URL Redirected to %1" +msgstr "" + +msgid "cannot open URL %1 (%2)" +msgstr "URL %1 (%2)¤ò³«¤±¤Þ¤»¤ó" + +msgid "error reading URL %1 (%2)" +msgstr "URL %1 (%2)¤òÆɤ߹þ¤ßÃæ¤Ë¥¨¥é¡¼" + +msgid "unknown output option %1" +msgstr "ÉÔÌÀ¤Ê½ÐÎÏ¥ª¥×¥·¥ç¥ó %1" + +msgid "Enable batch mode." +msgstr "¥Ð¥Ã¥Á¥â¡¼¥É¤òÍ­¸ú²½" + +msgid "Produce output according to %1." +msgstr "%1 ¤Ø¤Î½ÐÎϤòÀ¸À®" + +msgid "Stop after the document prolog." +msgstr "ʸ½ñ¥×¥í¥í¡¼¥°¸å¤ËÄä»ß" + +msgid "Suppress output." +msgstr "½ÐÎϤò¶¯À©" + +msgid "Send RAST output to file %1." +msgstr "¥Õ¥¡¥¤¥ë %1 ¤Ø¤ÎRAST½ÐÎϤòÁ÷½Ð" + +msgid "Same as -wduplicate." +msgstr "-wduplicate¤ÈƱ°ì" + +msgid "Same as -oline." +msgstr "-oline¤ÈƱ°ì" + +msgid "Same as -c." +msgstr "-c¤ÈƱ°ì" + +msgid "Same as -wdefault." +msgstr "-wdefault¤ÈƱ°ì" + +msgid "Same as -wundef." +msgstr "-wundef¤ÈƱ°ì" + +msgid "%1 parses and validates the SGML document whose document entity is" +msgstr "" +"%1 ¤ÏSGMLʸ½ñ¤ò²òÀÏ¡¢ÂÅÅöÀ­¤Î¸¡¾Ú¤ò¹Ô¤¤¤Þ¤¹¡£ÂоݤÎʸ½ñ¤Ï¥·¥¹¥Æ¥à¼±ÊÌ»Ò" + +msgid "specified by the system identifiers SYSID... and prints on the standard" +msgstr "SYSID¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¡¢¤½¤ÎÍ×Áǹ½Â¤¾ðÊ󥻥åȤÎñ½ã¤Ê¥Æ¥­¥¹¥Èɽ¸½¤ò" + +msgid "" +"output a simple text representation of its Element Structure Information Set." +msgstr "ɸ½à½ÐÎϤ˽ÐÎϤ·¤Þ¤¹¡£" + +msgid "If more than one system identifier is specified, then the corresponding" +msgstr "¤â¤·°ì¤Ä°Ê¾å¤Î¥·¥¹¥Æ¥à¼±Ê̻Ҥ¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¡¢Âбþ¤¹¤ë¼ÂÂ粤Ï" + +msgid "entities will be concatenated to form the document entity. If no system" +msgstr "ʸ½ñ¼ÂÂΤ«¤é°ì¤Ä¤Ë¤Þ¤È¤á¤é¤ì¤Þ¤¹¡£¤â¤·¥·¥¹¥Æ¥à¼±Ê̻Ҥ¬Ì¤»ØÄê¤Ê¤é¤Ð" + +msgid "identifiers are specified, then %1 will read the document entity from" +msgstr "%1 ¤Ïɸ½àÆþÎϤ«¤éʸ½ñ¼ÂÂΤòÆɤ߹þ¤ß¤Þ¤¹¡£- ¤Î¥³¥Þ¥ó¥É¹Ô¥·¥¹¥Æ¥à" + +msgid "the standard input. A command line system identifier of - can be used" +msgstr "¼±Ê̻Ҥâɸ½àÆþÎϤò»²¾È¤¹¤ë¤¿¤á¤Ë»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£" + +msgid "to refer to the standard input." +msgstr " " + +msgid "OPTION" +msgstr "¥ª¥×¥·¥ç¥ó" + +msgid "invalid RAST processing instruction" +msgstr "ÉÔÀµ¤ÊRAST½èÍýÌ¿Îá" + +msgid "invalid link type %1 in rast-active-lpd processing instruction" +msgstr "rast-active-lpd ½èÍýÌ¿ÎáÆâ¤ËÉÔÀµ¤Ê¥ê¥ó¥¯·¿ %1" + +msgid "duplicate link type %1 in rast-active-lpd processing instruction" +msgstr "rast-active-lpd ½èÍýÌ¿ÎáÆâ¤Ë½ÅÊ£¤¹¤ë¥ê¥ó¥¯·¿ %1" + +msgid "rast-link-rule: processing instruction matches more than one link rule" +msgstr "rast-link-rule: ½èÍýÌ¿Îá¤Ï°ì¤Ä°Ê¾å¤Î¥ê¥ó¥¯¥ë¡¼¥ë¤Ë°ìÃפ·¤Þ¤¹" + +msgid "rast-link-rule: processing instruction does not match any link rules" +msgstr "rast-link-rule: ½èÍýÌ¿Îá¤Ï¤¤¤«¤Ê¤ë¥ê¥ó¥¯¥ë¡¼¥ë¤Ë¤â°ìÃפ·¤Þ¤»¤ó" + +#, fuzzy +msgid "" +"multiple applicable link rules without disambiguating rast-link-rule: " +"processing instruction" +msgstr "dsiambiguating ¤Êrast-link-rule: ½èÍýÌ¿Îá¤Ê¤·¤ÎÊ£¹ç²Äǽ¤Ê¥ê¥ó¥¯¥ë¡¼¥ë" + +msgid "invalid argument for -m option" +msgstr "-m ¥ª¥×¥·¥ç¥ó¤ËÂФ·¤ÆÉÔŬÀڤʰú¿ô" + +msgid "" +"omitted start or end tag implied in CDATA or RCDATA marked section; not " +"normalized" +msgstr "" +"¾Êά¤µ¤ì¤¿³«»Ï¤¢¤ë¤¤¤Ï½ªÎ»¥¿¥°¤¬CDATA¤¢¤ë¤¤¤ÏRCDATA¥Þ¡¼¥¯ÉÕ¤­¥»¥¯¥·¥ç¥óÆâ¤Ç°Å" +"¼¨¤µ¤ì¤Æ¤¤¤Þ¤¹¡£Àµµ¬²½¤·¤Þ¤»¤ó" + +#, fuzzy +msgid "Hoist omitted tags." +msgstr "¾Êά¤µ¤ì¤¿¥¿¥°¤ò·ÇÍÈ" + +#, fuzzy +msgid "Prefer lowercase." +msgstr "¾®Ê¸»úÍ¥Àè" + +msgid "Use markup option %1." +msgstr "¥Þ¡¼¥¯¥¢¥Ã¥×¥ª¥×¥·¥ç¥ó %1¤ò»ÈÍÑ" + +msgid "Output the entity named %1." +msgstr "%1 ¤È¤¤¤¦Ì¾Á°¤Î¼ÂÂΤò½ÐÎÏ" + +msgid "Output the prolog." +msgstr "¥×¥í¥í¡¼¥°¤ò½ÐÎÏ" + +#, fuzzy +msgid "Raw." +msgstr "Raw." + +msgid "Expand references." +msgstr "»²¾È¤òŸ³«" + +msgid "%1 is an SGML markup stream editor. %1 parses the SGML document" +msgstr "%1 ¤ÏSGML¥Þ¡¼¥¯¥¢¥Ã¥×¥¹¥È¥ê¡¼¥à¥¨¥Ç¥£¥¿¤Ç¤¹¡£%1 ¤ÏSYSID...Æâ¤Ë´Þ¤Þ¤ì¤ë" + +msgid "contained in SYSID... and copies portions of the document to the" +msgstr "" +"SGMLʸ½ñ¤ò²òÀϤ·¡¢Ê¸½ñ¤ÎÉôʬ¤òɸ½à½ÐÎϤ˽ÐÎϤ·¡¢¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿" + +msgid "standard output, adding or changing markup as specified by the options." +msgstr "¥Þ¡¼¥Ã¥¯¥¢¥Ã¥×¤òÊѹ¹¡¢Äɲä·¤Þ¤¹¡£" + +msgid "Modify the XML output according to %1." +msgstr "%1 ¤Ë¤Ä¤¤¤ÆXML½ÐÎϤòÊѹ¹" + +msgid "%1 converts SGML to XML. %1 parses and validates the SGML document" +msgstr "%1 ¤ÏSGML¤òXML¤ËÊÑ´¹¤·¤Þ¤¹¡£%1¤ÏSYSID...Æâ¤Ë´Þ¤Þ¤ì¤ëSGMLʸ½ñ¤ò" + +msgid "" +"contained in SYSID... and writes an equivalent XML document to the standard" +msgstr "²òÀϤ·¡¢É¸½à½ÐÎϤËÁêÅö¤¹¤ëXMLʸ½ñ¤ò½ñ¤­½Ð¤·¤Þ¤¹¡£%1 ¤ÏXML¸ß´¹À­¤Î" + +msgid "" +"output. %1 will warn about SGML constructs which have no XML equivalent." +msgstr "¤Ê¤¤SGML¹½Â¤¤Ë¤Ä¤¤¤Æ·Ù¹ð¤·¤Þ¤¹¡£" + +msgid "reference to internal SDATA entity %1 not allowed in XML" +msgstr "ÆâÉôSDATA¼ÂÂÎ %1 ¤Ø¤Î»²¾È¤ÏXML¤Ç¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "reference to external data entity %1 not allowed in XML" +msgstr "³°Éô¥Ç¡¼¥¿¼ÂÂÎ %1 ¤Ø¤Î»²¾È¤ÏXML¤Ç¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "reference to subdocument entity %1 not allowed in XML" +msgstr "Éûʸ½ñ¼ÂÂÎ %1 ¤Ø¤Î»²¾È¤ÏXML¤Ç¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "processing instruction containing \"?>\" not allowed in XML" +msgstr "½èÍýÌ¿Î᤬´Þ¤à \"?>\" ¤ÏXML¤Ç¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "XML requires processing instructions to start with a name" +msgstr "XML¤Ï̾Á°¤È°ì½ï¤Ë³«»Ï¤¹¤ë¤¿¤á¤Î½èÍýÌ¿Îá¤òɬÍפȤ·¤Þ¤¹" + +msgid "external data entity %1 is CDATA or SDATA, but XML allows only NDATA" +msgstr "" +"³°Éô¥Ç¡¼¥¿¼ÂÂÎ %1 ¤ÏCDATA¤¢¤ë¤¤¤ÏSDATA¤¬²Äǽ¤Ç¤¹¤¬¡¢XML¤Çµö¤µ¤ì¤ë¤Î¤ÏNDATA¤À" +"¤±¤Ç¤¹" + +msgid "attributes were defined for notation %1; not allowed in XML" +msgstr "µ­½Ò %1 ¤ËÂФ¹¤ë°À­¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬XML¤Ç¤Ï¤½¤ì¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹" + +msgid "cannot convert formal system identifier %1 to URL" +msgstr "¸ø¼°¥·¥¹¥Æ¥à¼±ÊÌ»Ò %1 ¤òURL¤ËÊÑ´¹¤Ç¤­¤Þ¤»¤ó" + +#, fuzzy +msgid "cannot open output file %1" +msgstr "½ÐÎÏ¥Õ¥¡¥¤¥ë %1 (%2)¤ò³«¤±¤Þ¤»¤ó" + +#, fuzzy +msgid "missing system ID for entity %1" +msgstr "¼ÂÂÎ %1 ¤ËÂФ·¤ÆÍ­¸ú¤Ê¥·¥¹¥Æ¥àID¤òɽ¼¨" + +#, fuzzy +msgid "unexpected entity type for entity named %1" +msgstr "%1 ¤È¤¤¤¦Ì¾Á°¤Î¼ÂÂΤò½ÐÎÏ" + +#, fuzzy +msgid "cannot create directory %1" +msgstr "¥½¥±¥Ã¥È(%1)¤òÀ¸À®¤Ç¤­¤Þ¤»¤ó" + +msgid "already wrote 99 versions of %1; will not overwrite" +msgstr "" + +msgid "already wrote output file %1; will not overwrite" +msgstr "" + +msgid "removing leading slashes from output filename %1" +msgstr "" + +msgid "path %1 outside output directory" +msgstr "" + +msgid "Output a document type declaration." +msgstr "ʸ½ñ·¿Àë¸À¤ò½ÐÎÏ" + +msgid "Output marked sections." +msgstr "¥Þ¡¼¥¯ÉÕ¤­¥»¥¯¥·¥ç¥ó¤ò½ÐÎÏ" + +msgid "Output comments." +msgstr "¥³¥á¥ó¥È¤ò½ÐÎÏ" + +msgid "Raw output." +msgstr "¤½¤Î¤Þ¤Þ½ÐÎÏ" + +msgid "%1 prints on the standard output a normalized document instance" +msgstr "%1 ¤Ï¥·¥¹¥Æ¥à¼±ÊÌ»ÒSYSID¤Î¼ÂÂ粤ÎÏ¢·ëÆâ¤Ë´Þ¤Þ¤ì¤ë¡¢SGMLʸ½ñ" + +msgid "for the SGML document contained in the concatenation of the entities" +msgstr "¤ËÂФ·¤Æ¡¢Àµµ¬²½¤µ¤ì¤¿Ê¸½ñ¥¤¥ó¥¹¥¿¥ó¥¹¤òɸ½à½ÐÎϤ˽ÐÎϤ·¤Þ¤¹" + +msgid "with system identifiers SYSID..." +msgstr " " + +msgid "Print the effective system id for the public id %1." +msgstr "¸ø³«ID %1 ¤ËÂФ·¤ÆÍ­¸ú¤Ê¥·¥¹¥Æ¥àID¤òɽ¼¨" + +msgid "Print the effective system id for system id %1." +msgstr "¥·¥¹¥Æ¥àID %1 ¤ËÂФ·¤ÆÍ­¸ú¤Ê¥·¥¹¥Æ¥àID¤òɽ¼¨" + +msgid "Print the effective system id for parameter entity %1." +msgstr "ÊÑ¿ô¼ÂÂÎ %1 ¤ËÂФ·¤ÆÍ­¸ú¤Ê¥·¥¹¥Æ¥àID¤òɽ¼¨" + +msgid "Print the effective system id for the doctype %1." +msgstr "ʸ½ñ·¿ %1 ¤ËÂФ·¤ÆÍ­¸ú¤Ê¥·¥¹¥Æ¥àID¤òɽ¼¨" + +msgid "Print the effective system id for the linktype %1." +msgstr "¥ê¥ó¥¯·¿ %1 ¤ËÂФ·¤ÆÍ­¸ú¤Ê¥·¥¹¥Æ¥àID¤òɽ¼¨" + +msgid "Print the effective system id for entity %1." +msgstr "¼ÂÂÎ %1 ¤ËÂФ·¤ÆÍ­¸ú¤Ê¥·¥¹¥Æ¥àID¤òɽ¼¨" + +msgid "Print the effective system id for notation %1." +msgstr "µ­½Ò %1 ¤ËÂФ·¤ÆÍ­¸ú¤Ê¥·¥¹¥Æ¥àID¤òɽ¼¨" + +msgid "Print the effective system id for the SGML declaration for doctype %1." +msgstr "ʸ½ñ·¿ %1 ¤ËÂФ¹¤ëSGMLÀë¸À¤ËÂФ¹¤ë¡¢Í­¸ú¤Ê¥·¥¹¥Æ¥àID¤òɽ¼¨" + +msgid "%1 prints effective system identifiers found in the catalogs on the" +msgstr "%1 ¤Ï¥«¥¿¥í¥°Æâ¤Ë¤ß¤Ä¤«¤Ã¤¿Í­¸ú¤Ê¥·¥¹¥Æ¥à¼±Ê̻Ҥòɸ½à½ÐÎϤË" + +msgid "" +"standard output. It doesn't check that the system identifiers correspond" +msgstr "ɽ¼¨¤·¤Þ¤¹¡£¥·¥¹¥Æ¥à¼±Ê̻Ҥ¬¼ÂºÝ¤Î¥Õ¥¡¥¤¥ë¤È¤·¤Æ¸ºß¤¹¤ë¤«" + +msgid "" +"to actual files. The return value is 0 if the last system identifier was" +msgstr "¤É¤¦¤«¤Ï³Îǧ¤·¤Þ¤»¤ó¡£¤â¤·ºÇ¸å¤Î¥·¥¹¥Æ¥à¼±Ê̻Ҥ¬À¸À®¤Ç¤­¤ì¤Ð" + +msgid "successfully created and 1 otherwise." +msgstr "ÊÖ¤êÃͤÏ0¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð1¤òÊÖ¤·¤Þ¤¹¡£" + +msgid "LITERAL" +msgstr "LITERAL" + +msgid "non-SGML" +msgstr "ÈóSGML" + +msgid "raw" +msgstr "raw" + +msgid "%1 prints the concatenation of the entities with system identifiers" +msgstr "%1 ¤Ï¥·¥¹¥Æ¥à¼±ÊÌ»ÒSYSID¤Î¼ÂÂΤÎÏ¢·ëÆâÍƤòɸ½à½ÐÎϤØ" + +msgid "SYSID... on the standard output" +msgstr "½ÐÎϤ·¤Þ¤¹" diff --git a/po/quot.sed b/po/quot.sed new file mode 100644 index 0000000..0122c46 --- /dev/null +++ b/po/quot.sed @@ -0,0 +1,6 @@ +s/"\([^"]*\)"/“\1”/g +s/`\([^`']*\)'/‘\1’/g +s/ '\([^`']*\)' / ‘\1’ /g +s/ '\([^`']*\)'$/ ‘\1’/g +s/^'\([^`']*\)' /‘\1’ /g +s/“”/""/g diff --git a/po/remove-potcdate.sin b/po/remove-potcdate.sin new file mode 100644 index 0000000..2436c49 --- /dev/null +++ b/po/remove-potcdate.sin @@ -0,0 +1,19 @@ +# Sed script that remove the POT-Creation-Date line in the header entry +# from a POT file. +# +# The distinction between the first and the following occurrences of the +# pattern is achieved by looking at the hold space. +/^"POT-Creation-Date: .*"$/{ +x +# Test if the hold space is empty. +s/P/P/ +ta +# Yes it was empty. First occurrence. Remove the line. +g +d +bb +:a +# The hold space was nonempty. Following occurrences. Do nothing. +x +:b +} diff --git a/po/sp5.pot b/po/sp5.pot new file mode 100644 index 0000000..f60cad9 --- /dev/null +++ b/po/sp5.pot @@ -0,0 +1,2182 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR HOLDER +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2005-11-05 09:50+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version:: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: ENCODING\n" + +msgid "no system identifier could be generated for meta-DTD for architecture %1" +msgstr "" + +msgid "element type %1 not defined in meta-DTD" +msgstr "" + +msgid "element %1 invalid in meta-DTD because excluded" +msgstr "" + +msgid "meta-DTD does not allow element %1 at this point" +msgstr "" + +msgid "document element must be instance of %1 element type form" +msgstr "" + +msgid "element %1 unfinished in meta-DTD" +msgstr "" + +msgid "missing substitute name" +msgstr "" + +msgid "substitute for non-existent architecture attribute %1" +msgstr "" + +msgid "substitute name for %1 already defined" +msgstr "" + +msgid "substitute name %1 is not the name of an attribute" +msgstr "" + +msgid "reference in architecture to non-existent ID %1" +msgstr "" + +msgid "architectural content specified with #ARCCONT not allowed by meta-DTD" +msgstr "" + +msgid "invalid value %1 for ArcSupr attribute" +msgstr "" + +msgid "no declaration for meta-DTD parameter entity %1" +msgstr "" + +msgid "no declaration for meta-DTD general entity %1" +msgstr "" + +msgid "meta-DTD entity %1 must be external" +msgstr "" + +msgid "no ArcDTD architecture support attribute specified" +msgstr "" + +msgid "ArcDataF notation %1 not defined in meta-DTD" +msgstr "" + +msgid "ID attribute %1 in meta-DTD not declared as ID in DTD" +msgstr "" + +msgid "invalid value %1 for ArcAuto architectural support attribute" +msgstr "" + +msgid "no notation declaration for architecture %1" +msgstr "" + +msgid "meta-DTD does not allow data at this point" +msgstr "" + +msgid "invalid value %1 for ArcIgnD attribute" +msgstr "" + +msgid "unrecognized quantity name %1" +msgstr "" + +msgid "no value specified for quantity %1" +msgstr "" + +msgid "length of value %1 for quantity is too long" +msgstr "" + +msgid "invalid digit %1" +msgstr "" + +msgid "only value of nArcIndr for ArcIndr attribute supported" +msgstr "" + +msgid "#ARCCONT attribute already specified" +msgstr "" + +msgid "invalid value %1 for #ARCCONT" +msgstr "" + +msgid "%1 already used as a substitute name" +msgstr "" + +msgid "substitute name #CONTENT already specified" +msgstr "" + +msgid "IS10744 PI keyword missing" +msgstr "" + +msgid "invalid IS10744 PI keyword %1" +msgstr "" + +msgid "architecture %1 already defined" +msgstr "" + +msgid "the first definition" +msgstr "" + +msgid "ignoring PI declaration of architecture %1" +msgstr "" + +msgid "the ArcBase definition" +msgstr "" + +msgid "ignoring ArcBase declaration of architecture %1" +msgstr "" + +msgid "the PI definition" +msgstr "" + +msgid "name expected" +msgstr "" + +msgid "literal expected" +msgstr "" + +msgid "name or literal expected" +msgstr "" + +msgid "nul character" +msgstr "" + +msgid "not a minimum data character" +msgstr "" + +msgid "end of entity in comment" +msgstr "" + +msgid "end of entity in literal" +msgstr "" + +msgid "OVERRIDE requires argument of YES or NO" +msgstr "" + +msgid "CATALOG entries cause loop" +msgstr "" + +msgid "second argument for SYSTEM entry should be quoted to avoid ambiguity" +msgstr "" + +msgid "no DOCUMENT entry in catalog %1" +msgstr "" + +msgid "no entry for public identifier %1 in catalog %2" +msgstr "" + +msgid "invalid option %1" +msgstr "" + +msgid "missing argument for option %1" +msgstr "" + +msgid "option %1 is ambiguous" +msgstr "" + +msgid "option %1 doesn't allow an argument" +msgstr "" + +msgid "Usage: %1" +msgstr "" + +msgid "or: %1" +msgstr "" + +msgid "%1 [OPTION] SYSID..." +msgstr "" + +msgid "Short options need the same arguments as their long forms." +msgstr "" + +msgid "%1 version %2" +msgstr "" + +msgid "unknown BCTF %1" +msgstr "" + +msgid "unknown encoding %1" +msgstr "" + +msgid "cannot open output file %1 (%2)" +msgstr "" + +msgid "cannot close output file %1 (%2)" +msgstr "" + +msgid "Use bctf %1 for output." +msgstr "" + +msgid "Use encoding %1 for output." +msgstr "" + +msgid "Append error messages to file %1." +msgstr "" + +msgid "Display the program version." +msgstr "" + +msgid "Show this help text." +msgstr "" + +msgid "NAME" +msgstr "" + +msgid "FILE" +msgstr "" + +msgid "NOTHING" +msgstr "" + +msgid "Try the \"--help\" option for more information." +msgstr "" + +msgid "ARG" +msgstr "" + +msgid "Undocumented option (check the application's manual)." +msgstr "" + +msgid "Use catalog %1." +msgstr "" + +msgid "Arguments are catalogs, use DOCUMENT entry." +msgstr "" + +msgid "Search files in directory %1." +msgstr "" + +msgid "Restrict file reading (for use in Web apps)." +msgstr "" + +msgid "DIRECTORY" +msgstr "" + +msgid "SYSID" +msgstr "" + +msgid "bad formal system identifier syntax in %1" +msgstr "" + +msgid "value for attribute %1 missing in formal system identifier" +msgstr "" + +msgid "%1 is a formal system identifier attribute value not an attribute name" +msgstr "" + +msgid "value of smcrd attribute must be a single character not %1" +msgstr "" + +msgid "unsupported record boundary indicator %1" +msgstr "" + +msgid "unsupported formal system identifier attribute %1" +msgstr "" + +msgid "unsupported formal system identifier attribute value %1" +msgstr "" + +msgid "bad value %1 for formal system identifier tracking attribute" +msgstr "" + +msgid "duplicate specification for formal system identifier attribute %1" +msgstr "" + +msgid "bad value %1 for formal system identifier zapeof attribute" +msgstr "" + +msgid "bad value %1 for formal system identifier search attribute" +msgstr "" + +msgid "bad value %1 for formal system identifier fold attribute" +msgstr "" + +msgid "fold attribute allowed only for neutral storage manager" +msgstr "" + +msgid "bctf and encoding attributes not applicable to this storage manager" +msgstr "" + +msgid "cannot specify both bctf and encoding attribute" +msgstr "" + +msgid "zapeof attribute not applicable to this storage manager" +msgstr "" + +msgid "records attribute not applicable to this storage manager" +msgstr "" + +msgid "bad value %1 for formal system identifier indirect attribute" +msgstr "" + +msgid "non-minimum data character (number %1) in value of formal system identifier lookup attribute" +msgstr "" + +msgid "st" +msgstr "" + +msgid "nd" +msgstr "" + +msgid "rd" +msgstr "" + +msgid "th" +msgstr "" + +msgid "(invalid argument type)" +msgstr "" + +msgid "(invalid message)" +msgstr "" + +msgid "I" +msgstr "" + +msgid "W" +msgstr "" + +msgid "Q" +msgstr "" + +msgid "X" +msgstr "" + +msgid "E" +msgstr "" + +msgid "open elements" +msgstr "" + +msgid "In entity %1 included from %2" +msgstr "" + +msgid "In entity included from %2" +msgstr "" + +msgid "(invalid location)" +msgstr "" + +msgid "offset " +msgstr "" + +msgid "relevant clauses: " +msgstr "" + +msgid "unknown warning type %1" +msgstr "" + +msgid "invalid error limit" +msgstr "" + +msgid "maximum number of errors (%1) reached; change with -E option" +msgstr "" + +msgid "Make doctype or linktype %1 active." +msgstr "" + +msgid "Parse wrt. architecture %1." +msgstr "" + +msgid "Give up after %1 errors." +msgstr "" + +msgid "Show open entities in error messages." +msgstr "" + +msgid "Show open elements in error messages." +msgstr "" + +msgid "Show error numbers in error messages." +msgstr "" + +msgid "Show references in error messages." +msgstr "" + +msgid "Define parameter entity %1 as \"INCLUDE\"." +msgstr "" + +msgid "Enable warning %1." +msgstr "" + +msgid "TYPE" +msgstr "" + +msgid "NUMBER" +msgstr "" + +msgid "length of name must not exceed NAMELEN (%1)" +msgstr "" + +msgid "length of parameter entity name must not exceed NAMELEN less the length of the PERO delimiter (%1)" +msgstr "" + +msgid "length of number must not exceed NAMELEN (%1)" +msgstr "" + +msgid "length of attribute value must not exceed LITLEN less NORMSEP (%1)" +msgstr "" + +msgid "a name group is not allowed in a parameter entity reference in the prolog" +msgstr "" + +msgid "an entity end in a token separator must terminate an entity referenced in the same group" +msgstr "" + +msgid "character %1 invalid: only %2 and token separators allowed" +msgstr "" + +msgid "a parameter separator is required after a number that is followed by a name start character" +msgstr "" + +msgid "character %1 invalid: only %2 and parameter separators allowed" +msgstr "" + +msgid "an entity end in a parameter separator must terminate an entity referenced in the same declaration" +msgstr "" + +msgid "an entity end is not allowed in a token separator that does not follow a token" +msgstr "" + +msgid "%1 is not a valid token here" +msgstr "" + +msgid "a parameter entity reference can only occur in a group where a token could occur" +msgstr "" + +msgid "token %1 has already occurred in this group" +msgstr "" + +msgid "the number of tokens in a group must not exceed GRPCNT (%1)" +msgstr "" + +msgid "an entity end in a literal must terminate an entity referenced in the same literal" +msgstr "" + +msgid "character %1 invalid: only minimum data characters allowed" +msgstr "" + +msgid "a parameter literal in a data tag pattern must not contain a numeric character reference to a non-SGML character" +msgstr "" + +msgid "a parameter literal in a data tag pattern must not contain a numeric character reference to a function character" +msgstr "" + +msgid "a name group is not allowed in a general entity reference in a start tag" +msgstr "" + +msgid "a name group is not allowed in a general entity reference in the prolog" +msgstr "" + +msgid "%1 is not a function name" +msgstr "" + +msgid "%1 is not a character number in the document character set" +msgstr "" + +msgid "parameter entity %1 not defined" +msgstr "" + +msgid "general entity %1 not defined and no default entity" +msgstr "" + +msgid "RNI delimiter must be followed by name start character" +msgstr "" + +msgid "unterminated comment: found end of entity inside comment" +msgstr "" + +msgid "comment started here" +msgstr "" + +msgid "only one type of connector should be used in a single group" +msgstr "" + +msgid "%1 is not a reserved name" +msgstr "" + +msgid "%1 is not allowed as a reserved name here" +msgstr "" + +msgid "length of interpreted minimum literal must not exceed reference LITLEN (%1)" +msgstr "" + +msgid "length of tokenized attribute value must not exceed LITLEN less NORMSEP (%1)" +msgstr "" + +msgid "length of system identifier must not exceed LITLEN (%1)" +msgstr "" + +msgid "length of interpreted parameter literal must not exceed LITLEN (%1)" +msgstr "" + +msgid "length of interpreted parameter literal in data tag pattern must not exceed DTEMPLEN (%1)" +msgstr "" + +msgid "literal is missing closing delimiter" +msgstr "" + +msgid "%1 invalid: only %2 and parameter separators are allowed" +msgstr "" + +msgid "%1 invalid: only %2 and token separators are allowed" +msgstr "" + +msgid "unknown declaration type %1" +msgstr "" + +msgid "%1 declaration not allowed in DTD subset" +msgstr "" + +msgid "character %1 not allowed in declaration subset" +msgstr "" + +msgid "end of document in DTD subset" +msgstr "" + +msgid "character %1 not allowed in prolog" +msgstr "" + +msgid "end of document in prolog" +msgstr "" + +msgid "%1 declaration not allowed in prolog" +msgstr "" + +msgid "%1 used both a rank stem and generic identifier" +msgstr "" + +msgid "omitted tag minimization parameter can be omitted only if OMITTAG NO is specified" +msgstr "" + +msgid "element type %1 already defined" +msgstr "" + +msgid "entity reference with no applicable DTD" +msgstr "" + +msgid "invalid comment declaration: found %1 outside comment but inside comment declaration" +msgstr "" + +msgid "comment declaration started here" +msgstr "" + +msgid "%1 declaration not allowed in instance" +msgstr "" + +msgid "non-SGML character not allowed in content" +msgstr "" + +msgid "no current rank for rank stem %1" +msgstr "" + +msgid "duplicate attribute definition list for notation %1" +msgstr "" + +msgid "duplicate attribute definition list for element %1" +msgstr "" + +msgid "entity end not allowed in end tag" +msgstr "" + +msgid "character %1 not allowed in end tag" +msgstr "" + +msgid "%1 invalid: only S separators and TAGC allowed here" +msgstr "" + +msgid "character data is not allowed here" +msgstr "" + +msgid "document type does not allow element %1 here" +msgstr "" + +msgid "document type does not allow element %1 here; missing one of %2 start-tag" +msgstr "" + +msgid "document type does not allow element %1 here; assuming missing %2 start-tag" +msgstr "" + +msgid "no start tag specified for implied empty element %1" +msgstr "" + +msgid "end tag for %1 omitted, but its declaration does not permit this" +msgstr "" + +msgid "start tag was here" +msgstr "" + +msgid "end tag for %1 omitted, but OMITTAG NO was specified" +msgstr "" + +msgid "start tag omitted for element %1 with declared content" +msgstr "" + +msgid "end tag for %1 which is not finished" +msgstr "" + +msgid "start tag for %1 omitted, but its declaration does not permit this" +msgstr "" + +msgid "number of open elements exceeds TAGLVL (%1)" +msgstr "" + +msgid "element %1 undefined" +msgstr "" + +msgid "empty end tag but no open elements" +msgstr "" + +msgid "%1 not finished but containing element ended" +msgstr "" + +msgid "end tag for element %1 which is not open" +msgstr "" + +msgid "internal parameter entity %1 cannot be CDATA or SDATA" +msgstr "" + +msgid "character %1 not allowed in attribute specification list" +msgstr "" + +msgid "an attribute value must be a literal unless it contains only name characters" +msgstr "" + +msgid "entity end not allowed in attribute specification list except in attribute value literal" +msgstr "" + +msgid "external parameter entity %1 cannot be CDATA, SDATA, NDATA or SUBDOC" +msgstr "" + +msgid "duplicate declaration of entity %1" +msgstr "" + +msgid "duplicate declaration of parameter entity %1" +msgstr "" + +msgid "a reference to a PI entity is allowed only in a context where a processing instruction could occur" +msgstr "" + +msgid "a reference to a CDATA or SDATA entity is allowed only in a context where a data character could occur" +msgstr "" + +msgid "a reference to a subdocument entity or external data entity is allowed only in a context where a data character could occur" +msgstr "" + +msgid "a reference to a subdocument entity or external data entity is not allowed in replaceable character data" +msgstr "" + +msgid "the number of open entities cannot exceed ENTLVL (%1)" +msgstr "" + +msgid "a reference to a PI entity is not allowed in replaceable character data" +msgstr "" + +msgid "entity %1 is already open" +msgstr "" + +msgid "short reference map %1 not defined" +msgstr "" + +msgid "short reference map in DTD must specify associated element type" +msgstr "" + +msgid "short reference map in document instance cannot specify associated element type" +msgstr "" + +msgid "short reference map %1 for element %2 not defined in DTD" +msgstr "" + +msgid "%1 is not a short reference delimiter" +msgstr "" + +msgid "short reference delimiter %1 already mapped in this declaration" +msgstr "" + +msgid "no document element" +msgstr "" + +msgid "entity end not allowed in processing instruction" +msgstr "" + +msgid "length of processing instruction must not exceed PILEN (%1)" +msgstr "" + +msgid "missing PIC delimiter" +msgstr "" + +msgid "an attribute specification must start with a name or name token" +msgstr "" + +msgid "%1 is not a member of a group specified for any attribute" +msgstr "" + +msgid "the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified" +msgstr "" + +msgid "there is no attribute %1" +msgstr "" + +msgid "an attribute value specification must start with a literal or a name character" +msgstr "" + +msgid "length of name token must not exceed NAMELEN (%1)" +msgstr "" + +msgid "an attribute value literal can occur in an attribute specification list only after a VI delimiter" +msgstr "" + +msgid "duplicate specification of attribute %1" +msgstr "" + +msgid "duplicate definition of attribute %1" +msgstr "" + +msgid "data attribute specification must be omitted if attribute specification list is empty" +msgstr "" + +msgid "marked section end not in marked section declaration" +msgstr "" + +msgid "number of open marked sections must not exceed TAGLVL (%1)" +msgstr "" + +msgid "missing marked section end" +msgstr "" + +msgid "marked section started here" +msgstr "" + +msgid "entity end in character data, replaceable character data or ignored marked section" +msgstr "" + +msgid "normalized length of attribute value literal must not exceed LITLEN (%1); length was %2" +msgstr "" + +msgid "syntax of attribute value does not conform to declared value" +msgstr "" + +msgid "character %1 is not allowed in the value of attribute %2" +msgstr "" + +msgid "value of attribute %1 must be a single token" +msgstr "" + +msgid "value of attribute %2 invalid: %1 cannot start a number token" +msgstr "" + +msgid "value of attribute %2 invalid: %1 cannot start a name" +msgstr "" + +msgid "non-impliable attribute %1 not specified but OMITTAG NO and SHORTTAG NO" +msgstr "" + +msgid "required attribute %1 not specified" +msgstr "" + +msgid "first occurrence of CURRENT attribute %1 not specified" +msgstr "" + +msgid "%1 is not a notation name" +msgstr "" + +msgid "%1 is not a general entity name" +msgstr "" + +msgid "value of attribute %2 cannot be %1; must be one of %3" +msgstr "" + +msgid "%1 is not a data or subdocument entity" +msgstr "" + +msgid "content model is ambiguous: when no tokens have been matched, both the %2 and %3 occurrences of %1 are possible" +msgstr "" + +msgid "content model is ambiguous: when the current token is the %2 occurrence of %1, both the %4 and %5 occurrences of %3 are possible" +msgstr "" + +msgid "content model is ambiguous: when the current token is the %2 occurrence of %1 and the innermost containing AND group has been matched, both the %4 and %5 occurrences of %3 are possible" +msgstr "" + +msgid "content model is ambiguous: when the current token is the %2 occurrence of %1 and the innermost %3 containing AND groups have been matched, both the %5 and %6 occurrences of %4 are possible" +msgstr "" + +msgid "invalid comment declaration: found character %1 outside comment but inside comment declaration" +msgstr "" + +msgid "non SGML character number %1" +msgstr "" + +msgid "data or replaceable character data in declaration subset" +msgstr "" + +msgid "ID %1 already defined" +msgstr "" + +msgid "ID %1 first defined here" +msgstr "" + +msgid "value of fixed attribute %1 not equal to default" +msgstr "" + +msgid "character %1 is not significant in the reference concrete syntax and so cannot occur in a comment in the SGML declaration" +msgstr "" + +msgid "minimum data of first minimum literal in SGML declaration must be \"ISO 8879:1986\" or \"ISO 8879:1986 (ENR)\" or \"ISO 8879:1986 (WWW)\" not %1" +msgstr "" + +msgid "parameter before LCNMSTRT must be NAMING not %1" +msgstr "" + +msgid "unexpected entity end in SGML declaration: only %1, S separators and comments allowed" +msgstr "" + +msgid "%1 invalid: only %2 and parameter separators allowed" +msgstr "" + +msgid "magnitude of %1 too big" +msgstr "" + +msgid "character %1 is not significant in the reference concrete syntax and so cannot occur in a literal in the SGML declaration except as the replacement of a character reference" +msgstr "" + +msgid "%1 is not a valid syntax reference character number" +msgstr "" + +msgid "a parameter entity reference cannot occur in an SGML declaration" +msgstr "" + +msgid "cannot continue because of previous errors" +msgstr "" + +msgid "SGML declaration cannot be parsed because the character set does not contain characters having the following numbers in ISO 646: %1" +msgstr "" + +msgid "the specified character set is invalid because it does not contain the minimum data characters having the following numbers in ISO 646: %1" +msgstr "" + +msgid "character numbers declared more than once: %1" +msgstr "" + +msgid "character numbers should have been declared UNUSED: %1" +msgstr "" + +msgid "character numbers missing in base set: %1" +msgstr "" + +msgid "characters in the document character set with numbers exceeding %1 not supported" +msgstr "" + +msgid "invalid formal public identifier %1: missing //" +msgstr "" + +msgid "invalid formal public identifier %1: no SPACE after public text class" +msgstr "" + +msgid "invalid formal public identifier %1: invalid public text class" +msgstr "" + +msgid "invalid formal public identifier %1: public text language must be a name containing only upper case letters" +msgstr "" + +msgid "invalid formal public identifer %1: public text display version not permitted with this text class" +msgstr "" + +msgid "invalid formal public identifier %1: extra field" +msgstr "" + +msgid "public text class of public identifier in notation identifier must be NOTATION" +msgstr "" + +msgid "base character set %1 is unknown" +msgstr "" + +msgid "delimiter set is ambiguous: %1 and %2 can be recognized in the same mode" +msgstr "" + +msgid "characters with the following numbers in the syntax reference character set are significant in the concrete syntax but are not in the document character set: %1" +msgstr "" + +msgid "there is no unique character in the document character set corresponding to character number %1 in the syntax reference character set" +msgstr "" + +msgid "there is no unique character in the internal character set corresponding to character number %1 in the syntax reference character set" +msgstr "" + +msgid "the character with number %1 in ISO 646 is significant but has no representation in the syntax reference character set" +msgstr "" + +msgid "capacity set %1 is unknown" +msgstr "" + +msgid "capacity %1 already specified" +msgstr "" + +msgid "value of capacity %1 exceeds value of TOTALCAP" +msgstr "" + +msgid "syntax %1 is unknown" +msgstr "" + +msgid "UCNMSTRT must have the same number of characters as LCNMSTRT" +msgstr "" + +msgid "UCNMCHAR must have the same number of characters as LCNMCHAR" +msgstr "" + +msgid "number of open subdocuments exceeds quantity specified for SUBDOC parameter in SGML declaration (%1)" +msgstr "" + +msgid "entity %1 declared SUBDOC, but SUBDOC NO specified in SGML declaration" +msgstr "" + +msgid "a parameter entity referenced in a parameter separator must end in the same declaration" +msgstr "" + +msgid "reference to non-existent ID %1" +msgstr "" + +msgid "generic identifier %1 used in DTD but not defined" +msgstr "" + +msgid "%1 not finished but document ended" +msgstr "" + +msgid "cannot continue with subdocument because of previous errors" +msgstr "" + +msgid "no document type declaration; will parse without validation" +msgstr "" + +msgid "no internal or external document type declaration subset; will parse without validation" +msgstr "" + +msgid "this is not an SGML document" +msgstr "" + +msgid "length of start-tag before interpretation of literals must not exceed TAGLEN (%1)" +msgstr "" + +msgid "a parameter entity referenced in a token separator must end in the same group" +msgstr "" + +msgid "the following character numbers are shunned characters that are not significant and so should have been declared UNUSED: %1" +msgstr "" + +msgid "there is no unique character in the specified document character set corresponding to character number %1 in ISO 646" +msgstr "" + +msgid "length of attribute value must not exceed LITLEN less NORMSEP (-%1)" +msgstr "" + +msgid "length of tokenized attribute value must not exceed LITLEN less NORMSEP (-%1)" +msgstr "" + +msgid "concrete syntax scope is INSTANCE but value of %1 quantity is less than value in reference quantity set" +msgstr "" + +msgid "public text class of formal public identifier of base character set must be CHARSET" +msgstr "" + +msgid "public text class of formal public identifier of capacity set must be CAPACITY" +msgstr "" + +msgid "public text class of formal public identifier of concrete syntax must be SYNTAX" +msgstr "" + +msgid "when there is an MSOCHAR there must also be an MSICHAR" +msgstr "" + +msgid "character number %1 in the syntax reference character set was specified as a character to be switched but is not a markup character" +msgstr "" + +msgid "character number %1 was specified as a character to be switched but is not in the syntax reference character set" +msgstr "" + +msgid "character numbers %1 in the document character set have been assigned the same meaning, but this is the meaning of a significant character" +msgstr "" + +msgid "character number %1 assigned to more than one function" +msgstr "" + +msgid "%1 is already a function name" +msgstr "" + +msgid "characters with the following numbers in ISO 646 are significant in the concrete syntax but are not in the document character set: %1" +msgstr "" + +msgid "general delimiter %1 consists solely of function characters" +msgstr "" + +msgid "letters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "" + +msgid "digits assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "" + +msgid "character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT because it is RE" +msgstr "" + +msgid "character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT because it is RS" +msgstr "" + +msgid "character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT because it is SPACE" +msgstr "" + +msgid "separator characters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "" + +msgid "character number %1 cannot be switched because it is a Digit, LC Letter or UC Letter" +msgstr "" + +msgid "pointless for number of characters to be 0" +msgstr "" + +msgid "%1 cannot be the replacement for a reference reserved name because it is another reference reserved name" +msgstr "" + +msgid "%1 cannot be the replacement for a reference reserved name because it is the replacement of another reference reserved name" +msgstr "" + +msgid "replacement for reserved name %1 already specified" +msgstr "" + +msgid "%1 is not a valid name in the declared concrete syntax" +msgstr "" + +msgid "%1 is not a valid short reference delimiter because it has more than one B sequence" +msgstr "" + +msgid "%1 is not a valid short reference delimiter because it is adjacent to a character that can occur in a blank sequence" +msgstr "" + +msgid "length of delimiter %1 exceeds NAMELEN (%2)" +msgstr "" + +msgid "length of reserved name %1 exceeds NAMELEN (%2)" +msgstr "" + +msgid "character numbers assigned to both LCNMCHAR or UCNMCHAR and LCNMSTRT or UCNMSTRT: %1" +msgstr "" + +msgid "when the concrete syntax scope is INSTANCE the syntax reference character set of the declared syntax must be the same as that of the reference concrete syntax" +msgstr "" + +msgid "end-tag minimization should be O for element with declared content of EMPTY" +msgstr "" + +msgid "end-tag minimization should be O for element %1 because it has CONREF attribute" +msgstr "" + +msgid "element %1 has a declared content of EMPTY and a CONREF attribute" +msgstr "" + +msgid "element %1 has a declared content of EMPTY and a NOTATION attribute" +msgstr "" + +msgid "declared value of data attribute cannot be ENTITY, ENTITIES, ID, IDREF, IDREFS or NOTATION" +msgstr "" + +msgid "default value of data attribute cannot be CONREF or CURRENT" +msgstr "" + +msgid "number of attribute names and name tokens (%1) exceeds ATTCNT (%2)" +msgstr "" + +msgid "if the declared value is ID the default value must be IMPLIED or REQUIRED" +msgstr "" + +msgid "the attribute definition list already declared attribute %1 as the ID attribute" +msgstr "" + +msgid "the attribute definition list already declared attribute %1 as the NOTATION attribute" +msgstr "" + +msgid "token %1 occurs more than once in attribute definition list" +msgstr "" + +msgid "no attributes defined for notation %1" +msgstr "" + +msgid "notation %1 for entity %2 undefined" +msgstr "" + +msgid "entity %1 undefined in short reference map %2" +msgstr "" + +msgid "notation %1 is undefined but had attribute definition" +msgstr "" + +msgid "length of interpreted parameter literal in bracketed text plus the length of the bracketing delimiters must not exceed LITLEN (%1)" +msgstr "" + +msgid "length of rank stem plus length of rank suffix must not exceed NAMELEN (%1)" +msgstr "" + +msgid "document instance must start with document element" +msgstr "" + +msgid "content model nesting level exceeds GRPLVL (%1)" +msgstr "" + +msgid "grand total of content tokens exceeds GRPGTCNT (%1)" +msgstr "" + +msgid "unclosed start-tag requires SHORTTAG YES" +msgstr "" + +msgid "NET-enabling start-tag requires SHORTTAG YES" +msgstr "" + +msgid "unclosed end-tag requires SHORTTAG YES" +msgstr "" + +msgid "DTDs other than base allowed only if CONCUR YES or EXPLICIT YES" +msgstr "" + +msgid "end of entity other than document entity after document element" +msgstr "" + +msgid "%1 declaration illegal after document element" +msgstr "" + +msgid "character reference illegal after document element" +msgstr "" + +msgid "entity reference illegal after document element" +msgstr "" + +msgid "marked section illegal after document element" +msgstr "" + +msgid "the %1 occurrence of %2 in the content model for %3 cannot be excluded at this point because it is contextually required" +msgstr "" + +msgid "the %1 occurrence of %2 in the content model for %3 cannot be excluded because it is neither inherently optional nor a member of an OR group" +msgstr "" + +msgid "an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified" +msgstr "" + +msgid "value cannot be specified both for notation attribute and content reference attribute" +msgstr "" + +msgid "notation %1 already defined" +msgstr "" + +msgid "short reference map %1 already defined" +msgstr "" + +msgid "first defined here" +msgstr "" + +msgid "general delimiter role %1 already defined" +msgstr "" + +msgid "number of ID references in start-tag must not exceed GRPCNT (%1)" +msgstr "" + +msgid "number of entity names in attribute specification list must not exceed GRPCNT (%1)" +msgstr "" + +msgid "normalized length of attribute specification list must not exceed ATTSPLEN (%1); length was %2" +msgstr "" + +msgid "short reference delimiter %1 already specified" +msgstr "" + +msgid "single character short references were already specified for character numbers: %1" +msgstr "" + +msgid "default entity used in entity attribute %1" +msgstr "" + +msgid "reference to entity %1 uses default entity" +msgstr "" + +msgid "entity %1 in short reference map %2 uses default entity" +msgstr "" + +msgid "no DTD %1 declared" +msgstr "" + +msgid "LPD %1 has neither internal nor external subset" +msgstr "" + +msgid "element types have different link attribute definitions" +msgstr "" + +msgid "link set %1 already defined" +msgstr "" + +msgid "empty result attribute specification" +msgstr "" + +msgid "no source element type %1" +msgstr "" + +msgid "no result element type %1" +msgstr "" + +msgid "end of document in LPD subset" +msgstr "" + +msgid "%1 declaration not allowed in LPD subset" +msgstr "" + +msgid "ID link set declaration not allowed in simple link declaration subset" +msgstr "" + +msgid "link set declaration not allowed in simple link declaration subset" +msgstr "" + +msgid "attributes can only be defined for base document element (not %1) in simple link declaration subset" +msgstr "" + +msgid "a short reference mapping declaration is allowed only in the base DTD" +msgstr "" + +msgid "a short reference use declaration is allowed only in the base DTD" +msgstr "" + +msgid "default value of link attribute cannot be CURRENT or CONREF" +msgstr "" + +msgid "declared value of link attribute cannot be ID, IDREF, IDREFS or NOTATION" +msgstr "" + +msgid "only fixed attributes can be defined in simple LPD" +msgstr "" + +msgid "only one ID link set declaration allowed in an LPD subset" +msgstr "" + +msgid "no initial link set defined for LPD %1" +msgstr "" + +msgid "notation %1 not defined in source DTD" +msgstr "" + +msgid "result document type in simple link specification must be implied" +msgstr "" + +msgid "simple link requires SIMPLE YES" +msgstr "" + +msgid "implicit link requires IMPLICIT YES" +msgstr "" + +msgid "explicit link requires EXPLICIT YES" +msgstr "" + +msgid "LPD not allowed before first DTD" +msgstr "" + +msgid "DTD not allowed after an LPD" +msgstr "" + +msgid "definition of general entity %1 is unstable" +msgstr "" + +msgid "definition of parameter entity %1 is unstable" +msgstr "" + +msgid "multiple link rules for ID %1 but not all have link attribute specifications" +msgstr "" + +msgid "multiple link rules for element type %1 but not all have link attribute specifications" +msgstr "" + +msgid "link type %1 does not have a link set %2" +msgstr "" + +msgid "link set use declaration for simple link process" +msgstr "" + +msgid "no link type %1" +msgstr "" + +msgid "both document type and link type %1" +msgstr "" + +msgid "link type %1 already defined" +msgstr "" + +msgid "document type %1 already defined" +msgstr "" + +msgid "link set %1 used in LPD but not defined" +msgstr "" + +msgid "#IMPLIED already linked to result element type %1" +msgstr "" + +msgid "number of active simple link processes exceeds quantity specified for SIMPLE parameter in SGML declaration (%1)" +msgstr "" + +msgid "only one chain of explicit link processes can be active" +msgstr "" + +msgid "source document type name for link type %1 must be base document type since EXPLICIT YES 1" +msgstr "" + +msgid "only one implicit link process can be active" +msgstr "" + +msgid "sorry, link type %1 not activated: only one implicit or explicit link process can be active (with base document type as source document type)" +msgstr "" + +msgid "name missing after name group in entity reference" +msgstr "" + +msgid "source document type name for link type %1 must be base document type since EXPLICIT NO" +msgstr "" + +msgid "link process must be activated before base DTD" +msgstr "" + +msgid "unexpected entity end while starting second pass" +msgstr "" + +msgid "type %1 of element with ID %2 not associated element type for applicable link rule in ID link set" +msgstr "" + +msgid "DATATAG feature not implemented" +msgstr "" + +msgid "generic identifier specification missing after document type specification in start-tag" +msgstr "" + +msgid "generic identifier specification missing after document type specification in end-tag" +msgstr "" + +msgid "a NET-enabling start-tag cannot include a document type specification" +msgstr "" + +msgid "DTD did not contain element declaration for document type name" +msgstr "" + +msgid "invalid default SGML declaration" +msgstr "" + +msgid "reference to entity %1 for which no system identifier could be generated" +msgstr "" + +msgid "entity was defined here" +msgstr "" + +msgid "content model is mixed but does not allow #PCDATA everywhere" +msgstr "" + +msgid "start or end of range must specify a single character" +msgstr "" + +msgid "number of first character in range must not exceed number of second character in range" +msgstr "" + +msgid "delimiter cannot be an empty string" +msgstr "" + +msgid "too many characters assigned same meaning with minimum literal" +msgstr "" + +msgid "earlier reference to entity %1 used default entity" +msgstr "" + +msgid "empty start-tag" +msgstr "" + +msgid "empty end-tag" +msgstr "" + +msgid "unused short reference map %1" +msgstr "" + +msgid "unused parameter entity %1" +msgstr "" + +msgid "cannot generate system identifier for public text %1" +msgstr "" + +msgid "cannot generate system identifier for general entity %1" +msgstr "" + +msgid "cannot generate system identifier for parameter entity %1" +msgstr "" + +msgid "cannot generate system identifier for document type %1" +msgstr "" + +msgid "cannot generate system identifier for link type %1" +msgstr "" + +msgid "cannot generate system identifier for notation %1" +msgstr "" + +msgid "element type %1 both included and excluded" +msgstr "" + +msgid "no document type declaration; implying %1" +msgstr "" + +msgid "minimum data of AFDR declaration must be \"ISO/IEC 10744:1997\" not %1" +msgstr "" + +msgid "AFDR declaration required before use of AFDR extensions" +msgstr "" + +msgid "ENR extensions were used but minimum literal was not \"ISO 8879:1986 (ENR)\" or \"ISO 8879:1986 (WWW)\"" +msgstr "" + +msgid "illegal numeric character reference to non-SGML character %1 in literal" +msgstr "" + +msgid "cannot convert character reference to number %1 because description %2 unrecognized" +msgstr "" + +msgid "cannot convert character reference to number %1 because character %2 from baseset %3 unknown" +msgstr "" + +msgid "character reference to number %1 cannot be converted because of problem with internal character set" +msgstr "" + +msgid "cannot convert character reference to number %1 because character not in internal character set" +msgstr "" + +msgid "Web SGML adaptations were used but minimum literal was not \"ISO 8879:1986 (WWW)\"" +msgstr "" + +msgid "token %1 can be value for multiple attributes so attribute name required" +msgstr "" + +msgid "length of hex number must not exceed NAMELEN (%1)" +msgstr "" + +msgid "CDATA declared content" +msgstr "" + +msgid "RCDATA declared content" +msgstr "" + +msgid "inclusion" +msgstr "" + +msgid "exclusion" +msgstr "" + +msgid "NUMBER or NUMBERS declared value" +msgstr "" + +msgid "NAME or NAMES declared value" +msgstr "" + +msgid "NUTOKEN or NUTOKENS declared value" +msgstr "" + +msgid "CONREF attribute" +msgstr "" + +msgid "CURRENT attribute" +msgstr "" + +msgid "TEMP marked section" +msgstr "" + +msgid "included marked section in the instance" +msgstr "" + +msgid "ignored marked section in the instance" +msgstr "" + +msgid "RCDATA marked section" +msgstr "" + +msgid "processing instruction entity" +msgstr "" + +msgid "bracketed text entity" +msgstr "" + +msgid "internal CDATA entity" +msgstr "" + +msgid "internal SDATA entity" +msgstr "" + +msgid "external CDATA entity" +msgstr "" + +msgid "external SDATA entity" +msgstr "" + +msgid "attribute definition list declaration for notation" +msgstr "" + +msgid "rank stem" +msgstr "" + +msgid "no system id specified" +msgstr "" + +msgid "comment in parameter separator" +msgstr "" + +msgid "named character reference" +msgstr "" + +msgid "AND group" +msgstr "" + +msgid "attribute value not a literal" +msgstr "" + +msgid "attribute name missing" +msgstr "" + +msgid "element declaration for group of element types" +msgstr "" + +msgid "attribute definition list declaration for group of element types" +msgstr "" + +msgid "empty comment declaration" +msgstr "" + +msgid "S separator in comment declaration" +msgstr "" + +msgid "multiple comments in comment declaration" +msgstr "" + +msgid "no status keyword" +msgstr "" + +msgid "multiple status keywords" +msgstr "" + +msgid "parameter entity reference in document instance" +msgstr "" + +msgid "element type minimization parameter" +msgstr "" + +msgid "reference not terminated by REFC delimiter" +msgstr "" + +msgid "#PCDATA not first in model group" +msgstr "" + +msgid "#PCDATA in SEQ group" +msgstr "" + +msgid "#PCDATA in nested model group" +msgstr "" + +msgid "#PCDATA in model group that does not have REP occurrence indicator" +msgstr "" + +msgid "name group or name token group used connector other than OR" +msgstr "" + +msgid "processing instruction does not start with name" +msgstr "" + +msgid "S separator in status keyword specification in document instance" +msgstr "" + +msgid "reference to external data entity" +msgstr "" + +msgid "reference to external entity in attribute value" +msgstr "" + +msgid "character %1 is the first character of a delimiter but occurred as data" +msgstr "" + +msgid "SGML declaration was not implied" +msgstr "" + +msgid "marked section in internal DTD subset" +msgstr "" + +msgid "NET-enabling start-tag not immediately followed by null end-tag" +msgstr "" + +msgid "entity end in different element from entity reference" +msgstr "" + +msgid "NETENABL IMMEDNET requires EMPTYNRM YES" +msgstr "" + +msgid "reference to non-SGML character" +msgstr "" + +msgid "declaration of default entity" +msgstr "" + +msgid "reference to parameter entity in parameter separator in internal subset" +msgstr "" + +msgid "reference to parameter entity in token separator in internal subset" +msgstr "" + +msgid "reference to parameter entity in parameter literal in internal subset" +msgstr "" + +msgid "cannot generate system identifier for SGML declaration reference" +msgstr "" + +msgid "public text class of formal public identifier of SGML declaration must be SD" +msgstr "" + +msgid "SGML declaration reference was used but minimum literal was not \"ISO 8879:1986 (WWW)\"" +msgstr "" + +msgid "member of model group containing #PCDATA has occurrence indicator" +msgstr "" + +msgid "member of model group containing #PCDATA is a model group" +msgstr "" + +msgid "reference to non-predefined entity" +msgstr "" + +msgid "reference to external entity" +msgstr "" + +msgid "declaration of default entity conflicts with IMPLYDEF ENTITY YES" +msgstr "" + +msgid "parsing with respect to more than one active doctype not supported" +msgstr "" + +msgid "cannot have active doctypes and link types at the same time" +msgstr "" + +msgid "number of concurrent document instances exceeds quantity specified for CONCUR parameter in SGML declaration (%1)" +msgstr "" + +msgid "datatag group can only be specified in base document type" +msgstr "" + +msgid "element not in the base document type can't have an empty start-tag" +msgstr "" + +msgid "element not in base document type can't have an empty end-tag" +msgstr "" + +msgid "immediately recursive element" +msgstr "" + +msgid "invalid URN %1: missing \":\"" +msgstr "" + +msgid "invalid URN %1: missing \"urn:\" prefix" +msgstr "" + +msgid "invalid URN %1: invalid namespace identifier" +msgstr "" + +msgid "invalid URN %1: invalid namespace specific string" +msgstr "" + +msgid "invalid URN %1: extra field" +msgstr "" + +msgid "prolog can't be omitted unless CONCUR NO and LINK EXPLICIT NO and either IMPLYDEF ELEMENT YES or IMPLYDEF DOCTYPE YES" +msgstr "" + +msgid "can't determine name of #IMPLIED document element" +msgstr "" + +msgid "can't use #IMPLICIT doctype unless CONCUR NO and LINK EXPLICIT NO" +msgstr "" + +msgid "Sorry, #IMPLIED doctypes not implemented" +msgstr "" + +msgid "reference to DTD data entity ignored" +msgstr "" + +msgid "notation %1 for parameter entity %2 undefined" +msgstr "" + +msgid "notation %1 for external subset undefined" +msgstr "" + +msgid "attribute %1 can't be redeclared" +msgstr "" + +msgid "#IMPLICIT attributes have already been specified for notation %1" +msgstr "" + +msgid "a name group is not allowed in a parameter entity reference in a start tag" +msgstr "" + +msgid "name group in a parameter entity reference in an end tag (SGML forbids them in start tags)" +msgstr "" + +msgid "if the declared value is NOTATION a default value of CONREF is useless" +msgstr "" + +msgid "Sorry, #ALL and #IMPLICIT content tokens not implemented" +msgstr "" + +msgid "delimiter " +msgstr "" + +msgid "digit" +msgstr "" + +msgid "name start character" +msgstr "" + +msgid "sepchar" +msgstr "" + +msgid "separator" +msgstr "" + +msgid "name character" +msgstr "" + +msgid "data character" +msgstr "" + +msgid "minimum data character" +msgstr "" + +msgid "significant character" +msgstr "" + +msgid "record end character" +msgstr "" + +msgid "record start character" +msgstr "" + +msgid "space character" +msgstr "" + +msgid ", " +msgstr "" + +msgid "-" +msgstr "" + +msgid "parameter literal" +msgstr "" + +msgid "data tag group" +msgstr "" + +msgid "model group" +msgstr "" + +msgid "data tag template group" +msgstr "" + +msgid "name" +msgstr "" + +msgid "name token" +msgstr "" + +msgid "element token" +msgstr "" + +msgid "inclusions" +msgstr "" + +msgid "exclusions" +msgstr "" + +msgid "minimum literal" +msgstr "" + +msgid "attribute value literal" +msgstr "" + +msgid "system identifier" +msgstr "" + +msgid "number" +msgstr "" + +msgid "attribute value" +msgstr "" + +msgid "name of capacity" +msgstr "" + +msgid "name of general delimiter role" +msgstr "" + +msgid "reference reserved name" +msgstr "" + +msgid "name of quantity" +msgstr "" + +msgid "entity end" +msgstr "" + +msgid "short reference delimiter" +msgstr "" + +msgid "error reading %1 (%2)" +msgstr "" + +msgid "cannot open %1 (%2)" +msgstr "" + +msgid "error closing %1 (%2)" +msgstr "" + +msgid "error seeking on %1 (%2)" +msgstr "" + +msgid "invalid filename %1" +msgstr "" + +msgid "error reading file descriptor %1 (%2)" +msgstr "" + +msgid "error seeking on file descriptor %1 (%2)" +msgstr "" + +msgid "%1 is not a valid file descriptor number" +msgstr "" + +msgid "cannot find %1; tried %2" +msgstr "" + +msgid "error seeking %1 (%2)" +msgstr "" + +msgid "empty host in HTTP URL %1" +msgstr "" + +msgid "uncompletable relative HTTP URL %1" +msgstr "" + +msgid "empty port number in HTTP URL %1" +msgstr "" + +msgid "invalid port number in HTTP URL %1" +msgstr "" + +msgid "host %1 not found" +msgstr "" + +msgid "could not resolve host %1 (try again later)" +msgstr "" + +msgid "could not resolve host %1 (unrecoverable error)" +msgstr "" + +msgid "no address record for host name %1" +msgstr "" + +msgid "could not resolve host %1 (%2)" +msgstr "" + +msgid "could not resolve host %1 (unknown error)" +msgstr "" + +msgid "cannot create socket (%1)" +msgstr "" + +msgid "error connecting to %1 (%2)" +msgstr "" + +msgid "error sending request to %1 (%2)" +msgstr "" + +msgid "error receiving from host %1 (%2)" +msgstr "" + +msgid "error closing connection to host %1 (%2)" +msgstr "" + +msgid "invalid host number %1" +msgstr "" + +msgid "could not get %2 from %1 (reason given was %3)" +msgstr "" + +msgid "URL not supported by this version" +msgstr "" + +msgid "only HTTP scheme supported" +msgstr "" + +msgid "could not initialize Windows Sockets (%1)" +msgstr "" + +msgid "incompatible Windows Sockets version" +msgstr "" + +msgid "error number " +msgstr "" + +msgid "URL Redirected to %1" +msgstr "" + +msgid "cannot open URL %1 (%2)" +msgstr "" + +msgid "error reading URL %1 (%2)" +msgstr "" + +msgid "unknown output option %1" +msgstr "" + +msgid "Enable batch mode." +msgstr "" + +msgid "Produce output according to %1." +msgstr "" + +msgid "Stop after the document prolog." +msgstr "" + +msgid "Suppress output." +msgstr "" + +msgid "Send RAST output to file %1." +msgstr "" + +msgid "Same as -wduplicate." +msgstr "" + +msgid "Same as -oline." +msgstr "" + +msgid "Same as -c." +msgstr "" + +msgid "Same as -wdefault." +msgstr "" + +msgid "Same as -wundef." +msgstr "" + +msgid "%1 parses and validates the SGML document whose document entity is" +msgstr "" + +msgid "specified by the system identifiers SYSID... and prints on the standard" +msgstr "" + +msgid "output a simple text representation of its Element Structure Information Set." +msgstr "" + +msgid "If more than one system identifier is specified, then the corresponding" +msgstr "" + +msgid "entities will be concatenated to form the document entity. If no system" +msgstr "" + +msgid "identifiers are specified, then %1 will read the document entity from" +msgstr "" + +msgid "the standard input. A command line system identifier of - can be used" +msgstr "" + +msgid "to refer to the standard input." +msgstr "" + +msgid "OPTION" +msgstr "" + +msgid "invalid RAST processing instruction" +msgstr "" + +msgid "invalid link type %1 in rast-active-lpd processing instruction" +msgstr "" + +msgid "duplicate link type %1 in rast-active-lpd processing instruction" +msgstr "" + +msgid "rast-link-rule: processing instruction matches more than one link rule" +msgstr "" + +msgid "rast-link-rule: processing instruction does not match any link rules" +msgstr "" + +msgid "multiple applicable link rules without disambiguating rast-link-rule: processing instruction" +msgstr "" + +msgid "invalid argument for -m option" +msgstr "" + +msgid "omitted start or end tag implied in CDATA or RCDATA marked section; not normalized" +msgstr "" + +msgid "Hoist omitted tags." +msgstr "" + +msgid "Prefer lowercase." +msgstr "" + +msgid "Use markup option %1." +msgstr "" + +msgid "Output the entity named %1." +msgstr "" + +msgid "Output the prolog." +msgstr "" + +msgid "Raw." +msgstr "" + +msgid "Expand references." +msgstr "" + +msgid "%1 is an SGML markup stream editor. %1 parses the SGML document" +msgstr "" + +msgid "contained in SYSID... and copies portions of the document to the" +msgstr "" + +msgid "standard output, adding or changing markup as specified by the options." +msgstr "" + +msgid "Modify the XML output according to %1." +msgstr "" + +msgid "%1 converts SGML to XML. %1 parses and validates the SGML document" +msgstr "" + +msgid "contained in SYSID... and writes an equivalent XML document to the standard" +msgstr "" + +msgid "output. %1 will warn about SGML constructs which have no XML equivalent." +msgstr "" + +msgid "reference to internal SDATA entity %1 not allowed in XML" +msgstr "" + +msgid "reference to external data entity %1 not allowed in XML" +msgstr "" + +msgid "reference to subdocument entity %1 not allowed in XML" +msgstr "" + +msgid "processing instruction containing \"?>\" not allowed in XML" +msgstr "" + +msgid "XML requires processing instructions to start with a name" +msgstr "" + +msgid "external data entity %1 is CDATA or SDATA, but XML allows only NDATA" +msgstr "" + +msgid "attributes were defined for notation %1; not allowed in XML" +msgstr "" + +msgid "cannot convert formal system identifier %1 to URL" +msgstr "" + +msgid "cannot open output file %1" +msgstr "" + +msgid "missing system ID for entity %1" +msgstr "" + +msgid "unexpected entity type for entity named %1" +msgstr "" + +msgid "cannot create directory %1" +msgstr "" + +msgid "already wrote 99 versions of %1; will not overwrite" +msgstr "" + +msgid "already wrote output file %1; will not overwrite" +msgstr "" + +msgid "removing leading slashes from output filename %1" +msgstr "" + +msgid "path %1 outside output directory" +msgstr "" + +msgid "Output a document type declaration." +msgstr "" + +msgid "Output marked sections." +msgstr "" + +msgid "Output comments." +msgstr "" + +msgid "Raw output." +msgstr "" + +msgid "%1 prints on the standard output a normalized document instance" +msgstr "" + +msgid "for the SGML document contained in the concatenation of the entities" +msgstr "" + +msgid "with system identifiers SYSID..." +msgstr "" + +msgid "Print the effective system id for the public id %1." +msgstr "" + +msgid "Print the effective system id for system id %1." +msgstr "" + +msgid "Print the effective system id for parameter entity %1." +msgstr "" + +msgid "Print the effective system id for the doctype %1." +msgstr "" + +msgid "Print the effective system id for the linktype %1." +msgstr "" + +msgid "Print the effective system id for entity %1." +msgstr "" + +msgid "Print the effective system id for notation %1." +msgstr "" + +msgid "Print the effective system id for the SGML declaration for doctype %1." +msgstr "" + +msgid "%1 prints effective system identifiers found in the catalogs on the" +msgstr "" + +msgid "standard output. It doesn't check that the system identifiers correspond" +msgstr "" + +msgid "to actual files. The return value is 0 if the last system identifier was" +msgstr "" + +msgid "successfully created and 1 otherwise." +msgstr "" + +msgid "LITERAL" +msgstr "" + +msgid "non-SGML" +msgstr "" + +msgid "raw" +msgstr "" + +msgid "%1 prints the concatenation of the entities with system identifiers" +msgstr "" + +msgid "SYSID... on the standard output" +msgstr "" + diff --git a/po/stamp-po b/po/stamp-po new file mode 100644 index 0000000..9788f70 --- /dev/null +++ b/po/stamp-po @@ -0,0 +1 @@ +timestamp diff --git a/po/sv.gmo b/po/sv.gmo new file mode 100644 index 0000000000000000000000000000000000000000..cd03a25049d324ee59c80b7a2015fab316f1d39c GIT binary patch literal 68569 zcmchg37lO;mH%(p6cCYpQQ#2>5J-0xk^l)yLehkmBptdtAcE*i_e-_qx+T|I?q`{9fH# zd!0IU>eQ*KZy$ZoT^WCa2V~i!zz-aqWv3jNWjD;z+bsM1;w(EB`~rA6_1k zD}n1kecuLlflmU@0q^$sW$-NAe*n(}&pbcNmV&+Dh2U-8{cezd+5P-?1z5t9(is6) zfKLY%&qu(Mz#o98fpeB+*+t;#px$5aaSBuso(C#F?*x~F-v*V=aX3`oUT{9R61Ta3Suy!6U$Lf+v7K0*?mgP^hE8V?nAkI}4lx&Ij?5od+HY z4uMp2HV&Q+-V7@JzX#6)KLVZ%-VYuRK7>L(0z4H|{0l*qe>JH1%HXBoD5!G15mdQ9 z<=sCAm5(E+Oy%=Pk8?dP0}tZ;mEeis22lRDg2#c|{QKKLsxW&2xDLDzR68BF(&hJj z@FBQ2f~u!$z!LaZ;2GfSLAB$*flBWepz`}0@G|h&i(Neof@kBt9aMa801pA*2A070 zfNH0&`}e;G<^RA-Tsr50s;@p!?ehfik>E~H<-gOrUk|E2?*Uc+Uje(p1E@@zK3fc` z9NR$A%6$iT3V0{@DDdqdO_hBP zRKGY3;ubFQcnvrg_Y*Rye{t;AtJanzgcL`K`ECN+O>%lqT7LUUqB%5sod%#zKSAyRM*MSRp*$eIfH-R4o zSAj>6Vjx&?e0sCefP>8)TdxDEUSNK<9qkEV}- zHE=!nd2l0m%2ip`4~~I~=fmJ*z`1zR_gg{b|6Xtv_y{s3y15!uzkV91c61iuH)2Tvg~SV6W9R6RchRC|8VyMOE5%laJMOoCK-_I&UR@GGF|`2kS$dnA3$BBzr(L~eDxAgeBoMf6*visp5F#u0R9kExk^;VVsHRd`#l|m zRc9Xt74NS=(b1v-SKhUt=&H(3RsQFJbHRV{_*HN@?gzjja1lf!yc6sKe+#PK&w7mWw+UQ=`xzir zlf4go1$g*%uKwNxo{IZE@L2GEZ~~n3SlS4@8GH}8@Os(~{2^%lmcp5kbs@!*hiuWVn8Q>2=(e1-3j=tA|b8+7YD*WyK{qw*Q?l*u(g7<=| z-*0&QEqD^{<6$Nzf{Q%%f=h940at-90M7*f9Xtp81K0;6uSTfJ*1>;5zVI;0@rJPj%_s z4$A-6!AF97LAB4(cerrNLACc2K=sGJ0ac$L2M+QLPDeyG#H{N~1 zGhF?w1C^iaK+)enf}+PyfeJV0uiZGZ7^I73ec*cV6W{=N^fTS~uoc{h`(5Cn;K2~- zf#8wg0pKybcX{&^*+c6bV?a4!WF z&wZfEcgS-bo(0aueFfM9R>5`PTfsHpZ$P!v%I7+|yctwIKMgzsd^flj{3fXKl>Wxm z=egiRaPI^~?@s|Q178ewgWmwp0uOzj%hw`M`KW^O_Z+Yf{0w*;_^7{i`CS4YiMtN@Uf^Pk7T=S!gS^;K{)c-G&;+rTG+H-Wzd75|NQIy$@)RK0#46hAorF8V6C(BnJ7ChnF0 z;M(h-L6ze^Q0;X53mp9~2SwLgz)QiGfy(!Pfaib*z0lQP7q}VsCQ$YCI#B)aUEnd` z7r_(3?}I0Re*#YdPk52zW6Qt`aF2kB_vPS);HN?H%Q-K0{vQRZKdt~5fK%Wy@KqlF z9lQkh!(Zasdp)=a_pRUx@J--y@CTsMJM|xlXAb%W@Oa#JywtsaF{u1~5j++AIe091 zB$pwfLksQB*#mF^+0a`CSM&&7QssQ1qV&j#-S zF9H7>yaJs6YS;fJL8bQ&@Cbbej{_e7)xJl*#<@=e55T<)oC976D*hFq`ehS55WEeX z3qBQG2)-6nfBXt~DtORqU4K0TRQ#8Kj{rA-CxSPE>eoBK%fKgt;xiuxMF-ykPXZ5p zoy*4=;L*6}dAtx*{;vX+pE9WStboe*EuhkQBB*%p0@c262iJn%0#5@^f4%#@8dQF6 z1XYf$;OXF9;2Ge%LAB2}!Gplxfb+oLgQ}mo|K!@^22k&x0Uiv#+2g-}O8>o}+W)`6 zL%<{7;QSvCDxHf#mE#GZ=ywWKKAr=r{BHrz0zc}%{}5EW{s|QQFMp%sH#P85+;@Xl zfj-*i#|29zd@N!V~vl~>s&3TjSp9g~K*QbK#gUi9gz?(qT_Y|o7?gH0QRL94g7IXnifH-HV?yTK9gG4FEi`w`IMeYcx; zRKRQa{yuOsc+`8G95e#z{b#^y!86|Linw_V@<)Nbq<5{qY}!ws7A7 zo&mlOoDY5*ya;^ghg^Oy2T#WRbWrs83Q+ZY4|oCikPo}^T?U?y`*v_C_)hR*@W&p{ z{)j90FnB!gUji!Lw}XoJK2YWSId~d)+DBdbmw~HrKNVEI?g175AHX}nB_Csq1K$Oz zey+R6@%dMPOK^W3EP)UExafY`F1YwpF5iRT3AmeJ1$+(&OUQl!LQ>hwJ`K+Y2mjU8+n2y~xR1Nn$>EO! z&%ym{Q1$Q*a54C0@GS6%p_ZSAi?RdqLIDAzyIuZ3I`~ejzA+_$6>2 zct5E0kN%?TPnUru+#5i(a}8Aey&6>g+zT!Qe*`L?lfLBIaS8Zv+?&CZz+tci-Uc24 zz8qBk-wdkVzX&S6UxSM0*e^T!?gAI#UJI@Ur$DvmyTNn8uYnuE1HR(w>uON_`K931 z;P=5xzze_X`t5d5@%Z&2KW_FbpHT&Jb3KC zyLLGbRCyi;ijJNN%HMNAmFu5Cwa2GG`TH5Davb}0_kAg-d<=l9|J%UB!Mj1#*SkUa z{{(m}xX0t~!0T`y`3=WEtDwGr7+eZ|8C3fp`c21Ydcd`~p9G3dJ_at=_is7AxeDBX z`x~{{cBL^Kk7eRIW7j3zhO}Mn*`<5qhj$04e0_y#Tz@xzLf{y@y0UiS$_+7VNasqe}?%P1o z&3i!A$L~PV$HMQqacd{2aNh(K-_Jm`|D6AH{qjsueB`m9@^uHO`geHY&r@EY8&051c7 z1NMOz{J`l`p8=kU`@7&;@ZcXh`QXvuk+`>k%KuJqF8E4t75H&b`9AnZu3Q&_r{I1( zcs}?fa5eZgQ1$pr@HDXN$FBW1fb(!qfvUHcfTEi>gU<*57gYa$?teSF`bSXV-ww_P zzX+=T{2n|UJm!9v&(px;a9;@?1l|Z91`dG_18d;r;H{wQ@k5}}|B1&xfuf_Me&XnG z0jTh+!4tvt-~nI-TmWtZRWEmej{@K0-CqIE!~I)ONpAV{CKMbl}e+jBymi^Mnp{qdA*IIBD z_%u-E{{(m`_&?w))$gl8wf84MmFGV| z)zc3^@t-sHI{x}ta0%|)z(;^@0~doI15XEk1zrdq{~Jd~eW1#{3%moo6YK|1{H>GA zM!`Yc{|a6Mp89~x{}gxt?%O=x4jzg7X`s@*6I6Y?7F-JM0oBeY|IW3;I&c~839tmd z7F51J35t#$0OkMq|8?QlfT!Z#395Zx0IFR+1g-(^2d@AZ{oc8EfQs+^;Bnwj!Hd9y z{^082Qm~5q3832XUT_`w74RY8DSveJJr7j-T?{I{TS2A&2Jm9=^WYia5r1<27K5U% zN$_a!ec+?O`#`1hV^H+-Yf$xfK{m(a;}xLddkT0N_(AXf19%MX6?5iTJ#GY5Z+C#A z&-a2SgS)|F!9RhD=hy>WxT`^>QvpS9+d#GBd%pY3EmDKdaw)sZ15D^4}jvICmb?|93#(zqW>E~mFHRD<>0-b>hFk$%(4Es z6cqj60Nw~b7Zly!4=UZ?fvU%29y-U`@hni~ycj$Iyc$%yRzcChtHIO3AAq9!Ll2!} z^Np1ruLV^<4N%|z8B}}xr+I_bYc5@v;QW?Dj$Y!oc)IPq8v81szTje$xLw&*Mej z?{mCcH1HvQS9sK3D}5aQ1pX86R)e1h!{2lH@fe;r@=j50^B>*_zJYgFd%r`t|CUEI zvyFE@<~h!P<5hM%zZo*JOZ>aH^ZQRc*W>;+xWea?pV=8nxPIJU^KL{2>!bfJPyBs{ zN4(^Hd|wD|Z}s}5zv^O{+)u~zvsn#Q2lj{kK>8_zKZ7^JnAp&iRW7Ib^iM=!Si{Z$~*m?#cc08R{hf_J-1<9*-%G*mKCacc#mm3T)8Ju9 z$%gp$Ebu?TE5TEFG`_u=C;VN_5AjU>E%R}SXMcd_e7)rFzjz+b^GLpnZ|Lt?-tRKf zUCZ-u-2d(0y})^i|6l0e>&1Wb9D)1sJlpyG2*RGs?_Qq2=h5Fd_4+1srU&Z$az)iT{&+j{U^!G5Hojm99ez$-3HQfKg6aH@E{Zjw! zx!@1{hc$$`5BIllKh}R|xXsq`^z-e@yni3h_i*3M^Amm_&ims){XNM+b{5}u_}_xB zvpk3KOz_Mjp5K92@H`zq=YSi{H+>U)4$lL;`w(~(sK2*>rx5N? z?|vk|_4i)y*6$7cK3hNhUlZ&L4v%-?=VpHYE6-E-y*T+^<@W`=`v`a%sK3*Bp1|)x zb1}B@`&&F8;pyVtVdUdW{C)+$4+7uHqrZRF!|y(xL-F$;xL?KdN1k(d^!E_nOTPF7 ze$KQv?!PAh*YU2*6aK!)k5BL%>EHdB-yh)jI^sAmc=EUxJdyYMdk@dW`1>{Zd7jtv ze1k`S|Kj61)uZ06RC@%{jwV|l{gvHaMD``O?G&kOkd zLY{8#;jh4J{O=L)Gd#cG`w7H52wnl+!Mm67`@eYZ^nNer{SR>OkG-v0o2p#S|h3c%l6d0x%4p63;O>*qO!X9>>_dG}48r}6u5d9EbhGk6}! zyY%lr`KG^Tg6{$+dFJT_f4A^%E6+;84ZBy_|Kgs@@5h1R?~nYxm*dA%cT?cmyj#fc`TYJ2 zcnt1Wf+x#U%imFao5QzH@&1=QWBk_NcfdD+@8@|w&$DqKk6-cQ2eYOOTTb9HH?J~1_!z8s$zu8g_YrRKJBvot(W zX_RUc&C<5=_DZS0XH#inXlSZluhfPr#4=nRDmN$UX%w|eqgfd)B{9XXif3!J-e@ZQ z)Wf{RrR)1P4fghJd|YYZx`E!c-QC?8FNZ5bW953eS)Hhrs$*l7k@8rnytP@Wldqwv z@k*^(s*F{Ht-h61d2DQA2U#JpwS#L*jj1h-%Dz0V-!w~))mo!jrV{p%@ML{rY+^*7 zs|+EQ6Hyi8oOxv@lth|2B~hXQmS&ZS+8!HYF0`VeyU=W zRIVkjYZTuKs$$nG<>6h5ZmKq9ZJvC!1}zP3qmqVHU$v?6EdXuX+*ZlSA@|_hn*6z- z!{uhVG(kmAZOMs;d^UIa^qsfq(;lhRDs@V!!Zml5+VVDDu^dfor3BWoN{z|Nkm_Mr z6-0Yewoo61G)dXfcw3zHN~2QWP6TaV8rvr7%~HLxm3B~Hq~BJ@tJF*(W+OTJ+?YHx zhU(QxD9qPg2aif6R;l$pk{+6<4b`Dhnzz<0@9YrFeMmBsw}NY?4q+TECRAkA?|W=n zL{%tzq&IonTCG(Z+sGP}rR+7!yr_)?UO)>CSB8~lo9CqEy%&020~V*wXq8oN;u1*> ztlO|Yr>h;?CK?Huc^arTl*(kiT5C2+m91MVkS%PotsgWXfGJY&)C$im!xb8^0wtBi zp@dc6zzOR!4Tc2t|&IwYVtrW&e}3BFT#<=SY;dZS8aq+1{%3X=Vn7_(S%BQp&+3JmJ{V=q;e_ghEa+1a?RqA!f)F(i5OgIvrx41i7T_0LY z^~O2TRx z(6Y5wHOXM($(Nd=r_Jr%xMuz4wLNpYv$fU6i3cQj`wAd=@eEZY9sO0dh@^p4Xw9mKZD|&t9NfaHGr6 z1OiWEasqLuHj?$$TyJC$SJFdcQ?QcK*80S_dQ$$i?bG_+!Jhur>odt11l>mNY8AS( z4P$Wb8iPxX=2h=7hnHC7KW$szpQ>jX zkAbmGOf@HAp5-CRrc$Yosqr?h-q2(JX{eNAz;|kjXhV3mv1hOg=Cp-GM&K~zdb6up z9ori4h~d7%$gHso#c% z4|rmH9~r-sHioT*d_wx>gv;)1lg6;pj(W2jJ~y-tDPYLBjT&^5^+WjBj!J!~+^Fac z!<8FU+D9ytR3dwrjb|t`@Zs5b&n4ddN+k}dRtNhof~v=j;K>xi^G@G2W|Lb*1GnAJ z5J~@=Z6cFXbSMqbzI+qIQwVj__0p@e{%OV}|Gr33S^vh~TtF<1PcZ}AQYm&(Nq*Lw za~V79FYoYK=+^Jj~6B`4!Jcki9er{+2YkZDCjyK8W#M6dy(mT*sTE2Ao3K}45 z%fk-wYU0({jXa;(B-Q=TRMpFIs=wNBnPR$j%LY`bgzOrk>cZ~{sDoY@-8&fC%2Q*_ z!mBBgkr0@^M1ZVpNySfzr+>)y~W059FRBNgo<9^-Q<~18PthsV^zw2J6E{T=vC#wt?2|+>_>wOpt zJTTZlxW9oFCfnS<-iWh7$(R(3;29&Z$y=I2REoKNA>Kxn$8MDfSF?$? zMg7$|PNx!0GchKu3Zl6+wrPn8&`J&xJ(BiGC~kC}jUH zpI~jG)@3cxIl;V|q5e2;_ftqeMpEmjgZZ8c_MYHdk;DmF*X zbF2c;ye(O6*FtI@5odl@>i=KWw0~*uM)gKRgo|HWI9EebML&JxLVlj)<7T~VJJ%_VhW5|SH75%~Q2l*t{?Owj)`XOb3s`UvQDCRipxi~z^0CLATN zomwW3xzKZ3{kftATF<|tSk{nlxuQBWQw}*mkXu=(5m+4}TehWa{yH!G_$2|nGM$o7 zmn$z5n%LZFy@*yDF2$nkM?ft_Y992U0yo^0>cOPjWI1Y7!s>$wd`o$<0*RzSB~ZsT zE=_5vF$S}#+GuTJM=diUT-wzrWyiq2hd5DQYFb8Kn*=nN93sd|t_SLwtq>IDVZ|t= zg_DleVk#DEK1>i9lRRU};KFA!$<}%$tjKAerPDv7cf+Rjy*((fTUTXW2r1H?pEbRM z@?=7|=d*M;^ya0Feekv6()!+wSCx7mLv-@Gu}^7g1R5IC`is|x*m@QfbI!aa^P>lp z^3@tkj6pj6Y_Jwux4O?+*T~JlWY?Y~V*Q zb$n{PRFv_j3)&_EXddW>m6VBEKZ-0=rF8)t)sY&D@idW{pD1t?pCk~ZYuv_)8WW|^ zo>B6|qv`I$G_|J>@epNp7@jA|ztRbr{zGOKvq zs#4zG7C0Ig*owQi0AiqSSko2b5w{Mq6M2o}QxLYi?pIRNi~&=L$}fcFxuRKH(vkQn z9n4IAym}?~Vua`EBjnju7;`UPb*D~+;5DKZX83z?Au-sDB#Gz2JPo0~P9q4KzXheB zH(X%aKvM$33rGnx(CbW6u=7FBIEx{t~?#mo3rewNh5q2E(;wNRx3I49NkQ3-b ztYA9jr3fslRP!qFCK%RNY>iXiLj=Ba&R`IuG-Zs?fgQCnAz8P`t1{vv?pz30NuDzm z`i+)np;$-LIqS*?%Qy?n0%x;XdLG719c-~54H&F>d`op?3Ylt!G&D8x<|bISz9Qj^ zcWA`XEe|hnW0oq)Tf5CWKd~NUR&DxZm2h%`zJ<(6Cian@VsrL~jJ;;gMy7lco-fH7 z%114pK!9ou%dPPVR0HHdNqBpqXnV4c+%L27VBYe!+%L8E`9I5jr>vV9!F1J5{v={9 zYs>ig{~t4+w)=z5z<6~hG^idB*Yu1*mx2Xr1u=Y=DG6JMM)s%bl4JP5>cDz*qqMGn z)B0=Hd-2;?j(XLICRj_n?FRD+MD+$U`VlNuY9+1t%{w1yJ$knZJ4T$hR7%$(yHD)E zTEWEnMr*_@FinhM?t;~rP2t>3B}UZt84ILRc?7a7jWJoMr-`=t^>aZtso955rokt2IcUQsFeMb@s3x=14grm#U9ME$f)v{cViGB_5G zEc(q^d7SsO`1W?8B?5+@d3{Kis0L&e3$u`s#E%B5BEy#qBzCeyabVTP@@F`4dw!#(}&MCq1D_xiy@;=3!3PlqmN)h z9$)xrahyh3jWdZVdT3!xAq&)!4Y&K_d8KM-is{fu6rHGL%d6Q;?O$9$`jU;C2Esy2 z!LlF`%oBn#U8Zyld1fu!$(FBU$ zXhx)bv{aS3WQWpa6i+KA1Hbdacn%tIn((`KEl zTxzo}-R~GS_Bke&=RHf}2o}He+@Rl%x-&*ivuaHJoB4?>Y>O||8fJ@~#1nm_jjvXi zMk^k2|)@66&@q1-XQ=FhYe)mt1bM`A4a z@$w=TmA1^;bjs75MDiZh$Q*kO(sfcJ{)?ZunyiB~U9g_Xy%-yCQJG9Z?ynpi+$2RK zb>#iY`XemYcJz>Q6r~EmMaF`6nGpMlc89OY#+VLY{mj~b@jZb!eX+B)4`GQ)A0#J; zI%sPzcOXI{`Soq+HA7HT!;-~vW!6lAst5{6CFkPfq?FcD*kQEa62XpbRV=C)>_i`d zpbMS?&5^}|XSJ3*nh9)yaQwuUQL@hpm&A}v>16}l-qH6bJ`;+jPy2Y5*z~;-bp?6K?eoKiTTS*^4?z@eQZe8Gz8^b!JCs4^NwKU5M{PR?1^=Tq&pijga9$~`_h@T z7S`)Vuvp0#m1J)2{i#m|W@-|Tv*6Q8jRYCGip_e8Zy~>$Gjo<2tuQ_E9=!)*z(X+- zuT;yNPZ2?TLg8(yYA^b4-3?Vt1DUo`HA_(=fDSoqR4TUOR}2^4YClb(WilJu+|HTGPFd~2(riT{8qmeXGuh8agA!+f<616%JCK;;WY&O~#FMc%M?)tv_n0yggh&&i zf+Ew@9_t3zY#em@i9pPX$2O#8`BqKXs-LrWkvTO1i2 zXM=9oeB(YiX71jHDO^}IrWyKsuHMW}sI?gicDCrSd$_P8LVVNd@ep9N=hn=y+ezPI z)Vi@qKT3rAic33qtZ!Ke*SGjNF^-9!l#*?_o?unWHVU^-r_j0L+d}7xZ)edjtS4A+ z3NpGGbWg+OgP+a)8=;vMCAxea6T@m{Y?wNr%Gpy8z6G}|Ng6B{q8g2Rb!Xu@3~WJJ z5TXmwhl%Ih6?5BSi{GZ|wH0%G;{lr zULc)?3ul)<*z3Ti)oXhEPQwS8Y8q^;TpO7(8ydfLCRp#~YY8@_V1Q2@X`2=5XW0km zHEO&!t_sG2L{s?qW`;>zs7J>~p?vigHpH%;LR3n2erZ5+djWE(G{)Z=xOb$MY^R*o z8`~x@S`6lE8B{sKMq@^v_|C7z8++FXBbgUEW7p$)cG{Uu<;K4L4FjAZVOB7IW)xkr zq{-tbjMOgahHYR};wFgZez#S2hG}wZZnfpng($>s>>Hk?juWgF!h(Ej6uG?Zi{4V& zG_HI!2(dBLwHRMbGCbMvmlr^Tq4y<;F_xW`R}pA??eA|EOa$y`=I&c{t#-}qqoUdi zH@n<9JI9uSOw%yt*DVCLMm}8#cW}fkedlHH;@pgxGa^^x6q{;OPk&$DNUhZ0d0cO6 z$xZB`79|(xlEtC?d?{cOC#EF%%Q7ffsaaMHOI8zIx_W|? zm>;~7oGD~8BEQZb){LcXOQw+d@kO(affguxV+gmh8C1x*p3yB+`vpk&HbEvQsE=$q zuR-A?N^ttg)&TiT()t!!yfClN!eC_SMX|N`n%ZnTog+jvmu;^LdwbTD7B9MB>CzR8 zFS_W0xi)?vZx-Sv5;q4AZzEB*tN9%7BAbf6bm4^;TtvhdE@uN}z2#NuoSu#S^E-aH z_S$RtprI_uicgfRnH79#Q}3FbvBtNB*+ed3g+MKYNRNmirT?b4>%by0`Ya)+Y@8+Q zDo1yOd4^dQb(opt9wG5$^K&D!C~W}ATgsfVr<=>KlB9cM{K|2G6 z$KGmJuQ6A<}D*q~Mm#0!6vnb7U%MHmbMGtKZCD za?5Ht8&>?qu4`|?;bwU(h1cp`wxaCph2Va!={03g{Y8q9qeCv8)KSb~=!cG0J)_M# zRX&{z8$8KT>rT&-SZK0N;WdTk(`vwsgJL&Ot13jEk(Q-6sU71PEo{(GieXGBjzXn# zVg~1nQd|i&kW9B2&uL5AA09J9|}qg zkD>3k$!6&{HDnl?S+>&g47NVr=BId`&kR1>yZ?0YB2~l$P2sf-1#Mn2mKEDwmT~w_ z&WCa7kU9^N6j9Me-fSb9^%l3D*)j#ghAyg-b3rXnRHF^@kpxWfR~rbt1Q(_ys|UR{ znvFYo6oobKIEB%CBbe;9_$`j$ou?|(1Wh)-=4$fT&vL3)b7O zvLG`4v5`UJyIWJEMER<8SX8^s`>spykJHz^c&|aC}rrY=JQ&_aC~qZ#I{}Tc z_~X)YBhd9dc7~rnhbz8ER@4zLwh)vma!ue~4{j zTMj~WIxS|PXK?@Hq~Qv?l|qCA*KHhJ{g}@2wU-o9jU!be)rH7{^;i}~U4HGz>cg3r zrlm=U1q&}7LA1W6hX>8EQE_5W0F8FsrCR7x1#yWGk~u0nS&N0RG=kA*bN}kZ%vNB( zX5+&CZH#-y2H9_>T(k?A#fWEY8sBuV@i20ADoY!Cr7-!sAnoxo z7Q&mY6>2085n48lCGLAsP3?C)Cfd-Km4*(~-B%om(2>xR2(_)M*|wk^iZCjX+KLjj zYp06XPCjw^HkEHsALcSceuPWxb*)l;#$kh;XBo$1o1$>48ESpykU3v2D%?CZp-Bvl zSKdCsYO))x(TNg?uYvqm&JyVK57z9Pc*R1pRx7St+d1tQ(Qv2{49X_SIIUwWCYdTu zA9ET$uhG`z%v3E;CE#mRfPwzW8yu)DJ3f9<$V_p&&`#avGRroS23yT_ z2q$*1UNn*%*f9yhw@E7+o|W!C%TNM^ zX|{T;=F{x4@h8HY1mF)_#>`6VEDSex;$FsP((pSR>{jY^n};N9gtN}Vj_vkD@-to) z5q61cGdc+J00W?oPta^AR!WeXlag4d>1|*4pnIhI3Qey6?>SR*CZPFzhj=bM_ayh^oD zx|dYi8ar8df{~&yUm}ck89T+DkKu%_JQ1d_Rv2q(wN83?QkZi_($s;+DJ_IatKZ-q zCbm&mBpJOhwN-BNd5fDuYOT$kzHLm%uQs!5E2;vDp}dlTvV}wUt)Gf!eb`iMVdW2p zbXIGefZSbLZTftb7N*sK|A+&0g~DsrtSZvVsd`40D_ZOA$M zk=_>Q;h%wqVTObh(HUPo9kQ7yrk(h~sNM3O%^|__JGS09wTw2FWVuYP|M4 zll;QD$gE<>sH)Lj8if8>`Nkm4GZaED(w0Y6@>p5yzIB`shgC$@d(=$U9z}}cyRO-w zm#QBIb`lRwux?07PTvy!+IKWr$qD5$&r5i%lLT^3MLH-9bgM+Hv_#~xLrKOfWjmJL z#*Luu3_1ud+0danI!nmyUx+5eX_w8SHyfQyF*vP9Y$jP6H-&P&!cJD5_?~W4nW}{a zq#y=sh^3INQ|@p}%3^GUb2*#h;oUE}scP+h7jkHaBb6>+GkAr%VQ?q%UOd<+e2eEN zCH}qADQd4`MB#LM)2CU0Wanel9r_`YP*F(})C}!(6h{x2;r$BX)N_`PJe;4DZ_zyy zWyJTmxa|^1Cd9t}f&rx$a^fT@wVR|YrYCHhOIhOfsk6wNxjaf5NJ|=*Cuwqx*fLaW z?P5M?VZ5g=1+_%fS6a{M=-KwCY6L*Vq~n!B(6Ar!{AogY^ExRYqY!LDowN3P5TTr@ zQAlzEUnd+XP%-jpYXnJj&@P>VLYL3d-~K*%rJXP5_Qj1RHanFk2P zk2M$Bg^6}FrJdveCv(FFjB~?4pB-iF-dP0YG0wxGLhWm>zGkh*msxbPQ0;80PuzsQ zv#WQw>l$|j$%;}R8>t31l@@m|J8V)u46bxo0}`} z4l5I-H(p&~|Da>mxw2SASL_le3n3W`YpMvMN7o0>P$F!W8C9olBwvwskvqAt0+GpO zqMDNot2^!s6yMn0Y)Y2#vC_KaOB&QJ)Er|Fn(5dat!a%2gB82$jT~6+lqM-n?y>Ut zocPFEJk<7#z!hxuUWG13MygzLf?@?_n4)qW4@O~UhNuP=9P!gnFlR~vK5kqt`cYkY z{T_-%&A3A?s-9}4Q8rBaiCd$*eWbp-)}RSuaNh`?ZYAboFE@;00MTtM`cfjni&CJI z!}W-}HYz(%C)>hk+{Bw6BKJaXk(F(hXaS;)YXwC09Y2$9Mk z=VOlT!k!lHDWYafhSKFyN|I2!0yEtbB+>fx%ri9DA#!4I1=+q^6|!ZIYK4QT zAx}tvZ8bz_bX{$XCR=|z4TXIo97K7JXMRyXjOfeNU*RnSTCR zkJfi@=kRbwB#Uy&=xOUbOdGFDz^=jWH!5s*IY%GF&M7U z>I5{tmm)hJ;Hf+r?~HE;($pLU(lXYewXJj*bR#n5X6$sAf}vkcj=B#7P5oIN$D6^j zYpMnhd)~ia9Ka)`M4>qLru8s98Ka}28lr@cd9-2FoGBDME zB1hCIjf6E zN_lgtJwA?EM_K1M)Auxtsv5?Sb|{GM|Jss}j;FD^n8ZirWdfR}63q|t|yVJo%nY;a<1 z6gxNkZ9`Vr<#{JWhIllpJHphH=!URmkwasgempVSXsQL02ytmZ>)1`8yg=kWwwRB7 z1q%$j5N=%wWK_f=*IcV_(oB@`r)5D5ndLswz~CV&~=gGq`o!bM{p2RL`vSeF^&Y2@>ys@ukx zegx^XG`G6l4AcJpM~zMe-D(G&R-CdLjOp5PpcoVOlCZ1 zilKDiMOfe0b}_XWll6B#vB)Qb9a?i#tPoi<2!jj(HZ*DQXq$~twI&w_ITXI-{8*n8 z=W_*}qJJ|HX}e@B6_FH|t`{592!bJH<)+qa#u#NOl)GY#r3>95CK;2Ab-5eHf-Apc zEW9b)GM2v#=Uo-z+F_QZyxKeJM`a0H%6<@*0_9YPpeb!m?=tEUJ5L0&tC+2@6MYPB zj~>u7OB+3-SZSH3u#M8#9;83C4b28)V0C1hG&J2#?m!?IYkg79ocwf0VhIh)vYgEkR6w_1f#=Z3q<#Dt8-a^uJJPBQC*+aMMr87xesJhWN2 zH9j~#@V`uK@+h*OkZ22gaR|m zh)FRzRRf|QAziFu84B8}t7rr=CIx+uV%eV+m8V)e@v4|1Yx!c9T8HT*ONDr1PK|kx z*Vcfx^y)Qm5V;hZ@Gn^AIkj-4`#^|Ry^goGQDaLz*4V+g&nThcHlD*! z+(PFw#SC@Ug95d&1=WSCL}j!ic_+HmP~PHPlz`#GU!)@TH^CwUoT+R<{ZinlUM6*P zP-NSFdMJL|W&KSR6e6)XaU)Q-x=jo72p)^6c|wWmmuph_I1@#NaNBny7Q0@J7$p1Q zu=Nr}#2&^jof|3wW~2>+2OZcakjT@845$Pss|)E!-|rGC)Iv8>RrpfNmqRy$}%i(98)9$^7xgaBvjINR3@IKyKZ zArHNn(}$tvGeJcM%XNivhF8^*_Y-6cJbMD^P>{bcQA{E43}-{fd1Hm zi_kHTl344xzYxeau?h=m(FwM=dYPs5DjSMQZWWHdLf#+HIv8ojEeYqq2ww zK6-I;Bq=%D(=<|P75pQ|&*Nyg9842ILQY1rvkr&vFoW}3hR}Yf9%dUusurAWm;%q7 zZJ;i+x(PAb?OL>OtN1nqrTr2?hxv^WW;4&Q)BeCA?2xb6 z-0pRH3T(@#>3W1wt8}0x;}N=YE$|z6v3cY-Q{z`Os8_a;83H3ld@%*G5~XE~7C(Mg##Z(1APL&2Ns#oV%{{LpNF`KSjn&mBrG ziA2yb8D|6%tBxdV4(c-2Kw%z0QQJGN>aAtD!Stps5nl`^iqmOqluuG__qv4@6Rt1P za4lLuXky+b+D@)zb8!cnW+M;H1b?6jrm_6FQSE= zrkSM?#Z@D%4h5%xove|P@)C|_PFRx^iUr=}BB<0{$8+^RbGEGxBWFsw5Q%NsTfd1l z9kWn~UPv+yr@00zi{D$qh30QKgH2b2CiB5v2x==zP%jd$zwVlbgGh7@n~bGY)IHmG z+lmH*YGnzq=D{D1HYcWKm>Ar4ZOMIK|K?_G6FJW^Y z83i!hDbeShtYQT3B*Z+~4n8ytv&2?a(v2GT{9w>FQ;eFEGI&?Uf;TIVA~q4pCCg_9 zmI+%Jl#R{&tS}~vsx>Hv5!>t0ID~F&_c*!}c7v9}w?aTSm>Vxc^sr0U9E){7(eRtC zc*2X6R9HgxB78RUXT0x$6eP8A4I2h2Vz}{~jlv~tVW9A;5~{LTEWgZPip|;F!{)~4 zur)Gk$+w?5vrsNs$xLDzp_Zs^CQlF$i^>hBxJh$UuWFZMnjL=!i%YTnQZ~nV#FjeG z)5N;Ws9;NVjQR}PF&8W{`E<@y2$9QqwNjQl3OOV$6EB+>{f^|G%uv3R4+Ea-!i^;h zL7bu=qvoKtl!ac_;O3%w*#T?w>a`M>=#OC~coq_qjd*b=cX~r=zNo(TwiY71T(#IR z1%Nt77Q#oHj1F4q;KxURVRv|=IimHkHY>rRk0MWt@o12e^f`@Zm`JNvS&3q&rT(an zR5x2Tmj$or+@H7{fy8()mqdxNB&bY>r?$YDW7p5=%KAOcCYnw&$o*xr2vMB)`ydGu z5TBQ6d$2N7Be{6nJar`P+;{8;7Gtq<7Fvnm`biLc(CyV4%ilx z$ylDWHMrcKhT1v<*RA0-njj)Hnp8TP?Xh-nTCfm{p}$jYAH%= zvMDP$kzLXR6f(vj2B`%hQ_9$CkYtqN_q0Q#K4~-tnh;e^HEmp1vpb2YE3IpM@4Clq?2eOBFL~TZfWu2pl6sOQYxP z6iHjM5|bHGIsH;gOEOfoX_a2fw$9d@%-D`@sU5ddW~1jiv++4X7DDXHljnYxuu_0# zL;S5#C7)8wf5=<-Y`Zh^-Ek^QAxBuDVz6Y1nAeWkW_OS+f!k05F||el@7X%G%WYch z@VPa3hwP}Z)U+b1?-`+u*lvo!t*YEuV8E$?{9N(eN zn!DpI*dm3O1)HZ#6CmdsyWMb-#J+_){+L<&xX40KYopzf?%8TPge@)$!sJn! z6jpeBCv91fq>wZ)7{*M=?1qEP+i-&23@RRD ze?}d)KNTpenrZ95S=jk$ z#{M0~q3}Ii1t+!N*0H^)rkS(tMr+vWA-H8DRNpl|tYb%@2c7ta(rw?~!{7_Wn?@wW z7c#&dbYULd`iWDqbf`wNG}qll=O^yo8&n=HqcbiW%)z_HW2U0an~0q&N}j}3n;KEY z6rx8z7hnqJ3Dvd{(8)vIqR&E$cTB!QT^QwNdr z_=X|Vm{oW|D^|zMo-6g_t*6|gesOaVk*)Bn{iV5fd~?fnbaTaGJPUQpI1m8(5BWt( z=Q6rbH$g8jZ8Fmm+de~vBz)8lBJH^g7q$`FOv$dGn`t||yP?jlls)*=T}UQ;R9a)Q zzK6{rwr|6Fu_hqaWK!AsaYlTkj1DDKuCr@%B35|kH(_f63vShdnia)5KThsO0YaZYQY#iY);dTcwt?zT?i406l`fVPJ67NX2e#wvn!9f z7;hX$Ld@39Tdd_uc70uvy;vXg_4cexlQ3m!YAfq-zGNB_Mf*>6NgVC4$spFYwnj6Z z&Mz>_3)NO%ZRMIpHbr>W*W}j*(j@7;os*U#Kmi}($gl3POLlhFm^JwVQHP@2jyo0Fie%*}Z7YUmNnX)nBAE3utz_5s408t_Iv3_H z_66cJ^B3DwSu1t*WH|lNM9HyUq@A3S6BhKP*Xq^+C8((&Fqtt}Yu zM#e41)^25JXW1ZG2V1N#9JQp8+a>!8z)}$J+6O*>Ep+Yw6sB+zfc>192C%&gD z5*KN1GZ56EmJ>0GXw{p)35+pIv*`5(p*=coD$H|jk-0;{TybN%E6SOh66hc!yA!XY z$V@?P`;U3%)cC$Nn|1YxolB&8NBq%AQev>di@Oj{9o;nst;LF&5@WcwoAGqSkx_w0 z0%g_)TzSdYoe4a{ZkrIDGYYe#rYyp6=9Cr=VvZ7;FjgBlMo@FnYux~pgy1Fwvh8&r zkvBwHCgBp66-2>cTs z6nl^79Bu4#DJCP2;}mv}p0jY~9zCbsv?96d^5P`e2Hvo@rjyv3&Jz92dOGedKP=WN zAuLx-FQT3^Z+Jd8>Uk*{T?5N`&~dY3Gn%&iXMyId=KUUtoT;>YRs$!R|0Shlm9LXm zw|Wu#%FMna+n8kvh&V}vZWV)@_B6t8tHkEPARoJ8sOU_JZ4qN49vcU3f zpv-$#`(z|Nvp$3mDTzy)!apBdoP?Opl2#}8>^Y@H^a(V7A*oB#p*L(%v zW=@&(L7Ld-B=bHw@C~^x)VIYE$4@PkRBD_kWM}C40MLQ#PhitUF+>gP_xHJQ)^6s< zZMe-u>>(j&L`pARx96?g-3pnnu5cG$R%l5?D;=m}1B+LtO7511F^Gbx7YZ9}1+jTS zd@~z9jW0TbXKs%hGD`!4^(l_ZN0Mr}OK+|OBx*-umQG+v?$&e15t#j;yIL<-M52_? z?Ru#&8(TW*h%M$jS?Df~ueFAtA;O@TFUmwuK`L{{I5A>qQ)8n-gH>!YNEdWgWZ@XD zxUm3%h5BoZ?L{)8X|SK74W(@H%s9DDFP;EnrV?R1AZoi#FIR7Cv?$!Bmj|?+0k+zv zECz*8*1p0L&$M-hIF7P!q6rcsVPnBF><_iwVid-Wwz&~+a*3W3K;oz59z9#&l?ckF zvQ~vP<(o<8ZG%At;WZW=wiNKFNjTMuBJj4UECB;$-ij&nD=3!AqVc!Oi4bgsaD{MVM)gY29q zuul&ya-Di=tP__HCu7W*p#Mly2YzmRyCo*oBDNNVW!ZfuA0^TtRvRrfhi3ay^K#vFWwcjIG7(zqP%?=nHHKJkUgOMu2Q6U0xWd>A0Tk zb>$h$6>e@X13^qh=+u}x3{_F0gcFI%;sx~yl#sSr(F+qLnBsO>uZEGHv-GmOzB8+M zmWC{h5`2&<-Ec`?YIm1wYqQR;O;Cw7C1XIQAGY_7<)B18FjH_>%iaLMCNKrx!NRb^ z(ZOk+a&M})L<_k@9Ww72So-q)pV?c1xd4zI@V1 zkkbTj6LW$TK0{2&-bOFD5V^!wDFlMGN^&osPC>EzG1yz;Y@Uphx6j#Wrg$Hp1UfAt zviyV~qGDPa85*s?q$MMkuJVWd;TfOQ*tV(qlpSW&F@AptB%_Q;N5pCdIvNBe*1Gl4 ziSfElH&3cm!jlB@P+qc-F9)gP1z9Pa0-x`4CgEj$vW2s**FpH)Akql;@lgU7)SbT)GUuixYzlVb5q6)p3!Bz;b<)Ws zD{F7>ie#J+XDnUFW!zGxQ7bvy8;|)wo3IUMg^QVRxZW>RSH}p0$W;)X;`rSmS}{$j zNL4~_mP*ycV_nrQNyl^Q0#iV1XeeIB=j$zux{e(ewkVs%n8eh}3MYm+W4J(+oW+iv zD2)`#94w=p($r5;(N;u7lP=;Tr(xDxob&tPk&fUkF5}F-TuQIu3!!W%c0A5$)@Rmc z%!WtIQ<*894qrmE~rPyiXSrc9%5aB6PLy>@Ix^kY~)5!BJDZ8d4hM4l1? zrOmg`-QxR9pXzs_UEn^2mi)iSK~Q>A1J)Btc@1IlWqXc@;-Xdg>62tU-BQ_5`7Zu-ht!<`=F z6`4VmFcBs?C5=Qr?vPCa4^ zkZML3rka^OTk|Ju@kwKxt&xQD_gd%Gm0Eu7kgm^TA{Iq$v68qzM+MSUZro!|Z`?iJ zq32vF3zUWn^|<@sI+;7D!@u(9>6khy_sH01>XamOvlLbFZg3*jz`N+$lv;U;3WW~D z1JelS4YMN0Bqk3PBHFJwBu3kUdb}sgDnCg@gLRzf=2fVgE;L50T*$zkN!&IGQXTql zZK5LItUM-Xgrd08`E|@((bAz_LS-Ob6ay!V(z%pm#|(B(Zb^_Z&5lqzsBFcnB^r{M z$6b1^0VH9hiK4fU_h-?helT&1q`98!!3LJWDz~K>2T5}f*KS?+iDMVE?vp}R%J0~7 zS?85VsHpb!wXR7jff?1^ogS#p;395MId|^G2$G_^`}bPv$`4hk3RGulG7vIcIxp$ndj-Ko>o4j#v(fqdKl8xqhyVZp literal 0 HcmV?d00001 diff --git a/po/sv.po b/po/sv.po new file mode 100644 index 0000000..e84a0f9 --- /dev/null +++ b/po/sv.po @@ -0,0 +1,2628 @@ +# Swedish translations for OpenSP messages. +# Copyright (C) 1999 Peter Nilsson +# Peter Nilsson , 1999. +msgid "" +msgstr "" +"Project-Id-Version: OpenSP 1.5\n" +"POT-Creation-Date: 2005-11-05 09:50+0000\n" +"PO-Revision-Date: 1999-12-20 21:46+01:00\n" +"Last-Translator: Peter Nilsson \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8BIT\n" +"\n" + +# ArcEngineMessages +msgid "" +"no system identifier could be generated for meta-DTD for architecture %1" +msgstr "" +"ingen systemidentifierare kunde genereras för meta-DTD för arkitekturen %1" + +msgid "element type %1 not defined in meta-DTD" +msgstr "elementtyp %1 ej definierad i meta-DTD" + +msgid "element %1 invalid in meta-DTD because excluded" +msgstr "element %1 otillåtet i meta-DTD för att det har uteslutits" + +msgid "meta-DTD does not allow element %1 at this point" +msgstr "meta-DTD tillåter inte elementet %1 här" + +msgid "document element must be instance of %1 element type form" +msgstr "dokumentelementet måste vara en instans av elementtypsformen %1" + +msgid "element %1 unfinished in meta-DTD" +msgstr "elementet %1 inte avslutat i meta-DTD" + +msgid "missing substitute name" +msgstr "ersättningsnamn saknas" + +msgid "substitute for non-existent architecture attribute %1" +msgstr "ersättning av icke-existerande arkitekturattribut %1" + +msgid "substitute name for %1 already defined" +msgstr "ersättningsnamn för %1 är redan definierat" + +msgid "substitute name %1 is not the name of an attribute" +msgstr "ersättningsnamnet %1 är inte namnet på något attribut" + +msgid "reference in architecture to non-existent ID %1" +msgstr "referens i arkitektur till ID %1, som inte existerar" + +msgid "architectural content specified with #ARCCONT not allowed by meta-DTD" +msgstr "arkitekturinnehåll angivet med #ARCCONT inte tillåtet av meta-DTD" + +msgid "invalid value %1 for ArcSupr attribute" +msgstr "ogiltigt värde %1 för ArcSurp-attribut" + +msgid "no declaration for meta-DTD parameter entity %1" +msgstr "ingen declaration av meta-DTD-parameter-entitet %1" + +msgid "no declaration for meta-DTD general entity %1" +msgstr "ingen deklaration av meta-DTD generell entitet %1" + +msgid "meta-DTD entity %1 must be external" +msgstr "meta-DTD-entitet %1 måste vara extern" + +msgid "no ArcDTD architecture support attribute specified" +msgstr "inget ArcDTD arkitekturstödsattribut angivet" + +msgid "ArcDataF notation %1 not defined in meta-DTD" +msgstr "ArcDataF-notation %1 inte definierad i meta-DTD" + +msgid "ID attribute %1 in meta-DTD not declared as ID in DTD" +msgstr "ID-attribut %1 ej deklarerat som ID i DTD" + +msgid "invalid value %1 for ArcAuto architectural support attribute" +msgstr "ogiltigt värde %1 för ArcAuto arkitekturstödsattribut" + +msgid "no notation declaration for architecture %1" +msgstr "ingen notationsdeklaration för arkitekturen %1" + +msgid "meta-DTD does not allow data at this point" +msgstr "meta-DTD tillåter inte data här" + +msgid "invalid value %1 for ArcIgnD attribute" +msgstr "ogiltigt värde %1 för attributet ArcIgnD" + +msgid "unrecognized quantity name %1" +msgstr "okänt kvantitetsnamn %1" + +msgid "no value specified for quantity %1" +msgstr "inget värde angivet för kvantiteten %1" + +msgid "length of value %1 for quantity is too long" +msgstr "värdet %1 för kvantitet är för långt" + +msgid "invalid digit %1" +msgstr "ogiltig siffra %1" + +msgid "only value of nArcIndr for ArcIndr attribute supported" +msgstr "för attributet ArcIndr stöds endast värdet nArcIndr" + +#, fuzzy +msgid "#ARCCONT attribute already specified" +msgstr "kapaciteten %1 är redan angiven" + +#, fuzzy +msgid "invalid value %1 for #ARCCONT" +msgstr "ogiltigt värde %1 för ArcSurp-attribut" + +#, fuzzy +msgid "%1 already used as a substitute name" +msgstr "%1 är redan ett funktionsnamn" + +#, fuzzy +msgid "substitute name #CONTENT already specified" +msgstr "ersättningsnamn för %1 är redan definierat" + +msgid "IS10744 PI keyword missing" +msgstr "" + +msgid "invalid IS10744 PI keyword %1" +msgstr "" + +#, fuzzy +msgid "architecture %1 already defined" +msgstr "länktypen %1 redan definierad" + +msgid "the first definition" +msgstr "" + +#, fuzzy +msgid "ignoring PI declaration of architecture %1" +msgstr "ingen notationsdeklaration för arkitekturen %1" + +msgid "the ArcBase definition" +msgstr "" + +#, fuzzy +msgid "ignoring ArcBase declaration of architecture %1" +msgstr "ingen notationsdeklaration för arkitekturen %1" + +msgid "the PI definition" +msgstr "" + +# CatalogMessages +msgid "name expected" +msgstr "väntade namn" + +msgid "literal expected" +msgstr "väntade literal" + +msgid "name or literal expected" +msgstr "väntade namn eller literal" + +msgid "nul character" +msgstr "nul-tecken" + +msgid "not a minimum data character" +msgstr "inte ett minimumdatatecken" + +msgid "end of entity in comment" +msgstr "entitet slut i kommentar" + +msgid "end of entity in literal" +msgstr "entitet slut i literal" + +msgid "OVERRIDE requires argument of YES or NO" +msgstr "OVERRIDE kräver argument YES eller NO" + +msgid "CATALOG entries cause loop" +msgstr "CATALOG-poster förorsakar loop" + +msgid "second argument for SYSTEM entry should be quoted to avoid ambiguity" +msgstr "" +"andra argumentet till en SYSTEM-post bör stå inom citat- eller " +"apostroftecken för att undvika tvetydighet" + +msgid "no DOCUMENT entry in catalog %1" +msgstr "ingen DOCUMENT-post i katalogen %1" + +msgid "no entry for public identifier %1 in catalog %2" +msgstr "ingen post för den publika identifieraren %1 i katalogen %2" + +# CmdLineAppMessages +msgid "invalid option %1" +msgstr "ogiltig flagga %1" + +msgid "missing argument for option %1" +msgstr "argument saknas till flaggan %1" + +msgid "option %1 is ambiguous" +msgstr "flaggan %1 är tvetydig" + +msgid "option %1 doesn't allow an argument" +msgstr "flaggan %1 tillåter inget argument" + +msgid "Usage: %1" +msgstr "Användning: %1" + +msgid "or: %1" +msgstr "eller: %1" + +msgid "%1 [OPTION] SYSID..." +msgstr "%1 [FLAGGA] SYSID..." + +msgid "Short options need the same arguments as their long forms." +msgstr "Korta flaggor kräver samma argument som dess långa motsvarigheter." + +msgid "%1 version %2" +msgstr "%1 version %2" + +msgid "unknown BCTF %1" +msgstr "okänd BCTF %1" + +msgid "unknown encoding %1" +msgstr "okänd teckenkod %1" + +msgid "cannot open output file %1 (%2)" +msgstr "kan inte öppna utdatafilen %1 (%2)" + +msgid "cannot close output file %1 (%2)" +msgstr "kan inte stänga utdatafilen %1 (%2)" + +msgid "Use bctf %1 for output." +msgstr "Använd bctf %1 vid utmatning." + +msgid "Use encoding %1 for output." +msgstr "Använd teckenkodning %1 vid utmatning." + +msgid "Append error messages to file %1." +msgstr "Lägg felmeddelanden till filen %1." + +msgid "Display the program version." +msgstr "Visa programmets version." + +msgid "Show this help text." +msgstr "Visa denna hjälptext." + +msgid "NAME" +msgstr "NAMN" + +msgid "FILE" +msgstr "FIL" + +msgid "NOTHING" +msgstr "INGET" + +msgid "Try the \"--help\" option for more information." +msgstr "Försök med flaggan \"--help\" för mer information." + +msgid "ARG" +msgstr "ARG" + +msgid "Undocumented option (check the application's manual)." +msgstr "Odokumenterad flagga (kontrollera programmets manual)." + +msgid "Use catalog %1." +msgstr "Använd katalog %1." + +msgid "Arguments are catalogs, use DOCUMENT entry." +msgstr "Argumenten är kataloger; använd DOCUMENT-post." + +msgid "Search files in directory %1." +msgstr "Sök efter filer i katalogen %1." + +msgid "Restrict file reading (for use in Web apps)." +msgstr "" + +msgid "DIRECTORY" +msgstr "KATALOG" + +msgid "SYSID" +msgstr "SYSID" + +# EntityManagerMessages +msgid "bad formal system identifier syntax in %1" +msgstr "syntaxfel för formell systemidentifierare i %1" + +msgid "value for attribute %1 missing in formal system identifier" +msgstr "värde för attributet %1 saknas i formell systemidentifierare" + +msgid "%1 is a formal system identifier attribute value not an attribute name" +msgstr "" +"%1 är ett värde för ett attribut till en formell systemidentifierare och " +"inte ett attributnamn" + +msgid "value of smcrd attribute must be a single character not %1" +msgstr "värdet på attributet smcrd måste vara ett tecken och inte %1" + +msgid "unsupported record boundary indicator %1" +msgstr "postgränsindikatorn %1 stöds inte" + +msgid "unsupported formal system identifier attribute %1" +msgstr "attributet %1 till formell systemidentifierare stöds inte" + +msgid "unsupported formal system identifier attribute value %1" +msgstr "värdet %1 till attribut till formell systemidentifierare stöds inte" + +msgid "bad value %1 for formal system identifier tracking attribute" +msgstr "" +"felaktigt värde %1 för tracking-attribut till formell systemidentifierare" + +msgid "duplicate specification for formal system identifier attribute %1" +msgstr "attributet %1 till formell systemidentifierare angivet fler än en gång" + +msgid "bad value %1 for formal system identifier zapeof attribute" +msgstr "" +"felaktigt värde %1 till zapeof-attribut till formell systemidentifierare" + +msgid "bad value %1 for formal system identifier search attribute" +msgstr "" +"felaktigt värde %1 till search-attribut till formell systemidentifierare" + +msgid "bad value %1 for formal system identifier fold attribute" +msgstr "felaktigt värde %1 till fold-attribut till formell systemidentifierare" + +msgid "fold attribute allowed only for neutral storage manager" +msgstr "fold-attribut endast tillåtet för neutral lagringshanterare" + +msgid "bctf and encoding attributes not applicable to this storage manager" +msgstr "bct- och endocing-attribut ej tillämpliga för denna lagringshanterare" + +msgid "cannot specify both bctf and encoding attribute" +msgstr "kan inte ange både bctf- och encoding-attribut" + +msgid "zapeof attribute not applicable to this storage manager" +msgstr "zapeof-attributet inte tillämpligt för denna lagringshanterare" + +msgid "records attribute not applicable to this storage manager" +msgstr "records-attributet inte tillämpligt för denna lagringshanterare" + +msgid "bad value %1 for formal system identifier indirect attribute" +msgstr "" +"felaktigt värde %1 för indirekt attribut till formell systemidentifierare" + +msgid "" +"non-minimum data character (number %1) in value of formal system identifier " +"lookup attribute" +msgstr "" +"icke-minimumdatatecken (nummer %1) i värde för lookup-attribut till formell " +"systemidentifierare" + +# MessageFormatterMessages +msgid "st" +msgstr ":a" + +msgid "nd" +msgstr ":a" + +msgid "rd" +msgstr ":e" + +msgid "th" +msgstr ":e" + +msgid "(invalid argument type)" +msgstr "(ogiltig argumenttyp)" + +msgid "(invalid message)" +msgstr "(ogiltigt meddelande)" + +# MessageReporterMessages +msgid "I" +msgstr "I" + +msgid "W" +msgstr "W" + +msgid "Q" +msgstr "Q" + +msgid "X" +msgstr "X" + +msgid "E" +msgstr "E" + +msgid "open elements" +msgstr "öppna element" + +msgid "In entity %1 included from %2" +msgstr "I entitet %1 inkluderad från %2" + +msgid "In entity included from %2" +msgstr "I entitet inkluderad från %2" + +msgid "(invalid location)" +msgstr "(ogiltig plats)" + +msgid "offset " +msgstr "position" + +msgid "relevant clauses: " +msgstr "relevanta klausuler: " + +# ParserAppMessages +msgid "unknown warning type %1" +msgstr "okänd varningstyp %1" + +msgid "invalid error limit" +msgstr "ogiltig felgräns" + +msgid "maximum number of errors (%1) reached; change with -E option" +msgstr "felgräns (%1) uppnådd; ändra gränsen med flaggan -E" + +msgid "Make doctype or linktype %1 active." +msgstr "Aktivera doctype eller linktype %1." + +msgid "Parse wrt. architecture %1." +msgstr "Tolka med hänsyn till arkitekturen %1." + +msgid "Give up after %1 errors." +msgstr "Avbryt efter %1 fel." + +msgid "Show open entities in error messages." +msgstr "Visa öppna entiteter i felmeddelanden." + +msgid "Show open elements in error messages." +msgstr "Visa öppna element i felmeddelanden." + +msgid "Show error numbers in error messages." +msgstr "Visa felkoder i felmeddelanden." + +msgid "Show references in error messages." +msgstr "Visa referenser till relevant dokumentation i felmeddelanden" + +msgid "Define parameter entity %1 as \"INCLUDE\"." +msgstr "Definiera parameterentitet %1 till \"INCLUDE\"" + +msgid "Enable warning %1." +msgstr "Slå på varning %1." + +msgid "TYPE" +msgstr "TYP" + +msgid "NUMBER" +msgstr "ANTAL" + +# ParserMessages +msgid "length of name must not exceed NAMELEN (%1)" +msgstr "längd på namn får inte överskrida NAMELEN (%1)" + +msgid "" +"length of parameter entity name must not exceed NAMELEN less the length of " +"the PERO delimiter (%1)" +msgstr "" +"längden på ett parameterentitetsnamn får ej överskrida NAMELEN minus längden " +"på PERO-avgränsaren (%1)" + +msgid "length of number must not exceed NAMELEN (%1)" +msgstr "längden på ett tal får ej överskrida NAMELEN (%1)" + +msgid "length of attribute value must not exceed LITLEN less NORMSEP (%1)" +msgstr "längden på attributvärde får ej överskrida LITLEN minus NORMSEP (%1)" + +msgid "" +"a name group is not allowed in a parameter entity reference in the prolog" +msgstr "" +"en namngrupp är inte tillåten i en parameterentitetsreferens i prologen" + +msgid "" +"an entity end in a token separator must terminate an entity referenced in " +"the same group" +msgstr "" +"ett entitetsslut i en token-avskiljare måste avsluta en entitetsreferens i " +"samma grupp" + +msgid "character %1 invalid: only %2 and token separators allowed" +msgstr "tecknet %1 ogiltigt: endast %2 samt token-avskiljare är tillåtna" + +msgid "" +"a parameter separator is required after a number that is followed by a name " +"start character" +msgstr "" +"en parameteravskiljare krävs efter ett tal som följs av ett inledande " +"namntecken" + +msgid "character %1 invalid: only %2 and parameter separators allowed" +msgstr "tecknet %1 ogiltigt: endast %2 och parameteravskiljare är tillåtna" + +msgid "" +"an entity end in a parameter separator must terminate an entity referenced " +"in the same declaration" +msgstr "" +"ett entitetsslut i en parameteravskiljare måste avsluta en entitet som " +"refereras i samma deklaration" + +msgid "" +"an entity end is not allowed in a token separator that does not follow a " +"token" +msgstr "" +"ett entitetsslut är inte tillåtet i en token-avskiljare som inte kommer " +"efter ett token" + +msgid "%1 is not a valid token here" +msgstr "%1 är inget giltigt token här" + +msgid "" +"a parameter entity reference can only occur in a group where a token could " +"occur" +msgstr "" +"en referens till en parameterentitet can endast förekomma i en grupp där ett " +"token kan förekomma" + +msgid "token %1 has already occurred in this group" +msgstr "token %1 har redan förekommit i denna grupp" + +msgid "the number of tokens in a group must not exceed GRPCNT (%1)" +msgstr "antalet token i en grupp får ej överskrida GRPCNT (%1)" + +msgid "" +"an entity end in a literal must terminate an entity referenced in the same " +"literal" +msgstr "" +"ett entitetsslut i en literal måste avsluta en entitet som refererats i " +"samma literal" + +msgid "character %1 invalid: only minimum data characters allowed" +msgstr "tecknet %1 ogiltigt: endast minimumdatatecken är tillåtna" + +msgid "" +"a parameter literal in a data tag pattern must not contain a numeric " +"character reference to a non-SGML character" +msgstr "" +"en parameterliteral i en datataggmönster får ej innehålla en numerisk " +"teckenreferens till ett icke-SGML-tecken" + +msgid "" +"a parameter literal in a data tag pattern must not contain a numeric " +"character reference to a function character" +msgstr "" +"en parameterliteral i ett datataggmönster får ej innehålla en numerisk " +"teckenreferens till ett funktionstecken" + +msgid "" +"a name group is not allowed in a general entity reference in a start tag" +msgstr "" +"en namngrupp är ej tillåten i en generell entitetsreferens in en starttagg" + +msgid "a name group is not allowed in a general entity reference in the prolog" +msgstr "en namngrupp är ej tillåten i en generell entitetsreferens i prologen" + +msgid "%1 is not a function name" +msgstr "%1 är inte namnet på en funktion" + +msgid "%1 is not a character number in the document character set" +msgstr "%1 är inget teckenvärde i dokumentets teckenuppsättning" + +msgid "parameter entity %1 not defined" +msgstr "parameterentiteten %1 ej definierad" + +msgid "general entity %1 not defined and no default entity" +msgstr "den generella entiteten %1 inte definierad och ingen standardentitet" + +msgid "RNI delimiter must be followed by name start character" +msgstr "RNI-avgränsare måste följas av inledande namntecken" + +msgid "unterminated comment: found end of entity inside comment" +msgstr "icke avslutad kommentar: entitetsslut i kommentar" + +msgid "comment started here" +msgstr "kommentaren började här" + +msgid "only one type of connector should be used in a single group" +msgstr "endast en typ av sammanbindare får användas i en och samma grupp" + +msgid "%1 is not a reserved name" +msgstr "%1 är inget reserverat namn" + +msgid "%1 is not allowed as a reserved name here" +msgstr "%1 är ej tillåtet som reserverat namn här." + +msgid "" +"length of interpreted minimum literal must not exceed reference LITLEN (%1)" +msgstr "" +"längden av en interpreterad minimumliteral får ej överskrida referensvärdet " +"på LITLEN (%1)" + +msgid "" +"length of tokenized attribute value must not exceed LITLEN less NORMSEP (%1)" +msgstr "" +"längden av värde för token-attribut får ej överskrida LITLEN minus NORMSEP (%" +"1)" + +msgid "length of system identifier must not exceed LITLEN (%1)" +msgstr "längden av en systemidentifierare får ej överskrida LITLEN (%1)" + +msgid "length of interpreted parameter literal must not exceed LITLEN (%1)" +msgstr "" +"längden av en interpreterad parameterliteral får ej överskrida LITLEN (%1)" + +msgid "" +"length of interpreted parameter literal in data tag pattern must not exceed " +"DTEMPLEN (%1)" +msgstr "" +"längden av en tolkad parameterliteral i ett datataggmönster får ej " +"överskrida DTEMPLEN (%1)" + +msgid "literal is missing closing delimiter" +msgstr "avslutande avgränsare saknas för literal" + +msgid "%1 invalid: only %2 and parameter separators are allowed" +msgstr "%1 ogiltig: endast %2 och parameteravskiljare är tillåtna" + +msgid "%1 invalid: only %2 and token separators are allowed" +msgstr "%1 ogiltig: endast %2 och token-avskiljare är tillåtna" + +msgid "unknown declaration type %1" +msgstr "okänd deklarationstyp %1" + +msgid "%1 declaration not allowed in DTD subset" +msgstr "%1-deklaration ej tillåten i DTD-delmängd" + +msgid "character %1 not allowed in declaration subset" +msgstr "tecknet %1 är inte tillåtet i deklarationsdelmängd" + +msgid "end of document in DTD subset" +msgstr "dokumentet tog slut i DTD-delmängden" + +msgid "character %1 not allowed in prolog" +msgstr "tecknet %1 ej tillåtet i prologen" + +msgid "end of document in prolog" +msgstr "dokumentet tog slut i prologen" + +msgid "%1 declaration not allowed in prolog" +msgstr "deklarationen %1 ej tillåten i prolog" + +msgid "%1 used both a rank stem and generic identifier" +msgstr "%1 använde både en rangstam och generisk identifierare" + +msgid "" +"omitted tag minimization parameter can be omitted only if OMITTAG NO is " +"specified" +msgstr "" +"utelämnad taggminimeringsparameter kan endast utelämnas om OMITTAG NO är " +"angivet" + +msgid "element type %1 already defined" +msgstr "elementtypen %1 redan definierad" + +msgid "entity reference with no applicable DTD" +msgstr "entitetsreferens utan användbar DTD" + +msgid "" +"invalid comment declaration: found %1 outside comment but inside comment " +"declaration" +msgstr "" +"ogiltig kommentardeklaration: hittade %1 utanför kommentar men inuti " +"deklarationen" + +msgid "comment declaration started here" +msgstr "kommentardeklarationen började här" + +msgid "%1 declaration not allowed in instance" +msgstr "deklarationen %1 ej tillåten i instansen" + +msgid "non-SGML character not allowed in content" +msgstr "icke-SGML-tecken ej tillåtet i innehåll" + +msgid "no current rank for rank stem %1" +msgstr "ingen aktuell rang för rangstammen %1" + +msgid "duplicate attribute definition list for notation %1" +msgstr "dubbla attributdefinitionslistor för notationen %1" + +msgid "duplicate attribute definition list for element %1" +msgstr "dubbla attributdefinitionslistor för elementet %1" + +msgid "entity end not allowed in end tag" +msgstr "entitetsslut ej tillåtet i sluttag" + +msgid "character %1 not allowed in end tag" +msgstr "tecknet %1 ej tillåtet i sluttag" + +msgid "%1 invalid: only S separators and TAGC allowed here" +msgstr "%1 ogiltig: endast S-avskiljare och TAGC är tillåtna här" + +msgid "character data is not allowed here" +msgstr "teckendata ej tillåtet här" + +msgid "document type does not allow element %1 here" +msgstr "dokumenttypen tillåter inte elementet %1 här" + +msgid "" +"document type does not allow element %1 here; missing one of %2 start-tag" +msgstr "" +"dokumenttypen tillåter ej elementet %1 här; en av starttaggarna %2 saknas" + +msgid "" +"document type does not allow element %1 here; assuming missing %2 start-tag" +msgstr "" +"dokumenttypen tillåter ej elementet %1 här; antar att starttaggen %1 saknas" + +msgid "no start tag specified for implied empty element %1" +msgstr "ingen starttagg angiven för implicit tomt element %1" + +msgid "end tag for %1 omitted, but its declaration does not permit this" +msgstr "sluttagg till %1 utelämnad, men detta tillåts ej av deklarationen" + +msgid "start tag was here" +msgstr "starttaggen var här" + +msgid "end tag for %1 omitted, but OMITTAG NO was specified" +msgstr "sluttag till %1 utelämnad, men OMITTAG NO angavs" + +msgid "start tag omitted for element %1 with declared content" +msgstr "starttagg utelämnad för elementet %1 med deklarerat innehåll" + +msgid "end tag for %1 which is not finished" +msgstr "sluttagg för %1, som ej är klar" + +msgid "start tag for %1 omitted, but its declaration does not permit this" +msgstr "starttagg för %1 utelämnad, men deklarationen tillåter ej detta" + +msgid "number of open elements exceeds TAGLVL (%1)" +msgstr "antal öppna element överskrider TAGLVL (%1)" + +msgid "element %1 undefined" +msgstr "elementet %1 odefinierat" + +msgid "empty end tag but no open elements" +msgstr "tom sluttag men inga öppna element" + +msgid "%1 not finished but containing element ended" +msgstr "%1 ej avslutat, men det innehållande elementet avslutades" + +msgid "end tag for element %1 which is not open" +msgstr "sluttagg för elementet %1, som ej är öppet" + +msgid "internal parameter entity %1 cannot be CDATA or SDATA" +msgstr "intern parameterentitet %1 kan inte vara CDATA eller SDATA" + +msgid "character %1 not allowed in attribute specification list" +msgstr "tecknet %1 är ej tillåtet i attributsspecifikationslista" + +msgid "" +"an attribute value must be a literal unless it contains only name characters" +msgstr "" +"ett attributväde måste vara en literal, såvida det inte innehåller endast " +"namntecken" + +msgid "" +"entity end not allowed in attribute specification list except in attribute " +"value literal" +msgstr "" +"entitetsslut ej tillåtet i attributspecifikationslista utom i " +"attributvärdesliteral" + +msgid "external parameter entity %1 cannot be CDATA, SDATA, NDATA or SUBDOC" +msgstr "" +"den externa parameterentiteten %1 kan ej vara av typ CDATA, SDATA, NDATA " +"eller SUBDOC" + +msgid "duplicate declaration of entity %1" +msgstr "dubbla deklarationer av entiteten %1" + +msgid "duplicate declaration of parameter entity %1" +msgstr "dubbla deklarationer av parameterentiteten %1" + +msgid "" +"a reference to a PI entity is allowed only in a context where a processing " +"instruction could occur" +msgstr "" +"en referens till en PI-entitet är endast tillåten där en processinstruktion " +"kan förekomma" + +msgid "" +"a reference to a CDATA or SDATA entity is allowed only in a context where a " +"data character could occur" +msgstr "" +"en referens till en CDATA- eller SDATA-entitet är endast tillåten där ett " +"datatecken kan förekomma" + +msgid "" +"a reference to a subdocument entity or external data entity is allowed only " +"in a context where a data character could occur" +msgstr "" +"en referens till en subdokumententitet eller extern dataentitet är endast " +"tillåten där ett datatecken kan förekomma" + +msgid "" +"a reference to a subdocument entity or external data entity is not allowed " +"in replaceable character data" +msgstr "" +"en referens till subdokumententitet eller extern dataentitet är ej tillåten " +"i ersättningsbar teckendata" + +msgid "the number of open entities cannot exceed ENTLVL (%1)" +msgstr "antalet öppna entiteter kan ej överskrida ENTLVL (%1)" + +msgid "a reference to a PI entity is not allowed in replaceable character data" +msgstr "en referens till en PI-entitet i ersättningsbar teckendata" + +msgid "entity %1 is already open" +msgstr "entiteten %1 är rdean öppen" + +msgid "short reference map %1 not defined" +msgstr "kortreferensmappen %1 ej definierad" + +msgid "short reference map in DTD must specify associated element type" +msgstr "en kortreferensmapp i en DDTD måste ange associerad elementtyp" + +msgid "" +"short reference map in document instance cannot specify associated element " +"type" +msgstr "" +"en kortreferensmapp i dokumentinstansen får ej ange associerad elementtyp" + +msgid "short reference map %1 for element %2 not defined in DTD" +msgstr "kortreferensmappen %1 för elementet %2 ej definierad i DTD:n" + +msgid "%1 is not a short reference delimiter" +msgstr "%1 är ingen kortreferensavgränsare" + +msgid "short reference delimiter %1 already mapped in this declaration" +msgstr "kortreferensavgränsaren %1 är redan mappad i denna deklaration" + +msgid "no document element" +msgstr "inget dokumentelement" + +msgid "entity end not allowed in processing instruction" +msgstr "entitetsslut inte tillåtet i processinstruktion" + +msgid "length of processing instruction must not exceed PILEN (%1)" +msgstr "längen av en processinstruktion får ej överskrida PILEN (%1)" + +msgid "missing PIC delimiter" +msgstr "PIC-avgränsare saknas" + +msgid "an attribute specification must start with a name or name token" +msgstr "en attributspecifikation måste inledas med ett namn eller namn-token" + +msgid "%1 is not a member of a group specified for any attribute" +msgstr "%1 är en medlem av en grupp angiven för något attribut" + +msgid "" +"the name and VI delimiter can be omitted from an attribute specification " +"only if SHORTTAG YES is specified" +msgstr "" +"namnet och VI-avgränsaren kan utelämnas vid en attributspecifikation endast " +"då SHORTTAG YES är angivet" + +msgid "there is no attribute %1" +msgstr "attributet %1 finns inte" + +msgid "" +"an attribute value specification must start with a literal or a name " +"character" +msgstr "" +"specifikationen av ett attributvärde måste inledas med en literal eller ett " +"namntecken" + +msgid "length of name token must not exceed NAMELEN (%1)" +msgstr "längden på ett namn-token får ej överskrida NAMELEN (%1)" + +msgid "" +"an attribute value literal can occur in an attribute specification list only " +"after a VI delimiter" +msgstr "" +"en attributvärdesliteral får förekomma i en attributspecifikation endast " +"efter en VI-avgränsare" + +msgid "duplicate specification of attribute %1" +msgstr "dubbla specifikationer av attributet %1" + +msgid "duplicate definition of attribute %1" +msgstr "dubbla definitioner av attributet %1" + +msgid "" +"data attribute specification must be omitted if attribute specification list " +"is empty" +msgstr "" +"specifikation av dataattribut måste utelämnas om " +"attributspecifikationslistan är tom" + +msgid "marked section end not in marked section declaration" +msgstr "slut på markerat avsnitt utanför deklaration av markerat avsnitt" + +msgid "number of open marked sections must not exceed TAGLVL (%1)" +msgstr "antalet öppna \" not allowed in XML" +msgstr "processinstruktion som innehåller \"?>\" ej tillåtet i XML" + +msgid "XML requires processing instructions to start with a name" +msgstr "XML kräver att processinstruktioner inleds med ett namn" + +msgid "external data entity %1 is CDATA or SDATA, but XML allows only NDATA" +msgstr "" +"den externa dataentiteten %1 är av typen CDATA eller SDATA, men XML tillåter " +"endast NDATA" + +msgid "attributes were defined for notation %1; not allowed in XML" +msgstr "" +"attribut var definierade för notationen %1, vilket ej är tillåtet i XML" + +msgid "cannot convert formal system identifier %1 to URL" +msgstr "kan inte omvandla den formella systemidentifieraren %1 till en URL" + +#, fuzzy +msgid "cannot open output file %1" +msgstr "kan inte öppna utdatafilen %1 (%2)" + +#, fuzzy +msgid "missing system ID for entity %1" +msgstr "Skriv ut verksam systemidentifierare för entiteten %1." + +#, fuzzy +msgid "unexpected entity type for entity named %1" +msgstr "Skriv ut entiteten med namnet %1." + +#, fuzzy +msgid "cannot create directory %1" +msgstr "kan inte skapa socket (%1)" + +msgid "already wrote 99 versions of %1; will not overwrite" +msgstr "" + +msgid "already wrote output file %1; will not overwrite" +msgstr "" + +msgid "removing leading slashes from output filename %1" +msgstr "" + +msgid "path %1 outside output directory" +msgstr "" + +msgid "Output a document type declaration." +msgstr "Mata ut en dokumenttypsdeklaration." + +msgid "Output marked sections." +msgstr "Mata ut märkt avsnitt." + +msgid "Output comments." +msgstr "Mata ut kommentarer." + +msgid "Raw output." +msgstr "Rå utdata." + +msgid "%1 prints on the standard output a normalized document instance" +msgstr "" + +msgid "for the SGML document contained in the concatenation of the entities" +msgstr "" + +msgid "with system identifiers SYSID..." +msgstr "" + +msgid "Print the effective system id for the public id %1." +msgstr "Skriv verksam systemidentifierare för den publika identifieraren %1." + +msgid "Print the effective system id for system id %1." +msgstr "Skriv verksam systemidentifierare för systemidentifieraren %1." + +msgid "Print the effective system id for parameter entity %1." +msgstr "Skriv verksam systemidentifierare för parameterentiteten %1." + +msgid "Print the effective system id for the doctype %1." +msgstr "Skriv verksam systemidentifierare för doctype %1." + +msgid "Print the effective system id for the linktype %1." +msgstr "Skriv ut verksam systemidentifierare för länktypen %1." + +msgid "Print the effective system id for entity %1." +msgstr "Skriv ut verksam systemidentifierare för entiteten %1." + +msgid "Print the effective system id for notation %1." +msgstr "Skriv ut verksam systemidentifierare för notationen %1." + +msgid "Print the effective system id for the SGML declaration for doctype %1." +msgstr "" +"Skriv ut verksam systemidentifierare för SGML-deklarationen för doctype %1." + +msgid "%1 prints effective system identifiers found in the catalogs on the" +msgstr "%1 skriver ut verksamma systemidentifierare som finns i katalogerna på" + +msgid "" +"standard output. It doesn't check that the system identifiers correspond" +msgstr "standard ut. Kontroll sker ej huruvida systemidentifierarna motsvarar" + +msgid "" +"to actual files. The return value is 0 if the last system identifier was" +msgstr "befintliga filer. Returvärdet är 0 om den sista systemidentifieraren" + +msgid "successfully created and 1 otherwise." +msgstr "kunde skapas och 1 annars." + +msgid "LITERAL" +msgstr "LITERAL" + +msgid "non-SGML" +msgstr "icke-SGML" + +msgid "raw" +msgstr "rå" + +msgid "%1 prints the concatenation of the entities with system identifiers" +msgstr "%1 slår samman och skriver ut entiteterna med systemidentifierarna " + +msgid "SYSID... on the standard output" +msgstr "SYSID... på standard ut." + +#~ msgid "invalid value %1 for ArcIndr architectural support attribute" +#~ msgstr "ogiltigt värde %1 för arkitekturstödsattributet ArcIndr" diff --git a/po/tr.gmo b/po/tr.gmo new file mode 100644 index 0000000000000000000000000000000000000000..bae3e486988cc98861a1d477a36d8b4aebef1dcb GIT binary patch literal 91686 zcmc${34EPZwf_G`1qDRr8RSqXw99pE zqJp!c0!}!93@V@(CtASkjPpgs>lNjy2;S?6f(uS{@$Lqd)nCCG;EdB8o&_Gs^CnR7Zvu}6 z9{^7T|K^{MU6>^EcrJsdgYN|o0Urekl02(5N#=u#K&5vXcmVi8@KEsc;7Q;k{{8+` zM&IXx)4}DS$~6KW4_*&;f!_v4!6O&D{I3TO=J}i8Oz?4V7P#+{B$);-28oia1NoGE z6jb?s>z|w3lH?ekF9LT3ZvyuNZv*!P9|ZRR9|oTVJ`Og4Pl6|a{{!v>&V&fh2Iql? zfhT|}$6D}c@JjGN@J^7XPQDKA4n7Jh{Xc@D%X62y^o{~)nq&^B`VE6B_ZvXbH7I;;1xW-5?l>FXO*k>x!?{wUkZv(E(ev~P2g_et)S}n zIZ*xoTj1{CFF>`^pFq)j@3UOLoC8khdBEeFJ>CPVJdc1%r>WER`+dO~Jg)?m|0ST( zesNL7+k{PP<@$&qV8@#$AUSU1@n;w=T&g0NO{69}s&kAsST{MnA)SAlDI{xV3D zCIudb!HUP9f-mNI)j7xz@D{KK+-t2%|6)*b_4D8caQ?Zj93KE%dHxkR4?LPgW`pO0 z;`eL8BKR#3mP_WoBuVk{iDQ7l11+aB}o@;E6nc5>z`r4$cQ>QfNK* zfqK3PEPy`-7lZ!*)el=C(mr4boC978wt}~U1@KAmMd0pau6!4OR5{rQQk3MoAS{p^ z3sDsRwcvr^XTbx&?}7V+Pl5}<=apPPYX?u@`IX>Y@E%a{e*>Nb9zr7?3$6i`?=|3F z;Fm$s<;S4%`2%<;xZ8Rs2aW+nuk%5DzYIJTd?zS6{J`U$FoEc{0vrdg1aAS8vg4Oq zL4E%t*aEg(=;-xQa2n5-d;B1HJkJk;kRth~$DV%2hYx_TdeS`LqhFrh6415jG-vDm}yGgVF{tX9oA$TXa4E#Mv)a0}gWC3^^cn>&OrA@#iM;-s%3?9StqhJfT_n0f+Vo>=Ef=7eb z`1kjK3jbf=YH-hsljH^922k|e=$~%~)s9~P)!sh<)oy!ibmcq-JeTKT@C@*);ETY$ zFLC^En#W5)<$pIQdG>Q~XK)W1^>FZDQ1KUnJAkhPPXpfso&=JehxK*hfq)cc3Q#o)o0 zIeJ|H?#=VH;9=m0K+*d_@D%V*pu!*fa%cZs0*ddi1Vxt*gGYf6fvWdY;0fR%uW+fBl z=x{ZtaQA@=z~{c!_d8H}Y7m?Q-UO}&zXPrTXTHvTzZ~3y=TC!e;Dca0xa-x9-fO@k zd43-#dfgAc2>c_s6fC^nwf_cC^|%r|3j7$j6Zma#XYj}15#VE>>iPU@98Lp|P*-1TF->4z_?Vc!#6^DWKYOEvWKe z4$cO*fCqzr1ZRMIzSGfp0jPFf4(p}7T%RyK%*$nOmc3kiH>O4?yIJ^=0l z{t|o%_`jg)vGP5RK9_)J^L#(JKX~waojrUU_yV5igS&$5;JM%$Z~=HHsP=gR+#M{u z&y`~isOMFn(kp^{gPTD0k2iq_fbRyM1%3*g3*HT?yuSwb1b4o{@!KJw=(rFpfa^ff z_bTuh@YA69{TJX&@F`H`JN!oX{d`dT`6h4;co!)8z2GLt4=)5&o-;l6f%ABNIk*RS zC#ZJV0-gc>2%H8U@qWh_OTp*y+y^TEK~VDI9iZs_Q}8_Sc2-4DR}2rypJps(l{< z#s4#Ic6MJk*vIpmz~_R006W3IgX%{sKjQf5CQ$8jFL)C8BzOWi^P^5)6+zMajo|U% zS3s4s>0_>5yMdzLJa9+wOmGEw7I+4D1E_ZVZ}3oX|Bt)p6G72`1E_j!0t?{hz!!m! zfGW>Ux47_&!9#eif@9!y;BxS}w>o>g8|>iuBj8H#&;EJoC!G9#JGg}RH-e{wzW|>N z&brO<>1bCcqyoIyd1os3Aqm*$@6|+ar}QOsPeuNRD0bCD*l7uq2NEk!@w7Q z)%D|rU^CAp@FMUnp!i~kuQ|E$W>ES43{<)YeBJfuW#Ef=z7$mXKMbmUz6UD&9^Y{J zwu7hf{7SG5{30ki@AyrZ{-L1wv;r!}OoBJJSM_&f&{e$2c z;6C4VcEEX{$~Oe=0lv}Wjo>ak-w8es{5+_3eh`#A+TnXn{_X}&=Xo!19(WQcz8(Zs z&Ramy={w+F;N#%lVDf!e?tQ@L@^~63K3ocl?_UXafgb?pf`10p?l1a*^VgjTj`6%4 zRK4#5)en9O9ti#o+yUJ8hwlBspz3)d2)iX~zeo*wg8Jq!r15`Ww89W+He(dbwS)l6Q4XS<@dAt_fm*?9+mG=SgAn?#A;P zQ1xFAE&?l{;@<%-0lx)~g8TfZlY>`-hw}V5sPvxyGsl+&Q1qS)?hY;l#Ybm>s^>az zPw+BO>0b+~-nW4(!T$hfgERlj)&E?undhrP_1Akq<@@$Vi_deoKUVo>S64HTU}4T>&Lf=7V=0uKa__=ThMX`tG@3O0f7 z2G0lI(6_m8=8+Xuh_p8o+Z1uy(>=XbsnJe%hi z{0bizSOPBve*&%n*Z$hYy8~3ZFZ_-3Ukrn<<@w*imxG;;J2~?ZxQyq6f9vGZ22gbQ z0H|{QCwLJ!^9d){t_Roi{3mcNc;1t)-1mSN^L+5{yc`GBA9wg4SMPH`@$tJr(eKmX zBJg2Q{CUX#I=<-y#SiO1(SICNJHHFu1a1M_z|(&37^DHLxE%<k9S!RP+P)pHSeFwf_K%J)+66!1pySnv^W9=O+24wr&+6%ITJ{Dgo1-~RdFzdE^h zHh2Kv2f%6ImEcj}N5MJZL!k0~_TL;9K+)?IP;|Hg6urI-s=qw{@5nlE8Te`N>!AAG z75{L0>pP&*-R+-Fj<$Ln21UOcK-K2~Q2hHhkLUl3HspCT_!96%^olouSAk>Teoalr zS8o7&c>Wi79N6=$CX?6i1Xa!l!BfFqp6$Y&395Xzf*ZkqfH#9<&uOyq9I```@y!zO zVBYtEL*V70_~U=T)!>OcHd*_<5xkM-zk=@tuYYb+G6J6Tye8wHTfk19p8(ZftvfXt zpNxUx&+EbC!G8m#PyQDay$;>E$@=YC;0t(u7kDQ45pYlN_uzrxj=Q+}9R{kr7l5kw zW#IYXm%tU^Vb5 zk0-yN$@u3rpz3og*bIIhd@=Ypup3;nTa)SeTfmcf{spM^pSF9G$>(-Z<=6zOy>0|m zzMp~$H+>IRujQc9yB0hf`~@iboxEq0$>}O6x&2!381Q4D==QM3>3cc)4TA;VUjZHs zeh{1iehXANo&uHbp?f!(o;e#-e;x$)0^b3OJ|71a{>xwid;(Pe+HIdEv!`czTnZ|D z$v?je6uoW)#ZO-Z)xY=M*U_gNl-#-wYys~D*MYwQMc2;#n#?Z!1ZeyPp2Pdr{hQ4G ze>W(-cPF?r_;YXr_ynkY)*RsY|81c7Zr1}H9p-~-?{%Q^eLpBZdk8!Td>j;ApLdWe z|B2vkJf8#Z3vK`v{uQ9w?cJc{*O$Qk!C!)EpMQbk^TQ5qvhi;hxD(GC!F|BXLDBUc z;NIZpJboKIi|5Bc@%c%IIC@_Oo}}=g_~#)|e7^e&-TT#`(tDGC{xm54@g%qkoO`I_ zrz=45*TdlM;4uZ)9t*+cJYNQi&R+o!2M<5Y(PJs7_Sy)(1bjaz`T8$V^`ADa$@pU_ zD0*!G)sHU$MUU5ms^_g9?*otJ`3K-!@cD;3{y7a4-@F7=JG=~3xLZK+-OoUk>u;dR zkt3RHoO>2H%KLjk(P7SX7k&+>cDV@L54;+betJJBdAiq;P7bw$;-~9C(f>YB{IvH` zj?XUxMgQwTrSm;d^!P2P`tLu($)8g|@zu*gmH$?-1N;f7c9=EO_4~^}@#$tz{iEqc zPX4a}FXj0$Q15$>cJ=%W*vj*7K+&stR+FYklM6t}qpyHt;9o%TMWwkZseqpZWgksz zasBH;@B*G60>!^`k8$7Ef|B1ifujHSK=Iih!Ij{#vz>f2#SB3<~jN<0oCuyp!oFF z;5)&GK(+6M$2OV$dIczcdmE^Bx*L1}_)Spl^a!{M`0V2x-|PlTK5POn0B;6mw>s1}gk*py>5oP<;J+P<(g5NiN(HQ2k&dD0+VsRKNQfD0=?^>;wz*UHB>} zzWgwF5%_&j;m=s$(tRRfBR2$_4*!o2+w~5Wv?A@n(Lpfpz_%WN)Frss=mJjcLn!f z==AxKV3Fr$Q1yBfsPvm!T|ejt2YG%NTmzo5$no8c;9{PC0;<0pw%E1vwO}vLH-Ik& zpS{G@?|g6}&#wa2?wi2{;9hO6d@I2-d44sh_umB7&byr6loY^&!F|9}K$X7>RDFt| z`srIhwd0RKwfA02U4J+Ul>X@fRo-z>eET_2bpAD{cn6%}`2Q?W`BcG;;Ojt@x2e6! z{4ZyL%Xz*9JPUjZ6rU_R)0Ovqp!(-+pvv_Za0hVVGRLQ28vI6L8bQ=P;%+(py={jQ2f1D zhb#AKpz8Bxa2fbhQ1;EyE1f;l1D?+F#U4KgiqD_3%E_6Tp!jD1+!6c+*adzMd@eZi zEJy!2;Hf;H0gC=tfiuBRflB`oQ2ldyrz_7YP~~|qxHtGKumJwke?PRVDY>5K0Z{or zue-_SM=k{S;Q5=N;{Ob60-IO6_BaMq`)mYdZ+;PM1OEXo0T-X`==EAqeE1Pi{pwLr za{u{joF1JA%5GZ&ioZrd)$jG7`1UKH^8FF0{__*?3UJvu?)x{vU3mUaQ2qRI@WtSw zwN4+s4}3n)d!Ot37x+@1uLZ@gPk`OvkuP>~_fk;&{TQhFAN`W10J^)Hi{s|P{?^Ja8ALX$fRQ!Ih0A2+u-H(8(=g-08z=L|6d^igfAHN3_zuX6& z2mTgRKUm)D`p;`X@&Bhly?+8!J0I2Oz7K+@@%$c-KL+2-^T8!wKT!PqD5&!M22^`? zJ`35vb)_Eo`w}?n@1Mu}KlAPeuFd}4J9roVXae(b%<|v#{^MLKN0Sdnw@KceiE|m> z$U0e)c{h{i_wf8_k4pEH5hB2qXDA%)S0r5dLFaJ8|C+o&zG%lKZ*eF}1>inhr*Z!Y@JjIO7804w^Y#9IH{Sm{*A`v=T|4)Z z>3`z7)V~Yx6gOw_y$`ICPWJD;yw~6P;Jx5yxDF-E@4y#u>FLPDA(g$`n!$m6Oc;1csH9r1E|Lu$5t9ZAPYcKz;M7Wpp{`-o|-v_w=G}rIBF6P?cUMH^uKTMqe z;oXkhOU{1Wr|}Wq>F<87JGifc?*yd-_w`{gMQki3`Ts56Xw0%a@wlKTh2U5RsnkJrlcv;93P&;C9SK8L%0uK(rw64wg| z^IP8U<->f0=QnbH5SR4ZF)ZZ)e7~j9;Q+addyKGb^Jlr9#r^8{Y4AV6tGV>| zJ-)pbe3lP?5BERe`Z({yUxAxX@w|WL-Dci>#|QWjac|;&9(WH|k5B8{KK%E=n|b$a zAASz^fA!y<^zQ`!&UGN~Wpn87A;O)*vuvk_eE2osyLrBsZ?E8bz`y@B_%=o2?}uEc zaDA2U-MoJlR}atU^1LJWFXq0L`(wC%#Pj>XSMpAO|IYJHT)T3Q865uxxxbU^Wtn&H z@%I-K>K4-2h38Ya{)6X7xGLO#1>BuWe{Ed9^KoVo{&cSYu`k#++&6Q*i|=3d?*xbQ z{65~#;r`j&AI-h~t^;r7`YiXd@%P}`m+Rkr`d5SR;aT?RbGSdp$2*bxFK~U6_XXa) zn(HlGpW&VUj`QJkuiN?l`7Tg4n*L7YI*jLUa~(~*0@wb$`wMs+*A2Wcab3vuYu>+{ zOMmZjkbIUf;cq;1-|z45@%T~VA4AVcu^bZ1|ha^QBz7a(#yPJNj=63GhMg|HS)ixn_h2;2pf* zf$J>pNBFkX$LSODTmc^jPxo=I;9h^%avj9AiR*gay^U)v_b2)I+}hu7e0V*yaNogq z+5G>({RsFno(}=P%=1q{{q4ZD&hD@gcz-zeKLMWyo=W)daDN2%4{`mCOMe=#yp!uL zzLg1cE!W4m{}tB@xz6C*?cj}EALYJ`zv|Bz{lm4&5H=H;X07(WWrpi7yKPTxLv@tyu00}{Td&4jOPpZwu0+1u2=H> zbH44(^$VUq2Y!;PoBJF2c0BlUu$gzO^qs4j>&3jgnRhpH|3|KqxPL3CzaMaYL2-Gf zzvpnTzw^1S;(i=_p0T$_1~>EkRxbU`bb1{_(jx4nHndOerttH2_73hzgK*!{qzyn6%h z4&oZ;n#-lX0SC#Cz?}&b{_gYNH|jmt-dr!?-Cw}(aV_T3-^aLK#x;X)J9Eueyu({N z7cXAf(OoExj*gUj#zsqp;=o9$*f(CN4wrh%>&m6R=s*Vke7D@x9!BSqmyhhLgk7mxDunr2+T4FuI{QTId@pRh6eJS7+O*!ccGT z*vLq!(pw^xzH)DIbZ8`-M5R<6r3{&r;#Z}!t~^p5RsPuk)8`akymD1{`^t`&7P{7U zwJ&LDX-Rk)Xf{?Q#bUKkEL6vOs-xvm5wubqEGbZLv7&@~N|d-n#fJxqy{^`xSCKdC zO0K*Rr8IIeNhvB3dW$4nC{rAgCXEfHk%>Y-a~ahZa%kO@@*b*OTpAgz7P^+MSgr;> zXT|asTC^}+9I4Vo#Y$h{;^IKLuQ1eqn-Ak+;N_ENB1YEvqiUG@&>Sz&;+DgX5BSQm2>lLV6 zvC7Ub3{?ik3)AOX{UHVIstQ$0x`#0#j4SsxMjBBcv9t9ZB>MlN1FCV07s^j#d!9ux@=99dDm7^@7@?&%WHA^M)I`jx7bfQvW5e$0Kn8f<_rYWxL zyAatceKQ2z)8;o-f}D2BLwr&!^b8a${gY;DHOx>oP0#ULgMzwFndwf}a$acu3RZsH$Y?5wdg!raZHR&ts z!{y$Lh*NmfT-EHGxycMK<_pD<^`^$mj+vRh9~h!c1kSt~ELE$;^`)7~tODk4>*-56 zbBb>SCNGbukxR(gl1f*gG8V3M3H4Ln)ugp!i8qc~JC`P{!^1Rwp)@i=fAtxlWQSZ| zo<64~X&vcZ0{KrDZ#W8hKItpLR%AyTp_+=#=uQH=+R$GpL1?yFR+c3z7q4E?*3m7} zj*Pb?i?P<0uUu-6BD6DE28M=)Ib=naoYU&$AdV$cg4x;Gc6vs*EneN(sT8C7NE8wM zQ&?9jj*d|TF?4xw*x8Ek_>%U{w#D5mJJ%*s^?hXwCPMfw5&J{do{*&#ImnDnlb(vM zsKIz}<_2;A%Rp(vtFY0ClR`a3+9HHByZ0u&Z!q(mEHTo`0PX|6EDT7Rqi;5nv}!c1y=!IR#1l_AY5ts(PCULagG6RdQxR)FtXZ>W=Cq`(QtUzO z_Y_BaH<;y1#_rX|;)qEZaZ%eP!|E5&V6Cug<~$clw5 zQkj(!a?T7LxS;|&AV7_G?7`Pb;j>imlEzV9q+3z!H=%F+gakxKKR_#BPtn*d$%>)A z@;b+|So%?7_fj|2O2S7R)6u%3&HfYX>7gqX2xcTE9c|ssNbMdnSuYJRGTIEESOLp} zgP42>bxi1WLtaVtjAM}u$gt{Dz=`5}Im&qCjFp|;5+>@BWY*Tvx@dW!eZ`8lB|O2) zCU2{SwiTny6P{r|utY%oKD!q)di0`9DgoKEs zK5HSLk-oX%OG~m!L$<=kkr|q}zG^hsdKE+-H(Mfu46Bq1@0*edo~U4l#Lwn5GoeT%MH7{>QoHZS-1`Jn2%qqG+0X zX^?O~1cM?7;`2t-cMxqYnePm!YRLqP}8sbhdVN z2lma{wOux_9U3-4hx(J10gk5d^^{nXy)ZtjaCqzTxkBb}Di=GAnM~8y-=0%hn&IFCnH8wnq$$~j-YN;jZMqQeBCe<@Z_u5r$ zNjI&gB&Ibts|J{y);6XGY(QVGi2f$xTawj_J60?{qqWn?5OXcZ=JP%qv|^?s!FtPm z9E;r5-PygZkrgLd-MPHbiFF}P6Vu3Cv6r%ps#F(;3GcBstTp_gFIim)LW7UKYBPE_ zlzRKE)`%+Oa@6ioI53KpvEl%tYqdsv*11=sSbKU$*O8l%B+ygu{Xol@UeEYCFtT9S z24N+TF}QsR)J@hTl9krYi+#mmr$ia}Zr5nR$&7OnnRd}af*E?@0hLGsb7ah!7owe$ z^ft(5&`#$|iiHUbJ1Kz&zfTcBg zLMZSjd_1H z3K?eL$w0~_qFM*t4r3xAv0YN(L`MnpIP{2&UptDg99f?E3@byGX6yfrGfc@$M~ZGH z@A2@)2vlcIjqh1o&UeCEYc4x+WfgWNB(__ZIexs=PhxqWi8`j~txHDnFFF=9g2!U> zIm?SRbY&>MElD?)THBCCjm+`$cjhihORNgeyfsCwpFPkBQNA1-k6W#`r7qh-rfti6 zTPj)Wz#l~GNhxGHs#vJD)zzWRg(epRvbknT0=stGQtdp zN$TbE%DP>0ey}NKlA~;(8N~I%C>C1D`7Y!YM_O$o1bq!3DFY7`+J}tYG_PrVHjR=@ z^9}p|7es&L&dcXrT025R?^7Pz+|e;C%=rs34X}z894R-;7ts}4bK#qz-IEr z#UxoNg5?}16l%Okhz7URB)ERlK8C4F$2iLT3Cx1{S;Zs`U{M%hF=b>uBSTa(sGVtp z2*|E1fwN;T-dY0G!3HOpDArAa+c!>L98Yw zE2D87sxw3BOrJATQe!K=>sT^B3dklNYH5nC-SD^a0xcdM%5TEE=iEf z2#TR7$144mp^cTq#)X<+i37hF*>__%y3|As2A7RXtGG!RTWY8Yj3hRX8JWiXj7m`+ z#JI+)N7Z7Ao>4ERh?j|p>vnxwo`Sq|tCyroowLC?51doLv!ah7y`4HF$l5aXTENea zb*x1A_7#@5cPvY%$Z&F#r+BY-K(owwbzGP+eeTQ{fT_cBWh`A1MY-@tTwET)z31kd z>Vmo%-^}uj;JKSLuGTPR8YwCY5!^c@Xta=2+M2BJu^Ah6T5H*Pu~|bU-2$oYNnA9d zv*BiUc4L~Yrl__z{jkJCqLku~Rp??v>noaUuT68pE)6Xp48D{Y1Hq1}&3f=^K2?Xr zd^GQz*u2a@%TK+afHN4bWY){q$&K!9F-h%OBZ^e-kdMtZ#RT#l1z|R|d~2KzQ;wJG zg;UEaBd4cWxYSbd#?F+B=jRMeD5R0xdQZ2)!}o4%`>agi(aryu*LAdv_s3Vx{HE|o zwlCW|dEXkn&&z;ZGWk!rB%L{e0@WgpNu((04HtX0f`z<;4H9jc^lQCnPJ0|Nw|#Bj z)}z-LWpVVBOcFIr{pUx86Gg4F1T`LWiaV>OtoKDFrP{iP)iR=C9Ugq<`jAD69DAGW z!tA0iV~^@kA#gz)>^!Jr;*gI zE39bZCehPIv&iXGnO1K3^~sn*)q=SV($J8*#ukefKv+oNXRl=Y<_l00F>4q5dH>1s z(O^M-(#gVj7ib#97|-)Z8137NjWkHAGmChR*K4H_3M0R=FD#3}G#?mh%FDxmq zFOP~`h2 zungOo`jm=ZmtoZ`b0_7ZjS$OcONvY_+V+Q(FX{iL0tZV)Et#5S3pLG5r>>F?{)5bF z9AFuV8q;o2lr(*4C=C~w-!+_{Kr{O~aDAo+*sN1bKF&FZk#(*s_PRN$`p|ytE3s{( zQkr{$bn)uRb(>NrX0*CvbywSxnrJC6ZDqlKTBbBg&LmIe1jjbZnMrA?H@GnMPt}DZh3RT+@-ek+=YP3Dc{9_Hu`ew zu*sG%VQY{XKxC+O0GdeFDlB#S98bZ%JX3mG$lV|T^I0QC@#wKeje=m%%Q=&>rAs0% z(y+7?$ZcJsvc>rI+-@u_xz~OaFA2%Q+d5u(?Tlz*tw^f=G6`b;EAbeb1!RP%S7ChVT+g*Uc@+B~^ z&w|v7nIF^V;ZumgSs6WAw%r4THFy|?HnJGhoDbF7gjw1$G{6#Ob~~6; z&W%@NLUo^6`CcflXZuBA0B^@gHq*MW-n-}AR9gut4-AB|xkYnp&EyyL*oZXIC?L%A zgay{DN1rIDIm_vMrNLqLFy)7g?h&J5;<-&px14--%cCtFO_aOIhxo`23Rbk^xJlo~ zP#P9Shj(f)l0n|%Ek9zC%@Zks3tJ1zg3of&uM!>WSdGIT6;s$+1hsYvI}g}v(B8e) z*7>>wVBM$)YUrJs6)x5+7rVW!YZhzGb+MPhLzfJ)j+Ja(V4tWjc{XWt|D^4cCcU+U zvUPSV{~?z5?xgAAvI*qbdTsnB3<~UbU)0B)u()Brh9cWu4#l<3MrWjv>fB=z`eWKb zDV>oIo9grEt*QwfR+$np+@_S1ZWKeK0$GK;J`+YGlDq=+8U_I(24pmn`a6Ra<*awM z7$vn%-#i;z!&X2=zlDK*v%XZNCGiALHu5fx;S zd!3{$VkQvF{xUm8wJ%INu~18DhI|vU%EC zWo?zqzf^PDrp!z_F+`So)Cvp2t`A9JfXO8XiCf6Nff69gNLjd+5 z*_yjiH^Z4SX(|+|iPI2al$dD~|Hb=0&3t8mlw0hb2641DWn*R{?R`df_bN?(F?jLe zG}sICgbf2=9?E`63!3X_K9x+nKuh{X6riNZ>Zx$JfeK#pHFKgtgRkC$>%aI8OPZcG zN!^FAA}0SKvnMi^%qQm7D5Y=RmQ71o2B10t8phkJ&Ox?vMZ4|KVv;!LulB(y{5Wm{-^8MeO-?P37*faWjry*r#?fC6f$aYZv;lTu@4#bpvX`tZkc(ht=iH z7f*b1&CoDW4ofpOPCKMSi)C&VK6N9?&Yv~efCo;+LCY3wc6{dc)72!IilET;wh+Mg zhv+rR#uER9`4S2hSt3w1GshF=rEW?d zlvU8_iWRN;^x@RagAy=f(`}T|G7#C2G_noA^Kaqk3TuG0S^;AtH&XWjeE?D*Kt2&a zpOm4?t~oaL67&vH>U>~@kVX|Q|T zy~;Zq!w5F*d6ZV2C%Pk&{9?7(U9G^trZ2T?|Lzp zl*}SQ=$JC&Pz*H^+Deu?5<@8?%gz5S+eA*lOgb)?e2kpU6Nij7rh{36`H%=fINc1f z2Ia_y4Wq~@rJ5RCoV_5UfwAC#2&{I4JiIWcdB#1tw0m(!xAP;0o~~NkfhS3NCK75) zQzqd^HGc>IBr`=Vk<&;kn*>Sl=7}q!CU#<STN-IWSej5cfyEEVV|HgvnLB6x5qfq1^2I4;E8RCt(TASG(4Ro5QjT?`&g5S}J3P2`3laDziG7}12U zw)J)bLm`A&-Pr+!=NHfqBkX)Cmj?P`{O~P=)oSW0>#&&UiARS`A#mv4!POU%3(1EL zKW+ZBy42#gv60IBX<9nEu6#)hRSbvsNOm_5`c0MbbAy57eAmy#R4hxYQV%4BTiGP> zM^DJU%JB455>0K??N2^P?K;amP|f_Cls^{8SvuxnjqhZ2*xL6@I1MC_jq!W|DG!F= z*8156gnj-@8_&(A65QBKBNDR@ZDoY5Hsstti5GWfp2ku2S;*Zq5r<70A*7lu+&1JF zSm&5yrdB>wrmfELyLGlR*K9P7AzMFYYrOqA3t(F1I&39W_lD zxqW?Q$rOUIw>@)oVFJsqXC7S2Cu~*lvqPp~rR1F%z;gEP<(&CqYXv%1cCP5+@KIaV z{4|qj*3#%Sjhqn}ED#-~qs(ofl!o0&|9+aeqDax3vgyin4BNuW!{QI@-XI zc0xkcS8i&ha~p|jDl$RCSXj4aqBik~Vz@&trx-e|gSY=DEu3EvBheDNhni|tTj$EO zk!rcWvC&Z1lB+mEOq`q}cX|?^aY>r3`!Kc+4PKYh1cbrqnmJY%*|U{i6o&&$2q31k zA_Z}(P7-Zc&(!s7$w^ZUYEwV&Qrk*inAA|g+TV^pd=6z}5;5-at-R!q8T9vQ7cC;G9 zWsEkHIvIc6R<_;6B*-T>o{`4O#`QIGAM9 z=sP%SqM{}Dl5w7<-Budox-s~)tN3MKd+xX`oYijo38Ow7tk{^bGowA#SP5j9F_T!)|Sr2 zpi_m7Z1F|C$5>w9_&Mlj|3XK4)@TdM*i|eQ2=>y<28-C25*X>~54%a|2n>1|tVwET z#%j1dYlmv7BUDlHM+u9tOnm8tXn4-PlOEjX_>^@QL@D<5Va)0H8l5w0-O7z^b>5qc z71=VKV-hDba&X3*3l$b6n>DHLslDj}WO|2X6XkHAblROM*My<#tZbipm>38yN2L+o zS^vnSxWLXn9#_AwiCrJk+{$E%=^=e5(Sf0+UtQ1~5V=rn7O$$t-p7zS;Y93gBg|EJ zzlb(9HNyOWl5i)_x?u2=4xHs}P%{(P$S+{WHvoCsF}09Urh*z(%D+jNDmDn8hhQ#GI zw82t3T8y7VA+vMqwPUc>?(VKQ^j{E$x|*$KOZrxlcLfe&wKnC<=&n9pNM2}66*7%d zt8Pe>{U$yM0!dr>!?33=OqjoQTS6xZSueOIN*7Z#W@x6u1}3#qx?54~z?NKX#5X~d zNTs?SsbL(aJEwYvC;d)_2Mtm%NuusCd&ZQOTbWbiSz#AJoTN*~2yP)|qmdZ)R`3kO z-jwpTXxybaptj8Ecoeh zYKbu2w$(B-kEavr(*~VFnLRJL0uw%M&YZ1>R=_D&%j}KGUb{1zRMELQx}>Jn(rR;n zHD{!!%pmP#aWbUIt=5apCofFcKa!?rVe@u;V+YOzQ8P!XZI$YNsnisxKD2I~hVV() z#NmuE>(ERNv*0Y~9%>(#Q#3r6c|k$FDiu^Q$+~50X|eoT_>j5HBrx%u5#sdk*a;H* zZtEVa46b3~bho2h8etoOBD=WLjnHq|uCDr&>=za+iq?74sZG<15LwNh(M4G0nZ=DU zCK?X9AQ$qBTD)(C?&d4#dc7;Zax|jGIo{x8njo+lATqn%5+m9sUH2EfN!rj`Sx?2> z5Z?+IwO9r7xV_S6>#$`i+kK=`mWbJthLbo7HAjJ#06RYcvV`G*m5c=rsb4v{-@Zw>||H{>_&TfRBxfH#6iR^wHE1pGc@(v z5QSootW1-F(8rw%%fQtZTbiE=gG)<((oKvlNy>lTiKjiy=~=!o46a-b;5UZGW=X>b zE$1wcpy%qoM-?HNQ71Dq=>^{aDVT4-yhKn(PBbKRZhy3QKEloZlp}Swv;#1sutB7O z95(;!X&=wRNz9{To^+ye;NB9fAGYwVP6wM(fs$QIl5I}R9LljxY`1?%PG?njwRLZMnqk16Ppy@6 z9N3Ds9m&-kxDv|OwYHx5Ffb$*76&D9Y|I@yQ6#A+^*fogvaV~p zb76yVC*IAcHPuAi&R!IB?q|TFPl;qUCL?``cLm5p9osCtbi7{s8ZnugWc1+7B2~Jd z`Ce;R_2tA#Za_v1jiXAJU)U zkcC_;HemAN&#%PF2TDbw#ETQa8tjI_sJ>4y>YOMclv~{*?XpQ^U0AbjggWheHRZ)kUHGvbZnr4ghLXaihmi>kd!%`QyJ9@Qki&-EfTahOp{jo9?? z>nI02LuSL+MxAInmCE7SU$QjS(a#hdx|rC^nC=s& zoQBv|VgBMs~r%rv$&&S7Q~M%6h`c_rp$7*Rl$>_hm;RTuBAFG%Ybp|zV}OLVX7a6#0Z6&nq!*V znd^RcO>6<<&oq{^PU(?Y-&ObfBUxXpkvLAp`=7bZjjPlmxqSu=$5@3KW{Eb~u!z^q zJB1s~Goxk@tw z`H-<2Ve)G@HR-S~jE=!C8p-Zwq;J1(5{`MSFKqgYc1nmnkZOG_GEDP~lP7kdFjUS^ zB>LUeh#Ew>-wbp+My9me&t)uEM;N5!q=JU5jL)2iqU$nNmBHrAt7vlc+PVViS3jSt zByu`FXZ)o$hk8jG%iMd1<9OrO=DHgwpxU6+m%+Q4iZrjqhH@I^2L)A^x+hamZc&Df z^=fPQI({KMKhV*bhuTB^M2xwrQ;HHKZTfE-w^j`yW{Mv z6)zd(XLhJ>(Cg1s#+eh|5irZ@Q{0xlHOW0bI^I((iltHm6!&l9bsMNgC8xvwjAP<({kIIUKj$_q#FCJ z>r>v7A$Cg7GLzddqrfyXWWP{3L^I{wPo5hlKY7e5liA(nCKOa^9MSdCi=atfNn`B-Of)oKd) z6(#&Ibh*OsLbnuJk=}zGd2R=rH_)EaJI$dTavnZ0soBklNV~W0f)+C^Oad z)rh7>%3&fzs`RWfoOc@z5DdOO*CVV36aQ8?NlmE~aoCn-^Z!FBQm%NKRPkpXQgtzu z(|+_4=gIR+Arg&<`0Y_7tcHBmmO?iy!#Z5{@p#=t%-IFMQ;v}${@7aUM0#Bb*>G8^ z%i1H)QGD0obhMYB0dSss>7=-ZDzc3X(+m@t5J*)|NJzpi$ZW3x(}9wkBZ!&W_q?Y| z+oLl2zgB!xV0_bZtVM3fj0Ur(kU9|^dSY;Q+i;fZ(ow<~#>^uv_;TZ?2}U_KOvrf5 zqCd`Le>#nmjIr^JWBv7O2JYO1bg+{BMcx?9%r~3HoiHGK=2%l~YY^}pFnPhAz3dqr zW0kPtE4UqGgF?ny_pl$YOrOI>;?%DJ0SO+L%6YdC6={?z?ltCmtkCNHey~5ReN6Qc zjM`!*@0$_JaM0fzg4$0%6c#P+K0W)K8A!*UZ3toGuR~L0mRy|8P&-fI#2}9KiocaOg&3||)#T(oxJ)ByR5MP4_34*FA(sWrcu#%X zgza~Jgb^KH*RkIuZGNRC;PYrl!rA;fV8&CQTX!wiC~!=?Si%SqQ`8 zaKhHS31WFQFEt$OayQ6wJJ7ZxmNQ3cN*d=z$R@0VaE(BnyE#v9`Qp}9X=ZHvsI`90 ziebsdfW$k7v(5-iBUA@_Su2{1LFZlb?0b{^vB@yyiKx`B#`b zXa2l-N6(%|xaFFM>c+KzcNjr2ztB-0Sikw+N?}oHV6a$NG^Pi3L!MmW{a9roLaH=^ zp{?I3Mu?nB0&Y`fb9bpYIKR+6Hqy^AUWJp_SH_x0N1Dgx%q=d|;+ATQa|_Wq*Oyu< zrO{J&UeUgyEv@IAmf1TmcCLixZv0d8?MHQv;q=RL#kL->6m#^H)!nBzpO}VI!I>ax zZu7tJI=^sYPkD6bbDEdh&zV|{mMtpwa3ZSGPr^RQ!sfd+l?DdNTW%;9I35d&g&<|l z7akZa-+x1r{tOS{*w(?f{sH#MtN&Jc)mPqB9xNBin{P(k)W;t!`xM$Z*iuo3Dr1{( zHv0fB8r^*Fh=>{@7Ps6mu;q@VtL-etxnn(&-C@f_(#cN9p@FgcZ@~6nzxgg^#-Luc z%)7zjIBA6i@HNpWmGtBWk+DK?d?W|6bkQZ(H@4*lQG^B}r-qR%pJZ1Y`}&G+7a!{&Pj3*-Et z%81s3U`RD2HYW$^SDPG@a)?$OG|1`{m92OcGiU#|8d(pYSpl>8G&cy_-t>zU4S48WDM0 zm{F}}&D^iS21JR|gG=psIF9g>jMp+TI4)>Hc4$N>jVqBZ?(9g%+I3_q=Gn?(AJ9Y__Jq-F76Xe3$*zz^x!~= zf=mBqcm$z=PwxI3%Kh7)alXEu7J#w<*#@_D9=KD09HCbbOg;=kb%A+{B zCHYVe96K>4vd9}AtOO{48KI7q3+cK=_y~2a+l6l8RYxJOr)yM)8^rf0zd^B;QW#fO zvmlCX8$x)}3wv3>wUjcEj06@*tTa%9dj@NYC~C6Q)>sYsgHjaj`#0Z(^0N=tOC&&Cx{|cD z?H5cL>^hE9HcM`B^S#Lo7AK%VO%HnmFI6`)lNpYaP+Nt5+IleehB}XyXC|`>GcGPG zm4TT_b796PKh!xhv5ljlXP4bR(y>h}^uS~?4JXS8Es7qDEQYgT%N?luk;MJZ1GZt( z+PO42Lko*6Gb1>}FlhoM(32(X+X_NIVS=1&=FE1dRZOO)JvA6wRv>3INt|IgnYCv|nORz~-m*^lp;3G3Ei>#lR3#Z6 z1qmc~&ARb>4m6YDbYq-ocas~zWRSV$6u$SfCpvn?_jTQN#WsYriclI!I@-FMol=%T1H-Q0atC#F zJd09hx?_YY+lWwmOR%nFfWhp9!Rg_ z_7yAImXHoV?XhB2_u7um6GV|2BM3XGwAwNDufYg0x_d{l2LYa zV@|HEL|KK@LeQm3N2Q%oW?gP<8%iW*WFj8az6!)c zMoLIb+n6vXP{NqKY+?f6Q__tzVSMe&(&C=ct2QiU8}Xn9_E?7n2O}^y3lmE{g|YGV zW3lHjxNtId5L3jsL_g=`k9`dKO=DK)DPcUU#br9GqLHdXy~uORXtj@1q0>07PiIs} zlIIQ$ck-(xA1!p?~zgVcwV;bb<&|51E?J!ww*+ni> zx|nl&Y6KdL;O(%Ya+Xpq2kGAtcr$o%`^rg!p;!`{P~HUB>zjLRoLC&EZY@dkkX-!f zo1}T8pAJgj5o%-lLnm17FqezG(e^QCLmG#O8(?WU0%#W67y1(ck<;1Q)g9St9O5dN zn97Y#=mG>s*`bl!NKG~q>K=tJpwd^{RL;=QG#rUgaU!k|c-;JGlZ zba?CX zfovc}Yy}b3z4<+zo8ObPYEr;Px$pwgZGBLA)0&$%lm>>U1r~6MD|988X%j5M7D&z0 zxnDB2`Mk)S7=Eyq1d#9hsfWwP%@$evCtYOQNx2P?JM|MLtQ^K~tL`%nMX0L$@L26h z&sZ2`!BRRMzmG%aZRG6+ja{Ct9mzvPiI~ESAV9^{1I3HS=mzS#JXL14B+I-kL6n%# ziPUyF*nY~Lf(1G`n?Wz&+<_rEdGeoX;#B_@%63wqbVjK7k;&Qs?5EXtzq^=xj;hIup z%YY)7m>xCpu$fab&I;a@5M4zHQc`};G2B36aAOBwJ3k>1qA-L*E_qg&EHfi^jfxJ5 zAgygGIB-guj%KkmrG%ui;xl8(d?tB|;Y`ysi&gDMF;I=EKAjXZt`3{=A-_;= zt3?>oHk57hbU7;|Eit9k90ln(=Z=vg{p?6kTcM{*v!`E>r$q;6&;~hHz#*z#a}XhP z{OC3gzU3fjQd#X=za}ZC{bAf~P0LL$V;{u1kV@gClL|6TnSIo%g9VIOS=3?XkiFB& zmEK~1LZmPXiMGCW){Ay?Y|5B({nXieH3>Nn8+{BJ z$K;lC!Yd3L6H>vM?fDH#!QMISx(rL3N^$yvJwq;0D_Q6RW|~_^leO1RKemcw(sl)N zf;H!0msmqJKxro!>*8dHlXKyDn&D%fJV#H9ZOKOj%M~*1t+{F=TpBcoi|JX{>k{kP zwvdXAc^YN<^aF#}DoG2E@QOZ9t-;MuDb-D(RZ+G7cxx_+i3q#;o|01Fi{O|6|DFeUwUx zPOlV#>~UipdVTa_I^mH{l}I9l^>!LNV5;ggjUbdH>^3ECy_4D8>NT<`ofT`WkR}i& zxngGwjaN?83b`eGG1o~VWy07hoAIIkB=gSq&jzn@J)zO}y53?+VjvTgijs;=2u^h> z2p;D6G@CIf56qO~%&X9_Ud*+1mxdKvRhglO#uCs#D=FoR35hX_8dm(J zy|~d*CMJ?Xt`FDT)kaFHTqei zY128bW^^x(7G%iUE3dQhu9nT{m;x9K{_5jIj==)Tm3Fp;l#_&wh9y&zb@5_j1j`TS zG3BvQi1Uwzm87oTCMOw9GZ|me(iY$H%p)<0G%v__3e6IhkhTnq$OYl$EKF>6=dfO* zmTP>s4kV0AWMja5QNw&E6wrd#Ofi!QVoX*!5i?UgYQcg}+A%nBGBwdEr}7}bx>mD% z3BdyealvWPWgYdbwfOEF)l|~2LLmdk)K&JTvAv-7y(I2TalEtlT;K&FGg?fRx|^_r z=kik#HA7vvzizJG&-!>ya)Tj9MpeX#!L3BfdWfbPC(}izoDXSdg!+_A`#E5?(Cety>R9w6XlvE*UC4zHx*{aYT<>G0sePR8+>UfM{?mBi<(>z zmx;M>Cy>k-5GdeLBx*3jWGEpTw%kw@CF^%6gpXmJ2!S%ahNsXi<-m|7w|y(Fx1NeP zC0d}3mu*j$NZ5^;bA+fBHFsr(id#z^)2Ogch5kscVg0W++%lfYXtA;!7&=a$(-O%M zd#WR~X>hl;6oDUvVv%JQndNavQKu1Tka3pR=6!*vOh4SPMt3STq$JKm9X-<}kii)! z5^ID~(O`_d3ub=WvXntq@F1Su0XY%MTWZui@bUJJV zYd}j?tSP<1@cz-w_sWvUw3+Ag!C>3V?#N~rTOUsFZJ6fCN3FNYET2;JFiHu#9yI=E z&5ZYKZZ(5C*Y)J(@vFpQBdF3gW0Wa|v7R=-qkLtr#=tb6Mn!J1wsWU4m5M2ZlyduQ z8b{*5JQ^om$gQJ7-8@--#>^(Y%nPaa_T<|`nRt$zpkRg0uK)Wy-0uQDb5)6yb##Lt zk%syu12#7Kc^+6$bL!5Ifz)&>9ktko>e`yoXai~TOEzDLsYt)>JZ2E&t?%Hn!8p&Y zu89#D+J@y9JhID$g^W9Zq%W)Y zmwT~V-Et+gAo7+H*v`=KC8ac}ICD)b0b??5_oCRz81+<*d;OwG+kB8&|07>>u#j_0 zytM`ct|;~UahY1WE-ja{UzK4=yVJPuzae~?a6=5@o|5&u?YNLyg)ob{uz^n|&Y~e~ zvpV-<3WbGbA`+tzc~Pd%ofS5!Fpv*RHcj6O-py&Gh8|Z zTrjMl$W-#2u*K-c&g5oeDP4qpi?*K_b>X*dAB9Q_cB1nv<=fm3Wz>+?vw|tDNLgo9w&wdAF{Ng;OIe@}q$4 zUaL$V&DPPS1Ki02vt63q5Y81S<*dkZ^u-aQmm!15ss?Yvn8eoHGwom0j*@ipDK}Ep z$_yuev%`@%khHMQFi+B3kxmo{6H|Kui6{0xIL zQJhY8E+&nBqTsa5AqPKtz%-nVbIoa!s*(mD#gd__tgPj?U)C;ZJ6)%&acaBm5)e}w zzp{Ez{Aaa^m+1hIQQ%$X& z9O4bler2;T!Rt1@MDgPfM`&2xT&kg)`rU43y@p+GlhvtlBC9()b)u$YE}x`NrJi&!|Y`1bRtMUYqu1Lm1l0 zvWRmGHc*Q;|Ey^5XV!4$jeYVYPCBq~Lp@%ac~oaGn7R4X7UiGQ61nk*rw3toi>}VW*3p$ z0Y-ykm)azT^~z@^ZP%4C)!Z&KPgyFC#zIiUE>kxf>tw#d5_VZcAj{O zRBAOn+r|-;R?CQ6N z1^dCP1v4Q`HaJ12POl-hmraqR(gc3Zc0&2LFVUzB8YUaoIA{s6c|TzWFgSQJ(tvi2 z?(wiNfkHXPGclP>D^pym=J)@HXkk7=%$Qxz;5$cDo=Ic%96SjwI160EUO(2oc(;)4 zJ`a0NOb1RasRq)aJ}F;JKgQ5%lWfHhm{h)2tob<`Zl(!aMI6SWHkF=U2gmFeR7c_C|$obo@b(kjU6DDwX}6o6$hd#NNT7 z6K1$%dzQ;bU2?k&nxnvpT z8{Oms*B1W5B6LFSM7P@2w|T+;T%fn`a>_+rvTh11L|~0bw!M>@1+u}2zz((gSw~H? zh2WFu!f5Qahl}3y zM<|(lzzsukd$B@A)800gqJLN2R$PJK#D92@yNmW}en@1}}ukWR~eb zHi^dp1N@jk)qMN}i%EHV!6b@b5eD;k_c(f6%VKk!pOZwjxg>R#SX$@0uuS3LfYn`CKC5~+>iA{zcbGGUZ%&;c zAT{|cvl5}nI;KKDLlqdKF1%RT0^tIwOV3hHwU6><+i!(aA9LCIB@vB2*|tvK*ZA=c z$+t$qvIRHUuaOeUQw5N)54A%k>8KxDdX}rUUv(}AmJdU_ry&{?V=FNz5!1w)XwWW8 zG#}!;mVDk^94sbwhvhQBI1g%T`7uiojP3a;5hHQB7_H`*1f~^PPUnB4)EXX>#lOsL z3<)p2_W%xI^hr4x*1NqVZhUWXG?^grs)H%Kr>8>);$*#vY!2|*)Qx$Rtfk2Tg^D(- zV6nXzNu{oQEA{7~WJYYkXAyg__w6WB#vh$ZV>>1*sayK#>(DV-zjvVM!M%nD)@&SDeqP2J+fQ69E&PYlXS5ZTx;dB+$`BM!Ka*7A5TAbFs6F z(rB1z{1RkigSf`?Qfu34NK`-2vKdwv(+O3kpVe4_mR_<;`I&I>{-@f+8wg1wPTl54 ztC<;Mo)~Ga?oN|QX6u@VqvmW9sdcjvz11J1OgUL+hvauP+n~u>W^{-HV>KayuY0Ne z0`%0p-5D_%rmWp@u*Q8l-3F3c$+f8f;&H(Cs5`OBTDqT|S@bUT^cI~N6VHlC<_l|BIlHQTWk;>uC3BK=rEud=Ipdmj zS%k5;Bq+jjlhcZ72eV_cJFr!IXAyYS5?1Sr#^Kjj;%GDt?Pm?r)%^<39?^#KwNzgGT*X{Yl@Oc*9`Q$DZbqF)3r%MVCAO&}?s~t5K-#m;`gQSQGFIqO}Ls zSc})w$nhYa`-D4&t6p&MBd|5kh=RIVk+@TerP5=Ah_1v>u{)6+(XFu)#EAHHO?6`_B+}AwCCzaLFxshwxr}|6f(>(7X5c*aVS_XuP|7 z9qag4tym|ck7aR{hq1L zrn3N-_4||QOld~)uw1D1-rduCR7q1*1$*J^`zKV7&vtEIJf)ri*peiYevfpm(Lo$m< zmx&3R++^xm2F=)VdHYEE7=EvcJldgJ z0vWe^$mU(zT`lZ^RxL>SfRbWNZz9&+!7Tn_2t07aXx!W@v|#EQ2>uG6^bJjWEws7L zBW!dYEcxL0Yf27gVGqc;_h@mwXPL2~`*J+E%jO(f3^c%8*I4A#f5dOY1nOhtxPcNl zHJIi(6_a|oM{0x=iWX;%Ti(cz2pxbZ>%*<4_Ov1lM-&~tgE_;#b7!8+=dJ3TVpJ^5 zZ`S25dyka&y(0OpLFB$DDu;A+f;DJsK^1uYdq~q-)QZZ-9POPI#M-0?DKfbG^GOw z9!!H`+SDdYvv*aC;jt@@;k%mQNTxA(tZ-$BrnEm{WG-~U7K~eROaVzF%LEuG+BXLd z+PvEGOKxzh%wfEIYIXGW%RyenDqHL0hx6EWlbW$jsl&>3I);KdQ}47x6pQ6h6fC)M zJldHOULJpiqL>~)Y2BgYrA9Okcj=IE>Kh}BGFC}G-P==fxkDdcP}VBHmsiN<4lTDh zIPM~#<+-X@gB#)CbmEI`uf&7#MYgmBDkSndQ&`Rpu9PXKHIXV#0^!-;ai=iMZ1Z7i zETd&*7`nNptK#*Nuj`kwQ&j`}b1+`Y5QQr&;idKAup zy%woZBPBafUcdJ%mgLE?5w$1b8>BL8Rdn^zNH%qlp`sB$HFm=|@_l~e)g=_J>6~LI zP_+m8leo841bNMYst_{@Wa%8t3=yfa-gY6^slg6PEKyB8<}kf8c60PSdA`E0U-Lg< zyMEa8tURQ|ZZN+xHz+uEoem_073XU6I=^NL{AlEkBSae&n#vgdn=4P_CT2(tgGv+YIA+hiAO98wav2I zqo!AAI)q@_yIS6a|AUM(QoA|p={SKF;1};XDG#BWq8bDPu9#3xa3HAK;(*zCwNb3h zMCKGbR#C-lue}7JUJ#?+eW^ujlt7n{+saK`TS!Rkf-G@!$9{S2omeZ-)z`aoZgji$ zBQf4wpuKZ;mq$^7&Kf8@=~7%Z$|?F)@@L5Q<4V=>mBozY(huX$kQ*pHhFUiY!y_4z z+lVE%YH;K}Wuh2Xu`;h}wH-jx8JMPQUAum@IQx^48Hc?4vN}-VG?bvJ?4N`au;zqr zWk~O*AFn}Rao@eH67@e@mbTr+mly`9l9maS<7!Do>SBuQvkFMc0id{bdU|5KYcE0( zp1}Ywewm-M66Av6MhyeVO-(!Wt-S}xZ~)G!zJy5p>Qn2n(cE0Eik%c+-8nGi+IdWo zoM~*5KEul)f>_xfmXt27NEmt&;xC0tDGr1hUcmkW@s8}kqT2$g9@f*wigHpQNZ5Wf zX0UzY_Zml_%&^5YGfwf*liyKgs~NXDXGt$#|G+#i@ChW*;_z&K05xq)u1a$?g3;7) zL*8j(JN)iV3kn}6-6nUn9UGW^L69;jRyf_wA|3H|U1UjOBA6=be(Ryl*wg^FBO-?%cq}j)@%qa+|B% z4wGXHdIb1AWL0tj!i($gj`A)yh;ieZ5=P>EoVb!#C*MZHjiZ$qwqNc@c~BjAPFHwU z+-H3RAkSsW(EU;vNyaz_4Oyfpl|hD0T6zKgl`2}Frb7E}Nh3jsiFtkR^q$lL52l@)V=2(U| z$~G7qS%I~>(lhG}J6m$BUplm;7MgdMHfD#U9Jecwg`nu&i>DhwQMG?jPm^I_oGb_7 zjaajq4A>6CKvsYYmGAKgdqee>#uo$>3h6r1f6CEH{Mv9XA7cq34Kj_%F_WX$G z%iXX3XrZI=_g5?-p(bAKbQd2j7T-;OuD%)l-2Q0vr)8sv`J*CAs=dM20-v!c7|wnZ zN^ct$*kz=Qya7ICh^q9LSBK=qF|2mS8I}^dN5*oc<390}Wgiyol`FzY^f|rz=!4(= z_5)3pl|^%2_r=_>7niVi03=N3V3$0gXB{eSh0b-lp=En7o(<5Z>>B9%del){%?HrB|o7>`8nG-C_o`jMo76IY81}U?0c*!K!km=i~ zN0mt0QfCZCi~Sz0s^-+m@o8&X@dubm5`Hr!=+Fr7+vvTD*A4-BV{AoDYS7UmwQdx0jEfpFJ6VWi_^!amd{a?avBNQQBn&W7oLqbal1m zuA?JtkW8jl2t!18xS@$T_cdgp>4+Ry7B=-yKfV?ejjayX={RAL!C5^GHkj@`$VXT< zgUc6s_9|6l17K)ofXl%o=v2ZI;pHncktiWD1GLgu{5mB7I{vP8>T|#&Er*2%$g9F8 zfgXGaKsQ+-aqCdbcZjHJ*9Ye8cqNC^e?1eDU=vJXq-7s4K&(@VYGKGTi`{mlfOdc7 zry;S|&szjXTb~}=p0TOTjW^oZIl%L%#NQmo%&**`(8pZhrQ0+XuW}^3Vf)@^09!e& zt-<{x*n@4fk?c}N1ww|+VZ4NurJK6WD_Yu_+qQBm#>Xi@QufOZhhA!m&1frCI;h`D z0WpBzd)nCXT(8~6T3nQ>3dWCXlRTkK2o0*dUeuqk=lYmEdxx@o#?%DS#^vlO;- ziZ8?{{>XkjMn9FG8b5-@$AqB&N15T z#0NOYfzL4zDqpu(0v8;7@_fSa1@oqfIZ;aX=B(?K>*EOy z*Y(^%sVEXx`_M7jH##s@ig_7`Iw7Rh2{XA(_4aB21|zh)^&C>kW!~Mhp32i>1nb0| zrx4oU^%eI-5M$dZ-Sj7qK1zUZV#f5lc1sz^HoCU7>(V>MEks5xcq=|HYEC+e@Wa%B z<7pes7x%Xww8ScO*iKykjGYL!e16&Y4Al9bh&4x{a9hHW981%A3KB)f)T9AGf2ga1 zJQd8S|^JyT;UP5LLH!1udf&%4qe5JTgW?K__!l{2 zGvPcDwNiX8cBCpQhT(}i5JfQzK@4O8L*NpYhM8XIZn+c|Wf%;+DuGw|R0bE=XZg{; zrjGTy^rlON(cQ0y-h?#?s;%n5+5l1|oHH>bdx?1IxvIak&abL@&GezA0<_*9@a!P?FEJWrb>7FT5WD_`*dI1b+vM-K(;K< zbP4TBnBz}U)H0IEcwO|=@t`XdSJj6OJ;sVU#;bI(wrKDrbdgs*S1(d^)lqPT0w#0$ z_B|zeb@JMDH4K{OAZ_bN+o-hFuMsPq*rKq~AL9<>sm`{TZGRjc3j8|Z*@QT4^;?+I zxK2mHhzJE@2|W@Jz#NPqpi`s>9deBdcKKk*!$qxu?J(B}@QZS72}k6q<}fToCG8@0 z$7L@vsO3*0Xu8Hs-V31$UXdWC`cN(FN!%VET`J=uIsC?YC7pAj?QH<9e_N8eS zSUZd{tocx@Vd|)yrd4V2a+}=#{LpyipkI`GD+m~WSE(MmVZKR1dd1~nzFNkQcFiow z!Jgu>@_!tIV5;NE!HV-t$T@2s8G-@YS;9IoxA`-_1Z;I)J z1zwXqYr^HZ%BCnvVO#I!M0x#yL z{HqbedB5sw_`WQ>F(Nj%5ii?(%|KQ21(%-slnleCCUjMBG+zBo7U&LJ!xv=$r$pz& zZYvw2-cCERHLI=P`&~iWHr^Fiv-U_Adhb^wdYs_#u+uk(zZ+xpjRaa1FppT&F6}^m z+Oi(_%Pyx$DLc7sWpA)kfumu+k7F6zqa{X$$wDS)6xXH|?eXrH?GS6X z7G#0J6TleCmJXLpx#UE8hb|9&XltlOY~?Yvg7lBP, 2002,2003. +# +msgid "" +msgstr "" +"Project-Id-Version: sp 1.5.1pre1\n" +"POT-Creation-Date: 2005-11-05 09:50+0000\n" +"PO-Revision-Date: 2003-10-10 21:33+0300\n" +"Last-Translator: Nilgün Belma Bugüner \n" +"Language-Team: Turkish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.0\n" + +msgid "" +"no system identifier could be generated for meta-DTD for architecture %1" +msgstr "%1 mimarisi için meta-DTD sistem belirteci üretilmemiş" + +msgid "element type %1 not defined in meta-DTD" +msgstr "meta-DTD'de %1 elemanı tanımlı değil" + +msgid "element %1 invalid in meta-DTD because excluded" +msgstr "meta-DTD'de dışlandığından, %1 elemanı geçersiz" + +msgid "meta-DTD does not allow element %1 at this point" +msgstr "meta-DTD bu noktada %1 elemanının kullanılmasına izin vermiyor" + +msgid "document element must be instance of %1 element type form" +msgstr "document elemanı, %1 eleman türü biçiminin bir gerçeklemesi olmalı" + +msgid "element %1 unfinished in meta-DTD" +msgstr "meta-DTD'de %1 elemanı bitmemiş" + +msgid "missing substitute name" +msgstr "ikame isim yok" + +msgid "substitute for non-existent architecture attribute %1" +msgstr "desteklenmeyen mimari özelliği %1 için ikame yapılıyor" + +msgid "substitute name for %1 already defined" +msgstr "%1 için ikame ismi zaten tanımlı" + +msgid "substitute name %1 is not the name of an attribute" +msgstr "ikame ismi %1 bir özellik ismi değil" + +msgid "reference in architecture to non-existent ID %1" +msgstr "mimarideki başvuru mevcut olmayan %1 ID'sine yapılmış" + +msgid "architectural content specified with #ARCCONT not allowed by meta-DTD" +msgstr "meta-DTD, #ARCCONT ile belirtilen mimari içeriğe izin vermiyor" + +msgid "invalid value %1 for ArcSupr attribute" +msgstr " %1 değeri, ArcSupr özelliği için geçersiz" + +msgid "no declaration for meta-DTD parameter entity %1" +msgstr "meta-DTD parametre öğesi %1 için bildirim içermiyor" + +msgid "no declaration for meta-DTD general entity %1" +msgstr "meta-DTD genel öğe %1 için bildirim içermiyor" + +msgid "meta-DTD entity %1 must be external" +msgstr "meta-DTD öğesi %1 external olmalı" + +msgid "no ArcDTD architecture support attribute specified" +msgstr "ArcDTD mimari destekleme özelliği belirtilmemiş" + +msgid "ArcDataF notation %1 not defined in meta-DTD" +msgstr "ArcDataF sözdizimi %1 meta-DTD'de tanımlı değil" + +msgid "ID attribute %1 in meta-DTD not declared as ID in DTD" +msgstr "meta-DTD'deki ID özelliği %1, bir DTD ID'si olarak bildirilmemiş" + +msgid "invalid value %1 for ArcAuto architectural support attribute" +msgstr "%1 değeri, ArcAuto mimari destekleme özelliği için geçersiz" + +msgid "no notation declaration for architecture %1" +msgstr "%1 mimarisi için sözdizimi bildirimi yok" + +msgid "meta-DTD does not allow data at this point" +msgstr "meta-DTD bu noktada veriye izin vermiyor" + +msgid "invalid value %1 for ArcIgnD attribute" +msgstr "%1 değeri, ArcIgnD özelliği için geçersiz" + +msgid "unrecognized quantity name %1" +msgstr "büyüklük ismi %1 tanınmıyor" + +msgid "no value specified for quantity %1" +msgstr "%1 büyüklüğü için değer belirtilmemiş" + +msgid "length of value %1 for quantity is too long" +msgstr "büyüklük için %1 değeri çok uzun" + +msgid "invalid digit %1" +msgstr "%1 rakam olarak geçersiz" + +msgid "only value of nArcIndr for ArcIndr attribute supported" +msgstr "ArcIndr özelliği için tek nArcIndr değeri destekleniyor" + +msgid "#ARCCONT attribute already specified" +msgstr "#ARCCONT özelliği zaten belirtilmiş" + +msgid "invalid value %1 for #ARCCONT" +msgstr "%1 değeri, #ARCCONT için geçersiz" + +msgid "%1 already used as a substitute name" +msgstr "%1 bir ikame isim olarak zaten kullanılmış" + +msgid "substitute name #CONTENT already specified" +msgstr "ikame ismi #CONTENT zaten belirtilmiş" + +msgid "IS10744 PI keyword missing" +msgstr "IS10744 PI anahtar sözcüğü eksik" + +msgid "invalid IS10744 PI keyword %1" +msgstr "IS10744 PI anahtar sözcüğü olarak %1 geçersiz" + +msgid "architecture %1 already defined" +msgstr "%1 mimarisi zaten tanımlı" + +msgid "the first definition" +msgstr "ilk tanımı" + +msgid "ignoring PI declaration of architecture %1" +msgstr "%1 mimarisinin PI bildirimi yoksayılıyor" + +msgid "the ArcBase definition" +msgstr "ArcBase tanımı" + +msgid "ignoring ArcBase declaration of architecture %1" +msgstr "%1 mimarisinin ArcBase bildirimi yoksayılıyor" + +msgid "the PI definition" +msgstr "PI tanımı" + +msgid "name expected" +msgstr "bir isim beklendi" + +msgid "literal expected" +msgstr "bir sabit değer beklendi" + +msgid "name or literal expected" +msgstr "bir isim ya da sabit değer beklendi" + +msgid "nul character" +msgstr "boş karakter" + +msgid "not a minimum data character" +msgstr "bir en küçük veri karakteri değil" + +msgid "end of entity in comment" +msgstr "açıklama içinde öğe sonu" + +msgid "end of entity in literal" +msgstr "sabit değer içinde öğe sonu" + +msgid "OVERRIDE requires argument of YES or NO" +msgstr "OVERRIDE argüman olarak YES ya da NO alır" + +msgid "CATALOG entries cause loop" +msgstr "CATALOG girdileri döngü oluşturuyor" + +msgid "second argument for SYSTEM entry should be quoted to avoid ambiguity" +msgstr "" +"SYSTEM girdisinin ikinci argümanı, yanlış yorumlanmaması için tırnak içine " +"alınmalıydı" + +msgid "no DOCUMENT entry in catalog %1" +msgstr "%1 kataloğunda DOCUMENT girdisi yok" + +msgid "no entry for public identifier %1 in catalog %2" +msgstr "%1 genel belirteci için %2 kataloğunda girdi yok" + +msgid "invalid option %1" +msgstr "%1 seçeneği geçersiz" + +msgid "missing argument for option %1" +msgstr "%1 seçeneğinin argümanı eksik" + +msgid "option %1 is ambiguous" +msgstr "%1 seçeneği hatalı" + +msgid "option %1 doesn't allow an argument" +msgstr "%1 seçeneği bir argüman almaz" + +msgid "Usage: %1" +msgstr "Kullanımı: %1" + +msgid "or: %1" +msgstr " veya: %1" + +msgid "%1 [OPTION] SYSID..." +msgstr "%1 [SEÇENEK] SÄ°STEM_KÄ°MLİĞİ..." + +msgid "Short options need the same arguments as their long forms." +msgstr "" +"Uzun seçeneklerde kullanılan argümanlar kısa seçeneklerde de kullanılır." + +msgid "%1 version %2" +msgstr "%1, %2 sürümü" + +msgid "unknown BCTF %1" +msgstr "BCTF %1 bilinmiyor" + +msgid "unknown encoding %1" +msgstr "%1 karakter kodlaması bilinmiyor" + +msgid "cannot open output file %1 (%2)" +msgstr "çıktı dosyası %1 açılamıyor (%2)" + +msgid "cannot close output file %1 (%2)" +msgstr "çıktı dosyası %1 kapatılamıyor (%2)" + +msgid "Use bctf %1 for output." +msgstr "Çıktı için bctf %1 kullanılır." + +msgid "Use encoding %1 for output." +msgstr "Çıktı için %1 karakter kodlaması kullanılır." + +msgid "Append error messages to file %1." +msgstr "Hata iletileri %1 dosyasına eklenir." + +msgid "Display the program version." +msgstr "Program sürümünü gösterir." + +msgid "Show this help text." +msgstr "Bu yardım iletisini gösterir." + +msgid "NAME" +msgstr "Ä°SÄ°M" + +msgid "FILE" +msgstr "DOSYA" + +msgid "NOTHING" +msgstr "HİÇBÄ°RÄ°" + +msgid "Try the \"--help\" option for more information." +msgstr "Ayrıntılı bilgi için \"--help\" seçeneğini kullanınız." + +msgid "ARG" +msgstr "ARG" + +msgid "Undocumented option (check the application's manual)." +msgstr "Seçenek belgelendirilmedi (uygulama kılavuzuna bakın)." + +msgid "Use catalog %1." +msgstr "%1 kataloğu kullanılır." + +msgid "Arguments are catalogs, use DOCUMENT entry." +msgstr "Argümanları kataloglardır ve DOCUMENT girdisi kullanılır." + +msgid "Search files in directory %1." +msgstr "Dosyalar %1 dizininde aranır." + +msgid "Restrict file reading (for use in Web apps)." +msgstr "Dosya okumasını sınırlar (web uygulamalarıda kullanmak için)" + +msgid "DIRECTORY" +msgstr "DÄ°ZÄ°N" + +msgid "SYSID" +msgstr "SÄ°STEM_KÄ°MLİĞİ" + +msgid "bad formal system identifier syntax in %1" +msgstr "%1 içindeki resmi sistem belirteci sözdizimi hatalı" + +msgid "value for attribute %1 missing in formal system identifier" +msgstr "resmi sistem belirtecinde %1 özelliğinin değeri eksik" + +msgid "%1 is a formal system identifier attribute value not an attribute name" +msgstr "%1 bir resmi sistem belirteç değeridir, bir özellik ismi değildir" + +msgid "value of smcrd attribute must be a single character not %1" +msgstr "smcrd özelliğinin değeri tek bir karakter olmalı, %1 değil" + +msgid "unsupported record boundary indicator %1" +msgstr "kayıt sınırı belirleyici olarak %1 desteklenmiyor" + +msgid "unsupported formal system identifier attribute %1" +msgstr "resmi sistem belirteci özelliği olarak %1 desteklenmiyor" + +msgid "unsupported formal system identifier attribute value %1" +msgstr "resmi sistem belirteci değeri olarak %1 desteklenmiyor" + +msgid "bad value %1 for formal system identifier tracking attribute" +msgstr "resmi sistem belirteci izleme özelliği için %1 değeri hatalı" + +msgid "duplicate specification for formal system identifier attribute %1" +msgstr "resmi sistem belirtecinin %1 özelliği için belirtim tekrarlanmış" + +msgid "bad value %1 for formal system identifier zapeof attribute" +msgstr "resmi sistem belirtecinin zapeof özelliği için %1 değeri hatalı" + +msgid "bad value %1 for formal system identifier search attribute" +msgstr "resmi sistem belirtecinin arama özelliği için %1 değeri hatalı" + +msgid "bad value %1 for formal system identifier fold attribute" +msgstr "resmi sistem belirtecinin tutma özelliği için %1 değeri hatalı" + +msgid "fold attribute allowed only for neutral storage manager" +msgstr "tutma özelliği sadece kutupsuz saklama yöneticisi içindir." + +msgid "bctf and encoding attributes not applicable to this storage manager" +msgstr "" +"bctf ve karakter kodlaması özellikleri bu saklama yöneticisinde uygulanamıyor" + +msgid "cannot specify both bctf and encoding attribute" +msgstr "bctf ve karakter kodlaması birlikte belirtilemez" + +msgid "zapeof attribute not applicable to this storage manager" +msgstr "zapeof özelliği bu saklama yöneticisinde uygulanamıyor" + +msgid "records attribute not applicable to this storage manager" +msgstr "kayıtlar özelliği bu saklama yöneticisinde uygulanamıyor" + +msgid "bad value %1 for formal system identifier indirect attribute" +msgstr "resmi sistem belirtecinin dolaylı özelliği için %1 değeri hatalı" + +msgid "" +"non-minimum data character (number %1) in value of formal system identifier " +"lookup attribute" +msgstr "" +"resmi sistem belirtecinin karşılaştırma özelliğinin değerinde (%1 sayısı) " +"minimum olmayan veri karakteri hatası var" + +msgid "st" +msgstr "." + +msgid "nd" +msgstr "." + +msgid "rd" +msgstr "." + +msgid "th" +msgstr "." + +msgid "(invalid argument type)" +msgstr "(argümanın türü geçersiz)" + +msgid "(invalid message)" +msgstr "(geçersiz ileti)" + +msgid "I" +msgstr "I" + +msgid "W" +msgstr "W" + +msgid "Q" +msgstr "Q" + +msgid "X" +msgstr "X" + +msgid "E" +msgstr "E" + +msgid "open elements" +msgstr "açık elemanlar" + +msgid "In entity %1 included from %2" +msgstr "%1 öğesinin içindeki, %2 den kullanılmış" + +msgid "In entity included from %2" +msgstr "Öğenin içindeki, %2 den kullanılmış" + +msgid "(invalid location)" +msgstr "(geçersiz konum)" + +msgid "offset " +msgstr "göreli konum " + +msgid "relevant clauses: " +msgstr "ilgili sözcükler:" + +msgid "unknown warning type %1" +msgstr "bilinmeyen uyarı türü %1" + +msgid "invalid error limit" +msgstr "geçersiz hata sınırı" + +msgid "maximum number of errors (%1) reached; change with -E option" +msgstr "maksimum hata adedi (%1) aşıldı; -E seçeneği ile değiştirilebilir" + +msgid "Make doctype or linktype %1 active." +msgstr "Belge türü ve bağ türü olarak %1 etkinleştirilir." + +msgid "Parse wrt. architecture %1." +msgstr "Çözümleme %1 mimarisi için yapılır." + +msgid "Give up after %1 errors." +msgstr "%1 hatadan sonra bırakır." + +msgid "Show open entities in error messages." +msgstr "Açık öğeleri hata iletilerinde gösterir." + +msgid "Show open elements in error messages." +msgstr "Açık elemanları hata iletilerinde gösterir." + +msgid "Show error numbers in error messages." +msgstr "Hata numaralarını hata iletilerinde gösterir." + +msgid "Show references in error messages." +msgstr "Başvuruları hata iletilerinde gösterir." + +msgid "Define parameter entity %1 as \"INCLUDE\"." +msgstr "%1 parametre öğesini \"INCLUDE\" olarak tanımlar." + +msgid "Enable warning %1." +msgstr "Uyarı %1 etkinleştirilir." + +msgid "TYPE" +msgstr "TÜRÜ" + +msgid "NUMBER" +msgstr "SAYI" + +msgid "length of name must not exceed NAMELEN (%1)" +msgstr "isim uzunluğu NAMELEN'den (%1) büyük olmamalı" + +msgid "" +"length of parameter entity name must not exceed NAMELEN less the length of " +"the PERO delimiter (%1)" +msgstr "" +"parametre öğesinin isminin uzunluğu NAMELEN eksi PERO ayracının uzunluğundan " +"büyük olmamalı (%1)" + +msgid "length of number must not exceed NAMELEN (%1)" +msgstr "sayı uzunluğu NAMELEN'den (%1) büyük olmamalı" + +msgid "length of attribute value must not exceed LITLEN less NORMSEP (%1)" +msgstr "" +"özniteliğin uzunluğu LITLEN eksi NORMSEP değerinden büyük olmamalı (%1)" + +msgid "" +"a name group is not allowed in a parameter entity reference in the prolog" +msgstr "" +"bir isim grubuna, öndeyiş içindeki parametre öğe başvurusunun içinde izin " +"verilmez" + +msgid "" +"an entity end in a token separator must terminate an entity referenced in " +"the same group" +msgstr "" +"bir sözcük ayracının içindeki bir öğe sonu, aynı grup içinde referanslı bir " +"öğeyi sonlandırmalıdır" + +msgid "character %1 invalid: only %2 and token separators allowed" +msgstr "%1 karakteri geçersiz: sadece %2 ve sözcük ayraçlarına izin var" + +msgid "" +"a parameter separator is required after a number that is followed by a name " +"start character" +msgstr "" +"bir sayıdan sonra bir isim başlatma karakteri geliyorsa bir parametre ayracı " +"gerekir" + +msgid "character %1 invalid: only %2 and parameter separators allowed" +msgstr "%1 karakteri geçersiz: sadece %2 ve parametre ayraçlarına izin var" + +msgid "" +"an entity end in a parameter separator must terminate an entity referenced " +"in the same declaration" +msgstr "" +"bir parametre ayracının içindeki bir öğe sonu, aynı bildirim içinde " +"referanslı bir öğeyi sonlandırmalıdır" + +msgid "" +"an entity end is not allowed in a token separator that does not follow a " +"token" +msgstr "bir sözcüğü başlatmayan bir sözcük ayracı içinde bir öğe sonu olmamalı" + +msgid "%1 is not a valid token here" +msgstr "%1 burada geçerli bir sözcük değil" + +msgid "" +"a parameter entity reference can only occur in a group where a token could " +"occur" +msgstr "" +"bir parametre öğesi başvurusu, sadece içinde bir sözcük bulunması gereken " +"bir grubun içinde olabilir" + +msgid "token %1 has already occurred in this group" +msgstr "%1 sözcüğü bu grup içinde zaten var" + +msgid "the number of tokens in a group must not exceed GRPCNT (%1)" +msgstr "" +"bir gruptaki sözcüklerin sayısı GRPCNT ile belirtilenden büyük olmamalı (%1)" + +msgid "" +"an entity end in a literal must terminate an entity referenced in the same " +"literal" +msgstr "" +"bir sabit içindeki bir öğe sonu, aynı sabit içinde referanslı bir öğeyi " +"sonlandırmalıdır" + +msgid "character %1 invalid: only minimum data characters allowed" +msgstr "%1 karakteri geçersiz: sadece minimum veri karakterlerine izin var" + +msgid "" +"a parameter literal in a data tag pattern must not contain a numeric " +"character reference to a non-SGML character" +msgstr "" +"bir veri etiketi içindeki bir parametre sabiti, SGML olmayan bir karaktere " +"bir sayısal karakter başvurusu içermemelidir" + +msgid "" +"a parameter literal in a data tag pattern must not contain a numeric " +"character reference to a function character" +msgstr "" +"bir veri etiketi içindeki bir parametre sabiti, bir işlev karakterine bir " +"sayısal karakter başvurusu içermemelidir" + +msgid "" +"a name group is not allowed in a general entity reference in a start tag" +msgstr "" +"bir isim grubuna bir başlangıç etiketi içindeki bir genel öğe başvurusu " +"içinde izin verilmez" + +msgid "a name group is not allowed in a general entity reference in the prolog" +msgstr "" +"bir genel öğe başvurusu için izin verilmeyen bir isim grubu öndeyiş içinde" + +msgid "%1 is not a function name" +msgstr "%1 bir işlev ismi değil" + +msgid "%1 is not a character number in the document character set" +msgstr "%1 belge karakter kümesindeki bir karakter numarası değil" + +msgid "parameter entity %1 not defined" +msgstr "parametre öğesi %1 tanımlı değil" + +msgid "general entity %1 not defined and no default entity" +msgstr "genel öğe %1 tanımlı değil ve öntanımlı öğe yok" + +msgid "RNI delimiter must be followed by name start character" +msgstr "RNI ayracının ardından bir isim başlangıç karakteri gelmeli" + +msgid "unterminated comment: found end of entity inside comment" +msgstr "sonlandırımamış açıklama: açıklama içinde öğe sonuna rastlandı" + +msgid "comment started here" +msgstr "açıklama burada başlıyor" + +msgid "only one type of connector should be used in a single group" +msgstr "bir tek grup içinde sadece bir bağlayıcı türü kullanılmış olmalı" + +msgid "%1 is not a reserved name" +msgstr "%1 bir ayrılmış (rezervli) isim değil" + +msgid "%1 is not allowed as a reserved name here" +msgstr "burada %1 ayrılmış (rezervli) isim olarak kullanılamaz" + +msgid "" +"length of interpreted minimum literal must not exceed reference LITLEN (%1)" +msgstr "" +"yorumlanmış en küçük sabitin uzunluğu başvuru LITLEN değerini aşmamalı (%1)" + +msgid "" +"length of tokenized attribute value must not exceed LITLEN less NORMSEP (%1)" +msgstr "" +"kısaltılmış öznitelik değerinin uzunluğu LITLEN eksi NORMSEP değerinden " +"büyük olmamalı (%1)" + +msgid "length of system identifier must not exceed LITLEN (%1)" +msgstr "sistem belirtecinin uzunluğu LITLEN değerinden büyük olmamalı (%1)" + +msgid "length of interpreted parameter literal must not exceed LITLEN (%1)" +msgstr "" +"yorumlanmış parametre sabitinin uzunluğu LITLEN değerinden büyük olmamalı (%" +"1)" + +msgid "" +"length of interpreted parameter literal in data tag pattern must not exceed " +"DTEMPLEN (%1)" +msgstr "" +"bir veri etiketi kalıbı içindeki yorumlanmış parametre sabitinin uzunluğu " +"DTEMPLEN değerinden büyük olmamalı (%1)" + +msgid "literal is missing closing delimiter" +msgstr "sabitte kapatma ayracı eksik" + +msgid "%1 invalid: only %2 and parameter separators are allowed" +msgstr "%1 geçersiz: sadece %2 ve parametre ayracına izin var" + +msgid "%1 invalid: only %2 and token separators are allowed" +msgstr "%1 geçersiz: sadece %2 ve sözcük ayracına izin var" + +msgid "unknown declaration type %1" +msgstr "bildirim türü %1 bilinmiyor" + +msgid "%1 declaration not allowed in DTD subset" +msgstr "%1 bildirimine DTD alt kümesinde izin verilmiyor" + +msgid "character %1 not allowed in declaration subset" +msgstr "%1 karakterine DTD alt kümesinde izin verilmiyor" + +msgid "end of document in DTD subset" +msgstr "DTD alt kümesinde belge sonu" + +msgid "character %1 not allowed in prolog" +msgstr "öndeyiş içinde %1 karakterine izin verilmez" + +msgid "end of document in prolog" +msgstr "öndeyiş içinde belge sonu" + +msgid "%1 declaration not allowed in prolog" +msgstr "öndeyiş içinde %1 bildirimine izin verilmez" + +msgid "%1 used both a rank stem and generic identifier" +msgstr "%1 hem bir sıralama kökü hem de genel belirteç olarak kullanılmış" + +msgid "" +"omitted tag minimization parameter can be omitted only if OMITTAG NO is " +"specified" +msgstr "" +"etiket küçültme parametresi atlanmış; bu sadece OMITTAG NO belirtilmişse " +"yapılabilir" + +msgid "element type %1 already defined" +msgstr "eleman türü %1 zaten tanımlı" + +msgid "entity reference with no applicable DTD" +msgstr "uygulanabilir olmayan DTD ile öğe başvurusu" + +msgid "" +"invalid comment declaration: found %1 outside comment but inside comment " +"declaration" +msgstr "" +"açıklama bildirimi geçersiz: %1 açıklamanın dışında, açıklama bildiriminin " +"iseiçinde bulunuyor" + +msgid "comment declaration started here" +msgstr "açıklama bildirimi burada başlıyor" + +msgid "%1 declaration not allowed in instance" +msgstr "%1 bildirimine belge içinde izin verilmez" + +msgid "non-SGML character not allowed in content" +msgstr "içerikte SGML olmayan karaktere izin verilmez" + +msgid "no current rank for rank stem %1" +msgstr "sıralama kökü %1 için mevcut bir sıralama yok" + +msgid "duplicate attribute definition list for notation %1" +msgstr "%1 sözdizimi için öznitelik tanım listesi tekrarlanmış" + +msgid "duplicate attribute definition list for element %1" +msgstr "eleman %1 için öznitelik tanım listesi tekrarlanmış" + +msgid "entity end not allowed in end tag" +msgstr "bitiş etiketinde öğe sonuna izin verilmez" + +msgid "character %1 not allowed in end tag" +msgstr "bitiş etiketinde %1 karakterine izin verilmez" + +msgid "%1 invalid: only S separators and TAGC allowed here" +msgstr "%1 geçersiz: burada sadece S ayraçlarına ve TAGC'ye izin var" + +msgid "character data is not allowed here" +msgstr "burada karakter verisine izin verilmez" + +msgid "document type does not allow element %1 here" +msgstr "belge türü burada %1 elemanına izin vermez" + +msgid "" +"document type does not allow element %1 here; missing one of %2 start-tag" +msgstr "" +"belge türü burada %1 elemanına izin vermez; %2 başlangıç etiketinin biri " +"eksik" + +msgid "" +"document type does not allow element %1 here; assuming missing %2 start-tag" +msgstr "" +"belge türü burada %1 elemanına izin vermez; %2 başlangıç etiketi eksik kabul " +"ediliyor" + +msgid "no start tag specified for implied empty element %1" +msgstr "örtük boş eleman %1 için başlangıç etiketi belirtilmemiş" + +msgid "end tag for %1 omitted, but its declaration does not permit this" +msgstr "%1 için bitiş etiketi eksik ama bildirimi buna izin vermez" + +msgid "start tag was here" +msgstr "başlangıç etiketi buradaydı" + +msgid "end tag for %1 omitted, but OMITTAG NO was specified" +msgstr "%1 için bitiş etiketi eksik, ama OMITTAG NO belirtilmişti." + +msgid "start tag omitted for element %1 with declared content" +msgstr "bildirimli içeriği olan %1 elemanının başlangıç etiketi eksik" + +msgid "end tag for %1 which is not finished" +msgstr "bitirilmemiş olan %1 için bitiş etiketi" + +msgid "start tag for %1 omitted, but its declaration does not permit this" +msgstr "%1 için başlangıç etiketi eksik, ama bildirimi buna izin vermiyor" + +msgid "number of open elements exceeds TAGLVL (%1)" +msgstr "açık elemanların sayısı TAGLVL değerinden büyük (%1)" + +msgid "element %1 undefined" +msgstr "eleman %1 tanımsız" + +msgid "empty end tag but no open elements" +msgstr "bitiş etiketi boş ama açık eleman yok" + +msgid "%1 not finished but containing element ended" +msgstr "%1 bitmemiş ama onu içeren eleman bitti" + +msgid "end tag for element %1 which is not open" +msgstr "açılmamış %1 elemanı için bitiş etiketi" + +msgid "internal parameter entity %1 cannot be CDATA or SDATA" +msgstr "dahili parametre öğesi %1 CDATA ya da SDATA olamaz" + +msgid "character %1 not allowed in attribute specification list" +msgstr "öznitelik belirtim listesinde %1 karakterine izin verilmez" + +msgid "" +"an attribute value must be a literal unless it contains only name characters" +msgstr "" +"sadece isim karakterleri içermedikçe bir öznitelik değeri bir sabit değer " +"olmalıdır" + +msgid "" +"entity end not allowed in attribute specification list except in attribute " +"value literal" +msgstr "" +"öznitelik belirtim listesi içinde öğe sonuna izin verilmez, istisnası " +"öznitelik değer sabiti içinde olmasıdır" + +msgid "external parameter entity %1 cannot be CDATA, SDATA, NDATA or SUBDOC" +msgstr "harici parametre öğesi %1 CDATA, SDATA, NDATA ya da SUBDOC olamaz" + +msgid "duplicate declaration of entity %1" +msgstr "%1 öğesinin bildirimi tekrarlanmış" + +msgid "duplicate declaration of parameter entity %1" +msgstr "%1 parametre öğesinin bildirimi tekrarlanmış" + +msgid "" +"a reference to a PI entity is allowed only in a context where a processing " +"instruction could occur" +msgstr "" +"bir PI öğesine bir başvuruya sadece PI'yi içeren bağlam içinde izin verilir" + +msgid "" +"a reference to a CDATA or SDATA entity is allowed only in a context where a " +"data character could occur" +msgstr "" +"bir CDATA veya SDATA öğesine başvuruya sadece bir veri karakteri içeren bir " +"bağlam içinde izin verilir" + +msgid "" +"a reference to a subdocument entity or external data entity is allowed only " +"in a context where a data character could occur" +msgstr "" +"bir alt belge öğesine ya da bir dış veri öğesine bir başvuruya sadece bir " +"veri karakteri içeren bir bağlam içinde izin verilir" + +msgid "" +"a reference to a subdocument entity or external data entity is not allowed " +"in replaceable character data" +msgstr "" +"bir alt belge öğesine ya da bir dış veri öğesine bir başvuruya " +"değiştirilebilir karakter verisi içinde izin verilmez" + +msgid "the number of open entities cannot exceed ENTLVL (%1)" +msgstr "açık öğelerin sayısı ENTLVL'den (%1) fazla olamaz" + +msgid "a reference to a PI entity is not allowed in replaceable character data" +msgstr "" +"bir PI öğesine bir başvuruya değiştirilebilir karakter verisi içinde izin " +"verilmez" + +msgid "entity %1 is already open" +msgstr "%1 öğesi zaten açık" + +msgid "short reference map %1 not defined" +msgstr "kısa başvuru eşlemi %1 tanımlı değil" + +msgid "short reference map in DTD must specify associated element type" +msgstr "DTD içinde kısa başvuru eşlemi, eleman türü ile ilişkili belirtilmeli" + +msgid "" +"short reference map in document instance cannot specify associated element " +"type" +msgstr "belge içinde kısa başvuru eşlemi, ilişkili eleman türünü belirtemez" + +msgid "short reference map %1 for element %2 not defined in DTD" +msgstr "eleman %2 için kısa başvuru eşlemi %1 DTD içinde tanımlı değil" + +msgid "%1 is not a short reference delimiter" +msgstr "%1 bir kısa başvuru ayracı değil" + +msgid "short reference delimiter %1 already mapped in this declaration" +msgstr "kısa başvuru ayracı %1 bu bildirimde zaten eşleştirilmiş" + +msgid "no document element" +msgstr "belge elemanı yok" + +msgid "entity end not allowed in processing instruction" +msgstr "işlem komutunda öğe sonuna izin verilmez" + +msgid "length of processing instruction must not exceed PILEN (%1)" +msgstr "PI uzunluğu PILEN'den (%1) büyük olmamalı" + +msgid "missing PIC delimiter" +msgstr "PIC ayracı eksik" + +msgid "an attribute specification must start with a name or name token" +msgstr "bir öznitelik belirtimi bir isim ya da isim sözcüğü ile başlamalı" + +msgid "%1 is not a member of a group specified for any attribute" +msgstr "%1 herhangi bir öznitelik için belirtilmiş bir grubun bir üyesi değil" + +msgid "" +"the name and VI delimiter can be omitted from an attribute specification " +"only if SHORTTAG YES is specified" +msgstr "" +"isim ve VI ayracı sadece SHORTTAG YES belirtilmişse bir öznitelik " +"belirtiminde atlanabilir" + +msgid "there is no attribute %1" +msgstr "öznitelik %1 yok" + +msgid "" +"an attribute value specification must start with a literal or a name " +"character" +msgstr "" +"bir öznitelik değer belirtimi bir sabit değer ya da bir isim karakteri ile " +"başlamalı" + +msgid "length of name token must not exceed NAMELEN (%1)" +msgstr "isim sözcüğünün uzunluğu NAMELEN'den (%1) büyük olmamalı" + +msgid "" +"an attribute value literal can occur in an attribute specification list only " +"after a VI delimiter" +msgstr "" +"bir öznitelik değer sabiti sadece bir VI ayracından sonra bir öznitelik " +"belirtim listesi içinde bulunabilir." + +msgid "duplicate specification of attribute %1" +msgstr "%1 öznitelik belirtimi tekrarlanmış" + +msgid "duplicate definition of attribute %1" +msgstr "%1 öznitelik tanımı tekrarlanmış" + +msgid "" +"data attribute specification must be omitted if attribute specification list " +"is empty" +msgstr "öznitelik belirtimi, öznitelik belirtim listesi boşsa atlanmalıdır" + +msgid "marked section end not in marked section declaration" +msgstr "imli bölüm sonu imli bölüm bildirimi içinde değil" + +msgid "number of open marked sections must not exceed TAGLVL (%1)" +msgstr "açık imli bölümlerin sayısı TAGLVL'den (%1) büyük olmamalı" + +msgid "missing marked section end" +msgstr "imli bölüm sonu eksik" + +msgid "marked section started here" +msgstr "imli bölüm burada başlıyor" + +msgid "" +"entity end in character data, replaceable character data or ignored marked " +"section" +msgstr "" +"karakter verisi, değiştirilebilir karakter verisi ya da yoksayılmış imli " +"bölüm içinde öğe sonu" + +msgid "" +"normalized length of attribute value literal must not exceed LITLEN (%1); " +"length was %2" +msgstr "" +"öznitelik değer sabitinin normalleştirilmiş uzunluğu LITLEN'den (%1) büyük " +"olmamalı; uzunluğu %2" + +msgid "syntax of attribute value does not conform to declared value" +msgstr "öznitelik değerinin yazımı bildirilen değere uygun değil" + +msgid "character %1 is not allowed in the value of attribute %2" +msgstr "%1 karakterine, %2 öznitelik değerinin içinde izin verilmez" + +msgid "value of attribute %1 must be a single token" +msgstr "%1 öznitelik değeri bir tek sözcük olmalı" + +msgid "value of attribute %2 invalid: %1 cannot start a number token" +msgstr "%2 öznitelik değeri geçersiz: %1 bir sayı sözcüğü başlatamaz" + +msgid "value of attribute %2 invalid: %1 cannot start a name" +msgstr "%2 öznitelik değeri geçersiz: %1 bir isim başlatamaz" + +msgid "non-impliable attribute %1 not specified but OMITTAG NO and SHORTTAG NO" +msgstr "" +"OMITTAG NO ve SHORTTAG NO olduğu halde örtük olamayan öznitelik %1 " +"belirtilmemiş" + +msgid "required attribute %1 not specified" +msgstr "gerekli öznitelik %1 belirtilmemiş" + +msgid "first occurrence of CURRENT attribute %1 not specified" +msgstr "%1 CURRENT özniteliğinin ilk kullanımı belirtilmemiş" + +msgid "%1 is not a notation name" +msgstr "%1 bir sözdizimi ismi değil" + +msgid "%1 is not a general entity name" +msgstr "%1 bir genel öğe ismi değil" + +msgid "value of attribute %2 cannot be %1; must be one of %3" +msgstr "%2 özniteliğinin değeri %1 olamaz; %3 ün biri olmalı" + +msgid "%1 is not a data or subdocument entity" +msgstr "%1 bir veri ya da alt belge öğesi değil" + +msgid "" +"content model is ambiguous: when no tokens have been matched, both the %2 " +"and %3 occurrences of %1 are possible" +msgstr "" +"içerik modeli belirsiz: hiç bir sözcük eşleşmediğinde %1 in hem %2, hem de %" +"3 kullanımı mümkün." + +msgid "" +"content model is ambiguous: when the current token is the %2 occurrence of %" +"1, both the %4 and %5 occurrences of %3 are possible" +msgstr "" +"içerik modeli belirsiz: sözcük, %1 in %2 kullanımı olduğunda, %3 ün hem %4, " +"hem de %5 kullanımı mümkün." + +msgid "" +"content model is ambiguous: when the current token is the %2 occurrence of %" +"1 and the innermost containing AND group has been matched, both the %4 and %" +"5 occurrences of %3 are possible" +msgstr "" +"içerik modeli belirsiz: sözcük, %1 in %2 kullanımında ve en içte eşleşmiş " +"AND grubunu içerdiğinde, %3 ün hem %4, hem de %5 kullanımı mümkün." + +msgid "" +"content model is ambiguous: when the current token is the %2 occurrence of %" +"1 and the innermost %3 containing AND groups have been matched, both the %5 " +"and %6 occurrences of %4 are possible" +msgstr "" +"içerik modeli belirsiz: sözcük, %1 in %2 kullanımında ve en içte %3 eşleşmiş " +"AND grubunu içerdiğinde, %4 ün hem %5, hem de %6 kullanımı mümkün." + +msgid "" +"invalid comment declaration: found character %1 outside comment but inside " +"comment declaration" +msgstr "" +"açıklama bildirimi geçersiz: %1 karakteri açıklamanın dışında ama açıklama " +"bildiriminin içinde bulunuyor" + +msgid "non SGML character number %1" +msgstr "SGML olmayan karakter numarası %1" + +msgid "data or replaceable character data in declaration subset" +msgstr "bildirim alt kümesi içinde veri ya da değiştirilebilir karakter verisi" + +msgid "ID %1 already defined" +msgstr "ID %1 zaten tanımlı" + +msgid "ID %1 first defined here" +msgstr "ID %1 ilk burada tanımlı" + +msgid "value of fixed attribute %1 not equal to default" +msgstr "%1 sabit özniteliğinin değeri öntanımlısına eşit değil" + +msgid "" +"character %1 is not significant in the reference concrete syntax and so " +"cannot occur in a comment in the SGML declaration" +msgstr "" +"%1. karakter başvuru belirleme yazımı içinde anlamlı değil, dolayısıyla SGML " +"bildirimindeki bir açıklama içinde olamaz" + +msgid "" +"minimum data of first minimum literal in SGML declaration must be \"ISO " +"8879:1986\" or \"ISO 8879:1986 (ENR)\" or \"ISO 8879:1986 (WWW)\" not %1" +msgstr "" +"SGML bildirimindeki ilk en küçük sabitin en küçük verisi %1 değil, \"ISO " +"8879:1986\" veya \"ISO 8879:1986 (ENR)\" ya da \"ISO 8879:1986 (WWW)\" olmalı" + +msgid "parameter before LCNMSTRT must be NAMING not %1" +msgstr "LCNMSTRT'den önceki parametre %1 değil NAMING olmalı" + +msgid "" +"unexpected entity end in SGML declaration: only %1, S separators and " +"comments allowed" +msgstr "" +"SGML bildirimde beklenmeyen öğe sonu: sadece %1, S ayracı ve açıklamalar " +"bulunabilir" + +msgid "%1 invalid: only %2 and parameter separators allowed" +msgstr "%1 geçersiz: sadece %2 ve parametre ayraçlarına izin var" + +msgid "magnitude of %1 too big" +msgstr "%1 im genliği çok büyük" + +msgid "" +"character %1 is not significant in the reference concrete syntax and so " +"cannot occur in a literal in the SGML declaration except as the replacement " +"of a character reference" +msgstr "" +"%1. karakter başvuru belirleme yazımı içinde anlamlı değil, dolayısıyla bir " +"karakter başvurusu ile yerdeğiştirmek dışında SGML bildirimindeki bir sabit " +"içinde olamaz " + +msgid "%1 is not a valid syntax reference character number" +msgstr "%1 geçerli bir yazım başvurusu karakter numarası değil" + +msgid "a parameter entity reference cannot occur in an SGML declaration" +msgstr "bir parametre öğesi başvurusu bir SGML bildirimi içinde görünemez" + +msgid "cannot continue because of previous errors" +msgstr "önceki hatalardan dolayı devam edilemiyor" + +msgid "" +"SGML declaration cannot be parsed because the character set does not contain " +"characters having the following numbers in ISO 646: %1" +msgstr "" +"SGML bildirimi, karakter kümesi aşağıdaki ISO 646 karakter numaralarını " +"içermediğinden çözümlenemiyor: %1" + +msgid "" +"the specified character set is invalid because it does not contain the " +"minimum data characters having the following numbers in ISO 646: %1" +msgstr "" +"belirtilen karakter kümesi, aşağıdaki ISO 646 karakter numaralarını " +"içermediğinden geçersizdir: %1" + +msgid "character numbers declared more than once: %1" +msgstr "bir defadan fazla bildirilen karakter numaraları: %1" + +msgid "character numbers should have been declared UNUSED: %1" +msgstr "UNUSED olarak bildirilmiş olması gereken karakter numaraları: %1" + +msgid "character numbers missing in base set: %1" +msgstr "temel kümede olmayan karakter numaraları: %1" + +msgid "" +"characters in the document character set with numbers exceeding %1 not " +"supported" +msgstr "" +"belge karakter kümesindeki %1 den büyük numaralı karakterler desteklenmiyor" + +msgid "invalid formal public identifier %1: missing //" +msgstr "biçimsel genel belirteç %1 geçersiz: // eksik" + +msgid "invalid formal public identifier %1: no SPACE after public text class" +msgstr "" +"biçimsel genel belirteç %1 geçersiz: genel metin sınıfından sonra SPACE yok" + +msgid "invalid formal public identifier %1: invalid public text class" +msgstr "biçimsel genel belirteç %1 geçersiz: genel metin sınıfı geçersiz" + +msgid "" +"invalid formal public identifier %1: public text language must be a name " +"containing only upper case letters" +msgstr "" +"biçimsel genel belirteç %1 geçersiz: genel metin dili sadece büyük harfler " +"içeren bir isim olmalı" + +msgid "" +"invalid formal public identifer %1: public text display version not " +"permitted with this text class" +msgstr "" +"biçimsel genel belirteç %1 geçersiz: genel metin bu metin sınıfına izin " +"vermeyen bir sürümü gösteriyor" + +msgid "invalid formal public identifier %1: extra field" +msgstr "biçimsel genel belirteç %1 geçersiz: fazladan alan" + +msgid "" +"public text class of public identifier in notation identifier must be " +"NOTATION" +msgstr "" +"notation belirtecindeki public belirtecinin genel metin sınıfı NOTATION " +"olmalı" + +msgid "base character set %1 is unknown" +msgstr "temel karakter kümesi %1 bilinmiyor" + +msgid "" +"delimiter set is ambiguous: %1 and %2 can be recognized in the same mode" +msgstr "ayraç kümesi belirsiz: %1 ve %2 aynı kipte tanınamıyor" + +msgid "" +"characters with the following numbers in the syntax reference character set " +"are significant in the concrete syntax but are not in the document character " +"set: %1" +msgstr "" +"aşağıda yazım başvuru karakter kümesindeki numaraları bulunan karakterler, " +"ana sözdizimi için önemlidir, fakat belge karakter kümesinde mevcut " +"değildir: %1" + +msgid "" +"there is no unique character in the document character set corresponding to " +"character number %1 in the syntax reference character set" +msgstr "" +"belge karakter kümesinde, yazım başvuru karakter kümesi içindeki %1 numaralı " +"karaktere karşı düşen hiçbir karakter yok" + +msgid "" +"there is no unique character in the internal character set corresponding to " +"character number %1 in the syntax reference character set" +msgstr "" +"dahili karakter kümesinde, yazım başvuru karakter kümesi içindeki %1 " +"numaralı karaktere karşı düşen hiçbir karakter yok" + +msgid "" +"the character with number %1 in ISO 646 is significant but has no " +"representation in the syntax reference character set" +msgstr "" +"ISO 646 içinde %1 numara ile gösterilen karakter önemli ama yazım başvuru " +"karakter kümesinde karşılığı yok" + +msgid "capacity set %1 is unknown" +msgstr "sığa kümesi %1 bilinmiyor" + +msgid "capacity %1 already specified" +msgstr "sığa %1 zaten belirtilmiş" + +msgid "value of capacity %1 exceeds value of TOTALCAP" +msgstr "%1 sığa değeri TOTALCAP değerinden büyük" + +msgid "syntax %1 is unknown" +msgstr "%1 yazımı bilinmiyor" + +msgid "UCNMSTRT must have the same number of characters as LCNMSTRT" +msgstr "UCNMSTRT, LCNMSTRT ile aynı sayıda karaktere sahip olmalı" + +msgid "UCNMCHAR must have the same number of characters as LCNMCHAR" +msgstr "UCNMCHAR, LCNMCHAR ile aynı sayıda karaktere sahip olmalı" + +msgid "" +"number of open subdocuments exceeds quantity specified for SUBDOC parameter " +"in SGML declaration (%1)" +msgstr "" +"açık alt belgelerin sayısı, SGML bildirimindeki SUBDOC parametresi için " +"belirtilen değerden büyük (%1)" + +msgid "entity %1 declared SUBDOC, but SUBDOC NO specified in SGML declaration" +msgstr "" +"%1 öğesi SUBDOC olarak bildirilmiş ama SGML bildiriminde SUBDOC NO " +"belirtilmiş" + +msgid "" +"a parameter entity referenced in a parameter separator must end in the same " +"declaration" +msgstr "" +"bir parametre ayracında referanslı bir parametre öğesi aynı bildirimin " +"içinde bitmeli" + +msgid "reference to non-existent ID %1" +msgstr "mevcut olmayan %1 kimliğine başvuru" + +msgid "generic identifier %1 used in DTD but not defined" +msgstr "genel belirteç %1 kullanılmış ama DTD içinde tanımlı değil" + +msgid "%1 not finished but document ended" +msgstr "%1 bitmemiş ama belge bitti" + +msgid "cannot continue with subdocument because of previous errors" +msgstr "önceki hatalardan dolayı alt belgeye devam edilemiyor" + +msgid "no document type declaration; will parse without validation" +msgstr "" +"belge türü bildirimi yok; DTD doğrulaması olmaksızın çözümleme yapılacak" + +msgid "" +"no internal or external document type declaration subset; will parse without " +"validation" +msgstr "" +"dahili ya da harici belge türü bildirim alt kümesi yok;\n" +"DTD doğrulaması olmaksızın çözümleme yapılacak" + +msgid "this is not an SGML document" +msgstr "bu bir SGML biçemli belge değil" + +msgid "" +"length of start-tag before interpretation of literals must not exceed TAGLEN " +"(%1)" +msgstr "" +"sabitlerin yorumlanmasından önce başlangıç etiketinin uzunluğu TAGLEN " +"değerinden büyük olmamalı (%1)" + +msgid "" +"a parameter entity referenced in a token separator must end in the same group" +msgstr "" +"bir sözcük ayracında referanslı bir parametre öğesi aynı grubun içinde " +"bitmeli" + +msgid "" +"the following character numbers are shunned characters that are not " +"significant and so should have been declared UNUSED: %1" +msgstr "" +"aşağıdaki karakterler önemli değil ve dolayısıyla UNUSED olarak bildirilmesi " +"gereken karakterlerdir: %1" + +msgid "" +"there is no unique character in the specified document character set " +"corresponding to character number %1 in ISO 646" +msgstr "" +"belge karakter kümesinde, ISO 646 içinde %1 numarasını alan karaktere karşı " +"düşen hiçbir karakter yok" + +msgid "length of attribute value must not exceed LITLEN less NORMSEP (-%1)" +msgstr "" +"öznitelik değerinin uzunluğu LITLEN eksi NORMSEP'den küçük olmamalı (-%1)" + +msgid "" +"length of tokenized attribute value must not exceed LITLEN less NORMSEP (-%1)" +msgstr "" +"kısaltılmış öznitelik değerinin uzunluğu LITLEN eksi NORMSEP'den küçük " +"olmamalı (-%1)" + +msgid "" +"concrete syntax scope is INSTANCE but value of %1 quantity is less than " +"value in reference quantity set" +msgstr "" +"somut yazım etki alanı INSTANCE ama %1 nicelik değeri, başvuru nicelik " +"kümesindeki değerden daha küçük" + +msgid "" +"public text class of formal public identifier of base character set must be " +"CHARSET" +msgstr "" +"ana karakter kümesinin biçimsel genel belirtecinin genel metin sınıfı " +"CHARSET olmalı" + +msgid "" +"public text class of formal public identifier of capacity set must be " +"CAPACITY" +msgstr "" +"kapasite biçimsel genel belirtecinin genel metin sınıfı CAPACITY olmalı" + +msgid "" +"public text class of formal public identifier of concrete syntax must be " +"SYNTAX" +msgstr "" +"somut yazımın biçimsel genel belirtecinin genel metin sınıfı SYNTAX olmalı" + +msgid "when there is an MSOCHAR there must also be an MSICHAR" +msgstr "bir MSOCHAR'ın olduğu yerde bir de MSICHAR olmalı" + +msgid "" +"character number %1 in the syntax reference character set was specified as a " +"character to be switched but is not a markup character" +msgstr "" +"yazım karakter kümesi içindeki %1 numaralı karakter, değiştirilecek karakter " +"olarak belirtilmiş ama bir etiketleme dili karakteri değil" + +msgid "" +"character number %1 was specified as a character to be switched but is not " +"in the syntax reference character set" +msgstr "" +"%1 numaralı karakter, değiştirilecek karakter olarak belirtilmiş ama yazım " +"başvuru karakter kümesi içinde yok" + +msgid "" +"character numbers %1 in the document character set have been assigned the " +"same meaning, but this is the meaning of a significant character" +msgstr "" +"belge karakter kümesindeki %1 numaralı karakter aynı manada atanmış, ama bu " +"bir anlamlı karakter manasında" + +msgid "character number %1 assigned to more than one function" +msgstr "%1 numaralı karakter birden fazla işleve atanmış" + +msgid "%1 is already a function name" +msgstr "%1 zaten bir işlev ismi" + +msgid "" +"characters with the following numbers in ISO 646 are significant in the " +"concrete syntax but are not in the document character set: %1" +msgstr "" +"aşağıda ISO 646 numaraları yer alan karakterler somut yazım içinde anlamlı " +"ama belge karakter kümesinde yok: %1" + +msgid "general delimiter %1 consists solely of function characters" +msgstr "%1 genel ayracı sadece işlev karakterlerinden oluşuyor" + +msgid "letters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "LCNMCHAR, UCNMCHAR, LCNMSTRT veya UCNMSTRT olarak atanmış harfler: %1" + +msgid "digits assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "LCNMCHAR, UCNMCHAR, LCNMSTRT veya UCNMSTRT olarak atanmış rakamlar: %1" + +msgid "" +"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or " +"UCNMSTRT because it is RE" +msgstr "" +"%1 numaralı karakter bir RE olduğundan LCNMCHAR, UCNMCHAR, LCNMSTRT veya " +"UCNMSTRT olarak atanamaz" + +msgid "" +"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or " +"UCNMSTRT because it is RS" +msgstr "" +"%1 numaralı karakter bir RS olduğundan LCNMCHAR, UCNMCHAR, LCNMSTRT veya " +"UCNMSTRT olarak atanamaz" + +msgid "" +"character number %1 cannot be assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or " +"UCNMSTRT because it is SPACE" +msgstr "" +"%1 numaralı karakter bir SPACE olduğundan LCNMCHAR, UCNMCHAR, LCNMSTRT veya " +"UCNMSTRT olarak atanamaz" + +msgid "" +"separator characters assigned to LCNMCHAR, UCNMCHAR, LCNMSTRT or UCNMSTRT: %1" +msgstr "" +"LCNMCHAR, UCNMCHAR, LCNMSTRT veya UCNMSTRT olarak atanmış ayraç " +"karakterleri: %1" + +msgid "" +"character number %1 cannot be switched because it is a Digit, LC Letter or " +"UC Letter" +msgstr "" +"%1 karakter numarası bir rakam, bir büyük ya da küçük harf olmadığından " +"seçilemez." + +msgid "pointless for number of characters to be 0" +msgstr "karakter adedinin 0 olması anlamlı değildir" + +msgid "" +"%1 cannot be the replacement for a reference reserved name because it is " +"another reference reserved name" +msgstr "" +"%1 başka bir başvuru ayrılmış (rezervli) isim olduğundan bir başvuru " +"ayrılmış isim yerine kullanılamaz" + +msgid "" +"%1 cannot be the replacement for a reference reserved name because it is the " +"replacement of another reference reserved name" +msgstr "" +"%1 başka bir başvuru ayrılmış (rezervli) isim yerine kullanıldığından bir " +"başvuru ayrılmış (rezervli) isim yerine kullanılamaz" + +msgid "replacement for reserved name %1 already specified" +msgstr "ayrılmış (rezervli) isim %1 yerine geçecek isim zaten belirtilmiş" + +msgid "%1 is not a valid name in the declared concrete syntax" +msgstr "%1, bildirimli somut yazım içinde geçerli bir isim değil" + +msgid "" +"%1 is not a valid short reference delimiter because it has more than one B " +"sequence" +msgstr "" +"%1, birden fazla B dizilimine sahip olduğundan geçerli bir kısa başvuru " +"ayracı değil" + +msgid "" +"%1 is not a valid short reference delimiter because it is adjacent to a " +"character that can occur in a blank sequence" +msgstr "" +"%1, bir boş dizilim içinde görülebilen bir karaktere bitişik olduğundan " +"geçerli bir kısa başvuru ayracı değil" + +msgid "length of delimiter %1 exceeds NAMELEN (%2)" +msgstr "%1 ayracının uzunluğu NAMELEN ile belirtilen değeri (%2) aşıyor" + +msgid "length of reserved name %1 exceeds NAMELEN (%2)" +msgstr "yedek isim %1 uzunluğu NAMELEN ile belirtilen değeri (%2) aşıyor" + +msgid "" +"character numbers assigned to both LCNMCHAR or UCNMCHAR and LCNMSTRT or " +"UCNMSTRT: %1" +msgstr "" +"LCNMCHAR veya UCNMCHAR ile LCNMSTRT veya UCNMSTRT birlikte atanmış " +"karakterlerin numaraları: %1" + +msgid "" +"when the concrete syntax scope is INSTANCE the syntax reference character " +"set of the declared syntax must be the same as that of the reference " +"concrete syntax" +msgstr "" +"somut yazım bağlamı INSTANCE olduğu zaman, belirtilen yazımın yazım referans " +"karakter kümesi referans somut yazımı ile aynı olmalıdır" + +msgid "" +"end-tag minimization should be O for element with declared content of EMPTY" +msgstr "" +"içeriği EMPTY olarak bildirilen eleman için bitiş etiketinin küçültülmesi O " +"olmalı" + +msgid "" +"end-tag minimization should be O for element %1 because it has CONREF " +"attribute" +msgstr "" +"CONREF özniteliğine sahip olduğundan bitiş etiketinin küçültülmesi %1 " +"elemanı için O olmalı" + +msgid "element %1 has a declared content of EMPTY and a CONREF attribute" +msgstr "" +"%1 elemanı, EMPTY olarak bildirilmiş bir değer ve bir CONREF özniteliğine " +"sahip" + +msgid "element %1 has a declared content of EMPTY and a NOTATION attribute" +msgstr "" +"%1 elemanı, EMPTY olarak bildirilmiş bir değer ve bir NOTATION özniteliğine " +"sahip" + +msgid "" +"declared value of data attribute cannot be ENTITY, ENTITIES, ID, IDREF, " +"IDREFS or NOTATION" +msgstr "" +"veri özniteliğinin bildirim değeri ENTITY, ENTITIES, ID, IDREF, IDREFS ya da " +"NOTATION olamaz" + +msgid "default value of data attribute cannot be CONREF or CURRENT" +msgstr "veri özniteliğinin öntanımlı değeri CONREF veya CURRENT olamaz" + +msgid "number of attribute names and name tokens (%1) exceeds ATTCNT (%2)" +msgstr "" +"öznitelik isimlerinin ve isim sözcüklerinin sayısı (%1) ATTCNT ile " +"belirlenen sayıyı (%2) aşıyor" + +msgid "" +"if the declared value is ID the default value must be IMPLIED or REQUIRED" +msgstr "Belirtilmiş değer ID ise öntanımlı değer IMPLIED veya REQUIRED olmalı" + +msgid "" +"the attribute definition list already declared attribute %1 as the ID " +"attribute" +msgstr "" +"öznitelik %1, öznitelik tanım listesinde zaten ID özniteliği olarak " +"belirtilmiş" + +msgid "" +"the attribute definition list already declared attribute %1 as the NOTATION " +"attribute" +msgstr "" +"öznitelik %1, öznitelik tanım listesinde zaten NOTATION özniteliği olarak " +"belirtilmiş" + +msgid "token %1 occurs more than once in attribute definition list" +msgstr "%1 sözcüğü öznitelik tanım listesinde birden fazla yerde görünüyor" + +msgid "no attributes defined for notation %1" +msgstr "%1 sözdizimi için öznitelik atanmamış" + +msgid "notation %1 for entity %2 undefined" +msgstr "öğe %2 için %1 sözdizimi tanımsız" + +msgid "entity %1 undefined in short reference map %2" +msgstr "%2 kısa başvuru eşleminde öğe %1 tanımsız" + +msgid "notation %1 is undefined but had attribute definition" +msgstr "öznitelik tanımı var ama %1 sözdizimi tanımsız" + +msgid "" +"length of interpreted parameter literal in bracketed text plus the length of " +"the bracketing delimiters must not exceed LITLEN (%1)" +msgstr "" +"parantezli ayraçlarla parantezli metinin yorumlanmış parametre sabitinin " +"toplamuzunluğu LITLEN ile belirtilmiş değeri (%1) aşmamalıdır" + +msgid "" +"length of rank stem plus length of rank suffix must not exceed NAMELEN (%1)" +msgstr "" +"sıralama kökü ile sıralama sonekinin uzunluklarının toplamı NAMELEN (%1) ile " +"belirtilen değeri aşmamalıdır" + +msgid "document instance must start with document element" +msgstr "belge document elemanı ile başlamalı" + +msgid "content model nesting level exceeds GRPLVL (%1)" +msgstr "" +"içerik modelinin iç içelik sayısı GRPLVL ile belirtilen değeri (%1) aşıyor" + +msgid "grand total of content tokens exceeds GRPGTCNT (%1)" +msgstr "" +"içerik sözcüklerinin genel toplamı GRPGTCNT ile belirtilen değeri (%1) aşıyor" + +msgid "unclosed start-tag requires SHORTTAG YES" +msgstr "kapanmayan başlangıç etiketleri SHORTTAG YES gerektirir" + +msgid "NET-enabling start-tag requires SHORTTAG YES" +msgstr "NET-etkin başlangıç etiketleri SHORTTAG YES gerektirir" + +msgid "unclosed end-tag requires SHORTTAG YES" +msgstr "kapanmayan bitiş etiketleri SHORTTAG YES gerektirir" + +msgid "DTDs other than base allowed only if CONCUR YES or EXPLICIT YES" +msgstr "" +"ana DTD dışındaki DTD'lere sadece CONCUR YES ya da EXPLICIT YES ise izin " +"verilir" + +msgid "end of entity other than document entity after document element" +msgstr "" +"document elemanından sonraki öğe sonlandırması document öğesininkinden farklı" + +msgid "%1 declaration illegal after document element" +msgstr "document elemanından sonraki %1 bildirimi kuraldışı" + +msgid "character reference illegal after document element" +msgstr "document elemanından sonraki karakter başvurusu kuraldışı" + +msgid "entity reference illegal after document element" +msgstr "document elemanından sonraki öğe başvurusu kuraldışı" + +msgid "marked section illegal after document element" +msgstr "document elemanından sonraki imli bölüm kuraldışı" + +msgid "" +"the %1 occurrence of %2 in the content model for %3 cannot be excluded at " +"this point because it is contextually required" +msgstr "" +"%3 içerik modelindeki %2 nin %1 görünümü bağlamsal olarak gerekli olduğundan " +"bu noktada dışlanamaz. " + +msgid "" +"the %1 occurrence of %2 in the content model for %3 cannot be excluded " +"because it is neither inherently optional nor a member of an OR group" +msgstr "" +"%3 içerik modelindeki %2 nin %1 görünümü, kalıtsal olarak seçimlik ya da bir " +"OR grubunun üyesi olmadığından dışlanamaz" + +msgid "" +"an attribute value specification must be an attribute value literal unless " +"SHORTTAG YES is specified" +msgstr "" +"bir öznitelik değer belirtimi SHORTTAG YES belirtilmedikçe bir öznitelik " +"değeri sabiti olmalıdır" + +msgid "" +"value cannot be specified both for notation attribute and content reference " +"attribute" +msgstr "" +"değer, hem sözdizimi özniteliği hem de içerik başvurusu özniteliği olarak " +"belirtilemez" + +msgid "notation %1 already defined" +msgstr "%1 sözdizimi zaten tanımlı" + +msgid "short reference map %1 already defined" +msgstr "%1 kısa başvuru eşlemi zaten tanımlı" + +msgid "first defined here" +msgstr "ilk burada tanımlanmış" + +msgid "general delimiter role %1 already defined" +msgstr "genel ayraç rolü %1 zaten tanımlı" + +msgid "number of ID references in start-tag must not exceed GRPCNT (%1)" +msgstr "" +"başlangıç etiktindeki ID başvurularının sayısı GRPCNT ile belirtilen değeri " +"(%1) aşamaz" + +msgid "" +"number of entity names in attribute specification list must not exceed " +"GRPCNT (%1)" +msgstr "" +"öznitelik belirtim listesindeki öğe isimlerinin sayısı GRPCNT ile belirtilen " +"değeri (%1) aşmamalıdır" + +msgid "" +"normalized length of attribute specification list must not exceed ATTSPLEN (%" +"1); length was %2" +msgstr "" +"öznitelik belirtim listesinin normalleştirilmiş uzunluğu ATTSPLEN ile " +"belirtilen değeri (%1) aşmamalıdır; uzunluk %2 idi" + +msgid "short reference delimiter %1 already specified" +msgstr "kısa başvuru ayracı %1 zaten belirtilmiş" + +msgid "" +"single character short references were already specified for character " +"numbers: %1" +msgstr "" +"tek karakter kısa başvuruları bu karakterler için zaten belirtilmiş: %1" + +msgid "default entity used in entity attribute %1" +msgstr "öntanımlı öğe, öğe özniteliği %1 içinde kullanılmış" + +msgid "reference to entity %1 uses default entity" +msgstr "%1 öğesine başvuru öntanımlı öğe kullanıyor" + +msgid "entity %1 in short reference map %2 uses default entity" +msgstr "" +"kısa başvuru listesi %2 içindeki %1 öğesine başvuru öntanımlı öğe kullanıyor" + +msgid "no DTD %1 declared" +msgstr "%1 diye bir DTD bildirilmemiş" + +msgid "LPD %1 has neither internal nor external subset" +msgstr "LPD %1, ne iç ne de dış alt kümeye sahip" + +msgid "element types have different link attribute definitions" +msgstr "eleman türleri farklı öznitelik tanımlarına sahip" + +msgid "link set %1 already defined" +msgstr "bağ kümesi %1 zaten tanımlı" + +msgid "empty result attribute specification" +msgstr "sonuç öznitelik belirtimi boş" + +msgid "no source element type %1" +msgstr "%1 diye bir kaynak eleman türü yok" + +msgid "no result element type %1" +msgstr "%1 diye bir sonuç eleman türü yok" + +msgid "end of document in LPD subset" +msgstr "LPD alt kümesinde belge sonu" + +msgid "%1 declaration not allowed in LPD subset" +msgstr "LPD alt kümesinde %1 bildirimine izin verilmez" + +msgid "ID link set declaration not allowed in simple link declaration subset" +msgstr "" +"basit bağ bildirimi alt kümesi içinde ID bağ kümesi bildirimine izin verilmez" + +msgid "link set declaration not allowed in simple link declaration subset" +msgstr "" +"basit bağ bildirimi alt kümesi içinde bağ kümesi bildirimine izin verilmez" + +msgid "" +"attributes can only be defined for base document element (not %1) in simple " +"link declaration subset" +msgstr "" +"öznitelikler sadece basit bağ bildirimi alt kümesi içindeki (%1 değil) ana " +"belge elemanı için tanımlı olmalıdır" + +msgid "a short reference mapping declaration is allowed only in the base DTD" +msgstr "bir kısa başvuru eşleme bildirimine sadece ana DTD içinde izin verilir" + +msgid "a short reference use declaration is allowed only in the base DTD" +msgstr "" +"bir kısa başvuru kullanma bildirimine sadece ana DTD içinde izin verilir" + +msgid "default value of link attribute cannot be CURRENT or CONREF" +msgstr "bağ özniteliğinin öntanımlı değeri CURRENT ya da CONREF olamaz" + +msgid "" +"declared value of link attribute cannot be ID, IDREF, IDREFS or NOTATION" +msgstr "" +"bağ özniteliğinin bildirim değeri ID, IDREF, IDREFS ya da NOTATION olamaz" + +msgid "only fixed attributes can be defined in simple LPD" +msgstr "sadece sabit öznitelikler, basit LPD içinde tanımlı olabilir" + +msgid "only one ID link set declaration allowed in an LPD subset" +msgstr "" +"bir LPD alt kümesi içinde sadece bir ID bağ kümesi bildirimine izin verilir" + +msgid "no initial link set defined for LPD %1" +msgstr "LPD %1 için tanımlı bir iç bağ kümesi yok" + +msgid "notation %1 not defined in source DTD" +msgstr "%1 sözdizimi kaynak DTD içinde tanımlı değil" + +msgid "result document type in simple link specification must be implied" +msgstr "basit bağ belirtimi içindeki sonuç belge türü örtük olmalı" + +msgid "simple link requires SIMPLE YES" +msgstr "basit bağ SIMPLE YES gerektirir" + +msgid "implicit link requires IMPLICIT YES" +msgstr "örtük bağ IMPLICIT YES gerektirir" + +msgid "explicit link requires EXPLICIT YES" +msgstr "belirgin bağ EXPLICIT YES gerektirir" + +msgid "LPD not allowed before first DTD" +msgstr "ilk DTD'den önce LPD kullanılmaz" + +msgid "DTD not allowed after an LPD" +msgstr "bir LPD'den sonra DTD kullanılmaz" + +msgid "definition of general entity %1 is unstable" +msgstr "genel öğe %1 için tanım kararsız" + +msgid "definition of parameter entity %1 is unstable" +msgstr "parametre öğesi %1 için tanım kararsız" + +msgid "" +"multiple link rules for ID %1 but not all have link attribute specifications" +msgstr "" +"ID %1 için çok sayıda bağ kuralı var ama tamamı bağ özniteliği belirtimine " +"sahip değil" + +msgid "" +"multiple link rules for element type %1 but not all have link attribute " +"specifications" +msgstr "" +"eleman türü %1 için çok sayıda bağ kuralı var ama tamamı bağ özniteliği " +"belirtimine sahip değil" + +msgid "link type %1 does not have a link set %2" +msgstr "bağ türü %1 bir %2 bağ kümesi içermiyor" + +msgid "link set use declaration for simple link process" +msgstr "bağ kümesi, basit bağ işlemi bildirimini kullanıyor" + +msgid "no link type %1" +msgstr "bağ türü %1 yok" + +msgid "both document type and link type %1" +msgstr "%1 hem belge türü hem de bağ türü" + +msgid "link type %1 already defined" +msgstr "bağ türü %1 zaten tanımlı" + +msgid "document type %1 already defined" +msgstr "belge türü %1 zaten tanımlı" + +msgid "link set %1 used in LPD but not defined" +msgstr "bağ türü %1 LPD içinde kullanılmış ama tanımlı değil" + +msgid "#IMPLIED already linked to result element type %1" +msgstr "#IMPLIED, %1 sonuç eleman türüne zaten bağlı" + +msgid "" +"number of active simple link processes exceeds quantity specified for SIMPLE " +"parameter in SGML declaration (%1)" +msgstr "" +"etkin basit bağ işlemi sayısı, SGML bildirimindeki SIMPLE parametresi için " +"belirtilen miktarı aşıyor (%1)" + +msgid "only one chain of explicit link processes can be active" +msgstr "doğrudan bağ işleminin sadece bir zinciri etkin olabilir" + +msgid "" +"source document type name for link type %1 must be base document type since " +"EXPLICIT YES 1" +msgstr "" +"EXPLICIT YES 1 olduğundan, bağ türü %1 için kaynak belge türü ismi temel " +"belge türü olmalı" + +msgid "only one implicit link process can be active" +msgstr "sadece bir örtük bağ işlemi etkinleştirilebilir" + +msgid "" +"sorry, link type %1 not activated: only one implicit or explicit link " +"process can be active (with base document type as source document type)" +msgstr "" +"bağ türü %1 etkinleştirilmedi: sadece bir örtük ya da doğrudan bağ işlemi " +"etkinleştirilebilir (kaynak belge türü olarak temel belge türü ile)" + +msgid "name missing after name group in entity reference" +msgstr "öğe başvurusu içinde isim grubundan sonra isim eksik" + +msgid "" +"source document type name for link type %1 must be base document type since " +"EXPLICIT NO" +msgstr "" +"EXPLICIT NO olduğundan, bağ türü %1 için kaynak belge türü ismi temel belge " +"türü olmalı" + +msgid "link process must be activated before base DTD" +msgstr "bağ işlemi temel DTD'den önce etkinleştirilmeli" + +msgid "unexpected entity end while starting second pass" +msgstr "ikinci tura başlarken anlaşılmayan öğe sonu" + +msgid "" +"type %1 of element with ID %2 not associated element type for applicable " +"link rule in ID link set" +msgstr "" +"%2 kimlikli %1 türündeki eleman, ID bağ kümesi içinde uygulanabilir bağ " +"kuralı için eleman türü ile ilişkili değil" + +msgid "DATATAG feature not implemented" +msgstr "DATATAG özelliği henüz programlanmadı" + +msgid "" +"generic identifier specification missing after document type specification " +"in start-tag" +msgstr "" +"başlangıç etiketinde belge türü belirtiminden sonra genel belirteç belirtimi " +"yok" + +msgid "" +"generic identifier specification missing after document type specification " +"in end-tag" +msgstr "" +"bitiş etiketinde belge türü belirtiminden sonra genel belirteç belirtimi yok" + +msgid "a NET-enabling start-tag cannot include a document type specification" +msgstr "bir NET-etkin başlangıç etiketi, bir belge türü belirtimi içeremez" + +msgid "DTD did not contain element declaration for document type name" +msgstr "DTD, belge türü ismi için eleman bildirimi içermiyor" + +msgid "invalid default SGML declaration" +msgstr "öntanımlı SGML bildirimi geçersiz" + +msgid "" +"reference to entity %1 for which no system identifier could be generated" +msgstr "sistem belirteci üretilemeyen için %1 öğesine başvuru" + +msgid "entity was defined here" +msgstr "öğe burada tanımlıydı" + +msgid "content model is mixed but does not allow #PCDATA everywhere" +msgstr "içerik modeli karışık ama heryerinde #PCDATA'ya izin vermiyor" + +msgid "start or end of range must specify a single character" +msgstr "aralığın başlangıç ve bitişi bir tek karakter olmalı" + +msgid "" +"number of first character in range must not exceed number of second " +"character in range" +msgstr "" +"aralıktaki ilk karakterin numarası, ikinci karakterin numarasından büyük " +"olmamalı" + +msgid "delimiter cannot be an empty string" +msgstr "ayraç bir boş dizge olamaz" + +msgid "too many characters assigned same meaning with minimum literal" +msgstr "en küçük sabit değerle aynı anlama gelen çok fazla karakter atanmış" + +msgid "earlier reference to entity %1 used default entity" +msgstr "%1 öğesine daha önceki başvuru öntanımlı öğeyi kullanmış" + +msgid "empty start-tag" +msgstr "boş başlangıç etiketi" + +msgid "empty end-tag" +msgstr "boş bitiş etiketi" + +msgid "unused short reference map %1" +msgstr "kısa başvuru eşlemi %1 kullanılmamış" + +msgid "unused parameter entity %1" +msgstr "parametre öğesi %1 kullanılmamış" + +msgid "cannot generate system identifier for public text %1" +msgstr "genel metin %1 için sistem belirteci üretilemiyor" + +msgid "cannot generate system identifier for general entity %1" +msgstr "genel öğe %1 için sistem belirteci üretilemiyor" + +msgid "cannot generate system identifier for parameter entity %1" +msgstr "parametre öğesi %1 için sistem belirteci üretilemiyor" + +msgid "cannot generate system identifier for document type %1" +msgstr "belge türü %1 için sistem belirteci üretilemiyor" + +msgid "cannot generate system identifier for link type %1" +msgstr "bağ türü %1 için sistem belirteci üretilemiyor" + +msgid "cannot generate system identifier for notation %1" +msgstr "%1 sözdizimi için sistem belirteci üretilemiyor" + +msgid "element type %1 both included and excluded" +msgstr "eleman türü %1 hem içsel hem de dışsal" + +msgid "no document type declaration; implying %1" +msgstr "belge türü bildirimi yok; %1 uygulanıyor" + +msgid "minimum data of AFDR declaration must be \"ISO/IEC 10744:1997\" not %1" +msgstr "" +"AFDR bildiriminin en küçük verisi \"ISO/IEC 10744:1997\" olmalı, %1 değil" + +msgid "AFDR declaration required before use of AFDR extensions" +msgstr "AFDR bildirimi AFDR uzantılarından önce kullanılmalıdır" + +msgid "" +"ENR extensions were used but minimum literal was not \"ISO 8879:1986 (ENR)\" " +"or \"ISO 8879:1986 (WWW)\"" +msgstr "" +"ENR uzantıları kullanılmış ama en küçük sabit değer \"ISO 8879:1986 (ENR)\" " +"ya da \"ISO 8879:1986 (WWW)\" değil" + +msgid "illegal numeric character reference to non-SGML character %1 in literal" +msgstr "" +"sabit değer içindeki SGML olmayan %1 karakterine kuraldışı sayısal karakter " +"başvurusu" + +msgid "" +"cannot convert character reference to number %1 because description %2 " +"unrecognized" +msgstr "" +"karakter başvurusu %1 sayısına dönüştürülemiyor, çünkü %2 açıklaması " +"bilinmiyor" + +msgid "" +"cannot convert character reference to number %1 because character %2 from " +"baseset %3 unknown" +msgstr "" +"karakter başvurusu %1 sayısına dönüştürülemez, çünkü temel küme %3 içindeki %" +"2 karakteri bilinmiyor" + +msgid "" +"character reference to number %1 cannot be converted because of problem with " +"internal character set" +msgstr "" +"dahili karakter kümesi sorunlarından dolayı karakter başvurusu %1 olarak " +"dönüştürülemiyor" + +msgid "" +"cannot convert character reference to number %1 because character not in " +"internal character set" +msgstr "" +"karakter, dahili karakter kümesi içinde olmadığından karakter başvurusu %1 " +"olarak dönüştürülemez" + +msgid "" +"Web SGML adaptations were used but minimum literal was not \"ISO 8879:1986 " +"(WWW)\"" +msgstr "" +"Web SGML uyarlamaları kullanılmış ama en küçük sabit değer \"ISO 8879:1986 " +"(WWW)\" değil" + +msgid "" +"token %1 can be value for multiple attributes so attribute name required" +msgstr "" +"%1 sözcüğü çok sayıda özniteliğin değeri olabildiğinden öznitelik ismi " +"gerekli" + +msgid "length of hex number must not exceed NAMELEN (%1)" +msgstr "onaltılık sayının uzunluğu NAMELEN'i aşmamalıdır (%1)" + +msgid "CDATA declared content" +msgstr "CDATA bildirimli içerik" + +msgid "RCDATA declared content" +msgstr "RCDATA bildirimli içerik" + +msgid "inclusion" +msgstr "içselleştirme" + +msgid "exclusion" +msgstr "dışlama" + +msgid "NUMBER or NUMBERS declared value" +msgstr "NUMBER ya da NUMBERS bildirimli değer" + +msgid "NAME or NAMES declared value" +msgstr "NAME ya da NAMES bildirimli değer" + +msgid "NUTOKEN or NUTOKENS declared value" +msgstr "NUTOKEN ya da NUTOKENS bildirimli değer" + +msgid "CONREF attribute" +msgstr "CONREF özniteliği" + +msgid "CURRENT attribute" +msgstr "CURRENT özniteliği" + +msgid "TEMP marked section" +msgstr "TEMP imli bölüm" + +msgid "included marked section in the instance" +msgstr "belgedeki imli bölüm içerildi" + +msgid "ignored marked section in the instance" +msgstr "belgedeki imli bölüm yoksayıldı" + +msgid "RCDATA marked section" +msgstr "RCDATA imli bölüm" + +msgid "processing instruction entity" +msgstr "işlem komutu öğesi" + +msgid "bracketed text entity" +msgstr "parantezli metin öğesi" + +msgid "internal CDATA entity" +msgstr "dahili CDATA öğesi" + +msgid "internal SDATA entity" +msgstr "dahili SDATA öğesi" + +msgid "external CDATA entity" +msgstr "harici CDATA öğesi" + +msgid "external SDATA entity" +msgstr "harici SDATA öğesi" + +msgid "attribute definition list declaration for notation" +msgstr "sözdizimi için öznitelik tanım listesi bildirimi" + +msgid "rank stem" +msgstr "sıralama kökü" + +msgid "no system id specified" +msgstr "sistem kimliği belirtilmemiş" + +msgid "comment in parameter separator" +msgstr "parametre ayracında açıklama" + +msgid "named character reference" +msgstr "isimli karakter başvurusu" + +msgid "AND group" +msgstr "AND grubu" + +msgid "attribute value not a literal" +msgstr "öznitelik değeri bir sabit değer değil" + +msgid "attribute name missing" +msgstr "öznitelik ismi yok" + +msgid "element declaration for group of element types" +msgstr "eleman türlerinin grubu için eleman bildirimi" + +msgid "attribute definition list declaration for group of element types" +msgstr "eleman türlerinin grubu için öznitelik tanım listesi bildirimi" + +msgid "empty comment declaration" +msgstr "boş comment bildirimi" + +msgid "S separator in comment declaration" +msgstr "comment bildiriminde S ayracı" + +msgid "multiple comments in comment declaration" +msgstr "comment bildiriminde çok sayıda açıklama" + +msgid "no status keyword" +msgstr "status anahtar sözcüğü yok" + +msgid "multiple status keywords" +msgstr "çok sayıda status anahtar sözcüğü" + +msgid "parameter entity reference in document instance" +msgstr "belge içinde parametre öğe başvurusu" + +msgid "element type minimization parameter" +msgstr "eleman türü küçültme parametresi" + +msgid "reference not terminated by REFC delimiter" +msgstr "başvuru REFC ayracı ile sonlandırılmamış" + +msgid "#PCDATA not first in model group" +msgstr "#PCDATA model grubunda ilk değil" + +msgid "#PCDATA in SEQ group" +msgstr "SEQ grubunda #PCDATA" + +msgid "#PCDATA in nested model group" +msgstr "iç içe model grubunda #PCDATA" + +msgid "#PCDATA in model group that does not have REP occurrence indicator" +msgstr "REP oluşum göstergesi olmayan model grubunda #PCDATA" + +msgid "name group or name token group used connector other than OR" +msgstr "isim grubu ya da isim sözcük grubu OR dışında bir bağlayıcı kullanmış" + +msgid "processing instruction does not start with name" +msgstr "işlem komutu isimle başlamıyor" + +msgid "S separator in status keyword specification in document instance" +msgstr "status anahtar sözcüğü belirtimindeki S ayracı belgenin içinde" + +msgid "reference to external data entity" +msgstr "harici veri öğesine başvuru" + +msgid "reference to external entity in attribute value" +msgstr "öznitelik değerindeki harici öğeye başvuru" + +msgid "character %1 is the first character of a delimiter but occurred as data" +msgstr "" +"%1 karakteri ayracın ilk karakteri olmasına rağmen veri olarak görünüyor" + +msgid "SGML declaration was not implied" +msgstr "SGML bildirimi örtük değildi" + +msgid "marked section in internal DTD subset" +msgstr "dahili DTD alt kümesi içinde imli bölüm" + +msgid "NET-enabling start-tag not immediately followed by null end-tag" +msgstr "" +"NET-etkin başlangıç etiketinin ardından hemen boş sonlandıma etiketi gelmiyor" + +msgid "entity end in different element from entity reference" +msgstr "öğe sonu öğe başvurusundan farklı bir elemanın içinde" + +msgid "NETENABL IMMEDNET requires EMPTYNRM YES" +msgstr "NETENABL IMMEDNET, EMPTYNRM YES gerektirir" + +msgid "reference to non-SGML character" +msgstr "SGML olmayan karaktere başvuru" + +msgid "declaration of default entity" +msgstr "öntanımlı öğe bildirimi" + +msgid "reference to parameter entity in parameter separator in internal subset" +msgstr "parametre ayracındaki parametre öğesine başvuru dahili alt küme içinde" + +msgid "reference to parameter entity in token separator in internal subset" +msgstr "sözcük ayracındaki parametre öğesine başvuru dahili alt küme içinde" + +msgid "reference to parameter entity in parameter literal in internal subset" +msgstr "" +"parametre sabit değerindeki parametre öğesine başvuru dahili alt küme içinde" + +msgid "cannot generate system identifier for SGML declaration reference" +msgstr "SGML bildirim başvurusu için sistem belirteci üretilemiyor" + +msgid "" +"public text class of formal public identifier of SGML declaration must be SD" +msgstr "" +"SGML bildiriminin biçimsel genel belirtecinin genel metin sınıfı SD olmalı" + +msgid "" +"SGML declaration reference was used but minimum literal was not \"ISO " +"8879:1986 (WWW)\"" +msgstr "" +"SGML bildirim başvurusu kullanılmış ama en küçük sabit değer \"ISO 8879:1986 " +"(WWW)\" değil" + +msgid "member of model group containing #PCDATA has occurrence indicator" +msgstr "#PCDATA içeren model grubu üyesi oluş göstergesine sahip" + +msgid "member of model group containing #PCDATA is a model group" +msgstr "#PCDATA içeren model grubunun üyesi de bir model grubu" + +msgid "reference to non-predefined entity" +msgstr "önceden tanımlı olmayan öğeye başvuru" + +msgid "reference to external entity" +msgstr "harici öğeye başvuru" + +msgid "declaration of default entity conflicts with IMPLYDEF ENTITY YES" +msgstr "öntanımlı öğenin bildirimi IMPLYDEF ENTITY YES ile çelişiyor" + +msgid "parsing with respect to more than one active doctype not supported" +msgstr "birden fazla etkin belge türüne göre çözümleme desteklenmiyor" + +msgid "cannot have active doctypes and link types at the same time" +msgstr "belgetürleri ve bağ türleri aynı anda etkin olamıyor" + +msgid "" +"number of concurrent document instances exceeds quantity specified for " +"CONCUR parameter in SGML declaration (%1)" +msgstr "" +"koşutzamanlı belgelerin sayısı, SGML bildiriminde CONCUR parametresi ile " +"belirtilen miktarı aşıyor (%1)" + +msgid "datatag group can only be specified in base document type" +msgstr "veri etiketi grubu sadece temel belge türünde belirtilebilir" + +msgid "element not in the base document type can't have an empty start-tag" +msgstr "temel belge türünde olmayan eleman, başlangıç etiketsiz kullanılamaz" + +msgid "element not in base document type can't have an empty end-tag" +msgstr "temel belge türünde olmayan eleman, sonlandırma etiketsiz kullanılamaz" + +msgid "immediately recursive element" +msgstr "doğrudan iç içe geçmiş eleman" + +msgid "invalid URN %1: missing \":\"" +msgstr "URN %1 geçersiz: \":\" yok" + +msgid "invalid URN %1: missing \"urn:\" prefix" +msgstr "URN %1 geçersiz: \"urn:\" öneki yok" + +msgid "invalid URN %1: invalid namespace identifier" +msgstr "URN %1 geçersiz: namespace belirteci geçersiz" + +msgid "invalid URN %1: invalid namespace specific string" +msgstr "URN %1 geçersiz: namespace'e özel dizge geçersiz" + +msgid "invalid URN %1: extra field" +msgstr "URN %1 geçersiz: fazladan alan" + +msgid "" +"prolog can't be omitted unless CONCUR NO and LINK EXPLICIT NO and either " +"IMPLYDEF ELEMENT YES or IMPLYDEF DOCTYPE YES" +msgstr "" +"CONCUR NO ve LINK EXPLICIT NO ve ister IMPLYDEF ELEMENT YES ister IMPLYDEF " +"DOCTYPE YES olmaksızın öndeyiş atlanamaz" + +msgid "can't determine name of #IMPLIED document element" +msgstr "#IMPLIED belge eleman ismi saptanamaz" + +msgid "can't use #IMPLICIT doctype unless CONCUR NO and LINK EXPLICIT NO" +msgstr "" +"#IMPLICIT belgetürü, CONCUR NO ve LINK EXPLICIT NO olmadıkça kullanılamaz" + +msgid "Sorry, #IMPLIED doctypes not implemented" +msgstr "#IMPLIED belge türü henüz programlanmadı" + +msgid "reference to DTD data entity ignored" +msgstr "DTD veri öğesine başvuru yoksayıldı" + +msgid "notation %1 for parameter entity %2 undefined" +msgstr "parametre öğesi %2 için %1 sözdizimi tanımlanmamış" + +msgid "notation %1 for external subset undefined" +msgstr "harici alt küme için %1 sözdizimi tanımlanmamış" + +msgid "attribute %1 can't be redeclared" +msgstr "%1 özniteliği yeniden bildirilemez" + +msgid "#IMPLICIT attributes have already been specified for notation %1" +msgstr "#IMPLICIT öznitelikleri %1 sözdizimi için zaten belirtilmişti" + +msgid "" +"a name group is not allowed in a parameter entity reference in a start tag" +msgstr "" +"bir parametre öğesi başvurusunda izin verilen bir isim grubu bir başlangıç " +"etiketinin içinde" + +msgid "" +"name group in a parameter entity reference in an end tag (SGML forbids them " +"in start tags)" +msgstr "" +"bir parametre öğesi başvurusundaki isim grubu bir bitiş etiketi içinde (SGML " +"onların başlangıç etiketlerinde olmasına izin vermez)" + +msgid "if the declared value is NOTATION a default value of CONREF is useless" +msgstr "" +"Değer NOTATION olarak bildirilmişse bir CONREF öntanımlı değeri " +"kullanışsızdır" + +msgid "Sorry, #ALL and #IMPLICIT content tokens not implemented" +msgstr "İçerik sözcükleri #ALL ve #IMPLICIT henüz programlanmadı" + +msgid "delimiter " +msgstr "ayraç" + +msgid "digit" +msgstr "rakam" + +msgid "name start character" +msgstr "isim başlangıç karakteri" + +msgid "sepchar" +msgstr "ayrkrkt" + +msgid "separator" +msgstr "ayraç" + +msgid "name character" +msgstr "isim karakteri" + +msgid "data character" +msgstr "veri karakteri" + +msgid "minimum data character" +msgstr "en küçük veri karakteri" + +msgid "significant character" +msgstr "belirleyici karakter" + +msgid "record end character" +msgstr "kayıt sonlandırma karakteri" + +msgid "record start character" +msgstr "kayıt başlatma karakteri" + +msgid "space character" +msgstr "boşluk karakteri" + +msgid ", " +msgstr ", (virgül)" + +msgid "-" +msgstr "- (tire)" + +msgid "parameter literal" +msgstr "parametre sabit değer" + +msgid "data tag group" +msgstr "veri etiketi grubu" + +msgid "model group" +msgstr "model grubu" + +msgid "data tag template group" +msgstr "veri etiketi şablon grubu" + +msgid "name" +msgstr "isim" + +msgid "name token" +msgstr "isim sözcüğü" + +msgid "element token" +msgstr "eleman sözcüğü" + +msgid "inclusions" +msgstr "içselleştirmeler" + +msgid "exclusions" +msgstr "dışsallaştırmalar" + +msgid "minimum literal" +msgstr "en küçük sabit değer" + +msgid "attribute value literal" +msgstr "öznitelik değeri sabit değer" + +msgid "system identifier" +msgstr "sistem belirteci" + +msgid "number" +msgstr "numara" + +msgid "attribute value" +msgstr "öznitelik değeri" + +msgid "name of capacity" +msgstr "sığa ismi" + +msgid "name of general delimiter role" +msgstr "genel ayraç rolü ismi" + +msgid "reference reserved name" +msgstr "ilerde kullanmak üzere ayrılmış isme başvuru" + +msgid "name of quantity" +msgstr "büyüklük ismi" + +msgid "entity end" +msgstr "öğe sonu" + +msgid "short reference delimiter" +msgstr "kısa başvuru ayracı" + +msgid "error reading %1 (%2)" +msgstr "%1 okunurken hata (%2)" + +msgid "cannot open %1 (%2)" +msgstr "%1 açılamıyor (%2)" + +msgid "error closing %1 (%2)" +msgstr "%1 kapatılırken hata (%2)" + +msgid "error seeking on %1 (%2)" +msgstr "%1 üzerinden erişimde hata (%2)" + +msgid "invalid filename %1" +msgstr "dosya ismi %1 geçersiz" + +msgid "error reading file descriptor %1 (%2)" +msgstr "dosya belirteci %1 okunurken hata (%2)" + +msgid "error seeking on file descriptor %1 (%2)" +msgstr "dosya belirteci %1 üzerinden erişimde hata (%2)" + +msgid "%1 is not a valid file descriptor number" +msgstr "%1 geçerli bir dosya belirteci değil" + +msgid "cannot find %1; tried %2" +msgstr "%1 bulunamıyor; %2 deneme yapıldı" + +msgid "error seeking %1 (%2)" +msgstr "%1 erişiminde hata (%2)" + +msgid "empty host in HTTP URL %1" +msgstr "HTTP URL %1 deki makina boş" + +msgid "uncompletable relative HTTP URL %1" +msgstr "göreli HTTP URL %1 hatalı" + +msgid "empty port number in HTTP URL %1" +msgstr "HTTP URL %1 için port numarası boş" + +msgid "invalid port number in HTTP URL %1" +msgstr "HTTP URL %1 için port numarası geçersiz" + +msgid "host %1 not found" +msgstr "%1 makinası yok" + +msgid "could not resolve host %1 (try again later)" +msgstr "makina %1 çözümlenemedi (daha sonra tekrar deneyin)" + +msgid "could not resolve host %1 (unrecoverable error)" +msgstr "makina %1 çözümlenemedi (kurtarılamayan hata)" + +msgid "no address record for host name %1" +msgstr "makina ismi %1 için adres kaydı yok" + +msgid "could not resolve host %1 (%2)" +msgstr "makina %1 çözümlenemedi (%2)" + +msgid "could not resolve host %1 (unknown error)" +msgstr "makina %1 çözümlenemedi (hata bilinmiyor)" + +msgid "cannot create socket (%1)" +msgstr "soket oluşturulamıyor (%1)" + +msgid "error connecting to %1 (%2)" +msgstr "%1 e bağlanılırken hata (%2)" + +msgid "error sending request to %1 (%2)" +msgstr "%1 e istek gönderilirken hata (%2)" + +msgid "error receiving from host %1 (%2)" +msgstr "%1 makinasından alış hatası (%2)" + +msgid "error closing connection to host %1 (%2)" +msgstr "%1 makinasıyla bağlantı kesilirken hata (%2)" + +msgid "invalid host number %1" +msgstr "makina numarası %1 geçersiz" + +msgid "could not get %2 from %1 (reason given was %3)" +msgstr "%2, %1 den alınamadı (sebebi %3 olarak verilmiş)" + +msgid "URL not supported by this version" +msgstr "bu sürümde URL desteklenmiyor" + +msgid "only HTTP scheme supported" +msgstr "sadece HTTP şeması destekleniyor" + +msgid "could not initialize Windows Sockets (%1)" +msgstr "Windows Sockets ilklendirilemedi (%1)" + +msgid "incompatible Windows Sockets version" +msgstr "Windows Sockets sürümü uyumsuz" + +msgid "error number " +msgstr "hata numarası " + +msgid "URL Redirected to %1" +msgstr "URL %1 adresine yönlendirildi" + +msgid "cannot open URL %1 (%2)" +msgstr "URL %1 açılamıyor (%2)" + +msgid "error reading URL %1 (%2)" +msgstr "URL %1 okunurken hata (%2)" + +msgid "unknown output option %1" +msgstr "çıktı seçeneği %1 bilinmiyor" + +msgid "Enable batch mode." +msgstr "Betik kipi etkinleştirilir." + +msgid "Produce output according to %1." +msgstr "%1 e göre çıktı üretilir." + +msgid "Stop after the document prolog." +msgstr "Belge öndeyişinden sonra durur." + +msgid "Suppress output." +msgstr "Çıktı engellenir." + +msgid "Send RAST output to file %1." +msgstr "RAST çıktıyı %1 dosyasına gönderir." + +msgid "Same as -wduplicate." +msgstr "-wduplicate ile aynı." + +msgid "Same as -oline." +msgstr "-oline ile aynı" + +msgid "Same as -c." +msgstr "-c ile aynı." + +msgid "Same as -wdefault." +msgstr "-wdefault ile aynı." + +msgid "Same as -wundef." +msgstr "-wundef ile aynı." + +msgid "%1 parses and validates the SGML document whose document entity is" +msgstr "%1, belge öğesi SÄ°STEM KÄ°MLİĞİ... ile belirtilen SGML biçemli belgeyi" + +msgid "specified by the system identifiers SYSID... and prints on the standard" +msgstr "çözümler, değerlendirir ve belgenin Eleman Yapısı Bilgileri Kümesini" + +msgid "" +"output a simple text representation of its Element Structure Information Set." +msgstr "basit bir metin olarak standart çıktıya basar." + +msgid "If more than one system identifier is specified, then the corresponding" +msgstr "" +"Birden fazla sistem belirteci belirtilmişse, ilgili öğeler tek bir belge" + +msgid "entities will be concatenated to form the document entity. If no system" +msgstr "oluşturacak şekilde birleştirilecektir. Bir sistem belirteci" + +msgid "identifiers are specified, then %1 will read the document entity from" +msgstr "belirtilmemişse, %1 belgeyi standart girdiden okuyacaktır." + +msgid "the standard input. A command line system identifier of - can be used" +msgstr "Sistem belirteci olarak - belirtilmişse girdiler standart girdiden" + +msgid "to refer to the standard input." +msgstr "alınabilir." + +msgid "OPTION" +msgstr "SEÇENEK" + +msgid "invalid RAST processing instruction" +msgstr "RAST işlem komutu geçersiz" + +msgid "invalid link type %1 in rast-active-lpd processing instruction" +msgstr "rast-active-lpd işlem komutunda bağ türü %1 geçersiz" + +msgid "duplicate link type %1 in rast-active-lpd processing instruction" +msgstr "rast-active-lpd işlem komutunda bağ türü %1 tekrarlanıyor" + +msgid "rast-link-rule: processing instruction matches more than one link rule" +msgstr "rast-link-rule: işlem komutu birden fazla bağ kuralı ile eşleşiyor" + +msgid "rast-link-rule: processing instruction does not match any link rules" +msgstr "rast-link-rule: işlem komutu herhangi bir bağ kuralı ile eşleşmiyor" + +msgid "" +"multiple applicable link rules without disambiguating rast-link-rule: " +"processing instruction" +msgstr "" +"anlamlılaştıran rast-link-rule olmaksızın çok sayıda uygulanabilir bağ " +"kuralı: işlem komutu (PI)" + +msgid "invalid argument for -m option" +msgstr "-m seçeneği için belirtilen argüman geçersiz" + +msgid "" +"omitted start or end tag implied in CDATA or RCDATA marked section; not " +"normalized" +msgstr "" +"CDATA ve RCDATA imli bölümlerdeki başlangıç ve bitiş etiketleri atlandı; " +"normalleştirilmedi" + +msgid "Hoist omitted tags." +msgstr "Atlanan etiketleri çıkarır." + +msgid "Prefer lowercase." +msgstr "Küçük harfler önerilir." + +msgid "Use markup option %1." +msgstr "Etiketleme seçeneği %1 kullanılır." + +msgid "Output the entity named %1." +msgstr "%1 isimli öğeyi çıktılar." + +msgid "Output the prolog." +msgstr "Öndeyiş çıktılar." + +msgid "Raw." +msgstr "Temel." + +msgid "Expand references." +msgstr "Başvuruları genişletir." + +msgid "%1 is an SGML markup stream editor. %1 parses the SGML document" +msgstr "" +"%1 bir SGML artalan düzenleyicidir. %1, SÄ°STEM_KÄ°MLİĞİ... ile belirtilen" + +msgid "contained in SYSID... and copies portions of the document to the" +msgstr "belgeleri çözümler ve seçeneklerle belirtilen etiketleri ekleyerek" + +msgid "standard output, adding or changing markup as specified by the options." +msgstr "ya da değiştirerek belge parçalarını standart çıktıya kopyalar." + +msgid "Modify the XML output according to %1." +msgstr "XML çıktıyı %1 e bağlı olarak değiştirir." + +msgid "%1 converts SGML to XML. %1 parses and validates the SGML document" +msgstr "%1 SGML'den XML'e dönüşüm yapar. %1, SÄ°STEM_KÄ°MLİĞİ... ile belirtilen" + +msgid "" +"contained in SYSID... and writes an equivalent XML document to the standard" +msgstr "" +"SGML belgeleri çözümler değerlendirir ve XML eşdeğerlerini standart çıktıya" + +msgid "" +"output. %1 will warn about SGML constructs which have no XML equivalent." +msgstr "yazar. %1, XML eşdeğeri olmayan SGML yapıları bulursa uyarı verir." + +msgid "reference to internal SDATA entity %1 not allowed in XML" +msgstr "%1 dahili SDATA öğesi başvurusuna XML'de izin verilmez" + +msgid "reference to external data entity %1 not allowed in XML" +msgstr "%1 harici veri öğesi başvurusuna XML'de izin verilmez" + +msgid "reference to subdocument entity %1 not allowed in XML" +msgstr "%1 alt belge öğesi başvurusuna XML'de izin verilmez" + +msgid "processing instruction containing \"?>\" not allowed in XML" +msgstr "işlem komutu \"?>\" içeriyor, XML'de buna izin verilmez" + +msgid "XML requires processing instructions to start with a name" +msgstr "XML'de işlem komutlarının (PI) bir isimle başlaması gerekir" + +msgid "external data entity %1 is CDATA or SDATA, but XML allows only NDATA" +msgstr "" +"harici veri öğesi %1 ya CDATA ya da SDATA, ancak XML sadece NDATA'ya izin " +"verir" + +msgid "attributes were defined for notation %1; not allowed in XML" +msgstr "%1 sözdizimi için XML'de izin verilmeyen özellikler tanımlanmış" + +msgid "cannot convert formal system identifier %1 to URL" +msgstr "biçimsel sistem belirteci %1 URL'ye dönüştürülemiyor" + +msgid "cannot open output file %1" +msgstr "çıktı dosyası %1 açılamıyor" + +msgid "missing system ID for entity %1" +msgstr "%1 öğesi için sistem kimliği yok" + +msgid "unexpected entity type for entity named %1" +msgstr "%1 isimli öğenin öğe türü anlaşılamadı" + +msgid "cannot create directory %1" +msgstr "%1 dizini oluşturulamıyor" + +msgid "already wrote 99 versions of %1; will not overwrite" +msgstr "zaten %1 sürümün 99 u yazıldı; üzerine yazılmayacak" + +msgid "already wrote output file %1; will not overwrite" +msgstr "%1 çıktı dosyası zaten yazıldı; üzerine yazılmayacak" + +msgid "removing leading slashes from output filename %1" +msgstr "%1 çıktı dosyasının başındaki bölü çizgileri kaldırılıyor" + +msgid "path %1 outside output directory" +msgstr "dosya yolu %1, çıktı dizininin dışında" + +msgid "Output a document type declaration." +msgstr "Bir belge türü bildirimi çıktılar." + +msgid "Output marked sections." +msgstr "Ä°mli bölümleri çıktılar." + +msgid "Output comments." +msgstr "Açıklamaları çıktılar." + +msgid "Raw output." +msgstr "Temel çıktı." + +msgid "%1 prints on the standard output a normalized document instance" +msgstr "%1, SÄ°STEM_KÄ°MLİĞİ... ile sistem belirteçleri belirtilen belgelerin" + +msgid "for the SGML document contained in the concatenation of the entities" +msgstr "birleşiminden oluşan belgeyi normalleştirerek standart çıktıya" + +msgid "with system identifiers SYSID..." +msgstr "basar." + +msgid "Print the effective system id for the public id %1." +msgstr "Genel kimlik %1 için etkin sistem kimliğini basar." + +msgid "Print the effective system id for system id %1." +msgstr "Sistem kimliği %1 için etkin sistem kimliğini basar." + +msgid "Print the effective system id for parameter entity %1." +msgstr "Parametre öğesi %1 için etkin sistem kimliğini basar." + +msgid "Print the effective system id for the doctype %1." +msgstr "Belge türü %1 için etkin sistem kimliğini basar." + +msgid "Print the effective system id for the linktype %1." +msgstr "Bağ türü %1 için etkin sistem kimliğini basar." + +msgid "Print the effective system id for entity %1." +msgstr "%1 öğesi için etkin sistem kimliğini basar." + +msgid "Print the effective system id for notation %1." +msgstr "%1 sözdizimi için etkin sistem kimliğini basar." + +msgid "Print the effective system id for the SGML declaration for doctype %1." +msgstr "Belge türü %1 için SGML bildiriminin etkin sistem kimliğini basar." + +msgid "%1 prints effective system identifiers found in the catalogs on the" +msgstr "%1, kataloglarda bulduğu etkin sistem belirteçlerini standart çıktıya" + +msgid "" +"standard output. It doesn't check that the system identifiers correspond" +msgstr "basar. Ä°lgili dosyalarla sistem belirteçlerinin ilgilerini denetlemez." + +msgid "" +"to actual files. The return value is 0 if the last system identifier was" +msgstr "Son sistem belirteci başarıyla oluşturulmuşsa 0," + +msgid "successfully created and 1 otherwise." +msgstr "aksi takdirde 1 çıktılar." + +msgid "LITERAL" +msgstr "SABÄ°T_DEĞER" + +msgid "non-SGML" +msgstr "SGML olmayan" + +msgid "raw" +msgstr "temel" + +msgid "%1 prints the concatenation of the entities with system identifiers" +msgstr "%1, SÄ°STEM_KÄ°MLİĞİ... ile belirtilen öğelerin birleşimlerini standart" + +msgid "SYSID... on the standard output" +msgstr "çıktıya basar." diff --git a/pubtext/.cvsignore b/pubtext/.cvsignore new file mode 100644 index 0000000..282522d --- /dev/null +++ b/pubtext/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/pubtext/HTML32.dcl b/pubtext/HTML32.dcl new file mode 100644 index 0000000..1eb482c --- /dev/null +++ b/pubtext/HTML32.dcl @@ -0,0 +1,80 @@ + diff --git a/pubtext/HTML32.dtd b/pubtext/HTML32.dtd new file mode 100644 index 0000000..eddba10 --- /dev/null +++ b/pubtext/HTML32.dtd @@ -0,0 +1,597 @@ + + + + + ... + + -- + > + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + + +%ISOlat1; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + diff --git a/pubtext/HTML32.soc b/pubtext/HTML32.soc new file mode 100644 index 0000000..e87c3eb --- /dev/null +++ b/pubtext/HTML32.soc @@ -0,0 +1,8 @@ +-- html32.soc: catalog for parsing HTML 3.2 documents -- +SGMLDECL "HTML32.dcl" +PUBLIC "-//W3C//DTD HTML 3.2 Final//EN" HTML32.dtd +PUBLIC "-//W3C//DTD HTML 3.2 Draft//EN" HTML32.dtd +PUBLIC "-//W3C//DTD HTML 3.2//EN" HTML32.dtd +PUBLIC "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML" ISOlat1.ent +-- added by jjc -- +DOCTYPE html HTML32.dtd diff --git a/pubtext/HTML4-f.dtd b/pubtext/HTML4-f.dtd new file mode 100644 index 0000000..886ed9a --- /dev/null +++ b/pubtext/HTML4-f.dtd @@ -0,0 +1,37 @@ + + + + + ... + + + ... + + +--> + + + +%HTML4.dtd; \ No newline at end of file diff --git a/pubtext/HTML4-s.dtd b/pubtext/HTML4-s.dtd new file mode 100644 index 0000000..5afff53 --- /dev/null +++ b/pubtext/HTML4-s.dtd @@ -0,0 +1,869 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%HTMLlat1; + + +%HTMLsymbol; + + +%HTMLspecial; + + + + + + + + + + + + + +]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pubtext/HTML4.dcl b/pubtext/HTML4.dcl new file mode 100644 index 0000000..db46db0 --- /dev/null +++ b/pubtext/HTML4.dcl @@ -0,0 +1,88 @@ + \ No newline at end of file diff --git a/pubtext/HTML4.dtd b/pubtext/HTML4.dtd new file mode 100644 index 0000000..b7636f2 --- /dev/null +++ b/pubtext/HTML4.dtd @@ -0,0 +1,1092 @@ + + + + + ... + + + ... + + + + The URI used as a system identifier with the public identifier allows + the user agent to download the DTD and entity sets as needed. + + The FPI for the Strict HTML 4.0 DTD is: + + "-//W3C//DTD HTML 4.0//EN" + + and its URI is: + + http://www.w3.org/TR/REC-html40/strict.dtd + + Authors should use the Strict DTD unless they need the + presentation control for user agents that don't (adequately) + support style sheets. + + If you are writing a document that includes frames, use + the following FPI: + + "-//W3C//DTD HTML 4.0 Frameset//EN" + + with the URI: + + http://www.w3.org/TR/REC-html40/frameset.dtd + + The following URIs are supported in relation to HTML 4.0 + + "http://www.w3.org/TR/REC-html40/strict.dtd" (Strict DTD) + "http://www.w3.org/TR/REC-html40/loose.dtd" (Loose DTD) + "http://www.w3.org/TR/REC-html40/frameset.dtd" (Frameset DTD) + "http://www.w3.org/TR/REC-html40/HTMLlat1.ent" (Latin-1 entities) + "http://www.w3.org/TR/REC-html40/HTMLsymbol.ent" (Symbol entities) + "http://www.w3.org/TR/REC-html40/HTMLspecial.ent" (Special entities) + + These URIs point to the latest version of each file. To reference + this specific revision use the following URIs: + + "http://www.w3.org/TR/REC-html40-971218/strict.dtd" + "http://www.w3.org/TR/REC-html40-971218/loose.dtd" + "http://www.w3.org/TR/REC-html40-971218/frameset.dtd" + "http://www.w3.org/TR/REC-html40-971218/HTMLlat1.ent" + "http://www.w3.org/TR/REC-html40-971218/HTMLsymbol.ent" + "http://www.w3.org/TR/REC-html40-971218/HTMLspecial.ent" + +--> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%HTMLlat1; + + +%HTMLsymbol; + + +%HTMLspecial; + + + + + + + + + + + + + +]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + +]]> + + + + + +]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + diff --git a/pubtext/HTML4.soc b/pubtext/HTML4.soc new file mode 100644 index 0000000..ec4825f --- /dev/null +++ b/pubtext/HTML4.soc @@ -0,0 +1,9 @@ +OVERRIDE YES +SGMLDECL HTML4.dcl +DOCTYPE HTML HTML4.dtd +PUBLIC "-//W3C//DTD HTML 4.0//EN" HTML4-s.dtd +PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" HTML4.dtd +PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" HTML4-f.dtd +PUBLIC "-//W3C//ENTITIES Latin1//EN//HTML" HTMLlat1.ent +PUBLIC "-//W3C//ENTITIES Special//EN//HTML" HTMLspec.ent +PUBLIC "-//W3C//ENTITIES Symbols//EN//HTML" HTMLsym.ent diff --git a/pubtext/HTMLlat1.ent b/pubtext/HTMLlat1.ent new file mode 100644 index 0000000..7632023 --- /dev/null +++ b/pubtext/HTMLlat1.ent @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pubtext/HTMLspec.ent b/pubtext/HTMLspec.ent new file mode 100644 index 0000000..29011cc --- /dev/null +++ b/pubtext/HTMLspec.ent @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pubtext/HTMLsym.ent b/pubtext/HTMLsym.ent new file mode 100644 index 0000000..2a6250b --- /dev/null +++ b/pubtext/HTMLsym.ent @@ -0,0 +1,241 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pubtext/ISOlat1.ent b/pubtext/ISOlat1.ent new file mode 100644 index 0000000..7225899 --- /dev/null +++ b/pubtext/ISOlat1.ent @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pubtext/ISOlat1.sgm b/pubtext/ISOlat1.sgm new file mode 100644 index 0000000..81d1782 --- /dev/null +++ b/pubtext/ISOlat1.sgm @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pubtext/Makefile.am b/pubtext/Makefile.am new file mode 100644 index 0000000..acf944d --- /dev/null +++ b/pubtext/Makefile.am @@ -0,0 +1,15 @@ +## Process this file with automake to produce Makefile.in + +pkgdata_DATA = HTML32.dcl HTML32.dtd HTML32.soc HTML4-f.dtd \ + HTML4-s.dtd HTML4.dcl HTML4.dtd HTML4.soc HTMLlat1.ent \ + HTMLspec.ent HTMLsym.ent ISOlat1.ent ISOlat1.sgm html-1.dtd \ + html-1s.dtd html-s.dtd html.dcl html.dtd html.soc xml.dcl xml.soc \ + japan.dcl opensp-implied.dcl + +EXTRA_DIST = HTML32.dcl HTML32.dtd HTML32.soc HTML4-f.dtd \ + HTML4-s.dtd HTML4.dcl HTML4.dtd HTML4.soc HTMLlat1.ent \ + HTMLspec.ent HTMLsym.ent ISOlat1.ent ISOlat1.sgm html-1.dtd \ + html-1s.dtd html-s.dtd html.dcl html.dtd html.soc xml.dcl xml.soc \ + japan.dcl opensp-implied.dcl .cvsignore + +MAINTAINERCLEANFILES = Makefile.in diff --git a/pubtext/Makefile.in b/pubtext/Makefile.in new file mode 100644 index 0000000..ec6ee6d --- /dev/null +++ b/pubtext/Makefile.in @@ -0,0 +1,413 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = pubtext +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pkgdatadir)" +pkgdataDATA_INSTALL = $(INSTALL_DATA) +DATA = $(pkgdata_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +pkgdata_DATA = HTML32.dcl HTML32.dtd HTML32.soc HTML4-f.dtd \ + HTML4-s.dtd HTML4.dcl HTML4.dtd HTML4.soc HTMLlat1.ent \ + HTMLspec.ent HTMLsym.ent ISOlat1.ent ISOlat1.sgm html-1.dtd \ + html-1s.dtd html-s.dtd html.dcl html.dtd html.soc xml.dcl xml.soc \ + japan.dcl opensp-implied.dcl + +EXTRA_DIST = HTML32.dcl HTML32.dtd HTML32.soc HTML4-f.dtd \ + HTML4-s.dtd HTML4.dcl HTML4.dtd HTML4.soc HTMLlat1.ent \ + HTMLspec.ent HTMLsym.ent ISOlat1.ent ISOlat1.sgm html-1.dtd \ + html-1s.dtd html-s.dtd html.dcl html.dtd html.soc xml.dcl xml.soc \ + japan.dcl opensp-implied.dcl .cvsignore + +MAINTAINERCLEANFILES = Makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pubtext/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu pubtext/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +install-pkgdataDATA: $(pkgdata_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)" + @list='$(pkgdata_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(pkgdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdatadir)/$$f'"; \ + $(pkgdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \ + done + +uninstall-pkgdataDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgdata_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pkgdatadir)/$$f'"; \ + rm -f "$(DESTDIR)$(pkgdatadir)/$$f"; \ + done +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(pkgdatadir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-libtool + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pkgdataDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-pkgdataDATA + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man install-pkgdataDATA \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + uninstall uninstall-am uninstall-info-am uninstall-pkgdataDATA + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/pubtext/html-1.dtd b/pubtext/html-1.dtd new file mode 100644 index 0000000..100551c --- /dev/null +++ b/pubtext/html-1.dtd @@ -0,0 +1,29 @@ + + + + + ... + + -- + > + + + + + +%html; diff --git a/pubtext/html-1s.dtd b/pubtext/html-1s.dtd new file mode 100644 index 0000000..d582990 --- /dev/null +++ b/pubtext/html-1s.dtd @@ -0,0 +1,29 @@ + + + + + ... + + -- + > + + + + + +%html-1; diff --git a/pubtext/html-s.dtd b/pubtext/html-s.dtd new file mode 100644 index 0000000..2a1b27c --- /dev/null +++ b/pubtext/html-s.dtd @@ -0,0 +1,29 @@ + + + + + ... + + -- + > + + + + + +%html; diff --git a/pubtext/html.dcl b/pubtext/html.dcl new file mode 100644 index 0000000..0827e17 --- /dev/null +++ b/pubtext/html.dcl @@ -0,0 +1,88 @@ + + diff --git a/pubtext/html.dtd b/pubtext/html.dtd new file mode 100644 index 0000000..acca2ab --- /dev/null +++ b/pubtext/html.dtd @@ -0,0 +1,599 @@ + + + + + ... + + -- + > + + + + + + + +]]> + + + + + + + + + + + + + + + + + + + + + + + +%ISOlat1; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + + + + + + + + + + + +Heading + is preferred to +

Heading

+ --> +]]> + + + + +" + > + + + + + + + + + + + + + +#AttVal(Alt)" + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + +]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Directory" + > +Menu" + > + + + + + + + + + + + + + +Heading +

Text ... + is preferred to +

Heading

+ Text ... + --> +]]> + + + + + + + + + + + + + + + + + + + + + +Form:" + %SDASUFF; "Form End." + > + + + + + + + + + + + + + + + + + + + + + +Select #AttVal(Multiple)" + > + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + +]]> + + + + + + + + + + + + + + +" > + + + + + + + + + + +[Document is indexed/searchable.]"> + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + + + + diff --git a/pubtext/html.soc b/pubtext/html.soc new file mode 100644 index 0000000..3e19341 --- /dev/null +++ b/pubtext/html.soc @@ -0,0 +1,31 @@ + -- catalog: SGML Open style entity catalog for HTML -- + -- $Id: html.soc,v 1.1 1999/11/04 08:36:17 clasen Exp $ -- + -- Hacked by jjc -- + + -- Ways to refer to Level 2: most general to most specific -- +PUBLIC "-//IETF//DTD HTML//EN" html.dtd +PUBLIC "-//IETF//DTD HTML 2.0//EN" html.dtd +PUBLIC "-//IETF//DTD HTML Level 2//EN" html.dtd +PUBLIC "-//IETF//DTD HTML 2.0 Level 2//EN" html.dtd + + -- Ways to refer to Level 1: most general to most specific -- +PUBLIC "-//IETF//DTD HTML Level 1//EN" html-1.dtd +PUBLIC "-//IETF//DTD HTML 2.0 Level 1//EN" html-1.dtd + + -- Ways to refer to + Strict Level 2: most general to most specific -- +PUBLIC "-//IETF//DTD HTML Strict//EN" html-s.dtd +PUBLIC "-//IETF//DTD HTML 2.0 Strict//EN" html-s.dtd +PUBLIC "-//IETF//DTD HTML Strict Level 2//EN" html-s.dtd +PUBLIC "-//IETF//DTD HTML 2.0 Strict Level 2//EN" html-s.dtd + + -- Ways to refer to + Strict Level 1: most general to most specific -- +PUBLIC "-//IETF//DTD HTML Strict Level 1//EN" html-1s.dtd +PUBLIC "-//IETF//DTD HTML 2.0 Strict Level 1//EN" html-1s.dtd + + -- ISO latin 1 entity set for HTML -- +PUBLIC "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML" ISOlat1.sgm + +SGMLDECL html.dcl +DOCTYPE html html.dtd diff --git a/pubtext/japan.dcl b/pubtext/japan.dcl new file mode 100644 index 0000000..ea8181a --- /dev/null +++ b/pubtext/japan.dcl @@ -0,0 +1,630 @@ + diff --git a/pubtext/opensp-implied.dcl b/pubtext/opensp-implied.dcl new file mode 100644 index 0000000..347d927 --- /dev/null +++ b/pubtext/opensp-implied.dcl @@ -0,0 +1,66 @@ + + + diff --git a/pubtext/xml.dcl b/pubtext/xml.dcl new file mode 100644 index 0000000..57b60b4 --- /dev/null +++ b/pubtext/xml.dcl @@ -0,0 +1,189 @@ +" + PIC "?>" + SHORTREF NONE + + NAMES + SGMLREF + + QUANTITY + NONE -- Quantities are not restricted in XML -- + + ENTITIES + "amp" 38 + "lt" 60 + "gt" 62 + "quot" 34 + "apos" 39 + + FEATURES + MINIMIZE + DATATAG NO + OMITTAG NO + RANK NO + SHORTTAG + STARTTAG + EMPTY NO + UNCLOSED NO + NETENABL IMMEDNET + ENDTAG + EMPTY NO + UNCLOSED NO + ATTRIB + DEFAULT YES + OMITNAME NO + VALUE NO + EMPTYNRM YES + IMPLYDEF + ATTLIST NO -- VALID: was YES -- + DOCTYPE NO + ELEMENT NO -- VALID: was YES -- + ENTITY NO + NOTATION NO -- VALID: was YES -- + LINK + SIMPLE NO + IMPLICIT NO + EXPLICIT NO + OTHER + CONCUR NO + SUBDOC NO + FORMAL NO + URN NO + KEEPRSRE YES + VALIDITY TYPE -- VALID: was NOASSERT -- + ENTITIES + REF ANY + INTEGRAL YES + + APPINFO NONE + + SEEALSO "ISO 8879//NOTATION Extensible Markup Language (XML) 1.0//EN" +> + + diff --git a/pubtext/xml.soc b/pubtext/xml.soc new file mode 100644 index 0000000..278c6f3 --- /dev/null +++ b/pubtext/xml.soc @@ -0,0 +1 @@ +SGMLDECL "xml.dcl" diff --git a/sgmlnorm/.cvsignore b/sgmlnorm/.cvsignore new file mode 100644 index 0000000..f843c2e --- /dev/null +++ b/sgmlnorm/.cvsignore @@ -0,0 +1,11 @@ +Makefile +Makefile.in +.libs +.deps +*.la +*.lo +*Messages.h +*Messages.rc +*Messages.cxx +*_inst.cxx +osgmlnorm diff --git a/sgmlnorm/Makefile.am b/sgmlnorm/Makefile.am new file mode 100644 index 0000000..d36400a --- /dev/null +++ b/sgmlnorm/Makefile.am @@ -0,0 +1,24 @@ +## Process this file with automake to produce Makefile.in + +bin_PROGRAMS = osgmlnorm + +osgmlnorm_SOURCES = sgmlnorm.cxx SGMLGenerator.cxx SGMLGenerator.h \ + SgmlnormMessages.h + +EXTRA_DIST = sgmlnorm.dsp SgmlnormMessages.msg SgmlnormMessages.rc \ + .cvsignore + +BUILT_SOURCES = SgmlnormMessages.h SgmlnormMessages.rc + +MAINTAINERCLEANFILES = Makefile.in + +osgmlnorm_LDADD = $(top_builddir)/lib/libosp.la $(LTLIBINTL) + +INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/generic + +MSGGENFLAGS = -l appModule + +SUFFIXES = .msg .rc + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< diff --git a/sgmlnorm/Makefile.in b/sgmlnorm/Makefile.in new file mode 100644 index 0000000..3abf5ec --- /dev/null +++ b/sgmlnorm/Makefile.in @@ -0,0 +1,533 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = osgmlnorm$(EXEEXT) +subdir = sgmlnorm +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +PROGRAMS = $(bin_PROGRAMS) +am_osgmlnorm_OBJECTS = sgmlnorm.$(OBJEXT) SGMLGenerator.$(OBJEXT) +osgmlnorm_OBJECTS = $(am_osgmlnorm_OBJECTS) +am__DEPENDENCIES_1 = +osgmlnorm_DEPENDENCIES = $(top_builddir)/lib/libosp.la \ + $(am__DEPENDENCIES_1) +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(osgmlnorm_SOURCES) +DIST_SOURCES = $(osgmlnorm_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +osgmlnorm_SOURCES = sgmlnorm.cxx SGMLGenerator.cxx SGMLGenerator.h \ + SgmlnormMessages.h + +EXTRA_DIST = sgmlnorm.dsp SgmlnormMessages.msg SgmlnormMessages.rc \ + .cvsignore + +BUILT_SOURCES = SgmlnormMessages.h SgmlnormMessages.rc +MAINTAINERCLEANFILES = Makefile.in +osgmlnorm_LDADD = $(top_builddir)/lib/libosp.la $(LTLIBINTL) +INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/generic +MSGGENFLAGS = -l appModule +SUFFIXES = .msg .rc +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .msg .rc .cxx .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu sgmlnorm/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu sgmlnorm/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + || test -f $$p1 \ + ; then \ + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ + else :; fi; \ + done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ + done + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done +osgmlnorm$(EXEEXT): $(osgmlnorm_OBJECTS) $(osgmlnorm_DEPENDENCIES) + @rm -f osgmlnorm$(EXEEXT) + $(CXXLINK) $(osgmlnorm_LDFLAGS) $(osgmlnorm_OBJECTS) $(osgmlnorm_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SGMLGenerator.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sgmlnorm.Po@am__quote@ + +.cxx.o: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< + +.cxx.obj: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cxx.lo: +@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-libtool distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-exec-am: install-binPROGRAMS + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS uninstall-info-am + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool ctags distclean distclean-compile \ + distclean-generic distclean-libtool distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-binPROGRAMS uninstall-info-am + + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/sgmlnorm/SGMLGenerator.cxx b/sgmlnorm/SGMLGenerator.cxx new file mode 100644 index 0000000..3d5498a --- /dev/null +++ b/sgmlnorm/SGMLGenerator.cxx @@ -0,0 +1,439 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "config.h" +#include "SGMLGenerator.h" + +const SGMLApplication::Char RE = '\r'; +const SGMLApplication::Char RS = '\n'; +const SGMLApplication::Char TAB = '\t'; + +inline +SP_NAMESPACE_SCOPE OutputCharStream & +operator<<(SP_NAMESPACE_SCOPE OutputCharStream &os, + const SGMLApplication::CharString &str) +{ + return os.write(str.ptr, str.len); +} + +inline +bool operator==(const SGMLApplication::CharString &str1, + const SGMLApplication::CharString &str2) +{ + return (str1.len == str2.len + && (str1.len == 0 + || memcmp(str1.ptr, + str2.ptr, + str1.len*sizeof(SGMLApplication::Char)) == 0)); +} + +inline +bool operator!=(const SGMLApplication::CharString &str1, + const SGMLApplication::CharString &str2) +{ + return !(str1 == str2); +} + +inline +SP_NAMESPACE_SCOPE OutputCharStream &SGMLGenerator::os() +{ + return *os_; +} + +inline +void SGMLGenerator::outputRe() +{ + os().put(RE); +} + +inline +void SGMLGenerator::flushRe() +{ + if (outputState_ == pendingRe) { + outputRe(); + outputState_ = other; + } +} + +inline +bool SGMLGenerator::isSgmlChar(Char c) +{ + return c >= 256 || !nonSgml_[c]; +} + +static +void escape(SP_NAMESPACE_SCOPE OutputCharStream &s, SP_NAMESPACE_SCOPE Char c) +{ + s << "&#" << (unsigned long)c << ";"; +} + +SGMLGenerator::SGMLGenerator(SP_NAMESPACE_SCOPE OutputCharStream *os, + unsigned flags) +: os_(os), parseMode_(normalMode), outputState_(other), mustOmitEndTag_(0), + inInstance_(0), flags_(flags) +{ + os_->setEscaper(escape); + for (size_t i = 0; i < 256; i++) + switch (i) { + case RE: + case RS: + case TAB: + nonSgml_[i] = 0; + break; + case 255: + nonSgml_[i] = 1; + break; + default: + nonSgml_[i] = (i < 32 || (i >= 127 && i < 160)); + break; + } +} + +SGMLGenerator::~SGMLGenerator() +{ + outputRe(); + delete os_; +} + +void SGMLGenerator::startDtd(const StartDtdEvent &event) +{ + if (!(flags_ & generateDtd)) + return; + if (event.haveExternalId) { + os() << "'; + os().put(RE); + } +} + +void SGMLGenerator::startElement(const StartElementEvent &event) +{ + // This can happen with OMITTAG. + if (parseMode_ != normalMode) + os() << "]]> 0 + && isElementContentStack_[isElementContentStack_.size() - 1]) + outputRe(); + isElementContentStack_ + += char(event.contentType == StartElementEvent::element); + if (event.included) { + if (outputState_ == pendingRe) { + numCharRef(RE); // would be moved otherwise + outputState_ = other; + } + outputStateStack_ += char(outputState_); + } + else { + outputStateStack_ += char(other); + flushRe(); + } + switch (event.contentType) { + case StartElementEvent::cdata: + parseMode_ = cdataMode; + break; + case StartElementEvent::rcdata: + parseMode_ = rcdataMode; + break; + default: + parseMode_ = normalMode; + break; + } + outputState_ = afterStartTag; + os() << '<' << event.gi; + for (size_t i = 0; i < event.nAttributes; i++) { + const Attribute &a = event.attributes[i]; + switch (a.type) { + case Attribute::cdata: + if (a.defaulted != Attribute::definition) { + os() << ' ' << a.name << '=' << '"'; + for (size_t j = 0; j < a.nCdataChunks; j++) + if (a.cdataChunks[j].isSdata) + entityRef(a.cdataChunks[j].entityName); + else if (a.cdataChunks[j].isNonSgml) + numCharRefNum(a.cdataChunks[j].nonSgmlChar); + else + attributeChars(a.cdataChunks[j].data); + os() << '"'; + } + break; + case Attribute::tokenized: + if (a.defaulted != Attribute::definition) { + if (a.isGroup && a.name == a.tokens) + os() << ' ' << a.tokens; + else + os() << ' ' << a.name << '=' << '"' << a.tokens << '"'; + } + break; + default: + break; + } + } + os() << '>'; + mustOmitEndTag_ = (event.contentType == StartElementEvent::empty); +} + +void SGMLGenerator::attributeChars(const CharString &str) +{ + const Char *p = str.ptr; + for (size_t n = str.len; n > 0; n--, p++) + switch (*p) { + case '"': + case '&': + case RS: + case RE: + case TAB: + numCharRef(*p); + break; + default: + if (isSgmlChar(*p)) + os().put(*p); + else + numCharRef(*p); + break; + } +} + +void SGMLGenerator::endElement(const EndElementEvent &event) +{ + if (mustOmitEndTag_) + mustOmitEndTag_ = 0; + else { + if (outputState_ == pendingRe) { + outputRe(); + outputRe(); + } + else if (isElementContentStack_[isElementContentStack_.size() - 1]) + outputRe(); + os() << "'; + } + outputState_ = outputStateStack_[outputStateStack_.size() - 1]; + outputStateStack_.resize(outputStateStack_.size() - 1); + parseMode_ = normalMode; + isElementContentStack_.resize(isElementContentStack_.size() - 1); +} + +void SGMLGenerator::data(const DataEvent &event) +{ + const Char *p = event.data.ptr; + for (size_t len = event.data.len; len > 0; len--, p++) { + switch (*p) { + case RE: + flushRe(); + if (outputState_ == afterStartTag) + outputRe(); + outputState_ = pendingRe; + break; + case '&': + case '<': + case '>': // prevents recognition of MSE + flushRe(); + outputState_ = other; + if (parseMode_ == cdataMode) + os().put(*p); + else + numCharRef(*p); + break; + default: + flushRe(); + outputState_ = other; + if (isSgmlChar(*p)) + os().put(*p); + else if (parseMode_ == cdataMode) { + // The output will not be valid, but I don't think this + // situation can arise with valid SGML source. + os().put(*p); + } + else + numCharRef(*p); + break; + } + } +} + +void SGMLGenerator::nonSgmlChar(const NonSgmlCharEvent &event) +{ + flushRe(); + outputState_ = other; + numCharRefNum(event.c); +} + +void SGMLGenerator::sdata(const SdataEvent &event) +{ + flushRe(); + entityRef(event.entityName); +} + +void SGMLGenerator::pi(const PiEvent &event) +{ + if (!inInstance_) + return; + if (outputState_ == pendingRe) { + numCharRef(RE); // would be moved otherwise + outputState_ = other; + } + if (event.entityName.len) + entityRef(event.entityName); + else + os() << "'; +} + +void SGMLGenerator::externalDataEntityRef(const ExternalDataEntityRefEvent &event) +{ + flushRe(); + entityRef(event.entity.name); +} + +void SGMLGenerator::subdocEntityRef(const SubdocEntityRefEvent &event) +{ + flushRe(); + entityRef(event.entity.name); +} + +void SGMLGenerator::endProlog(const EndPrologEvent &) +{ + inInstance_ = 1; +} + +void SGMLGenerator::commentDecl(const CommentDeclEvent &event) +{ + if (!inInstance_) + return; + if (outputState_ == pendingRe) { + numCharRef(RE); // would be moved otherwise + outputState_ = other; + } + os() << " + } + os() << '>'; +} + +void SGMLGenerator::markedSectionStart(const MarkedSectionStartEvent &event) +{ + if (outputState_ == pendingRe) { + numCharRef(RE); // would be moved otherwise + outputState_ = other; + } + os() << ""; + parseMode_ = normalMode; +} + +void SGMLGenerator::ignoredChars(const IgnoredCharsEvent &event) +{ + os() << event.data; +} + +void SGMLGenerator::entityRef(const CharString &name) +{ + os() << '&' << name << ';'; +} + +void SGMLGenerator::numCharRef(Char c) +{ + const SP_NAMESPACE_SCOPE StringC *name = charEntityName(c); + if (name && name->size()) + os() << '&' << *name << ';'; + else + numCharRefNum(c); +} + +void SGMLGenerator::numCharRefNum(unsigned long n) +{ + os() << "&#" << n << ';'; +} + +void SGMLGenerator::generalEntity(const GeneralEntityEvent &event) +{ + if (event.entity.isInternal + && event.entity.text.len == 1 + && event.entity.dataType != Entity::sdata) { + SP_NAMESPACE_SCOPE StringC *p = charEntityName(event.entity.text.ptr[0]); + if (p) + p->assign(event.entity.name.ptr, event.entity.name.len); + } +} + +SP_NAMESPACE_SCOPE StringC *SGMLGenerator::charEntityName(Char c) +{ + switch (c) { + case '<': + return <_; + case '>': + return >_; + case '&': + return &_; + case '"': + return "_; + default: + break; + } + return 0; +} diff --git a/sgmlnorm/SGMLGenerator.h b/sgmlnorm/SGMLGenerator.h new file mode 100644 index 0000000..93c705d --- /dev/null +++ b/sgmlnorm/SGMLGenerator.h @@ -0,0 +1,74 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef SGMLGenerator_INCLUDED +#define SGMLGenerator_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Boolean.h" +#include "OutputCharStream.h" +#include "StringOf.h" +#include "StringC.h" + +#include "SGMLApplication.h" + +class SGMLGenerator : public SGMLApplication { +public: + enum { + generateDtd = 01 + }; + SGMLGenerator(SP_NAMESPACE_SCOPE OutputCharStream *, unsigned flags = 0); + ~SGMLGenerator(); + void startElement(const StartElementEvent &); + void endElement(const EndElementEvent &); + void data(const DataEvent &); + void sdata(const SdataEvent &); + void pi(const PiEvent &); + void externalDataEntityRef(const ExternalDataEntityRefEvent &); + void subdocEntityRef(const SubdocEntityRefEvent &); + void nonSgmlChar(const NonSgmlCharEvent &); + void endProlog(const EndPrologEvent &); + void commentDecl(const CommentDeclEvent &); + void markedSectionStart(const MarkedSectionStartEvent &); + void markedSectionEnd(const MarkedSectionEndEvent &); + void ignoredChars(const IgnoredCharsEvent &); + void generalEntity(const GeneralEntityEvent &); + void startDtd(const StartDtdEvent &); +private: + SP_NAMESPACE_SCOPE OutputCharStream &os(); + void numCharRef(Char); + void numCharRefNum(unsigned long n); + void entityRef(const CharString &); + void flushRe(); + void outputRe(); + bool isSgmlChar(Char); + void attributeChars(const CharString &str); + SP_NAMESPACE_SCOPE StringC *charEntityName(Char); + + SP_NAMESPACE_SCOPE OutputCharStream *os_; + enum { + other, + pendingRe, + afterStartTag + }; + char outputState_; + SP_NAMESPACE_SCOPE String outputStateStack_; + SP_NAMESPACE_SCOPE String isElementContentStack_; + SP_NAMESPACE_SCOPE StringC lt_; + SP_NAMESPACE_SCOPE StringC gt_; + SP_NAMESPACE_SCOPE StringC amp_; + SP_NAMESPACE_SCOPE StringC quot_; + bool mustOmitEndTag_; + enum { + normalMode, + cdataMode, + rcdataMode + } parseMode_; + char nonSgml_[256]; // bool + bool inInstance_; + unsigned flags_; +}; + +#endif /* not SGMLGenerator_INCLUDED */ diff --git a/sgmlnorm/SgmlnormMessages.h b/sgmlnorm/SgmlnormMessages.h new file mode 100644 index 0000000..7fba594 --- /dev/null +++ b/sgmlnorm/SgmlnormMessages.h @@ -0,0 +1,82 @@ +// This file was automatically generated from SgmlnormMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct SgmlnormMessages { + // 0 + static const MessageType1 dHelp; + // 1 + static const MessageType1 mHelp; + // 2 + static const MessageType1 nHelp; + // 3 + static const MessageType1 rHelp; + // 4 + static const MessageType1 info1; + // 5 + static const MessageType1 info2; + // 6 + static const MessageType1 info3; +}; +const MessageType1 SgmlnormMessages::dHelp( +MessageType::info, +&appModule, +0 +#ifndef SP_NO_MESSAGE_TEXT +,"Output a document type declaration." +#endif +); +const MessageType1 SgmlnormMessages::mHelp( +MessageType::info, +&appModule, +1 +#ifndef SP_NO_MESSAGE_TEXT +,"Output marked sections." +#endif +); +const MessageType1 SgmlnormMessages::nHelp( +MessageType::info, +&appModule, +2 +#ifndef SP_NO_MESSAGE_TEXT +,"Output comments." +#endif +); +const MessageType1 SgmlnormMessages::rHelp( +MessageType::info, +&appModule, +3 +#ifndef SP_NO_MESSAGE_TEXT +,"Raw output." +#endif +); +const MessageType1 SgmlnormMessages::info1( +MessageType::info, +&appModule, +4 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 prints on the standard output a normalized document instance" +#endif +); +const MessageType1 SgmlnormMessages::info2( +MessageType::info, +&appModule, +5 +#ifndef SP_NO_MESSAGE_TEXT +,"for the SGML document contained in the concatenation of the entities" +#endif +); +const MessageType1 SgmlnormMessages::info3( +MessageType::info, +&appModule, +6 +#ifndef SP_NO_MESSAGE_TEXT +,"with system identifiers SYSID..." +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/sgmlnorm/SgmlnormMessages.msg b/sgmlnorm/SgmlnormMessages.msg new file mode 100644 index 0000000..2a8af9d --- /dev/null +++ b/sgmlnorm/SgmlnormMessages.msg @@ -0,0 +1,12 @@ +# Copyright (c) 1999 Matthias Clasen +# See the file COPYING for copying permission. + +# Sgmlnorm message definitions + +I1+dHelp++Output a document type declaration. +I1+mHelp++Output marked sections. +I1+nHelp++Output comments. +I1+rHelp++Raw output. +I1+info1++%1 prints on the standard output a normalized document instance +I1+info2++for the SGML document contained in the concatenation of the entities +I1+info3++with system identifiers SYSID... diff --git a/sgmlnorm/SgmlnormMessages.rc b/sgmlnorm/SgmlnormMessages.rc new file mode 100644 index 0000000..0373d8c --- /dev/null +++ b/sgmlnorm/SgmlnormMessages.rc @@ -0,0 +1,10 @@ +STRINGTABLE +BEGIN + 0, "Output a document type declaration." + 1, "Output marked sections." + 2, "Output comments." + 3, "Raw output." + 4, "%1 prints on the standard output a normalized document instance" + 5, "for the SGML document contained in the concatenation of the entities" + 6, "with system identifiers SYSID..." +END diff --git a/sgmlnorm/sgmlnorm.cxx b/sgmlnorm/sgmlnorm.cxx new file mode 100644 index 0000000..c7b4cfd --- /dev/null +++ b/sgmlnorm/sgmlnorm.cxx @@ -0,0 +1,89 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#include "config.h" +#include "sptchar.h" +#include "ParserApp.h" +#include "GenericEventHandler.h" +#include "SGMLGenerator.h" +#include "SgmlnormMessages.h" + +#ifdef SP_NAMESPACE +using namespace SP_NAMESPACE; +#endif + +class SGMLGeneratorEH : public SGMLGenerator, public GenericEventHandler { +public: + SGMLGeneratorEH(OutputCharStream *, unsigned genFlags, Messenger *); + void reportMessage(const Message &msg, StringC &); +private: + Messenger *mgr_; +}; + +class SgmlnormApp : public ParserApp { +public: + SgmlnormApp(); + void processOption(AppChar opt, const AppChar *arg); + ErrorCountEventHandler *makeEventHandler(); +private: + unsigned genFlags_; + Boolean rawOutput_; +}; + +SP_DEFINE_APP(SgmlnormApp) + +SgmlnormApp::SgmlnormApp() +: rawOutput_(0), genFlags_(0) +{ + changeOptionRegistration('n', AppChar(255)); + registerOption('d', SP_T("dtd"), SgmlnormMessages::dHelp); + registerOption('m', SP_T("marked-sections"), SgmlnormMessages::mHelp); + registerOption('n', SP_T("comments"), SgmlnormMessages::nHelp); + registerOption('r', SP_T("raw"), SgmlnormMessages::rHelp); + registerInfo(SgmlnormMessages::info1); + registerInfo(SgmlnormMessages::info2); + registerInfo(SgmlnormMessages::info3); +} + +void SgmlnormApp::processOption(AppChar opt, const AppChar *arg) +{ + switch (opt) { + case AppChar(255): + ParserApp::processOption('n', arg); + break; + case 'd': + genFlags_ |= SGMLGenerator::generateDtd; + break; + case 'm': + options_.eventsWanted.addMarkedSections(); + break; + case 'n': + options_.eventsWanted.addCommentDecls(); + break; + case 'r': + rawOutput_ = 1; + break; + default: + ParserApp::processOption(opt, arg); + break; + } +} + +ErrorCountEventHandler *SgmlnormApp::makeEventHandler() +{ + OutputCharStream *os = makeStdOut(); + if (!rawOutput_) + os = new RecordOutputCharStream(os); + return new SGMLGeneratorEH(os, genFlags_, this); +} + +SGMLGeneratorEH::SGMLGeneratorEH(OutputCharStream *os, unsigned genFlags, + Messenger *mgr) +: SGMLGenerator(os, genFlags), GenericEventHandler(*this, 1), mgr_(mgr) +{ +} + +void SGMLGeneratorEH::reportMessage(const Message &msg, StringC &) +{ + mgr_->dispatchMessage(msg); +} diff --git a/sgmlnorm/sgmlnorm.dsp b/sgmlnorm/sgmlnorm.dsp new file mode 100644 index 0000000..f9048cc --- /dev/null +++ b/sgmlnorm/sgmlnorm.dsp @@ -0,0 +1,146 @@ +# Microsoft Developer Studio Project File - Name="sgmlnorm" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=sgmlnorm - Win32 Release +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "sgmlnorm.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "sgmlnorm.mak" CFG="sgmlnorm - Win32 Release" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "sgmlnorm - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "sgmlnorm - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "sgmlnorm - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir ".\Release" +# PROP BASE Intermediate_Dir ".\Release" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir ".\Release" +# PROP Intermediate_Dir ".\Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\include" /I "..\generic" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /YX /FD /c +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"..\bin\osgmlnorm.exe" +# SUBTRACT LINK32 /profile + +!ELSEIF "$(CFG)" == "sgmlnorm - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir ".\Debug" +# PROP BASE Intermediate_Dir ".\Debug" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir ".\Debug" +# PROP Intermediate_Dir ".\Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\include" /I "..\generic" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /YX /FD /c +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\dbgbin\osgmlnorm.exe" + +!ENDIF + +# Begin Target + +# Name "sgmlnorm - Win32 Release" +# Name "sgmlnorm - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat;for;f90" +# Begin Source File + +SOURCE=.\SGMLGenerator.cxx +# End Source File +# Begin Source File + +SOURCE=.\sgmlnorm.cxx +# End Source File +# Begin Source File + +SOURCE=.\SgmlnormMessages.rc +# End Source File +# Begin Source File + +SOURCE=.\SgmlnormMessages.msg + +!IF "$(CFG)" == "sgmlnorm - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\SgmlnormMessages.msg +InputName=SgmlnormMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "sgmlnorm - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\SgmlnormMessages.msg +InputName=SgmlnormMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd" +# Begin Source File + +SOURCE=.\SGMLGenerator.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/sp-generate.mak b/sp-generate.mak new file mode 100644 index 0000000..39e3eac --- /dev/null +++ b/sp-generate.mak @@ -0,0 +1,73 @@ +# This is a Makefile for nmake that makes all the .cxx and .h files that +# are automatically generated. It's too painful to do in the IDE. +# You'll need perl in your PATH to use this. + +LANG=en + +M4=m4 +PERL=perl + +GENSRCS=msggen.pl \ +lib\entmgr_inst.cxx \ +lib\xentmgr_inst.cxx \ +lib\parser_inst.cxx \ +lib\app_inst.cxx \ +lib\arc_inst.cxx \ +lib\ArcEngineMessages.h \ +lib\EntityManagerMessages.h \ +lib\CatalogMessages.h \ +lib\MessageFormatterMessages.h \ +lib\MessageReporterMessages.h \ +lib\PosixStorageMessages.h \ +lib\URLStorageMessages.h \ +lib\WinInetStorageMessages.h \ +lib\StdioStorageMessages.h \ +lib\ParserMessages.h \ +lib\ParserAppMessages.h \ +lib\CmdLineAppMessages.h \ +lib\EntityAppMessages.h \ +nsgmls\nsgmls_inst.cxx \ +nsgmls\RastEventHandlerMessages.h \ +nsgmls\NsgmlsMessages.h \ +spam\SpamMessages.h \ +spam\spam_inst.cxx \ +sx\SxMessages.h \ +sx\XmlOutputMessages.h \ +sx\sx_inst.cxx \ +include\config.h + +.SUFFIXES: .m4 .msg .pl .in + +all: $(GENSRCS) + + +.m4.cxx: + -del /f $@ 2> nul + $(PERL) instmac.pl $< >$@ + attrib +r $@ + +{lib}.msg{lib}.h: + -del /f $@ 2> nul + $(PERL) -w msggen.pl -l libModule -t po\$(LANG).po $< + attrib +r $@ + +{nsgmls}.msg{nsgmls}.h: + -del /f $@ 2> nul + $(PERL) -w msggen.pl -l appModule -t po\$(LANG).po $< + attrib +r $@ + +{spam}.msg{spam}.h: + -del /f $@ 2> nul + $(PERL) -w msggen.pl -l appModule -t po\$(LANG).po $< + attrib +r $@ + +{sx}.msg{sx}.h: + -del /f $@ 2> nul + $(PERL) -w msggen.pl -l appModule -t po\$(LANG).po $< + attrib +r $@ + +include\config.h: include\config.h.old.in + copy include\config.h.old.in include\config.h + +msggen.pl: msggen.pl.in + copy msggen.pl.in msggen.pl diff --git a/spam/.cvsignore b/spam/.cvsignore new file mode 100644 index 0000000..bc3e8af --- /dev/null +++ b/spam/.cvsignore @@ -0,0 +1,11 @@ +Makefile +Makefile.in +.libs +.deps +*.la +*.lo +*Messages.h +*Messages.rc +*Messages.cxx +*_inst.cxx +ospam diff --git a/spam/CopyEventHandler.cxx b/spam/CopyEventHandler.cxx new file mode 100644 index 0000000..9d96820 --- /dev/null +++ b/spam/CopyEventHandler.cxx @@ -0,0 +1,1071 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "config.h" +#include "CopyEventHandler.h" +#include "macros.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +inline +OutputCharStream &operator<<(OutputCharStream &os, const MarkupIter &iter) +{ + return os.write(iter.charsPointer(), iter.charsLength()); +} + +#ifdef __GNUG__ +inline +#endif +Boolean CopyEventHandler::noOutput() +{ + if (inInstance_) { + if (normalizeFlags_ & normalizeExpand) { + if (entityLevel_ >= outputEntityLevel_) + return 0; + } + else { + if (entityLevel_ == outputEntityLevel_) + return 0; + } + } + else if (normalizeFlags_ & normalizeIncludeProlog) { + if (normalizeFlags_ & normalizeExpandProlog) { + if (entityLevel_ >= outputEntityLevel_) + return 0; + } + else { + if (entityLevel_ == outputEntityLevel_) + return 0; + } + } + return 1; +} + +inline +Boolean CopyEventHandler::doNothing(Event *event) +{ + if (noOutput()) { + delete event; + return 1; + } + else + return 0; +} + + +inline +void CopyEventHandler::withNamedCharRef(const StringC &str, + const Location &loc) +{ + withNamedCharRef(str.data(), str.size(), loc); +} + +static +void escape(OutputCharStream &s, Char c) +{ + s << "&#" << (unsigned long)c << ";"; +} + +CopyEventHandler::CopyEventHandler(OutputCharStream *os, + unsigned normalizeFlags, + const StringC &outputEntity) +: os_(os), topOs_(os), inInstance_(0), entityLevel_(0), + normalizeFlags_(normalizeFlags), outputEntity_(outputEntity), + omittagHoist_(0), inSpecialMarkedSection_(0), + currentAttributes_(0), emptyElementNormal_(0) +{ + outputEntityLevel_ = outputEntity_.size() == 0 ? 0 : unsigned(-1); + os_->setEscaper(escape); +} + +CopyEventHandler::~CopyEventHandler() +{ + delete os_; +} + +void CopyEventHandler::markup(const Location &loc, + const Markup &markup) +{ + if (!noOutput()) + outputMarkup(loc, markup); +} + +void CopyEventHandler::sgmlDecl(SgmlDeclEvent *event) +{ + if (event->implySystemId().size() == 0 + && !event->location().origin().isNull() + && (normalizeFlags_ & normalizeIncludeProlog)) { + syntax_ = event->refSyntaxPointer(); + sd_ = event->refSdPointer(); + outputMarkup(event->location(), event->markup()); + } + syntax_ = event->prologSyntaxPointer(); + instanceSyntax_ = event->instanceSyntaxPointer(); + if (instanceSyntax_->namecaseGeneral()) + instanceSyntax_->generalSubstTable()->inverseTable(lowerSubst_); + else if (instanceSyntax_->namecaseEntity()) + instanceSyntax_->entitySubstTable()->inverseTable(lowerSubst_); + sd_ = event->sdPointer(); + emptyElementNormal_ = sd_->emptyElementNormal(); + delete event; +} + +void CopyEventHandler::endProlog(EndPrologEvent *event) +{ + inInstance_ = 1; + syntax_ = instanceSyntax_; + delete event; +} + +void CopyEventHandler::data(DataEvent *event) +{ + omittagHoist_ = 0; + if (doNothing(event)) + return; + if (event->entity()) + entityRef(event->location().origin()->asEntityOrigin()); + else { + size_t n = event->dataLength(); + unsigned long dummy; + if (n > 1 || !event->isRe(dummy)) + writeData(event->data(), n, event->location()); + } + delete event; +} + +void CopyEventHandler::nonSgmlChar(NonSgmlCharEvent *event) +{ + omittagHoist_ = 0; + if (doNothing(event)) + return; + Char c = event->character(); + writeData(&c, 1, event->location()); + delete event; +} + +void CopyEventHandler::writeData(const Char *p, size_t n, + const Location &loc) +{ + const Markup *markupPtr; + if (n == 1 && loc.origin()->isNumericCharRef(markupPtr)) { + if (markupPtr) + outputMarkup(loc.origin()->parent(), *markupPtr); + } + else + withNamedCharRef(p, n, loc); +} + +void CopyEventHandler::withNamedCharRef(const Char *p, size_t n, + const Location &loc) +{ + if (n > 0) { + const Origin *origin = loc.origin().pointer(); + if (origin) { + NamedCharRef ref; + if (origin->isNamedCharRef(loc.index(), ref)) { + Markup markup; + markup.addDelim(Syntax::dCRO); + markup.addName(ref.origName().data(), ref.origName().size()); + switch (ref.refEndType()) { + case NamedCharRef::endOmitted: + break; + case NamedCharRef::endRE: + markup.addRefEndRe(); + break; + case NamedCharRef::endRefc: + markup.addDelim(Syntax::dREFC); + break; + } + outputMarkup(Location(loc.origin(), ref.refStartIndex()), markup); + p++; + n--; + } + } + } + os().write(p, n); +} + +void CopyEventHandler::reOrigin(ReOriginEvent *event) +{ + omittagHoist_ = 0; + if (doNothing(event)) + return; + Char c = event->re(); + withNamedCharRef(&c, 1, event->location()); + delete event; +} + +void CopyEventHandler::sSep(SSepEvent *event) +{ + if (doNothing(event)) + return; + withNamedCharRef(event->data(), event->dataLength(), event->location()); + delete event; +} + +void CopyEventHandler::ignoredRs(IgnoredRsEvent *event) +{ + if (doNothing(event)) + return; + Char c = event->rs(); + withNamedCharRef(&c, 1, event->location()); + delete event; +} + +void CopyEventHandler::startElement(StartElementEvent *event) +{ + mustOmitEnd_ = event->mustOmitEnd(); + const Markup *markup = event->markupPtr(); + if (!markup) { + if (normalizeFlags_ & normalizeExpand) { + if (outputEntityLevel_ > entityLevel_ - omittagHoist_) { + delete event; + return; + } + if (omittagHoist_ >= entityStack_.size()) + os_ = topOs_; + } + else if (entityLevel_ - omittagHoist_ != outputEntityLevel_) { + delete event; + return; + } + } + else { + omittagHoist_ = 0; + if (doNothing(event)) + return; + } + if (normalizeFlags_ & normalizeExpandAll) + handleChange(); + if (markup) { + Boolean hadName = 0; + Boolean closed = 1; + MarkupIter iter(*markup); + while (iter.valid()) { + switch (iter.type()) { + case Markup::delimiter: + switch (iter.delimGeneral()) { + case Syntax::dTAGC: + closed = 1; + if (!hadName) { + StringC nameBuf; + StringC tag(elementTypeOrigName(event->elementType(), nameBuf)); + if (normalizeFlags_ & normalizeEmptytag) { + handleChange(); + os() << tag; + tag.resize(0); + } + unspecifiedAttributeValues(event->attributes(), tag); + } + os() << syntax_->delimGeneral(iter.delimGeneral()); + break; + case Syntax::dNESTC: + closed = 1; + if (normalizeFlags_ & normalizeNet) { + handleChange(); + os() << syntax_->delimGeneral(Syntax::dTAGC); + break; + } + // fall through + default: + os() << syntax_->delimGeneral(iter.delimGeneral()); + break; + } + iter.advance(); + break; + case Markup::name: + { + ASSERT(!hadName); + const ElementType *elementType = event->elementType(); + if (elementType->index() >= elementTypeOrigNames_.size()) + elementTypeOrigNames_.resize(elementType->index() + 1); + StringC &elementTypeOrigName + = elementTypeOrigNames_[elementType->index()]; + if (elementTypeOrigName.size() == 0) { + elementTypeOrigName.assign(iter.charsPointer(), + iter.charsLength()); + // add rank if missing + elementTypeOrigName.append(event->name().data() + + elementTypeOrigName.size(), + event->name().size() + - elementTypeOrigName.size()); + } + os() << iter; + if (normalizeFlags_ & normalizeRank) { + for (size_t i = iter.charsLength(); + i < event->name().size(); + i++) { + handleChange(); + os().put(event->name()[i]); + } + } + attributeSpecList(iter, event->attributes()); + hadName = 1; + } + break; + case Markup::s: + os() << iter; + iter.advance(); + break; + default: + CANNOT_HAPPEN(); + } + } + if (!closed && (normalizeFlags_ && normalizeUnclosed)) { + handleChange(); + os() << syntax_->delimGeneral(Syntax::dTAGC); + } + } + else if (normalizeFlags_ & normalizeOmittag) { + if (inSpecialMarkedSection_) { + reportTagInSpecialMarkedSection(event->location()); + return; + } + handleChange(); + StringC nameBuf; + os() << syntax_->delimGeneral(Syntax::dSTAGO) + << elementTypeOrigName(event->elementType(), nameBuf); + unspecifiedAttributeValues(event->attributes(), StringC()); + os() << syntax_->delimGeneral(Syntax::dTAGC); + } + delete event; + if (entityStack_.size() > 0 && os_ == topOs_) + os_ = &entityStack_.back().str; +} + +void CopyEventHandler::attributeSpecList(MarkupIter &iter, + const AttributeList &atts) +{ + size_t nAtt = atts.size(); + unsigned i; + unsigned *attIndex; + if (atts.nSpec()) { + attIndex = new unsigned[atts.nSpec()]; + for (i = 0; i < atts.nSpec(); i++) + attIndex[i] = unsigned(-1); + for (i = 0; i < nAtt; i++) + if (atts.specified(i)) + attIndex[atts.specIndex(i)] = i; + } + else + attIndex = 0; + Boolean hadAttname = 0; + i = 0; + StringC nameBuf; + for (iter.advance(); iter.valid(); iter.advance()) + switch (iter.type()) { + case Markup::name: + os() << iter; + hadAttname = 1; + break; + case Markup::s: + os() << iter; + break; + case Markup::attributeValue: + if (!hadAttname + && attIndex + && attIndex[i] != unsigned(-1) + && (normalizeFlags_ & (normalizeAttname | normalizeAttvalue))) { + handleChange(); + os() << generalName(atts.name(attIndex[i]), nameBuf) + << syntax_->delimGeneral(Syntax::dVI); + } + if (normalizeFlags_ & normalizeAttvalue) { + handleChange(); + os() << syntax_->delimGeneral(Syntax::dLIT) + << iter + << syntax_->delimGeneral(Syntax::dLIT); + } + else + os() << iter; + hadAttname = 0; + i++; + break; + case Markup::literal: + literal(iter.text()); + i++; + hadAttname = 0; + break; + case Markup::delimiter: + if (iter.delimGeneral() == Syntax::dVI) + os() << syntax_->delimGeneral(iter.delimGeneral()); + else { + unspecifiedAttributeValues(atts, StringC()); + delete [] attIndex; + return; + } + break; + default: + CANNOT_HAPPEN(); + } +} + +void CopyEventHandler::unspecifiedAttributeValues(const AttributeList &atts, + const StringC &beforeFirst) +{ + if (normalizeFlags_ & (normalizeCurrent|normalizeAttspec)) { + Boolean first = 1; + size_t nAtt = atts.size(); + StringC nameBuf; + for (unsigned i = 0; i < nAtt; i++) { + const Text *text; + if (!atts.specified(i) + && ((normalizeFlags_ & normalizeAttspec) + || atts.current(i)) + && atts.value(i) + && (text = atts.value(i)->text()) != 0) { + if (first) { + handleChange(); + os() << beforeFirst; + first = 0; + } + os().put(syntax_->standardFunction(Syntax::fSPACE)); + os() << generalName(atts.name(i), nameBuf) + << syntax_->delimGeneral(Syntax::dVI); + Boolean lita; + if (text->delimType(lita)) + literal(*text); + else { + if (normalizeFlags_ & normalizeAttvalue) { + os() << syntax_->delimGeneral(Syntax::dLIT) + << text->string() + << syntax_->delimGeneral(Syntax::dLIT); + } + else + os() << text->string(); + } + } + } + } +} + +void CopyEventHandler::literal(const Text &text) +{ + TextIter iter(text); + TextItem::Type type; + const Char *p; + size_t n; + const Location *loc; + StringC delim; + Boolean lita; + if (!text.delimType(lita)) + CANNOT_HAPPEN(); + delim = syntax_->delimGeneral(lita ? Syntax::dLITA : Syntax::dLIT); + os() << delim; + int level = 0; + while (iter.next(type, p, n, loc)) { + switch (type) { + case TextItem::ignore: + case TextItem::data: + case TextItem::nonSgml: + if (!level) { + const Char *orig; + if (loc->origin()->origChars(orig)) + writeData(orig, n, loc->origin()->parent()); + else + writeData(p, n, *loc); + } + break; + case TextItem::cdata: + case TextItem::sdata: + if (!level) + entityRef(loc->origin()->asEntityOrigin()); + break; + case TextItem::entityStart: + if (!level++) + entityRef(loc->origin()->asEntityOrigin()); + break; + case TextItem::entityEnd: + level--; + break; + case TextItem::startDelim: + case TextItem::endDelim: + case TextItem::endDelimA: + break; + } + } + Location delimLoc; + if (!text.endDelimLocation(delimLoc)) + CANNOT_HAPPEN(); + withNamedCharRef(delim, delimLoc); +} + +void CopyEventHandler::endElement(EndElementEvent *event) +{ + if (!emptyElementNormal_ && mustOmitEnd_) { + delete event; + mustOmitEnd_ = 0; + return; + } + const Markup *markup = event->markupPtr(); + if (!markup) { + if (normalizeFlags_ & normalizeExpand) { + if (outputEntityLevel_ > entityLevel_ - omittagHoist_) { + delete event; + return; + } + if (omittagHoist_ >= entityStack_.size()) + os_ = topOs_; + } + else if (entityLevel_ - omittagHoist_ != outputEntityLevel_) { + delete event; + return; + } + } + else { + omittagHoist_ = 0; + if (doNothing(event)) + return; + } + if (normalizeFlags_ & normalizeExpandAll) + handleChange(); + if (markup) { + Boolean closed = 0; + Boolean hadAttname = 0; + for (MarkupIter iter(*markup); iter.valid(); iter.advance()) + switch (iter.type()) { + case Markup::s: + os() << iter; + break; + case Markup::name: + { + os() << iter; + for (size_t i = iter.charsLength(); + i < event->name().size(); + i++) { + handleChange(); + os().put(event->name()[i]); + } + hadAttname = 1; + } + break; + case Markup::delimiter: + if (iter.delimGeneral() == Syntax::dTAGC) { + closed = 1; + if (!hadAttname + && (normalizeFlags_ & normalizeEmptytag)) { + handleChange(); + StringC nameBuf; + os() << elementTypeOrigName(event->elementType(), nameBuf); + } + } + else if (iter.delimGeneral() == Syntax::dNET) { + closed = 1; + if (normalizeFlags_ & normalizeNet) { + handleChange(); + StringC nameBuf; + os() << syntax_->delimGeneral(Syntax::dETAGO) + << elementTypeOrigName(event->elementType(), nameBuf) + << syntax_->delimGeneral(Syntax::dTAGC); + break; + } + } + os() << syntax_->delimGeneral(iter.delimGeneral()); + break; + default: + CANNOT_HAPPEN(); + } + if (!closed && (normalizeFlags_ & normalizeUnclosed)) { + handleChange(); + os() << syntax_->delimGeneral(Syntax::dTAGC); + } + } + else if (normalizeFlags_ & normalizeOmittag) { + if (inSpecialMarkedSection_) { + reportTagInSpecialMarkedSection(event->location()); + return; + } + handleChange(); + StringC nameBuf; + os() << syntax_->delimGeneral(Syntax::dETAGO) + << elementTypeOrigName(event->elementType(), nameBuf) + << syntax_->delimGeneral(Syntax::dTAGC); + } + delete event; + if (entityStack_.size() > 0 && os_ == topOs_) + os_ = &entityStack_.back().str; +} + +void CopyEventHandler::pi(PiEvent *event) +{ + omittagHoist_ = 0; + if (doNothing(event)) + return; + if (event->entity()) + entityRef(event->location().origin()->asEntityOrigin()); + else { + os() << syntax_->delimGeneral(Syntax::dPIO); + os().write(event->data(), event->dataLength()); + os() << syntax_->delimGeneral(Syntax::dPIC); + } + delete event; +} + +void CopyEventHandler::sdataEntity(SdataEntityEvent *event) +{ + omittagHoist_ = 0; + if (doNothing(event)) + return; + entityRef(event->location().origin()->asEntityOrigin()); + delete event; +} + +void CopyEventHandler::externalDataEntity(ExternalDataEntityEvent *event) +{ + omittagHoist_ = 0; + if (doNothing(event)) + return; + entityRef(event->entityOrigin().pointer()); + delete event; +} + +void CopyEventHandler::subdocEntity(SubdocEntityEvent *event) +{ + omittagHoist_ = 0; + if (doNothing(event)) + return; + entityRef(event->entityOrigin().pointer()); + delete event; +} + +void CopyEventHandler::markedSectionStart(MarkedSectionStartEvent *event) +{ + omittagHoist_ = 0; + switch (event->status()) { + case MarkedSectionEvent::rcdata: + case MarkedSectionEvent::cdata: + inSpecialMarkedSection_ = 1; + break; + default: + break; + } + if (doNothing(event)) + return; + if (!(normalizeFlags_ & normalizeMarkedSection) + || (inInstance_ && inSpecialMarkedSection_)) + outputMarkup(event->location(), event->markup()); + else if (inInstance_ && event->status() != MarkedSectionEvent::ignore) { + // Put an empty comment so that REs aren't changed. + // With an ignored marked section, sufficent to have comment at the end. + handleChange(); + os() << syntax_->delimGeneral(Syntax::dMDO) + << syntax_->delimGeneral(Syntax::dMDC); + } + delete event; +} + +void CopyEventHandler::markedSectionEnd(MarkedSectionEndEvent *event) +{ + omittagHoist_ = 0; + if (doNothing(event)) { + inSpecialMarkedSection_ = 0; + return; + } + if (!(normalizeFlags_ & normalizeMarkedSection) + || (inInstance_ && inSpecialMarkedSection_)) + outputMarkup(event->location(), event->markup()); + else if (inInstance_) { + // Put an empty comment so that REs aren't changed. + handleChange(); + os() << syntax_->delimGeneral(Syntax::dMDO) + << syntax_->delimGeneral(Syntax::dMDC); + } + inSpecialMarkedSection_ = 0; + delete event; +} + +void CopyEventHandler::ignoredChars(IgnoredCharsEvent *event) +{ + omittagHoist_ = 0; + if (doNothing(event)) + return; + if (!(normalizeFlags_ & normalizeMarkedSection)) + os().write(event->data(), event->dataLength()); + delete event; +} + +void CopyEventHandler::usemap(UsemapEvent *event) +{ + omittagHoist_ = 0; + if (doNothing(event)) + return; + if (!(normalizeFlags_ & normalizeShortref)) + outputMarkup(event->location(), event->markup()); + else if (inInstance_) { + // Put an empty comment so that REs aren't changed. + handleChange(); + os() << syntax_->delimGeneral(Syntax::dMDO) + << syntax_->delimGeneral(Syntax::dMDC); + } + delete event; +} + +void CopyEventHandler::uselink(UselinkEvent *event) +{ + omittagHoist_ = 0; + markup(event->location(), event->markup()); + delete event; +} + +void CopyEventHandler::startDtd(StartDtdEvent *event) +{ + startSubset(event); +} + +void CopyEventHandler::startLpd(StartLpdEvent *event) +{ + startSubset(event); +} + +void CopyEventHandler::startSubset(StartSubsetEvent *event) +{ + if (doNothing(event)) + return; + if (!event->entity().isNull() + && (normalizeFlags_ & normalizeExpandProlog)) { + const Markup &m = event->markup(); + for (MarkupIter iter(m); iter.valid(); iter.advance()) + if (iter.type() == Markup::reservedName + && (iter.reservedName() == Syntax::rSYSTEM + || iter.reservedName() == Syntax::rPUBLIC)) { + Markup copy(m); + copy.resize(iter.index()); + outputMarkup(event->location(), copy); + break; + } + } + else + outputMarkup(event->location(), event->markup()); + if (event->hasInternalSubset() + || (normalizeFlags_ & normalizeExpandProlog)) { + os() << syntax_->delimGeneral(Syntax::dDSO); + hasInternalSubset_ = 1; + } + else + hasInternalSubset_ = 0; + delete event; +} + +void CopyEventHandler::endDtd(EndDtdEvent *event) +{ + endSubset(event); +} + +void CopyEventHandler::endLpd(EndLpdEvent *event) +{ + endSubset(event); +} + +void CopyEventHandler::endSubset(MarkupEvent *event) +{ + if (doNothing(event)) + return; + if (hasInternalSubset_) + os() << syntax_->delimGeneral(Syntax::dDSC); + outputMarkup(event->location(), event->markup()); + delete event; +} + +void CopyEventHandler::entityDecl(EntityDeclEvent *event) +{ + currentAttributes_ = 0; + const ExternalDataEntity *extData = event->entity().asExternalDataEntity(); + if (extData) + currentAttributes_ = &extData->attributes(); + markup(event->location(), event->markup()); + currentAttributes_ = 0; + delete event; +} + +void CopyEventHandler::shortrefDecl(ShortrefDeclEvent *event) +{ + if (doNothing(event)) + return; + if (!(normalizeFlags_ & normalizeShortref)) + outputMarkup(event->location(), event->markup()); + delete event; +} + +void CopyEventHandler::entityStart(EntityStartEvent *event) +{ + if (event->entity()->name() == outputEntity_ + && event->entity()->declType() == Entity::generalEntity) + outputEntityLevel_ = entityLevel_ + 1; + if (inInstance_ && (normalizeFlags_ & normalizeOmittagHoist)) { + if (event->entity()->asInternalEntity()) + omittagHoist_++; + else + omittagHoist_ = 0; + } + if (doNothing(event)) { + entityLevel_++; + return; + } + entityLevel_++; + if ((normalizeFlags_ & normalizeExpand) + && inInstance_ + && entityLevel_ > outputEntityLevel_) { + entityStack_.resize(entityStack_.size() + 1); + entityStack_.back().ref = event->entityOrigin(); + os_ = &entityStack_.back().str; + } + entityOrigin_ = event->entityOrigin(); + delete event; +} + +void CopyEventHandler::entityEnd(EntityEndEvent *event) +{ + if (omittagHoist_ > 0) + omittagHoist_--; + if (entityLevel_-- == outputEntityLevel_) { + outputEntityLevel_ = unsigned(-1); + outputEntity_.resize(0); + } + else if (!(normalizeFlags_ + & (inInstance_ ? normalizeExpand : normalizeExpandProlog)) + && entityLevel_ == outputEntityLevel_) { + if (!entityOrigin_.isNull()) { + switch (entityOrigin_->entity()->declType()) { + case Entity::doctype: + case Entity::linktype: + break; + default: + entityRef(entityOrigin_.pointer()); + break; + } + } + entityOrigin_.clear(); + } + else if ((normalizeFlags_ & normalizeExpand) + && inInstance_ + && entityLevel_ >= outputEntityLevel_) { + if (entityStack_.size() > 0) { + ConstPtr origin + = entityStack_.back().ref; + entityStack_.resize(entityStack_.size() - 1); + if (entityStack_.size() > 0) + os_ = &entityStack_.back().str; + else + os_ = topOs_; + entityRef(origin.pointer()); + } + } + delete event; +} + +void CopyEventHandler::outputMarkup(const Location &loc, + const Markup &markup) +{ + int level = 0; + Boolean first = 1; + MarkupIter iter(markup); + while (iter.valid()) { + switch (iter.type()) { + case Markup::delimiter: + if (first) + withNamedCharRef(syntax_->delimGeneral(iter.delimGeneral()), loc); + else if (!level) { + os() << syntax_->delimGeneral(iter.delimGeneral()); + // hack, hack! + if (iter.delimGeneral() == Syntax::dDSO && currentAttributes_ != 0) { + attributeSpecList(iter, *currentAttributes_); + first = 0; + continue; // skip the advance + } + } + break; + case Markup::refEndRe: + if (!level) + os().put(syntax_->standardFunction(Syntax::fRE)); + break; + case Markup::sdReservedName: + if (!level) { + if (normalizeFlags_ & normalizeReserved) + os() << sd_->reservedName(iter.sdReservedName()); + else + os() << iter; + } + break; + case Markup::reservedName: + if (!level && (normalizeFlags_ & normalizeReserved)) { + os() << syntax_->reservedName(iter.reservedName()); + break; + } + case Markup::shortref: + if (first) { + withNamedCharRef(iter.charsPointer(), iter.charsLength(), loc); + break; + } + // fall through + case Markup::name: + case Markup::nameToken: + case Markup::attributeValue: + case Markup::number: + case Markup::s: + if (!level) + os() << iter; + break; + case Markup::comment: + if (!level) + os() << syntax_->delimGeneral(Syntax::dCOM) + << iter + << syntax_->delimGeneral(Syntax::dCOM); + break; + case Markup::entityStart: + if (!level++) { + const EntityOrigin *origin = iter.entityOrigin(); + // entityStarts in the SGML declaration don't have explicit references + if (origin->entity()) + entityRef(origin); + } + break; + case Markup::entityEnd: + level--; + break; + case Markup::literal: + if (!level) + literal(iter.text()); + break; + case Markup::sdLiteral: + if (!level) + sdParamLiteral(iter.sdText()); + break; + default: + CANNOT_HAPPEN(); + } + iter.advance(); + first = 0; + } +} + +void CopyEventHandler::sdParamLiteral(const SdText &text) +{ + const StringC &delim = syntax_->delimGeneral(text.lita() + ? Syntax::dLITA + : Syntax::dLIT); + os() << delim; + SdTextIter iter(text); + const SyntaxChar *p; + size_t n; + Location loc; + while (iter.next(p, n, loc)) { + const Markup *markupPtr; + if (n == 1 && loc.origin()->isNumericCharRef(markupPtr)) { + if (markupPtr) + outputMarkup(loc.origin()->parent(), *markupPtr); + } + else if (n > 0) { + Char c = Char(*p); + withNamedCharRef(&c, 1, loc); + for (++p, --n; n > 0; ++p, --n) + os().put(Char(*p)); + } + } + os() << delim; +} + +void CopyEventHandler::entityRef(const EntityOrigin *origin) +{ + const Markup *m = origin->markup(); + if (!m) + return; + MarkupIter iter(*m); + if (iter.valid()) { + iter.advance(); + if (iter.valid() + && iter.type() == Markup::shortref + && (normalizeFlags_ & normalizeShortref)) { + handleChange(); + Boolean containsRE = 0; + Boolean containsRS = 0; + for (size_t i = 0; i < iter.charsLength(); i++) { + Char c = iter.charsPointer()[i]; + if (c == syntax_->standardFunction(Syntax::fRE)) + containsRE = 1; + else if (c == syntax_->standardFunction(Syntax::fRS)) + containsRS = 1; + } + if (containsRS) + os().put(syntax_->standardFunction(Syntax::fRS)); + os() << syntax_->delimGeneral(Syntax::dERO) + << origin->entity()->name(); + if (containsRE) + os().put(syntax_->standardFunction(Syntax::fRE)); + else + os() << syntax_->delimGeneral(Syntax::dREFC); + return; + } + } + outputMarkup(origin->parent(), *m); +} + +const StringC &CopyEventHandler::elementTypeOrigName(const ElementType *type, + StringC &buf) +{ + if (type->index() < elementTypeOrigNames_.size() + && elementTypeOrigNames_[type->index()].size() > 0) + return elementTypeOrigNames_[type->index()]; + else + return generalName(type->name(), buf); +} + +const StringC &CopyEventHandler::generalName(const StringC &name, + StringC &buf) +{ + if ((normalizeFlags_ & normalizeLower) + && syntax_->namecaseGeneral()) + return lowerCaseName(name, buf); + else + return name; +} + +const StringC &CopyEventHandler::entityName(const StringC &name, + StringC &buf) +{ + if ((normalizeFlags_ & normalizeLower) + && syntax_->namecaseEntity()) + return lowerCaseName(name, buf); + else + return name; +} + +const StringC &CopyEventHandler::lowerCaseName(const StringC &name, + StringC &buf) +{ + size_t i; + for (i = 0; i < name.size(); i++) { + Char c = lowerSubst_[name[i]]; + if (c != name[i]) { + buf = name; + buf[i] = c; + for (i++; i < name.size(); i++) + lowerSubst_.subst(buf[i]); + return buf; + } + } + return name; +} + +void CopyEventHandler::handleChange() +{ + if (os_ != topOs_) { + os_ = topOs_; + for (size_t i = 0; i < entityStack_.size(); i++) { + StringC tem; + entityStack_[i].str.flush(); + entityStack_[i].str.extractString(tem); + os() << tem; + } + entityStack_.resize(0); + } +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/spam/CopyEventHandler.h b/spam/CopyEventHandler.h new file mode 100644 index 0000000..bb1fa8a --- /dev/null +++ b/spam/CopyEventHandler.h @@ -0,0 +1,137 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef CopyEventHandler_INCLUDED +#define CopyEventHandler_INCLUDED 1 +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Event.h" +#include "OutputCharStream.h" +#include "Vector.h" +#include "NCVector.h" +#include "MarkupEventHandler.h" + +// This should be local to CopyEventHandler, but some compilers +// can't handle this. + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct CopyEventHandlerEntityInfo { + StrOutputCharStream str; + ConstPtr ref; +}; + +class CopyEventHandler : public MarkupEventHandler { +public: + enum NormalizeFlags { + normalizeOmittag = 01, + normalizeShortref = 02, + normalizeNet = 04, + normalizeEmptytag = 010, + normalizeUnclosed = 020, + normalizeAttname = 040, + normalizeAttvalue = 0100, + normalizeAttspec = 0200, + normalizeShorttag = (normalizeNet|normalizeEmptytag|normalizeUnclosed + |normalizeAttname|normalizeAttvalue|normalizeAttspec), + normalizeRank = 0400, + normalizeOmittagHoist = 01000, + normalizeExpand = 02000, + normalizeExpandAll = 04000, + normalizeCurrent = 010000, + normalizeLower = 020000, + normalizeReserved = 040000, + normalizeExpandProlog = 0100000, + normalizeIncludeProlog = 0200000, + normalizeMarkedSection = 0400000 + }; + CopyEventHandler(OutputCharStream *, unsigned flags, + const StringC &outputEntity); + ~CopyEventHandler(); + void reOrigin(ReOriginEvent *); + void sSep(SSepEvent *); + void ignoredRs(IgnoredRsEvent *); + void data(DataEvent *); + void startElement(StartElementEvent *); + void endElement(EndElementEvent *); + void sdataEntity(SdataEntityEvent *); + void externalDataEntity(ExternalDataEntityEvent *); + void subdocEntity(SubdocEntityEvent *); + void nonSgmlChar(NonSgmlCharEvent *); + void pi(PiEvent *); + void endProlog(EndPrologEvent *); + void markedSectionStart(MarkedSectionStartEvent *); + void markedSectionEnd(MarkedSectionEndEvent *); + void entityStart(EntityStartEvent *); + void entityEnd(EntityEndEvent *); + void ignoredChars(IgnoredCharsEvent *); + void sgmlDecl(SgmlDeclEvent *); + void usemap(UsemapEvent *); + void uselink(UselinkEvent *); + void startDtd(StartDtdEvent *); + void startLpd(StartLpdEvent *); + void endDtd(EndDtdEvent *); + void endLpd(EndLpdEvent *); + void entityDecl(EntityDeclEvent *); + void shortrefDecl(ShortrefDeclEvent *); + void markup(const Location &loc, const Markup &markup); +private: + virtual void reportTagInSpecialMarkedSection(const Location &) = 0; + OutputCharStream &os(); + void startSubset(StartSubsetEvent *); + void endSubset(MarkupEvent *); + void literal(const Text &text); + void attributeSpecList(MarkupIter &, const AttributeList &); + void unspecifiedAttributeValues(const AttributeList &atts, + const StringC &beforeFirst); + void withNamedCharRef(const StringC &, const Location &loc); + void withNamedCharRef(const Char *p, size_t n, const Location &loc); + void writeData(const Char *p, size_t n, const Location &loc); + void sdParamLiteral(const SdText &text); + void entityRef(const EntityOrigin *); + Boolean doNothing(Event *); + Boolean noOutput(); + Boolean isSgmlChar(Char); + const StringC &elementTypeOrigName(const ElementType *, StringC &buf); + const StringC &generalName(const StringC &name, StringC &buf); + const StringC &entityName(const StringC &name, StringC &buf); + const StringC &lowerCaseName(const StringC &name, StringC &buf); + void handleChange(); + void outputMarkup(const Location &loc, const Markup &markup); + OutputCharStream *os_; + OutputCharStream *topOs_; + Boolean inInstance_; + unsigned entityLevel_; + unsigned outputEntityLevel_; + ConstPtr syntax_; + ConstPtr instanceSyntax_; + ConstPtr sd_; + SubstTable lowerSubst_; + unsigned normalizeFlags_; + StringC outputEntity_; + Vector elementTypeOrigNames_; + unsigned omittagHoist_; + ConstPtr entityOrigin_; + NCVector entityStack_; + Boolean inSpecialMarkedSection_; + Boolean hasInternalSubset_; + Boolean mustOmitEnd_; + Boolean emptyElementNormal_; + const AttributeList *currentAttributes_; +}; + +inline +OutputCharStream &CopyEventHandler::os() +{ + return *os_; +} + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not CopyEventHandler_INCLUDED */ diff --git a/spam/Makefile.am b/spam/Makefile.am new file mode 100644 index 0000000..ec959b7 --- /dev/null +++ b/spam/Makefile.am @@ -0,0 +1,32 @@ +## Process this file with automake to produce Makefile.in + +bin_PROGRAMS = ospam + +ospam_SOURCES = spam.cxx CopyEventHandler.cxx CopyEventHandler.h \ + MarkupEventHandler.cxx MarkupEventHandler.h spam_inst.cxx \ + SpamMessages.h + +EXTRA_DIST = SpamMessages.msg SpamMessages.rc \ + spam.rc spam.dsp spam_inst.m4 .cvsignore + +ospam_LDADD = $(top_builddir)/lib/libosp.la $(LTLIBINTL) + +INCLUDES = -I$(top_srcdir)/include + +BUILT_SOURCES = spam_inst.cxx SpamMessages.h SpamMessages.rc + +MAINTAINERCLEANFILES = Makefile.in + +MSGGENFLAGS = -l appModule + +spam.o: SpamMessages.h + + +SUFFIXES = .msg .m4 .rc + +.m4.cxx: + $(PERL) $(top_srcdir)/instmac.pl $< >$@ + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< + diff --git a/spam/Makefile.in b/spam/Makefile.in new file mode 100644 index 0000000..273fea1 --- /dev/null +++ b/spam/Makefile.in @@ -0,0 +1,542 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = ospam$(EXEEXT) +subdir = spam +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +PROGRAMS = $(bin_PROGRAMS) +am_ospam_OBJECTS = spam.$(OBJEXT) CopyEventHandler.$(OBJEXT) \ + MarkupEventHandler.$(OBJEXT) spam_inst.$(OBJEXT) +ospam_OBJECTS = $(am_ospam_OBJECTS) +am__DEPENDENCIES_1 = +ospam_DEPENDENCIES = $(top_builddir)/lib/libosp.la \ + $(am__DEPENDENCIES_1) +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(ospam_SOURCES) +DIST_SOURCES = $(ospam_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +ospam_SOURCES = spam.cxx CopyEventHandler.cxx CopyEventHandler.h \ + MarkupEventHandler.cxx MarkupEventHandler.h spam_inst.cxx \ + SpamMessages.h + +EXTRA_DIST = SpamMessages.msg SpamMessages.rc \ + spam.rc spam.dsp spam_inst.m4 .cvsignore + +ospam_LDADD = $(top_builddir)/lib/libosp.la $(LTLIBINTL) +INCLUDES = -I$(top_srcdir)/include +BUILT_SOURCES = spam_inst.cxx SpamMessages.h SpamMessages.rc +MAINTAINERCLEANFILES = Makefile.in +MSGGENFLAGS = -l appModule +SUFFIXES = .msg .m4 .rc +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .msg .m4 .rc .cxx .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu spam/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu spam/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + || test -f $$p1 \ + ; then \ + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ + else :; fi; \ + done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ + done + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done +ospam$(EXEEXT): $(ospam_OBJECTS) $(ospam_DEPENDENCIES) + @rm -f ospam$(EXEEXT) + $(CXXLINK) $(ospam_LDFLAGS) $(ospam_OBJECTS) $(ospam_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CopyEventHandler.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MarkupEventHandler.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spam.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spam_inst.Po@am__quote@ + +.cxx.o: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< + +.cxx.obj: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cxx.lo: +@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-libtool distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-exec-am: install-binPROGRAMS + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS uninstall-info-am + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool ctags distclean distclean-compile \ + distclean-generic distclean-libtool distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-binPROGRAMS uninstall-info-am + + +spam.o: SpamMessages.h + +.m4.cxx: + $(PERL) $(top_srcdir)/instmac.pl $< >$@ + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/spam/MarkupEventHandler.cxx b/spam/MarkupEventHandler.cxx new file mode 100644 index 0000000..871fd6a --- /dev/null +++ b/spam/MarkupEventHandler.cxx @@ -0,0 +1,159 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "config.h" +#include "MarkupEventHandler.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +MarkupEventHandler::MarkupEventHandler() +{ +} + +void MarkupEventHandler::startElement(StartElementEvent *event) +{ + if (event->markupPtr()) + markup(event->location(), *event->markupPtr()); + delete event; +} + +void MarkupEventHandler::endElement(EndElementEvent *event) +{ + if (event->markupPtr()) + markup(event->location(), *event->markupPtr()); + delete event; +} + +void MarkupEventHandler::uselink(UselinkEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::usemap(UsemapEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::startDtd(StartDtdEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::endDtd(EndDtdEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::startLpd(StartLpdEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::endLpd(EndLpdEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::sgmlDecl(SgmlDeclEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::commentDecl(CommentDeclEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::markedSectionStart(MarkedSectionStartEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::markedSectionEnd(MarkedSectionEndEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::notationDecl(NotationDeclEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::entityDecl(EntityDeclEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::elementDecl(ElementDeclEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::attlistDecl(AttlistDeclEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::linkAttlistDecl(LinkAttlistDeclEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::attlistNotationDecl(AttlistNotationDeclEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::linkDecl(LinkDeclEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::idLinkDecl(IdLinkDeclEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::shortrefDecl(ShortrefDeclEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::ignoredMarkup(IgnoredMarkupEvent *event) +{ + markup(event->location(), event->markup()); + delete event; +} + +void MarkupEventHandler::markup(const Location &, const Markup &) +{ +} + +#ifdef SP_NAMESPACE +} +#endif diff --git a/spam/MarkupEventHandler.h b/spam/MarkupEventHandler.h new file mode 100644 index 0000000..85c798f --- /dev/null +++ b/spam/MarkupEventHandler.h @@ -0,0 +1,51 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#ifndef MarkupEventHandler_INCLUDED +#define MarkupEventHandler_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "Event.h" +#include "ErrorCountEventHandler.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class MarkupEventHandler : public ErrorCountEventHandler { +public: + MarkupEventHandler(); + void startElement(StartElementEvent *); + void endElement(EndElementEvent *); + void uselink(UselinkEvent *); + void usemap(UsemapEvent *); + void startDtd(StartDtdEvent *); + void endDtd(EndDtdEvent *); + void startLpd(StartLpdEvent *); + void endLpd(EndLpdEvent *); + void sgmlDecl(SgmlDeclEvent *); + void commentDecl(CommentDeclEvent *); + void markedSectionStart(MarkedSectionStartEvent *); + void markedSectionEnd(MarkedSectionEndEvent *); + void notationDecl(NotationDeclEvent *); + void entityDecl(EntityDeclEvent *); + void elementDecl(ElementDeclEvent *); + void attlistDecl(AttlistDeclEvent *); + void linkAttlistDecl(LinkAttlistDeclEvent *); + void attlistNotationDecl(AttlistNotationDeclEvent *); + void linkDecl(LinkDeclEvent *); + void idLinkDecl(IdLinkDeclEvent *); + void shortrefDecl(ShortrefDeclEvent *); + void ignoredMarkup(IgnoredMarkupEvent *); + + virtual void markup(const Location &, const Markup &); +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not MarkupEventHandler_INCLUDED */ diff --git a/spam/SpamMessages.h b/spam/SpamMessages.h new file mode 100644 index 0000000..ae711e6 --- /dev/null +++ b/spam/SpamMessages.h @@ -0,0 +1,150 @@ +// This file was automatically generated from SpamMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct SpamMessages { + // 0 + static const MessageType1 invalidMarkupArgument; + // 1 + static const MessageType0 tagInSpecialMarkedSection; + // 2 + static const MessageType1 hHelp; + // 3 + static const MessageType1 lHelp; + // 4 + static const MessageType1 mHelp; + // 5 + static const MessageType1 oHelp; + // 6 + static const MessageType1 pHelp; + // 7 + static const MessageType1 rHelp; + // 8 + static const MessageType1 xHelp; + // 9 + static const MessageType1 info1; + // 10 + static const MessageType1 info2; + // 11 + static const MessageType1 info3; + // 12 + static const MessageFragment option; + // 13 + static const MessageFragment name; +}; +const MessageType1 SpamMessages::invalidMarkupArgument( +MessageType::error, +&appModule, +0 +#ifndef SP_NO_MESSAGE_TEXT +,"invalid argument for -m option" +#endif +); +const MessageType0 SpamMessages::tagInSpecialMarkedSection( +MessageType::error, +&appModule, +1 +#ifndef SP_NO_MESSAGE_TEXT +,"omitted start or end tag implied in CDATA or RCDATA marked section; not normalized" +#endif +); +const MessageType1 SpamMessages::hHelp( +MessageType::info, +&appModule, +2 +#ifndef SP_NO_MESSAGE_TEXT +,"Hoist omitted tags." +#endif +); +const MessageType1 SpamMessages::lHelp( +MessageType::info, +&appModule, +3 +#ifndef SP_NO_MESSAGE_TEXT +,"Prefer lowercase." +#endif +); +const MessageType1 SpamMessages::mHelp( +MessageType::info, +&appModule, +4 +#ifndef SP_NO_MESSAGE_TEXT +,"Use markup option %1." +#endif +); +const MessageType1 SpamMessages::oHelp( +MessageType::info, +&appModule, +5 +#ifndef SP_NO_MESSAGE_TEXT +,"Output the entity named %1." +#endif +); +const MessageType1 SpamMessages::pHelp( +MessageType::info, +&appModule, +6 +#ifndef SP_NO_MESSAGE_TEXT +,"Output the prolog." +#endif +); +const MessageType1 SpamMessages::rHelp( +MessageType::info, +&appModule, +7 +#ifndef SP_NO_MESSAGE_TEXT +,"Raw." +#endif +); +const MessageType1 SpamMessages::xHelp( +MessageType::info, +&appModule, +8 +#ifndef SP_NO_MESSAGE_TEXT +,"Expand references." +#endif +); +const MessageType1 SpamMessages::info1( +MessageType::info, +&appModule, +9 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 is an SGML markup stream editor. %1 parses the SGML document" +#endif +); +const MessageType1 SpamMessages::info2( +MessageType::info, +&appModule, +10 +#ifndef SP_NO_MESSAGE_TEXT +,"contained in SYSID... and copies portions of the document to the" +#endif +); +const MessageType1 SpamMessages::info3( +MessageType::info, +&appModule, +11 +#ifndef SP_NO_MESSAGE_TEXT +,"standard output, adding or changing markup as specified by the options." +#endif +); +const MessageFragment SpamMessages::option( +&appModule, +12 +#ifndef SP_NO_MESSAGE_TEXT +,"OPTION" +#endif +); +const MessageFragment SpamMessages::name( +&appModule, +13 +#ifndef SP_NO_MESSAGE_TEXT +,"NAME" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/spam/SpamMessages.msg b/spam/SpamMessages.msg new file mode 100644 index 0000000..8f3a6a8 --- /dev/null +++ b/spam/SpamMessages.msg @@ -0,0 +1,19 @@ +# Copyright (c) 1995 James Clark +# See the file COPYING for copying permission. + +# Spam message definitions + +E1+invalidMarkupArgument++invalid argument for -m option +E0+tagInSpecialMarkedSection++omitted start or end tag implied in CDATA or RCDATA marked section; not normalized +I1+hHelp++Hoist omitted tags. +I1+lHelp++Prefer lowercase. +I1+mHelp++Use markup option %1. +I1+oHelp++Output the entity named %1. +I1+pHelp++Output the prolog. +I1+rHelp++Raw. +I1+xHelp++Expand references. +I1+info1++%1 is an SGML markup stream editor. %1 parses the SGML document +I1+info2++contained in SYSID... and copies portions of the document to the +I1+info3++standard output, adding or changing markup as specified by the options. ++option++OPTION ++name++NAME diff --git a/spam/SpamMessages.rc b/spam/SpamMessages.rc new file mode 100644 index 0000000..b88f269 --- /dev/null +++ b/spam/SpamMessages.rc @@ -0,0 +1,17 @@ +STRINGTABLE +BEGIN + 0, "invalid argument for -m option" + 1, "omitted start or end tag implied in CDATA or RCDATA marked section; not normalized" + 2, "Hoist omitted tags." + 3, "Prefer lowercase." + 4, "Use markup option %1." + 5, "Output the entity named %1." + 6, "Output the prolog." + 7, "Raw." + 8, "Expand references." + 9, "%1 is an SGML markup stream editor. %1 parses the SGML document" + 10, "contained in SYSID... and copies portions of the document to the" + 11, "standard output, adding or changing markup as specified by the options." + 12, "OPTION" + 13, "NAME" +END diff --git a/spam/spam.cxx b/spam/spam.cxx new file mode 100644 index 0000000..7064b76 --- /dev/null +++ b/spam/spam.cxx @@ -0,0 +1,169 @@ +// Copyright (c) 1995, 1996 James Clark +// See the file COPYING for copying permission. + +// FIXME usage message for bad -m option. + +#include "config.h" +#include "SgmlParser.h" +#include "Event.h" +#include "OutputCharStream.h" +#include "ParserApp.h" +#include "Boolean.h" +#include "macros.h" +#include "SpamMessages.h" +#include "CopyEventHandler.h" +#include "InputSource.h" + +#include "sptchar.h" + +#include + +#ifdef SP_NAMESPACE +using namespace SP_NAMESPACE; +#endif + +class XCopyEventHandler : public CopyEventHandler { +public: + XCopyEventHandler(OutputCharStream *os, unsigned normalizeFlags, + const StringC &outputEntity, Messenger *); + void message(MessageEvent *); +private: + void reportTagInSpecialMarkedSection(const Location &); + Messenger *messenger_; + OutputCharStream *os_; +}; + +static +struct { + const ParserApp::AppChar *name; + unsigned flag; +} normalizeTable[] = { + { SP_T("omittag"), CopyEventHandler::normalizeOmittag }, + { SP_T("shortref"), CopyEventHandler::normalizeShortref }, + { SP_T("net"), CopyEventHandler::normalizeNet }, + { SP_T("emptytag"), CopyEventHandler::normalizeEmptytag }, + { SP_T("unclosed"), CopyEventHandler::normalizeUnclosed }, + { SP_T("attname"), CopyEventHandler::normalizeAttname }, + { SP_T("attvalue"), CopyEventHandler::normalizeAttvalue }, + { SP_T("attspec"), CopyEventHandler::normalizeAttspec }, + { SP_T("current"), CopyEventHandler::normalizeCurrent }, + { SP_T("shorttag"), CopyEventHandler::normalizeShorttag }, + { SP_T("rank"), CopyEventHandler::normalizeRank }, + { SP_T("reserved"), CopyEventHandler::normalizeReserved }, + { SP_T("ms"), CopyEventHandler::normalizeMarkedSection }, +}; + +class SpamApp : public ParserApp { +public: + SpamApp(); + ErrorCountEventHandler *makeEventHandler(); + void processOption(AppChar opt, const AppChar *arg); +private: + unsigned normalizeFlags_; + StringC outputEntity_; + Boolean rawOutput_; +}; + +SP_DEFINE_APP(SpamApp) + +SpamApp::SpamApp() +: rawOutput_(0), normalizeFlags_(0) +{ + options_.eventsWanted.addInstanceMarkup(); + options_.eventsWanted.addPrologMarkup(); + changeOptionRegistration('h', AppChar(255)); + registerOption('h', SP_T("hoist-omitted-tags"), SpamMessages::hHelp); + registerOption('l', SP_T("lowercase"), SpamMessages::lHelp); + registerOption('m', SP_T("markup-option"), SpamMessages::option, + SpamMessages::mHelp); + registerOption('o', SP_T("output-entity"), SpamMessages::name, + SpamMessages::oHelp); + registerOption('p', SP_T("output-prolog"), SpamMessages::pHelp); + registerOption('r', SP_T("raw"), SpamMessages::rHelp); + registerOption('x', SP_T("expand-references"), SpamMessages::xHelp); + registerInfo(SpamMessages::info1); + registerInfo(SpamMessages::info2); + registerInfo(SpamMessages::info3); +} + +void SpamApp::processOption(AppChar opt, const AppChar *arg) +{ + switch (opt) { + case AppChar(255): + ParserApp::processOption('h', arg); + break; + case 'h': + // hoist omitted tags out of entities + normalizeFlags_ |= CopyEventHandler::normalizeOmittagHoist; + break; + case 'l': // prefer lowercase + normalizeFlags_ |= CopyEventHandler::normalizeLower; + break; + case 'm': + { + Boolean found = 0; + for (size_t i = 0; i < SIZEOF(normalizeTable); i++) + if (tcscmp(normalizeTable[i].name, arg) == 0) { + found = 1; + normalizeFlags_ |= normalizeTable[i].flag; + break; + } + if (!found) { + message(SpamMessages::invalidMarkupArgument, + StringMessageArg(convertInput(arg))); + // usage(kit); + } + } + break; + case 'o': + outputEntity_ = convertInput(arg); + break; + case 'p': + if (normalizeFlags_ & CopyEventHandler::normalizeIncludeProlog) + normalizeFlags_ |= CopyEventHandler::normalizeExpandProlog; + else + normalizeFlags_ |= CopyEventHandler::normalizeIncludeProlog; + break; + case 'r': + rawOutput_ = 1; + break; + case 'x': + if (normalizeFlags_ & CopyEventHandler::normalizeExpand) + normalizeFlags_ |= CopyEventHandler::normalizeExpandAll; + else + normalizeFlags_ |= CopyEventHandler::normalizeExpand; + break; + default: + ParserApp::processOption(opt, arg); + break; + } +} + +ErrorCountEventHandler *SpamApp::makeEventHandler() +{ + OutputCharStream *os = makeStdOut(); + if (!rawOutput_) + os = new RecordOutputCharStream(os); + return new XCopyEventHandler(os, normalizeFlags_, outputEntity_, this); +} + +XCopyEventHandler::XCopyEventHandler(OutputCharStream *os, + unsigned normalizeFlags, + const StringC &outputEntity, + Messenger *messenger) +: messenger_(messenger), os_(os), + CopyEventHandler(os, normalizeFlags, outputEntity) +{ +} + +void XCopyEventHandler::message(MessageEvent *event) +{ + messenger_->dispatchMessage(event->message()); + CopyEventHandler::message(event); +} + +void XCopyEventHandler::reportTagInSpecialMarkedSection(const Location &loc) +{ + messenger_->setNextLocation(loc); + messenger_->message(SpamMessages::tagInSpecialMarkedSection); +} diff --git a/spam/spam.dsp b/spam/spam.dsp new file mode 100644 index 0000000..04810bc --- /dev/null +++ b/spam/spam.dsp @@ -0,0 +1,193 @@ +# Microsoft Developer Studio Project File - Name="spam" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=spam - Win32 Release +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "spam.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "spam.mak" CFG="spam - Win32 Release" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "spam - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "spam - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "spam - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir ".\Release" +# PROP BASE Intermediate_Dir ".\Release" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir ".\Release" +# PROP Intermediate_Dir ".\Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /YX /FD /c +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"..\bin\ospam.exe" +# SUBTRACT LINK32 /profile + +!ELSEIF "$(CFG)" == "spam - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir ".\Debug" +# PROP BASE Intermediate_Dir ".\Debug" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir ".\Debug" +# PROP Intermediate_Dir ".\Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /YX /FD /c +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\dbgbin\ospam.exe" + +!ENDIF + +# Begin Target + +# Name "spam - Win32 Release" +# Name "spam - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat;for;f90" +# Begin Source File + +SOURCE=.\CopyEventHandler.cxx +# End Source File +# Begin Source File + +SOURCE=.\MarkupEventHandler.cxx +# End Source File +# Begin Source File + +SOURCE=.\spam.cxx +# End Source File +# Begin Source File + +SOURCE=.\spam_inst.cxx +# End Source File +# Begin Source File + +SOURCE=.\spam_inst.m4 + +!IF "$(CFG)" == "spam - Win32 Release" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "spam - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\spam_inst.m4 +InputName=spam_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\SpamMessages.msg + +!IF "$(CFG)" == "spam - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\SpamMessages.msg +InputName=SpamMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "spam - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\SpamMessages.msg +InputName=SpamMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd" +# Begin Source File + +SOURCE=.\CopyEventHandler.h +# End Source File +# Begin Source File + +SOURCE=.\MarkupEventHandler.h +# End Source File +# Begin Source File + +SOURCE=.\SpamMessages.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# Begin Source File + +SOURCE=.\spam.rc +# End Source File +# Begin Source File + +SOURCE=.\SpamMessages.rc +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# End Group +# End Target +# End Project diff --git a/spam/spam.rc b/spam/spam.rc new file mode 100644 index 0000000..b8ec7da --- /dev/null +++ b/spam/spam.rc @@ -0,0 +1,4 @@ +// Copyright (c) 1996 James Clark +// See the file COPYING for copying permission. + +#include "SpamMessages.rc" diff --git a/spam/spam_inst.cxx b/spam/spam_inst.cxx new file mode 100644 index 0000000..503761e --- /dev/null +++ b/spam/spam_inst.cxx @@ -0,0 +1,44 @@ +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + + +#ifdef SP_NAMESPACE +} +#endif +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#include "config.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "NCVector.h" +#undef SP_DEFINE_TEMPLATES + +#include "CopyEventHandler.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#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_0; +#endif +#endif +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/spam/spam_inst.m4 b/spam/spam_inst.m4 new file mode 100644 index 0000000..7fdc099 --- /dev/null +++ b/spam/spam_inst.m4 @@ -0,0 +1,24 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#include "config.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "NCVector.h" +#undef SP_DEFINE_TEMPLATES + +#include "CopyEventHandler.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +__instantiate(NCVector) + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/spcat/.cvsignore b/spcat/.cvsignore new file mode 100644 index 0000000..771c12c --- /dev/null +++ b/spcat/.cvsignore @@ -0,0 +1,11 @@ +Makefile +Makefile.in +.libs +.deps +*.la +*.lo +*Messages.h +*Messages.rc +*Messages.cxx +*_inst.cxx +ospcat diff --git a/spcat/Makefile.am b/spcat/Makefile.am new file mode 100644 index 0000000..309c620 --- /dev/null +++ b/spcat/Makefile.am @@ -0,0 +1,26 @@ +## Process this file with automake to produce Makefile.in + +bin_PROGRAMS = ospcat + +ospcat_SOURCES = spcat.cxx spcat_inst.cxx SpcatMessages.h + +EXTRA_DIST = spcat_inst.m4 spcat.dsp SpcatMessages.msg SpcatMessages.rc \ + .cvsignore + +ospcat_LDADD = $(top_builddir)/lib/libosp.la $(LTLIBINTL) + +INCLUDES = -I$(top_srcdir)/include + +BUILT_SOURCES = spcat_inst.cxx SpcatMessages.h SpcatMessages.rc + +MAINTAINERCLEANFILES = Makefile.in + +MSGGENFLAGS = -l appModule + +SUFFIXES = .m4 .msg .rc + +.m4.cxx: + $(PERL) $(top_srcdir)/instmac.pl $< >$@ + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< diff --git a/spcat/Makefile.in b/spcat/Makefile.in new file mode 100644 index 0000000..aba16e6 --- /dev/null +++ b/spcat/Makefile.in @@ -0,0 +1,534 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = ospcat$(EXEEXT) +subdir = spcat +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +PROGRAMS = $(bin_PROGRAMS) +am_ospcat_OBJECTS = spcat.$(OBJEXT) spcat_inst.$(OBJEXT) +ospcat_OBJECTS = $(am_ospcat_OBJECTS) +am__DEPENDENCIES_1 = +ospcat_DEPENDENCIES = $(top_builddir)/lib/libosp.la \ + $(am__DEPENDENCIES_1) +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(ospcat_SOURCES) +DIST_SOURCES = $(ospcat_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +ospcat_SOURCES = spcat.cxx spcat_inst.cxx SpcatMessages.h +EXTRA_DIST = spcat_inst.m4 spcat.dsp SpcatMessages.msg SpcatMessages.rc \ + .cvsignore + +ospcat_LDADD = $(top_builddir)/lib/libosp.la $(LTLIBINTL) +INCLUDES = -I$(top_srcdir)/include +BUILT_SOURCES = spcat_inst.cxx SpcatMessages.h SpcatMessages.rc +MAINTAINERCLEANFILES = Makefile.in +MSGGENFLAGS = -l appModule +SUFFIXES = .m4 .msg .rc +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .m4 .msg .rc .cxx .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu spcat/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu spcat/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + || test -f $$p1 \ + ; then \ + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ + else :; fi; \ + done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ + done + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done +ospcat$(EXEEXT): $(ospcat_OBJECTS) $(ospcat_DEPENDENCIES) + @rm -f ospcat$(EXEEXT) + $(CXXLINK) $(ospcat_LDFLAGS) $(ospcat_OBJECTS) $(ospcat_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spcat.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spcat_inst.Po@am__quote@ + +.cxx.o: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< + +.cxx.obj: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cxx.lo: +@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-libtool distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-exec-am: install-binPROGRAMS + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS uninstall-info-am + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool ctags distclean distclean-compile \ + distclean-generic distclean-libtool distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-binPROGRAMS uninstall-info-am + + +.m4.cxx: + $(PERL) $(top_srcdir)/instmac.pl $< >$@ + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/spcat/SpcatMessages.h b/spcat/SpcatMessages.h new file mode 100644 index 0000000..d53a8c1 --- /dev/null +++ b/spcat/SpcatMessages.h @@ -0,0 +1,150 @@ +// This file was automatically generated from SpcatMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct SpcatMessages { + // 0 + static const MessageType1 PHelp; + // 1 + static const MessageType1 SHelp; + // 2 + static const MessageType1 pHelp; + // 3 + static const MessageType1 dHelp; + // 4 + static const MessageType1 lHelp; + // 5 + static const MessageType1 eHelp; + // 6 + static const MessageType1 nHelp; + // 7 + static const MessageType1 sHelp; + // 8 + static const MessageType1 info1; + // 9 + static const MessageType1 info2; + // 10 + static const MessageType1 info3; + // 11 + static const MessageType1 info4; + // 12 + static const MessageFragment literal; + // 13 + static const MessageFragment name; +}; +const MessageType1 SpcatMessages::PHelp( +MessageType::info, +&appModule, +0 +#ifndef SP_NO_MESSAGE_TEXT +,"Print the effective system id for the public id %1." +#endif +); +const MessageType1 SpcatMessages::SHelp( +MessageType::info, +&appModule, +1 +#ifndef SP_NO_MESSAGE_TEXT +,"Print the effective system id for system id %1." +#endif +); +const MessageType1 SpcatMessages::pHelp( +MessageType::info, +&appModule, +2 +#ifndef SP_NO_MESSAGE_TEXT +,"Print the effective system id for parameter entity %1." +#endif +); +const MessageType1 SpcatMessages::dHelp( +MessageType::info, +&appModule, +3 +#ifndef SP_NO_MESSAGE_TEXT +,"Print the effective system id for the doctype %1." +#endif +); +const MessageType1 SpcatMessages::lHelp( +MessageType::info, +&appModule, +4 +#ifndef SP_NO_MESSAGE_TEXT +,"Print the effective system id for the linktype %1." +#endif +); +const MessageType1 SpcatMessages::eHelp( +MessageType::info, +&appModule, +5 +#ifndef SP_NO_MESSAGE_TEXT +,"Print the effective system id for entity %1." +#endif +); +const MessageType1 SpcatMessages::nHelp( +MessageType::info, +&appModule, +6 +#ifndef SP_NO_MESSAGE_TEXT +,"Print the effective system id for notation %1." +#endif +); +const MessageType1 SpcatMessages::sHelp( +MessageType::info, +&appModule, +7 +#ifndef SP_NO_MESSAGE_TEXT +,"Print the effective system id for the SGML declaration for doctype %1." +#endif +); +const MessageType1 SpcatMessages::info1( +MessageType::info, +&appModule, +8 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 prints effective system identifiers found in the catalogs on the" +#endif +); +const MessageType1 SpcatMessages::info2( +MessageType::info, +&appModule, +9 +#ifndef SP_NO_MESSAGE_TEXT +,"standard output. It doesn't check that the system identifiers correspond" +#endif +); +const MessageType1 SpcatMessages::info3( +MessageType::info, +&appModule, +10 +#ifndef SP_NO_MESSAGE_TEXT +,"to actual files. The return value is 0 if the last system identifier was" +#endif +); +const MessageType1 SpcatMessages::info4( +MessageType::info, +&appModule, +11 +#ifndef SP_NO_MESSAGE_TEXT +,"successfully created and 1 otherwise." +#endif +); +const MessageFragment SpcatMessages::literal( +&appModule, +12 +#ifndef SP_NO_MESSAGE_TEXT +,"LITERAL" +#endif +); +const MessageFragment SpcatMessages::name( +&appModule, +13 +#ifndef SP_NO_MESSAGE_TEXT +,"NAME" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/spcat/SpcatMessages.msg b/spcat/SpcatMessages.msg new file mode 100644 index 0000000..6bf8295 --- /dev/null +++ b/spcat/SpcatMessages.msg @@ -0,0 +1,20 @@ +# Copyright (c) 1999 Matthias Clasen +# See the file COPYING for copying permission. + +# Spcat message definitions + +I1+PHelp++Print the effective system id for the public id %1. +I1+SHelp++Print the effective system id for system id %1. +I1+pHelp++Print the effective system id for parameter entity %1. +I1+dHelp++Print the effective system id for the doctype %1. +I1+lHelp++Print the effective system id for the linktype %1. +I1+eHelp++Print the effective system id for entity %1. +I1+nHelp++Print the effective system id for notation %1. +I1+sHelp++Print the effective system id for the SGML declaration for doctype %1. +I1+info1++%1 prints effective system identifiers found in the catalogs on the +I1+info2++standard output. It doesn't check that the system identifiers correspond +I1+info3++to actual files. The return value is 0 if the last system identifier was +I1+info4++successfully created and 1 otherwise. ++literal++LITERAL ++name++NAME + diff --git a/spcat/SpcatMessages.rc b/spcat/SpcatMessages.rc new file mode 100644 index 0000000..1559ba6 --- /dev/null +++ b/spcat/SpcatMessages.rc @@ -0,0 +1,17 @@ +STRINGTABLE +BEGIN + 0, "Print the effective system id for the public id %1." + 1, "Print the effective system id for system id %1." + 2, "Print the effective system id for parameter entity %1." + 3, "Print the effective system id for the doctype %1." + 4, "Print the effective system id for the linktype %1." + 5, "Print the effective system id for entity %1." + 6, "Print the effective system id for notation %1." + 7, "Print the effective system id for the SGML declaration for doctype %1." + 8, "%1 prints effective system identifiers found in the catalogs on the" + 9, "standard output. It doesn't check that the system identifiers correspond" + 10, "to actual files. The return value is 0 if the last system identifier was" + 11, "successfully created and 1 otherwise." + 12, "LITERAL" + 13, "NAME" +END diff --git a/spcat/spcat.cxx b/spcat/spcat.cxx new file mode 100644 index 0000000..da7497a --- /dev/null +++ b/spcat/spcat.cxx @@ -0,0 +1,165 @@ +// Copyright (c) 1998, 1999 Matthias Clasen +// See the file COPYING for copying permission. + +#include "config.h" + +#include "EntityApp.h" +#include "Entity.h" +#include "Text.h" +#include "Sd.h" +#include "sptchar.h" +#include "OutputCharStream.h" +#include "SpcatMessages.h" + +#ifdef SP_NAMESPACE +using namespace SP_NAMESPACE; +#endif + +class SpcatApp : public EntityApp { +public: + SpcatApp(); + void processOption(AppChar opt, const AppChar *arg); + int processArguments(int argc, AppChar **argv); + int processSysid(const StringC &); +private: + Boolean lastFound_; +}; + +SP_DEFINE_APP(SpcatApp) + +SpcatApp::SpcatApp() + : lastFound_(true) +{ + registerOption('P', SP_T("public-id"), + SpcatMessages::literal, SpcatMessages::PHelp); + registerOption('S', SP_T("system-id"), + SpcatMessages::literal, SpcatMessages::SHelp); + registerOption('p', SP_T("parameter-entity"), + SpcatMessages::name, SpcatMessages::pHelp); + registerOption('d', SP_T("doctype"), + SpcatMessages::name, SpcatMessages::dHelp); + registerOption('l', SP_T("linktype"), + SpcatMessages::name, SpcatMessages::lHelp); + registerOption('e', SP_T("entity"), + SpcatMessages::name, SpcatMessages::eHelp); + registerOption('n', SP_T("notation"), + SpcatMessages::name, SpcatMessages::nHelp); + registerOption('s', SP_T("declaration"), + SpcatMessages::name, SpcatMessages::sHelp); + registerInfo(SpcatMessages::info1); + registerInfo(SpcatMessages::info2); + registerInfo(SpcatMessages::info3); + registerInfo(SpcatMessages::info4); +} + +void SpcatApp::processOption(AppChar opt, const AppChar *arg) +{ + //FIXME This is to avoid calling entityManager() for + //EntityApp options, since entityManager() fixes the set + //of catalogs and clearEntityManager() didn't work for me. + switch (opt) { + case 'P': + case 'S': + case 'e': + case 'p': + case 'd': + case 'l': + case 'n': + case 's': + break; + default: + EntityApp::processOption(opt, arg); + return ; + } + + ExternalId exId; + StringC name; + EntityDecl::DeclType type = EntityDecl::generalEntity; + Ptr ema(entityManager().pointer()); + Sd sd(ema); + Syntax syntax(sd); + Text txt; + Location loc; + + switch (opt) { + case 'P': + for (int i = 0; arg[i] != '\0'; i++) + txt.addChar(arg[i], loc); + const MessageType1 *err, *err1; + exId.setPublic(txt, systemCharset(), syntax.space(), err, err1); + break; + case 'S': + for (int i = 0; arg[i] != '\0'; i++) + txt.addChar(arg[i], loc); + exId.setSystem(txt); + break; + case 'e': + type = EntityDecl::generalEntity; + for (int i = 0; arg[i] != '\0'; i++) + name += arg[i]; + break; + case 'p': + type = EntityDecl::parameterEntity; + //FIXME get a complete syntax from somewhere + //so that we can say + //name += syntax.peroDelim(); + name += '%'; + for (int i = 0; arg[i] != '\0'; i++) + name += arg[i]; + break; + case 'd': + type = EntityDecl::doctype; + for (int i = 0; arg[i] != '\0'; i++) + name += arg[i]; + break; + case 'l': + type = EntityDecl::linktype; + for (int i = 0; arg[i] != '\0'; i++) + name += arg[i]; + break; + case 'n': + type = EntityDecl::notation; + for (int i = 0; arg[i] != '\0'; i++) + name += arg[i]; + break; + case 's': + type = EntityDecl::sgml; + break; + default: + EntityApp::processOption(opt, arg); + return ; + } + + ExternalTextEntity ent(name, type, loc, exId); + StringC ret; + ConstPtr cat = + entityManager()->makeCatalog(ret, systemCharset(), *this); + StringC sysid; + + if ((type == EntityDecl::sgml && cat->sgmlDecl(systemCharset(), *this, sysid, ret)) + || cat->lookup(ent, syntax, systemCharset(), *this, ret)) { + lastFound_ = true; + //FIXME should use makeStdOut(), but it didn't work for me. + //OutputCharStream *os = makeStdOut(); + //*os << ret << '\n'; + //delete os; + for (int i = 0; i < ret.size(); i++) + printf("%c", ret[i]); + printf("\n"); + } + else + lastFound_ = false; +} + +int SpcatApp::processArguments(int argc, AppChar **argv) +{ + if (lastFound_) + return 0; + else + return 1; +} + +int SpcatApp::processSysid(const StringC &) +{ + return 0; +} diff --git a/spcat/spcat.dsp b/spcat/spcat.dsp new file mode 100644 index 0000000..a31b895 --- /dev/null +++ b/spcat/spcat.dsp @@ -0,0 +1,138 @@ +# Microsoft Developer Studio Project File - Name="spcat" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=spcat - Win32 Release +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "spcat.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "spcat.mak" CFG="spcat - Win32 Release" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "spcat - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "spcat - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "spcat - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir ".\Release" +# PROP BASE Intermediate_Dir ".\Release" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir ".\Release" +# PROP Intermediate_Dir ".\Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /YX /FD /c +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"..\bin\ospcat.exe" /libpath:"..\lib\release" +# SUBTRACT LINK32 /pdb:none + +!ELSEIF "$(CFG)" == "spcat - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir ".\Debug" +# PROP BASE Intermediate_Dir ".\Debug" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir ".\Debug" +# PROP Intermediate_Dir ".\Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /YX /FD /c +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\dbgbin\ospcat.exe" /libpath:"..\lib\debug" + +!ENDIF + +# Begin Target + +# Name "spcat - Win32 Release" +# Name "spcat - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat;for;f90" +# Begin Source File + +SOURCE=.\spcat.cxx +# End Source File +# Begin Source File + +SOURCE=.\SpcatMessages.rc +# End Source File +# Begin Source File + +SOURCE=.\SpcatMessages.msg + +!IF "$(CFG)" == "spcat - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\SpcatMessages.msg +InputName=SpcatMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "spcat - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\SpcatMessages.msg +InputName=SpcatMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd" +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/spcat/spcat_inst.cxx b/spcat/spcat_inst.cxx new file mode 100644 index 0000000..7279c57 --- /dev/null +++ b/spcat/spcat_inst.cxx @@ -0,0 +1,255 @@ +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + + +#ifdef SP_NAMESPACE +} +#endif +// Copyright (c) 1999 Brandon Ibach +// See the file COPYING for copying permission. + +#include "config.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "CharMap.h" +#include "Hash.h" +#include "HashTable.h" +#include "HashTableItemBase.h" +#include "ISet.h" +#include "OwnerTable.h" +#include "Ptr.h" +#include "RangeMap.h" +#include "StringC.h" +#include "StringOf.h" +#include "Vector.h" +#include "XcharMap.h" +#undef SP_DEFINE_TEMPLATES + +#include "CharsetDecl.h" +#include "CodingSystemKit.h" +#include "EntityCatalog.h" +#include "EntityManager.h" +#include "ExtendEntityManager.h" +#include "Text.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#ifdef __DECCXX +#pragma define_template CharMapPage +#else +#ifdef __xlC__ +#pragma define(CharMapPage) +#else +#ifdef SP_ANSI_CLASS_INST +template class CharMapPage; +#else +typedef CharMapPage Dummy_0; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ISet +#else +#ifdef __xlC__ +#pragma define(ISet) +#else +#ifdef SP_ANSI_CLASS_INST +template class ISet; +#else +typedef ISet Dummy_1; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template ISet +#else +#ifdef __xlC__ +#pragma define(ISet) +#else +#ifdef SP_ANSI_CLASS_INST +template class ISet; +#else +typedef ISet Dummy_2; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template OwnerTable >, String, Hash, HashTableKeyFunction > > +#else +#ifdef __xlC__ +#pragma define(OwnerTable >, String, Hash, HashTableKeyFunction > >) +#else +#ifdef SP_ANSI_CLASS_INST +template class OwnerTable >, String, Hash, HashTableKeyFunction > >; +#else +typedef OwnerTable >, String, Hash, HashTableKeyFunction > > 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 Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr 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 Ptr +#else +#ifdef __xlC__ +#pragma define(Ptr) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr; +#else +typedef Ptr 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 Ptr > +#else +#ifdef __xlC__ +#pragma define(Ptr >) +#else +#ifdef SP_ANSI_CLASS_INST +template class Ptr >; +#else +typedef Ptr > Dummy_9; +#endif +#endif +#endif +#ifdef __DECCXX +#pragma define_template String +#else +#ifdef __xlC__ +#pragma define(String) +#else +#ifdef SP_ANSI_CLASS_INST +template class String; +#else +typedef String Dummy_10; +#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_11; +#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_12; +#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_13; +#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_14; +#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_15; +#endif +#endif +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/spcat/spcat_inst.m4 b/spcat/spcat_inst.m4 new file mode 100644 index 0000000..4880223 --- /dev/null +++ b/spcat/spcat_inst.m4 @@ -0,0 +1,55 @@ +// Copyright (c) 1999 Brandon Ibach +// See the file COPYING for copying permission. + +#include "config.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "CharMap.h" +#include "Hash.h" +#include "HashTable.h" +#include "HashTableItemBase.h" +#include "ISet.h" +#include "OwnerTable.h" +#include "Ptr.h" +#include "RangeMap.h" +#include "StringC.h" +#include "StringOf.h" +#include "Vector.h" +#include "XcharMap.h" +#undef SP_DEFINE_TEMPLATES + +#include "CharsetDecl.h" +#include "CodingSystemKit.h" +#include "EntityCatalog.h" +#include "EntityManager.h" +#include "ExtendEntityManager.h" +#include "Text.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +__instantiate(CharMapPage) +__instantiate(ISet) +__instantiate(ISet) +__instantiate(`OwnerTable >, String, Hash, HashTableKeyFunction > >') +__instantiate(Ptr) +__instantiate(Ptr) +__instantiate(Ptr) +__instantiate(Ptr) +__instantiate(Ptr) +__instantiate(Ptr >) +__instantiate(String) +__instantiate(Vector) +__instantiate(`Vector >') +__instantiate(Vector >) +__instantiate(Vector) +__instantiate(Vector) + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/spec.in b/spec.in new file mode 100644 index 0000000..7d3bc09 --- /dev/null +++ b/spec.in @@ -0,0 +1,91 @@ +# Copyright (C) 2000 Matthias Clasen +# See the file COPYING for copying permissions. + +Summary: The OpenJade Group's SGML and XML parsing tools +Name: @PACKAGE@ +Version: @VERSION@ +Release: 1 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +License: GPL +Group: Applications/Text +Source: http://download.sourceforge.net/openjade/@PACKAGE@-@VERSION@.tar.gz +URL: http://openjade.sourceforge.net/ +Requires: @PACKAGE@-lib + +%description +This package is a collection of SGML/XML tools called OpenSP. It is a fork from +James Clark's SP suite. These tools are used to parse, validate, and normalize +SGML and XML files. + +%package lib +Summary: Runtime library for the OpenJade group's SP suite +Group: System Environment/Libraries + +%description lib +This is the SP suite's shared library runtime support. This C++ +library contains entity management functions, parsing functions, and +other functions useful for SGML/XML/DSSSL development. + +%package devel +Summary: Libraries and include files for developing OpenSP applications. +Group: Development/Libraries + +%description devel +This contains include files and libraries for OpenSP. +This C++ library contains entity management functions, parsing functions, +and other functions useful for SGML/XML/DSSSL development. + +%prep +# check that rpm is new enough to know internal macros like %{_prefix} +rpmversion=`rpm -q --queryformat '%{RPMVERSION}' rpm | cut -d. -f1` +[ ${rpmversion} -lt 3 ] && { echo "please update rpm" exit 1 ; } +# unpack source .tar.gz package +%setup + +%build +# configure build system according to rpm settings +./configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --libexecdir=%{_libexecdir} --datadir=%{_datadir} --sysconfdir=%{_sysconfdir} --sharedstatedir=%{_sharedstatedir} --localstatedir=%{_localstatedir} --libdir=%{_libdir} --includedir=%{_includedir} --oldincludedir=%{_oldincludedir} --infodir=%{_infodir} --mandir=%{_mandir} +# compile and link +make CFLAGS="${RPM_OPT_FLAGS}" + +%install +# install all files +make "DESTDIR=${RPM_BUILD_ROOT}" install + +%clean +test "$RPM_BUILD_ROOT" = "/" || rm -rf "$RPM_BUILD_ROOT" + +%files +%defattr(-, root, root) +%{_bindir}/* +%{_datadir}/@PACKAGE@/* +%doc %{_datadir}/doc/@PACKAGE@/* +%doc %{_mandir}/man1/* + +%files lib +%defattr(-, root, root) +%{_libdir}/*.so.* +%{_datadir}/locale/*/LC_MESSAGES/sp4.mo + +%files devel +%defattr(-, root, root) +%{_libdir}/lib*.so +%{_libdir}/lib*.a +%{_libdir}/lib*.la +%{_includedir}/@PACKAGE@/* + +%changelog +* Fri Aug 26 2005 Terje Bless +- Slightly tweak spec towards Fedora guidelines; + for Vendor, Packager, Copyright vs. License, and BuildRoot. + +* Fri Apr 09 2004 Terje Bless +- Add man pages to the "files" section for OpenSP. +- Use _datadir macro for doc files (Karl Eichwalder and Ville Skytta). +- Tweak name of l10n files; they get the lib's major rev appended. + +* Wed Feb 21 2001 Terje Bless +- Fixed name of l10n message files ("OpenSP" -> "sp"). + +* Tue Feb 20 2001 Terje Bless +- Tweaked strings, moved to Sourceforge. diff --git a/spent/.cvsignore b/spent/.cvsignore new file mode 100644 index 0000000..1eaa123 --- /dev/null +++ b/spent/.cvsignore @@ -0,0 +1,11 @@ +Makefile +Makefile.in +.libs +.deps +*.la +*.lo +*Messages.h +*Messages.rc +*Messages.cxx +*_inst.cxx +ospent diff --git a/spent/Makefile.am b/spent/Makefile.am new file mode 100644 index 0000000..eaed219 --- /dev/null +++ b/spent/Makefile.am @@ -0,0 +1,23 @@ +## Process this file with automake to produce Makefile.in + +bin_PROGRAMS = ospent + +ospent_SOURCES = spent.cxx SpentMessages.h + +ospent_LDADD = $(top_builddir)/lib/libosp.la $(LTLIBINTL) + +INCLUDES = -I$(top_srcdir)/include + +EXTRA_DIST = spent.dsp SpentMessages.msg SpentMessages.rc \ + .cvsignore + +BUILT_SOURCES = SpentMessages.rc SpentMessages.h + +MAINTAINERCLEANFILES = Makefile.in + +MSGGENFLAGS = -l appModule + +SUFFIXES = .msg .rc + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< diff --git a/spent/Makefile.in b/spent/Makefile.in new file mode 100644 index 0000000..58788d5 --- /dev/null +++ b/spent/Makefile.in @@ -0,0 +1,530 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = ospent$(EXEEXT) +subdir = spent +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +PROGRAMS = $(bin_PROGRAMS) +am_ospent_OBJECTS = spent.$(OBJEXT) +ospent_OBJECTS = $(am_ospent_OBJECTS) +am__DEPENDENCIES_1 = +ospent_DEPENDENCIES = $(top_builddir)/lib/libosp.la \ + $(am__DEPENDENCIES_1) +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(ospent_SOURCES) +DIST_SOURCES = $(ospent_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +ospent_SOURCES = spent.cxx SpentMessages.h +ospent_LDADD = $(top_builddir)/lib/libosp.la $(LTLIBINTL) +INCLUDES = -I$(top_srcdir)/include +EXTRA_DIST = spent.dsp SpentMessages.msg SpentMessages.rc \ + .cvsignore + +BUILT_SOURCES = SpentMessages.rc SpentMessages.h +MAINTAINERCLEANFILES = Makefile.in +MSGGENFLAGS = -l appModule +SUFFIXES = .msg .rc +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .msg .rc .cxx .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu spent/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu spent/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + || test -f $$p1 \ + ; then \ + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ + else :; fi; \ + done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ + done + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done +ospent$(EXEEXT): $(ospent_OBJECTS) $(ospent_DEPENDENCIES) + @rm -f ospent$(EXEEXT) + $(CXXLINK) $(ospent_LDFLAGS) $(ospent_OBJECTS) $(ospent_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spent.Po@am__quote@ + +.cxx.o: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< + +.cxx.obj: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cxx.lo: +@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-libtool distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-exec-am: install-binPROGRAMS + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS uninstall-info-am + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool ctags distclean distclean-compile \ + distclean-generic distclean-libtool distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-binPROGRAMS uninstall-info-am + + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/spent/SpentMessages.h b/spent/SpentMessages.h new file mode 100644 index 0000000..5f15b87 --- /dev/null +++ b/spent/SpentMessages.h @@ -0,0 +1,52 @@ +// This file was automatically generated from SpentMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct SpentMessages { + // 0 + static const MessageType1 nHelp; + // 1 + static const MessageType1 rHelp; + // 2 + static const MessageType1 info1; + // 3 + static const MessageType1 info2; +}; +const MessageType1 SpentMessages::nHelp( +MessageType::info, +&appModule, +0 +#ifndef SP_NO_MESSAGE_TEXT +,"non-SGML" +#endif +); +const MessageType1 SpentMessages::rHelp( +MessageType::info, +&appModule, +1 +#ifndef SP_NO_MESSAGE_TEXT +,"raw" +#endif +); +const MessageType1 SpentMessages::info1( +MessageType::info, +&appModule, +2 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 prints the concatenation of the entities with system identifiers" +#endif +); +const MessageType1 SpentMessages::info2( +MessageType::info, +&appModule, +3 +#ifndef SP_NO_MESSAGE_TEXT +,"SYSID... on the standard output" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/spent/SpentMessages.msg b/spent/SpentMessages.msg new file mode 100644 index 0000000..665d699 --- /dev/null +++ b/spent/SpentMessages.msg @@ -0,0 +1,9 @@ +# Copyright (c) 1999 Matthias Clasen +# See the file COPYING for copying permission. + +# spent message definitions + +I1+nHelp++non-SGML +I1+rHelp++raw +I1+info1++%1 prints the concatenation of the entities with system identifiers +I1+info2++SYSID... on the standard output. \ No newline at end of file diff --git a/spent/SpentMessages.rc b/spent/SpentMessages.rc new file mode 100644 index 0000000..8e2bd3b --- /dev/null +++ b/spent/SpentMessages.rc @@ -0,0 +1,7 @@ +STRINGTABLE +BEGIN + 0, "non-SGML" + 1, "raw" + 2, "%1 prints the concatenation of the entities with system identifiers" + 3, "SYSID... on the standard output" +END diff --git a/spent/spent.cxx b/spent/spent.cxx new file mode 100644 index 0000000..c668712 --- /dev/null +++ b/spent/spent.cxx @@ -0,0 +1,76 @@ +// Copyright (c) 1995 James Clark +// See the file COPYING for copying permission. + +#include "config.h" + +#include "sptchar.h" +#include "EntityApp.h" +#include "InputSource.h" +#include "OutputCharStream.h" +#include "SpentMessages.h" + +#ifdef SP_NAMESPACE +using namespace SP_NAMESPACE; +#endif + +class SpentApp : public EntityApp { +public: + SpentApp(); + void processOption(AppChar opt, const AppChar *arg); + int processSysid(const StringC &); +private: + Boolean isNdata_; + Boolean rawOutput_; +}; + +SP_DEFINE_APP(SpentApp) + +SpentApp::SpentApp() +: rawOutput_(0), isNdata_(0) +{ + registerOption('n', SP_T("non-sgml"), SpentMessages::nHelp); + registerOption('r', SP_T("raw"), SpentMessages::rHelp); + registerInfo(SpentMessages::info1); + registerInfo(SpentMessages::info2); +} + +void SpentApp::processOption(AppChar opt, const AppChar *arg) +{ + switch (opt) { + case 'n': + isNdata_ = 1; + if (!outputCodingSystem_) + outputCodingSystem_ = codingSystemKit_->identityCodingSystem(); + rawOutput_ = 1; + break; + case 'r': + rawOutput_ = 1; + break; + default: + EntityApp::processOption(opt, arg); + break; + } +} + +int SpentApp::processSysid(const StringC &sysid) +{ + InputSource *in = entityManager()->open(sysid, + systemCharset(), + InputSourceOrigin::make(), + isNdata_ ? ExtendEntityManager::isNdata : 0, + *this); + if (!in) + return 1; + OutputCharStream *os = makeStdOut(); + if (!rawOutput_) + os = new RecordOutputCharStream(os); + for (;;) { + Xchar c = in->get(*this); + if (c == InputSource::eE) + break; + in->extendToBufferEnd(); + os->write(in->currentTokenStart(), in->currentTokenLength()); + } + delete os; + return in->accessError(); +} diff --git a/spent/spent.dsp b/spent/spent.dsp new file mode 100644 index 0000000..11dcebe --- /dev/null +++ b/spent/spent.dsp @@ -0,0 +1,138 @@ +# Microsoft Developer Studio Project File - Name="spent" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=spent - Win32 Release +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "spent.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "spent.mak" CFG="spent - Win32 Release" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "spent - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "spent - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "spent - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir ".\Release" +# PROP BASE Intermediate_Dir ".\Release" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir ".\Release" +# PROP Intermediate_Dir ".\Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /YX /FD /c +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"..\bin\ospent.exe" +# SUBTRACT LINK32 /profile + +!ELSEIF "$(CFG)" == "spent - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir ".\Debug" +# PROP BASE Intermediate_Dir ".\Debug" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir ".\Debug" +# PROP Intermediate_Dir ".\Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /YX /FD /c +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\dbgbin\ospent.exe" + +!ENDIF + +# Begin Target + +# Name "spent - Win32 Release" +# Name "spent - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat;for;f90" +# Begin Source File + +SOURCE=.\spent.cxx +# End Source File +# Begin Source File + +SOURCE=.\SpentMessages.rc +# End Source File +# Begin Source File + +SOURCE=.\SpentMessages.msg + +!IF "$(CFG)" == "spent - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\SpentMessages.msg +InputName=SpentMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "spent - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\SpentMessages.msg +InputName=SpentMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd" +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/sunfix.sh b/sunfix.sh new file mode 100644 index 0000000..f3a9fff --- /dev/null +++ b/sunfix.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# Sun C++ 4.0.1 gets confused by the macros in include/NCVector.h. + +cd include +mv NCVector.h NCVector.h.dist +sed -f NCVector.sed Vector.h >NCVector.h +chmod -w NCVector.h +sed -f NCVector.sed Vector.cxx >NCVector.cxx +chmod -w NCVector.cxx diff --git a/sx/.cvsignore b/sx/.cvsignore new file mode 100644 index 0000000..7a379c4 --- /dev/null +++ b/sx/.cvsignore @@ -0,0 +1,11 @@ +Makefile +Makefile.in +.libs +.deps +*.la +*.lo +*Messages.h +*Messages.rc +*Messages.cxx +*_inst.cxx +osx diff --git a/sx/Makefile.am b/sx/Makefile.am new file mode 100644 index 0000000..4d022f3 --- /dev/null +++ b/sx/Makefile.am @@ -0,0 +1,29 @@ +## Process this file with automake to produce Makefile.in + +bin_PROGRAMS = osx + +osx_SOURCES = sx.cxx XmlOutputEventHandler.cxx XmlOutputEventHandler.h \ + sx_inst.cxx XmlOutputMessages.h SxMessages.h + +EXTRA_DIST = XmlOutputMessages.msg XmlOutputMessages.rc \ + SxMessages.msg SxMessages.rc sx_inst.m4 sx.rc sx.dsp \ + .cvsignore + +osx_LDADD = $(top_builddir)/lib/libosp.la $(LTLIBINTL) + +INCLUDES = -I$(top_srcdir)/include + +BUILT_SOURCES = XmlOutputMessages.h XmlOutputMessages.rc \ + SxMessages.h SxMessages.rc sx_inst.cxx + +MAINTAINERCLEANFILES = Makefile.in + +MSGGENFLAGS = -l appModule + +SUFFIXES = .msg .m4 .rc + +.m4.cxx: + $(PERL) $(top_srcdir)/instmac.pl $< >$@ + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< diff --git a/sx/Makefile.in b/sx/Makefile.in new file mode 100644 index 0000000..dee443b --- /dev/null +++ b/sx/Makefile.in @@ -0,0 +1,540 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = osx$(EXEEXT) +subdir = sx +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +PROGRAMS = $(bin_PROGRAMS) +am_osx_OBJECTS = sx.$(OBJEXT) XmlOutputEventHandler.$(OBJEXT) \ + sx_inst.$(OBJEXT) +osx_OBJECTS = $(am_osx_OBJECTS) +am__DEPENDENCIES_1 = +osx_DEPENDENCIES = $(top_builddir)/lib/libosp.la $(am__DEPENDENCIES_1) +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(osx_SOURCES) +DIST_SOURCES = $(osx_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +osx_SOURCES = sx.cxx XmlOutputEventHandler.cxx XmlOutputEventHandler.h \ + sx_inst.cxx XmlOutputMessages.h SxMessages.h + +EXTRA_DIST = XmlOutputMessages.msg XmlOutputMessages.rc \ + SxMessages.msg SxMessages.rc sx_inst.m4 sx.rc sx.dsp \ + .cvsignore + +osx_LDADD = $(top_builddir)/lib/libosp.la $(LTLIBINTL) +INCLUDES = -I$(top_srcdir)/include +BUILT_SOURCES = XmlOutputMessages.h XmlOutputMessages.rc \ + SxMessages.h SxMessages.rc sx_inst.cxx + +MAINTAINERCLEANFILES = Makefile.in +MSGGENFLAGS = -l appModule +SUFFIXES = .msg .m4 .rc +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .msg .m4 .rc .cxx .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu sx/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu sx/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + || test -f $$p1 \ + ; then \ + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ + else :; fi; \ + done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ + done + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done +osx$(EXEEXT): $(osx_OBJECTS) $(osx_DEPENDENCIES) + @rm -f osx$(EXEEXT) + $(CXXLINK) $(osx_LDFLAGS) $(osx_OBJECTS) $(osx_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/XmlOutputEventHandler.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sx.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sx_inst.Po@am__quote@ + +.cxx.o: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< + +.cxx.obj: +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cxx.lo: +@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-libtool distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-exec-am: install-binPROGRAMS + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS uninstall-info-am + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool ctags distclean distclean-compile \ + distclean-generic distclean-libtool distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-binPROGRAMS uninstall-info-am + + +.m4.cxx: + $(PERL) $(top_srcdir)/instmac.pl $< >$@ + +%.h %.cxx %.rc: %.msg + [ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $< +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/sx/SxMessages.h b/sx/SxMessages.h new file mode 100644 index 0000000..18e88e9 --- /dev/null +++ b/sx/SxMessages.h @@ -0,0 +1,71 @@ +// This file was automatically generated from SxMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct SxMessages { + // 0 + static const MessageType1 unknownOutputOption; + // 1 + static const MessageType1 xHelp; + // 2 + static const MessageType1 info1; + // 3 + static const MessageType1 info2; + // 4 + static const MessageType1 info3; + // 5 + static const MessageFragment option; +}; +const MessageType1 SxMessages::unknownOutputOption( +MessageType::error, +&appModule, +0 +#ifndef SP_NO_MESSAGE_TEXT +,"unknown output option %1" +#endif +); +const MessageType1 SxMessages::xHelp( +MessageType::info, +&appModule, +1 +#ifndef SP_NO_MESSAGE_TEXT +,"Modify the XML output according to %1." +#endif +); +const MessageType1 SxMessages::info1( +MessageType::info, +&appModule, +2 +#ifndef SP_NO_MESSAGE_TEXT +,"%1 converts SGML to XML. %1 parses and validates the SGML document" +#endif +); +const MessageType1 SxMessages::info2( +MessageType::info, +&appModule, +3 +#ifndef SP_NO_MESSAGE_TEXT +,"contained in SYSID... and writes an equivalent XML document to the standard" +#endif +); +const MessageType1 SxMessages::info3( +MessageType::info, +&appModule, +4 +#ifndef SP_NO_MESSAGE_TEXT +,"output. %1 will warn about SGML constructs which have no XML equivalent." +#endif +); +const MessageFragment SxMessages::option( +&appModule, +5 +#ifndef SP_NO_MESSAGE_TEXT +,"OPTION" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/sx/SxMessages.msg b/sx/SxMessages.msg new file mode 100644 index 0000000..da65181 --- /dev/null +++ b/sx/SxMessages.msg @@ -0,0 +1,11 @@ +# Copyright (c) 1997 James Clark +# See the file COPYING for copying permission. + +# Sx message definitions + +E1+unknownOutputOption++unknown output option %1 +I1+xHelp++Modify the XML output according to %1. +I1+info1++%1 converts SGML to XML. %1 parses and validates the SGML document +I1+info2++contained in SYSID... and writes an equivalent XML document to the standard +I1+info3++output. %1 will warn about SGML constructs which have no XML equivalent. ++option++OPTION diff --git a/sx/SxMessages.rc b/sx/SxMessages.rc new file mode 100644 index 0000000..b01784d --- /dev/null +++ b/sx/SxMessages.rc @@ -0,0 +1,9 @@ +STRINGTABLE +BEGIN + 0, "unknown output option %1" + 1, "Modify the XML output according to %1." + 2, "%1 converts SGML to XML. %1 parses and validates the SGML document" + 3, "contained in SYSID... and writes an equivalent XML document to the standard" + 4, "output. %1 will warn about SGML constructs which have no XML equivalent." + 5, "OPTION" +END diff --git a/sx/XmlOutputEventHandler.cxx b/sx/XmlOutputEventHandler.cxx new file mode 100644 index 0000000..387af89 --- /dev/null +++ b/sx/XmlOutputEventHandler.cxx @@ -0,0 +1,1674 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifdef __GNUG__ +#pragma implementation +#endif + +#include "config.h" +#include "ExtendEntityManager.h" +#include "ParserApp.h" +#include "XmlOutputEventHandler.h" +#include "XmlOutputMessages.h" +#include "Message.h" +#include "MessageArg.h" +#include "macros.h" +#if 0 +#include "UTF8CodingSystem.h" +#endif +#include "InternalInputSource.h" +#include "StorageManager.h" +#include "HashTable.h" +#include +#include +#include +#ifndef _MSC_VER +#include +#include +#include +#else +#define MAXPATHLEN _MAX_PATH +#include +char* dirname(const char*); +void realpath(const char*,char*); +#endif +#include +#include +#include + + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +#define EXT_ENT_FILE "extEntities.dtf" +#define INT_ENT_FILE "intEntities.dtf" + +inline +void operator+=(StringC &str, const char *s) +{ + while (*s) + str += *s++; +} + +inline +void XmlOutputEventHandler::closeCdataSection() +{ + useCdata_ = 0; + if (inCdata_) { + os() << "]]>"; + inCdata_ = 0; + nCdataEndMatched_ = 0; + } +} + +const char RE = '\r'; + +XmlOutputEventHandler::Options::Options() +{ + memset(this, 0, sizeof(*this)); +} + +static +void escape(OutputCharStream &s, Char c) +{ + s << "&#" << (unsigned long)c << ";"; +} + +XmlOutputEventHandler::XmlOutputEventHandler(const Options &options, + OutputCharStream *os, + const StringC &encodingName, + const char *outputDir, + const char *dtdLoc, + const Ptr &entityManager, + const CharsetInfo &systemCharset, + CmdLineApp *app) +: options_(options), + os_(os), + entityManager_(entityManager), + systemCharset_(&systemCharset), + app_(app), + outputDir_(outputDir), + dtdLoc_(dtdLoc), + inDtd_(0), + inCdata_(0), + useCdata_(0), + nCdataEndMatched_(0), + namecaseGeneral_(0), + extEntFile_(0), + intEntFile_(0), + extEnts_(0), + intEnts_(0) +{ + // Create output stream for main output + os_->setEscaper(escape); + *os_ << "" << RE; + + // Set directory for output files + if (outputDir_ == NULL || strlen(outputDir_) == 0) + outputDir_ = "."; + + // Open file for writing external entity declarations if we are preserving + // any entities + if (! options_.expExt) { + ParserApp::AppChar* filePath=new ParserApp::AppChar[strlen(outputDir_) + 21]; + strcpy (filePath, outputDir_); + strcat (filePath, "/"); + strcat (filePath, EXT_ENT_FILE); + + if (! options_.overwrite) { + uniqueFilename(filePath); + } + + // Create directories if necessary + char *dirs = strdup (filePath); + maybeCreateDirectories(dirname(dirs)); + + extEntFile_ = new FileOutputByteStream; + + // Open the file, exiting if we fail to do so. + if (!extEntFile_->open(filePath)) { + app_->message(XmlOutputMessages::cannotOpenOutputFile, + StringMessageArg + (app_->codingSystem()->convertIn(filePath))); + exit(1); + } + + extEnts_ = + new EncodeOutputCharStream(extEntFile_, app_->outputCodingSystem()); + + /* Write some header information to this file. */ + *extEnts_ << "\n"; + extEnts_->flush(); + delete [] filePath; + } + + // Open file for writing external entity declarations if we are preserving + // any entities + if (! options_.expInt) { + char* filePath=new char[strlen(outputDir_) + 21]; + strcpy (filePath, outputDir_); + strcat (filePath, "/"); + strcat (filePath, INT_ENT_FILE); + + if (! options_.overwrite) { + uniqueFilename(filePath); + } + + // Create directories if necessary + char *dirs = strdup (filePath); + maybeCreateDirectories(dirname(dirs)); + + intEntFile_ = new FileOutputByteStream; + + // Open the file, exiting if we fail to do so. + if (!intEntFile_->open(filePath)) { + app_->message(XmlOutputMessages::cannotOpenOutputFile, + StringMessageArg + (app_->codingSystem()->convertIn(filePath))); + exit(1); + } + + intEnts_ = + new EncodeOutputCharStream(intEntFile_, app_->outputCodingSystem()); + + /* Write some header information to this file. */ + *intEnts_ << "\n"; + intEnts_->flush(); + delete [] filePath; + } + + /* If we are expanding internal entities, we are definitely not + generating a reference in the internal subset to an internal + entities driver file. Likewise for external entities. */ + if (options_.expInt) + options_.intDecl= false; + + if (options_.expExt) + options_.extDecl= false; +} + +XmlOutputEventHandler::~XmlOutputEventHandler() +{ + os() << RE; + delete os_; + + if (! options_.expExt) + delete extEntFile_; + + if (! options_.expInt) { + delete intEntFile_; + } +} + +void XmlOutputEventHandler::message(MessageEvent *event) +{ + app_->dispatchMessage(event->message()); + ErrorCountEventHandler::message(event); +} + +void XmlOutputEventHandler::sgmlDecl(SgmlDeclEvent *event) +{ + const Syntax &syntax = event->instanceSyntax(); + if (syntax.namecaseGeneral()) { + namecaseGeneral_ = 1; + syntax.generalSubstTable()->inverseTable(lowerSubst_); + } + delete event; +} + +void XmlOutputEventHandler::data(DataEvent *event) +{ + const Entity *entity = event->entity(); + + if (! options_.expInt && entity != NULL) { + Boolean firstSeen = checkFirstSeen(entity->name()); + + // output entity reference + os() << "&" << entity->name() << ";"; + + // save old output stream + outputStack_.insert(os_); + + // output beginning of entity declaration + if (firstSeen) { + // Point default output stream (os_) to the entities + // declaration file. + os_ = intEnts_; + + os() << "name() << " CDATA \""; + } // end if firstSeen + + else { + os_ = (OutputCharStream *) + new EncodeOutputCharStream(new NullOutputByteStream, + app_->outputCodingSystem()); + } // end else (not firstSeen) + } // end if expanding internal entities + + // Now, no matter what, output the entity's data + if (useCdata_) + outputCdata(event->data(), event->dataLength()); + else + outputData(event->data(), event->dataLength(), 0, 0); + + // If necessary, end entity decl and replace old output stream + if (! options_.expInt && entity != NULL) { + os() << "\">" << RE; + os_->flush(); + os_ = outputStack_.get(); + } + + delete event; +} + +void XmlOutputEventHandler::startElement(StartElementEvent *event) +{ + // This shouldn't happen (although useCdata_ can be true). + if (inCdata_) { + inCdata_ = 0; + nCdataEndMatched_ = 0; + os() << "]]>"; + } + + if (options_.preserveCase) { + os() << '<' << event->elementType()->origName(); + } else { + os() << '<' << generalName(event->name(), nameBuf_); + } + + size_t nAttributes = event->attributes().size(); + for (size_t i = 0; i < nAttributes; i++) + outputAttribute(event->attributes(), i); + if (options_.nlInTag) + os() << RE; + if (options_.cdata + && event->elementType()->definition()->declaredContent() == ElementDefinition::cdata) + useCdata_ = 1; + if (options_.empty + && event->elementType()->definition()->declaredContent() == ElementDefinition::empty) + os() << "/>"; + else + os() << '>'; + delete event; +} + +void XmlOutputEventHandler::outputAttribute(const AttributeList &attributes, size_t i) +{ + const AttributeValue *value = attributes.value(i); + if (!value) + return; + const Text *text; + const StringC *string; + AttributeValue::Type type = value->info(text, string); + if (type == AttributeValue::implied) + return; + if (options_.nlInTag) + os() << RE; + else + os() << ' '; + + if (options_.preserveCase) { + os() << attributes.def()->def(i)->origName() << "=\""; + } else { + os() << generalName(attributes.name(i), nameBuf_) << "=\""; + } + if (type == AttributeValue::cdata) { + TextIter iter(*text); + TextItem::Type type; + const Char *p; + size_t length; + const Location *loc; + while (iter.next(type, p, length, loc)) { + switch (type) { + case TextItem::data: + case TextItem::cdata: + outputData(p, length, 1, 0); + break; + case TextItem::sdata: + { + app_->setNextLocation(loc->origin()->parent()); + const Entity *entity = loc->origin()->asEntityOrigin()->entity(); + Boolean superLit = 0; + + if (! options_.expInt) { + Boolean firstSeen = checkFirstSeen(entity->name()); + + // output entity reference + os() << "&" << entity->name() << ";"; + + // save old output stream + outputStack_.insert(os_); + + if (firstSeen) { + // Point default output stream (os_) to the entities + // declaration file and output start of declaration + os_ = intEnts_; + + if (options_.sdataAsPi) { + os() << "name() + << " 'name() << " \""; + superLit = 1; + } else { + os() << "name() << " \""; + } + } else { // we've seen it before; throw away expansion data + os_ = (OutputCharStream *) + new EncodeOutputCharStream(new NullOutputByteStream, + app_->outputCodingSystem()); + } + } + + // We are expanding internal entities; expand this one as a PI, + // since XML does not have SDATA entities + else { + if (options_.sdataAsPi) + os() << "name() << " \""; + } + + // Now, no matter what, output the entity's data + outputData(p, length, 1, superLit); + + // If necessary, end entity decl and replace old output stream + if (! options_.expInt) { + if (options_.sdataAsPi) + os() << "\" ?>'>" << RE; + else + os() << "\"> \n"; + os_->flush(); + os_ = outputStack_.get(); + } else { + if (options_.sdataAsPi) + os() << "\" ?>"; + } + } + break; + case TextItem::nonSgml: + // FIXME + break; + default: + break; + } + } + } + else if (attributes.def()->def(i)->isEntity()) + os() << *string; + else + if (options_.preserveCase) { + const Vector *tokensPtr = + attributes.def()->def(i)->getOrigTokens(); + if (tokensPtr) { + size_t nTokens = tokensPtr->size(); + Vector::const_iterator tokens = tokensPtr->begin(); + for (i = 0; i < nTokens; i++) { + if (equalsIgnoreCase(*string, (StringC &)tokens[i])) { + os() << tokens[i]; + } + } + } else { + os() << *string; + } + + } else { + os() << generalName(*string, nameBuf_); + } + os() << '"'; +} + +void XmlOutputEventHandler::endElement(EndElementEvent *event) +{ + closeCdataSection(); + if (options_.empty + && event->elementType()->definition()->declaredContent() == ElementDefinition::empty) + ; + else { + if (options_.preserveCase) { + os() << "elementType()->origName(); + } else { + os() << "name(), nameBuf_); + } +#if 0 + if (options_.nlInTag) + os() << RE; +#endif + os() << '>'; + } + delete event; +} + +static Boolean isXmlS(Char c) +{ + switch (c) { + case ' ': + case '\r': + case '\n': + case '\t': + return 1; + } + return 0; +} + +static Boolean containsQuestionLt(const Char *s, size_t n) +{ + for (; n > 1; n--, s++) + if (*s == '?' && s[1] == '>') + return 1; + return 0; +} + +// These do not handle Unicode chars properly. +// They treat all Unicode chars >= 170 as name start characters + +static Boolean isXmlNameStartChar(Char c) +{ + switch (c) { + case ':': + case '.': + case '_': + case '-': + return 1; + } + if (c >= 170) + return 1; + if ('a' <= c && c <= 'z') + return 1; + if ('A' <= c && c <= 'Z') + return 1; + return 0; +} + +static Boolean isXmlNameChar(Char c) +{ + if (isXmlNameStartChar(c)) + return 1; + if ('0' <= c && c <= '9') + return 1; + return 0; +} + +static Boolean startsWithXmlName(const Char *s, size_t n) +{ + if (n == 0) + return 0; + if (!isXmlNameStartChar(*s)) + return 0; + for (s++, n--; n > 0; n--, s++) { + if (isXmlS(*s)) + return 1; + if (!isXmlNameChar(*s)) + return 0; + } + return 1; +} + +void XmlOutputEventHandler::pi(PiEvent *event) +{ + const Char *s = event->data(); + size_t n = event->dataLength(); + + if (n >= 3 && s[0] == 'x' && s[1] == 'm' && s[2] == 'l' + && (n == 3 || isXmlS(s[3]))) + ; // Probably came from an encoding PI. + else if (!startsWithXmlName(s, n)) { + app_->setNextLocation(event->location()); + app_->message(XmlOutputMessages::piNoName); + } + else if (options_.piEscape) { + os() << ""; + } + else if (containsQuestionLt(s, n)) { + app_->setNextLocation(event->location()); + app_->message(XmlOutputMessages::piQuestionLt); + } + else { + os() << ""; + } + delete event; +} + +void XmlOutputEventHandler::sdataEntity(SdataEntityEvent *event) +{ + const Entity *entity = event->entity(); + app_->setNextLocation(event->location().origin()->parent()); + Boolean superLit = 0; + + if (! options_.expInt) { + Boolean firstSeen = checkFirstSeen(entity->name()); + + // output entity reference + os() << "&" << entity->name() << ";"; + + // save old output stream + outputStack_.insert(os_); + + if (firstSeen) { + // Point default output stream (os_) to the entities + // declaration file and output start of declaration + os_ = intEnts_; + + if (options_.sdataAsPi) { + os() << "name() + << " 'name() << " "; + superLit = 1; + } else { + os() << "name() << " \""; + } + } else { // we've seen it before; throw away expansion data + os_ = (OutputCharStream *) + new EncodeOutputCharStream(new NullOutputByteStream, + app_->outputCodingSystem()); + } + } + + // We are expanding internal entities; expand this one as a PI, + // since XML does not have SDATA entities + else { + if (options_.sdataAsPi) + os() << "name() << " "; + } + + // Now, no matter what, output the entity's data + outputData(event->data(), event->dataLength(), 0, superLit); + + // If necessary, end entity decl and replace old output stream + if (! options_.expInt) { + if (options_.sdataAsPi) + os() << " ?>'>" << RE; + else + os() << "\"> \n"; + os_->flush(); + os_ = outputStack_.get(); + } else { + if (options_.sdataAsPi) + os() << " ?>"; + } + + delete event; +} + +/** External data entities may be referenced in attributes only. If + one is referenced in content, error and exit. */ +void XmlOutputEventHandler::externalDataEntity(ExternalDataEntityEvent *event) +{ + app_->message(XmlOutputMessages::externalDataEntityReference, + StringMessageArg(event->entity()->name())); + exit (1); +} + +void XmlOutputEventHandler::subdocEntity(SubdocEntityEvent *event) +{ + const SubdocEntity *entity = event->entity(); + app_->setNextLocation(event->location().origin()->parent()); + + if (options_.expExt) { + SgmlParser::Params params; + params.subdocInheritActiveLinkTypes = 1; + params.subdocReferenced = 1; + params.origin = event->entityOrigin()->copy(); + params.parent = & ((ParserApp *)app_)->parser(); + params.sysid = entity->externalId().effectiveSystemId(); + params.entityType = SgmlParser::Params::subdoc; + SgmlParser parser(params); + parser.parseAll(*this); + } else { + os() << "&" << entity->name() << ";"; + } + + delete event; +} + +void XmlOutputEventHandler::startDtd(StartDtdEvent *event) +{ + inDtd_ = 1; + delete event; +} + +void XmlOutputEventHandler::endDtd(EndDtdEvent *event) +{ + inDtd_ = 0; + delete event; +} + +void XmlOutputEventHandler::maybeStartDoctype(Boolean &doctypeStarted, const Dtd &dtd) +{ + if (doctypeStarted) + return; + doctypeStarted = 1; + const StringC &name = dtd.documentElementType()->name(); + StringC buf; + + // if appropriate, lowercase the doctype name -jphekman + if (options_.lower) { + for (size_t i = 0; i < name.size(); i++) { + Char c = lowerSubst_[name[i]]; + if (c != name[i]) { + buf = name; + buf[i] = c; + for (i++; i < name.size(); i++) + lowerSubst_.subst(buf[i]); + } + } + } else { + buf = name; + } + + /* Output the doctype declaration. If requested, specify a local + file containing the DTD. */ + os() << "codingSystem()->convertIn(outputDir_) << "/" + << EXT_ENT_FILE << "\">" + << RE << "%external-entities;" << RE; + } + + if (options_.intDecl) { + os() << "codingSystem()->convertIn(outputDir_) << "/" + << INT_ENT_FILE << "\">" + << RE << "%internal-entities;" << RE; + } +} + +void XmlOutputEventHandler::endProlog(EndPrologEvent *event) +{ + const Dtd &dtd = event->dtd(); + Boolean doctypeStarted = 0; + + if (options_.extDecl || options_.intDecl) { + maybeStartDoctype(doctypeStarted, dtd); + } + + if (options_.notation) { + Dtd::ConstNotationIter iter(dtd.notationIter()); + for (;;) { + const Notation *notation = iter.nextTemp(); + if (!notation) + break; + maybeStartDoctype(doctypeStarted, dtd); + os() << "name(), nameBuf_); + outputExternalId(*notation); + os() << ">" << RE; + if (notation->attributeDefTemp()) { + app_->setNextLocation(notation->defLocation()); + app_->message(XmlOutputMessages::notationAttributes, + StringMessageArg(notation->name())); + } + } + } + if (options_.ndata) { + Dtd::ConstEntityIter iter(dtd.generalEntityIter()); + for (;;) { + const Entity *entity = iter.nextTemp(); + if (!entity) + break; + const ExternalDataEntity *extDataEntity = entity->asExternalDataEntity(); + if (extDataEntity) { + maybeStartDoctype(doctypeStarted, dtd); + os() << "name(); + outputExternalId(*entity); + if (extDataEntity->dataType() != EntityDecl::ndata) { + app_->setNextLocation(entity->defLocation()); + app_->message(XmlOutputMessages::externalDataNdata, + StringMessageArg(entity->name())); + } + os() << " NDATA " << generalName(extDataEntity->notation()->name(), nameBuf_) << ">" << RE; + } + } + } + if (options_.id || options_.attlist) { + Dtd::ConstElementTypeIter iter(dtd.elementTypeIter()); + for (;;) { + const ElementType *elementType = iter.next(); + if (!elementType) + break; + const AttributeDefinitionList *adl = elementType->attributeDefTemp(); + if (adl) { + if (options_.attlist) { + maybeStartDoctype(doctypeStarted, dtd); + if (options_.preserveCase) { + os() << "origName(); + } else { + os() << "name(), nameBuf_); + } + for (size_t i = 0; i < adl->size(); i++) { + const AttributeDefinition *def = adl->def(i); + if (options_.preserveCase) { + os() << RE << def->origName(); + } else { + os() << RE << generalName(def->name(), nameBuf_); + } + AttributeDefinitionDesc desc; + def->getDesc(desc); + switch (desc.declaredValue) { + case AttributeDefinitionDesc::cdata: + os() << " CDATA #IMPLIED"; + break; + case AttributeDefinitionDesc::name: + case AttributeDefinitionDesc::number: + case AttributeDefinitionDesc::nmtoken: + case AttributeDefinitionDesc::nutoken: + os() << " NMTOKEN #IMPLIED"; + break; + case AttributeDefinitionDesc::entity: + os() << " ENTITY #IMPLIED"; + break; + case AttributeDefinitionDesc::idref: + os() << " IDREF #IMPLIED"; + break; + case AttributeDefinitionDesc::names: + case AttributeDefinitionDesc::numbers: + case AttributeDefinitionDesc::nmtokens: + case AttributeDefinitionDesc::nutokens: + os() << " NMTOKENS #IMPLIED"; + break; + case AttributeDefinitionDesc::entities: + os() << " ENTITIES #IMPLIED"; + break; + case AttributeDefinitionDesc::idrefs: + os() << " IDREFS #IMPLIED"; + break; + case AttributeDefinitionDesc::id: + os() << " ID #IMPLIED"; + break; + case AttributeDefinitionDesc::notation: + os() << " NOTATION"; + // fall through + case AttributeDefinitionDesc::nameTokenGroup: + { + os() << " ("; + if (options_.preserveCase) { + for (size_t j = 0; + j < desc.origAllowedValues.size(); j++) { + if (j > 0) + os() << '|'; + os() << desc.origAllowedValues[j]; + } + os() << ") #IMPLIED"; + } else { + for (size_t j = 0; j < desc.allowedValues.size(); j++) { + if (j > 0) + os() << '|'; + os() << desc.allowedValues[j]; + } + os() << ") #IMPLIED"; + } + } + break; + default: + CANNOT_HAPPEN(); + } + } + os() << '>' << RE; + } + else { + size_t idIndex = adl->idIndex(); + if (idIndex != size_t(-1)) { + maybeStartDoctype(doctypeStarted, dtd); + os() << "name(), nameBuf_); + os() << ' ' << generalName(adl->def(idIndex)->name(), nameBuf_) + << " ID #IMPLIED>" << RE; + } + } + } + } + } + if (doctypeStarted) + os() << "]>" << RE; + delete event; +} + +void XmlOutputEventHandler::outputExternalId(const EntityDecl &decl) + +{ + const StringC *pubIdP = decl.publicIdPointer(); + const StringC *sysIdP = decl.effectiveSystemIdPointer(); + if (pubIdP) { + os() << " PUBLIC \"" << *pubIdP << "\""; + if (decl.declType() == EntityDecl::notation && !sysIdP) + return; + os() << " \""; + } + else + os() << " SYSTEM \""; + if (sysIdP) { + StringC url; + switch(fsiToUrl(*sysIdP, decl.defLocation(), url)) { + case 1: + os() << url; + break; + case 0: + break; + default: + app_->setNextLocation(decl.defLocation()); + app_->message(XmlOutputMessages::cannotConvertFsiToUrl, + StringMessageArg(*sysIdP)); + break; + } + } + os() << "\""; +} + +// Return 1 if OK; return -1 to generate generic error; return 0 if error already generated. + +int XmlOutputEventHandler::fsiToUrl(const StringC &fsi, const Location &loc, StringC &url) +{ + ParsedSystemId parsedBuf; + if (!entityManager_->parseSystemId(fsi, *systemCharset_, 0, 0, *app_, parsedBuf)) + return 0; + if (parsedBuf.size() != 1) + return -1; + if (strcmp(parsedBuf[0].storageManager->type(), "URL") == 0) { + url = parsedBuf[0].specId; + return 1; + } + Owner in(entityManager_->open(fsi, + *systemCharset_, + InputSourceOrigin::make(), + 0, + *app_)); + if (!in) + return 0; + Xchar c = in->get(*app_); + StorageObjectLocation soLoc; + if (c == InputSource::eE && in->accessError()) { + if (parsedBuf[0].baseId.size()) + return 0; + soLoc.storageObjectSpec = &parsedBuf[0]; + soLoc.actualStorageId = parsedBuf[0].specId; + } + else { + const Location &loc = in->currentLocation(); + if (loc.origin().isNull()) + return -1; + const InputSourceOrigin *tem = loc.origin()->asInputSourceOrigin(); + if (!tem) + return -1; + const ParsedSystemId *psi + = ExtendEntityManager::externalInfoParsedSystemId(tem->externalInfo()); + if (!psi || psi->size() != 1) + return -1; + if (!ExtendEntityManager::externalize(tem->externalInfo(), 0, soLoc)) + return -1; + } + if (strcmp(soLoc.storageObjectSpec->storageManager->type(), "OSFILE") != 0) + return -1; + return filenameToUrl(soLoc.actualStorageId, loc, url); +} + +static +StringC hexEncode(unsigned char c) +{ + static const char hexDigits[] = "0123456789ABCDEF"; + StringC result; + result.resize(2); + result[0] = hexDigits[c >> 4]; + result[1] = hexDigits[c & 0xF]; + return result; +} + +static +StringC urlEncode(Char c) +{ + if (c >= 0x80) { + StringC tem; + tem += c; +#if 0 + // This is what the URN spec says. + UTF8CodingSystem utf8; + String bytes(utf8.convertOut(tem)); + tem.resize(0); + for (size_t i = 0; i < bytes.size(); i++) + tem += hexEncode(bytes[i]); +#endif + return tem; + } + if (strchr("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$-_.+!*'(),", + char(c))) { + StringC tem; + tem += c; + return tem; + } + return hexEncode((unsigned char)c); +} + +int XmlOutputEventHandler::filenameToUrl(const StringC &filename, + const Location &loc, + StringC &url) +{ +#ifdef SP_MSDOS_FILENAMES + if (filename.size() >= 3 && filename[1] == ':' + && (('a' <= filename[0] && filename[0] <= 'z') + || ('A' <= filename[0] && filename[0] <= 'Z')) + && (filename[2] == '/' || filename[2] == '\\')) { + url += "file://"; + url += filename; + return 1; + } +#endif + for (size_t i = 0; i < filename.size(); i++) { + if (filename[i] == '/' +#ifdef SP_MSDOS_FILENAMES + || filename[i] == '\\' +#endif + ) { + url += '/'; + } + else + url += urlEncode(filename[i]); + } + return 1; +} + +void XmlOutputEventHandler::commentDecl(CommentDeclEvent *event) +{ + if (!inDtd_ && options_.comment) { + Boolean started = 0; + for (MarkupIter iter(event->markup()); iter.valid(); iter.advance()) { + if (iter.type() == Markup::comment) { + if (!started) { + os() << ""; + } + delete event; +} + +void XmlOutputEventHandler::markedSectionStart(MarkedSectionStartEvent *event) +{ + if (options_.cdata && event->status() == MarkedSectionEvent::cdata) + useCdata_ = 1; + delete event; +} + +void XmlOutputEventHandler::markedSectionEnd(MarkedSectionEndEvent *event) +{ + if (event->status() == MarkedSectionEvent::cdata) + closeCdataSection(); + delete event; +} + +void XmlOutputEventHandler::outputCdata(const Char *s, size_t n) +{ + static const char cdataEnd[] = "]]>"; + for (; n > 0; s++, n--) { + Char c = *s; + if (!inCdata_) { + os() << " 0; s++, n--) { + Char c = *s; + switch (c) { + case '&': + os() << "&"; + break; + case '<': + os() << "<"; + break; + case '>': + os() << ">"; + break; + case 9: + case 10: + case 13: + if (inLit) + os() << "&#" << int(c) << ';'; + else + os().put(c); + break; + case '"': + if (inLit) { + os() << """; + break; + } + case '\'': + if (inSuperLit) { + os() << "'"; + break; + } + // fall through + default: + os().put(c); + break; + } + } +} + +void XmlOutputEventHandler::entityDefaulted(EntityDefaultedEvent *event) +{ + if (options_.reportEnts) { + ConstPtr entity = event->entityPointer(); + const ExternalEntity *extEntity = entity->asExternalEntity(); + + // If we are dealing with an external entity (else it will be null) + // -jphekman + if (extEntity != 0) { + const StringC *systemIdPointer = extEntity->systemIdPointer(); + if (systemIdPointer != 0) { + os () << ""; + } + } + } +} + + +void XmlOutputEventHandler::inputOpened(InputSource *in) +{ + if (!inDtd_) { + const CodingSystem *outputCodingSystem = app_->outputCodingSystem(); + const EntityDecl *entDecl = in->currentLocation().origin()->entityDecl(); + + if (entDecl == NULL ) { + if (options_.reportIS) { + os() << ""; + } + return; + } + + const Entity *ent = in->currentLocation().origin()->entity(); + const StringC *effectiveSystemIdPointer = + entDecl->effectiveSystemIdPointer(); + const StringC *systemIdPointer = entDecl->systemIdPointer(); + const StringC *publicIdPointer = entDecl->publicIdPointer(); + + if (options_.reportIS && ent->asExternalEntity() != NULL) { + os() << ""; + } + + /* Output entity declaration and, in the case of external + entities, write file containing entity replacement text. */ + + Boolean firstSeen = checkFirstSeen(ent->name()); + + if (ent->asExternalEntity() != NULL) { + if (! options_.expExt) { + // output entity reference + os() << "&" << entDecl->name() << ";"; + + // output entity declaration + if (systemIdPointer == 0) { + app_->message(XmlOutputMessages::missingSystemId, + StringMessageArg(entDecl->name())); + exit (1); + } + + // save old output stream + outputStack_.insert(os_); + + if (firstSeen) { + + char *originalFilePath = + strdup(outputCodingSystem->convertOut(*systemIdPointer).data()); + + /* Construct new output path, prepending the output + directory: so, for example, /usr/local/lib/ents/foo + becomes ./usr/local/lib/ents/foo.xml; possible 2-digit + suffix (for uniqueness) */ + + char* filePath=new char[strlen(outputDir_) + 9 + + outputCodingSystem->convertOut + (*systemIdPointer).size()]; + + strcpy (filePath, outputDir_); + + /* Drop the scheme if there is one (so + "http://www.bar.com/foo" becomes + "output_dir/www.bar.com/foo") */ + + char *scheme = strchr(originalFilePath, ':'); + if (scheme != NULL) { + // drop initial colon + originalFilePath = scheme + 1; + } else { + // check for leading slashes in non-scheme filenames + // and warn that we're going to remove them + if (strncmp(originalFilePath, "/", 1) == 0) { + app_->message(XmlOutputMessages::removingLeadingSlashes, + StringMessageArg(*systemIdPointer)); + } + } + + // drop initial slashes (there may be multiple) + while (strncmp(originalFilePath, "/", 1) == 0) { + originalFilePath++; + } + + // replace exactly one initial slash before prepending + // output directory + strcat (filePath, "/"); + strcat(filePath, originalFilePath); + + // Check to make sure we haven't passed outside of the + // output directory + char *dirs = strdup (filePath); + char realDirs[MAXPATHLEN]; + char realOutputDir[MAXPATHLEN]; + char *outputDir = strdup(outputDir_); + + realpath((const char *)dirname(dirs), realDirs); + realpath((const char *)dirname(outputDir), realOutputDir); + + if (strncmp(realDirs, realOutputDir, strlen (realOutputDir)) != 0) { + app_->message(XmlOutputMessages::pathOutsideOutputDirectory, + StringMessageArg(*systemIdPointer)); + if (! options_.writeOutsideOutDir) { + exit (1); + } + } + + // Make the necessary directories + maybeCreateDirectories(dirname(dirs)); + + // Set the suffix to ".xml" + convertSuffix(filePath); + + *extEnts_ << "name() << " SYSTEM \"" + << filePath << "\">\n"; + extEnts_->flush(); + + if (! options_.overwrite) { + uniqueFilename(filePath); + } + + // Open the file, exiting if we fail to do so. + FileOutputByteStream *file = new FileOutputByteStream; + outputFileStack_.insert(file); + StringC filePathStrC = app_->codingSystem()->convertIn(filePath); + + // If we've never seen this exact input filename before, + // then we're being asked to overwrite an old generated file + // with a new one (for example, "/text" and "text" will both + // map to the top level of the output directory). In that + // case, produce an error. + for (size_t i = 0; i < filesCreated_.size(); i++) { + + if (filesCreated_[i] == filePathStrC) { + bool seenOrigPath = false; + for (size_t j = 0; j < originalFilePaths_.size(); j++) { + if (originalFilePaths_[j] == *systemIdPointer) { + seenOrigPath = true; + } + } + + if (! seenOrigPath) { + app_->message(XmlOutputMessages::alreadyWroteOutputFile, + StringMessageArg(filePathStrC)); + exit (1); + } + } + } + + // Save so we can ensure not overwriting later. + filesCreated_.push_back(filePathStrC); + originalFilePaths_.push_back(*systemIdPointer); + if (!file->open(filePath)) { + app_->message(XmlOutputMessages::cannotOpenOutputFile, + StringMessageArg(filePathStrC)); + exit (1); + } + + // Create output stream to file and set os_ to it. + os_ = (OutputCharStream *) + new EncodeOutputCharStream(file, outputCodingSystem); + delete [] filePath; + } // end if firstSeen + else { + // push null os onto file output stack, set os_ to it + NullOutputByteStream *nobs = new NullOutputByteStream; + outputFileStack_.insert(nobs); + + // Create output stream to file and set os_ to it. + os_ = (OutputCharStream *) + new EncodeOutputCharStream(nobs, outputCodingSystem); + } // end else (notfirst Seen) + + } // end if not expanding external entities + + } // end if asExternalEntity() + + else if (ent->asInternalEntity() != NULL) { + + char *entName = + strdup(outputCodingSystem->convertOut(entDecl->name()).data()); + + if (! options_.expInt) { + + // output entity reference + os() << "&" << entDecl->name() << ";"; + + // save old output stream and point output stream at null + outputStack_.insert(os_); + NullOutputByteStream *nobs = new NullOutputByteStream; + os_ = (OutputCharStream *) + new EncodeOutputCharStream(nobs, outputCodingSystem); + + if (firstSeen) { + + // don't define predefined entities + + if (strcmp (entName, "lt") != 0 + && strcmp (entName, "gt") != 0 + && strcmp (entName, "amp") != 0 + && strcmp (entName, "apos") != 0 + && strcmp (entName, "quot") != 0) { + + // output declaration to internal entities driver file + InternalInputSource *intIn = in->asInternalInputSource(); + *intEnts_ << "name() << " " + << getQuoteMark (intIn->contents()) + << (*intIn->contents()) + << getQuoteMark (intIn->contents()) + << " >\n"; + intEnts_->flush(); + } + } // end if firstSeen + } // end if expanding internal entities + } // end if this is an internal entity + + else { + // We should only get InternalText and ExternalText entities here. + app_->message(XmlOutputMessages::unexpectedEntityType, + StringMessageArg (ent->name())); + exit(1); + } + } +} + +void XmlOutputEventHandler::inputClosed(InputSource *in) + { + if (! inDtd_) { + const EntityDecl *entDecl = in->currentLocation().origin()->entityDecl(); + const Entity *ent = in->currentLocation().origin()->entity(); + + if (entDecl == NULL || ent == NULL ) { + if ( options_.reportIS) { + os() << ""; + } + return; + } + + // Close external entity + if (ent->asExternalEntity() != NULL) { + if (! options_.expExt) { + // delete current output stream + os_->flush(); + delete os_; + + // restore previous output stream + os_ = outputStack_.get(); + + // close file + OutputByteStream *file = outputFileStack_.get(); + delete file; + } + } + + // Close internal entity + else if (ent->asInternalEntity() != NULL) { + if (! options_.expInt) { + os_->flush(); + delete os_; + + // restore previous output stream + os_ = outputStack_.get(); + } + } + + else { + // We should only get InternalText and ExternalText entities here. + app_->message(XmlOutputMessages::unexpectedEntityType, + StringMessageArg( ent->name() )); + exit(1); + } + + if (options_.reportIS && ent->asExternalEntity() != NULL) { + os() << ""; + } + + } +} + +const StringC &XmlOutputEventHandler::generalName(const StringC &name, + StringC &buf) +{ + + if (options_.lower && namecaseGeneral_) { + for (size_t i = 0; i < name.size(); i++) { + Char c = lowerSubst_[name[i]]; + if (c != name[i]) { + buf = name; + buf[i] = c; + for (i++; i < name.size(); i++) + lowerSubst_.subst(buf[i]); + return buf; + } + } + } + return name; +} + +Boolean XmlOutputEventHandler::equalsIgnoreCase(const StringC &str1, + StringC &str2) +{ + + if (str1.size() != str2.size()) + return false; + + for (size_t i = 0; i < str1.size(); i++) { + if (lowerSubst_[str1[i]] != lowerSubst_[str2[i]]) + return false; + } + return true; +} + +/** Make this string's suffix ".xml", attempting to do the right thing + if we encounter ".sgm", ".sgml", or ".xml" as the original + suffix. */ +char *XmlOutputEventHandler::convertSuffix(char *name) +{ + // Get a pointer to the last occurrence of ".": + char *suffix = strrchr(name, '.'); + + // If there is no "." in "name", append ".xml" and return + if (suffix == NULL) { + strcat(name, ".xml"); + return name; + } + + // Suffix is "sgm[l]": subsitite ".xml" + if (strcmp(suffix, ".sgm") == 0 || strcmp (suffix, ".sgml") == 0) { + strcpy (suffix, ".xml"); + return name; + } + + // "xml": do nothing + if (strcmp(suffix, ".xml") == 0) { + return name; + } + + // default: append ".xml" + strcat (name, ".xml"); + return name; +} + +/** Create all the directories mentioned in this path, unless they + already exist. */ + +int XmlOutputEventHandler::maybeCreateDirectories (char *path) +{ + int ret; + + char *pp = strrchr(path, '/'); +#ifdef SP_MSDOS_FILENAMES + char *ppp = strrchr(path,'\\'); + if (ppp && (ppp > pp || pp==NULL)) pp=ppp; +#endif + + if ((pp) && (pp != path)) { + *pp = '\0'; + maybeCreateDirectories(path); + *pp = '/'; + } + +#ifndef _MSC_VER + struct stat statbuf; + pp = strrchr(path, '/'); + + statbuf.st_mode = 0777; + + /* stat the directory */ + if ((pp) && (pp != path)) { + *pp = '\0'; + stat(path, &statbuf); + *pp = '/'; + } + + ret = mkdir(path, statbuf.st_mode); +#else + ret=_mkdir(path); +#endif + if (ret == -1) { + if (errno == EEXIST) { + ret = 0; + } else { + app_->message(XmlOutputMessages::cannotCreateDirectory, + StringMessageArg(app_->codingSystem()->convertIn(path))); + } + } + + return(ret); +} + + +/** If this is the first time we have encountered entity "name", + return true and add it to a list of entities we've seen. Else, + return false. */ +Boolean XmlOutputEventHandler::checkFirstSeen(const StringC &name) +{ + Named *id = entTable_.lookup(name); + + if (!id) { + entTable_.insert(new Named(name)); + return true; + } + + return false; +} + + +/** Set the newFilename to a filename which, while similar or + identical to originalFilename, does not correspond to an existing + file. Gives an error if called more than 99 times on the same + filename (during the same or different executions of osx). Assumes + that the char array it's given is long enough to accept a two-digit + suffix in addition to the string that's already in there. + */ +void XmlOutputEventHandler::uniqueFilename(char *filePath) { + + char* baseFilePath=new char[strlen(filePath)]; + strcpy (baseFilePath, filePath); + + struct stat statbuf; + int num = 0; + char numStr[3]; + + while (stat(filePath, &statbuf) == 0 && num <= 100) { + num++; + strcpy (filePath, baseFilePath); + strcat (filePath, "."); + sprintf(numStr, "%d", num); + strcat (filePath, numStr); + } + + if (num >= 100) { + app_->message(XmlOutputMessages::tooManyOutputFiles, + StringMessageArg + (app_->codingSystem()->convertIn(baseFilePath))); + exit(1); + } + delete [] baseFilePath; +} + +char XmlOutputEventHandler::getQuoteMark(const StringC *contents) +{ + char *contentsStr = + strdup(app_->outputCodingSystem()->convertOut(*contents).data()); + if (strchr(contentsStr, '"') == NULL) { + return '"'; + } else { + return '\''; + } +} + + +/** + * NullOutputByteStream + */ + +NullOutputByteStream::NullOutputByteStream() +{ +} + +NullOutputByteStream::~NullOutputByteStream() +{ +} + +void NullOutputByteStream::flush() +{ +} + +void NullOutputByteStream::sputc(char c) +{ +} + +void NullOutputByteStream::sputn(const char *, size_t) +{ +} + +OutputByteStream &NullOutputByteStream::operator<<(char) +{ + return *this; +} + +OutputByteStream &NullOutputByteStream::operator<<(unsigned char) +{ + return *this; +} + +OutputByteStream &NullOutputByteStream::operator<<(const char *) +{ + return *this; +} + +OutputByteStream &NullOutputByteStream::operator<<(int) +{ + return *this; +} + +OutputByteStream &NullOutputByteStream::operator<<(unsigned) +{ + return *this; +} + +OutputByteStream &NullOutputByteStream::operator<<(long) +{ + return *this; +} + +OutputByteStream &NullOutputByteStream::operator<<(unsigned long) +{ + return *this; +} + +OutputByteStream &NullOutputByteStream::operator<<(const String &) +{ + return *this; +} + +/* Note: Returning NULL is probably not the best solution here, but as + * nothing actually uses getBufferPtr(), it is hard to see what sort + * of no-op behavior would actually be appropriate. */ +char *NullOutputByteStream::getBufferPtr() const +{ + return NULL; +} + +size_t NullOutputByteStream::getBufferSize() const +{ + return 0; +} + +void NullOutputByteStream::usedBuffer(size_t) +{ +} + +void NullOutputByteStream::flushBuf(char) +{ +} + +#ifdef SP_NAMESPACE +} +#endif + +#ifdef _MSC_VER +char* dirname(const char* path) +{ + static char buffer[MAXPATHLEN]; + char* p=strrchr((char*)path,'/'); +#ifdef SP_MSDOS_FILENAMES + char *ppp = strrchr((char*)path,'\\'); + if (ppp && (ppp > p || p==NULL)) p=ppp; +#endif + + if (p==NULL) return NULL; + strncpy(buffer,path,p-path); + buffer[p-path]=0; + return buffer; +} + +void realpath(const char* in,char* out) +{ + _fullpath(out,in,MAXPATHLEN); + return; +} +#endif + diff --git a/sx/XmlOutputEventHandler.h b/sx/XmlOutputEventHandler.h new file mode 100644 index 0000000..de7eed4 --- /dev/null +++ b/sx/XmlOutputEventHandler.h @@ -0,0 +1,156 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#ifndef XmlOutputEventHandler_INCLUDED +#define XmlOutputEventHandler_INCLUDED 1 + +#ifdef __GNUG__ +#pragma interface +#endif + +#include "ErrorCountEventHandler.h" +#include "Message.h" +#include "OutputCharStream.h" +#include "Boolean.h" +#include "CharsetInfo.h" +#include "ExtendEntityManager.h" +#include "IList.h" +#include "Ptr.h" +#include "SubstTable.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +class CharsetInfo; + +class XmlOutputEventHandler : public ErrorCountEventHandler { +public: + struct Options { + Options(); + PackedBoolean nlInTag; + PackedBoolean id; + PackedBoolean notation; + PackedBoolean ndata; + PackedBoolean comment; + PackedBoolean cdata; + PackedBoolean lower; + PackedBoolean piEscape; + PackedBoolean empty; + PackedBoolean attlist; + PackedBoolean reportEnts; + PackedBoolean reportIS; + PackedBoolean expExt; + PackedBoolean expInt; + PackedBoolean intDecl; + PackedBoolean extDecl; + PackedBoolean sdataAsPi; + PackedBoolean preserveCase; + PackedBoolean overwrite; + PackedBoolean writeOutsideOutDir; + }; + XmlOutputEventHandler(const Options &, + OutputCharStream *, + const StringC &encodingName, + const char *outputDir, + const char *dtdLoc, + const Ptr &, + const CharsetInfo &, + CmdLineApp *); + ~XmlOutputEventHandler(); + void data(DataEvent *); + void startElement(StartElementEvent *); + void endElement(EndElementEvent *); + void pi(PiEvent *); + void startDtd(StartDtdEvent *); + void endDtd(EndDtdEvent *); + void endProlog(EndPrologEvent *event); + void sdataEntity(SdataEntityEvent *); + void externalDataEntity(ExternalDataEntityEvent *); + void subdocEntity(SubdocEntityEvent *); + void commentDecl(CommentDeclEvent *); + void markedSectionStart(MarkedSectionStartEvent *); + void markedSectionEnd(MarkedSectionEndEvent *); + void message(MessageEvent *); + void sgmlDecl(SgmlDeclEvent *); +private: + XmlOutputEventHandler(const XmlOutputEventHandler &); // undefined + void operator=(const XmlOutputEventHandler &); // undefined + OutputCharStream &os(); + void outputData(const Char *s, size_t n, Boolean inLit, Boolean inSuperLit); + void outputData(const Char *s, size_t n, Boolean inLit); + void outputCdata(const Char *s, size_t n); + void outputExternalId(const EntityDecl &decl); + void outputAttribute(const AttributeList &attributes, size_t i); + int fsiToUrl(const StringC &fsi, const Location &loc, StringC &url); + int filenameToUrl(const StringC &filename, const Location &loc, StringC &url); + void maybeStartDoctype(Boolean &doctypeStarted, const Dtd &dtd); + void closeCdataSection(); + void entityDefaulted(EntityDefaultedEvent *event); + void inputOpened(InputSource *in); + void inputClosed(InputSource *in); + const StringC &generalName(const StringC &name, StringC &buf); + Boolean equalsIgnoreCase(const StringC &str1, StringC &str2); + char *convertSuffix(char *name); + int maybeCreateDirectories(char *path); + Boolean checkFirstSeen(const StringC &name); + void uniqueFilename(char *filename); + char getQuoteMark(const StringC *contents); + + CmdLineApp *app_; + Ptr entityManager_; + IList outputStack_; + IList outputFileStack_; + Vector filesCreated_; + Vector originalFilePaths_; + const CharsetInfo *systemCharset_; + OutputCharStream *os_; + OutputCharStream *extEnts_; + OutputCharStream *intEnts_; + FileOutputByteStream *extEntFile_; + FileOutputByteStream *intEntFile_; + const char *outputDir_; + const char *dtdLoc_; + Boolean inDtd_; + Boolean useCdata_; + Boolean inCdata_; + int nCdataEndMatched_; + Options options_; + Boolean namecaseGeneral_; + SubstTable lowerSubst_; + StringC nameBuf_; + NamedTable entTable_; +}; + +inline +OutputCharStream &XmlOutputEventHandler::os() +{ + return *os_; +} + +class NullOutputByteStream : public OutputByteStream { +public: + NullOutputByteStream(); + virtual ~NullOutputByteStream(); + void flush(); + void sputc(char c); + void sputn(const char *, size_t); + OutputByteStream &operator<<(char); + OutputByteStream &operator<<(unsigned char); + OutputByteStream &operator<<(const char *); + OutputByteStream &operator<<(int); + OutputByteStream &operator<<(unsigned); + OutputByteStream &operator<<(long); + OutputByteStream &operator<<(unsigned long); + OutputByteStream &operator<<(const String &); + char *getBufferPtr() const; + size_t getBufferSize() const; + void usedBuffer(size_t); + void flushBuf(char); +}; + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* not XmlOutputEventHandler_INCLUDED */ diff --git a/sx/XmlOutputMessages.h b/sx/XmlOutputMessages.h new file mode 100644 index 0000000..892fc58 --- /dev/null +++ b/sx/XmlOutputMessages.h @@ -0,0 +1,172 @@ +// This file was automatically generated from XmlOutputMessages.msg by msggen.pl. +#include "Message.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +struct XmlOutputMessages { + // 100 + static const MessageType1 sdataEntityReference; + // 101 + static const MessageType1 externalDataEntityReference; + // 102 + static const MessageType1 subdocEntityReference; + // 103 + static const MessageType0 piQuestionLt; + // 104 + static const MessageType0 piNoName; + // 105 + static const MessageType1 externalDataNdata; + // 106 + static const MessageType1 notationAttributes; + // 107 + static const MessageType1 cannotConvertFsiToUrl; + // 108 + static const MessageType1 cannotOpenOutputFile; + // 109 + static const MessageType1 missingSystemId; + // 110 + static const MessageType1 unexpectedEntityType; + // 111 + static const MessageType1 cannotCreateDirectory; + // 112 + static const MessageType1 tooManyOutputFiles; + // 113 + static const MessageType1 alreadyWroteOutputFile; + // 114 + static const MessageType1 removingLeadingSlashes; + // 115 + static const MessageType1 pathOutsideOutputDirectory; +}; +const MessageType1 XmlOutputMessages::sdataEntityReference( +MessageType::warning, +&appModule, +100 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to internal SDATA entity %1 not allowed in XML" +#endif +); +const MessageType1 XmlOutputMessages::externalDataEntityReference( +MessageType::error, +&appModule, +101 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to external data entity %1 not allowed in XML" +#endif +); +const MessageType1 XmlOutputMessages::subdocEntityReference( +MessageType::warning, +&appModule, +102 +#ifndef SP_NO_MESSAGE_TEXT +,"reference to subdocument entity %1 not allowed in XML" +#endif +); +const MessageType0 XmlOutputMessages::piQuestionLt( +MessageType::warning, +&appModule, +103 +#ifndef SP_NO_MESSAGE_TEXT +,"processing instruction containing \"?>\" not allowed in XML" +#endif +); +const MessageType0 XmlOutputMessages::piNoName( +MessageType::warning, +&appModule, +104 +#ifndef SP_NO_MESSAGE_TEXT +,"XML requires processing instructions to start with a name" +#endif +); +const MessageType1 XmlOutputMessages::externalDataNdata( +MessageType::warning, +&appModule, +105 +#ifndef SP_NO_MESSAGE_TEXT +,"external data entity %1 is CDATA or SDATA, but XML allows only NDATA" +#endif +); +const MessageType1 XmlOutputMessages::notationAttributes( +MessageType::warning, +&appModule, +106 +#ifndef SP_NO_MESSAGE_TEXT +,"attributes were defined for notation %1; not allowed in XML" +#endif +); +const MessageType1 XmlOutputMessages::cannotConvertFsiToUrl( +MessageType::warning, +&appModule, +107 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot convert formal system identifier %1 to URL" +#endif +); +const MessageType1 XmlOutputMessages::cannotOpenOutputFile( +MessageType::warning, +&appModule, +108 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot open output file %1" +#endif +); +const MessageType1 XmlOutputMessages::missingSystemId( +MessageType::warning, +&appModule, +109 +#ifndef SP_NO_MESSAGE_TEXT +,"missing system ID for entity %1" +#endif +); +const MessageType1 XmlOutputMessages::unexpectedEntityType( +MessageType::warning, +&appModule, +110 +#ifndef SP_NO_MESSAGE_TEXT +,"unexpected entity type for entity named %1" +#endif +); +const MessageType1 XmlOutputMessages::cannotCreateDirectory( +MessageType::warning, +&appModule, +111 +#ifndef SP_NO_MESSAGE_TEXT +,"cannot create directory %1" +#endif +); +const MessageType1 XmlOutputMessages::tooManyOutputFiles( +MessageType::warning, +&appModule, +112 +#ifndef SP_NO_MESSAGE_TEXT +,"already wrote 99 versions of %1; will not overwrite" +#endif +); +const MessageType1 XmlOutputMessages::alreadyWroteOutputFile( +MessageType::warning, +&appModule, +113 +#ifndef SP_NO_MESSAGE_TEXT +,"already wrote output file %1; will not overwrite" +#endif +); +const MessageType1 XmlOutputMessages::removingLeadingSlashes( +MessageType::warning, +&appModule, +114 +#ifndef SP_NO_MESSAGE_TEXT +,"removing leading slashes from output filename %1" +#endif +); +const MessageType1 XmlOutputMessages::pathOutsideOutputDirectory( +MessageType::warning, +&appModule, +115 +#ifndef SP_NO_MESSAGE_TEXT +,"path %1 outside output directory" +#endif +); +#ifdef SP_NAMESPACE +} +#endif diff --git a/sx/XmlOutputMessages.msg b/sx/XmlOutputMessages.msg new file mode 100644 index 0000000..086fd58 --- /dev/null +++ b/sx/XmlOutputMessages.msg @@ -0,0 +1,22 @@ +# Copyright (c) 1997 James Clark +# See the file COPYING for copying permission. + +# XmlOutput message definitions +=100 +W1+sdataEntityReference++reference to internal SDATA entity %1 not allowed in XML +E1+externalDataEntityReference++reference to external data entity %1 not allowed in XML +W1+subdocEntityReference++reference to subdocument entity %1 not allowed in XML +W0+piQuestionLt++processing instruction containing "?>" not allowed in XML +W0+piNoName++XML requires processing instructions to start with a name +W1+externalDataNdata++external data entity %1 is CDATA or SDATA, but XML allows only NDATA +W1+notationAttributes++attributes were defined for notation %1; not allowed in XML +W1+cannotConvertFsiToUrl++cannot convert formal system identifier %1 to URL +W1+cannotOpenOutputFile++cannot open output file %1 +W1+missingSystemId++missing system ID for entity %1 +W1+unexpectedEntityType++unexpected entity type for entity named %1 +W1+cannotCreateDirectory++cannot create directory %1 +W1+tooManyOutputFiles++already wrote 99 versions of %1; will not overwrite +W1+alreadyWroteOutputFile++already wrote output file %1; will not overwrite +W1+removingLeadingSlashes++removing leading slashes from output filename %1 +W1+pathOutsideOutputDirectory++path %1 outside output directory + diff --git a/sx/XmlOutputMessages.rc b/sx/XmlOutputMessages.rc new file mode 100644 index 0000000..5e0053f --- /dev/null +++ b/sx/XmlOutputMessages.rc @@ -0,0 +1,19 @@ +STRINGTABLE +BEGIN + 100, "reference to internal SDATA entity %1 not allowed in XML" + 101, "reference to external data entity %1 not allowed in XML" + 102, "reference to subdocument entity %1 not allowed in XML" + 103, "processing instruction containing ""?>"" not allowed in XML" + 104, "XML requires processing instructions to start with a name" + 105, "external data entity %1 is CDATA or SDATA, but XML allows only NDATA" + 106, "attributes were defined for notation %1; not allowed in XML" + 107, "cannot convert formal system identifier %1 to URL" + 108, "cannot open output file %1" + 109, "missing system ID for entity %1" + 110, "unexpected entity type for entity named %1" + 111, "cannot create directory %1" + 112, "already wrote 99 versions of %1; will not overwrite" + 113, "already wrote output file %1; will not overwrite" + 114, "removing leading slashes from output filename %1" + 115, "path %1 outside output directory" +END diff --git a/sx/sx.cxx b/sx/sx.cxx new file mode 100644 index 0000000..26b5d6d --- /dev/null +++ b/sx/sx.cxx @@ -0,0 +1,165 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#include "config.h" +#include "sptchar.h" +#include "OutputCharStream.h" +#include "ParserApp.h" +#include "macros.h" +#include "XmlOutputEventHandler.h" +#include "SxMessages.h" + +#include + +#ifdef SP_NAMESPACE +using namespace SP_NAMESPACE; +#endif + +static +struct { + const ParserApp::AppChar *name; + PackedBoolean XmlOutputEventHandler::Options::*ptr; +} outputOptionsTable[] = { + { SP_T("nl-in-tag"), &XmlOutputEventHandler::Options::nlInTag }, + { SP_T("id"), &XmlOutputEventHandler::Options::id }, + { SP_T("notation"), &XmlOutputEventHandler::Options::notation }, + { SP_T("ndata"), &XmlOutputEventHandler::Options::ndata }, + { SP_T("cdata"), &XmlOutputEventHandler::Options::cdata }, + { SP_T("comment"), &XmlOutputEventHandler::Options::comment }, + { SP_T("lower"), &XmlOutputEventHandler::Options::lower }, + { SP_T("pi-escape"), &XmlOutputEventHandler::Options::piEscape }, + { SP_T("empty"), &XmlOutputEventHandler::Options::empty }, + { SP_T("attlist"), &XmlOutputEventHandler::Options::attlist }, + { SP_T("report-entities"), &XmlOutputEventHandler::Options::reportEnts }, + { SP_T("report-input-sources"), &XmlOutputEventHandler::Options::reportIS }, + { SP_T("expand-external"), &XmlOutputEventHandler::Options::expExt }, + { SP_T("expand-internal"), &XmlOutputEventHandler::Options::expInt }, + { SP_T("internal-decl"), &XmlOutputEventHandler::Options::intDecl }, + { SP_T("external-decl"), &XmlOutputEventHandler::Options::extDecl }, + { SP_T("sdata-as-pis"), &XmlOutputEventHandler::Options::sdataAsPi }, + { SP_T("preserve-case"), &XmlOutputEventHandler::Options::preserveCase }, + { SP_T("overwrite"), &XmlOutputEventHandler::Options::overwrite }, + { SP_T("write-outside-outdir"), &XmlOutputEventHandler::Options::writeOutsideOutDir }, +}; + +class SxApp : public ParserApp { +public: + SxApp(); + ErrorCountEventHandler *makeEventHandler(); + void processOption(AppChar opt, const AppChar *arg); + int processSysid(const StringC &); +private: + XmlOutputEventHandler::Options outputOptions_; + StringC encodingName_; + + // These could be StringCs, which would be a lot of work (getting + // the right encoding). It doesn't seem to me to be worth it, since + // these strings are coming in from the OS and only being used to make + // a file, so they should always be in the encoding that the OS + // expects. -jphekman + const char *outputDir_; + const char *dtdLoc_; +}; + +SP_DEFINE_APP(SxApp) + +SxApp::SxApp() +: ParserApp("unicode") +{ + outputCodingSystem_ = codingSystemKit_->makeCodingSystem("UTF-8", 0); + changeOptionRegistration('x', AppChar(255)); + registerOption('x', SP_T("xml-output-option"), SxMessages::option, + SxMessages::xHelp); + registerOption('d', SP_T("entity_output_location"), SxMessages::option, + SxMessages::xHelp); + registerOption('l', SP_T("dtd_location"), SxMessages::option, + SxMessages::xHelp); + registerInfo(SxMessages::info1); + registerInfo(SxMessages::info2); + registerInfo(SxMessages::info3); + outputOptions_.nlInTag = 1; + outputOptions_.intDecl = 1; + outputOptions_.extDecl = 1; + outputOptions_.expInt = 1; + outputOptions_.expExt = 1; + outputOptions_.overwrite = 1; + outputOptions_.writeOutsideOutDir = 1; + outputDir_ = NULL; + dtdLoc_ = NULL; +} + +int SxApp::processSysid(const StringC &sysid) +{ + if (outputOptions_.comment) + options_.eventsWanted.addCommentDecls(); + if (outputOptions_.notation) + options_.warnNotationSystemId = 1; + if (outputOptions_.cdata) + options_.eventsWanted.addMarkedSections(); + return ParserApp::processSysid(sysid); +} + +void SxApp::processOption(AppChar opt, const AppChar *arg) +{ + switch (opt) { + case AppChar(255): + ParserApp::processOption('x', arg); + break; + case 'x': + { + PackedBoolean value; + if (arg[0] == 'n' && arg[1] == 'o' && arg[2] == '-') { + value = 0; + arg += 3; + } + else + value = 1; + Boolean found = 0; + for (size_t i = 0; i < SIZEOF(outputOptionsTable); i++) { + if (tcscmp(outputOptionsTable[i].name, arg) == 0) { + found = 1; + outputOptions_.*(outputOptionsTable[i].ptr) = value; + break; + } + } + if (!found) + message(SxMessages::unknownOutputOption, StringMessageArg(convertInput(arg))); + break; + } + case 'b': + { + // Need to generate appropriate encoding declaration. + ParserApp::processOption(opt, arg); + if (outputCodingSystem_) + encodingName_ = convertInput(arg); + else + encodingName_.resize(0); + break; + } + case 'd': + { + outputDir_ = (const char *)arg; + break; + } + case 'l': + { + dtdLoc_ = (const char *)arg; + break; + } + default: + ParserApp::processOption(opt, arg); + break; + } +} + +ErrorCountEventHandler *SxApp::makeEventHandler() +{ + return new XmlOutputEventHandler(outputOptions_, + new RecordOutputCharStream(makeStdOut()), + encodingName_, + outputDir_, + dtdLoc_, + entityManager(), + systemCharset(), + this); +} diff --git a/sx/sx.dsp b/sx/sx.dsp new file mode 100644 index 0000000..c00c2c6 --- /dev/null +++ b/sx/sx.dsp @@ -0,0 +1,235 @@ +# Microsoft Developer Studio Project File - Name="sx" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=sx - Win32 Release +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "sx.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "sx.mak" CFG="sx - Win32 Release" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "sx - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "sx - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "sx - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir ".\Release" +# PROP BASE Intermediate_Dir ".\Release" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir ".\Release" +# PROP Intermediate_Dir ".\Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\include" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /YX /FD /c +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"..\bin\osx.exe" + +!ELSEIF "$(CFG)" == "sx - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir ".\Debug" +# PROP BASE Intermediate_Dir ".\Debug" +# PROP BASE Target_Dir "." +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir ".\Debug" +# PROP Intermediate_Dir ".\Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "." +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\include" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D SP_NAMESPACE=OpenSP /D "SP_MULTI_BYTE" /YX /FD /c +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\dbgbin\osx.exe" + +!ENDIF + +# Begin Target + +# Name "sx - Win32 Release" +# Name "sx - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat;for;f90" +# Begin Source File + +SOURCE=.\sx.cxx +# End Source File +# Begin Source File + +SOURCE=.\sx_inst.cxx +# End Source File +# Begin Source File + +SOURCE=.\sx_inst.m4 + +!IF "$(CFG)" == "sx - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\sx_inst.m4 +InputName=sx_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ELSEIF "$(CFG)" == "sx - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\sx_inst.m4 +InputName=sx_inst + +"$(InputDir)\$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + del /f $(InputDir)\$(InputName).cxx + perl ..\instmac.pl $(InputPath) >$(InputDir)\$(InputName).cxx + attrib +r $(InputDir)\$(InputName).cxx + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\SxMessages.msg + +!IF "$(CFG)" == "sx - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\SxMessages.msg +InputName=SxMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "sx - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\SxMessages.msg +InputName=SxMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\XmlOutputEventHandler.cxx +# End Source File +# Begin Source File + +SOURCE=.\XmlOutputMessages.msg + +!IF "$(CFG)" == "sx - Win32 Release" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\XmlOutputMessages.msg +InputName=XmlOutputMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "sx - Win32 Debug" + +# Begin Custom Build - Processing $(InputPath) +InputDir=. +InputPath=.\XmlOutputMessages.msg +InputName=XmlOutputMessages + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + perl -w ..\msggen.pl -l appModule $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd" +# Begin Source File + +SOURCE=.\SxMessages.h +# End Source File +# Begin Source File + +SOURCE=.\XmlOutputEventHandler.h +# End Source File +# Begin Source File + +SOURCE=.\XmlOutputMessages.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# Begin Source File + +SOURCE=.\sx.rc +# End Source File +# Begin Source File + +SOURCE=.\SxMessages.rc +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=.\XmlOutputMessages.rc +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 +# End Source File +# End Group +# End Target +# End Project diff --git a/sx/sx.rc b/sx/sx.rc new file mode 100644 index 0000000..b0bb471 --- /dev/null +++ b/sx/sx.rc @@ -0,0 +1,5 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#include "XmlOutputMessages.rc" +#include "SxMessages.rc" diff --git a/sx/sx_inst.cxx b/sx/sx_inst.cxx new file mode 100644 index 0000000..232d357 --- /dev/null +++ b/sx/sx_inst.cxx @@ -0,0 +1,44 @@ +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + + +#ifdef SP_NAMESPACE +} +#endif +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#include "config.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "Owner.h" +#undef SP_DEFINE_TEMPLATES + +#include "InputSource.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#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_0; +#endif +#endif +#endif + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/sx/sx_inst.m4 b/sx/sx_inst.m4 new file mode 100644 index 0000000..852384e --- /dev/null +++ b/sx/sx_inst.m4 @@ -0,0 +1,24 @@ +// Copyright (c) 1997 James Clark +// See the file COPYING for copying permission. + +#include "config.h" + +#ifdef SP_MANUAL_INST + +#define SP_DEFINE_TEMPLATES +#include "Owner.h" +#undef SP_DEFINE_TEMPLATES + +#include "InputSource.h" + +#ifdef SP_NAMESPACE +namespace SP_NAMESPACE { +#endif + +__instantiate(Owner) + +#ifdef SP_NAMESPACE +} +#endif + +#endif /* SP_MANUAL_INST */ diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..2ea8cb1 --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,44 @@ +## Makefile for the tests subdirectory of OpenSP +## Copyright (C) 2002, 2005 OpenSP Project +## Process this file with automake to produce Makefile.in. + +# AUTOMAKE_OPTIONS = 1.7 no-dependencies + +# A dist should include all tests, but not all tests should always run. +# Disabling DTDDECL should turn that test off, and setting SHOWSTOPPERS to a +# blank value should prevent those tests from running and allow a make check +# to complete with a zero exit code. + +TESTS_THAT_PASS = onsgmls-1 onsgmls-2 \ +osnorm-1 \ +af-1 af-2 af-3 af-4 af-5 af-6 af-12 af-13 af-14 af-15 af-16 \ +af-18 af-19 + +# These tests currently fail, but should not. The problems need to be tracked +# down and fixed, then the tests moved to TESTS_THAT_PASS. +TESTS_THAT_FAIL = catalog-2 \ +af-7 af-8 af-9 af-10 af-11 + +SHOWSTOPPERS = $(TESTS_THAT_FAIL) + +DTDDECL_TEST = catalog-1 + +TESTS = $(TESTS_THAT_PASS) $(SHOWSTOPPERS) + +if DTDDECL +TESTS += $(DTDDECL_TEST) +endif + +EXTRA_DIST = $(TESTS_THAT_PASS) $(TESTS_THAT_FAIL) $(DTDDECL_TEST) + + +TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) \ + PATH=.:../nsgmls:../sgmlnorm:../sx:../spent:../spcat:../spam:$$PATH \ + ONSGMLS=`echo onsgmls|sed '$(transform)'`\ + OSGMLNORM=`echo osgmlnorm|sed '$(transform)'`\ + $(SHELL) + +# Two auxiliary programs used by the tests. +INCLUDES = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/intl +DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ + diff --git a/tests/Makefile.in b/tests/Makefile.in new file mode 100644 index 0000000..19b6648 --- /dev/null +++ b/tests/Makefile.in @@ -0,0 +1,475 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# AUTOMAKE_OPTIONS = 1.7 no-dependencies + +# A dist should include all tests, but not all tests should always run. +# Disabling DTDDECL should turn that test off, and setting SHOWSTOPPERS to a +# blank value should prevent those tests from running and allow a make check +# to complete with a zero exit code. +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@DTDDECL_TRUE@am__append_1 = $(DTDDECL_TEST) +subdir = tests +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +TESTS_THAT_PASS = onsgmls-1 onsgmls-2 \ +osnorm-1 \ +af-1 af-2 af-3 af-4 af-5 af-6 af-12 af-13 af-14 af-15 af-16 \ +af-18 af-19 + + +# These tests currently fail, but should not. The problems need to be tracked +# down and fixed, then the tests moved to TESTS_THAT_PASS. +TESTS_THAT_FAIL = catalog-2 \ +af-7 af-8 af-9 af-10 af-11 + +SHOWSTOPPERS = $(TESTS_THAT_FAIL) +DTDDECL_TEST = catalog-1 +TESTS = $(TESTS_THAT_PASS) $(SHOWSTOPPERS) $(am__append_1) +EXTRA_DIST = $(TESTS_THAT_PASS) $(TESTS_THAT_FAIL) $(DTDDECL_TEST) +TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) \ + PATH=.:../nsgmls:../sgmlnorm:../sx:../spent:../spcat:../spam:$$PATH \ + ONSGMLS=`echo onsgmls|sed '$(transform)'`\ + OSGMLNORM=`echo osgmlnorm|sed '$(transform)'`\ + $(SHELL) + + +# Two auxiliary programs used by the tests. +INCLUDES = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/intl +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu tests/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +check-TESTS: $(TESTS) + @failed=0; all=0; xfail=0; xpass=0; skip=0; \ + srcdir=$(srcdir); export srcdir; \ + list='$(TESTS)'; \ + if test -n "$$list"; then \ + for tst in $$list; do \ + if test -f ./$$tst; then dir=./; \ + elif test -f $$tst; then dir=; \ + else dir="$(srcdir)/"; fi; \ + if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *" $$tst "*) \ + xpass=`expr $$xpass + 1`; \ + failed=`expr $$failed + 1`; \ + echo "XPASS: $$tst"; \ + ;; \ + *) \ + echo "PASS: $$tst"; \ + ;; \ + esac; \ + elif test $$? -ne 77; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *" $$tst "*) \ + xfail=`expr $$xfail + 1`; \ + echo "XFAIL: $$tst"; \ + ;; \ + *) \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ + ;; \ + esac; \ + else \ + skip=`expr $$skip + 1`; \ + echo "SKIP: $$tst"; \ + fi; \ + done; \ + if test "$$failed" -eq 0; then \ + if test "$$xfail" -eq 0; then \ + banner="All $$all tests passed"; \ + else \ + banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ + fi; \ + else \ + if test "$$xpass" -eq 0; then \ + banner="$$failed of $$all tests failed"; \ + else \ + banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ + fi; \ + fi; \ + dashes="$$banner"; \ + skipped=""; \ + if test "$$skip" -ne 0; then \ + skipped="($$skip tests were not run)"; \ + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$skipped"; \ + fi; \ + report=""; \ + if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ + report="Please report to $(PACKAGE_BUGREPORT)"; \ + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$report"; \ + fi; \ + dashes=`echo "$$dashes" | sed s/./=/g`; \ + echo "$$dashes"; \ + echo "$$banner"; \ + test -z "$$skipped" || echo "$$skipped"; \ + test -z "$$report" || echo "$$report"; \ + echo "$$dashes"; \ + test "$$failed" -eq 0; \ + else :; fi + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-TESTS +check: check-am +all-am: Makefile +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-libtool + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am + +.PHONY: all all-am check check-TESTS check-am clean clean-generic \ + clean-libtool distclean distclean-generic distclean-libtool \ + distdir dvi dvi-am html html-am info info-am install \ + install-am install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + uninstall uninstall-am uninstall-info-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tests/af-1 b/tests/af-1 new file mode 100755 index 0000000..75c9905 --- /dev/null +++ b/tests/af-1 @@ -0,0 +1,97 @@ +#!/bin/sh +# simple Architectural Form test +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-1.sgml af-1.dtd af-meta-1.dtd" +cat <af-1.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-1.dtd + + + + + + + + + + + + + +EOF + +cat <af-meta-1.dtd + + + + +EOF + +tmpfiles="$tmpfiles af-1-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-1-onsgmls.out -A open af-1.sgml + +tmpfiles="$tmpfiles af-1-onsgmls.ok" +cat <af-1-onsgmls.ok +(OPEN +(STANZA +AN CDATA 1 +(VERSE +-verse 1 +)VERSE +AN CDATA 2 +(VERSE +-verse 2 +)VERSE +)STANZA +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-1-onsgmls.ok af-1-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-1-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-1-norm.out -A open af-1.sgml +tmpfiles="$tmpfiles af-1-norm.ok" +cat <af-1-norm.ok + + +verse 1 +verse 2 + + +EOF + +${DIFF} af-1-norm.ok af-1-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-10 b/tests/af-10 new file mode 100755 index 0000000..70e70e5 --- /dev/null +++ b/tests/af-10 @@ -0,0 +1,104 @@ +#!/bin/sh +# Architectural Form: test ArcNamrA: +# Deriving attribute values from content; data from element "v" goes +# to attribute "text" of "verse", and delete it as element content +# makes onsgmls segfault; nsgmls.jc accepts this input: +# ONSGMLS=nsgmls.jc OSGMLNORM=sgmlnorm.jc ./af-10 +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-10.sgml af-10.dtd af-meta-10.dtd" +cat <af-10.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-10.dtd + + + + + + + + + + + + + +EOF + +cat <af-meta-10.dtd + + + + +EOF + +tmpfiles="$tmpfiles af-10-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-10-onsgmls.out -A open af-10.sgml +tmpfiles="$tmpfiles af-10-onsgmls.ok" +cat <af-10-onsgmls.ok +(OPEN +(STANZA +AN CDATA 1 +ATEXT CDATA verse 1 +(VERSE +)VERSE +AN CDATA 2 +ATEXT CDATA verse 2 +(VERSE +)VERSE +)STANZA +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-10-onsgmls.ok af-10-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-10-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-10-norm.out -A open af-10.sgml +tmpfiles="$tmpfiles af-10-norm.ok" + +cat <af-10-norm.ok + + + + + + +EOF + +${DIFF} af-10-norm.ok af-10-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-11 b/tests/af-11 new file mode 100755 index 0000000..fa399a1 --- /dev/null +++ b/tests/af-11 @@ -0,0 +1,106 @@ +#!/bin/sh +# Architectural Form: test ArcNamrA: +# Deriving content from attribute values; derive value of attribute "n" +# as content. Additionally, data from element "v" goes +# to attribute "text" of "verse". +# This makes onsgmls segfault; nsgmls.jc accepts this input: +# ONSGMLS=nsgmls.jc OSGMLNORM=sgmlnorm.jc ./af-11 +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-11.sgml af-11.dtd af-meta-11.dtd" +cat <af-11.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-11.dtd + + + + + + + + + + + + + +EOF + +cat <af-meta-11.dtd + + + + +EOF + +tmpfiles="$tmpfiles af-11-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-11-onsgmls.out -A open af-11.sgml +tmpfiles="$tmpfiles af-11-onsgmls.ok" +cat <af-11-onsgmls.ok +(OPEN +(STANZA +ATEXT CDATA verse 1 +(VERSE +-1 +)VERSE +ATEXT CDATA verse 2 +(VERSE +-2 +)VERSE +)STANZA +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-11-onsgmls.ok af-11-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-11-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-11-norm.out -A open af-11.sgml +tmpfiles="$tmpfiles af-11-norm.ok" + +cat <af-11-norm.ok + + +1 +2 + + +EOF + +${DIFF} af-11-norm.ok af-11-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-12 b/tests/af-12 new file mode 100755 index 0000000..a0a62a6 --- /dev/null +++ b/tests/af-12 @@ -0,0 +1,120 @@ +#!/bin/sh +# Architectural Form: test ArcBridA: +# Resolving IDREFs (series: af-12 - af-15) +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-12.sgml af-12.dtd af-meta-12.dtd" +cat <af-12.sgml + + + + verse 1 + verse 2 + + + note on verse 2 + + +EOF +cat <af-12.dtd + + + + + + + + + + + + + + + + + +EOF + +cat <af-meta-12.dtd + + + + + + + +EOF + +tmpfiles="$tmpfiles af-12-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-12-onsgmls.out -A open af-12.sgml +tmpfiles="$tmpfiles af-12-onsgmls.ok" +cat <af-12-onsgmls.ok +(OPEN +(STANZA +AN CDATA N1 +(VERSE +-verse 1 +)VERSE +AN CDATA N2 +(VERSE +-verse 2 +)VERSE +)STANZA +(NOTES +AR CDATA N2 +(I +-note on verse 2 +)I +)NOTES +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-12-onsgmls.ok af-12-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-12-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-12-norm.out -A open af-12.sgml +tmpfiles="$tmpfiles af-12-norm.ok" + +cat <af-12-norm.ok + + +verse 1 +verse 2 + + +note on verse 2 + + +EOF + +${DIFF} af-12-norm.ok af-12-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-13 b/tests/af-13 new file mode 100755 index 0000000..607c45a --- /dev/null +++ b/tests/af-13 @@ -0,0 +1,120 @@ +#!/bin/sh +# Architectural Form: test ArcBridA: +# Resolving IDREFs (series: af-12 - af-15) +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-13.sgml af-13.dtd af-meta-13.dtd" +cat <af-13.sgml + + + + verse 1 + verse 2 + + + note on verse 2 + + +EOF +cat <af-13.dtd + + + + + + + + + + + + + + + + + +EOF + +cat <af-meta-13.dtd + + + + + + + +EOF + +tmpfiles="$tmpfiles af-13-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-13-onsgmls.out -A open af-13.sgml +tmpfiles="$tmpfiles af-13-onsgmls.ok" +cat <af-13-onsgmls.ok +(OPEN +(STANZA +AN TOKEN N1 +(VERSE +-verse 1 +)VERSE +AN TOKEN N2 +(VERSE +-verse 2 +)VERSE +)STANZA +(NOTES +AR TOKEN N2 +(I +-note on verse 2 +)I +)NOTES +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-13-onsgmls.ok af-13-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-13-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-13-norm.out -A open af-13.sgml +tmpfiles="$tmpfiles af-13-norm.ok" + +cat <af-13-norm.ok + + +verse 1 +verse 2 + + +note on verse 2 + + +EOF + +${DIFF} af-13-norm.ok af-13-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-14 b/tests/af-14 new file mode 100755 index 0000000..56724c5 --- /dev/null +++ b/tests/af-14 @@ -0,0 +1,100 @@ +#!/bin/sh +# Architectural Form: test ArcBridA: +# Resolving IDREFs (series: af-12 - af-15) +# Now throw away "stanza" part, mapping IDREFs to CDATA, no bridge required +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-14.sgml af-14.dtd af-meta-14.dtd" +cat <af-14.sgml + + + + verse 1 + verse 2 + + + note on verse 2 + + +EOF +cat <af-14.dtd + + + + + + + + + + + + + + + + +EOF + +cat <af-meta-14.dtd + + + + +EOF + +tmpfiles="$tmpfiles af-14-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-14-onsgmls.out -A open af-14.sgml +tmpfiles="$tmpfiles af-14-onsgmls.ok" +cat <af-14-onsgmls.ok +(OPEN +(NOTES +AR CDATA N2 +(I +-note on verse 2 +)I +)NOTES +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-14-onsgmls.ok af-14-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-14-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-14-norm.out -A open af-14.sgml +tmpfiles="$tmpfiles af-14-norm.ok" + +cat <af-14-norm.ok + + +note on verse 2 + + +EOF + +${DIFF} af-14-norm.ok af-14-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-15 b/tests/af-15 new file mode 100755 index 0000000..b62b5ba --- /dev/null +++ b/tests/af-15 @@ -0,0 +1,114 @@ +#!/bin/sh +# Architectural Form: test ArcBridF: +# Resolving IDREFs +# Throw away "stanza" part, keep IDREF as IDREF, bridge required +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-15.sgml af-15.dtd af-meta-15.dtd" +cat <af-15.sgml + + + + verse 1 + verse 2 + + + note on verse 2 + + +EOF +cat <af-15.dtd + + + + + + + + + + + + + + + + +EOF + +cat <af-meta-15.dtd + + + + + + +EOF + +tmpfiles="$tmpfiles af-15-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-15-onsgmls.out -A open af-15.sgml +tmpfiles="$tmpfiles af-15-onsgmls.ok" +cat <af-15-onsgmls.ok +(OPEN +AN TOKEN N1 +(BRIDGE +-verse 1 +)BRIDGE +AN TOKEN N2 +(BRIDGE +-verse 2 +)BRIDGE +(NOTES +AR TOKEN N2 +(I +-note on verse 2 +)I +)NOTES +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-15-onsgmls.ok af-15-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-15-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-15-norm.out -A open af-15.sgml +tmpfiles="$tmpfiles af-15-norm.ok" + +cat <af-15-norm.ok + +verse 1 +verse 2 + +note on verse 2 + + +EOF + +${DIFF} af-15-norm.ok af-15-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-16 b/tests/af-16 new file mode 100755 index 0000000..f54f5f8 --- /dev/null +++ b/tests/af-16 @@ -0,0 +1,117 @@ +#!/bin/sh +# Architectural Form test: Apply two architecures (-A open -A oj) +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-16.sgml af-16.dtd af-meta-16.dtd" +cat <af-16.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-16.dtd + + + + + + + + + + + + + +EOF + +cat <af-meta-16.dtd + + + + + + + + + + + + +EOF +tmpfiles="$tmpfiles af-16-ojmeta.dtd" +cat <af-16-ojmeta.dtd + + + + +EOF +tmpfiles="$tmpfiles af-16-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-16-onsgmls.out -A open -A oj af-16.sgml + +tmpfiles="$tmpfiles af-16-onsgmls.ok" +cat <af-16-onsgmls.ok +(OJ +(S +AN CDATA 1 +(V +-verse 1 +)V +AN CDATA 2 +(V +-verse 2 +)V +)S +)OJ +C +EOF + +: ${DIFF=diff} +${DIFF} af-16-onsgmls.ok af-16-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-16-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-16-norm.out -A open -A oj af-16.sgml +tmpfiles="$tmpfiles af-16-norm.ok" +cat <af-16-norm.ok + + +verse 1 +verse 2 + + +EOF + +${DIFF} af-16-norm.ok af-16-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-18 b/tests/af-18 new file mode 100755 index 0000000..7dd2b9c --- /dev/null +++ b/tests/af-18 @@ -0,0 +1,106 @@ +#!/bin/sh +# Architectural Form: test ArcOptSA's default ArcOpt (A.3.4.2) +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-18.sgml af-18.dtd af-meta-18.dtd" +cat <af-18.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-18.dtd + + + + + + + + + + + + + + +EOF + +cat <af-meta-18.dtd + + + +]]> + + + + +EOF + +tmpfiles="$tmpfiles af-18-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-18-onsgmls.out -A open af-18.sgml + +tmpfiles="$tmpfiles af-18-onsgmls.ok" +cat <af-18-onsgmls.ok +(OPEN +(STANZA +AN CDATA 1 +(VERSE +-verse 1 +)VERSE +AN CDATA 2 +(VERSE +-verse 2 +)VERSE +)STANZA +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-18-onsgmls.ok af-18-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-18-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-18-norm.out -A open af-18.sgml +tmpfiles="$tmpfiles af-18-norm.ok" +cat <af-18-norm.ok + + +verse 1 +verse 2 + + +EOF + +${DIFF} af-18-norm.ok af-18-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-19 b/tests/af-19 new file mode 100755 index 0000000..8b88a12 --- /dev/null +++ b/tests/af-19 @@ -0,0 +1,108 @@ +#!/bin/sh +# Architectural Form: test ArcOptSA (A.3.4.2) +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-19.sgml af-19.dtd af-meta-19.dtd" +cat <af-19.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-19.dtd + + + + + + + + + + + + + + +EOF + +cat <af-meta-19.dtd + + + +]]> + + + + +EOF + +tmpfiles="$tmpfiles af-19-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-19-onsgmls.out -A open af-19.sgml + +tmpfiles="$tmpfiles af-19-onsgmls.ok" +cat <af-19-onsgmls.ok +(OPEN +(STANZA +AN CDATA 1 +(VERSE +-verse 1 +)VERSE +AN CDATA 2 +(VERSE +-verse 2 +)VERSE +)STANZA +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-19-onsgmls.ok af-19-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-19-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-19-norm.out -A open af-19.sgml +tmpfiles="$tmpfiles af-19-norm.ok" +cat <af-19-norm.ok + + +verse 1 +verse 2 + + +EOF + +${DIFF} af-19-norm.ok af-19-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-2 b/tests/af-2 new file mode 100755 index 0000000..3efddf6 --- /dev/null +++ b/tests/af-2 @@ -0,0 +1,98 @@ +#!/bin/sh +# Architectural Form: test ArcDocF +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-2.sgml af-2.dtd af-meta-2.dtd" +cat <af-2.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-2.dtd + + + + + + + + + + + + + +EOF + +cat <af-meta-2.dtd + + + + +EOF + +tmpfiles="$tmpfiles af-2-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-2-onsgmls.out -A open af-2.sgml + +tmpfiles="$tmpfiles af-2-onsgmls.ok" +cat <af-2-onsgmls.ok +(DOC +(STANZA +AN CDATA 1 +(VERSE +-verse 1 +)VERSE +AN CDATA 2 +(VERSE +-verse 2 +)VERSE +)STANZA +)DOC +C +EOF + +: ${DIFF=diff} +${DIFF} af-2-onsgmls.ok af-2-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-2-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-2-norm.out -A open af-2.sgml +tmpfiles="$tmpfiles af-2-norm.ok" +cat <af-2-norm.ok + + +verse 1 +verse 2 + + +EOF + +${DIFF} af-2-norm.ok af-2-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-3 b/tests/af-3 new file mode 100755 index 0000000..336b5db --- /dev/null +++ b/tests/af-3 @@ -0,0 +1,98 @@ +#!/bin/sh +# Architectural Form: test ArcFormA +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-3.sgml af-3.dtd af-meta-3.dtd" +cat <af-3.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-3.dtd + + + + + + + + + + + + + +EOF + +cat <af-meta-3.dtd + + + + +EOF + +tmpfiles="$tmpfiles af-3-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-3-onsgmls.out -A open af-3.sgml + +tmpfiles="$tmpfiles af-3-onsgmls.ok" +cat <af-3-onsgmls.ok +(OPEN +(STANZA +AN CDATA 1 +(VERSE +-verse 1 +)VERSE +AN CDATA 2 +(VERSE +-verse 2 +)VERSE +)STANZA +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-3-onsgmls.ok af-3-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-3-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-3-norm.out -A open af-3.sgml +tmpfiles="$tmpfiles af-3-norm.ok" +cat <af-3-norm.ok + + +verse 1 +verse 2 + + +EOF + +${DIFF} af-3-norm.ok af-3-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-4 b/tests/af-4 new file mode 100755 index 0000000..e0dccc6 --- /dev/null +++ b/tests/af-4 @@ -0,0 +1,101 @@ +#!/bin/sh +# Architectural Form: test ArcNamrA: +# change attribute name "n" to "v" +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-4.sgml af-4.dtd af-meta-4.dtd" +cat <af-4.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-4.dtd + + + + + + + + + + + + + +EOF + +cat <af-meta-4.dtd + + + + +EOF + +tmpfiles="$tmpfiles af-4-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-4-onsgmls.out -A open af-4.sgml + +tmpfiles="$tmpfiles af-4-onsgmls.ok" +cat <af-4-onsgmls.ok +(OPEN +(STANZA +AV CDATA 1 +(VERSE +-verse 1 +)VERSE +AV CDATA 2 +(VERSE +-verse 2 +)VERSE +)STANZA +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-4-onsgmls.ok af-4-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-4-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-4-norm.out -A open af-4.sgml +tmpfiles="$tmpfiles af-4-norm.ok" + +cat <af-4-norm.ok + + +verse 1 +verse 2 + + +EOF + +${DIFF} af-4-norm.ok af-4-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-5 b/tests/af-5 new file mode 100755 index 0000000..25252fd --- /dev/null +++ b/tests/af-5 @@ -0,0 +1,90 @@ +#!/bin/sh +# Architectural Form: test ArcSupr: +# suppress element "v", but keep CDATA of this element +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-5.sgml af-5.dtd af-meta-5.dtd" +cat <af-5.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-5.dtd + + + + + + + + + + + + + +EOF + +cat <af-meta-5.dtd + + + + + +EOF + +tmpfiles="$tmpfiles af-5-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-5-onsgmls.out -A open af-5.sgml +tmpfiles="$tmpfiles af-5-onsgmls.ok" +cat <af-5-onsgmls.ok +(OPEN +(STANZA +-verse 1verse 2 +)STANZA +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-5-onsgmls.ok af-5-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-5-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-5-norm.out -A open af-5.sgml +tmpfiles="$tmpfiles af-5-norm.ok" + +cat <af-5-norm.ok + +verse 1verse 2 + +EOF + +${DIFF} af-5-norm.ok af-5-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-6 b/tests/af-6 new file mode 100755 index 0000000..6a2552c --- /dev/null +++ b/tests/af-6 @@ -0,0 +1,98 @@ +#!/bin/sh +# Architectural Form: test ArcIgnDA: +# keep element "v" as "verse", but but ignore CDATA of this element +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-6.sgml af-6.dtd af-meta-6.dtd" +cat <af-6.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-6.dtd + + + + + + + + + + + + + +EOF + +cat <af-meta-6.dtd + + + + +EOF + +tmpfiles="$tmpfiles af-6-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-6-onsgmls.out -A open af-6.sgml +tmpfiles="$tmpfiles af-6-onsgmls.ok" +cat <af-6-onsgmls.ok +(OPEN +(STANZA +AN CDATA 1 +(VERSE +)VERSE +AN CDATA 2 +(VERSE +)VERSE +)STANZA +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-6-onsgmls.ok af-6-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-6-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-6-norm.out -A open af-6.sgml +tmpfiles="$tmpfiles af-6-norm.ok" + +cat <af-6-norm.ok + + + + + + +EOF + +${DIFF} af-6-norm.ok af-6-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-7 b/tests/af-7 new file mode 100755 index 0000000..3f10b4f --- /dev/null +++ b/tests/af-7 @@ -0,0 +1,108 @@ +#!/bin/sh +# Architectural Form: test ArcNamrA: +# Rename attribute "role" to "type" and its value "a" to "yyy" +# #MAPTOKEN is supported since 1.5pre4 according to NEWS +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-7.sgml af-7.dtd af-meta-7.dtd" +cat <af-7.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-7.dtd + + + + + + + + + + + + + +EOF + +cat <af-meta-7.dtd + + + + + +EOF + +tmpfiles="$tmpfiles af-7-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-7-onsgmls.out -A open af-7.sgml +tmpfiles="$tmpfiles af-7-onsgmls.ok" +cat <af-7-onsgmls.ok +(OPEN +ATYPE TOKEN YYY +(STANZA +AV CDATA 1 +(VERSE +-verse 1 +)VERSE +AV CDATA 2 +(VERSE +-verse 2 +)VERSE +)STANZA +)OPEN +EOF + +: ${DIFF=diff} +${DIFF} af-7-onsgmls.ok af-7-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-7-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-7-norm.out -A open af-7.sgml +tmpfiles="$tmpfiles af-7-norm.ok" + +cat <af-7-norm.ok + + +verse 1 +verse 2 + + +EOF + +${DIFF} af-7-norm.ok af-7-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-8 b/tests/af-8 new file mode 100755 index 0000000..950b7f2 --- /dev/null +++ b/tests/af-8 @@ -0,0 +1,108 @@ +#!/bin/sh +# Architectural Form: test ArcNamrA: +# Keep attribute "role" as "role", but rename its value "a" to "yyy" +# #MAPTOKEN is supported since 1.5pre4 according to NEWS +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-8.sgml af-8.dtd af-meta-8.dtd" +cat <af-8.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-8.dtd + + + + + + + + + + + + + +EOF + +cat <af-meta-8.dtd + + + + + +EOF + +tmpfiles="$tmpfiles af-8-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-8-onsgmls.out -A open af-8.sgml +tmpfiles="$tmpfiles af-8-onsgmls.ok" +cat <af-8-onsgmls.ok +(OPEN +AROLE TOKEN YYY +(STANZA +AV CDATA 1 +(VERSE +-verse 1 +)VERSE +AV CDATA 2 +(VERSE +-verse 2 +)VERSE +)STANZA +)OPEN +EOF + +: ${DIFF=diff} +${DIFF} af-8-onsgmls.ok af-8-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-8-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-8-norm.out -A open af-8.sgml +tmpfiles="$tmpfiles af-8-norm.ok" + +cat <af-8-norm.ok + + +verse 1 +verse 2 + + +EOF + +${DIFF} af-8-norm.ok af-8-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/af-9 b/tests/af-9 new file mode 100755 index 0000000..d55a2f0 --- /dev/null +++ b/tests/af-9 @@ -0,0 +1,103 @@ +#!/bin/sh +# Architectural Form: test ArcNamrA: +# Deriving attribute values from content; data from element "v" goes +# to attribute "n" of "verse", but also keep it as element content +# makes onsgmls segfault; nsgmls.jc accepts this input: +# ONSGMLS=nsgmls.jc OSGMLNORM=sgmlnorm.jc ./af-9 +# test onsgmls and osgmlnorm + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles af-9.sgml af-9.dtd af-meta-9.dtd" +cat <af-9.sgml + + + + verse 1 + verse 2 + + +EOF +cat <af-9.dtd + + + + + + + + + + + + + +EOF + +cat <af-meta-9.dtd + + + + +EOF + +tmpfiles="$tmpfiles af-9-onsgmls.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >af-9-onsgmls.out -A open af-9.sgml +tmpfiles="$tmpfiles af-9-onsgmls.ok" +cat <af-9-onsgmls.ok +(OPEN +(STANZA +AN CDATA verse 1 +(VERSE +-verse 1 +)VERSE +AN CDATA verse 2 +(VERSE +-verse 2 +)VERSE +)STANZA +)OPEN +C +EOF + +: ${DIFF=diff} +${DIFF} af-9-onsgmls.ok af-9-onsgmls.out +result=$? +test $result = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles af-9-norm.out" +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >af-9-norm.out -A open af-9.sgml +tmpfiles="$tmpfiles af-9-norm.ok" + +cat <af-9-norm.ok + + +verse 1 +verse 2 + + +EOF + +${DIFF} af-9-norm.ok af-9-norm.out +result=$? +test $result = 0 || result=$(($result + 1)) + +rm -fr $tmpfiles + +exit $result diff --git a/tests/catalog-1 b/tests/catalog-1 new file mode 100755 index 0000000..f9f8f83 --- /dev/null +++ b/tests/catalog-1 @@ -0,0 +1,54 @@ +#!/bin/sh +# Open SGML Catalog: test DTDDECL + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles cat-test1.in1 cat-test1.cat" +cat <cat-test1.in1 + +]> + +EOF +cat <cat-test1.cat +PUBLIC "-//xxx//DTD yyy//EN" "/dev/null" +EOF + +: ${top_srcdir=..} +: ${ONSGMLS=onsgmls} +${ONSGMLS} -s -c cat-test1.cat cat-test1.in1 +test $? = 0 || { rm -fr $tmpfiles; exit 1; } +${ONSGMLS} -s -c cat-test1.cat ${top_srcdir}/pubtext/html.dcl cat-test1.in1 +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles cat-test2.cat" +cat <cat-test2.cat +SGMLDECL "${top_srcdir}/pubtext/xml.dcl" +DTDDECL "-//xxx//DTD yyy//EN" "${top_srcdir}/pubtext/html.dcl" +PUBLIC "-//xxx//DTD yyy//EN" "/dev/null" +EOF +${ONSGMLS} -s -c cat-test2.cat cat-test1.in1 +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +# Must fail since onsgmls will use the xml.dcl through SGMLDECL and xml.dcl does +# not allow minimization (end tag omission). +tmpfiles="$tmpfiles cat-test3.cat" +cat <cat-test3.cat +SGMLDECL "${top_srcdir}/pubtext/xml.dcl" +DTDDECL "-//xxx//DTD zzz" "${top_srcdir}/pubtext/html.dcl" +PUBLIC "-//xxx//DTD yyy//EN" "/dev/null" +EOF +${ONSGMLS} -s -E 1 -c cat-test3.cat cat-test1.in1 >/dev/null 2>&1 +if [ "$?" -gt 0 ]; then + result=0 +else + result=1 +fi + +rm -fr $tmpfiles + +exit $result diff --git a/tests/catalog-2 b/tests/catalog-2 new file mode 100755 index 0000000..a7159df --- /dev/null +++ b/tests/catalog-2 @@ -0,0 +1,37 @@ +#!/bin/sh +# Open SGML Catalog: test BASE + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles cat-test2.in1 cat-2 cat-test2.cat" +cat <cat-test2.in1 + + +EOF + +mkdir -p cat-2 +cat <cat-2/cat-test2.dtd + + +EOF + +# osgmls complains: +# error reading "./cat-2/" (Is a directory) +cat <cat-test2.cat +BASE "./cat-2/" +SYSTEM "cat-test2.dtd" "cat-test2.dtd" +EOF + +: ${top_srcdir=..} +: ${ONSGMLS=onsgmls} +${ONSGMLS} -s -c cat-test2.cat cat-test2.in1 +result=$? + +rm -fr $tmpfiles + +exit $result diff --git a/tests/onsgmls-1 b/tests/onsgmls-1 new file mode 100755 index 0000000..2a7d606 --- /dev/null +++ b/tests/onsgmls-1 @@ -0,0 +1,38 @@ +#!/bin/sh +# basic onsgmls test + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles onsgmls-1.sgml" +cat <onsgmls-1.sgml + + +]> + +EOF +tmpfiles="$tmpfiles onsgmls-1.out" + +: ${ONSGMLS=onsgmls} +${ONSGMLS} >onsgmls-1.out onsgmls-1.sgml + +tmpfiles="$tmpfiles onsgmls-1.ok" +cat <onsgmls-1.ok +AN CDATA 1 +(DOC +)DOC +C +EOF + +: ${DIFF=diff} +${DIFF} onsgmls-1.ok onsgmls-1.out +result=$? + +rm -fr $tmpfiles + +exit $result diff --git a/tests/onsgmls-2 b/tests/onsgmls-2 new file mode 100755 index 0000000..2da327f --- /dev/null +++ b/tests/onsgmls-2 @@ -0,0 +1,48 @@ +#!/bin/sh +# onsgmls: test --restricted and --directory= + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles onsgmls-2.sgml" +cat <onsgmls-2.sgml + + +]> + +EOF +tmpfiles="$tmpfiles onsgmls-2-dir onsgmls-2.out" + +: ${ONSGMLS=onsgmls} +mkdir onsgmls-2-dir || { echo "cannot create onsgmls-2-dir"; exit 1; } +touch onsgmls-2-dir/o2.cat +echo onsgmls-2a >onsgmls-2.out +cat onsgmls-2.sgml | ${ONSGMLS} -c onsgmls-2-dir/o2.cat 2>>onsgmls-2.out \ + 1>/dev/null +echo onsgmls-2b >>onsgmls-2.out +cat onsgmls-2.sgml | ${ONSGMLS} --restricted -c onsgmls-2-dir/o2.cat \ + 2>&1 1>/dev/null | sed 's/.*onsgmls://' >>onsgmls-2.out +echo onsgmls-2c >>onsgmls-2.out +cat onsgmls-2.sgml | ${ONSGMLS} --restricted --directory=onsgmls-2-dir \ + -c onsgmls-2-dir/o2.cat 2>>onsgmls-2.out 1>/dev/null + +tmpfiles="$tmpfiles onsgmls-2.ok" +cat <onsgmls-2.ok +onsgmls-2a +onsgmls-2b +E: cannot find "onsgmls-2-dir/o2.cat"; tried +onsgmls-2c +EOF + +: ${DIFF=diff} +${DIFF} onsgmls-2.ok onsgmls-2.out +result=$? + +rm -fr $tmpfiles + +exit $result diff --git a/tests/osnorm-1 b/tests/osnorm-1 new file mode 100755 index 0000000..2071c59 --- /dev/null +++ b/tests/osnorm-1 @@ -0,0 +1,35 @@ +#!/bin/sh +# basic osgmlnorm test + +LANG=C; export LANG +LC_ALL=C; export LC_ALL + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles osnorm-1.sgml" +cat <osnorm-1.sgml + + +]> + +EOF +tmpfiles="$tmpfiles osnorm-1.out" + +: ${OSGMLNORM=osgmlnorm} +${OSGMLNORM} >osnorm-1.out osnorm-1.sgml + +tmpfiles="$tmpfiles osnorm-1.ok" +cat <osnorm-1.ok + +EOF + +: ${DIFF=diff} +${DIFF} osnorm-1.ok osnorm-1.out +result=$? + +rm -fr $tmpfiles + +exit $result diff --git a/unicode/.cvsignore b/unicode/.cvsignore new file mode 100644 index 0000000..282522d --- /dev/null +++ b/unicode/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/unicode/Makefile.am b/unicode/Makefile.am new file mode 100644 index 0000000..15a92f9 --- /dev/null +++ b/unicode/Makefile.am @@ -0,0 +1,7 @@ +## Process this file with automake to produce Makefile.in + +pkgdata_DATA = catalog demo.sgm gensyntax.pl unicode.sd unicode.syn + +EXTRA_DIST = catalog demo.sgm gensyntax.pl unicode.sd unicode.syn .cvsignore + +MAINTAINERCLEANFILES = Makefile.in diff --git a/unicode/Makefile.in b/unicode/Makefile.in new file mode 100644 index 0000000..bda6184 --- /dev/null +++ b/unicode/Makefile.in @@ -0,0 +1,403 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = unicode +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ + $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ + $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ + $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pkgdatadir)" +pkgdataDATA_INSTALL = $(INSTALL_DATA) +DATA = $(pkgdata_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ +CATOBJEXT = @CATOBJEXT@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOCSRC = @DOCSRC@ +DTDDECL_FALSE = @DTDDECL_FALSE@ +DTDDECL_TRUE = @DTDDECL_TRUE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRADOCS = @EXTRADOCS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GENCAT = @GENCAT@ +GLIBC2 = @GLIBC2@ +GLIBC21 = @GLIBC21@ +GMSGFMT = @GMSGFMT@ +HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_WPRINTF = @HAVE_WPRINTF@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTOBJEXT = @INSTOBJEXT@ +INTLBISON = @INTLBISON@ +INTLLIBS = @INTLLIBS@ +INTLOBJS = @INTLOBJS@ +INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JADE = @JADE@ +JADETEX = @JADETEX@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDF2PS = @PDF2PS@ +PDFJADETEX = @PDFJADETEX@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SP_LIBOSP_AGE = @SP_LIBOSP_AGE@ +SP_LIBOSP_CUR = @SP_LIBOSP_CUR@ +SP_LIBOSP_REV = @SP_LIBOSP_REV@ +SP_MESSAGE_DOMAIN = @SP_MESSAGE_DOMAIN@ +STRIP = @STRIP@ +USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLTO = @XMLTO@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +pkgdata_DATA = catalog demo.sgm gensyntax.pl unicode.sd unicode.syn +EXTRA_DIST = catalog demo.sgm gensyntax.pl unicode.sd unicode.syn .cvsignore +MAINTAINERCLEANFILES = Makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu unicode/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu unicode/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +install-pkgdataDATA: $(pkgdata_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)" + @list='$(pkgdata_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(pkgdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdatadir)/$$f'"; \ + $(pkgdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \ + done + +uninstall-pkgdataDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgdata_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pkgdatadir)/$$f'"; \ + rm -f "$(DESTDIR)$(pkgdatadir)/$$f"; \ + done +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(pkgdatadir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-libtool + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pkgdataDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-pkgdataDATA + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man install-pkgdataDATA \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + uninstall uninstall-am uninstall-info-am uninstall-pkgdataDATA + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/unicode/catalog b/unicode/catalog new file mode 100644 index 0000000..6539bef --- /dev/null +++ b/unicode/catalog @@ -0,0 +1,5 @@ +PUBLIC +"-//SGML Open:TR95xx//SYNTAX Extended (ISO/IEC 10646-1:1993 repertoire)//EN" +unicode.syn + +SGMLDECL unicode.sd diff --git a/unicode/demo.sgm b/unicode/demo.sgm new file mode 100644 index 0000000..8007707 --- /dev/null +++ b/unicode/demo.sgm @@ -0,0 +1,5 @@ + + +]> + diff --git a/unicode/gensyntax.pl b/unicode/gensyntax.pl new file mode 100644 index 0000000..055e0c0 --- /dev/null +++ b/unicode/gensyntax.pl @@ -0,0 +1,224 @@ +#! /usr/bin/perl + +# Feed this ftp://unicode.org/MappingTables/UnicodeData-1.1.4.txt. + +$compat_start = 0xfb00; + +# Small Kana +$uc[12353] = 12354; +$is_uc[12354] = 1; +$uc[12355] = 12356; +$is_uc[12356] = 1; +$uc[12357] = 12358; +$is_uc[12358] = 1; +$uc[12359] = 12360; +$is_uc[12360] = 1; +$uc[12361] = 12362; +$is_uc[12362] = 1; +$uc[12387] = 12388; +$is_uc[12388] = 1; +$uc[12419] = 12420; +$is_uc[12420] = 1; +$uc[12421] = 12422; +$is_uc[12422] = 1; +$uc[12423] = 12424; +$is_uc[12424] = 1; +$uc[12430] = 12430; +$is_uc[12430] = 1; +$uc[12449] = 12450; +$is_uc[12450] = 1; +$uc[12451] = 12452; +$is_uc[12452] = 1; +$uc[12453] = 12454; +$is_uc[12454] = 1; +$uc[12455] = 12456; +$is_uc[12456] = 1; +$uc[12457] = 12458; +$is_uc[12458] = 1; +$uc[12483] = 12484; +$is_uc[12484] = 1; +$uc[12515] = 12516; +$is_uc[12516] = 1; +$uc[12517] = 12518; +$is_uc[12518] = 1; +$uc[12519] = 12520; +$is_uc[12520] = 1; +$uc[12526] = 12527; +$is_uc[12527] = 1; + +while (<>) { + next if /^#/; + @F = split(';'); + $code = hex($F[0]); + next if $code < 0x200c && $F[2] eq "Cc"; + $type[$code] = $F[2]; + # 0x17f maps to 0x53, but SGML doesn't allow that. + if ($F[12] && hex($F[12]) > 128) { + $uc[$code] = hex($F[12]); + $is_uc[hex($F[12])] = 1; + } + if ($F[2] eq "Zs") { + $name[$code] = $F[1]; + } + + if ($code == 0x4e00) { + foreach $code (0x4e00 .. 0x9fa5) { + $type[$code] = $F[2]; + } + foreach $code (0xf900 .. 0xfa2e) { + $type[$code] = $F[2]; + } + } +} + +print <= 0x200c +$is_sr{"Cc"} = 1; # >= 0x200c +$is_sr{"Pd"} = 1; +$is_sr{"Ps"} = 1; +$is_sr{"Pe"} = 1; +$is_sr{"Po"} = 1; +$is_sr{"Sm"} = 1; +$is_sr{"Sc"} = 1; +$is_sr{"So"} = 1; +$is_sr{"Zs"} = 1; +$is_sr{"Zl"} = 1; +$is_sr{"Zp"} = 1; + +print "LCNMSTRT\n"; +foreach $code (128 .. $#type) { + + if ($uc[$code] && $code < $compat_start) { + &output($code); + } + +} +&flush(); + +print "UCNMSTRT\n"; + +foreach $code (128 .. $#type) { + if ($uc[$code] && $code < $compat_start) { + &output($uc[$code]); + } + +} +&flush(); + +print "NAMESTRT\n"; +foreach $code (128 .. $#type) { + if (!$uc[$code] && !$is_uc[$code] + && $is_nmstrt{$type[$code]} && $code < $compat_start) { + &output($code); + } + +} +&flush(); + +print "LCNMCHAR\n"; +&output(ord("-")); +&output(ord(".")); +&flush(); + +print "UCNMCHAR\n"; +&output(ord("-")); +&output(ord(".")); +&flush(); + +print "NAMECHAR\n"; +foreach $code (128 .. $#type) { + if ($is_nmchar{$type[$code]} && $code < $compat_start) { + &output($code); + } + +} +&flush(); + +print < 0 && $base + $pending == $ch) { + $pending++; + } + else { + &flush; + $base = $ch; + $pending = 1; + } +} + +sub flush { + if ($pending > 0) { + printf("%d", $base); + if ($pending > 1) { + if ($pending > 2) { + print "-"; + } + else { + print "\n"; + } + printf("%d", $base + ($pending - 1)); + } + print "\n"; + $count += $pending; + $pending = 0; + } +} + diff --git a/unicode/unicode.sd b/unicode/unicode.sd new file mode 100644 index 0000000..0b65ec8 --- /dev/null +++ b/unicode/unicode.sd @@ -0,0 +1,24 @@ + diff --git a/unicode/unicode.syn b/unicode/unicode.syn new file mode 100644 index 0000000..4ad0325 --- /dev/null +++ b/unicode/unicode.syn @@ -0,0 +1,1272 @@ +SHUNCHAR CONTROLS +BASESET "ISO Registration Number 176//CHARSET +ISO/IEC 10646-1:1993 UCS-2 with implementation level 3//ESC 2/5 2/15 4/5" + +DESCSET 0 65536 0 -- 16 bit -- + +FUNCTION RE 13 + RS 10 + SPACE 32 + TAB SEPCHAR 9 +"NO-BREAK-SPACE" SEPCHAR 160 +"EN-QUAD" SEPCHAR 8192 +"EM-QUAD" SEPCHAR 8193 +"EN-SPACE" SEPCHAR 8194 +"EM-SPACE" SEPCHAR 8195 +"THREE-PER-EM-SPACE" SEPCHAR 8196 +"FOUR-PER-EM-SPACE" SEPCHAR 8197 +"SIX-PER-EM-SPACE" SEPCHAR 8198 +"FIGURE-SPACE" SEPCHAR 8199 +"PUNCTUATION-SPACE" SEPCHAR 8200 +"THIN-SPACE" SEPCHAR 8201 +"HAIR-SPACE" SEPCHAR 8202 +"ZERO-WIDTH-SPACE" SEPCHAR 8203 +"IDEOGRAPHIC-SPACE" SEPCHAR 12288 +"ZERO-WIDTH-NO-BREAK-SPACE" SEPCHAR 65279 +NAMING +LCNMSTRT +224-246 +248-255 +257 +259 +261 +263 +265 +267 +269 +271 +273 +275 +277 +279 +281 +283 +285 +287 +289 +291 +293 +295 +297 +299 +301 +303 +307 +309 +311 +314 +316 +318 +320 +322 +324 +326 +328 +331 +333 +335 +337 +339 +341 +343 +345 +347 +349 +351 +353 +355 +357 +359 +361 +363 +365 +367 +369 +371 +373 +375 +378 +380 +382 +387 +389 +392 +396 +402 +409 +417 +419 +421 +424 +429 +432 +436 +438 +441 +445 +453 +454 +456 +457 +459 +460 +462 +464 +466 +468 +470 +472 +474 +476 +479 +481 +483 +485 +487 +489 +491 +493 +495 +498 +499 +501 +507 +509 +511 +513 +515 +517 +519 +521 +523 +525 +527 +529 +531 +533 +535 +595 +596 +599-601 +603 +608 +611 +616 +617 +623 +626 +643 +648 +650 +651 +658 +940-943 +945-961 +963-974 +976 +977 +981 +982 +995 +997 +999 +1001 +1003 +1005 +1007-1009 +1072-1103 +1105-1116 +1118 +1119 +1121 +1123 +1125 +1127 +1129 +1131 +1133 +1135 +1137 +1139 +1141 +1143 +1145 +1147 +1149 +1151 +1153 +1169 +1171 +1173 +1175 +1177 +1179 +1181 +1183 +1185 +1187 +1189 +1191 +1193 +1195 +1197 +1199 +1201 +1203 +1205 +1207 +1209 +1211 +1213 +1215 +1218 +1220 +1224 +1228 +1233 +1235 +1237 +1239 +1241 +1243 +1245 +1247 +1249 +1251 +1253 +1255 +1257 +1259 +1263 +1265 +1267 +1269 +1273 +1377-1414 +7681 +7683 +7685 +7687 +7689 +7691 +7693 +7695 +7697 +7699 +7701 +7703 +7705 +7707 +7709 +7711 +7713 +7715 +7717 +7719 +7721 +7723 +7725 +7727 +7729 +7731 +7733 +7735 +7737 +7739 +7741 +7743 +7745 +7747 +7749 +7751 +7753 +7755 +7757 +7759 +7761 +7763 +7765 +7767 +7769 +7771 +7773 +7775 +7777 +7779 +7781 +7783 +7785 +7787 +7789 +7791 +7793 +7795 +7797 +7799 +7801 +7803 +7805 +7807 +7809 +7811 +7813 +7815 +7817 +7819 +7821 +7823 +7825 +7827 +7829 +7841 +7843 +7845 +7847 +7849 +7851 +7853 +7855 +7857 +7859 +7861 +7863 +7865 +7867 +7869 +7871 +7873 +7875 +7877 +7879 +7881 +7883 +7885 +7887 +7889 +7891 +7893 +7895 +7897 +7899 +7901 +7903 +7905 +7907 +7909 +7911 +7913 +7915 +7917 +7919 +7921 +7923 +7925 +7927 +7929 +7936-7943 +7952-7957 +7968-7975 +7984-7991 +8000-8005 +8017 +8019 +8021 +8023 +8032-8039 +8048-8061 +8064-8071 +8080-8087 +8096-8103 +8112 +8113 +8115 +8131 +8144 +8145 +8160 +8161 +8165 +8179 +8560-8575 +9424-9449 +12353 +12355 +12357 +12359 +12361 +12387 +12419 +12421 +12423 +12430 +12449 +12451 +12453 +12455 +12457 +12483 +12515 +12517 +12519 +12526 +UCNMSTRT +192-214 +216-222 +376 +256 +258 +260 +262 +264 +266 +268 +270 +272 +274 +276 +278 +280 +282 +284 +286 +288 +290 +292 +294 +296 +298 +300 +302 +306 +308 +310 +313 +315 +317 +319 +321 +323 +325 +327 +330 +332 +334 +336 +338 +340 +342 +344 +346 +348 +350 +352 +354 +356 +358 +360 +362 +364 +366 +368 +370 +372 +374 +377 +379 +381 +386 +388 +391 +395 +401 +408 +416 +418 +420 +423 +428 +431 +435 +437 +440 +444 +452 +452 +455 +455 +458 +458 +461 +463 +465 +467 +469 +471 +473 +475 +478 +480 +482 +484 +486 +488 +490 +492 +494 +497 +497 +500 +506 +508 +510 +512 +514 +516 +518 +520 +522 +524 +526 +528 +530 +532 +534 +385 +390 +394 +398-400 +403 +404 +407 +406 +412 +413 +425 +430 +433 +434 +439 +902 +904-906 +913-929 +931-939 +908 +910 +911 +914 +920 +934 +928 +994 +996 +998 +1000 +1002 +1004 +1006 +922 +929 +1040-1071 +1025-1036 +1038 +1039 +1120 +1122 +1124 +1126 +1128 +1130 +1132 +1134 +1136 +1138 +1140 +1142 +1144 +1146 +1148 +1150 +1152 +1168 +1170 +1172 +1174 +1176 +1178 +1180 +1182 +1184 +1186 +1188 +1190 +1192 +1194 +1196 +1198 +1200 +1202 +1204 +1206 +1208 +1210 +1212 +1214 +1217 +1219 +1223 +1227 +1232 +1234 +1236 +1238 +1240 +1242 +1244 +1246 +1248 +1250 +1252 +1254 +1256 +1258 +1262 +1264 +1266 +1268 +1272 +1329-1366 +7680 +7682 +7684 +7686 +7688 +7690 +7692 +7694 +7696 +7698 +7700 +7702 +7704 +7706 +7708 +7710 +7712 +7714 +7716 +7718 +7720 +7722 +7724 +7726 +7728 +7730 +7732 +7734 +7736 +7738 +7740 +7742 +7744 +7746 +7748 +7750 +7752 +7754 +7756 +7758 +7760 +7762 +7764 +7766 +7768 +7770 +7772 +7774 +7776 +7778 +7780 +7782 +7784 +7786 +7788 +7790 +7792 +7794 +7796 +7798 +7800 +7802 +7804 +7806 +7808 +7810 +7812 +7814 +7816 +7818 +7820 +7822 +7824 +7826 +7828 +7840 +7842 +7844 +7846 +7848 +7850 +7852 +7854 +7856 +7858 +7860 +7862 +7864 +7866 +7868 +7870 +7872 +7874 +7876 +7878 +7880 +7882 +7884 +7886 +7888 +7890 +7892 +7894 +7896 +7898 +7900 +7902 +7904 +7906 +7908 +7910 +7912 +7914 +7916 +7918 +7920 +7922 +7924 +7926 +7928 +7944-7951 +7960-7965 +7976-7983 +7992-7999 +8008-8013 +8025 +8027 +8029 +8031 +8040-8047 +8122 +8123 +8136-8139 +8154 +8155 +8184 +8185 +8170 +8171 +8186 +8187 +8072-8079 +8088-8095 +8104-8111 +8120 +8121 +8124 +8140 +8152 +8153 +8168 +8169 +8172 +8188 +8544-8559 +9398-9423 +12354 +12356 +12358 +12360 +12362 +12388 +12420 +12422 +12424 +12430 +12450 +12452 +12454 +12456 +12458 +12484 +12516 +12518 +12520 +12527 +NAMESTRT +223 +304 +305 +312 +329 +383 +384 +393 +397 +405 +410 +411 +414 +415 +422 +426 +427 +442 +443 +446-451 +477 +496 +592-594 +597 +598 +602 +604-607 +609 +610 +612-615 +618-622 +624 +625 +627-642 +644-647 +649 +652-657 +659-680 +912 +944 +962 +978-980 +986 +988 +990 +992 +1010 +1011 +1216 +1415 +1488-1514 +1520-1522 +1569-1594 +1600-1610 +1649-1719 +1722-1726 +1728-1742 +1744-1747 +1749 +2309-2361 +2392-2401 +2437-2444 +2447 +2448 +2451-2472 +2474-2480 +2482 +2486-2489 +2524 +2525 +2527-2529 +2544 +2545 +2565-2570 +2575 +2576 +2579-2600 +2602-2608 +2610 +2611 +2613 +2614 +2616 +2617 +2649-2652 +2654 +2693-2699 +2701 +2703-2705 +2707-2728 +2730-2736 +2738 +2739 +2741-2745 +2784 +2821-2828 +2831 +2832 +2835-2856 +2858-2864 +2866 +2867 +2870-2873 +2908 +2909 +2911-2913 +2949-2954 +2958-2960 +2962-2965 +2969 +2970 +2972 +2974 +2975 +2979 +2980 +2984-2986 +2990-2997 +2999-3001 +3056-3058 +3077-3084 +3086-3088 +3090-3112 +3114-3123 +3125-3129 +3168 +3169 +3205-3212 +3214-3216 +3218-3240 +3242-3251 +3253-3257 +3294 +3296 +3297 +3333-3340 +3342-3344 +3346-3368 +3370-3385 +3424 +3425 +3585-3632 +3634 +3635 +3648-3654 +3663 +3674 +3675 +3713 +3714 +3716 +3719 +3720 +3722 +3725 +3732-3735 +3737-3743 +3745-3747 +3749 +3751 +3754 +3755 +3757 +3758 +3760 +3762 +3763 +3773 +3776-3780 +4256-4293 +4304-4342 +4352-4441 +4447-4514 +4520-4601 +7830-7834 +8016 +8018 +8020 +8022 +8114 +8116 +8118 +8119 +8130 +8132 +8134 +8135 +8146 +8147 +8150 +8151 +8162-8164 +8166 +8167 +8178 +8180 +8182 +8183 +8204-8207 +8234-8238 +8298-8303 +12295 +12321-12329 +12363-12386 +12389-12418 +12425-12429 +12431-12436 +12459-12482 +12485-12514 +12521-12525 +12528-12538 +12549-12588 +12593-12686 +13312-40869 +63744-64046 +LCNMCHAR +45 +46 +UCNMCHAR +45 +46 +NAMECHAR +168 +175 +180 +184 +688-734 +736-745 +768-837 +864 +865 +890 +900 +901 +1155-1158 +1369 +1456-1465 +1467-1469 +1471 +1473 +1474 +1611-1618 +1632-1641 +1648 +1750-1768 +1770-1773 +1776-1785 +2305-2307 +2364 +2366-2381 +2385-2388 +2402 +2403 +2406-2415 +2433-2435 +2492 +2494-2500 +2503 +2504 +2507-2509 +2519 +2530 +2531 +2534-2543 +2562 +2620 +2622-2626 +2631 +2632 +2635-2637 +2662-2673 +2689-2691 +2748 +2750-2757 +2759-2761 +2763-2765 +2790-2799 +2817-2819 +2876 +2878-2883 +2887 +2888 +2891-2893 +2902 +2903 +2918-2927 +2946 +2947 +3006-3010 +3014-3016 +3018-3021 +3031 +3047-3055 +3073-3075 +3134-3140 +3142-3144 +3146-3149 +3157 +3158 +3174-3183 +3202 +3203 +3262-3268 +3270-3272 +3274-3277 +3285 +3286 +3302-3311 +3330 +3331 +3390-3395 +3398-3400 +3402-3405 +3415 +3430-3439 +3633 +3636-3642 +3655-3662 +3664-3673 +3761 +3764-3769 +3771 +3772 +3784-3789 +3792-3801 +8125-8129 +8141-8143 +8157-8159 +8173-8175 +8189 +8190 +8400-8417 +9332-9340 +9352-9360 +9450 +12330-12335 +12441-12446 +12540-12542 +NAMECASE GENERAL YES + ENTITY NO +DELIM GENERAL SGMLREF + SHORTREF SGMLREF +160-167 +169-174 +176-179 +181-183 +185-191 +215 +247 +884 +885 +894 +903 +1154 +1370-1375 +1417 +1470 +1472 +1475 +1523 +1524 +1548 +1563 +1567 +1642-1645 +1748 +1769 +2365 +2384 +2404 +2405 +2416 +2546-2554 +2674-2676 +2749 +2768 +2877 +2928 +3647 +3759 +3782 +3804 +3805 +4347 +8192-8238 +8240-8262 +8298-8304 +8308-8334 +8352-8362 +8448-8504 +8531-8578 +8592-8682 +8704-8945 +8960 +8962-9082 +9216-9252 +9280-9290 +9312-9331 +9341-9351 +9361-9449 +9472-9621 +9632-9711 +9728-9747 +9754-9839 +9985-9988 +9990-9993 +9996-10023 +10025-10059 +10061 +10063-10066 +10070 +10072-10078 +10081-10087 +10102-10132 +10136-10159 +10161-10174 +12288-12294 +12296-12320 +12336-12343 +12351 +12539 +12688-12703 +12800-12828 +12832-12867 +12896-12923 +12927-12976 +12992-13003 +13008-13054 +13056-13174 +13179-13277 +13280-13310 +64297 +64830 +64831 +65072-65092 +65097-65106 +65108-65126 +65128-65131 +65279 +65281-65295 +65306-65312 +65339-65344 +65371-65374 +65377-65381 +65392 +65438 +65439 +65504-65510 +65512-65518 +65533 +NAMES SGMLREF + +QUANTITY SGMLREF -- To be determined -- + ATTSPLEN 1920 -- ?? -- + LITLEN 240 -- ?? -- + NAMELEN 240 -- ?? -- + PILEN 1920 -- ?? -- + TAGLEN 1920 -- ?? -- -- 2.7.4