datadir (was: RE: new package description fields, sdist, and preprocessors)

Bernard Pope bjpop at cs.mu.OZ.AU
Tue Aug 9 05:21:36 EDT 2005


On Tue, 2005-08-09 at 12:05 +0300, Krasimir Angelov wrote:
> On 8/9/05, Bernard Pope <bjpop at cs.mu.oz.au> wrote:
> > What if, say, you have some C code in your package that also wants to
> > know the values of these paths?
> > 
> > Bernie.
> 
> ;-))  Then you can use something like:
> 
> char *prefix, *bindir, *libdir, *datadir;
> 
> void initPaths()
> {
> #include "paths.h"
> }
> 
> It works for both Haskell and C if each line has ';' at the end.

Okay, C was a bad example. Pick another language :)

Bernie.



More information about the Libraries mailing list