aboutsummaryrefslogtreecommitdiffstats
path: root/map.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-24 02:01:26 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-24 02:01:26 +0000
commit975c8f9d43d4026bf1d669b08646e9d29a9d02e4 (patch)
treefd8aed139ffef712ccbb2d392c13b3949b0192c5 /map.c
parent[w3m-dev 02530] segfault for bad cookie from local (diff)
downloadw3m-975c8f9d43d4026bf1d669b08646e9d29a9d02e4.tar.gz
w3m-975c8f9d43d4026bf1d669b08646e9d29a9d02e4.zip
run make indent
Diffstat (limited to '')
-rw-r--r--map.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/map.c b/map.c
index 70b0eed..5fb02c2 100644
--- a/map.c
+++ b/map.c
@@ -1,4 +1,4 @@
-/* $Id: map.c,v 1.3 2001/11/20 17:49:23 ukai Exp $ */
+/* $Id: map.c,v 1.4 2001/11/24 02:01:26 ukai Exp $ */
/*
* client-side image maps
*/
@@ -6,7 +6,7 @@
#ifdef MENU_MAP
char *
-follow_map_menu(Buffer * buf, struct parsed_tagarg *arg, int x, int y)
+follow_map_menu(Buffer *buf, struct parsed_tagarg *arg, int x, int y)
{
MapList *ml;
char *name;
@@ -25,12 +25,12 @@ follow_map_menu(Buffer * buf, struct parsed_tagarg *arg, int x, int y)
if (ml == NULL)
return NULL;
- for (n = 0, t = ml->urls->first; t != NULL; n++, t = t->next);
+ for (n = 0, t = ml->urls->first; t != NULL; n++, t = t->next) ;
if (n == 0)
return NULL;
label = New_N(char *, n + 1);
for (i = 0, t = ml->urls->first, s = ml->alts->first; t != NULL;
- i++, t = t->next, s = s->next)
+ i++, t = t->next, s = s->next)
label[i] = *s->ptr ? s->ptr : t->ptr;
label[n] = NULL;
@@ -49,7 +49,7 @@ char *map1 = "<HTML><HEAD><TITLE>Image map links</TITLE></HEAD>\
<BODY><H1>Image map links</H1>";
Buffer *
-follow_map_panel(Buffer * buf, struct parsed_tagarg *arg)
+follow_map_panel(Buffer *buf, struct parsed_tagarg *arg)
{
Str mappage;
MapList *ml;
@@ -70,7 +70,7 @@ follow_map_panel(Buffer * buf, struct parsed_tagarg *arg)
mappage = Strnew_charp(map1);
for (t = ml->urls->first, s = ml->alts->first; t != NULL;
- t = t->next, s = s->next) {
+ t = t->next, s = s->next) {
parseURL2(t->ptr, &pu, baseURL(buf));
Strcat_charp(mappage, "<a href=\"");
Strcat_charp(mappage, html_quote(parsedURL2Str(&pu)->ptr));
@@ -134,7 +134,7 @@ append_frame_info(Buffer *buf, Str html, struct frameset *set, int level)
* information of current page and link
*/
Buffer *
-page_info_panel(Buffer * buf)
+page_info_panel(Buffer *buf)
{
Str tmp = Strnew_size(1024);
Anchor *a;
@@ -144,8 +144,10 @@ page_info_panel(Buffer * buf)
struct frameset *f_set = NULL;
int all;
- Strcat_charp(tmp, "<html><head><title>Information about current page</title></head><body>");
- Strcat_charp(tmp, "<h1>Information about current page</h1><table cellpadding=0>");
+ Strcat_charp(tmp,
+ "<html><head><title>Information about current page</title></head><body>");
+ Strcat_charp(tmp,
+ "<h1>Information about current page</h1><table cellpadding=0>");
if (buf == NULL)
goto end;
Strcat_charp(tmp, "<tr><td nowrap>Title<td>");
@@ -191,7 +193,7 @@ page_info_panel(Buffer * buf)
}
a = retrieveCurrentForm(buf);
if (a != NULL) {
- s = Strnew_charp(form2str((FormItemList *) a->url));
+ s = Strnew_charp(form2str((FormItemList *)a->url));
Strcat_charp(tmp, "<tr><td nowrap>Method/type of current form<td>");
Strcat_charp(tmp, html_quote(s->ptr));
}
@@ -207,8 +209,7 @@ page_info_panel(Buffer * buf)
if (buf->frameset != NULL)
f_set = buf->frameset;
else if (buf->bufferprop & BP_FRAME &&
- buf->nextBuffer != NULL &&
- buf->nextBuffer->frameset != NULL)
+ buf->nextBuffer != NULL && buf->nextBuffer->frameset != NULL)
f_set = buf->nextBuffer->frameset;
if (f_set) {