Silly Question: Equivalent of C argv[0] in GCJ?

Ranjit Mathew rmathew@hotmail.com
Fri Oct 18 18:47:00 GMT 2002


Tom Tromey wrote:
>>>>>>"Ranjit" == Ranjit Mathew <rmathew@hotmail.com> writes:
>>>>>>> Ranjit> + // The name used to invoke this process (argv[0] in C).
> Ranjit> + SET ( "gnu.gcj.progname", _Jv_ThisExecutable( ));
>> Could you also write a ChangeLog entry and a gcj.texi patch?
> We're documenting properties these days.

ChangeLog:
----------------------------- 8< ------------------------------------
2002年10月19日 Ranjit Mathew <rmathew@hotmail.com>
	* libjava/java/lang/natRuntime.cc (insertSystemProperties):
	Added GCJ runtime property "gnu.gcj.progname" containing
	the name used to invoke the current Java program (similar
	to argv[0] for C programs).
	* gcc/java/gcj.texi: Added item describing the GCJ runtime
	property "gnu.gcj.progname".
----------------------------- 8< ------------------------------------
gcj.texi Patch:
----------------------------- 8< ------------------------------------
--- gcc/gcc/java/gcj.texi Sat Oct 19 06:48:14 2002
+++ gcc/gcc/java/gcj.texi Sat Oct 19 06:56:12 2002
@@ -2191,4 +2191,7 @@
 the normal @code{java.net.PlainDatagramSocketImpl}.
+@item gnu.gcj.progname
+The name that was used to invoked the program.
+
 @item gnu.gcj.runtime.NameFinder.demangle
 Whether names in a stack trace should be demangled. Defaults to 
@code{true}.
----------------------------- 8< ------------------------------------
Ranjit.
-- 
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore,
INDIA. Web: http://ranjitmathew.tripod.com/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /