X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=e403a17137f9e453e3ea47b796ff5b76c2a122c0;hb=c82a7ebce851c96c8c769c2ec4f4b2121a446e19;hp=2f3897faf66ccff0481639099185ac8f5de4817b;hpb=69bcd68523a9a8da083faef16887100369152673;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 2f3897f..e403a17 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -1,5 +1,5 @@ /* - * $Id: zoomsh.c,v 1.1 2001-10-23 21:00:20 adam Exp $ + * $Id: zoomsh.c,v 1.6 2001-11-16 10:18:20 adam Exp $ * * ZOOM-C Shell */ @@ -9,9 +9,6 @@ #include #include -#define HAVE_READLINE_READLINE_H 1 -#define HAVE_READLINE_HISTORY_H 1 - #if HAVE_READLINE_READLINE_H #include #endif @@ -32,7 +29,7 @@ static int next_token (const char **cpp, const char **t_start) while (*cp == ' ') cp++; *t_start = cp; - while (*cp && *cp != ' ') + while (*cp && *cp != ' ' && *cp != '\r' && *cp != '\n') { cp++; len++; @@ -99,7 +96,8 @@ static void cmd_close (Z3950_connection *c, Z3950_resultset *r, const char *h; if (!c[i]) continue; - if ((h = Z3950_connection_host(c[i])) && !strcmp (h, host)) + if ((h = Z3950_connection_option_get(c[i], "host")) + && !strcmp (h, host)) { Z3950_connection_destroy (c[i]); c[i] = 0; @@ -120,16 +118,17 @@ static void display_records (Z3950_connection c, for (i = 0; i