mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
support for strings with '\0'
This commit is contained in:
parent
5ef1989c4b
commit
88a2023c32
14 changed files with 238 additions and 158 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: $
|
||||
** $Id: lbuffer.c,v 1.1 1997/12/23 19:24:36 roberto Exp roberto $
|
||||
** Auxiliar functions for building Lua libraries
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -57,6 +57,10 @@ void luaL_addsize (int n)
|
|||
L->Mbuffnext += n;
|
||||
}
|
||||
|
||||
int luaL_getsize (void)
|
||||
{
|
||||
return L->Mbuffnext-(L->Mbuffbase-L->Mbuffer);
|
||||
}
|
||||
|
||||
int luaL_newbuffer (int size)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue