confuse-devel
[Top][All Lists]
Advanced

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

[Confuse-devel] questions about libconfuse code / conditional includes..


From: Wolfgang Dautermann
Subject: [Confuse-devel] questions about libconfuse code / conditional includes...
Date: Mon, 18 Feb 2008 22:29:19 +0100
User-agent: Thunderbird 2.0.0.9 (X11/20070801)

Dear Libconfuse-team,
I was searching for a config file parser code, to include in our (GPL)
project. The libconfuse-code seems good for our purposes.

I have a few questions:
(a) Including the files in GPL Software is okay (as far as I know) - as
long as I leave the copyright-notice as it is?

(b) I want to include the source files directly in our project (because
I believe, libconfuse is not a standard library...). I have modified the
source, so that it compiles now within my project.

But why do you - for example - in confuse.c conditionally include
<stdlib.h>:

#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif

- and in lexer.c not? (and the same with other includes...)

The library will not compile on system with a missing stdlib.h (since it
uses malloc() and that requires that include file). Right?
These conditional includes makes it harder to include the files in other
projects.

Of course I can remove that #ifdefs, but it would be easier, if I could
include the unmodified files...

Best regards,
Wolfgang







reply via email to

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