From 4ea60463f5a5cc5c30bf3f20be0dd5141f48aa3c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 6 Feb 2014 13:59:24 -0200 Subject: UTF-8 encoding exported as format '%U' in 'lua_pushfstring' --- lobject.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index ca92fc56..23bbe74f 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 2.82 2013/09/05 19:31:49 roberto Exp roberto $ +** $Id: lobject.h,v 2.83 2013/12/04 12:15:22 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -479,9 +479,12 @@ typedef struct Table { LUAI_DDEC const TValue luaO_nilobject_; +/* size of buffer for 'luaO_utf8esc' function */ +#define UTF8BUFFSZ 8 LUAI_FUNC int luaO_int2fb (unsigned int x); LUAI_FUNC int luaO_fb2int (int x); +LUAI_FUNC int luaO_utf8esc (char *buff, unsigned int x); LUAI_FUNC int luaO_ceillog2 (unsigned int x); LUAI_FUNC void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, TValue *res); -- cgit v1.2.3-55-g6feb