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-4ea60463f5a5cc5c30bf3f20be0dd5141f48aa3c.tar.gz lua-4ea60463f5a5cc5c30bf3f20be0dd5141f48aa3c.tar.bz2 lua-4ea60463f5a5cc5c30bf3f20be0dd5141f48aa3c.zip |
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 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 2.82 2013/09/05 19:31:49 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.83 2013/12/04 12:15:22 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -479,9 +479,12 @@ typedef struct Table { | |||
479 | 479 | ||
480 | LUAI_DDEC const TValue luaO_nilobject_; | 480 | LUAI_DDEC const TValue luaO_nilobject_; |
481 | 481 | ||
482 | /* size of buffer for 'luaO_utf8esc' function */ | ||
483 | #define UTF8BUFFSZ 8 | ||
482 | 484 | ||
483 | LUAI_FUNC int luaO_int2fb (unsigned int x); | 485 | LUAI_FUNC int luaO_int2fb (unsigned int x); |
484 | LUAI_FUNC int luaO_fb2int (int x); | 486 | LUAI_FUNC int luaO_fb2int (int x); |
487 | LUAI_FUNC int luaO_utf8esc (char *buff, unsigned int x); | ||
485 | LUAI_FUNC int luaO_ceillog2 (unsigned int x); | 488 | LUAI_FUNC int luaO_ceillog2 (unsigned int x); |
486 | LUAI_FUNC void luaO_arith (lua_State *L, int op, const TValue *p1, | 489 | LUAI_FUNC void luaO_arith (lua_State *L, int op, const TValue *p1, |
487 | const TValue *p2, TValue *res); | 490 | const TValue *p2, TValue *res); |