> It seems there is no real way to extract the list of exported symbols
> (functions and variables, the current script only catches the function
> names (without prototype information)) by a simple filter script from
> the includes so I am now looking for a better solution.
ast external symbols are bracketed in the headers by something like:
#if _BLD_foo && defined(__EXPORT__)
#define __MANGLE__ ...
or
#define extern ...
#endif
...
#undef __MANGLE__
or
#undef extern
we also have the proto(1) command that may be able to produce the list
do you need the complete prototypes or just the names?
also, there may be some _* symbols shared between ast library
functions but not exported in .so's/.dll's -- are those needed?
> previous solution but still time-/work-intensive and we completely loose
> the ability to distinguish between internal functions and those who are
> marked in the libast includes as __EXTERN__
__EXTERN__ is used for data symbols in src implementations
are you referring to __EXPORT__ (and/or __IMPORT__) ?
-- Glenn Fowler -- AT&T Research, Florham Park NJ --