mirror of
https://github.com/djcb/mu.git
synced 2024-06-29 07:51:04 +02:00
* mu-cmd-server.c: remove readline support
This commit is contained in:
parent
8b39c69c89
commit
ba5dc29555
|
@ -31,11 +31,6 @@
|
||||||
|
|
||||||
#include <glib/gprintf.h>
|
#include <glib/gprintf.h>
|
||||||
|
|
||||||
#ifdef HAVE_LIBREADLINE
|
|
||||||
#include <readline/readline.h>
|
|
||||||
#include <readline/history.h>
|
|
||||||
#endif /*HAVE_LIBREADLINE*/
|
|
||||||
|
|
||||||
/* hopefully, the should get us a sane PATH_MAX */
|
/* hopefully, the should get us a sane PATH_MAX */
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
/* not all systems provide PATH_MAX in limits.h */
|
/* not all systems provide PATH_MAX in limits.h */
|
||||||
|
@ -142,9 +137,6 @@ server_error (GError **err, MuError merr, const char* frm, ...)
|
||||||
static gchar*
|
static gchar*
|
||||||
my_readline (const char *prompt)
|
my_readline (const char *prompt)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LIBREADLINE
|
|
||||||
return readline (MU_PROMPT);
|
|
||||||
#else
|
|
||||||
GString *gstr;
|
GString *gstr;
|
||||||
int kar;
|
int kar;
|
||||||
|
|
||||||
|
@ -162,7 +154,6 @@ my_readline (const char *prompt)
|
||||||
} while (1);
|
} while (1);
|
||||||
|
|
||||||
return g_string_free (gstr, FALSE);
|
return g_string_free (gstr, FALSE);
|
||||||
#endif /*!HAVE_LIBREADLINE*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum _Cmd {
|
enum _Cmd {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user