diff options
| author | Xin LI <delphij@FreeBSD.org> | 2012-11-04 20:47:39 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2012-11-04 20:47:39 +0000 |
| commit | 55772d5d72ea3532365f6c31b4599229763e64b1 (patch) | |
| tree | bd9a3fd634e94850ccb1a2e5934cc981b30f9eb2 /defines.o2 | |
| parent | 9fd1a2751f1696d0214ae5bd77550d31eb4dcd2e (diff) | |
Diffstat (limited to 'defines.o2')
| -rw-r--r-- | defines.o2 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/defines.o2 b/defines.o2 index d71cf347eb94..578091d19673 100644 --- a/defines.o2 +++ b/defines.o2 @@ -166,6 +166,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 */ @@ -175,6 +176,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 /* Define to `long' if <sys/types.h> doesn't define. */ /* #define off_t long */ |
