Subject: Re: CVS commit: src/sys/sys
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Christos Zoulas <christos@zoulas.com>
List: source-changes
Date: 12/11/2004 12:51:13
On Dec 11,  7:00pm, yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote:
-- Subject: Re: CVS commit: src/sys/sys

| > Module Name:	src
| > Committed By:	christos
| > Date:		Sat Dec 11 05:59:00 UTC 2004
| > 
| > Modified Files:
| > 	src/sys/sys: cdefs.h
| > 
| > Log Message:
| > kill gcc specific version of __UNCONST. Does not work to unconst
| > const char *foo[];
| 
| what's a problem?
| foo is not a const pointer.

The following does not work:

	const char *foo[2];
	char **bar = (char **)__UNCONST(foo);

Also having 2 versions with slightly different semantics (they return
different types) just leads to confusion.

christos