return dest;
}
-static void wxXMergeDatabases(void)
+static void wxXMergeDatabases()
{
XrmDatabase homeDB, serverDB, applicationDB;
char filenamebuf[1024];
// called on application exit
//-----------------------------------------------------------------------------
-void wxFlushResources(void)
+void wxFlushResources()
{
char nameBuffer[512];
// home directory instead of current directory -- JACS
(void)GetIniFile(buffer, file);
- wxNode *node = wxTheResourceCache->Find(buffer);
+ wxNode *node = (wxNode*) NULL; /* suppress egcs warning */
+ node = wxTheResourceCache->Find(buffer);
if (node)
+ {
database = (XrmDatabase)node->Data();
- else {
+ }
+ else
+ {
database = XrmGetFileDatabase(buffer);
wxLogTrace(wxTraceResAlloc, "Get: Number = %d", wxTheResourceCache->Number());
wxTheResourceCache->Append(buffer, (wxObject *)database);