summaryrefslogtreecommitdiff
path: root/usr.bin/less
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2012-11-04 20:52:26 +0000
committerXin LI <delphij@FreeBSD.org>2012-11-04 20:52:26 +0000
commit4cc5fc9a0c04cf870021cb1b68364f9c20bcdfc6 (patch)
treeb59381a05b9930b94cf3f77c8c6e4df5a9c315ca /usr.bin/less
parenta016af99a930d27a6c5af37ea76117dda456b1a5 (diff)
parent55772d5d72ea3532365f6c31b4599229763e64b1 (diff)
downloadsrc-test-4cc5fc9a0c04cf870021cb1b68364f9c20bcdfc6.tar.gz
src-test-4cc5fc9a0c04cf870021cb1b68364f9c20bcdfc6.zip
MFV: less v453.
Notes
Notes: svn path=/head/; revision=242584
Diffstat (limited to 'usr.bin/less')
-rw-r--r--usr.bin/less/defines.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr.bin/less/defines.h b/usr.bin/less/defines.h
index fe8f1bcd49ce3..5a5fca370c528 100644
--- a/usr.bin/less/defines.h
+++ b/usr.bin/less/defines.h
@@ -184,6 +184,7 @@
/*
* Sizes of various buffers.
*/
+#if 0 /* old sizes for small memory machines
#define CMDBUF_SIZE 512 /* Buffer for multichar commands */
#define UNGOT_SIZE 100 /* Max chars to unget() */
#define LINEBUF_SIZE 1024 /* Max size of line in input file */
@@ -193,6 +194,17 @@
#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */
#define TAGLINE_SIZE 512 /* Max size of line in tags file */
#define TABSTOP_MAX 32 /* Max number of custom tab stops */
+#else /* more reasonable sizes for modern machines */
+#define CMDBUF_SIZE 2048 /* Buffer for multichar commands */
+#define UNGOT_SIZE 200 /* Max chars to unget() */
+#define LINEBUF_SIZE 1024 /* Initial max size of line in input file */
+#define OUTBUF_SIZE 1024 /* Output buffer */
+#define PROMPT_SIZE 2048 /* Max size of prompt string */
+#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */
+#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */
+#define TAGLINE_SIZE 1024 /* Max size of line in tags file */
+#define TABSTOP_MAX 128 /* Max number of custom tab stops */
+#endif
/* Settings automatically determined by configure. */