After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 149907 - Dubious "extern"
Dubious "extern"
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.5.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2004-08-11 13:55 UTC by Morten Welinder
Modified: 2011-02-18 16:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2004-08-11 13:55:26 UTC
When compiling gutils.c, G_INLINE_FUNC is "extern" which leads to gutils.h
expanding to several "extern" (but not "inline") functions that have
definitions.  I don't think that is kosher.

Why isn't G_INLINE_FUNC just empty?


...
extern gint
g_bit_nth_msf (gulong mask,
	       gint   nth_bit)
{
...
}
...
Comment 1 Matthias Clasen 2005-01-04 05:31:51 UTC
2005-01-04  Matthias Clasen  <mclasen@redhat.com>

	Fix the inlining magic.  (#157536, Jens Hatlak, and
	#149907, Morten Welinder)
	
	* configure.in: Define G_CAN_INLINE in glibconfig.h

	* glib/gutils.h: Streamline the inlining magic a bit,
	don't use extern when implementing the non-inlined 
	version.