diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2009-08-03 12:26:37 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2009-08-03 12:26:37 +0000 |
commit | 3c1179ff511933179e64e854ac7b39c8003d9868 (patch) | |
tree | f373d634eb477f3cfa4e49e198be1409bfef75b3 /gdb/defs.h | |
parent | a877a2b69dc03c6e3cbc75def32d3ceb31594f16 (diff) | |
download | gdb-3c1179ff511933179e64e854ac7b39c8003d9868.zip gdb-3c1179ff511933179e64e854ac7b39c8003d9868.tar.gz gdb-3c1179ff511933179e64e854ac7b39c8003d9868.tar.bz2 |
Refactor reading of commands
* defs.h (read_command_lines_1): Declare.
* cli/cli-script.c (read_next_line): Only return string,
do not process.
(process_next_line): New, extracted from read_next_line.
(recurse_read_control_structure): Take a function pointer to the
read function.
(get_command_line) Pass the read_next_line as reader function
into recurse_read_control_structure.
(read_command_lines_1): New, extracted from...
(read_command_lines): ...here.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -696,6 +696,7 @@ struct command_line }; extern struct command_line *read_command_lines (char *, int, int); +extern struct command_line *read_command_lines_1 (char * (*) (), int); extern void free_command_lines (struct command_line **); |