bug-ncurses
[Top][All Lists]
Advanced

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

Re: about internal exported symbols


From: Thomas Dickey
Subject: Re: about internal exported symbols
Date: Wed, 3 Dec 2003 06:19:28 -0500 (EST)

On Wed, 3 Dec 2003, Stanislav Ievlev wrote:

> On Tue, Dec 02, 2003 at 06:00:09AM -0500, Thomas Dickey wrote:
> > On Tue, 2 Dec 2003, Stanislav Ievlev wrote:
> >
> > > Greetings!
> > >
> > > I have a question about ncurses shared library exported symbols.
> > > Why this library exports a lot of internal functions with _nc prefix?
> > > Why ncurses tests use these internal functions, e.g. _nc_free_and_exit() 
> > > via ExitProgram() macros?
> >
> > >
> > > I think it's bad:
> >
> > read closer: they're only used for testing memory leaks, in a
> > configuration that the ordinary library is not compiled for.
> >
> > (there are internal functions exported for tic, infocmp - but that's
> > not the example you gave).
>
> Well, but some of these internal exported functions are never used,
> neither by ncurses libraries nor by ncurses utils:
> _nc_Copy_Argument
> _nc_expanded
> _nc_freeall
> _nc_free_entries
> _nc_get_locale
> _nc_insert_ch
> _nc_memmove
> _nc_msec_cost
> _nc_outstr
> _nc_read_termcap
> _nc_screen_resume
> _nc_sigaction
> _nc_vsscanf
> _nc_wgetch

...and some are not exported at all, since they're unused on a given
platform.  Here's a list obtained using 'nm':

_nc_cap_hash_table
_nc_capalias_table
_nc_check_termtype
_nc_comment_end
_nc_comment_start
_nc_curr_col
_nc_curr_file_pos
_nc_curr_line
_nc_curr_token
_nc_disable_period
_nc_head
_nc_info_hash_table
_nc_infoalias_table
_nc_key_names
_nc_nulls_sent
_nc_oldnums
_nc_screen_chain
_nc_slk_format
_nc_start_line
_nc_suppress_warnings
_nc_syntax
_nc_tail
_nc_tinfo_fkeys
_nc_tparm_err
_nc_tracing
_nc_user_definable

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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