lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 68df7c6279421a0a5710afc31e5cd3122e0d3391
parent 19ad78d713081e422bd6e70c05837ba9034a49a4
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu,  6 Feb 2014 18:02:59 -0200

added proper headers for a standard lib file

Diffstat:
Mlutf8lib.c | 15+++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/lutf8lib.c b/lutf8lib.c @@ -1,11 +1,21 @@ -/* gcc -shared -o utf8.so -fpic -O2 -Wall -I.. utf8.c */ +/* +** $Id: $ +** Standard library for UTF-8 manipulation +** See Copyright Notice in lua.h +*/ + #include <assert.h> #include <stdlib.h> #include <string.h> +#define lutf8lib_c +#define LUA_LIB + #include "lua.h" + #include "lauxlib.h" +#include "lualib.h" #define MAXUNICODE 0x10FFFF @@ -221,9 +231,6 @@ static struct luaL_Reg funcs[] = { }; - -int luaopen_utf8 (lua_State *L); - int luaopen_utf8 (lua_State *L) { luaL_newlib(L, funcs); lua_pushliteral(L, UTF8PATT);