bug-ncurses
[Top][All Lists]
Advanced

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

Re: Symbols exported when TRACE not defined.


From: Thomas Dickey
Subject: Re: Symbols exported when TRACE not defined.
Date: Sun, 13 May 2018 10:50:03 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, May 12, 2018 at 06:41:42PM -0700, Matt Rice wrote:
> The manual for the trace functions state,
> 
> "These  functions are  normally  available only with the debugging
> library e.g., libncurses_g.a, but may be compiled into any model
> (shared, static, profile)
> by defining the symbol TRACE."
> 
> however the header file still appears to export these even when TRACE
> is undefined. When working with a header file parsing FFI, this is
> leading to the FFI generating a wrapper for the symbols, and then
> eventually an undefined symbol reference unless
> 
> would it be ok to avoid exporting these as well?

yes/no:  I could ifdef-out the declarations when there's no TRACE,
but since the same header files are used for normal/debug libraries,
then that would make it unuseful.  I suppose I could introduce a new
NCURSE_TRACE which developers would have to define to use the features,
but it would be less impact if FFI could be told to check its results...

By the way, we're discussing "declarations", not "exporting".
Exports are done by the library, not the header-files.
The header files tell what data-types to expect :-)

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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