new scheme for configuration through `luaconf.h'

This commit is contained in:
Roberto Ierusalimschy
2004-04-30 17:13:38 -03:00
parent 079facab40
commit b4cd38ba6c
34 changed files with 176 additions and 395 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstrlib.c,v 1.100 2003/10/07 20:13:41 roberto Exp roberto $
** $Id: lstrlib.c,v 1.101 2004/01/02 11:54:14 roberto Exp roberto $
** Standard library for string operations and pattern-matching
** See Copyright Notice in lua.h
*/
@@ -12,6 +12,7 @@
#include <string.h>
#define lstrlib_c
#define LUA_LIB
#include "lua.h"
@@ -20,9 +21,7 @@
/* macro to `unsign' a character */
#ifndef uchar
#define uchar(c) ((unsigned char)(c))
#endif
typedef lua_Integer sint32; /* a signed version for size_t */
@@ -156,10 +155,6 @@ static int str_dump (lua_State *L) {
** =======================================================
*/
#ifndef MAX_CAPTURES
#define MAX_CAPTURES 32 /* arbitrary limit */
#endif
#define CAP_UNFINISHED (-1)
#define CAP_POSITION (-2)