Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Hui Zhu <teawater@gmail.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches ml <gdb-patches@sourceware.org>,
	Hui Zhu <hui_zhu@mentor.com>
Subject: Re: [PATCH] Add fseek to ui-file
Date: Mon, 10 Dec 2012 10:57:00 -0000	[thread overview]
Message-ID: <CANFwon1PmXCeGNxJDCKpe+i+5L6CwZcJ-zC045S0CXiWHnepTg@mail.gmail.com> (raw)
In-Reply-To: <87lid9x6hl.fsf@fleche.redhat.com>

[-- Attachment #1: Type: text/plain, Size: 861 bytes --]

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.

[-- Attachment #2: ui-file-change-arg.txt --]
[-- Type: text/plain, Size: 2129 bytes --]

--- 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

  reply	other threads:[~2012-12-10 10:57 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-06  9:46 Hui Zhu
2012-12-06 21:48 ` Tom Tromey
2012-12-07  8:02   ` Hui Zhu
2012-12-07  9:56     ` Pedro Alves
2012-12-10 10:48       ` Hui Zhu
2012-12-10 19:54         ` Tom Tromey
2012-12-11 10:35           ` Pedro Alves
2012-12-11 14:35             ` Hui Zhu
2012-12-11 14:39               ` Pedro Alves
2012-12-11 14:58                 ` Hui Zhu
2012-12-07 14:49     ` Tom Tromey
2012-12-10 10:57       ` Hui Zhu [this message]
2012-12-10 19:55         ` Tom Tromey
2012-12-11  7:22           ` Hui Zhu
2012-12-12 11:01           ` Hui Zhu
2012-12-12 15:38             ` Tom Tromey
2012-12-13  1:45               ` Hui Zhu
2012-12-14 19:18                 ` Tom Tromey
2012-12-17  3:00                   ` Hui Zhu
2012-12-17 20:04                     ` Tom Tromey
2012-12-18  7:03                       ` Hui Zhu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANFwon1PmXCeGNxJDCKpe+i+5L6CwZcJ-zC045S0CXiWHnepTg@mail.gmail.com \
    --to=teawater@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=hui_zhu@mentor.com \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox