This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

includes in _scm.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]