summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbustico2015-01-07 14:01:47 +0000
committerbustico2015-01-07 14:01:47 +0000
commit0b505ec15a43b4b8e4c2584d0c4f81ff3391f3de (patch)
treec90ded52e7b6385ffea988062f21108dcdb3f185
parent2d66c27090d6654bbda21f7cc8351b9a64f9b4f9 (diff)
downloadivy-c-0b505ec15a43b4b8e4c2584d0c4f81ff3391f3de.zip
ivy-c-0b505ec15a43b4b8e4c2584d0c4f81ff3391f3de.tar.gz
ivy-c-0b505ec15a43b4b8e4c2584d0c4f81ff3391f3de.tar.bz2
ivy-c-0b505ec15a43b4b8e4c2584d0c4f81ff3391f3de.tar.xz
* fix uninitialised variable in ivy-bind
* start tcl interpreter early * add some pkg-config configuration file * use header file from tcl-dev (which need to be installed)
-rw-r--r--src/Makefile3
-rw-r--r--src/ivy-c.pc.in10
-rw-r--r--src/ivy-tcl.pc.in10
-rw-r--r--src/ivybind.c4
-rw-r--r--src/ivytcl.c1
5 files changed, 25 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 193ffc8..f9fbd11 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -54,7 +54,8 @@ ifndef TCLVERS
TCLVERS:= $(shell perl -e '@_=sort map (m|/usr/lib64/libtcl(\d\.\d)\.so|, glob ("/usr/lib64/libtcl*")); print pop @_')
endif
ifndef TCLVERS
-TCLVERS=8.4
+#TCLVERS=8.4
+TCLVERS=
endif
TCLINCL = -I/usr/include/tcl$(TCLVERS)
diff --git a/src/ivy-c.pc.in b/src/ivy-c.pc.in
new file mode 100644
index 0000000..b4f90bd
--- /dev/null
+++ b/src/ivy-c.pc.in
@@ -0,0 +1,10 @@
+prefix=@PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: ivy-c
+Description: A software bus
+Version: @MAJOR@.@MINOR@
+Libs: -L${libdir} -livy @PCREINC@ @EXTRALIB@
+Cflags: -I${includedir} @REGEXP@ @PCRELIB@
diff --git a/src/ivy-tcl.pc.in b/src/ivy-tcl.pc.in
new file mode 100644
index 0000000..86c9ef3
--- /dev/null
+++ b/src/ivy-tcl.pc.in
@@ -0,0 +1,10 @@
+prefix=@PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: ivy-tcl
+Description: A software bus (TCL main loop)
+Version: @MAJOR@.@MINOR@
+Libs: -L${libdir} -ltclivy @PCREINC@ @EXTRALIB@
+Cflags: -I${includedir} @REGEXP@ @PCRELIB@
diff --git a/src/ivybind.c b/src/ivybind.c
index 27d5705..8f919b2 100644
--- a/src/ivybind.c
+++ b/src/ivybind.c
@@ -270,7 +270,7 @@ int IvyBindingFilter(const char *expression)
FiltredWordPtr word=0;
int err;
int regexp_ok = 1; /* accepte tout par default */
- int tokenlen;
+ int tokenlen = 0;
const char *token;
if ( *expression =='^' && messages_classes !=0 )
@@ -318,4 +318,4 @@ void IvyBindingTerminate()
}
IVY_LIST_EMPTY( messages_classes );
messages_classes = 0;
-} \ No newline at end of file
+}
diff --git a/src/ivytcl.c b/src/ivytcl.c
index ed23713..6806d49 100644
--- a/src/ivytcl.c
+++ b/src/ivytcl.c
@@ -64,6 +64,7 @@ void IvyChannelInit(void)
#endif
if ( channel_initialized ) return;
+ Tcl_FindExecutable(NULL);
/* pour eviter les plantages quand les autres applis font core-dump */
#ifndef WIN32
signal( SIGPIPE, SIG_IGN);