summaryrefslogtreecommitdiffhomepage
path: root/stream.c
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-02-24 21:22:12 +0100
committerAki <please@ignore.pl>2021-02-24 21:22:12 +0100
commitd64871855128af6fa41a8c089686552ca1b66c70 (patch)
tree949ee94a4d83eec97ffec681c36ddb13f5b6a3bc /stream.c
parent0cbe8c24b3f870d91084b3612dba8b4478b64a32 (diff)
downloadplop-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stream.c b/stream.c
index 8e92358..7700365 100644
--- a/stream.c
+++ b/stream.c
@@ -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);