Functions | |
if (nargin==1) if(ischar(fname)) ftype | |
else | error ("doc: expecting argument to be a character string") |
endif | if (ftype==2||ftype==3) ffile |
endif | if (isempty(ffile)) info_dir |
if (err< 0) info_file_name | |
if (have_fname) status | |
endif | if (!(have_fname &&status==0)) status |
if (status==127) warning("unable to find info program `%s'" | |
info_program ()) | |
endif endif | if (nargout > 0) retval |
endif else | print_usage () |
endif endfunction!test if | exist (info_file())! |
Variables | |
function | retval |
endif else | fname = "" |
else | ffile = "" |
else | info_dir = fileparts (ffile) |
endif | info_file_name = fullfile (info_dir, "doc.info") |
endif | cmd |
have_fname = ! isempty (fname) |
endif endfunction !test if exist | ( | info_file() | ) |
if | ( | status | = = 127 |
) |
endif if | ( | ! | have_fname &&status==0 | ) |
if | ( | have_fname | ) |
if | ( | ) |
endif if | ( | ftype | = =2||ftype==3 |
) |
if | ( | nargin | = =1 |
) |
info_program | ( | ) |
Initial value:
sprintf ("\"%s\" --file \"%s\" --directory \"%s\"", info_program (), info_file_name, info_dir)
have_fname = ! isempty (fname) |
endif info_file_name = fullfile (info_dir, "doc.info") |