Mercurial > octave-nkf
diff doc/interpreter/external.txi @ 18367:d1e16bdb3958 stable
myfeval.c: Fix segfault in mex example code.
* myfeval.c: Correctly cast away const attribute of prhs[].
Also, add code to work with Octave's built-in 'ans' variable.
* external.txi: Update example in External Code Interface for myfeval.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 24 Jan 2014 09:09:48 -0800 |
parents | adb7c7e6a4a1 |
children | 4b32677b6229 |
line wrap: on
line diff
--- a/doc/interpreter/external.txi Fri Jan 24 04:19:00 2014 -0500 +++ b/doc/interpreter/external.txi Fri Jan 24 09:09:48 2014 -0800 @@ -1712,12 +1712,11 @@ @example @group -myfeval ("sin", 1) a = myfeval ("sin", 1) -@result{} Hello, World! - I have 2 inputs and 1 outputs - I'm going to call the interpreter function sin - a = 0.84147 +@result{} Starting file myfeval.mex + I have 2 inputs and 1 outputs + I'm going to call the interpreter function sin + a = 0.84147 @end group @end example @@ -1811,8 +1810,7 @@ This is the norm of the matrix: 34.4952 - +$ @end group @end example -