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

Re: svn commit: rev 613 - trunk/subversion/bindings/java/jni

From: Greg Stein <gstein_at_lyra.org>
Date: 2001-12-06 11:46:23 CET

On Wed, Dec 05, 2001 at 04:25:29PM -0600, XelaRellum@tigris.org wrote:
>...
> --- OLD/trunk/subversion/bindings/java/jni/item.c Wed Dec 5 16:25:29 2001
> +++ NEW/trunk/subversion/bindings/java/jni/item.c Wed Dec 5 16:25:29 2001
>...
> @@ -27,8 +27,8 @@
> * utility function to create a java Item
> */
> jobject
> -svn_jni_item__create(JNIEnv *env, jobject jpath, jobject jstatus,
> - jboolean *hasException)
> +item__create(JNIEnv *env, jobject jpath, jobject jstatus,
> + jboolean *hasException)
> {

Any function that is linker-visible from a library *must* have the svn
prefix. Since the above function does not have "static" on it, then it must
include the prefix.

The prefix on a function doesn't have to match the filename. So you can
still call it item.c and have svn_jni_* function in there.

I might suggest svn_jni__item_create() since the function "item_create" is
the unit, and is private.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:51 2006

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.