mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Add a G_GNUC_INTERNAL macro to mark function declarations as internal and
2004-08-02 Matthias Clasen <mclasen@redhat.com> * glib/gmacros.h: Add a G_GNUC_INTERNAL macro to mark function declarations as internal and avoid PLT indirections for them. (#145465, Arjan van de Ven) * glib/gunicodeprivate.h: * glib/gthreadinit.h: * glib/gmessages.h: * glib/gdebug.h: * glib/gconvert.c: Use G_GNUC_INTERNAL for _g_charset_get_aliases(), _g_debug_init(), _g_log_fallback_handler(), _g_mem_thread_init(), _g_messages_thread_init(), _g_convert_thread_init(), _g_rand_thread_init(), _g_main_thread_init(), _g_atomic_thread_init(), _g_mem_thread_private_init(), _g_messages_thread_private_init(), _g_utf8_normalize_wc() and _g_unichar_combining_class(). * glib/gatomic.c: Include gthreadinit.h here to see the declaration for _g_atomic_thread_init().
This commit is contained in:
committed by
Matthias Clasen
parent
76ce9fcb1b
commit
f1024215a4
@@ -1,7 +1,12 @@
|
||||
2004-08-02 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/glib-sections.txt:
|
||||
* glib/tmpl/macros_misc.sgml: Document G_GNUC_INTERNAL.
|
||||
|
||||
2004-08-01 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
|
||||
* === Released 2.5.1 ===
|
||||
|
||||
|
||||
2004-07-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/tmpl/misc_utils.sgml: Clarify docs for
|
||||
|
@@ -319,6 +319,7 @@ G_GNUC_FORMAT
|
||||
G_GNUC_FUNCTION
|
||||
G_GNUC_PRETTY_FUNCTION
|
||||
G_GNUC_NO_INSTRUMENT
|
||||
G_GNUC_INTERNAL
|
||||
|
||||
<SUBSECTION>
|
||||
G_LIKELY
|
||||
|
@@ -250,6 +250,16 @@ See the GNU C documentation for details.
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### MACRO G_GNUC_INTERNAL ##### -->
|
||||
<para>
|
||||
Expands to the GNU C <literal>visibility(hidden)</literal> attribute if the
|
||||
compiler is <command>gcc</command>. This attribute can be used for marking
|
||||
library functions as being used internally to the lib only, to not create
|
||||
inefficient PLT entries. Note that static functions do not need to be marked
|
||||
as internal in this way. See the GNU C documentation for details.
|
||||
</para>
|
||||
|
||||
Since: 2.6
|
||||
|
||||
<!-- ##### MACRO G_LIKELY ##### -->
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user