singlebyte compile fixes

This commit is contained in:
Gunnar Ritter 2005-02-15 16:55:39 +00:00
parent 22e0a4753c
commit 280906a241
3 changed files with 6 additions and 6 deletions

4
ex.h
View File

@ -72,7 +72,7 @@
*
* from ex.h 7.7.1.1 (Berkeley) 8/12/86
*
* @(#)ex.h 1.50 (gritter) 2/13/05
* @(#)ex.h 1.51 (gritter) 2/15/05
*/
/*
@ -333,6 +333,7 @@ extern struct option options[NOPTS + 1];
* -DISO8859_1 enables all characters >= 0240 regardless of
* LC_CTYPE.
*/
#define INVBIT 0x20000000
#define MULTICOL 0x40000000
#if defined (MB)
@ -343,7 +344,6 @@ extern struct option options[NOPTS + 1];
typedef int cell;
var int TRIM;
var int QUOTE;
#define INVBIT 0x20000000
#define printable(c) (((c)&INVBIT) == 0 && \
(mb_cur_max > 1 ? iswprint((c)&TRIM) : isprint((c)&TRIM)))
#define ext(c) (((c) & 0177) == 0)

View File

@ -70,7 +70,7 @@
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* @(#)ex_proto.h 1.25 (gritter) 1/2/05
* @(#)ex_proto.h 1.26 (gritter) 2/15/05
*/
/*
@ -187,8 +187,8 @@ extern void checkmodeline(char *);
#ifdef MB
extern int mbtowi(int *c, const char *s, size_t n);
extern int widthok(int c);
extern int GETWC(char *);
#endif /* MB */
extern int GETWC(char *);
/* ex_put.c */
extern int (*setlist(int))(int);
extern void (*setnumb(int))(int);

View File

@ -73,7 +73,7 @@
#ifndef lint
#ifdef DOSCCS
static char sccsid[] = "@(#)ex_vget.c 1.28 (gritter) 1/20/05";
static char sccsid[] = "@(#)ex_vget.c 1.29 (gritter) 2/15/05";
#endif
#endif
@ -576,10 +576,10 @@ static void
imacpush(int *ip, int canundo)
{
char buf[BUFSIZ], *bp = buf;
int n;
#ifdef MB
do {
int n;
n = wctomb(bp, *ip&TRIM);
bp += n;
} while (*ip++);