public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Add comments in front of some functions in tree-pretty-print.c
@ 2007-08-19  1:32 Andrew Pinski
  2007-08-19 18:25 ` Richard Guenther
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Pinski @ 2007-08-19  1:32 UTC (permalink / raw)
  To: GCC Patches

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

Hi,
  I noticed (after the review of my patch to add dumping functions for
affine), that the three debug_* functions in tree-pretty-print.c did
not have a comment in front of them.  This patch adds a comment to all
of those three functions.

OK?

Thanks,
Andrew Pinski

ChangeLog:

* tree-pretty-print.c (debug_generic_expr): Add a comment about the function.
(debug_generic_stmt): Likewise.
(debug_tree_chain): Likewise.

[-- Attachment #2: addcomments.diff.txt --]
[-- Type: text/plain, Size: 730 bytes --]

Index: tree-pretty-print.c
===================================================================
--- tree-pretty-print.c	(revision 127614)
+++ tree-pretty-print.c	(working copy)
@@ -84,6 +84,8 @@ do_niy (pretty_printer *buffer, tree nod
   pp_string (buffer, " >>>\n");
 }
 
+/* Debugging function to print out a generic expression.  */
+
 void
 debug_generic_expr (tree t)
 {
@@ -91,6 +93,8 @@ debug_generic_expr (tree t)
   fprintf (stderr, "\n");
 }
 
+/* Debugging function to print out a generic statement.  */
+
 void
 debug_generic_stmt (tree t)
 {
@@ -98,6 +102,8 @@ debug_generic_stmt (tree t)
   fprintf (stderr, "\n");
 }
 
+/* Debugging function to print out a chain of trees .  */
+
 void
 debug_tree_chain (tree t)
 {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add comments in front of some functions in tree-pretty-print.c
  2007-08-19  1:32 [PATCH] Add comments in front of some functions in tree-pretty-print.c Andrew Pinski
@ 2007-08-19 18:25 ` Richard Guenther
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Guenther @ 2007-08-19 18:25 UTC (permalink / raw)
  To: Andrew Pinski; +Cc: GCC Patches

On 8/19/07, Andrew Pinski <pinskia@gmail.com> wrote:
> Hi,
>   I noticed (after the review of my patch to add dumping functions for
> affine), that the three debug_* functions in tree-pretty-print.c did
> not have a comment in front of them.  This patch adds a comment to all
> of those three functions.
>
> OK?

Ok.

Thanks,
Richard.

> Thanks,
> Andrew Pinski
>
> ChangeLog:
>
> * tree-pretty-print.c (debug_generic_expr): Add a comment about the function.
> (debug_generic_stmt): Likewise.
> (debug_tree_chain): Likewise.
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-19 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-19  1:32 [PATCH] Add comments in front of some functions in tree-pretty-print.c Andrew Pinski
2007-08-19 18:25 ` Richard Guenther

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).