mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 19:46:09 +08:00
Constify prompt argument to read_command_lines
The prompt argument to read_command_lines can be const. This patch makes this change, and also removes some fixed-sized buffers in favor of using string_printf. ChangeLog 2018-05-04 Tom Tromey <tom@tromey.com> * tracepoint.c (actions_command): Update. * cli/cli-script.h (read_command_lines): Update. * cli/cli-script.c (read_command_lines): Constify prompt_arg. (MAX_TMPBUF): Remove define. (define_command): Use string_printf. (document_command): Likewise. * breakpoint.c (commands_command_1): Update.
This commit is contained in:
@ -105,7 +105,7 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
extern counted_command_line read_command_lines (char *, int, int,
|
||||
extern counted_command_line read_command_lines (const char *, int, int,
|
||||
void (*)(char *, void *),
|
||||
void *);
|
||||
extern counted_command_line read_command_lines_1 (char * (*) (void), int,
|
||||
|
Reference in New Issue
Block a user