From 8060193702b21a06af3541555db4cd317c733ce9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 11 Sep 2000 17:29:27 -0300 Subject: `lauxlib' is now part of the libraries (not used by core Lua) --- lauxlib.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'lauxlib.c') diff --git a/lauxlib.c b/lauxlib.c index 84ccb3b9..ee715ab5 100644 --- a/lauxlib.c +++ b/lauxlib.c @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.c,v 1.33 2000/08/29 20:43:28 roberto Exp roberto $ +** $Id: lauxlib.c,v 1.34 2000/09/11 17:38:42 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -118,28 +118,6 @@ void luaL_verror (lua_State *L, const char *fmt, ...) { } -#define EXTRALEN sizeof("string \"...\"0") - -void luaL_chunkid (char *out, const char *source, int len) { - if (*source == '(') { - strncpy(out, source+1, len-1); /* remove first char */ - out[len-1] = '\0'; /* make sure `out' has an end */ - out[strlen(out)-1] = '\0'; /* remove last char */ - } - else { - len -= EXTRALEN; - if (*source == '@') - sprintf(out, "file `%.*s'", len, source+1); - else { - const char *b = strchr(source , '\n'); /* stop at first new line */ - int lim = (b && (b-source)