Functions | |
endif | if (!ischar(text)) error("__makeinfo__ |
if (!isempty(stop)&&!isempty(bracket_start)) stop+ | |
if (isempty(stop)) stop | |
endif endfor | if (strcmpi(output_type,"texinfo")) status=0 |
fwrite (fid, text) | |
fclose (fid) | |
switch (lower(output_type)) case"plain text"cmd | |
otherwise | error ("__makeinfo__: unsupported output type: '%s'", output_type) |
unwind_protect_cleanup | if (exist(name,"file")) delete(name) |
Variables | |
function [retval, status] | |
else | bracket_start = start + length (SEE_ALSO) |
stop = find (text (start:end) == "\n", 1) | |
endif endif | see_also_args = text (bracket_start+1:(stop-1)) |
expanded = see_also (see_also_args) | |
text = strcat (text (1:start-1), expanded, text (stop+1:end)) | |
retval = text | |
return | |
unwind_protect [fid, name, msg] = mkstemp ("octave_help_XXXXXX", true) | |
case html | cmd |
endswitch [status, retval] = system (cmd) |
otherwise error | ( | "__makeinfo__: unsupported output type: '%s'" | , | |
output_type | ||||
) |
fclose | ( | fid | ) |
unwind_protect_cleanup if | ( | exist(name,"file") | ) |
if | ( | isempty(stop) | ) |
if | ( | ! | isemptystop)&&!isempty(bracket_start | ) |
endif if | ( | ! | ischartext | ) |
switch | ( | lower(output_type) | ) |
else bracket_start = start + length (SEE_ALSO) |
Initial value:
sprintf ("%s --no-headers --html --no-warn --no-validate --force %s", makeinfo_program (), name)
endfunction function expanded = see_also (see_also_args) |
Initial value:
__makeinfo__ (text, output_type = "plain text", see_also = []) if (nargin == 0) print_usage ()
return |
retval = text |
see_also_args = text (bracket_start+1:(stop-1)) |
unwind_protect[fid, name, msg] = mkstemp ("octave_help_XXXXXX", true) |