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 523225 - modules/input/im*.c: MODULE_ENTRY macros make illegal code
modules/input/im*.c: MODULE_ENTRY macros make illegal code
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Input Methods
2.13.x
Other Windows
: Normal normal
: ---
Assigned To: Hidetoshi Tajima
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-03-18 19:46 UTC by Kazuki Iwamoto
Modified: 2008-03-18 21:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2008-03-18 19:46:14 UTC
Please describe the problem:
Please see the following codes about MODULE_ENTRY.

Original code:
GtkIMContext * MODULE_ENTRY (create) (const gchar *context_id)

Preprocessed code:
GtkIMContext * __declspec(dllexport) im_module_create (const gchar *context_id)

The macro puts '__declspec(dllexport)' at the illegal position.
'__declspec(dllexport)' have to be put at the top of the declaration.

Steps to reproduce:
1. compile im*.c

Actual results:
An error occurs.

Expected results:
correct code:
__declspec(dllexport) GtkIMContext * im_module_create (const gchar *context_id)

Does this happen every time?
Revision 19896

Other information:
Comment 1 Tor Lillqvist 2008-03-18 21:14:33 UTC
I guess this is with MSVC?
Comment 2 Tor Lillqvist 2008-03-18 21:29:38 UTC
Fixed:

2008-03-18  Tor Lillqvist  <tml@novell.com>

	Bug 523225 - modules/input/im*.c: MODULE_ENTRY macros make illegal codes
	
	* modules/input/im*.c: Modify the MODULE_ENTRY macro so the
	G_MODULE_ENTRY decoration can be put in a more correct place.