Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 12837 invoked by uid 6000); 10 Nov 1999 18:11:18 -0000 Received: (qmail 12600 invoked from network); 10 Nov 1999 18:10:43 -0000 Received: from fwns1d.raleigh.ibm.com (HELO fwns1.raleigh.ibm.com) (204.146.167.235) by taz.hyperreal.org with SMTP; 10 Nov 1999 18:10:43 -0000 Received: from rtpmail01.raleigh.ibm.com (rtpmail01.raleigh.ibm.com [9.37.172.24]) by fwns1.raleigh.ibm.com (8.9.0/8.9.0/RTP-FW-1.2) with ESMTP id NAA34580 for ; Wed, 10 Nov 1999 13:10:32 -0500 Received: from chosondo.raleigh.ibm.com (chosondo.raleigh.ibm.com [9.37.73.195]) by rtpmail01.raleigh.ibm.com (8.8.5/8.8.5/RTP-ral-1.1) with ESMTP id NAA33288 for ; Wed, 10 Nov 1999 13:09:46 -0500 Date: Wed, 10 Nov 1999 13:08:53 -0500 (EST) From: Ryan Bloom To: new-httpd@apache.org Subject: Re: Common code Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org I think I like the idea of #ifdef's actually. It tells the programmer exactly which header file they should be modifying. I considered doing this in the Makefile, by using "-I../@OSDIR@" instead of "-I.". But I think this is just confusing, and it just ends up hiding where the file is really located. I'm +1 for the ifdefs. Ryan > OK, so I'm revisiting this (yet) again. > > The recent addition of sockaddr.c meant that I had an opportunity to > practise what I preach and use the default.c file to include the code. > Problem I discovered is that it uses the networkio.h from the Unix > directory, not the beos one! There isn't much difference but enough to > provoke a few memory faults. It can easily overcome by a small #ifdef > but > does that defeat the objective of having nice clean code? > > I've committed a sockaddr.c into the beos directory until this is > resolved... > >david _______________________________________________________________________ Ryan Bloom rbb@raleigh.ibm.com 4205 S Miami Blvd RTP, NC 27709 It's a beautiful sight to see good dancers doing simple steps. It's a painful sight to see beginners doing complicated patterns.