diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-05-22 14:47:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-05-22 14:47:54 -0300 |
commit | 9be74ccc214eb6f4d9d0b9496fd973542c7377d9 (patch) | |
tree | e62aacce2266814e8c09a490e02ac6ad9cf13be0 /lstate.c | |
parent | 09f3c2372f5dbeaec9f50614a26c1b5761726a88 (diff) | |
download | lua-9be74ccc214eb6f4d9d0b9496fd973542c7377d9.tar.gz lua-9be74ccc214eb6f4d9d0b9496fd973542c7377d9.tar.bz2 lua-9be74ccc214eb6f4d9d0b9496fd973542c7377d9.zip |
Several functions turned 'static'
Several functions that were already being used only inside their
own file have been declared as 'static'.
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -119,7 +119,7 @@ CallInfo *luaE_extendCI (lua_State *L) { | |||
119 | /* | 119 | /* |
120 | ** free all CallInfo structures not in use by a thread | 120 | ** free all CallInfo structures not in use by a thread |
121 | */ | 121 | */ |
122 | void luaE_freeCI (lua_State *L) { | 122 | static void freeCI (lua_State *L) { |
123 | CallInfo *ci = L->ci; | 123 | CallInfo *ci = L->ci; |
124 | CallInfo *next = ci->next; | 124 | CallInfo *next = ci->next; |
125 | ci->next = NULL; | 125 | ci->next = NULL; |
@@ -204,7 +204,7 @@ static void freestack (lua_State *L) { | |||
204 | if (L->stack.p == NULL) | 204 | if (L->stack.p == NULL) |
205 | return; /* stack not completely built yet */ | 205 | return; /* stack not completely built yet */ |
206 | L->ci = &L->base_ci; /* free the entire 'ci' list */ | 206 | L->ci = &L->base_ci; /* free the entire 'ci' list */ |
207 | luaE_freeCI(L); | 207 | freeCI(L); |
208 | lua_assert(L->nci == 0); | 208 | lua_assert(L->nci == 0); |
209 | luaM_freearray(L, L->stack.p, stacksize(L) + EXTRA_STACK); /* free stack */ | 209 | luaM_freearray(L, L->stack.p, stacksize(L) + EXTRA_STACK); /* free stack */ |
210 | } | 210 | } |