[PATCH] Add fseek to ui-file
Hui Zhu
teawater@gmail.com
Mon Dec 10 10:57:00 GMT 2012
On Fri, Dec 7, 2012 at 10:49 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Hui" == Hui Zhu <teawater@gmail.com> writes:
>
> Hui> And I found all other set_ui_file_xxx functions have this issue, do
> Hui> you mind I post a patch to update them?
>
> I think it would be fine.
>
> Tom
Post a patch for that. Please help me review it.
Thanks,
Hui
2012-12-10 Hui Zhu <hui_zhu@mentor.com>
* ui-file.c (set_ui_file_flush): Change flush to flush_p.
(set_ui_file_isatty): Change isatty to isatty_p.
(set_ui_file_rewind): Change rewind to rewind_p.
(set_ui_file_put): Change put to put_p.
(set_ui_file_write): Change write to write_p.
(set_ui_file_write_async_safe): Change write_async_safe to
write_async_safe_p.
(set_ui_file_read): Change read to read_p.
(set_ui_file_fputs): Change fputs to fputs_p.
(set_ui_file_data): Change delete to delete_p.
-------------- next part --------------
--- a/ui-file.c
+++ b/ui-file.c
@@ -234,61 +234,61 @@ fputs_unfiltered (const char *buf, struc
}
void
-set_ui_file_flush (struct ui_file *file, ui_file_flush_ftype *flush)
+set_ui_file_flush (struct ui_file *file, ui_file_flush_ftype *flush_p)
{
- file->to_flush = flush;
+ file->to_flush = flush_p;
}
void
-set_ui_file_isatty (struct ui_file *file, ui_file_isatty_ftype *isatty)
+set_ui_file_isatty (struct ui_file *file, ui_file_isatty_ftype *isatty_p)
{
- file->to_isatty = isatty;
+ file->to_isatty = isatty_p;
}
void
-set_ui_file_rewind (struct ui_file *file, ui_file_rewind_ftype *rewind)
+set_ui_file_rewind (struct ui_file *file, ui_file_rewind_ftype *rewind_p)
{
- file->to_rewind = rewind;
+ file->to_rewind = rewind_p;
}
void
-set_ui_file_put (struct ui_file *file, ui_file_put_ftype *put)
+set_ui_file_put (struct ui_file *file, ui_file_put_ftype *put_p)
{
- file->to_put = put;
+ file->to_put = put_p;
}
void
set_ui_file_write (struct ui_file *file,
- ui_file_write_ftype *write)
+ ui_file_write_ftype *write_p)
{
- file->to_write = write;
+ file->to_write = write_p;
}
void
set_ui_file_write_async_safe (struct ui_file *file,
- ui_file_write_async_safe_ftype *write_async_safe)
+ ui_file_write_async_safe_ftype *write_async_safe_p)
{
- file->to_write_async_safe = write_async_safe;
+ file->to_write_async_safe = write_async_safe_p;
}
void
-set_ui_file_read (struct ui_file *file, ui_file_read_ftype *read)
+set_ui_file_read (struct ui_file *file, ui_file_read_ftype *read_p)
{
- file->to_read = read;
+ file->to_read = read_p;
}
void
-set_ui_file_fputs (struct ui_file *file, ui_file_fputs_ftype *fputs)
+set_ui_file_fputs (struct ui_file *file, ui_file_fputs_ftype *fputs_p)
{
- file->to_fputs = fputs;
+ file->to_fputs = fputs_p;
}
void
set_ui_file_data (struct ui_file *file, void *data,
- ui_file_delete_ftype *delete)
+ ui_file_delete_ftype *delete_p)
{
file->to_data = data;
- file->to_delete = delete;
+ file->to_delete = delete_p;
}
/* ui_file utility function for converting a ``struct ui_file'' into
More information about the Gdb-patches
mailing list