Conor Daly wrote:
> I don't want to require users to
> #include <metdate.h>
> #include <datahandle.h>
> #include <qcrun.h>
>> Instead they should
>> #include <libqc.h>
>> which will include all the stuff. However, should users be able to look
> in libqc.h and see the function declarations and associated commentary?
no need
> Or should they see references to metdate.h, datahandle.h and qcrun.h and
> look in there for the details.
yes, and easy with "gf" in vim, or ctags, or ...
Also if you look at existing libraries like gtk:
#ifndef __GTK_H__
#define __GTK_H__
#include <gdk/gdk.h>
#include <gtk/gtkaboutdialog.h>
/* loads more snipped */
#include <gtk/gtkwindow.h>
#endif /* __GTK_H__ */
Pádraig.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!