diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/box.c | 2 | ||||
-rw-r--r-- | render/box.h | 2 | ||||
-rw-r--r-- | render/box_construct.c | 2 | ||||
-rw-r--r-- | render/box_normalise.c | 2 | ||||
-rw-r--r-- | render/directory.c | 16 | ||||
-rw-r--r-- | render/directory.h | 2 | ||||
-rw-r--r-- | render/font.h | 2 | ||||
-rw-r--r-- | render/form.c | 2 | ||||
-rw-r--r-- | render/form.h | 2 | ||||
-rw-r--r-- | render/html.c | 2 | ||||
-rw-r--r-- | render/html.h | 14 | ||||
-rw-r--r-- | render/html_redraw.c | 2 | ||||
-rw-r--r-- | render/imagemap.c | 2 | ||||
-rw-r--r-- | render/imagemap.h | 2 | ||||
-rw-r--r-- | render/layout.c | 2 | ||||
-rw-r--r-- | render/layout.h | 2 | ||||
-rw-r--r-- | render/list.c | 28 | ||||
-rw-r--r-- | render/list.h | 2 | ||||
-rw-r--r-- | render/table.c | 2 | ||||
-rw-r--r-- | render/table.h | 2 | ||||
-rw-r--r-- | render/textplain.c | 2 | ||||
-rw-r--r-- | render/textplain.h | 2 |
22 files changed, 48 insertions, 48 deletions
diff --git a/render/box.c b/render/box.c index 590b673a8..fe70c61f8 100644 --- a/render/box.c +++ b/render/box.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2005 James Bursa <bursa@users.sourceforge.net> diff --git a/render/box.h b/render/box.h index adefcdc1e..e932b7480 100644 --- a/render/box.h +++ b/render/box.h @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2005 James Bursa <bursa@users.sourceforge.net> diff --git a/render/box_construct.c b/render/box_construct.c index b6806c106..0b00570bf 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2005 James Bursa <bursa@users.sourceforge.net> diff --git a/render/box_normalise.c b/render/box_normalise.c index 9cc49bdce..69ccc2259 100644 --- a/render/box_normalise.c +++ b/render/box_normalise.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2005 James Bursa <bursa@users.sourceforge.net> diff --git a/render/directory.c b/render/directory.c index eaaea35c6..1449b46f0 100644 --- a/render/directory.c +++ b/render/directory.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2006 Richard Wilson <info@tinct.net> @@ -53,7 +53,7 @@ bool directory_convert(struct content *c, int width, int height) { if (!path) { msg_data.error = messages_get("NoMemory"); content_broadcast(c, CONTENT_MSG_ERROR, msg_data); - return false; + return false; } nice_path = malloc(strlen(path) * 4 + 1); if (!nice_path) { @@ -63,13 +63,13 @@ bool directory_convert(struct content *c, int width, int height) { } for (cnv = nice_path, tmp = path; *tmp != '\0'; *tmp++) { if (*tmp == '<') { - *cnv++ = '&'; - *cnv++ = 'l'; + *cnv++ = '&'; + *cnv++ = 'l'; *cnv++ = 't'; *cnv++ = ';'; } else if (*tmp == '>') { - *cnv++ = '&'; - *cnv++ = 'g'; + *cnv++ = '&'; + *cnv++ = 'g'; *cnv++ = 't'; *cnv++ = ';'; } else { @@ -104,13 +104,13 @@ bool directory_convert(struct content *c, int width, int height) { if ((entry->d_ino == 0) || (!strcmp(entry->d_name, ".")) || (!strcmp(entry->d_name, ".."))) continue; - + snprintf(buffer, sizeof(buffer), "<a href=\"%s/%s\">%s</a>\n", c->url, entry->d_name, entry->d_name); htmlParseChunk(c->data.html.parser, buffer, strlen(buffer), 0); } closedir(parent); - + htmlParseChunk(c->data.html.parser, footer, sizeof(footer) - 1, 0); c->type = CONTENT_HTML; return html_convert(c, width, height); diff --git a/render/directory.h b/render/directory.h index 93193fbad..ce1b212c3 100644 --- a/render/directory.h +++ b/render/directory.h @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2006 Richard Wilson <info@tinct.net> diff --git a/render/font.h b/render/font.h index e9066a23d..8e9e6e52a 100644 --- a/render/font.h +++ b/render/font.h @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net> diff --git a/render/form.c b/render/form.c index 459fc4da2..b9aa654a0 100644 --- a/render/form.c +++ b/render/form.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2004 James Bursa <bursa@users.sourceforge.net> diff --git a/render/form.h b/render/form.h index cf9a0e746..f691eea8f 100644 --- a/render/form.h +++ b/render/form.h @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net> diff --git a/render/html.c b/render/html.c index f50ce8d65..e53df7326 100644 --- a/render/html.c +++ b/render/html.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2005 James Bursa <bursa@users.sourceforge.net> diff --git a/render/html.h b/render/html.h index 4e19364e3..a9fa574d1 100644 --- a/render/html.h +++ b/render/html.h @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2004 James Bursa <bursa@users.sourceforge.net> @@ -68,20 +68,20 @@ struct content_html_object { struct content_html_frames { int cols; /** number of columns in frameset */ int rows; /** number of rows in frameset */ - + struct frame_dimension width; /** frame width */ struct frame_dimension height; /** frame width */ int margin_width; /** frame margin width */ int margin_height; /** frame margin height */ - + char *name; /** frame name (for targetting) */ char *url; /** frame url */ - + bool no_resize; /** frame is not resizable */ frame_scrolling scrolling; /** scrolling characteristics */ bool border; /** frame has a border */ colour border_colour; /** frame border colour */ - + struct content_html_frames *children; /** [cols * rows] children */ }; @@ -91,10 +91,10 @@ struct content_html_iframe { int margin_width; /** frame margin width */ int margin_height; /** frame margin height */ - + char *name; /** frame name (for targetting) */ char *url; /** frame url */ - + frame_scrolling scrolling; /** scrolling characteristics */ bool border; /** frame has a border */ colour border_colour; /** frame border colour */ diff --git a/render/html_redraw.c b/render/html_redraw.c index bc57d3cba..f3a1e6d18 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2004 James Bursa <bursa@users.sourceforge.net> diff --git a/render/imagemap.c b/render/imagemap.c index fc6e9bec8..e004c01a8 100644 --- a/render/imagemap.c +++ b/render/imagemap.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2004 John M Bell <jmb202@ecs.soton.ac.uk> diff --git a/render/imagemap.h b/render/imagemap.h index 8af50e79d..95d740023 100644 --- a/render/imagemap.h +++ b/render/imagemap.h @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2004 John M Bell <jmb202@ecs.soton.ac.uk> diff --git a/render/layout.c b/render/layout.c index a135cc03c..6c52b25c1 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2005 Richard Wilson <info@tinct.net> diff --git a/render/layout.h b/render/layout.h index f37f8fd7c..31a096a2d 100644 --- a/render/layout.h +++ b/render/layout.h @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2003 James Bursa <bursa@users.sourceforge.net> diff --git a/render/list.c b/render/list.c index 432d31776..dd42e291c 100644 --- a/render/list.c +++ b/render/list.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2005 Richard Wilson <info@tinct.net> @@ -95,7 +95,7 @@ void render_list_destroy_counters(void) { struct list_counter *next_counter; struct list_counter_state *state; struct list_counter_state *next_state; - + while (counter) { next_counter = counter->next; free(counter->name); @@ -123,7 +123,7 @@ bool render_list_counter_reset(char *name, int value) { struct list_counter *counter; struct list_counter_state *state; struct list_counter_state *link; - + assert(name); counter = render_list_find_counter(name); if (!counter) @@ -156,7 +156,7 @@ bool render_list_counter_reset(char *name, int value) { */ bool render_list_counter_increment(char *name, int value) { struct list_counter *counter; - + assert(name); counter = render_list_find_counter(name); if (!counter) @@ -186,7 +186,7 @@ bool render_list_counter_increment(char *name, int value) { */ bool render_list_counter_end_scope(char *name) { struct list_counter *counter; - + assert(name); counter = render_list_find_counter(name); if ((!counter) || (!counter->state)) @@ -209,7 +209,7 @@ char *render_list_counter(struct css_counter *css_counter) { struct list_counter_state *state; char *compound = NULL; char *merge, *extend; - + assert(css_counter); counter = render_list_find_counter(css_counter->name); if (!counter) { @@ -221,7 +221,7 @@ char *render_list_counter(struct css_counter *css_counter) { if (!css_counter->separator) return render_list_encode_counter(counter->state, css_counter->style); - + /* loop through all states for counters() */ for (state = counter->first; state; state = state->next) { merge = render_list_encode_counter(state, @@ -243,7 +243,7 @@ char *render_list_counter(struct css_counter *css_counter) { } compound = extend; strcat(compound, merge); - } + } if (state->next) { merge = realloc(compound, strlen(compound) + strlen(css_counter->separator) + 1); @@ -332,13 +332,13 @@ static char *render_list_encode_counter(struct list_counter_state *state, assert(0); break; } - + /* perform case conversion */ if ((style == CSS_LIST_STYLE_TYPE_LOWER_ALPHA) || (style == CSS_LIST_STYLE_TYPE_LOWER_ROMAN)) for (i = 0; result[i]; i++) - result[i] = tolower(result[i]); - + result[i] = tolower(result[i]); + return result; } @@ -354,7 +354,7 @@ static char *render_list_encode_roman(int value) { int i, overflow, p = 0; char temp[10]; char *result; - + /* zero and below is returned as an empty string and not erred as * if it is counters() will fail to complete other scopes. */ if (value <= 0) { @@ -431,14 +431,14 @@ static void render_list_counter_output(char *name) { struct list_counter *counter; char *result; struct css_counter css_counter; - + assert(name); counter = render_list_find_counter(name); if (!counter) { fprintf(stderr, "Unable to create counter '%s'\n", name); return; } - + css_counter.name = name; css_counter.style = CSS_LIST_STYLE_TYPE_LOWER_ALPHA; css_counter.separator = NULL; diff --git a/render/list.h b/render/list.h index 0aa7d68ac..975aebcdc 100644 --- a/render/list.h +++ b/render/list.h @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2005 Richard Wilson <info@tinct.net> diff --git a/render/table.c b/render/table.c index a7c79dd19..1fba74565 100644 --- a/render/table.c +++ b/render/table.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2005 James Bursa <bursa@users.sourceforge.net> diff --git a/render/table.h b/render/table.h index 9b4b416fb..f206e251f 100644 --- a/render/table.h +++ b/render/table.h @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2005 James Bursa <bursa@users.sourceforge.net> diff --git a/render/textplain.c b/render/textplain.c index ff6ca2f9d..8984ff851 100644 --- a/render/textplain.c +++ b/render/textplain.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2006 James Bursa <bursa@users.sourceforge.net> diff --git a/render/textplain.h b/render/textplain.h index 0775381fc..54d843f29 100644 --- a/render/textplain.h +++ b/render/textplain.h @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2006 James Bursa <bursa@users.sourceforge.net> |