diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-24 07:48:49 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-24 07:48:49 -0800 |
commit | aff8afa12d062ceb86ef7c1d1d42b960647162cf (patch) | |
tree | 48bf968692ab24ac4dcd492522a64488229213ed /src | |
parent | c0c67859a296d8258eeacf8f60a4654a19607325 (diff) | |
download | teliva-aff8afa12d062ceb86ef7c1d1d42b960647162cf.tar.gz |
style
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"); |