W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2000

Header files including others correctly

From: H. Nanosecond <aldomel@ix.netcom.com>
Date: Wed, 7 Jun 2000 23:01:06 -0400 (EDT)
Message-Id: <200006080301.XAA29971@maynard.mail.mindspring.net>
To: www-lib@w3.org
Hello,

In libwww, the CVS version, the header files don't include other
libwww headers when the need to.

For example

test.c is
===
/* optionally #include <stdio.h>, etc.*/
#include <HTAncMan.h>
===

gcc -fsyntax-only  test.c -I. 
gives lots of errors.


Also the headers should have wrappers to prevent inclusion twice:
#ifndef HEADER_H 
#define HEADER_H
body
#endif

Thanks.
Received on Thursday, 8 June 2000 02:15:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:36 GMT