aboutsummaryrefslogtreecommitdiff
path: root/libjava/prims.cc
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@gcc.gnu.org>2000-10-02 06:14:25 +0100
committerBryce McKinlay <bryce@gcc.gnu.org>2000-10-02 06:14:25 +0100
commit0acff4bc96a94ae54d1ab69991102dfcc76607e6 (patch)
treed7afc0397eac24e3885cd07f96318fd0bf3a014c /libjava/prims.cc
parentf15b9af9843e58e7c03df81098a8a15646f5058e (diff)
downloadgcc-0acff4bc96a94ae54d1ab69991102dfcc76607e6.zip
gcc-0acff4bc96a94ae54d1ab69991102dfcc76607e6.tar.gz
gcc-0acff4bc96a94ae54d1ab69991102dfcc76607e6.tar.bz2
prims.cc (_Jv_argv, _Jv_argc): New fields.
2000-10-02 Bryce McKinlay <bryce@albatross.co.nz> * prims.cc (_Jv_argv, _Jv_argc): New fields. (JvRunMain): Set _Jv_argv and _Jv_argc. * java/awt/Component.java: Minor fixes. * java/awt/Image.java (UndefinedProperty): Initialize final field. * java/awt/Toolkit.java (systemEventQueue): Removed. (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit". * java/awt/Window.java (getToolkit): Don't call super. * java/awt/image/BufferedImage.java: Fix definate assignment errors. * java/awt/peer/ContainerPeer.java (insets): Remove unused method. * gnu/awt/gtk/GtkComponentPeer.java: New file. * gnu/awt/gtk/GtkContainerPeer.java: New file. * gnu/awt/gtk/GtkFramePeer.java: New file. * gnu/awt/gtk/GtkMainThread.java: New file. * gnu/awt/gtk/GtkToolkit.java: New file. * gnu/awt/gtk/GtkWindowPeer.java: New file. * gnu/awt/gtk/gtkcommon.cc: New file. * gnu/awt/gtk/gtkcommon.h: New file. * gnu/awt/gtk/natGtkComponentPeer.cc: New file. * gnu/awt/gtk/natGtkContainerPeer.cc: New file. * gnu/awt/gtk/natGtkFramePeer.cc: New file. * gnu/awt/gtk/natGtkMainThread.cc: New file. * gnu/awt/gtk/natGtkToolkit.cc: New file. * gnu/awt/gtk/natGtkWindowPeer.cc: New file. From-SVN: r36688
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r--libjava/prims.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc
index ff48b97..ef88190 100644
--- a/libjava/prims.cc
+++ b/libjava/prims.cc
@@ -91,6 +91,10 @@ property_pair *_Jv_Environment_Properties;
// The name of this executable.
static char * _Jv_execName;
+// Stash the argv pointer to benefit native libraries that need it.
+const char **_Jv_argv;
+int _Jv_argc;
+
#ifdef ENABLE_JVMPI
// Pointer to JVMPI notification functions.
void (*_Jv_JVMPI_Notify_OBJECT_ALLOC) (JVMPI_Event *event);
@@ -865,6 +869,9 @@ JvRunMain (jclass klass, int argc, const char **argv)
{
PROCESS_GCJ_PROPERTIES;
+ _Jv_argv = argv;
+ _Jv_argc = argc;
+
main_init ();
#ifdef HAVE_PROC_SELF_EXE
char exec_name[20];