diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-08-29 19:37:18 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-08-29 19:37:18 +0300 |
commit | 4af2316a20b11ae467caf4c78cfcbe9ad5f2cf1b (patch) | |
tree | 6d8a2468ca800fcda259c8b6882fcf72bc6d067f /debug.c | |
parent | 40fea498b9ed02601a5418c18937d504e0e3c6c4 (diff) | |
parent | 86e23f74da247cd661c69e4bb1a5327001cc3317 (diff) | |
download | egawk-4af2316a20b11ae467caf4c78cfcbe9ad5f2cf1b.tar.gz egawk-4af2316a20b11ae467caf4c78cfcbe9ad5f2cf1b.tar.bz2 egawk-4af2316a20b11ae467caf4c78cfcbe9ad5f2cf1b.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -108,6 +108,12 @@ static BREAKPOINT breakpoints = { &breakpoints, &breakpoints, 0 }; static int sess_history_base = 0; #endif +#ifndef HAVE_HISTORY_LIST +#define HIST_ENTRY void +#define history_list() NULL +#endif + + /* 'list' command */ static int last_printed_line = 0; static int last_print_count; /* # of lines printed */ @@ -4058,7 +4064,7 @@ do_dump_instructions(CMDARG *arg, int cmd ATTRIBUTE_UNUSED) int do_save(CMDARG *arg, int cmd ATTRIBUTE_UNUSED) { -#ifdef HAVE_LIBREADLINE +#if defined(HAVE_LIBREADLINE) && defined(HAVE_HISTORY_LIST) FILE *fp; HIST_ENTRY **hist_list; int i; @@ -4282,11 +4288,6 @@ serialize_subscript(char *buf, int buflen, struct list_item *item) static void serialize(int type) { -#ifndef HAVE_LIBREADLINE -#define HIST_ENTRY void -#define history_list() NULL -#endif - static char *buf = NULL; static int buflen = 0; int bl; @@ -4400,7 +4401,7 @@ enlarge_buffer: cndn = &wd->cndn; break; case HISTORY: -#ifdef HAVE_LIBREADLINE +#if defined(HAVE_LIBREADLINE) && defined(HAVE_HISTORY_LIST) h = (HIST_ENTRY *) ptr; nchar = strlen(h->line); if (nchar >= buflen - bl) |