Merge pull request #334 from model101/buf1kdev

LUAL_BUFFERSIZE back to 1K and warning notice added
This commit is contained in:
zeroday 2015-04-06 00:01:12 +08:00
commit 68607e3d2e
1 changed files with 5 additions and 1 deletions

View File

@ -541,8 +541,12 @@ extern int readline4lua(const char *prompt, char *buffer, int length);
/*
@@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system.
** Attention: This value should probably not be set higher than 1K.
** The size has direct impact on the C stack size needed be auxlib functions.
** For example: If set to 4K a call to string.gsub will need more than
** 5k C stack space.
*/
#define LUAL_BUFFERSIZE ((BUFSIZ)*4)
#define LUAL_BUFFERSIZE BUFSIZ
/* }================================================================== */