You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2011/06/27 09:20:41 UTC
svn commit: r1140031 - in /commons/sandbox/runtime/trunk/src/main/native:
include/acr/descriptor.h shared/descriptor.c
Author: mturk
Date: Mon Jun 27 07:20:41 2011
New Revision: 1140031
URL: http://svn.apache.org/viewvc?rev=1140031&view=rev
Log:
Descriptor doesn't have to be acr_fd_t
Modified:
commons/sandbox/runtime/trunk/src/main/native/include/acr/descriptor.h
commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c
Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr/descriptor.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr/descriptor.h?rev=1140031&r1=1140030&r2=1140031&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr/descriptor.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr/descriptor.h Mon Jun 27 07:20:41 2011
@@ -41,10 +41,10 @@ struct acr_fd_t {
extern "C" {
#endif
-acr_fd_t *
+void *
AcrGetDescriptorFd(JNI_STDARGS);
int
-AcrSetDescriptorFd(JNI_STDARGS, acr_fd_t *fd);
+AcrSetDescriptorFd(JNI_STDARGS, void *fd);
#ifdef __cplusplus
}
Modified: commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c?rev=1140031&r1=1140030&r2=1140031&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c Mon Jun 27 07:20:41 2011
@@ -50,7 +50,7 @@ ACR_IO_EXPORT(void, Descriptor, init0)(J
_clazzn.u = 1;
}
-acr_fd_t *
+void *
AcrGetDescriptorFp(JNI_STDARGS)
{
jlong fp = 0;
@@ -65,11 +65,11 @@ AcrGetDescriptorFp(JNI_STDARGS)
else if (CLAZZ_LOADED) {
fp = GET_IFIELD_J(0000, obj);
}
- return J2P(fp, acr_fd_t *);
+ return J2P(fp, void *);
}
int
-AcrSetDescriptorFp(JNI_STDARGS, acr_fd_t *fd)
+AcrSetDescriptorFp(JNI_STDARGS, void *fd)
{
int rc = ACR_EBADF;