Fix minor problems related to Lua compatibility - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2011年10月29日 17:45:21 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2011年10月29日 17:45:21 +0200
commitad7c4dced1f3a8a2e4fe0078f085c21b01a35b0d (patch)
treee8e020def8720635638966867621f3c37b447078
parentf1f1186d0db56ec2dac5b98bf22e080f5189d1ce (diff)
downloadgsl-shell-ad7c4dced1f3a8a2e4fe0078f085c21b01a35b0d.tar.gz
Fix minor problems related to Lua compatibility
Diffstat
-rw-r--r--fft-init.lua 2
-rw-r--r--makeconfig 5
2 files changed, 4 insertions, 3 deletions
diff --git a/fft-init.lua b/fft-init.lua
index 9a8a3a78..091aca8e 100644
--- a/fft-init.lua
+++ b/fft-init.lua
@@ -256,7 +256,7 @@ local function hc_newindex(ft, k, z)
end
local function halfcomplex_to_matrix(hc)
- return matrix.cnew(hc.size, 1, |i| hc[i-1])
+ return matrix.cnew(hc.size, 1, function(i) return hc[i-1] end)
end
local function hc_tostring(hc)
diff --git a/makeconfig b/makeconfig
index 592d9be9..4842ec1e 100644
--- a/makeconfig
+++ b/makeconfig
@@ -1,6 +1,7 @@
-# If you set to yes a Lua interpreter will be built and the GSL specific
-# functions will be loaded in a separate module 'gsl'
+# If you set to yes a pure Lua interpreter will be built.
+# It is meant to be compatible with standard Lua and short function syntax
+# will be disabled.
LUA_BUILD = no
# set this to "yes" if you want to disable gamma correction
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月28日 18:03:25 +0000

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