This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
includes in _scm.h
- To: Guile Mailing List <guile at sourceware dot cygnus dot com>
- Subject: includes in _scm.h
- From: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Date: Wed, 15 Mar 2000 16:17:30 +0100 (MET)
Hello!
Most of the guile files include _scm.h. This file includes a large number
of other header files. I question that this makes sense: When I changed
a line in vectors.h, almost everything had to be recompiled, because
vectors.h is included by _scm.h.
Some statistics:
75 .c files directly include _scm.h
30 .c files need definitions from vectors.h
Thus, changing vectors.h leads to an unnecessary recompilation of 45
files.
Shouldn't this be avoided? Maybe someone knows strong reasons for having
such an include-everything file, but if this is not the case I propose to
have each .c file explicitly include all headers that it needs.
Best regards
Dirk Herrmann