[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: Philip Martin <philip_at_codematters.co.uk>
Date: 2004-11-18 00:19:14 CET

Branko ─Œibej <brane@xbc.nu> writes:

> Philip Martin wrote:
>>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*".

That's one thing that could happen, "undefined behaviour" allows just
about anything to happen. A C implementation that used C++-style name
mangling would also have problems, although I don't know if something
else in the C standard would prohibit such an implementation.

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 18 00:19:54 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.