"light C function" is a better name than "C-function pointer"

This commit is contained in:
Roberto Ierusalimschy
2010-04-18 10:22:48 -03:00
parent 575befc394
commit 53f9499f7f
6 changed files with 19 additions and 19 deletions

4
ldo.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: ldo.c,v 2.84 2010/04/13 20:48:12 roberto Exp roberto $
** $Id: ldo.c,v 2.85 2010/04/18 12:41:35 roberto Exp roberto $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
@@ -300,7 +300,7 @@ int luaD_precall (lua_State *L, StkId func, int nresults) {
func = tryfuncTM(L, func); /* check the `function' tag method */
funcr = savestack(L, func);
L->ci->nresults = nresults;
if (ttiscfp(func)) { /* C function pointer? */
if (ttislcf(func)) { /* light C function? */
f = fvalue(func); /* get it */
goto isCfunc; /* go to call it */
}