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]
Other format: [Raw text]

Fix documentation of macros in builtin-types.def


Hi Guys,

  I am applying the patch below under the obvious patch rule.  It
  fixes two minor documentation problems in the builtin-types.def
  file.  The first was that the macro DEF_FUNCTION_TYPE_VAR5 was
  misnamed as DEF_FUNCTION_TYPE_VAR4.  The second was that the
  documentation implied that there were at most 3 fixed arguments
  supported when in fact the current limit is 7.

Cheers
  Nick

gcc/ChangeLog
2007-02-14  Nick Clifton  <nickc@redhat.com>

	* builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
	most 3 arguments are supported.
	(DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.

Index: gcc/builtin-types.def
===================================================================
--- gcc/builtin-types.def	(revision 121945)
+++ gcc/builtin-types.def	(working copy)
@@ -39,14 +39,14 @@ Software Foundation, 51 Franklin Street,
 
      These macros describe function types.  ENUM is as above.  The
      RETURN type is one of the enumerals already defined.  ARG1, ARG2,
-     and ARG3 give the types of the arguments, similarly.
+     etc, give the types of the arguments, similarly.
 
    DEF_FUNCTION_TYPE_VAR_0 (ENUM, RETURN)
    DEF_FUNCTION_TYPE_VAR_1 (ENUM, RETURN, ARG1)
    DEF_FUNCTION_TYPE_VAR_2 (ENUM, RETURN, ARG1, ARG2)
    DEF_FUNCTION_TYPE_VAR_3 (ENUM, RETURN, ARG1, ARG2, ARG3)
    DEF_FUNCTION_TYPE_VAR_4 (ENUM, RETURN, ARG1, ARG2, ARG3, ARG4)
-   DEF_FUNCTION_TYPE_VAR_4 (ENUM, RETURN, ARG1, ARG2, ARG3, ARG4, ARG5)
+   DEF_FUNCTION_TYPE_VAR_5 (ENUM, RETURN, ARG1, ARG2, ARG3, ARG4, ARG5)
 
      Similar, but for function types that take variable arguments.
      For example:


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