/[classpath]/classpath/native/jni/java-io/javaio.c
ViewVC logotype

Diff of /classpath/native/jni/java-io/javaio.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by rveldema, Mon Apr 8 10:14:50 2002 UTC revision 1.6 by mark, Mon Oct 28 20:08:40 2002 UTC
# Line 152  _javaio_read(JNIEnv *env, jobject obj, j Line 152  _javaio_read(JNIEnv *env, jobject obj, j
152    jbyte *bufptr;    jbyte *bufptr;
153    int rc;    int rc;
154    
155      if (len == 0)
156        return 0; /* Nothing todo, and GetByteArrayElements() seems undefined. */
157    
158    bufptr = (*env)->GetByteArrayElements(env, buf, JNI_FALSE);    bufptr = (*env)->GetByteArrayElements(env, buf, JNI_FALSE);
159    if (!bufptr)    if (!bufptr)
160      {      {
# Line 184  _javaio_write(JNIEnv *env, jobject obj, Line 187  _javaio_write(JNIEnv *env, jobject obj,
187    jbyte *bufptr;    jbyte *bufptr;
188    int rc;    int rc;
189    
190      if (len == 0)
191        return 0; /* Nothing todo, and GetByteArrayElements() seems undefined. */
192    
193    bufptr = (*env)->GetByteArrayElements(env, buf, 0);    bufptr = (*env)->GetByteArrayElements(env, buf, 0);
194    if (!bufptr)    if (!bufptr)
195      {      {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26