GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <sstream>
#include <iostream>
#include <string>
#include "defun.h"
#include "dynamic-ld.h"
#include "error.h"
#include "help.h"
#include "ov.h"
#include "ov-builtin.h"
#include "ov-dld-fcn.h"
#include "ov-fcn.h"
#include "ov-mex-fcn.h"
#include "ov-usr-fcn.h"
#include "oct-obj.h"
#include "oct-lvalue.h"
#include "pager.h"
#include "symtab.h"
#include "toplev.h"
#include "variables.h"
#include "parse.h"
Go to the source code of this file.
Functions | |
void | alias_builtin (const std::string &alias, const std::string &name) |
void | check_version (const std::string &version, const std::string &fcn) |
bool | defun_isargout (int nargout, int iout) |
void | defun_isargout (int nargout, int nout, bool *isargout) |
octave_shlib | get_current_shlib (void) |
void | install_builtin_function (octave_builtin::fcn f, const std::string &name, const std::string &file, const std::string &doc, bool) |
void | install_dld_function (octave_dld_function::fcn f, const std::string &name, const octave_shlib &shl, const std::string &doc, bool relative) |
void | install_mex_function (void *fptr, bool fmex, const std::string &name, const octave_shlib &shl, bool relative) |
void | print_usage (void) |
void | print_usage (const std::string &name) |
void alias_builtin | ( | const std::string & | alias, |
const std::string & | name | ||
) |
Definition at line 121 of file defun.cc.
References symbol_table::alias_built_in_function().
void check_version | ( | const std::string & | version, |
const std::string & | fcn | ||
) |
Definition at line 67 of file defun.cc.
References error(), and OCTAVE_API_VERSION.
Definition at line 151 of file defun.cc.
References octave_builtin::curr_lvalue_list, and max().
Definition at line 176 of file defun.cc.
References octave_builtin::curr_lvalue_list, max(), and min().
octave_shlib get_current_shlib | ( | void | ) |
Definition at line 127 of file defun.cc.
References octave_call_stack::current(), octave_dld_function::get_shlib(), octave_mex_function::get_shlib(), octave_base_value::is_dld_function(), and octave_base_value::is_mex_function().
void install_builtin_function | ( | octave_builtin::fcn | f, |
const std::string & | name, | ||
const std::string & | file, | ||
const std::string & | doc, | ||
bool | |||
) |
Definition at line 82 of file defun.cc.
References symbol_table::install_built_in_function().
void install_dld_function | ( | octave_dld_function::fcn | f, |
const std::string & | name, | ||
const octave_shlib & | shl, | ||
const std::string & | doc, | ||
bool | relative | ||
) |
Definition at line 92 of file defun.cc.
References symbol_table::install_built_in_function(), and octave_function::mark_relative().
void install_mex_function | ( | void * | fptr, |
bool | fmex, | ||
const std::string & | name, | ||
const octave_shlib & | shl, | ||
bool | relative | ||
) |
Definition at line 107 of file defun.cc.
References symbol_table::install_built_in_function(), and octave_function::mark_relative().
Definition at line 51 of file defun.cc.
References octave_call_stack::current(), error(), octave_function::name(), and print_usage().
Referenced by binary_assoc_op_defun_body(), binary_op_defun_body(), bitop(), const_value(), DEFUN(), DEFUN_DLD(), DEFUNX(), do_accumarray_minmax_fun(), do_bessel(), do_cat(), do_cumminmax_body(), do_dbstack(), do_fft(), do_fft2(), do_fftn(), do_isglobal(), do_minmax_body(), do_permute(), do_trilu(), F__accumarray_sum__(), F__accumdim_sum__(), F__calc_dimensions__(), F__contourc__(), F__dispatch__(), F__dump_symtab_info__(), F__ftp__(), F__get__(), F__go_axes_init__(), F__go_delete__(), F__go_execute_callback__(), F__go_figure__(), F__gud_mode__(), F__image_pixel_size__(), F__is_handle_visible__(), F__lin_interpn__(), F__profiler_enable__(), F__qp__(), F__request_drawnow__(), F__sort_rows_idx__(), F__varval__(), F__which__(), Fabs(), Facos(), Facosh(), Fadd_input_event_hook(), Faddlistener(), Faddpath(), Faddproperty(), Fairy(), Fangle(), Farg(), Farrayfun(), Fasin(), Fasinh(), Fatan(), Fatan2(), Fatanh(), Fatexit(), Fbalance(), Fbase64_decode(), Fbase64_encode(), Fbesselh(), Fbetainc(), Fbetaincinv(), Fbitmax(), Fbitpack(), Fbitshift(), Fbitunpack(), Fblkmm(), Fbsxfun(), Fcanonicalize_file_name(), Fcat(), Fcbrt(), Fceil(), Fcellfun(), Fcellindexmat(), Fcellslices(), Fcolloc(), Fcolumns(), Fcompletion_matches(), Fcomplex(), Fconj(), Fconv2(), Fconvn(), Fcos(), Fcosh(), Fcumsum(), Fdaspk(), Fdaspk_options(), Fdasrt(), Fdasrt_options(), Fdassl(), Fdassl_options(), Fdawson(), Fdbcont(), Fdbquit(), Fdbstep(), Fdellistener(), Fdet(), Fdiag(), Fdiary(), Fdiff(), Fdisp(), Fdlmread(), Fdo_string_escapes(), Fdot(), Fdrawnow(), Fdup2(), Fecho(), Feig(), Fellipj(), Fendgrent(), Fendpwent(), Ferf(), Ferfc(), Ferfcinv(), Ferfcx(), Ferfi(), Ferfinv(), Ferrno(), Ferrno_list(), Ferror(), Fexec(), Fexist(), Fexp(), Fexpm1(), Feye(), Ffclear(), Ffclose(), Ffcntl(), Ffdisp(), Ffeof(), Fferror(), Ffflush(), Ffgetl(), Ffgets(), Ffile_in_loadpath(), Ffile_in_path(), Ffilesep(), Ffilter(), Ffind(), Ffind_dir_in_path(), Ffix(), Fflintmax(), Ffloor(), Ffnmatch(), Ffopen(), Ffork(), Ffprintf(), Ffputs(), Ffread(), Ffrewind(), Ffscanf(), Ffseek(), Ffskipl(), Fftell(), Ffull(), Ffwrite(), Fgamma(), Fgammainc(), Fgcd(), Fgenpath(), Fget(), Fget_help_text(), Fget_help_text_from_file(), Fgetegid(), Fgetenv(), Fgeteuid(), Fgetgid(), Fgetgrent(), Fgetgrgid(), Fgetgrnam(), Fgethostname(), Fgetpgrp(), Fgetpid(), Fgetppid(), Fgetpwent(), Fgetpwnam(), Fgetpwuid(), Fgetuid(), Fgivens(), Fglob(), Fgmtime(), Fhess(), Fhex2num(), Fhypot(), Fignore_function_time_stamp(), Fimag(), Find2sub(), Finput(), Fintmax(), Fintmin(), Finv(), Fis_absolute_filename(), Fis_rooted_relative_filename(), Fisalnum(), Fisalpha(), Fisascii(), Fischar(), Fiscntrl(), Fiscomplex(), Fisdebugmode(), Fisdigit(), Fisempty(), Fisfinite(), Fisfloat(), Fisgraph(), Fishandle(), Fisindex(), Fisinf(), Fisinteger(), Fislogical(), Fislower(), Fismatrix(), Fisna(), Fisnan(), Fisnumeric(), Fisprint(), Fispunct(), Fisreal(), Fissorted(), Fisspace(), Fissparse(), Fisupper(), Fisvarname(), Fisxdigit(), Fkeyboard(), Fkill(), Fkron(), Flasterr(), Flasterror(), Flastwarn(), Flength(), Flgamma(), Flink(), Flinspace(), Flist_in_columns(), Fload(), Flocaltime(), Flog(), Flog10(), Flog1p(), Flog2(), Flookup(), Flsode(), Flsode_options(), Flstat(), Flu(), Fluinc(), Fluupdate(), Fmake_absolute_filename(), Fmat2cell(), Fmatrix_type(), Fmd5sum(), Fmerge(), Fmgorth(), Fmislocked(), Fmkdir(), Fmkfifo(), Fmkstemp(), Fmktime(), Fmlock(), Fmore(), Fmunlock(), Fndims(), Fnnz(), Fnorm(), Fnproc(), Fnth_element(), Fnum2cell(), Fnum2hex(), Fnumel(), Fnzmax(), Foctave_config_info(), FOCTAVE_HOME(), FOCTAVE_VERSION(), FP_tmpdir(), Fpathsep(), Fpause(), Fpclose(), Fpinv(), Fpipe(), Fpopen(), Fpopen2(), Fprintf(), Fputenv(), Fputs(), Fquad(), Fquad_options(), Fquadcc(), Fqz(), Frandperm(), Frats(), Frcond(), Freaddir(), Freadline_re_read_init_file(), Freadline_read_init_file(), Freadlink(), Freal(), Fregexp(), Fregexpi(), Fregexprep(), Fregister_graphics_toolkit(), Frem(), Fremove_input_event_hook(), Frename(), Frepelems(), Freset(), Freshape(), Fresize(), Frethrow(), Frmdir(), Frmpath(), Fround(), Froundb(), Frows(), Frsf2csf(), FS_ISBLK(), FS_ISCHR(), FS_ISDIR(), FS_ISFIFO(), FS_ISLNK(), FS_ISREG(), FS_ISSOCK(), Fsave(), Fschur(), Fset(), Fsetgrent(), Fsetpwent(), FSIG(), Fsign(), Fsignbit(), Fsin(), Fsinh(), Fsize(), Fsizemax(), Fsleep(), Fsort(), Fspalloc(), Fsparse(), Fsprintf(), Fsqrt(), Fsqrtm(), Fsqueeze(), Fsscanf(), Fstat(), Fstr2double(), Fstrcmp(), Fstrcmpi(), Fstrfind(), Fstrftime(), Fstrncmp(), Fstrncmpi(), Fstrptime(), Fstrrep(), Fstrvcat(), Fsub2ind(), Fsum(), Fsvd(), Fsyl(), Fsymlink(), Fsystem(), Ftan(), Ftanh(), Ftilde_expand(), Ftime(), Ftmpfile(), Ftmpnam(), Ftoascii(), Ftoc(), Ftolower(), Ftoupper(), Ftypecast(), Fumask(), Funame(), Fundo_string_escapes(), Funlink(), Furlread(), Furlwrite(), Fusleep(), Fvec(), Fwaitfor(), Fwaitpid(), Fwho(), Fwhos(), Fyes_or_no(), print_usage(), set_internal_variable(), and unary_op_defun_body().