Re: Header independence

2009-03-22 Thread Daniel Stenberg
On Sun, 22 Mar 2009, Alexander Lamaison wrote: > Can anyone think of any reason not to add #include to > libssh2_sftp.h? Nope, me neither and I agree with you that headers should take care of their own prerequisits. -- / daniel.haxx.se

Re: Header independence

2009-03-22 Thread Peter Stuge
Alexander Lamaison wrote: > Can anyone think of any reason not to add #include to > libssh2_sftp.h? No. //Peter -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging,

Header independence

2009-03-22 Thread Alexander Lamaison
A development best-practice that I've been trying to adhere to recently is that header files should be independent. In other words, they shouldn't rely on the source file to include any other headers that they rely on. If they need anything to be defined in order to be parsed, they must include i