X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=zoom%2Fzoomsh.c;h=d61919d8ceb6956aee8a94285ee018345a333a9d;hb=a2691350ad223dd62d441fab573cd3cb241a14b3;hp=80970661384f7a25f519e2c8b53875f966dc9f17;hpb=d9d97a04b6f9597225b8440dad61790dfa39a751;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 8097066..d61919d 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -1,5 +1,5 @@ /* - * $Id: zoomsh.c,v 1.14 2003-02-17 14:35:42 adam Exp $ + * $Id: zoomsh.c,v 1.16 2003-02-23 15:24:27 adam Exp $ * * ZOOM-C Shell */ @@ -18,6 +18,7 @@ #include +#include #include #define MAX_CON 100 @@ -184,6 +185,8 @@ static void cmd_show (ZOOM_connection *c, ZOOM_resultset *r, display_records (c[i], r[i], start, count); } } + ZOOM_options_set (options, "count", "0"); + ZOOM_options_set (options, "start", "0"); } static void cmd_ext (ZOOM_connection *c, ZOOM_resultset *r, @@ -227,6 +230,13 @@ static void cmd_ext (ZOOM_connection *c, ZOOM_resultset *r, } } +static void cmd_debug (ZOOM_connection *c, ZOOM_resultset *r, + ZOOM_options options, + const char **args) +{ + yaz_log_init_level(LOG_ALL); +} + static void cmd_search (ZOOM_connection *c, ZOOM_resultset *r, ZOOM_options options, const char **args) @@ -393,6 +403,8 @@ static int cmd_parse (ZOOM_connection *c, ZOOM_resultset *r, cmd_help(c, r, options, buf); else if (is_command ("ext", cmd_str, cmd_len)) cmd_ext(c, r, options, buf); + else if (is_command ("debug", cmd_str, cmd_len)) + cmd_debug(c, r, options, buf); else printf ("unknown command %.*s\n", cmd_len, cmd_str); return 2; @@ -440,9 +452,7 @@ int main (int argc, char **argv) ZOOM_connection z39_con[MAX_CON]; ZOOM_resultset z39_res[MAX_CON]; -#if 0 - yaz_log_init_level(65535); -#endif + nmem_init(); for (i = 0; i