summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-07-09 22:06:39 +0000
committerJames Bursa <james@netsurf-browser.org>2003-07-09 22:06:39 +0000
commit907115c49d571eea11919e55d84bd599154ccb0f (patch)
tree00017600665fee2ca89d8ee59cccaecc15e54544
parent0226e529e6ddffa8b3fa88618923d77913fd1be2 (diff)
downloadnetsurf-907115c49d571eea11919e55d84bd599154ccb0f.tar.gz
netsurf-907115c49d571eea11919e55d84bd599154ccb0f.tar.bz2
[project @ 2003-07-09 22:06:39 by bursa]
Bool fixes. svn path=/import/netsurf/; revision=215
-rw-r--r--render/box.c10
-rw-r--r--riscos/plugin.c4
-rw-r--r--riscos/plugin.h1
3 files changed, 7 insertions, 8 deletions
diff --git a/render/box.c b/render/box.c
index d71c1112b..2909da7de 100644
--- a/render/box.c
+++ b/render/box.c
@@ -1583,12 +1583,12 @@ bool plugin_decode(struct content* content, char* url, struct box* box,
* we can't handle this object.
*/
if(po->data == 0 && po->classid == 0) {
- return false;
+ return FALSE;
}
if(po->data == 0 && po->classid != 0) {
if(strnicmp(po->classid, "clsid:", 6) == 0) {
LOG(("ActiveX object - n0"));
- return false;
+ return FALSE;
}
else {
url = url_join(po->classid, po->codebase);
@@ -1603,11 +1603,11 @@ bool plugin_decode(struct content* content, char* url, struct box* box,
*/
if(po->type != 0) {
if (content_lookup(po->type) == CONTENT_OTHER)
- return false;
+ return FALSE;
}
if(po->codetype != 0) {
if (content_lookup(po->codetype) == CONTENT_OTHER)
- return false;
+ return FALSE;
}
/* If we've got to here, the object declaration has provided us with
@@ -1619,6 +1619,6 @@ bool plugin_decode(struct content* content, char* url, struct box* box,
*/
html_fetch_object(content, url, box);
- return true;
+ return TRUE;
}
diff --git a/riscos/plugin.c b/riscos/plugin.c
index 4df604371..421d8b6f2 100644
--- a/riscos/plugin.c
+++ b/riscos/plugin.c
@@ -89,8 +89,8 @@ bool plugin_handleable(const char *mime_type)
sprintf(sysvar, "%s%x", ALIAS_PREFIX, e == NULL ? fv : 0 );
if (getenv(sysvar) == 0)
- return false;
- return true;
+ return FALSE;
+ return TRUE;
}
/**
diff --git a/riscos/plugin.h b/riscos/plugin.h
index 9456e3883..0c65012f1 100644
--- a/riscos/plugin.h
+++ b/riscos/plugin.h
@@ -8,7 +8,6 @@
#ifndef _NETSURF_RISCOS_PLUGIN_H_
#define _NETSURF_RISCOS_PLUGIN_H_
-#include <stdbool.h>
#include "netsurf/content/content.h"
#include "netsurf/render/box.h"