Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 1999 06:50:02 -0700 (PDT)
From:      Martin Cracauer <cracauer@cons.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/13029: regex.h should include sys/types.h
Message-ID:  <199908101350.GAA87487@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/13029; it has been noted by GNATS.

From: Martin Cracauer <cracauer@cons.org>
To: David Gilbert <dgilbert@velocet.ca>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/13029: regex.h should include sys/types.h
Date: Tue, 10 Aug 1999 15:36:10 +0200

 In <owner-freebsd-bugsATFreeBSD.ORG--199908081541.LAA61376@strike.velocet.ca>, David Gilbert wrote: 
 > 
 > >Number:         13029
 > >Category:       bin
 > >Synopsis:       Subject: regex.h should include sys/types.h
 
 As stated in the man page, you have to include sys/types by yourself
 before regex.h
 
 A reason why this such things are done is that sys/types narrows down
 the choice of identifiers you may use in your program. For each header
 file, there's a list of reserved identifies. If you include
 sys/types.h by yourself, you will know that you have to avoid them. If
 some other header file with a different reserved identifier list
 silently includes a file with other reservations, the user don't
 recognize.
 
 Martin
 -- 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 Martin Cracauer <cracauer@bik-gmbh.de> http://www.bik-gmbh.de/~cracauer/
 "Where do you want to do today?" Hard to tell running your calendar 
  program on a junk operating system, eh?
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908101350.GAA87487>