Browse Source

LUAI_FUNC is being used only in header files

pull/9/head
Roberto Ierusalimschy 11 years ago
parent
commit
f61ceee708
  1. 4
      lcode.c
  2. 4
      lgc.c
  3. 4
      lstring.c

4
lcode.c

@ -1,5 +1,5 @@
/*
** $Id: lcode.c,v 2.85 2014/03/21 13:52:33 roberto Exp roberto $
** $Id: lcode.c,v 2.86 2014/04/01 14:39:55 roberto Exp roberto $
** Code generator for Lua
** See Copyright Notice in lua.h
*/
@ -195,7 +195,7 @@ void luaK_patchlist (FuncState *fs, int list, int target) {
}
LUAI_FUNC void luaK_patchclose (FuncState *fs, int list, int level) {
void luaK_patchclose (FuncState *fs, int list, int level) {
level++; /* argument is +1 to reserve 0 as non-op */
while (list != NO_JUMP) {
int next = getjump(fs, list);

4
lgc.c

@ -1,5 +1,5 @@
/*
** $Id: lgc.c,v 2.179 2014/03/21 13:52:33 roberto Exp roberto $
** $Id: lgc.c,v 2.180 2014/04/01 14:06:59 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@ -172,7 +172,7 @@ void luaC_barrierback_ (lua_State *L, GCObject *o) {
** closures pointing to it. So, we assume that the object being assigned
** must be marked.
*/
LUAI_FUNC void luaC_upvalbarrier_ (lua_State *L, UpVal *uv) {
void luaC_upvalbarrier_ (lua_State *L, UpVal *uv) {
global_State *g = G(L);
GCObject *o = gcvalue(uv->v);
lua_assert(!upisopen(uv)); /* ensured by macro luaC_upvalbarrier */

4
lstring.c

@ -1,5 +1,5 @@
/*
** $Id: lstring.c,v 2.37 2014/02/19 13:51:09 roberto Exp roberto $
** $Id: lstring.c,v 2.38 2014/03/19 18:51:42 roberto Exp roberto $
** String table (keeps all strings handled by Lua)
** See Copyright Notice in lua.h
*/
@ -102,7 +102,7 @@ static TString *createstrobj (lua_State *L, const char *str, size_t l,
}
LUAI_FUNC void luaS_remove (lua_State *L, TString *ts) {
void luaS_remove (lua_State *L, TString *ts) {
stringtable *tb = &G(L)->strt;
TString **p = &tb->hash[lmod(ts->tsv.hash, tb->size)];
while (*p != ts) /* find previous element */

Loading…
Cancel
Save