summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2003-09-26 22:29:02 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2003-09-26 22:29:02 +0000
commit75abb473a8c8cc0a6bae22186ee14c27f9a5cf11 (patch)
treea9db986037198e3daf0307cce62fe8bcafa3281b
parent9b6a3f62be73fbc61d312fa355a7c711f5ff3461 (diff)
downloadnetsurf-75abb473a8c8cc0a6bae22186ee14c27f9a5cf11.tar.gz
netsurf-75abb473a8c8cc0a6bae22186ee14c27f9a5cf11.tar.bz2
[project @ 2003-09-26 22:29:02 by jmb]
Add debug LOG macro calls svn path=/import/netsurf/; revision=320
-rw-r--r--riscos/about.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/riscos/about.c b/riscos/about.c
index 65cc5c517..fa17c284e 100644
--- a/riscos/about.c
+++ b/riscos/about.c
@@ -110,7 +110,6 @@ void about_create(void) {
FILE *fp;
char *buf, *val, var[20], *ptype, *pdetails, *fname, *furl, *p, *leafname;
int i, nofiles, j, w, h, size, pneeded;
- os_fw fh;
os_error *e;
abt = (struct about_page*)xcalloc(1, sizeof(*abt));
@@ -182,16 +181,19 @@ void about_create(void) {
/* now see if there's an image to display */
sprintf(buf, "%s.%2.2d", val, j);
+ LOG(("buf: %s", buf));
e = xosfile_read_stamped_no_path(buf,0,0,0,&size,0,0);
if(e || size < 0) {
sprintf(buf, "%s.%2.2d*", val, j);
+ LOG(("buf: %s", buf));
e = xosfile_read_stamped_no_path(buf,0,0,0,&size,0,0);
if(e || size < 0) {
/* Type 1: no image file */
furl = xcalloc(strlen(paboutpl1) + strlen(ptype) + strlen(pdetails) + 10, sizeof(char));
sprintf(furl, paboutpl1, ptype, pdetails);
+ LOG(("furl: %s", furl));
abt->plugd = new_plugin(abt->plugd, furl);
xfree(pdetails);
continue;
@@ -200,12 +202,15 @@ void about_create(void) {
/* Type 3: image file with name xxwwwwhhhh */
/* get actual file name */
sprintf(var, "%2.2d*", j);
+ LOG(("var: %s", var));
sprintf(buf, "%s.", val);
+ buf[strlen(val)+1] = '\0'
+ LOG(("buf: %s", buf));
xosfscontrol_canonicalise_path(var, 0, 0, buf, 0, &pneeded);
fname = xcalloc((10-pneeded), sizeof(char));
xosfscontrol_canonicalise_path(var, fname, 0, buf,
(10-pneeded), 0);
-
+ LOG(("fname: %s", fname));
furl = xcalloc(strlen(fname) + 20, sizeof(char));
/* grab leafname and get width and height */