diff src/defaults.cc @ 5749:26beffa9f66f

[project @ 2006-04-07 20:35:07 by jwe]
author jwe
date Fri, 07 Apr 2006 20:35:08 +0000
parents ed08548b9054
children ace8d8d26933
line wrap: on
line diff
--- a/src/defaults.cc	Fri Apr 07 07:51:59 2006 +0000
+++ b/src/defaults.cc	Fri Apr 07 20:35:08 2006 +0000
@@ -742,12 +742,24 @@
 The name of the top-level Octave installation directory.\n\
 @end defvr");
 
-  DEFCONSTX ("OCTAVE_VERSION", SBV_OCTAVE_VERSION, OCTAVE_VERSION,
-    "-*- texinfo -*-\n\
-@defvr {Built-in Constant} OCTAVE_VERSION\n\
-The version number of Octave, as a string.\n\
-@end defvr");
+}
 
+DEFUNX ("OCTAVE_VERSION", FOCTAVE_VERSION, args, ,
+  "-*- texinfo -*-\n\
+@deftypefn {Built-in Function} {} OCTAVE_VERSION ()\n\
+Return the version number of Octave, as a string.\n\
+@end deftypefn")
+{
+  octave_value retval;
+
+  int nargin = args.length ();
+
+  if (nargin == 0)
+    retval = OCTAVE_VERSION;
+  else
+    print_usage ("OCTAVE_VERSION");
+
+  return retval;
 }
 
 /*