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

Re: Non-C/C++/ObjC source files in /usr/include subdirectories



Julian Gilbey <J.D.Gilbey@qmul.ac.uk> writes:

> On Wed, Nov 21, 2001 at 11:18:20AM +0100, Florian Weimer wrote:
> > Is it acceptable to put source files for non-C-related languages
> > (such as Python, Perl, Ada, Java, and so on) in subdirectories
> > under /usr/include?
> 
> What are "source files" in this context?

Complete source files, i.e. you could rebuild the library in question
from them (with the exception of, for example, parts written in C).

> Note that /usr/include is generally not for source files, but for
> header files to be included during compilation.

The GNAT compilation model (GNAT is the Ada compiler) strongly favors
the presence of both the spec (the .h file) and the body (the .c
file).  For some compilation units (generic units, similar to C++
templates), complete source code is required, naturally.

-- 
Florian Weimer 	                  Florian.Weimer@RUS.Uni-Stuttgart.DE
University of Stuttgart           http://cert.uni-stuttgart.de/
RUS-CERT                          +49-711-685-5973/fax +49-711-685-5898



Reply to: