diff options
author | Aki <please@ignore.pl> | 2021-02-24 21:22:12 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-02-24 21:22:12 +0100 |
commit | d64871855128af6fa41a8c089686552ca1b66c70 (patch) | |
tree | 949ee94a4d83eec97ffec681c36ddb13f5b6a3bc /stream.c | |
parent | 0cbe8c24b3f870d91084b3612dba8b4478b64a32 (diff) | |
download | plop-d64871855128af6fa41a8c089686552ca1b66c70.zip plop-d64871855128af6fa41a8c089686552ca1b66c70.tar.gz plop-d64871855128af6fa41a8c089686552ca1b66c70.tar.bz2 |
Replaced pushstring with pushliteral where applicable
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -16,13 +16,13 @@ int stream_push_new(lua_State * L, const int fd) if (1 == luaL_newmetatable(L, "stream")) { - lua_pushstring(L, "__gc"); + lua_pushliteral(L, "__gc"); lua_pushcfunction(L, stream_gc); lua_rawset(L, -3); - lua_pushstring(L, "__index"); + lua_pushliteral(L, "__index"); lua_createtable(L, 0, 1); - lua_pushstring(L, "read"); + lua_pushliteral(L, "read"); lua_pushcfunction(L, stream_read); lua_rawset(L, -3); lua_rawset(L, -3); |