external variables
- From: Stephen Nestinger <ssn17 yahoo com>
- To: gtk-devel-list gnome org
- Subject: external variables
- Date: Tue, 23 Nov 2004 11:06:26 -0800 (PST)
In the GLIB source, it appears that all of the
exported variables are encapsulated in
#ifndef VAR
# ifdef G_PLATFORM_WIN32
# ifdef GLIB_COMPILATION
# ...
# else
# VAR extern
#endif
In the GTK souce, some of the variables (GTKMAIN_C_VAR
in gtkmain.h) are encapsulated with the same format
while others (GTKVAR in gtkdebug.h) look like
#ifdef G_OS_WIN32
# ifdef GTK_COMPILATION
# define GTKVAR __declspec(dllexport)
# else
# define GTKVAR extern __declspec(dllimport)
# endif
#else
# define GTKVAR extern
#endif
Is there a reason for the difference between
G_OS_WIN32 and G_PLATFORM_WIN32? If possible, could
all of the exported variable format declerations be
consistent and follow GLIBS format.
Stephen
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]