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年12月02日 14:48:50 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2011年12月02日 14:48:50 +0100
commitc9a356e30fcd55e51bdfc303ce47921b09fab2b4 (patch)
tree28efd377328e69c582dbb0ccc9884661cb1f43d8
parent71bad81cda1f45bab0dc612f73135c776933a122 (diff)
downloadgsl-shell-c9a356e30fcd55e51bdfc303ce47921b09fab2b4.tar.gz
Disable readline on Windows
Diffstat
-rw-r--r--Makefile 8
-rw-r--r--gsl-shell-jit.c 2
-rw-r--r--makedefs 4
3 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index afe094e9..4919a475 100644
--- a/Makefile
+++ b/Makefile
@@ -45,8 +45,12 @@ endif
SUBDIRS = $(LUADIR)
-C_SRC_FILES = completion.c gs-types.c lua-utils.c lua-rng.c randist.c sf.c lua-graph.c \
- lua-gsl.c
+C_SRC_FILES = gs-types.c lua-utils.c lua-rng.c randist.c sf.c \
+ lua-graph.c lua-gsl.c
+
+ifeq ($(strip $(USE_READLINE)),yes)
+ C_SRC_FILES += completion.c
+endif
LUA_BASE_FILES = bspline.lua fft-init.lua integ-init.lua randist-init.lua template.lua check.lua graph-init.lua iter.lua time.lua gsl-check.lua linfit.lua roots.lua contour.lua gsl.lua matrix.lua strict.lua csv.lua gslext.lua num.lua demo-init.lua import.lua plot3d.lua
diff --git a/gsl-shell-jit.c b/gsl-shell-jit.c
index d95052b5..e1d57f67 100644
--- a/gsl-shell-jit.c
+++ b/gsl-shell-jit.c
@@ -628,7 +628,9 @@ int main(int argc, char **argv)
{
int status;
struct Smain s;
+#ifdef USE_READLINE
initialize_readline();
+#endif
pthread_mutex_init (gsl_shell_mutex, NULL);
lua_State *L = lua_open(); /* create state */
if (L == NULL) {
diff --git a/makedefs b/makedefs
index 1b9232aa..25e01738 100644
--- a/makedefs
+++ b/makedefs
@@ -49,8 +49,10 @@ ifeq ($(strip $(DISABLE_GAMMA_CORR)), yes)
DEFS += -DDISABLE_GAMMA_CORR
endif
-ifeq ($(strip $(USE_READLINE)), yes)
+ifeq ($(strip $(USE_READLINE)),yes)
ifneq ($(HOST_SYS),Windows)
DEFS += -DUSE_READLINE
+ else
+ USE_READLINE = no
endif
endif
generated by cgit v1.2.3 (git 2.25.1) at 2025年10月04日 23:30:44 +0000

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