bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gettext] [PATCH] Determine Woe32 C symbol prefix at configure t


From: B. Scott Michel
Subject: Re: [bug-gettext] [PATCH] Determine Woe32 C symbol prefix at configure time.
Date: Wed, 02 Jan 2013 13:29:55 -0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 12/27/2012 5:49 PM, Daiki Ueno wrote:
> "B. Scott Michel" <address@hidden> writes:
>
>> The better fix is to __not__ manually mangle the symbols with the
>> "magic" IMP macro. Instead, the library should support symbol
>> visibility, such as dllexport()/dllimport() for WinXX platforms and
>> _attribute_ ((visibility("hidden"))) for Linux ELF. The "brain damage"
>> for WinXX is that while building the library, dllexport() has to be in
>> force, whereas during linking, dllimport() has to be in force. Similarly
>> for Linux.
> Actually, gettext does use dllexport/dllimport in the header files
> through DLL_VARIABLE macro.  The use of IMP macro is to maintain the
> export list (see the comments in gettext-tools/woe32dll/export.h).  Do
> you mean it is possible to define the export list with a standard way?
export.h is inherently non-maintainable. Granted that the entire process
of DLL import/export is a pain, but better that it should be done via
preprocessor hacks than generating inline assembly code.

The patch isn't small and prototype code would be a righteous pain to
generate at this point. I'll consider my various options before posting.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]