Remove print_spaces
This removes the print_spaces helper function, in favor of using the "*%s" idiom that's already used in many places in gdb. One spot (in symmisc.c) is changed to use print_spaces_filtered, because the rest of that function is using filtered output. (This highlights one way that the printf idiom is better -- this error is harder to make when using that.) Regression tested on x86-64 Fedora 34.
This commit is contained in:
parent
b0715493df
commit
6bebf813ac
6 changed files with 19 additions and 31 deletions
|
@ -467,8 +467,6 @@ extern void fprintf_unfiltered (struct ui_file *, const char *, ...)
|
|||
|
||||
extern void printf_unfiltered (const char *, ...) ATTRIBUTE_PRINTF (1, 2);
|
||||
|
||||
extern void print_spaces (int, struct ui_file *);
|
||||
|
||||
extern void print_spaces_filtered (int, struct ui_file *);
|
||||
|
||||
extern const char *n_spaces (int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue