diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lua.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua.c b/src/lua.c index 241b530..3c97ce5 100644 --- a/src/lua.c +++ b/src/lua.c @@ -346,11 +346,11 @@ static void update_definition (lua_State *L, const char *name, char *out) { static void save_image (lua_State *L) { lua_getglobal(L, "teliva_program"); int table = lua_gettop(L); - FILE* out = fopen(Image_name, "w"); + FILE *out = fopen(Image_name, "w"); fprintf(out, "teliva_program = {\n"); for (lua_pushnil(L); lua_next(L, table) != 0; lua_pop(L, 1)) { - const char* key = lua_tostring(L, -2); - const char* value = lua_tostring(L, -1); + const char *key = lua_tostring(L, -2); + const char *value = lua_tostring(L, -1); fprintf(out, " %s = [==[", key); fprintf(out, "%s", value); fprintf(out, "]==],\n"); |