WinApp.cxx revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1997 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#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 <windows.h>
#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
{
if (s) {
while (*s)
tem += (unsigned char)*s++;
}
return tem;
}
{
}
}
const InputCodingSystem *
{
return 0;
if (codingSystemKit_.isNull())
const char *tem;
0,
tem);
}
static
{
started = 0;
else {
if (!started) {
started = 1;
}
}
}
}
{
}
{
if (!codingSystem)
= new PosixStorageManager("OSFILE",
5);
{
}
icsk,
0);
#ifdef SP_WININET
#else
#endif
1));
}
{
if (tem != defaultCatalogs_) {
}
}
{
if (tem != defaultDirectories_) {
}
}
{
if (!getCodingSystem(str))
return 0;
return 1;
}
{
if (!getCodingSystem(str))
return 0;
return 1;
}
{
return;
}
{
return 0;
long size;
retval = 1;
else
}
}
}
return retval;
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* SP_WIDE_SYSTEM */