Mercurial > hg > Applications > mh
comparison uip/burst.c @ 16:07f8972434be
fix for Yosemita Clang
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 12 Nov 2014 02:46:27 +0900 |
parents | 441a2190cfae |
children |
comparison
equal
deleted
inserted
replaced
15:1891194b739c | 16:07f8972434be |
---|---|
8 #include <sys/types.h> | 8 #include <sys/types.h> |
9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
10 #ifdef LOCALE | 10 #ifdef LOCALE |
11 #include <locale.h> | 11 #include <locale.h> |
12 #endif | 12 #endif |
13 | 13 #include <unistd.h> |
14 static cpybrst(), burst(); | 14 |
15 | |
16 static void cpybrst(), burst(); | |
15 /* */ | 17 /* */ |
16 | 18 |
17 static struct swit switches[] = { | 19 static struct swit switches[] = { |
18 #define INPLSW 0 | 20 #define INPLSW 0 |
19 "inplace", 0, | 21 "inplace", 0, |
50 | 52 |
51 /* */ | 53 /* */ |
52 | 54 |
53 /* ARGSUSED */ | 55 /* ARGSUSED */ |
54 | 56 |
57 int | |
55 main (argc, argv) | 58 main (argc, argv) |
56 int argc; | 59 int argc; |
57 char **argv; | 60 char **argv; |
58 { | 61 { |
59 int inplace = 0, | 62 int inplace = 0, |
88 (void) copyip (argv + 1, ap); | 91 (void) copyip (argv + 1, ap); |
89 argp = arguments; | 92 argp = arguments; |
90 | 93 |
91 /* */ | 94 /* */ |
92 | 95 |
93 while (cp = *argp++) { | 96 while ((cp = *argp++)) { |
94 if (*cp == '-') | 97 if (*cp == '-') |
95 switch (smatch (++cp, switches)) { | 98 switch (smatch (++cp, switches)) { |
96 case AMBIGSW: | 99 case AMBIGSW: |
97 ambigsw (cp, switches); | 100 ambigsw (cp, switches); |
98 done (1); | 101 done (1); |
183 done (0); | 186 done (0); |
184 } | 187 } |
185 | 188 |
186 /* */ | 189 /* */ |
187 | 190 |
188 static burst (smsgs, msgnum, inplace, quietsw, verbosw) | 191 static void burst (smsgs, msgnum, inplace, quietsw, verbosw) |
189 register struct smsg *smsgs; | 192 register struct smsg *smsgs; |
190 int msgnum, | 193 int msgnum, |
191 inplace, | 194 inplace, |
192 quietsw, | 195 quietsw, |
193 verbosw; | 196 verbosw; |
334 | 337 |
335 #define S1 0 | 338 #define S1 0 |
336 #define S2 1 | 339 #define S2 1 |
337 #define S3 2 | 340 #define S3 2 |
338 | 341 |
339 static cpybrst (in, out, ifile, ofile, len) | 342 static void cpybrst (in, out, ifile, ofile, len) |
340 register FILE *in, | 343 register FILE *in, |
341 *out; | 344 *out; |
342 register char *ifile, | 345 register char *ifile, |
343 *ofile; | 346 *ofile; |
344 register int len; | 347 register int len; |