2008-01-27 Matthias Clasen <mclasen@redhat.com>
+ * glib/gmacros.h: Deprecate G_GNUC_(PRETTY)_FUNCTION.
+
+2008-01-27 Matthias Clasen <mclasen@redhat.com>
+
* m4macros/glib-gettext.m4: Remove AC_CANONICAL_HOST from
GLIB_WITH_NLS again. (#385132)
+2008-01-27 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/tmpl/macros_misc.sgml: Document G_GNUC_(PRETTY)_FUNCTION
+ as deprecated.
+
2008-01-24 Matthias Clasen <mclasen@redhat.com>
* gio/migration.xml: Some more
<!-- ##### MACRO G_GNUC_FUNCTION ##### -->
<para>
-Expands to the GNU C <literal>__FUNCTION__</literal> variable if the
-compiler is <command>gcc</command>, or "" if it isn't. The GNU C
-<literal>__FUNCTION__</literal> variable contains the name of the
-current function. See the GNU C documentation for details.
+Expands to "" on all modern compilers, and to <literal>__FUNCTION__</literal>
+on <command>gcc</command> version 2.x. Don't use it.
</para>
+@Deprecated: 2.14
<!-- ##### MACRO G_GNUC_PRETTY_FUNCTION ##### -->
<para>
-Expands to the GNU C <literal>__PRETTY_FUNCTION__</literal> variable
-if the compiler is <command>gcc</command>, or "" if it isn't.
-The GNU C <literal>__PRETTY_FUNCTION__</literal> variable contains the
-name of the current function. For a C program this is the same as the
-<literal>__FUNCTION__</literal> variable but for C++ it also includes
-extra information such as the class and function prototype. See the
-GNU C documentation for details.
+Expands to "" on all modern compilers, and to
+<literal>__PRETTY_FUNCTION__</literal> on <command>gcc</command> version 2.x.
+Don't use it.
</para>
+@Deprecated: 2.14
<!-- ##### MACRO G_GNUC_NO_INSTRUMENT ##### -->
2008-01-27 Matthias Clasen <mclasen@redhat.com>
+ * gbufferedinputstream.c:
+ * ginputstream.c:
+ * goutputstream.c: Replace uses of G_GNUC_PRETTY_FUNCTION by
+ __FUNCTION__.
+
+2008-01-27 Matthias Clasen <mclasen@redhat.com>
+
* glocalfile.c: Avoid trivial differences in translatable strings.
2008-01-25 Matthias Clasen <mclasen@redhat.com>
user_data,
G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
_("Too large count value passed to %s"),
- G_GNUC_PRETTY_FUNCTION);
+ __FUNCTION__);
return;
}
if (((gssize) count) < 0)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
- _("Too large count value passed to %s"),
- G_GNUC_PRETTY_FUNCTION);
+ _("Too large count value passed to %s"), __FUNCTION__);
return -1;
}
if (((gssize) count) < 0)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
- _("Too large count value passed to %s"),
- G_GNUC_PRETTY_FUNCTION);
+ _("Too large count value passed to %s"), __FUNCTION__);
return -1;
}
user_data,
G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
_("Too large count value passed to %s"),
- G_GNUC_PRETTY_FUNCTION);
+ __FUNCTION__);
return;
}
user_data,
G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
_("Too large count value passed to %s"),
- G_GNUC_PRETTY_FUNCTION);
+ __FUNCTION__);
return;
}
if (((gssize) count) < 0)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
- _("Too large count value passed to %s"),
- G_GNUC_PRETTY_FUNCTION);
+ _("Too large count value passed to %s"), __FUNCTION__);
return -1;
}
user_data,
G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
_("Too large count value passed to %s"),
- G_GNUC_PRETTY_FUNCTION);
+ __FUNCTION__);
return;
}
#define G_GNUC_WARN_UNUSED_RESULT
#endif /* __GNUC__ */
+#ifndef G_DISABLE_DEPRECATED
/* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with
* macros, so we can refer to them as strings unconditionally.
* usage not-recommended since gcc-3.0
#define G_GNUC_FUNCTION ""
#define G_GNUC_PRETTY_FUNCTION ""
#endif /* !__GNUC__ */
+#endif /* !G_DISABLE_DEPRECATED */
#define G_STRINGIFY(macro_or_string) G_STRINGIFY_ARG (macro_or_string)
#define G_STRINGIFY_ARG(contents) #contents
+2008-01-27 Matthias Clasen <mclasen@redhat.com>
+
+ * gthread-posix.c:
+ * gthread-win32.c: Replace uses of G_GNUC_PRETTY_FUNCTION
+ by __FUNCTION__.
+
2008-01-21 Matthias Clasen <mclasen@redhat.com>
* === Released 2.15.3 ===
int error = (err); \
if (error) \
g_error ("file %s: line %d (%s): error '%s' during '%s'", \
- __FILE__, __LINE__, G_GNUC_PRETTY_FUNCTION, \
+ __FILE__, __LINE__, __FUNCTION__, \
g_strerror (error), name); \
}G_STMT_END
#define win32_check_for_error(what) G_STMT_START{ \
if (!(what)) \
g_error ("file %s: line %d (%s): error %s during %s", \
- __FILE__, __LINE__, G_GNUC_PRETTY_FUNCTION, \
+ __FILE__, __LINE__, __FUNCTION__, \
g_win32_error_message (GetLastError ()), #what); \
}G_STMT_END