detail (added placeholders for non-function fields to preallocate

space for them)
This commit is contained in:
Roberto Ierusalimschy
2014-07-16 10:56:14 -03:00
parent a9af12bbe7
commit f14662fca6
3 changed files with 16 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lutf8lib.c,v 1.8 2014/04/11 18:19:07 roberto Exp roberto $
** $Id: lutf8lib.c,v 1.9 2014/05/14 18:33:37 roberto Exp roberto $
** Standard library for UTF-8 manipulation
** See Copyright Notice in lua.h
*/
@@ -238,6 +238,8 @@ static struct luaL_Reg funcs[] = {
{"char", utfchar},
{"len", utflen},
{"codes", iter_codes},
/* placeholders */
{"charpatt", NULL},
{NULL, NULL}
};