summaryrefslogtreecommitdiff
path: root/comms/rxtx/files/patch-SerialImp.cpp
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2011-09-17 14:55:56 +0000
committerPawel Pekala <pawel@FreeBSD.org>2011-09-17 14:55:56 +0000
commit3741a46e9f064642ea1dfaa3036f943f7c12ff2e (patch)
tree1ae24e5300f102039dadbd33e6ab67edf797b562 /comms/rxtx/files/patch-SerialImp.cpp
parentAdd mxflib, a C++ library for MXF file I/O with a few utilities (diff)
- Update to version 2.2p2
- Assign mainatinership to submitter - Update WWW PR: ports/159735 Submitted by: Edward Sanford Sutton, III <mirror176@cox.net> Approved by: miwi, wen (mentors implicit)
Notes
Notes: svn path=/head/; revision=281900
Diffstat (limited to 'comms/rxtx/files/patch-SerialImp.cpp')
-rw-r--r--comms/rxtx/files/patch-SerialImp.cpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/comms/rxtx/files/patch-SerialImp.cpp b/comms/rxtx/files/patch-SerialImp.cpp
deleted file mode 100644
index 0a2688dab8d3..000000000000
--- a/comms/rxtx/files/patch-SerialImp.cpp
+++ /dev/null
@@ -1,53 +0,0 @@
---- src/SerialImp.cpp.orig 2004-10-12 01:59:27.000000000 -0700
-+++ src/SerialImp.cpp 2010-12-06 21:48:20.000000000 -0800
-@@ -1736,10 +1736,50 @@
- report("invalid file descriptor\n");
- #endif
- return result;
- }
-
-+void deref_java_object( JNIEnv *env, jobject jobj )
-+{
-+ jclass jclazz = env->GetObjectClass( env, jobj );
-+ env->DeleteLocalRef( env, jclazz );
-+}
-+
-+void * get_java_varP( JNIEnv *env, jobject jobj, char *id, char *type )
-+{
-+
-+
-+ ////////////////// Open Log File /////////////////////
-+ fp = fopen("RXTXOut.log", "a");
-+ fprintf(fp, "Brian is inside get_java_varP\n"); // !!!
-+ fclose(fp);
-+ ////////////////// Close Log File ////////////////////
-+
-+ void * result = 0;
-+ //jclass jclazz = (*env)->GetObjectClass( env, jobj );
-+ jclass jclazz = env->GetObjectClass( jobj ); // !!!
-+ //jfieldID jfd = (*env)->GetFieldID( env, jclazz, id, type );
-+ jfieldID jfd = env->GetFieldID( jclazz, id, type ); // !!!
-+
-+ if( !jfd ) {
-+ //(*env)->ExceptionDescribe( env );
-+ env->ExceptionDescribe(); // !!!
-+ //(*env)->ExceptionClear( env );
-+ env->ExceptionClear(); // !!!
-+ return result;
-+ }
-+ //result = (int)( (*env)->GetIntField( env, jobj, jfd ) );
-+ result = (void *)( env->GetIntField( jobj, jfd ) ); // !!!
-+/* ct7 & gel * Added DeleteLocalRef */
-+ //(*env)->DeleteLocalRef( env, jclazz );
-+// env->DeleteLocalRef( jclazz ); // !!!
-+#ifdef DEBUG
-+ if(!strncmp("fd",id,2) && result == 0)
-+ report("invalid file descriptor\n");
-+#endif
-+ return result;
-+}
- /*----------------------------------------------------------
- throw_java_exception
-
- accept: env (keyhole to java)
- *exc (exception class name)