w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit b953d4244535d34be45fe324a9757b98903f8db6
parent e5ea85e0157c4c95a3f302b6bc12ebffe9d4c0dc
Author: ukai <ukai>
Date:   Fri, 30 Nov 2001 10:00:06 +0000

run make indent

Diffstat:
Mfile.c | 25+++++++++++++------------
Mmailcap.c | 2+-
Mmain.c | 2+-
3 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/file.c b/file.c @@ -143,6 +143,7 @@ char *violations[COO_EMAX] = { }; #endif +/* *INDENT-OFF* */ static struct compression_decoder { int type; char *ext; @@ -152,16 +153,17 @@ static struct compression_decoder { char *name; char *encoding; } compression_decoders[] = { - {CMP_COMPRESS, ".gz", "application/x-gzip", - 0, GUNZIP_CMDNAME, GUNZIP_NAME, "gzip"}, - {CMP_COMPRESS, ".Z", "application/x-compress", - 0, GUNZIP_CMDNAME, GUNZIP_NAME, "compress"}, - {CMP_BZIP2, ".bz2", "application/x-bzip", - 0, BUNZIP2_CMDNAME, BUNZIP2_NAME, "bzip, bzip2"}, - {CMP_DEFLATE, NULL, "application/x-deflate", - 1, INFLATE_CMDNAME, INFLATE_NAME, "deflate"}, - {CMP_NOCOMPRESS, NULL, NULL, 0, NULL, NULL, NULL}, + { CMP_COMPRESS, ".gz", "application/x-gzip", + 0, GUNZIP_CMDNAME, GUNZIP_NAME, "gzip"}, + { CMP_COMPRESS, ".Z", "application/x-compress", + 0, GUNZIP_CMDNAME, GUNZIP_NAME, "compress"}, + { CMP_BZIP2, ".bz2", "application/x-bzip", + 0, BUNZIP2_CMDNAME, BUNZIP2_NAME, "bzip, bzip2"}, + { CMP_DEFLATE, NULL, "application/x-deflate", + 1, INFLATE_CMDNAME, INFLATE_NAME, "deflate"}, + { CMP_NOCOMPRESS, NULL, NULL, 0, NULL, NULL, NULL}, }; +/* *INDENT-ON* */ #define SAVE_BUF_SIZE 1536 @@ -267,7 +269,7 @@ static char * compress_application_type(int compression) { struct compression_decoder *d; - + for (d = compression_decoders; d->type != CMP_NOCOMPRESS; d++) { if (d->type == compression) return d->mime_type; @@ -371,8 +373,7 @@ check_command(char *cmd, int libfile_p) Strcat_charp(pathname, p); Strcat_char(pathname, '/'); Strcat_charp(pathname, cmd); - if (stat(pathname->ptr, &st) == 0 - && S_ISREG(st.st_mode) + if (stat(pathname->ptr, &st) == 0 && S_ISREG(st.st_mode) && (st.st_mode & S_IXANY) != 0) return 1; } diff --git a/mailcap.c b/mailcap.c @@ -251,7 +251,7 @@ acceptableMimeTypes() /* generate acceptable media types */ l = newTextList(); - mhash = newHash_si(16); /* XXX */ + mhash = newHash_si(16); /* XXX */ pushText(l, "text"); putHash_si(mhash, "text", 1); pushText(l, "image"); diff --git a/main.c b/main.c @@ -3763,7 +3763,7 @@ _peekURL(int only_img) } a = (only_img ? NULL : retrieveCurrentAnchor(Currentbuf)); if (a == NULL) { - a = (only_img ? NULL :retrieveCurrentForm(Currentbuf)); + a = (only_img ? NULL : retrieveCurrentForm(Currentbuf)); if (a == NULL) { a = retrieveCurrentImg(Currentbuf); if (a == NULL) {