[haiku-gsoc] Re: Licensing questions
- From: Hamish Morrison <hamishm53@xxxxxxxxx>
- To: haiku-gsoc@xxxxxxxxxxxxx
- Date: Mon, 12 Jun 2017 09:31:26 +0100
On Mon, Jun 12, 2017 at 8:37 AM, Vivek Roy <vivekroyandroid@xxxxxxxxx> wrote:
I copied the required files from the src folder into
headers/compatibility/freebsd
I hope that is all right.
Just to clarify, you've copied cpp files from src into headers? If so, why?
src and headers are intentionally separate. src contains source files
- containing the definition of functions. The headers just provide the
declarations - they provide the interfaces for other code to call -
not the implementations. This means that the implementations need only
be compiled once into some library. If you put the implementations in
a header, they are compiled into every source file that includes that
header. For some small functions this might be appropriate, but for
larger ones it isn't.
Other related posts: