commit 0390d7b9931cc0f8333b4ac1ebde7eed5064b127
parent 5ffb12c00c055b231106aa39cedc40ff81507406
Author: ukai <ukai>
Date: Tue, 22 Jul 2003 17:33:16 +0000
fix indent
Diffstat:
M | fm.h | | | 14 | +++++++------- |
M | hash.h | | | 2 | +- |
M | istream.h | | | 2 | +- |
M | main.c | | | 80 | ++++++++++++++++++++++++++++++++++++++++---------------------------------------- |
M | proto.h | | | 10 | +++++----- |
5 files changed, 54 insertions(+), 54 deletions(-)
diff --git a/fm.h b/fm.h
@@ -393,9 +393,9 @@ typedef struct {
#define LINK_TYPE_REV 2
typedef struct _LinkList {
char *url;
- char *title; /* Next, Contents, ... */
- char *ctype; /* Content-Type */
- char type; /* Rel, Rev */
+ char *title; /* Next, Contents, ... */
+ char *ctype; /* Content-Type */
+ char type; /* Rel, Rev */
struct _LinkList *next;
} LinkList;
@@ -846,9 +846,9 @@ global char *index_file init(NULL);
global char *CurrentDir;
global int CurrentPid;
/*
-global Buffer *Currentbuf;
-global Buffer *Firstbuf;
-*/
+ * global Buffer *Currentbuf;
+ * global Buffer *Firstbuf;
+ */
global TabBuffer *CurrentTab;
global TabBuffer *FirstTab;
global TabBuffer *LastTab;
@@ -921,7 +921,7 @@ global int useExtImageViewer init(TRUE);
global int maxLoadImage init(4);
global int image_map_list init(TRUE);
#else
-global int displayImage init(FALSE); /* XXX: emacs-w3m use display_image=off */
+global int displayImage init(FALSE); /* XXX: emacs-w3m use display_image=off */
#endif
global char *Editor init(DEF_EDITOR);
#ifdef USE_W3MMAILER
diff --git a/hash.h b/hash.h
@@ -19,7 +19,7 @@ extern void putHash_##sym(Hash_##sym *t, keytype key, type value); \
extern type getHash_##sym(Hash_##sym *t, keytype key, type failval);
defhash(char *, int, si)
-defhash(char *, char *, ss)
+ defhash(char *, char *, ss)
defhash(char *, void *, sv)
defhash(int, void *, iv)
#define defhashfunc(keytype,type,sym) \
diff --git a/istream.h b/istream.h
@@ -126,7 +126,7 @@ extern int ISfileno(InputStream stream);
extern int ISeos(InputStream stream);
#ifdef USE_SSL
extern void ssl_accept_this_site(char *hostname);
-extern Str ssl_get_certificate(SSL *ssl, char *hostname);
+extern Str ssl_get_certificate(SSL * ssl, char *hostname);
#endif
#define IST_BASIC 0
diff --git a/main.c b/main.c
@@ -3500,7 +3500,7 @@ _nextA(int visited)
x = Currentbuf->pos;
if (visited == TRUE) {
- n = hl->nmark;
+ n = hl->nmark;
}
for (i = 0; i < n; i++) {
@@ -3509,8 +3509,8 @@ _nextA(int visited)
int hseq = an->hseq + 1;
do {
if (hseq >= hl->nmark) {
- if (visited == TRUE)
- return;
+ if (visited == TRUE)
+ return;
an = pan;
goto _end;
}
@@ -3520,36 +3520,36 @@ _nextA(int visited)
an = retrieveAnchor(Currentbuf->formitem, po->line,
po->pos);
hseq++;
- if (visited == TRUE && an) {
- parseURL2(an->url, &url, baseURL(Currentbuf));
- if (getHashHist(URLHist, parsedURL2Str(&url)->ptr)) {
- goto _end;
- }
- }
+ if (visited == TRUE && an) {
+ parseURL2(an->url, &url, baseURL(Currentbuf));
+ if (getHashHist(URLHist, parsedURL2Str(&url)->ptr)) {
+ goto _end;
+ }
+ }
} while (an == NULL || an == pan);
}
else {
an = closest_next_anchor(Currentbuf->href, NULL, x, y);
- if (visited != TRUE)
- an = closest_next_anchor(Currentbuf->formitem, an, x, y);
+ if (visited != TRUE)
+ an = closest_next_anchor(Currentbuf->formitem, an, x, y);
if (an == NULL) {
- if (visited == TRUE)
- return;
+ if (visited == TRUE)
+ return;
an = pan;
break;
}
x = an->start.pos;
y = an->start.line;
- if (visited == TRUE) {
- parseURL2(an->url, &url, baseURL(Currentbuf));
- if (getHashHist(URLHist, parsedURL2Str(&url)->ptr)) {
- goto _end;
- }
- }
+ if (visited == TRUE) {
+ parseURL2(an->url, &url, baseURL(Currentbuf));
+ if (getHashHist(URLHist, parsedURL2Str(&url)->ptr)) {
+ goto _end;
+ }
+ }
}
}
if (visited == TRUE)
- return;
+ return;
_end:
if (an == NULL || an->hseq < 0)
@@ -3584,7 +3584,7 @@ _prevA(int visited)
x = Currentbuf->pos;
if (visited == TRUE) {
- n = hl->nmark;
+ n = hl->nmark;
}
for (i = 0; i < n; i++) {
@@ -3593,8 +3593,8 @@ _prevA(int visited)
int hseq = an->hseq - 1;
do {
if (hseq < 0) {
- if (visited == TRUE)
- return;
+ if (visited == TRUE)
+ return;
an = pan;
goto _end;
}
@@ -3604,36 +3604,36 @@ _prevA(int visited)
an = retrieveAnchor(Currentbuf->formitem, po->line,
po->pos);
hseq--;
- if (visited == TRUE && an) {
- parseURL2(an->url, &url, baseURL(Currentbuf));
- if (getHashHist(URLHist, parsedURL2Str(&url)->ptr)) {
- goto _end;
- }
- }
+ if (visited == TRUE && an) {
+ parseURL2(an->url, &url, baseURL(Currentbuf));
+ if (getHashHist(URLHist, parsedURL2Str(&url)->ptr)) {
+ goto _end;
+ }
+ }
} while (an == NULL || an == pan);
}
else {
an = closest_prev_anchor(Currentbuf->href, NULL, x, y);
- if (visited != TRUE)
- an = closest_prev_anchor(Currentbuf->formitem, an, x, y);
+ if (visited != TRUE)
+ an = closest_prev_anchor(Currentbuf->formitem, an, x, y);
if (an == NULL) {
- if (visited == TRUE)
- return;
+ if (visited == TRUE)
+ return;
an = pan;
break;
}
x = an->start.pos;
y = an->start.line;
- if (visited == TRUE && an) {
- parseURL2(an->url, &url, baseURL(Currentbuf));
- if (getHashHist(URLHist, parsedURL2Str(&url)->ptr)) {
- goto _end;
- }
+ if (visited == TRUE && an) {
+ parseURL2(an->url, &url, baseURL(Currentbuf));
+ if (getHashHist(URLHist, parsedURL2Str(&url)->ptr)) {
+ goto _end;
+ }
+ }
}
}
- }
if (visited == TRUE)
- return;
+ return;
_end:
if (an == NULL || an->hseq < 0)
diff --git a/proto.h b/proto.h
@@ -118,7 +118,7 @@ extern void stopI(void);
#endif
#ifdef USE_ALARM
extern void setAlarm(void);
-extern AlarmEvent *setAlarmEvent(AlarmEvent *event, int sec, short status,
+extern AlarmEvent *setAlarmEvent(AlarmEvent * event, int sec, short status,
int cmd, void *data);
#else
#define setAlarm nulcmd
@@ -212,7 +212,7 @@ extern void HTMLlineproc0(char *istr, struct html_feed_environ *h_env,
extern Buffer *loadHTMLBuffer(URLFile *f, Buffer *newBuf);
extern char *convert_size(clen_t size, int usefloat);
extern char *convert_size2(clen_t size1, clen_t size2, int usefloat);
-extern void showProgress(clen_t *linelen, clen_t *trbyte);
+extern void showProgress(clen_t * linelen, clen_t * trbyte);
extern void init_henv(struct html_feed_environ *, struct readbuffer *,
struct environment *, int, TextLineList *, int, int);
extern void completeHTMLstream(struct html_feed_environ *,
@@ -250,7 +250,7 @@ extern void readHeader(URLFile *uf, Buffer *newBuf, int thru, ParsedURL *pu);
extern char *checkHeader(Buffer *buf, char *field);
extern TabBuffer *newTab(void);
extern void calcTabPos(void);
-extern TabBuffer *deleteTab(TabBuffer *tab);
+extern TabBuffer *deleteTab(TabBuffer * tab);
extern void addDownloadList(pid_t pid, char *url, char *save, char *lock,
clen_t size);
extern void stopDownload(void);
@@ -422,7 +422,7 @@ extern void set_int(void);
extern void getTCstr(void);
extern void setlinescols(void);
extern void setupscreen(void);
-extern pid_t open_pipe_rw(FILE **fr, FILE **fw);
+extern pid_t open_pipe_rw(FILE ** fr, FILE ** fw);
extern int initscr(void);
extern int write1(char c);
extern void endline(void);
@@ -612,7 +612,7 @@ extern char *url_unquote_conv(char *url, char code);
extern char *expandName(char *name);
extern Str tmpfname(int type, char *ext);
extern time_t mymktime(char *timestr);
-extern void (*mySignal(int signal_number, void (*action)(int)))(int);
+extern void (*mySignal(int signal_number, void (*action) (int))) (int);
#ifdef USE_COOKIE
extern char *FQDN(char *host);
extern Str find_cookie(ParsedURL *pu);