This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch to make uses of NULL consistently use @code


This patch makes the formatting of NULL and NULL_TREE consistently use
@code.  It passes "make info" and "make dvi".  Applied to mainline and
3.0 branch.

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.11491
retrieving revision 1.11492
diff -u -r1.11491 -r1.11492
--- ChangeLog	2001/10/07 10:36:05	1.11491
+++ ChangeLog	2001/10/07 11:05:39	1.11492
@@ -1,5 +1,10 @@
 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
 
+	* doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
+	NULL_TREE inside @code.
+
+2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
+
 	* doc/gcc.texi: Document consistent style of "32-bit",
 	"Objective-C", and "@code{NULL}".
 
Index: doc/c-tree.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/c-tree.texi,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- c-tree.texi	2001/09/21 01:27:06	1.17
+++ c-tree.texi	2001/10/07 11:05:45	1.18
@@ -500,7 +500,7 @@
 
 Note that in C (but not in C++) a function declared like @code{void f()}
 is an unprototyped function taking a variable number of arguments; the
-@code{TYPE_ARG_TYPES} of such a function will be NULL@.
+@code{TYPE_ARG_TYPES} of such a function will be @code{NULL}.
 
 @item METHOD_TYPE
 Used to represent the type of a non-static member function.  Like a
@@ -1308,7 +1308,7 @@
 @findex WHILE_COND
 
 A function that has a definition in the current translation unit will
-have a non-NULL @code{DECL_INITIAL}.  However, back ends should not make
+have a non-@code{NULL} @code{DECL_INITIAL}.  However, back ends should not make
 use of the particular value given by @code{DECL_INITIAL}.
 
 The @code{DECL_SAVED_TREE} macro will give the complete body of the
@@ -1423,8 +1423,8 @@
 @item CASE_LABEL
 
 Use to represent a @code{case} label, range of @code{case} labels, or a
-@code{default} label.  If @code{CASE_LOW} is NULL_TREE, then this is a a
-@code{default} label.  Otherwise, if @code{CASE_HIGH} is NULL_TREE, then
+@code{default} label.  If @code{CASE_LOW} is @code{NULL_TREE}, then this is a a
+@code{default} label.  Otherwise, if @code{CASE_HIGH} is @code{NULL_TREE}, then
 this is an ordinary @code{case} label.  In this case, @code{CASE_LOW} is
 an expression giving the value of the label.  Both @code{CASE_LOW} and
 @code{CASE_HIGH} are @code{INTEGER_CST} nodes.  These values will have
Index: doc/tm.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/tm.texi,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- tm.texi	2001/09/21 16:58:21	1.59
+++ tm.texi	2001/10/07 11:05:45	1.60
@@ -849,7 +849,7 @@
 @findex init_machine_status
 @item   init_machine_status
 This is a @code{void (*)(struct function *)} function pointer.  If this
-pointer is non-NULL it will be called once per function, before function
+pointer is non-@code{NULL} it will be called once per function, before function
 compilation starts, in order to allow the target to perform any target
 specific initialisation of the @code{struct function} structure.  It is
 intended that this would be used to initialise the @code{machine} of
@@ -858,14 +858,14 @@
 @findex free_machine_status
 @item   free_machine_status
 This is a @code{void (*)(struct function *)} function pointer.  If this
-pointer is non-NULL it will be called once per function, after the
+pointer is non-@code{NULL} it will be called once per function, after the
 function has been compiled, in order to allow any memory allocated
 during the @code{init_machine_status} function call to be freed.
 
 @findex mark_machine_status
 @item   mark_machine_status
 This is a @code{void (*)(struct function *)} function pointer.  If this
-pointer is non-NULL it will be called once per function in order to mark
+pointer is non-@code{NULL} it will be called once per function in order to mark
 any data items in the @code{struct machine_function} structure which
 need garbage collection.
 
@@ -6575,7 +6575,7 @@
 
 The argument @var{is_inst} specifies whether the method is an instance
 method or a class method; @var{class_name} is the name of the class;
-@var{cat_name} is the name of the category (or NULL if the method is not
+@var{cat_name} is the name of the category (or @code{NULL} if the method is not
 in a category); and @var{sel_name} is the name of the selector.
 
 On systems where the assembler can handle quoted names, you can use this

-- 
Joseph S. Myers
jsm28@cam.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]