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

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

Received on Thursday, 8 June 2000 02:15:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:52 UTC