Mercurial > hg > octave-lyh
comparison src/parse.y @ 3844:87f85453b6b7
[project @ 2001-07-23 20:07:45 by jwe]
author | jwe |
---|---|
date | Mon, 23 Jul 2001 20:07:46 +0000 |
parents | c554ad71bafc |
children | 55648fc616c8 |
comparison
equal
deleted
inserted
replaced
3843:f848bc60b927 | 3844:87f85453b6b7 |
---|---|
2500 | 2500 |
2501 id->define (fcn, symbol_record::USER_FUNCTION); | 2501 id->define (fcn, symbol_record::USER_FUNCTION); |
2502 | 2502 |
2503 id->document (help_buf); | 2503 id->document (help_buf); |
2504 | 2504 |
2505 help_buf.resize (0); | |
2506 | |
2505 return fcn; | 2507 return fcn; |
2506 } | 2508 } |
2507 | 2509 |
2508 // Finish defining a function. | 2510 // Finish defining a function. |
2509 | 2511 |
3282 | 3284 |
3283 return retval; | 3285 return retval; |
3284 } | 3286 } |
3285 | 3287 |
3286 // Evaluate an Octave function (built-in or interpreted) and return | 3288 // Evaluate an Octave function (built-in or interpreted) and return |
3287 // the list of result values. the results. NAME is the name of the | 3289 // the list of result values. NAME is the name of the function to |
3288 // function to call. ARGS are the arguments to the function. NARGOUT | 3290 // call. ARGS are the arguments to the function. NARGOUT is the |
3289 // is the number of output arguments expected. | 3291 // number of output arguments expected. |
3290 | 3292 |
3291 octave_value_list | 3293 octave_value_list |
3292 feval (const std::string& name, const octave_value_list& args, int nargout) | 3294 feval (const std::string& name, const octave_value_list& args, int nargout) |
3293 { | 3295 { |
3294 octave_value_list retval; | 3296 octave_value_list retval; |