Update of /cvsroot/q-lang/q/modules/octave
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25947
Modified Files:
octave.c
Log Message:
-save-builtins not supported in recent Octave versions, so remove it
Index: octave.c
===================================================================
RCS file: /cvsroot/q-lang/q/modules/octave/octave.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** octave.c 26 Feb 2008 00:24:47 -0000 1.6
--- octave.c 26 Feb 2008 01:19:32 -0000 1.7
***************
*** 671,675 ****
--- 671,682 ----
const char *lock = ".lock";
const char *cmd_template =
+ #if 0
+ /* -save-builtins is required to make builtin variables like ans work
+ with octave_get in older Octave versions. Unfortunately, the latest
+ versions (>= 2.9.x?) don't have this option any more. */
"save -binary -save-builtins \"%s\" %s; unlink \"%s\";";
+ #else
+ "save -binary \"%s\" %s; unlink \"%s\";";
+ #endif
char *l = (char*)alloca(strlen(t)+strlen(lock)+1);
char *c = (char*)alloca(strlen(cmd_template)+strlen(s)+2*strlen(t)+
|