gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/window-refs.c
diff options
context:
space:
mode:
Diffstat (limited to 'window-refs.c')
-rw-r--r--window-refs.c 8
1 files changed, 8 insertions, 0 deletions
diff --git a/window-refs.c b/window-refs.c
index dc694d2d..ad4d31b0 100644
--- a/window-refs.c
+++ b/window-refs.c
@@ -31,6 +31,14 @@ window_ref_add(lua_State *L, int index)
}
void
+window_ref_get (lua_State *L, int id)
+{
+ lua_getfield (L, LUA_REGISTRYINDEX, window_ref_table_name);
+ lua_rawgeti (L, -1, id);
+ lua_remove (L, -2);
+}
+
+void
window_ref_remove (lua_State *L, int id)
{
lua_getfield (L, LUA_REGISTRYINDEX, window_ref_table_name);
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月16日 17:29:55 +0000

AltStyle によって変換されたページ (->オリジナル) /