Re: Code problems found by doxygen


Subject: Re: Code problems found by doxygen
From: Sam TH (sam@uchicago.edu)
Date: Wed Feb 07 2001 - 17:26:49 CST


On Thu, Feb 08, 2001 at 12:01:47AM +0100, Mike Nordell wrote:
> Paul Rohr wrote:
> > > void IE_Exp_PalmDoc::_zero_fill(register char * p,register int len)
>
> This I can only say is an error in itself. For example: Is any version of
> e.g. gcc really that "dumb" that it trusts a users suggestion to use a
> register? On x86?! The only CPU with basically less registers than you have
> digits on your hand, _even if you loose your thumb_!
>

I highly doubt gcc actually does what you tell it here. However, I
was unable to find mention of the register keyword in the GCC manual.
What does MSVC do with it?

> I'd go for removing those attempts to make anything a register variable.
> Actually, I'd like to ban the "register" keyword.

Good idea. David, does this need the register? I can't think of any
reason to.
           
        sam th
        sam@uchicago.edu
        http://www.abisource.com/~sam/
        GnuPG Key:
        http://www.abisource.com/~sam/key




This archive was generated by hypermail 2b25 : Wed Feb 07 2001 - 17:25:52 CST