Kaydet (Commit) f4507528 authored tarafından Enrico Tröger's avatar Enrico Tröger

Removed the whole FIFO code and replaced it with support for (Unix Domain) Sockets.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@773 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 2b3dad1e
2006-08-30 Enrico Tröger <enrico.troeger@uvena.de>
* configure.in, src/callbacks.c, src/geany.h, src/main.c:
Removed the whole FIFO code and replaced it with support for
(Unix Domain) Sockets(including Windows support, but not yet done).
2006-08-29 Enrico Tröger <enrico.troeger@uvena.de>
* src/sci_cb.c: Added auto completion for LaTeX command "begin".
......
......@@ -70,17 +70,12 @@ PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
# fifo support
AC_CHECK_FUNC([mkfifo], [have_mkfifo="1"])
AC_ARG_ENABLE(pipe, AC_HELP_STRING([--enable-pipe],[enable if you want to detect a running instance [[default=yes]]]),
[want_pipe="$enableval"], [want_pipe="yes"])
if test "x$want_pipe" = "xyes"; then
if test "x$have_mkfifo" = "x1"; then
AC_DEFINE(HAVE_FIFO, 1, [Define if you want to detect a running instance])
else
want_pipe=no
fi
# socket support
AC_ARG_ENABLE(socket, AC_HELP_STRING([--enable-socket],[enable if you want to detect a running instance [[default=yes]]]),
[want_socket="$enableval"], [want_socket="yes"])
if test "x$want_socket" = "xyes"; then
AC_DEFINE(HAVE_SOCKET, 1, [Define if you want to detect a running instance])
fi
# VTE support
......@@ -173,7 +168,7 @@ then
fi
echo "Using GTK version : ${GTK_VERSION}"
echo "Use virtual terminal support : ${want_vte}"
echo "Use named pipe support : ${want_pipe}"
echo "Use (UNIX domain) socket support : ${want_socket}"
if test "${REVISION}" != "-1"
then
echo "Compiling Subversion revision : ${REVISION}"
......
......@@ -84,9 +84,8 @@ gint destroyapp(GtkWidget *widget, gpointer gdata)
{
geany_debug("Quitting...");
#ifdef HAVE_FIFO
// delete the fifo early, because we don't accept new files anymore
fifo_finalize();
#ifdef HAVE_SOCKET
socket_finalize();
#endif
keybindings_free();
......
......@@ -36,7 +36,6 @@
// listed in the documentation should not be changed ;-)
#define GEANY_HOME_DIR g_get_home_dir()
#define GEANY_FILEDEFS_SUBDIR "filedefs"
#define GEANY_FIFO_NAME "geany_fifo.0"
#define GEANY_CODENAME "Kadir"
#define GEANY_HOMEPAGE "http://geany.uvena.de/"
#define GEANY_MAX_OPEN_FILES 25
......
This diff is collapsed.
......@@ -25,7 +25,9 @@
#ifndef GEANY_MAIN_H
#define GEANY_MAIN_H
void fifo_finalize();
#ifdef HAVE_SOCKET
gint socket_finalize();
#endif
void geany_debug(gchar const *format, ...);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment