[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Add 'const' to an API pointer?

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-11-17 23:27:39 CET

Philip Martin wrote:

>John Szakmeister <john@szakmeister.net> writes:
>
>
>
>>Julian Foad wrote:
>>
>>
>>>I suppose I can't do this because it breaks binary compatibility?
>>>
>>>
>>Correct. IIRC, C-Mike, Philip Martin, and a few others discussed this
>>in the last several weeks on the list.
>>
>>
>
>My reading of the C standard is that adding const like this could
>cause undefined behaviour. That said, I know of no C implementation
>where it would cause a problem.
>
>
Hm. I expect you're saying that the architecture is allowed to use
different argument passing rules for "foo*" and "const foo*".

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 17 23:27:32 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.