Mercurial > hg > octave-nkf
changeset 15882:b4fc49f82ac3
maint: merge snapshot changes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 03 Jan 2013 01:57:47 -0500 |
parents | 20d506e155cf (diff) 6be613476e37 (current diff) |
children | fefd7c4a1309 |
files | configure.ac |
diffstat | 3 files changed, 45 insertions(+), 34 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgtags +++ b/.hgtags @@ -69,3 +69,4 @@ 551566201318bf615b27c60ccf9368f4844008bd release-3-6-2 a95432e7309ca6fc776c02939264bb6d443f3525 release-3-6-3 2e8eb9ac43a5f8cfaf0423814a312ed47cb80485 rc-3-6-4-0 +df1aceb8f0bc6b5b5062907931cc663467f57d93 ss-3-7-1
--- a/configure.ac +++ b/configure.ac @@ -19,13 +19,13 @@ ### <http://www.gnu.org/licenses/>. AC_PREREQ([2.62]) -AC_INIT([GNU Octave], [3.7.0+], [http://octave.org/bugs.html], [octave]) +AC_INIT([GNU Octave], [3.7.1], [http://octave.org/bugs.html], [octave]) dnl PACKAGE_VERSION is set by the AC_INIT VERSION arg OCTAVE_VERSION="$PACKAGE_VERSION" OCTAVE_API_VERSION_NUMBER="48" OCTAVE_API_VERSION="api-v$OCTAVE_API_VERSION_NUMBER+" -OCTAVE_RELEASE_DATE="2012-02-22" +OCTAVE_RELEASE_DATE="2013-01-02" OCTAVE_COPYRIGHT="Copyright (C) 2012 John W. Eaton and others." AC_SUBST(OCTAVE_VERSION) AC_SUBST(OCTAVE_API_VERSION_NUMBER)
--- a/libinterp/octave-value/ov-java.cc +++ b/libinterp/octave-value/ov-java.cc @@ -1409,38 +1409,6 @@ } } -DEFUN (__java_init__, , , - "-*- texinfo -*-\n\ -@deftypefn {Built-in Function} {} java_init ()\n\ -Internal function used @strong{only} when debugging Java interface.\n\ -Function will directly call initialize_java() to create an instance of a JVM.\n\ -@end deftypefn") -{ - octave_value retval; - - retval = 0; - initialize_java (); - if (! error_state) - retval = 1; - - return retval; -} - -DEFUN (__java_exit__, , , - "-*- texinfo -*-\n\ -@deftypefn {Built-in Function} {} java_exit ()\n\ -Internal function used @strong{only} when debugging Java interface.\n\ -Function will directly call terminate_jvm() to destroy the current JVM\n\ -instance.\n\ -@end deftypefn") -{ - octave_value retval; - - terminate_jvm (); - - return retval; -} - JNIEXPORT jboolean JNICALL Java_org_octave_Octave_call (JNIEnv *env, jclass, jstring funcName, jobjectArray argin, jobjectArray argout) @@ -1937,6 +1905,48 @@ // DEFUN blocks below must be outside of HAVE_JAVA block so that // documentation strings are always available, even when functions are not. +DEFUN (__java_init__, , , + "-*- texinfo -*-\n\ +@deftypefn {Built-in Function} {} java_init ()\n\ +Internal function used @strong{only} when debugging Java interface.\n\ +Function will directly call initialize_java() to create an instance of a JVM.\n\ +@end deftypefn") +{ + +#ifdef HAVE_JAVA + octave_value retval; + + retval = 0; + + initialize_java (); + + if (! error_state) + retval = 1; + + return retval; +#else + error ("__java_init__: Octave was not compiled with Java interface"); + return octave_value (); +#endif +} + +DEFUN (__java_exit__, , , + "-*- texinfo -*-\n\ +@deftypefn {Built-in Function} {} java_exit ()\n\ +Internal function used @strong{only} when debugging Java interface.\n\ +Function will directly call terminate_jvm() to destroy the current JVM\n\ +instance.\n\ +@end deftypefn") +{ +#ifdef HAVE_JAVA + terminate_jvm (); +#else + error ("__java_init__: Octave was not compiled with Java interface"); +#endif + + return octave_value (); +} + DEFUN (javaObject, args, , "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{jobj} =} javaObject (@var{classname})\n\