aboutsummaryrefslogtreecommitdiffstats
path: root/mailcap.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-29 09:34:14 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-29 09:34:14 +0000
commitc33cdfcd56cf8bc964bb0e82684fedc7f532d259 (patch)
tree4696c5ee6f959dfbe0b7da9bf58e4c23c27cd584 /mailcap.c
parent[w3m-dev 02579] Use environment variables CC, CFLAGS, LDFLAGS (diff)
downloadw3m-c33cdfcd56cf8bc964bb0e82684fedc7f532d259.tar.gz
w3m-c33cdfcd56cf8bc964bb0e82684fedc7f532d259.zip
[w3m-dev 02584] code cleanup again
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--mailcap.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/mailcap.c b/mailcap.c
index ebad89d..bc98341 100644
--- a/mailcap.c
+++ b/mailcap.c
@@ -1,4 +1,4 @@
-/* $Id: mailcap.c,v 1.6 2001/11/24 02:01:26 ukai Exp $ */
+/* $Id: mailcap.c,v 1.7 2001/11/29 09:34:15 ukai Exp $ */
#include "fm.h"
#include "myctype.h"
#include <stdio.h>
@@ -300,15 +300,15 @@ quote_mailcap(char *s, int flag)
static Str
-unquote_mailcap_loop(char *qstr, char *type, char *name, char *attr, int *stat,
- int flag0)
+unquote_mailcap_loop(char *qstr, char *type, char *name, char *attr,
+ int *mc_stat, int flag0)
{
Str str, tmp, test, then;
char *p;
int status = MC_NORMAL, prev_status = MC_NORMAL, sp = 0, flag;
- if (stat)
- *stat = 0;
+ if (mc_stat)
+ *mc_stat = 0;
if (qstr == NULL)
return NULL;
@@ -357,15 +357,15 @@ unquote_mailcap_loop(char *qstr, char *type, char *name, char *attr, int *stat,
case 's':
if (name) {
Strcat_charp(str, quote_mailcap(name, flag)->ptr);
- if (stat)
- *stat |= MCSTAT_REPNAME;
+ if (mc_stat)
+ *mc_stat |= MCSTAT_REPNAME;
}
break;
case 't':
if (type) {
Strcat_charp(str, quote_mailcap(type, flag)->ptr);
- if (stat)
- *stat |= MCSTAT_REPTYPE;
+ if (mc_stat)
+ *mc_stat |= MCSTAT_REPTYPE;
}
break;
}
@@ -401,8 +401,8 @@ unquote_mailcap_loop(char *qstr, char *type, char *name, char *attr, int *stat,
(q == attr || IS_SPACE(*(q - 1)) || *(q - 1) == ';') &&
matchattr(q, tmp->ptr, tmp->length, &tmp)) {
Strcat_charp(str, quote_mailcap(tmp->ptr, flag)->ptr);
- if (stat)
- *stat |= MCSTAT_REPPARAM;
+ if (mc_stat)
+ *mc_stat |= MCSTAT_REPPARAM;
}
status = MC_NORMAL;
}
@@ -416,7 +416,7 @@ unquote_mailcap_loop(char *qstr, char *type, char *name, char *attr, int *stat,
}
Str
-unquote_mailcap(char *qstr, char *type, char *name, char *attr, int *stat)
+unquote_mailcap(char *qstr, char *type, char *name, char *attr, int *mc_stat)
{
- return unquote_mailcap_loop(qstr, type, name, attr, stat, 0);
+ return unquote_mailcap_loop(qstr, type, name, attr, mc_stat, 0);
}