summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/classpath/natConfiguration.cc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-09 19:58:05 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-09 19:58:05 +0000
commit65bf3316cf384588453604be6b4f0ed3751a8b0f (patch)
tree996a5f57d4a68c53473382e45cb22f574cb3e4db /libjava/gnu/classpath/natConfiguration.cc
parent8fc56618a84446beccd45b80381cdfe0e94050df (diff)
downloadppe42-gcc-65bf3316cf384588453604be6b4f0ed3751a8b0f.tar.gz
ppe42-gcc-65bf3316cf384588453604be6b4f0ed3751a8b0f.zip
Merged gcj-eclipse branch to trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120621 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/classpath/natConfiguration.cc')
-rw-r--r--libjava/gnu/classpath/natConfiguration.cc39
1 files changed, 39 insertions, 0 deletions
diff --git a/libjava/gnu/classpath/natConfiguration.cc b/libjava/gnu/classpath/natConfiguration.cc
new file mode 100644
index 00000000000..7e1593cd6e5
--- /dev/null
+++ b/libjava/gnu/classpath/natConfiguration.cc
@@ -0,0 +1,39 @@
+// natConfiguration.cc - native code for configuration.
+
+/* Copyright (C) 2006 Free Software Foundation
+
+ 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. */
+
+#include <config.h>
+#include <platform.h>
+
+#include <gcj/cni.h>
+#include <jvm.h>
+
+#include <gnu/classpath/Configuration.h>
+
+jstring
+gnu::classpath::Configuration::classpath_home()
+{
+ return JvNewStringLatin1(LIBGCJ_PREFIX);
+}
+
+jboolean
+gnu::classpath::Configuration::debug()
+{
+#ifdef DEBUG
+ return true;
+#else
+ return false;
+#endif
+}
+
+jstring
+gnu::classpath::Configuration::toolkit()
+{
+ return JvNewStringLatin1(AWT_TOOLKIT);
+}
OpenPOWER on IntegriCloud