Unify vprintf functions
Now that filtered and unfiltered output can be treated identically, we can unify the vprintf family of functions: vprintf_filtered, vprintf_unfiltered, vfprintf_filtered and vfprintf_unfiltered. (For the gdb_stdout variants, recall that only printf_unfiltered gets truly unfiltered output at this point.) This removes one such function and renames the remaining two to "gdb_vprintf". All callers are updated. Much of this patch was written by script.
This commit is contained in:
parent
f4bf8795b3
commit
19a7b8ab87
15 changed files with 30 additions and 72 deletions
|
@ -247,9 +247,9 @@ extern void puts_filtered (const char *);
|
|||
|
||||
extern void puts_filtered_tabular (char *string, int width, int right);
|
||||
|
||||
extern void vprintf_filtered (const char *, va_list) ATTRIBUTE_PRINTF (1, 0);
|
||||
extern void gdb_vprintf (const char *, va_list) ATTRIBUTE_PRINTF (1, 0);
|
||||
|
||||
extern void vfprintf_filtered (struct ui_file *, const char *, va_list)
|
||||
extern void gdb_vprintf (struct ui_file *, const char *, va_list)
|
||||
ATTRIBUTE_PRINTF (2, 0);
|
||||
|
||||
extern void fprintf_filtered (struct ui_file *, const char *, ...)
|
||||
|
@ -257,11 +257,6 @@ extern void fprintf_filtered (struct ui_file *, const char *, ...)
|
|||
|
||||
extern void printf_filtered (const char *, ...) ATTRIBUTE_PRINTF (1, 2);
|
||||
|
||||
extern void vprintf_unfiltered (const char *, va_list) ATTRIBUTE_PRINTF (1, 0);
|
||||
|
||||
extern void vfprintf_unfiltered (struct ui_file *, const char *, va_list)
|
||||
ATTRIBUTE_PRINTF (2, 0);
|
||||
|
||||
extern void fprintf_unfiltered (struct ui_file *, const char *, ...)
|
||||
ATTRIBUTE_PRINTF (2, 3);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue