Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 73076 invoked by uid 500); 17 Oct 2001 14:44:19 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 73043 invoked from network); 17 Oct 2001 14:44:18 -0000 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.0 Date: Wed, 17 Oct 2001 08:44:22 -0600 From: "Brad Nicholes" To: ,, Subject: Re: cvs commit: httpd-2.0/os/netware pre_nw.h modules.c Apache.def Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Spam-Rating: daedalus.apache.org 1.6.2 500/1000/N The reason why these are in a separate .h file is a compiler issue. If = the Metrowerk compiler worked like every other compiler, you would be = correct. The fact is that is doesn't which can and has been very = frustrating. :( pre_nw.h is not a file that is #include'd in any source = file. It is a file that is automatically included by the compiler itself. = Hopefully, someday we will actually build this product using a real = compiler. ;-) =20 Brad >>> wrowe@covalent.net Tuesday, October 16, 2001 6:33:57 PM >>> > bnicholes 01/10/16 16:25:46 >=20 > Added: os/netware pre_nw.h modules.c Apache.def > Log: > OS specific file for NetWare Brad... these seem to be the usual compiler munging... I expect though they would be better placed in apr.hnw where they can do all apr-based applications some good? We expect apr.h to do all the compiler and platform munging for us, so httpd doesn't have to :) Of course, there are still a very few legitimate uses for the os/ = directory, but they are shrinking very quickly. > Index: pre_nw.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > #ifndef __pre_nw__ > #define __pre_nw__ > =20 > #pragma precompile_target "precomp.mch" > #define NETWARE > =20 > =20 > #define N_PLAT_NLM > =20 > /* hint for MSL C++ that we're on NetWare platform */ > #define __NETWARE__ > =20 > /* the FAR keyword has no meaning in a 32-bit environment=20 > but is used in the SDK headers so we take it out */ > #define FAR > #define far > =20 > /* no-op for Codewarrior C compiler; a functions are cdecl=20 > by default */ > #define cdecl > =20 > /* if we have wchar_t enabled in C++, predefine this type to avoid > a conflict in Novell's header files */ > #if (__option(cplusplus) && __option(wchar_type)) > #define _WCHAR_T > #endif > =20 > /* C9X defintion used by MSL C++ library */ > #define DECIMAL_DIG 17 > =20 > /* define long long typedefs for Watcom compatiblity */ > typedef long long int64_t; > typedef unsigned long long uint64_t; > =20 > /* some code may want to use the MS convention for long long */ > #ifndef __int64 > #define __int64 long long > #endif > =20 > #endif