+2008-03-06 Simon Josefsson <simon@josefsson.org>
+
+ * doc/gnulib.texi (__func__): Use C99 terminology when talking
+ about __func__. Make example self-contained. Suggested by Eric
+ Blake <ebb9@byu.net>.
+
+ * tests/test-__func__.c (main): Avoid extraneous () around __func.
+ Suggested by Eric Blake <ebb9@byu.net>.
+
2008-03-05 Simon Josefsson <simon@josefsson.org>
* modules/byteswap (License): Re-license as LGPLv2+.
@node __func__
@section __func__
-The @code{__func__} module makes sure that you can use the
-@code{__func__} variable as defined by C99 in your code.
+The @code{__func__} module makes sure that you can use the predefined
+identifier @code{__func__} as defined by C99 in your code.
A small example is:
@smallexample
#include <config.h>
-...
-printf ("%s: something happened\n", __func__);
+#include <stdio.h> /* for printf */
+
+int main (void)
+@{
+ printf ("%s: hello world\n", __func__);
+@}
@end smallexample
@node GNU Free Documentation License