Mercurial > hg > Applications > mh
comparison uip/mshcmds.c @ 12:441a2190cfae
Lion fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 21 Apr 2012 13:10:49 +0900 |
parents | a6481689f99c |
children | 07f8972434be |
comparison
equal
deleted
inserted
replaced
11:5cf052bee63d | 12:441a2190cfae |
---|---|
1 /* mshcmds.c - command handlers in msh */ | 1 /* mshcmds.c - command handlers in msh */ |
2 #ifndef lint | 2 #ifndef lint |
3 static char ident[] = "@(#)$Id$"; | 3 static char ident[] = "@(#)$Id: mshcmds.c,v 1.2 2006/12/05 18:18:13 kono Exp $"; |
4 #endif /* lint */ | 4 #endif /* lint */ |
5 | 5 |
6 #include "../h/mh.h" | 6 #include "../h/mh.h" |
7 #include "../h/dropsbr.h" | 7 #include "../h/dropsbr.h" |
8 #include "../h/formatsbr.h" | 8 #include "../h/formatsbr.h" |
10 #include "../zotnet/tws.h" | 10 #include "../zotnet/tws.h" |
11 #ifdef _AIX /* AIX 1.2.1 <stdio.h> declares getws() */ | 11 #ifdef _AIX /* AIX 1.2.1 <stdio.h> declares getws() */ |
12 #define getws _getws | 12 #define getws _getws |
13 #endif | 13 #endif |
14 #include <stdio.h> | 14 #include <stdio.h> |
15 #include <unistd.h> | |
15 #ifdef _AIX | 16 #ifdef _AIX |
16 #undef getws | 17 #undef getws |
17 #endif | 18 #endif |
18 #include "../zotnet/mts.h" | 19 #include "../zotnet/mts.h" |
19 #include <ctype.h> | 20 #include <ctype.h> |
1525 ? " (private)" : "", | 1526 ? " (private)" : "", |
1526 empty(m_seq (mp, mp -> msgattrs[i]))); | 1527 empty(m_seq (mp, mp -> msgattrs[i]))); |
1527 else | 1528 else |
1528 for (seqp = 0; seqs[seqp]; seqp++) | 1529 for (seqp = 0; seqs[seqp]; seqp++) |
1529 printf ("%s%s: %s\n", seqs[seqp], | 1530 printf ("%s%s: %s\n", seqs[seqp], |
1530 empty(m_seq (mp, seqs[seqp]))); | 1531 empty(m_seq (mp, seqs[seqp])),""); |
1531 #undef empty | 1532 #undef empty |
1532 | 1533 |
1533 interrupted = 0; | 1534 interrupted = 0; |
1534 if (debugsw) | 1535 if (debugsw) |
1535 for (msgnum = mp -> lowsel; | 1536 for (msgnum = mp -> lowsel; |