Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/sys
On Dec 11, 7:00pm, yamt%mwd.biglobe.ne.jp@localhost (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
Home |
Main Index |
Thread Index |
Old Index