Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga.tech Subject: Re: Aztec 5.0 Message-ID: <5108@sugar.hackercorp.com> Date: 4 Feb 90 17:06:49 GMT References: <6285@cps3xx.UUCP> Reply-To: peter@sugar.hackercorp.com (Peter da Silva) Organization: Sugar Land Unix - Houston Lines: 19 In article <6285@cps3xx.UUCP> griffin@frith.egr.msu.edu () writes: > In an article Karl Lehenbauer [Organization: Sugar Land Unix - Houston] > writes: > > This will work with old-style K&R declarations as well. Here is where I > > found the only bug I've found so far -- it wrote into the prototype file > > a parameter of "int foo" when the K&R-style argument was > > "register char *foo". > ANSI requires that taking of the address of 'register' is always an error, That's fine, but "register char *foo;" is a legal declaration: a pointer stored in a register. Whether having a "register" declaration on a parameter is legal or not (I don't have my copy of the draft here, but I think it is) is another matter: but converting the declaration ot "int" is still a bug. -- _--_|\ Peter da Silva . / \ \_.--._/ I haven't lost my mind, it's backed up on tape somewhere! v "Have you hugged your wolf today?" `-_-'