gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/src/lgc.c 2
-rw-r--r--lua/src/lparser.c 4
-rw-r--r--lua/src/luaconf.h 2
3 files changed, 3 insertions, 5 deletions
diff --git a/lua/src/lgc.c b/lua/src/lgc.c
index 4146aa2d..711f2dbf 100644
--- a/lua/src/lgc.c
+++ b/lua/src/lgc.c
@@ -334,7 +334,7 @@ static size_t propagateall (global_State *g) {
** other objects: if really collected, cannot keep them; for userdata
** being finalized, keep them in keys, but not in values
*/
-#if defined(GSL_SHELL_LUA) && defined(GSL_SHELL_GC_PATCH)
+#ifdef GSH_GC_PATCH
static int iscleared (const TValue *o, int iskey) {
(void) iskey;
if (!iscollectable(o)) return 0;
diff --git a/lua/src/lparser.c b/lua/src/lparser.c
index b72bc153..951f95b5 100644
--- a/lua/src/lparser.c
+++ b/lua/src/lparser.c
@@ -596,7 +596,7 @@ static void body (LexState *ls, expdesc *e, int needself, int line) {
}
-#ifdef GSL_SHELL_LUA
+#ifdef GSH_SHORT_FSYNTAX
static void simplebody (LexState *ls, expdesc *e, int line) {
/* simplebody -> parlist `|' expr END */
FuncState new_fs;
@@ -789,7 +789,7 @@ static void simpleexp (LexState *ls, expdesc *v) {
body(ls, v, 0, ls->linenumber);
return;
}
-#ifdef GSL_SHELL_LUA
+#ifdef GSH_SHORT_FSYNTAX
case '|': {
luaX_next(ls);
simplebody(ls, v, ls->linenumber);
diff --git a/lua/src/luaconf.h b/lua/src/luaconf.h
index 3d4d1846..6905db77 100644
--- a/lua/src/luaconf.h
+++ b/lua/src/luaconf.h
@@ -8,8 +8,6 @@
#ifndef lconfig_h
#define lconfig_h
-#define GSL_SHELL_GC_PATCH 1
-
#define QUOTEME_(x) #x
#define QUOTEME(x) QUOTEME_(x)
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月24日 21:11:01 +0000

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