diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-02-06 13:59:24 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-02-06 13:59:24 -0200 |
commit | 4ea60463f5a5cc5c30bf3f20be0dd5141f48aa3c (patch) | |
tree | d5330beaf2e11fc249f6c0aaef0b18ab3d9ec22c /lobject.h | |
parent | d438e1379d24f06f027f8fc0e8fc1ff6673b322f (diff) | |
download | lua-github-4ea60463f5a5cc5c30bf3f20be0dd5141f48aa3c.tar.gz |
UTF-8 encoding exported as format '%U' in 'lua_pushfstring'
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |