[Mew-dist 13533] RE: 冒険家バージョン
KOIE Hidetaka ( 鯉江英隆 )
hide at example.com
2000年 7月 7日 (金) 17:38:51 JST
From: Kazu Yamamoto (山本和彦) <kazu at example.com>
Subject: [Mew-dist 13516] 冒険家バージョン
Date: Fri, 7 Jul 2000 16:13:20 +0900
| mewls というコマンドが bin の下にありますので、
安全指向なので、とりあえずmewlsを試してみました。
添付したメイルを喰ったところでおなくなりになったので
あてずっぽうですが直してみました。
--
KOIE Hidetaka 鯉江英隆 <hide at example.com>
-------------- next part --------------
H4sIAAAAAAAAA41YW3MiuRV+jqv8H7TzktkK9IIxtmE3W40BX8F2gcdOKklNiW7RLdMtEUlt
hv31+Y66sT0DjndqZpBOnyOd+0UD7kSXPYq4xppszA07aDQarNHuHrS7rQb7W6OD7eer6f3P
+3sTEQn5LOIu+zw3Omc2k9aFmY54lmrrgPGX2ZrlwgIglQgSVQTaJOzzSdAJmvwX//MzkzG7
6/WarZOjg19Bcl+IGjvosDMxKy9v4vJm9/CI1RvtRuPttf7WnMusrgsXPEsrgwiQzwteLMQb
wL8OGp2gc0J/Dw7+82f5WkmXsuF0fH9HLF73egeHrcMjEM+1Yb9JNdf16NmGSyOWAZdBLl0g
4uL3X9m2BA2w320035Eg5WYpBfvcPD6sH7eCeK14LqNt9vE9OG698L8t9x20PpffKtaJc6CC
93a71Wi0jvudHbw1Ot3DNv6CtyMybd+b9gx8ddmnKw4tsYl81ib+xH67Klfh5sbf9/fuNdAe
ZZZJnrM+lwpoKxeFsbSRfhamrmAI/Pu9tr/Hqj+fHoWK12wqskwYSwRPtlxDmTqWyXqbgseC
9bVW+E4EUbkMC7sSdvuCB2kSmbELveKe8efUr0KpnDBORGldqshL8D3VYiHZI8+cJjH8Nii3
4dxEeovgHkqf8kwrsQC+s+Xyg1uI6JQbxWdrIpqVyw+J4pjda5NrQaw5Vy5DCL4UJhJLJ7Wy
22RScTYWxBknsijIy02YR3KlTRbvIMnZBTcZp3tSvwiBsyzAHqyzhT8tLH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OBjIRC
LOFTYHC1sCiW9YGYyTLi/weyOzGEUBoAAA==
-------------- next part --------------
*** mewls.c.org Fri Jul 7 16:35:56 2000
--- mewls.c Fri Jul 7 17:21:08 2000
*************** expandfolder(char *fld) {
*** 60,75 ****
}
char *
! nextline(char *p, char *lim) {
while (p < lim) {
! if (*p == '\r') {
! if (*(p + 1) == '\n') p++;
break;
! } else if (*p == '\n')
break;
p++;
}
p++;
if (p < lim)
return p;
else
--- 60,77 ----
}
char *
! nextline(char *p, char *lim, char **app) {
while (p < lim) {
! if (*p == '\n')
break;
! else if (*p == '\r') {
! if (p + 1 < lim && *(p + 1) == '\n') p++;
break;
+ }
p++;
}
p++;
+ *app = p;
if (p < lim)
return p;
else
*************** nextline(char *p, char *lim) {
*** 78,92 ****
char *
nextfield(char *p, char *lim, char **app) {
- int i = 0;
- *app = NULL;
-
do {
! p = nextline(p, lim);
if (p == NULL) return NULL;
- i++;
- if (i == FIELD_MAX_LEN)
- *app = p;
} while (*p == ' ' || *p == '\t');
return p;
}
--- 80,88 ----
char *
nextfield(char *p, char *lim, char **app) {
do {
! p = nextline(p, lim, app);
if (p == NULL) return NULL;
} while (*p == ' ' || *p == '\t');
return p;
}
*************** dumpheader(FILE *fp, char *fname) {
*** 109,121 ****
if (strncasecmp(FIELDS[i], p, SLEN[i]) == 0) {
BEGP[i] = p;
p = nextfield(p, limp, &end);
! if (end != NULL)
! ENDP[i] = end;
! else if (p == NULL) {
! ENDP[i] = limp;
goto final;
- } else
- ENDP[i] = p;
break;
}
i++;
--- 105,113 ----
if (strncasecmp(FIELDS[i], p, SLEN[i]) == 0) {
BEGP[i] = p;
p = nextfield(p, limp, &end);
! ENDP[i] = end;
! if (p == NULL)
goto final;
break;
}
i++;
*************** dumpheader(FILE *fp, char *fname) {
*** 132,145 ****
final:
printf("Filename: %s\n", fname);
! for (i = 0; i < N; i++)
if (BEGP[i] != NULL) {
! p = BEGP[i];
! while (p < ENDP[i]) {
! putchar(*p);
! p++;
! }
}
printf("\n");
fflush(stdout);
--- 124,137 ----
final:
printf("Filename: %s\n", fname);
! for (i = 0; i < N; i++) {
if (BEGP[i] != NULL) {
! int lastchar = *(ENDP[i] - 1);
! fwrite(BEGP[i], sizeof (char), ENDP[i] - BEGP[i], stdout);
! if (lastchar != '\n' && lastchar != '\r')
! printf(" ...\n");
}
+ }
printf("\n");
fflush(stdout);
*************** scanfolder(char *fld) {
*** 214,220 ****
continue;
if (numfile(fname)) {
! if (n >= m - 1) {
m += SIZE;
list = (int *) realloc(list, m * sizeof(int));
}
--- 206,212 ----
continue;
if (numfile(fname)) {
! if (n > m - 1) {
m += SIZE;
list = (int *) realloc(list, m * sizeof(int));
}
Mew-dist メーリングリストの案内