From owner-freebsd-hackers Sun Nov 5 10:11:05 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id KAA08086 for hackers-outgoing; Sun, 5 Nov 1995 10:11:05 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id KAA08080 ; Sun, 5 Nov 1995 10:10:59 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id TAA24974; Sun, 5 Nov 1995 19:10:47 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id TAA16594; Sun, 5 Nov 1995 19:10:47 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id SAA00830; Sun, 5 Nov 1995 18:09:00 +0100 From: J Wunsch Message-Id: <199511051709.SAA00830@uriah.heep.sax.de> Subject: Re: RPC oddities To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Sun, 5 Nov 1995 18:09:00 +0100 (MET) Cc: dfr@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199511051233.NAA12443@allegro.lemis.de> from "Greg Lehey" at Nov 5, 95 01:33:19 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 950 Sender: owner-hackers@freebsd.org Precedence: bulk As Greg Lehey wrote: > > > includes definitions for several constants that are inside > > enum's. To the contrary, #define's just the very same > > constants. The result is that the compiler sees something like: > How about a series of: > > /* Authentication failures */ > #undef AUTH_BADCRED 1 > #undef AUTH_REJECTCRED 2 > #undef AUTH_BADVERF 3 > #undef AUTH_REJECTVERF 4 > #undef AUTH_TOOWEAK 5 /* Give em wheaties */ Yikes! That's exactly what i'm doing now. But this is a first class mess. Leave alone the poor appearance of the source code, but it does also make me nervous that the enum's and the #define's sometimes even disagree in their values! Somethin's stinkin' badly here! (I was in hope for the NFS wizards to shed some light on this.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)