aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lbaselib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 4238f96a..b2da6a77 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -336,7 +336,7 @@ static int load_aux (lua_State *L, int status, int envidx) {
336} 336}
337 337
338 338
339static const char *getmode (lua_State *L, int idx) { 339static const char *getMode (lua_State *L, int idx) {
340 const char *mode = luaL_optstring(L, idx, "bt"); 340 const char *mode = luaL_optstring(L, idx, "bt");
341 if (strchr(mode, 'B') != NULL) /* Lua code cannot use fixed buffers */ 341 if (strchr(mode, 'B') != NULL) /* Lua code cannot use fixed buffers */
342 luaL_argerror(L, idx, "invalid mode"); 342 luaL_argerror(L, idx, "invalid mode");
@@ -346,7 +346,7 @@ static const char *getmode (lua_State *L, int idx) {
346 346
347static int luaB_loadfile (lua_State *L) { 347static int luaB_loadfile (lua_State *L) {
348 const char *fname = luaL_optstring(L, 1, NULL); 348 const char *fname = luaL_optstring(L, 1, NULL);
349 const char *mode = getmode(L, 2); 349 const char *mode = getMode(L, 2);
350 int env = (!lua_isnone(L, 3) ? 3 : 0); /* 'env' index or 0 if no 'env' */ 350 int env = (!lua_isnone(L, 3) ? 3 : 0); /* 'env' index or 0 if no 'env' */
351 int status = luaL_loadfilex(L, fname, mode); 351 int status = luaL_loadfilex(L, fname, mode);
352 return load_aux(L, status, env); 352 return load_aux(L, status, env);
@@ -395,7 +395,7 @@ static int luaB_load (lua_State *L) {
395 int status; 395 int status;
396 size_t l; 396 size_t l;
397 const char *s = lua_tolstring(L, 1, &l); 397 const char *s = lua_tolstring(L, 1, &l);
398 const char *mode = getmode(L, 3); 398 const char *mode = getMode(L, 3);
399 int env = (!lua_isnone(L, 4) ? 4 : 0); /* 'env' index or 0 if no 'env' */ 399 int env = (!lua_isnone(L, 4) ? 4 : 0); /* 'env' index or 0 if no 'env' */
400 if (s != NULL) { /* loading a string? */ 400 if (s != NULL) { /* loading a string? */
401 const char *chunkname = luaL_optstring(L, 2, s); 401 const char *chunkname = luaL_optstring(L, 2, s);