gEDA-dev: [RFC] Headers for private libgeda functions
Bernd Jendrissek
bernd.jendrissek at gmail.com
Wed Nov 28 03:44:51 EST 2007
On Nov 27, 2007 5:04 PM, Peter TB Brett <peter at peter-b.co.uk> wrote:
> Where should I put the header file(s) declaring these functions? Declaring
> the functions in the headers installed to include_dir seems like the Wrong
> Thing, if we don't want them to be used by external code. The normal thing
> would be to put them in the src directory with the C files.
You can still put the libgeda-private headers in libgeda/include/, but
in Makefile.am you have to list them in noinst_HEADERS instead of in
libgedainclude_HEADERS.
Or, you could keep the prototypes in the same file as the
publicly-exported prototypes, but guard them with #ifdef
LIBGEDA_INTERNAL.
More information about the geda-dev
mailing list