]> code.delx.au - gnu-emacs/commitdiff
[macintosh]: Set KBD_BUFFER_SIZE to a smaller value
authorRichard M. Stallman <rms@gnu.org>
Fri, 3 Sep 1999 18:48:46 +0000 (18:48 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 3 Sep 1999 18:48:46 +0000 (18:48 +0000)
(512) because Mac compilers limit local data of a function to 32K.

src/keyboard.c

index a50322f42560d432ca961dd9c93544b2d93d4714..93feb45ca881d2432ecdde23bb36dd1c8fcfba99 100644 (file)
@@ -84,7 +84,12 @@ extern int input_fd;
 
 #ifdef HAVE_WINDOW_SYSTEM
 /* Make all keyboard buffers much bigger when using X windows.  */
+#ifdef macintosh
+/* But not too big (local data > 32K error) if on macintosh */
+#define KBD_BUFFER_SIZE 512
+#else
 #define KBD_BUFFER_SIZE 4096
+#endif
 #else  /* No X-windows, character input */
 #define KBD_BUFFER_SIZE 256
 #endif /* No X-windows */