aboutsummaryrefslogtreecommitdiff
path: root/defines.h.in
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2012-11-04 20:47:39 +0000
committerXin LI <delphij@FreeBSD.org>2012-11-04 20:47:39 +0000
commit55772d5d72ea3532365f6c31b4599229763e64b1 (patch)
treebd9a3fd634e94850ccb1a2e5934cc981b30f9eb2 /defines.h.in
parent9fd1a2751f1696d0214ae5bd77550d31eb4dcd2e (diff)
downloadsrc-55772d5d72ea3532365f6c31b4599229763e64b1.tar.gz
src-55772d5d72ea3532365f6c31b4599229763e64b1.zip
Vendor import of less v453 (beta).vendor/less/v453
Notes
Notes: svn path=/vendor/less/dist/; revision=242581 svn path=/vendor/less/v453/; revision=242582; tag=vendor/less/v453
Diffstat (limited to 'defines.h.in')
-rw-r--r--defines.h.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/defines.h.in b/defines.h.in
index a5e8b69d6406..658faecc21fc 100644
--- a/defines.h.in
+++ b/defines.h.in
@@ -182,6 +182,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 */
@@ -191,6 +192,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. */