Re: One more question (different now)

2000-05-21 Thread Wes Peters
Warner Losh wrote: > > In message <[EMAIL PROTECTED]> "David O'Brien" writes: > : On Thu, May 11, 2000 at 12:48:40PM -0600, Warner Losh wrote: > : > In the US, how do I get the same thing for C++? > : > : http://web.ansi.org/public/std_info.html > : > : Search for "C++": > : > : ISO/IEC 14882:199

Re: One more question (different now)

2000-05-12 Thread Martin Cracauer
In <[EMAIL PROTECTED]>, Sheldon Hearn wrote: > > > On Thu, 11 May 2000 03:58:57 +0200, Bernd Luevelsmeyer wrote: > > > The Standard itself is a book and can be bought as such in bookstores. > > Can you give us details? Do I just hunt Amazon.com for "C99", or does > it have a proper title? I

Re: One more question (different now)

2000-05-11 Thread Warner Losh
In message <[EMAIL PROTECTED]> Warner Losh writes: : That's cool. I can get the electronic version for only $18. What : format is it in? Never mind. Found that it is in PDF. Now where did I put that credit card... Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe free

Re: One more question (different now)

2000-05-11 Thread Bernd Luevelsmeyer
Warner Losh wrote: > > In message <[EMAIL PROTECTED]> Bernd Luevelsmeyer writes: > : What you want is "ISO/IEC 9899:1999 Programming languages -- C" > > In the US, how do I get the same thing for C++? > > Warner I don't talk C++, but I think you'll want "ISO/IEC 14882:1998 Programming languag

Re: One more question (different now)

2000-05-11 Thread Warner Losh
In message <[EMAIL PROTECTED]> "David O'Brien" writes: : On Thu, May 11, 2000 at 12:48:40PM -0600, Warner Losh wrote: : > In the US, how do I get the same thing for C++? : : http://web.ansi.org/public/std_info.html : : Search for "C++": : : ISO/IEC 14882:1998 Programming languages - C++ $ 305 :

Re: One more question (different now)

2000-05-11 Thread David O'Brien
On Thu, May 11, 2000 at 12:48:40PM -0600, Warner Losh wrote: > In the US, how do I get the same thing for C++? http://web.ansi.org/public/std_info.html Search for "C++": ISO/IEC 14882:1998 Programming languages - C++ $ 305 ISO/IEC 14882-1998 Information Technology - Programming Languages - C++

Re: One more question (different now)

2000-05-11 Thread Warner Losh
In message <[EMAIL PROTECTED]> Bernd Luevelsmeyer writes: : What you want is "ISO/IEC 9899:1999 Programming languages -- C" In the US, how do I get the same thing for C++? Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message

Re: One more question (different now)

2000-05-11 Thread Bernd Luevelsmeyer
Sheldon Hearn wrote: > > On Thu, 11 May 2000 03:58:57 +0200, Bernd Luevelsmeyer wrote: > > > The Standard itself is a book and can be bought as such in bookstores. > > Can you give us details? Do I just hunt Amazon.com for "C99", or does > it have a proper title? I need this one. What you w

Re: One more question (different now)

2000-05-10 Thread Sheldon Hearn
On Thu, 11 May 2000 03:58:57 +0200, Bernd Luevelsmeyer wrote: > The Standard itself is a book and can be bought as such in bookstores. Can you give us details? Do I just hunt Amazon.com for "C99", or does it have a proper title? I need this one. Thanks, Sheldon. To Unsubscribe: send mail

Re: One more question (different now)

2000-05-10 Thread Bernd Luevelsmeyer
David Malone wrote: > > On Thu, May 11, 2000 at 07:53:27AM +1000, Bruce Evans wrote: > > > From the C99 draft (n869.txt): > > Is the C99 draft generally available, or where can you cough up > cash to get a copy? The Standard itself is a book and can be bought as such in bookstores. Draft vers

Re: One more question (different now)

2000-05-10 Thread David Malone
On Thu, May 11, 2000 at 07:53:27AM +1000, Bruce Evans wrote: > From the C99 draft (n869.txt): Is the C99 draft generally available, or where can you cough up cash to get a copy? David. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the

Re: One more question (different now)

2000-05-10 Thread Bruce Evans
On Wed, 10 May 2000, Doug Rabson wrote: > On Wed, 10 May 2000, Simon Shapiro wrote: > > It actually worked! Now I will go and see what this uintptr_t > > actually is :-) > > Its an unsigned integer type which is the same size as a pointer (i.e. its > safe to cast a pointer to uintptr_t without

Re: One more question (different now)

2000-05-10 Thread Doug Rabson
On Wed, 10 May 2000, Simon Shapiro wrote: > > On 10-May-00 Doug Rabson wrote: > > On Tue, 9 May 2000, Mike Smith wrote: > > > >> > On Tue, May 09, 2000 at 04:27:10PM -0700, Mike Smith wrote: > >> > > The only answer I've seen for this one is to kick, hard, whoever it was > >> > > that added -W

Re: One more question (different now)

2000-05-10 Thread Bruce Evans
On Wed, 10 May 2000, Doug Rabson wrote: > You can suppress the warning if you cast to uintptr_t first. Pretty ugly > though. For (almost) full uglyness and correctness, you have to cast to "volatile void *" first, then back via "void *": #define unvolstructfoop(sfp) \ ((struct foo *)(void *

Re: One more question (different now)

2000-05-10 Thread Simon Shapiro
On 10-May-00 Doug Rabson wrote: > On Tue, 9 May 2000, Mike Smith wrote: > >> > On Tue, May 09, 2000 at 04:27:10PM -0700, Mike Smith wrote: >> > > The only answer I've seen for this one is to kick, hard, whoever it was >> > > that added -Wcast-qual to the kernel options. >> > >> > Or we should

Re: One more question (different now)

2000-05-10 Thread Bruce Evans
On Tue, 9 May 2000, Garrett Wollman wrote: > < >said: > > > So does: > > > bzero((void *)&trash, sizeof(junk_t)); > > > So, how do I make everyone happy? > > Put a comment on that line indicating that a warning is expected. Someone's ie driver has lines like this. This does not make me hap

Re: One more question (different now)

2000-05-10 Thread Doug Rabson
On Tue, 9 May 2000, Mike Smith wrote: > > On Tue, May 09, 2000 at 04:27:10PM -0700, Mike Smith wrote: > > > The only answer I've seen for this one is to kick, hard, whoever it was > > > that added -Wcast-qual to the kernel options. > > > > Or we should just delete it from the options. > > Ugh.

Re: One more question (different now)

2000-05-09 Thread Simon Shapiro
On 09-May-00 Mike Smith wrote: >> On Tue, May 09, 2000 at 04:27:10PM -0700, Mike Smith wrote: >> > The only answer I've seen for this one is to kick, hard, whoever it was >> > that added -Wcast-qual to the kernel options. >> >> Or we should just delete it from the options. > > Ugh. I don't ac

Re: One more question (different now)

2000-05-09 Thread Simon Shapiro
On 10-May-00 Marcel Moolenaar wrote: > Mike Smith wrote: >> >> Ugh. I don't actually like that, because it serves a valid purpose. >> What irritates me mostly is just that there is no way of casting a >> volatile object into a non-volatile type, so you can't implement any sort >> of conditional

Re: One more question (different now)

2000-05-09 Thread Garance A Drosihn
At 7:08 PM -0400 5/9/00, Simon Shapiro wrote: >Given: > >typedef struct junk { >... >} junk_t > >volatile junk_t trash; > >What I want to do is zero out trash. > >bzero(trash, sizeof(junk_t)); > >produces a warning about loss of volatility. >So, how do I make everyone happy? Write a 'bzer

Re: One more question (different now)

2000-05-09 Thread Marcel Moolenaar
Mike Smith wrote: > > Ugh. I don't actually like that, because it serves a valid purpose. > What irritates me mostly is just that there is no way of casting a > volatile object into a non-volatile type, so you can't implement any sort > of conditional volatility exclusion. You can however use a

Re: One more question (different now)

2000-05-09 Thread Mike Smith
> On Tue, May 09, 2000 at 04:27:10PM -0700, Mike Smith wrote: > > The only answer I've seen for this one is to kick, hard, whoever it was > > that added -Wcast-qual to the kernel options. > > Or we should just delete it from the options. Ugh. I don't actually like that, because it serves a val

Re: One more question (different now)

2000-05-09 Thread David O'Brien
On Tue, May 09, 2000 at 04:27:10PM -0700, Mike Smith wrote: > The only answer I've seen for this one is to kick, hard, whoever it was > that added -Wcast-qual to the kernel options. Or we should just delete it from the options. -- -- David([EMAIL PROTECTED]) To Unsubscribe: send mail to

Re: One more question (different now)

2000-05-09 Thread Mike Smith
The only answer I've seen for this one is to kick, hard, whoever it was that added -Wcast-qual to the kernel options. Or write your own, suboptimal, bzero code. > Hi Again, > > Since you were so kind to me, I will impose another > one on you (the previous answers were _all_ correct! ) > > G

One more question (different now)

2000-05-09 Thread Garrett Wollman
< said: > So does: > bzero((void *)&trash, sizeof(junk_t)); > So, how do I make everyone happy? Put a comment on that line indicating that a warning is expected. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same [EMAIL PROTECTED] | O Siem / The f

One more question (different now)

2000-05-09 Thread Simon Shapiro
Hi Again, Since you were so kind to me, I will impose another one on you (the previous answers were _all_ correct! ) Given: typedef struct junk { ... } junk_t volatile junk_t trash; What I want to do is zero out trash. bzero(trash, sizeof(junk_t)); produces a warning about loss of v