OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [findclass.c] - Blame information for rev 776

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
#include <stdlib.h>
2
 
3
#include <findclass.h>
4
 
5
JNIEXPORT jclass JNICALL
6
Java_findclass_doit (JNIEnv *env, jclass klass, jstring name)
7
{
8
  const char *buf = (*env)->GetStringUTFChars (env, name, NULL);
9
  jclass k = (*env)->FindClass (env, buf);
10
  (*env)->ReleaseStringUTFChars (env, name, buf);
11
  return k;
12
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.