From: Peter Avalos Date: Sun, 3 Jun 2007 04:23:45 +0000 (+0000) Subject: Upgrade to less version 403. X-Git-Tag: v2.0.1~2927 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/a5e5dba49eedb9b31cd35606ec5763ee7389d571 Upgrade to less version 403. These are the differences between version 394 and version 403: -Allow decimal point in number for % (percent) command. -Allow decimal point in number for -j option (fraction of screen height). -Make n command fetch previous pattern from history file on first search. -Don't rewrite history file if it has not changed. -Don't move to bottom of screen on first page. -Don't output extraneous newlines, so copy & pasting lines from the output works better. -The -c option has been made identical with the -C option. -Allow "/dev/null" as synomym for "-" in LESSHISTFILE to indicate that no history file should be used. -Better compatibility with POSIX more specification. -Make -f work for directories. -Make "t" cmd traverse tags in the correct order. -Allow a few binary characters in the input file before warning that the file is binary. -Don't warn that file is binary if it merely contains ANSI color sequences and -R is in effect. -Update Unicode character tables. -Fix bug when filename contains certain shell metacharacters such as "$". -Fix bug when resizing the window while waiting for input from a pipe. --- diff --git a/usr.bin/less/Makefile.common b/usr.bin/less/Makefile.common index 32761ccdce..41b5a23332 100644 --- a/usr.bin/less/Makefile.common +++ b/usr.bin/less/Makefile.common @@ -1,7 +1,7 @@ # $FreeBSD: src/usr.bin/less/Makefile.common,v 1.3.2.1 2000/06/30 01:03:15 ps Exp $ -# $DragonFly: src/usr.bin/less/Makefile.common,v 1.5 2006/10/08 14:52:37 pavalos Exp $ +# $DragonFly: src/usr.bin/less/Makefile.common,v 1.6 2007/06/03 04:23:45 pavalos Exp $ -LSDIR= ${.CURDIR}/../../contrib/less-394 +LSDIR= ${.CURDIR}/../../contrib/less-403 .PATH: ${LSDIR} CFLAGS+=-I${.CURDIR}/../less -I${LSDIR} diff --git a/usr.bin/less/defines.h b/usr.bin/less/defines.h index fae078eba0..3bda417057 100644 --- a/usr.bin/less/defines.h +++ b/usr.bin/less/defines.h @@ -1,6 +1,6 @@ -/* defines.h. Generated by configure. */ +/* defines.h. Generated from defines.h.in by configure. */ /* defines.h.in. Generated from configure.ac by autoheader. */ -/* $DragonFly: src/usr.bin/less/defines.h,v 1.4 2006/10/08 14:52:37 pavalos Exp $ */ +/* $DragonFly: src/usr.bin/less/defines.h,v 1.5 2007/06/03 04:23:45 pavalos Exp $ */ /* Unix definition file for less. -*- C -*- @@ -48,7 +48,7 @@ #define CMD_HISTORY 1 /* - * HILITE_SEARCH is 1 if you wish to have search targets to be + * HILITE_SEARCH is 1 if you wish to have search targets to be * displayed in standout mode. */ #define HILITE_SEARCH 1 @@ -66,7 +66,7 @@ #define TAGS (!SECURE) /* - * USERFILE is 1 if you wish to allow a .less file to specify + * USERFILE is 1 if you wish to allow a .less file to specify * user-defined key bindings. */ #define USERFILE (!SECURE) @@ -103,10 +103,10 @@ #define ONLY_RETURN 0 /* - * LESSKEYFILE is the filename of the default lesskey output file + * LESSKEYFILE is the filename of the default lesskey output file * (in the HOME directory). * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file. - * DEF_LESSKEYINFILE is the filename of the default lesskey input + * DEF_LESSKEYINFILE is the filename of the default lesskey input * (in the HOME directory). * LESSHISTFILE is the filename of the history file * (in the HOME directory). @@ -129,6 +129,12 @@ */ #define PATHNAME_SEP "/" +/* + * The value returned from tgetent on success. + * Some HP-UX systems return 0 on success. + */ +#define TGETENT_OK 1 + /* * HAVE_SYS_TYPES_H is 1 if your system has . */ @@ -158,14 +164,23 @@ /* * Default shell metacharacters and meta-escape character. */ -#define DEF_METACHARS "; *?\t\n'\"()<>[]|&^`#\\" +#define DEF_METACHARS "; *?\t\n'\"()<>[]|&^`#\\$%=~" #define DEF_METAESCAPE "\\" -/* +/* * HAVE_DUP is 1 if your system has the dup() call. */ #define HAVE_DUP 1 +/* Define to 1 if you have the memcpy() function. */ +#define HAVE_MEMCPY 1 + +/* Define to 1 if you have the strchr() function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the strstr() function. */ +#define HAVE_STRSTR 1 + /* * Sizes of various buffers. */ @@ -227,9 +242,6 @@ /* Define HAVE_LOCALE if you have locale.h and setlocale. */ #define HAVE_LOCALE 1 -/* Define to 1 if you have the `memcpy' function. */ -#define HAVE_MEMCPY 1 - /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 @@ -263,8 +275,8 @@ /* Define to 1 if you have the `sigsetmask' function. */ #define HAVE_SIGSETMASK 1 -/* Define HAVE_SIGSET_T you have the sigset_t type. */ -/* #undef HAVE_SIGSET_T */ +/* Define to 1 if the system has the type `sigset_t'. */ +#define HAVE_SIGSET_T 1 /* Define to 1 if you have the `snprintf' function. */ #define HAVE_SNPRINTF 1 @@ -281,9 +293,6 @@ /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 -/* Define to 1 if you have the `strchr' function. */ -#define HAVE_STRCHR 1 - /* Define HAVE_STRERROR if you have the strerror() function. */ #define HAVE_STRERROR 1 @@ -293,9 +302,6 @@ /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 -/* Define to 1 if you have the `strstr' function. */ -#define HAVE_STRSTR 1 - /* Define to 1 if you have the `system' function. */ #define HAVE_SYSTEM 1 @@ -305,9 +311,6 @@ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_PTEM_H */ - /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 @@ -403,8 +406,8 @@ /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ -/* Define to `long' if does not define. */ +/* Define to `long int' if does not define. */ /* #undef off_t */ -/* Define to `unsigned' if does not define. */ +/* Define to `unsigned int' if does not define. */ /* #undef size_t */