diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-04-27 10:10:07 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-04-27 10:10:07 +0300 |
commit | fa620d22a63f26f8098d7b4c4b835ad27c1b13a7 (patch) | |
tree | 75dc9ee66c3cac1c6a7796d404aee0f0836a106f /debug.c | |
parent | ed69ad69e9e4603fef71510cfef13d2a8b153ae0 (diff) | |
parent | 2ee1a96b398f3bd183a84509464770153a8890d4 (diff) | |
download | egawk-fa620d22a63f26f8098d7b4c4b835ad27c1b13a7.tar.gz egawk-fa620d22a63f26f8098d7b4c4b835ad27c1b13a7.tar.bz2 egawk-fa620d22a63f26f8098d7b4c4b835ad27c1b13a7.zip |
Merge branch 'gawk-4.0-stable' (latest infrastructure).
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -49,9 +49,9 @@ static char *linebuf = NULL; /* used to print a single line of source */ static size_t linebuf_len; FILE *out_fp; -char *dPrompt; -char *commands_Prompt = "> "; /* breakpoint or watchpoint commands list */ -char *eval_Prompt = "@> "; /* awk statement(s) */ +char *dbg_prompt; +char *commands_prompt = "> "; /* breakpoint or watchpoint commands list */ +char *eval_prompt = "@> "; /* awk statement(s) */ int input_from_tty = FALSE; int input_fd; @@ -234,7 +234,7 @@ static const char *history_file = DEFAULT_HISTFILE; /* debugger option related variables */ static char *output_file = "/dev/stdout"; /* gawk output redirection */ -char *dgawk_Prompt = NULL; /* initialized in do_debug */ +char *dgawk_prompt = NULL; /* initialized in interpret */ static int list_size = DEFAULT_LISTSIZE; /* # of lines that 'list' prints */ static int do_trace = FALSE; static int do_save_history = TRUE; @@ -248,7 +248,7 @@ static const struct dbg_option option_list[] = { gettext_noop("set or show the list command window size.") }, {"outfile", NULL, &output_file, &set_gawk_output, gettext_noop("set or show gawk output file.") }, -{"prompt", NULL, &dgawk_Prompt, &set_prompt, +{"prompt", NULL, &dgawk_prompt, &set_prompt, gettext_noop("set or show debugger prompt."), }, {"save_history", &do_save_history, NULL, &set_save_history, gettext_noop("(un)set or show saving of command history (value=on|off).") }, @@ -2763,8 +2763,8 @@ debug_prog(INSTRUCTION *pc) exit(EXIT_FAILURE); } - dgawk_Prompt = estrdup(DEFAULT_PROMPT, strlen(DEFAULT_PROMPT)); - dPrompt = dgawk_Prompt; + dgawk_prompt = estrdup(DEFAULT_PROMPT, strlen(DEFAULT_PROMPT)); + dbg_prompt = dgawk_prompt; memset(&stop, 0, sizeof(stop)); stop.command = D_illegal; @@ -5196,9 +5196,9 @@ set_gawk_output(const char *file) static void set_prompt(const char *value) { - efree(dgawk_Prompt); - dgawk_Prompt = estrdup(value, strlen(value)); - dPrompt = dgawk_Prompt; + efree(dgawk_prompt); + dgawk_prompt = estrdup(value, strlen(value)); + dbg_prompt = dgawk_prompt; } /* set_option_flag --- convert option string to flag value */ |