Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Feb 1999 09:32:46 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Peter Jeremy <peter.jeremy@auss2.alcatel.com.au>
Cc:        current@FreeBSD.ORG
Subject:   Obutuse code (was: btokup().. patch to STYLE(9) (fwd))
Message-ID:  <19990202093246.M71384@freebie.lemis.com>
In-Reply-To: <99Feb2.070121est.40330@border.alcanet.com.au>; from Peter Jeremy on Tue, Feb 02, 1999 at 07:11:06AM %2B1100
References:  <99Feb2.070121est.40330@border.alcanet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday,  2 February 1999 at  7:11:06 +1100, Peter Jeremy wrote:
> 
> BTW, anyone looking further afield from the above comment might notice
> code like:
> 
>   register *foo;
> 
>   foo = u.u_area;
>   foo->p_xyzzy =+ n;
> 
> There aren't may C compilers left that can handle this sort of code...

Ah, but there's better:

#define	PS	0177776
struct	{
	int	integ;
};

sleep(chan, pri)
{
	int s;
	register *rp;

	s = PS->integ;

Greg
-- 
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key

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



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