RE: Any idea why public function like "svn_fspath__dirname" have double "__" in its name?
From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: Thu, 30 Dec 2010 00:53:54 +0530
>> While we've mandated that "__" must be used for semi-public
>Kamesh is talking about public, not private, functions. I.e., ones
>I looked at svn_error__locate last week. It's really only useful in
Thanks
>Supplying a given ABI forever is the sort of thing I thought we didn't
Yes. Following is my understanding, correct me if I am wrong.
<my understanding>
If somebody differs from this convention then there should be *subversion dev* community independent convention here may be like these.
* doc string of such functions(semi-public a.k.a intra library functions/private(should we even have such one in headers?)) should promptly say so in the headers.
* start with __svn like we see in some of the libc headers. The vague __ starting would signal about the scope/ABI nature of the API.
</my understanding>
With regards
[PS] Unless I am mistaken svn_fspath__* can be used in libsvn_repos too instead of svn_path_* wherever applicable and hence a chance to become public.
|
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.