Re: cvs commit: src/lib/libmemstat memstat_malloc.c

2007-05-22 Thread Bruce Evans
On Tue, 22 May 2007, Robert Watson wrote: On Tue, 22 May 2007, Poul-Henning Kamp wrote: C unfortunately lacks a syntax that can express suck subtle and non-subtle nuances and recent standardization efforts have shown little interest in offering more "intentional programming" facilities in C.

Re: cvs commit: src/lib/libmemstat memstat_malloc.c

2007-05-22 Thread Robert Watson
On Tue, 22 May 2007, Poul-Henning Kamp wrote: C unfortunately lacks a syntax that can express suck subtle and non-subtle nuances and recent standardization efforts have shown little interest in offering more "intentional programming" facilities in C. Absent such progress and despite what the

Re: cvs commit: src/lib/libmemstat memstat_malloc.c

2007-05-22 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Warner Losh writes: >> > Should know better than to use __DECONST: C programmers. > >Zen Master bde hits. You are confused. You are Dazed.--More-- >You have received enlightment. Welcome to level 34583. Actually, I'm not sure I made it. Const is a very useful c

Re: cvs commit: src/lib/libmemstat memstat_malloc.c

2007-05-22 Thread Warner Losh
From: Robert Watson <[EMAIL PROTECTED]> Subject: Re: cvs commit: src/lib/libmemstat memstat_malloc.c Date: Tue, 22 May 2007 11:58:19 +0100 (BST) > > On Tue, 22 May 2007, Bruce Evans wrote: > > > On Mon, 21 May 2007, Robert Watson wrote: > > > >>

Re: cvs commit: src/lib/libmemstat memstat_malloc.c

2007-05-22 Thread Robert Watson
On Tue, 22 May 2007, Bruce Evans wrote: On Mon, 21 May 2007, Robert Watson wrote: rwatson 2007-05-21 18:16:04 UTC FreeBSD src repository Modified files: lib/libmemstat memstat_malloc.c Log: Make pointer argument to kread_string() const since the kernel structure field is c

Re: cvs commit: src/lib/libmemstat memstat_malloc.c

2007-05-21 Thread Bruce Evans
On Mon, 21 May 2007, Robert Watson wrote: rwatson 2007-05-21 18:16:04 UTC FreeBSD src repository Modified files: lib/libmemstat memstat_malloc.c Log: Make pointer argument to kread_string() const since the kernel structure field is const, and then employ __DECONST before gett