aboutsummaryrefslogtreecommitdiff
path: root/libjava/gcj/method.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1999-09-10 22:03:10 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-09-10 22:03:10 +0000
commit27e934d8bae03ea7eddeb3770641440333a71478 (patch)
tree2d703bb5c0f735c114d35388f4ce82a2a194fe18 /libjava/gcj/method.h
parent512d594b4f7945440be373bf14c6af8b88c91749 (diff)
configure: Rebuilt.
* configure: Rebuilt. * configure.in: Build include/Makefile. * Makefile.in: Rebuilt. * Makefile.am (SUBDIRS): Added gcj and include. (install-data-local): New target. (extra_headers): New macro. * include/Makefile.in: New file. * include/Makefile.am: New file. * interpret.cc: Don't include gcj/field.h or gcj/cni.h. * java/lang/reflect/natField.cc: Don't include gcj/field.h or gcj/cni.h. * boehm.cc: Don't include java-threads.h or gcj/field.h. * resolve.cc: Include config.h. * defineclass.cc: Include config.h. * include/java-interp.h: Don't include config.h. * include/jvm.h: Include java-threads.h, Object.h, java-gc.h, cni.h. * gcj/javaprims.h: Regenerated namespace decls. * classes.pl (scan): Don't put `;' after closing brace. * Makefile.in: Rebuilt. * Makefile.am (INCLUDES): Added -I for top_srcdir. * configure.in: Create gcj/Makefile. * gcj/Makefile.in: New file. * gcj/Makefile.am: New file. * java/lang/Object.h: Don't include any other headers. * gcj/array.h: Renamed from include/java-array.h. * gcj/field.h: Renamed from include/java-field.h. * gcj/method.h: Renamed from include/java-method.h. * gcj/cni.h, gcj/javaprims.h: Moved from include/. Updated all files to reflect new include structure. From-SVN: r29278
Diffstat (limited to 'libjava/gcj/method.h')
-rw-r--r--libjava/gcj/method.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/libjava/gcj/method.h b/libjava/gcj/method.h
new file mode 100644
index 00000000000..a97ba4a682f
--- /dev/null
+++ b/libjava/gcj/method.h
@@ -0,0 +1,21 @@
+// java-method.h - Header file for methodID instances. -*- c++ -*-
+
+/* Copyright (C) 1999 Cygnus Solutions
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+#ifndef __GCJ_METHOD_H__
+#define __GCJ_METHOD_H__
+
+extern inline jmethodID
+_Jv_FromReflectedMethod(java::lang::reflect::Method *method)
+{
+ return (jmethodID)
+ ((char *) method->declaringClass->methods + method->offset);
+}
+
+#endif /* __GCJ_METHOD_H__ */