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]

Re: [PATCH, doc] Missed comma in explaining "alloc_size" attribute


On Sun, 23 Mar 2008, Zuxy Meng wrote:
This patch adds a missing comma to a function prototype used as example of the "alloc_size" attribute.

Thanks for the patch! Here is what I just comitted.


Gerald

2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>

	* doc/extend.texi (Function Attributes): Add missing comma in the
	example of the "alloc_size" attribute.
	
Index: doc/extend.texi
===================================================================
--- doc/extend.texi	(revision 133454)
+++ doc/extend.texi	(working copy)
@@ -1881,7 +1881,7 @@

@smallexample
void* my_calloc(size_t, size_t) __attribute__((alloc_size(1,2)))
-void my_realloc(void* size_t) __attribute__((alloc_size(2)))
+void my_realloc(void*, size_t) __attribute__((alloc_size(2)))
@end smallexample

declares that my_calloc will return memory of the size given by


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