Display *display = (Display*)wxdisplay;
wxEventLoop evtLoop;
- XSync (display, FALSE);
+ XSync (display, False);
while (evtLoop.Pending())
{
return dest;
}
-static char *GetResourcePath(char *buf, const char *name, bool create = FALSE)
+static char *GetResourcePath(char *buf, const char *name, bool create = false)
{
if (create && wxFileExists (name) ) {
strcpy(buf, name);
{
const char *file = node->GetKeyString();
// If file doesn't exist, create it first.
- (void)GetResourcePath(nameBuffer, file, TRUE);
+ (void)GetResourcePath(nameBuffer, file, true);
XrmDatabase database = (XrmDatabase) node->Data ();
XrmPutFileDatabase (database, nameBuffer);
strncpy (*value, xvalue.addr, (int) xvalue.size);
return true;
}
- return FALSE;
+ return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file)
delete[] s;
return true;
}
- else return FALSE;
+ else return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file)
delete[] s;
return true;
}
- else return FALSE;
+ else return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file)
// Handle True, False here
// True, Yes, Enables, Set or Activated
if (*s == 'T' || *s == 'Y' || *s == 'E' || *s == 'S' || *s == 'A')
- *value = TRUE;
+ *value = true;
// False, No, Disabled, Reset, Cleared, Deactivated
else if (*s == 'F' || *s == 'N' || *s == 'D' || *s == 'R' || *s == 'C')
- *value = FALSE;
+ *value = false;
// Handle as Integer
else
*value = (int) strtol (s, NULL, 10);
return true;
}
else
- return FALSE;
+ return false;
}
void wxXMergeDatabases (wxApp * theApp, Display * display)
{
#if (XlibSpecificationRelease>=5)
XrmDatabase db = XtDatabase (dpy);
- XrmCombineDatabase (rdb, &db, FALSE);
+ XrmCombineDatabase (rdb, &db, False);
#else
XrmMergeDatabases (dpy->db, &rdb);
dpy->db = rdb;
return true;
}
else
- return FALSE;
+ return false;
}
}