From e8e01073071369d33ab4cf61be05bebe5a65566e Mon Sep 17 00:00:00 2001 From: Jason Downs Date: Sat, 21 Sep 1996 06:23:56 +0000 Subject: update to vim 4.4beta --- usr.bin/vim/unix.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'usr.bin/vim/unix.h') diff --git a/usr.bin/vim/unix.h b/usr.bin/vim/unix.h index b06739bf7b9..bf67c8c91d4 100644 --- a/usr.bin/vim/unix.h +++ b/usr.bin/vim/unix.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unix.h,v 1.1 1996/09/07 21:40:27 downsj Exp $ */ +/* $OpenBSD: unix.h,v 1.2 1996/09/21 06:23:25 downsj Exp $ */ /* vi:set ts=4 sw=4: * * VIM - Vi IMproved by Bram Moolenaar @@ -90,7 +90,9 @@ #if HAVE_DIRENT_H # include +# ifndef NAMLEN # define NAMLEN(dirent) strlen((dirent)->d_name) +# endif #else # define dirent direct # define NAMLEN(dirent) (dirent)->d_namlen @@ -135,6 +137,8 @@ # define MAXNAMLEN 512 /* for all other Unix */ #endif +#define BASENAMELEN (MAXNAMLEN - 5) + #ifdef HAVE_ERRNO_H # include #endif @@ -206,13 +210,15 @@ #endif #ifdef OS2 -#define TMPNAME1 "$TMP/viXXXXXX" -#define TMPNAME2 "$TMP/voXXXXXX" -#define TMPNAMELEN 128 +/* + * Try several directories to put the temp files. + */ +#define TEMPDIRNAMES "$TMP", "$TEMP", "c:\\TMP", "c:\\TEMP", "" +#define TEMPNAME "v?XXXXXX" +#define TEMPNAMELEN 128 #else -#define TMPNAME1 "/tmp/viXXXXXX" -#define TMPNAME2 "/tmp/voXXXXXX" -#define TMPNAMELEN 15 +#define TEMPNAME "/tmp/v?XXXXXX" +#define TEMPNAMELEN 15 #endif /* @@ -232,8 +238,6 @@ # define MAXMEMTOT 2048 /* use up to 2048Kbyte for Vim */ #endif -#define BASENAMELEN (MAXNAMLEN - 5) - /* memmove is not present on all systems, use memmove, bcopy, memcpy or our * own version */ /* Some systems have (void *) arguments, some (char *). If we use (char *) it -- cgit v1.2.3