#include <cassert>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include "cmd-edit.h"
#include "f77-fcn.h"
#include "file-ops.h"
#include "file-stat.h"
#include "lo-error.h"
#include "oct-env.h"
#include "pathsearch.h"
#include "str-vec.h"
#include <defaults.h>
#include "Cell.h"
#include "defun.h"
#include "display.h"
#include "error.h"
#include "file-io.h"
#include "input.h"
#include "lex.h"
#include "load-path.h"
#include "octave.h"
#include "oct-hist.h"
#include "oct-map.h"
#include "oct-obj.h"
#include "ops.h"
#include "toplev.h"
#include "parse.h"
#include "procstream.h"
#include "prog-args.h"
#include "sighandlers.h"
#include "sysdep.h"
#include "ov.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include <version.h>
Defines | |
#define | DOC_CACHE_FILE_OPTION 1 |
#define | EVAL_OPTION 2 |
#define | EXEC_PATH_OPTION 3 |
#define | IMAGE_PATH_OPTION 4 |
#define | INFO_FILE_OPTION 5 |
#define | INFO_PROG_OPTION 6 |
#define | LINE_EDITING_OPTION 7 |
#define | NO_INIT_FILE_OPTION 8 |
#define | NO_INIT_PATH_OPTION 9 |
#define | NO_LINE_EDITING_OPTION 10 |
#define | NO_SITE_FILE_OPTION 11 |
#define | NO_WINDOW_SYSTEM_OPTION 12 |
#define | PERSIST_OPTION 13 |
#define | TRADITIONAL_OPTION 14 |
Functions | |
F77_RET_T | F77_FUNC (xerbla, XERBLA)(F77_CONST_CHAR_ARG_DECL |
void | install_builtins (void) |
DEFUN (__version_info__, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {retval =} __version_info__ (@var{name}, @var{version}, @var{release}, @var{date})\n\ Undocumented internal function.\n\ @end deftypefn") | |
int | octave_main (int argc, char **argv, int embedded) |
DEFUN (argv, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} argv ()\n\ Return the command line arguments passed to Octave. For example,\n\ if you invoked Octave using the command\n\ \n\ @example\n\ octave --no-line-editing --silent\n\ @end example\n\ \n\ @noindent\n\ @code{argv} would return a cell array of strings with the elements\n\ @code{--no-line-editing} and @code{--silent}.\n\ \n\ If you write an executable Octave script, @code{argv} will return the\n\ list of arguments passed to the script. @xref{Executable Octave Programs},\n\ for an example of how to create an executable Octave script.\n\ @end deftypefn") | |
DEFUN (program_invocation_name, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} program_invocation_name ()\n\ Return the name that was typed at the shell prompt to run Octave.\n\ \n\ If executing a script from the command line (e.g., @code{octave foo.m})\n\ or using an executable Octave script, the program name is set to the\n\ name of the script. @xref{Executable Octave Programs}, for an example of\n\ how to create an executable Octave script.\n\ @seealso{program_name}\n\ @end deftypefn") | |
DEFUN (program_name, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} program_name ()\n\ Return the last component of the value returned by\n\ @code{program_invocation_name}.\n\ @seealso{program_invocation_name}\n\ @end deftypefn") | |
Variables | |
F77_RET_T const octave_idx_type & | F77_CHAR_ARG_LEN_DECL |
long_options | long_opts [] |
#define DOC_CACHE_FILE_OPTION 1 |
#define EVAL_OPTION 2 |
#define EXEC_PATH_OPTION 3 |
#define IMAGE_PATH_OPTION 4 |
#define INFO_FILE_OPTION 5 |
#define INFO_PROG_OPTION 6 |
#define LINE_EDITING_OPTION 7 |
#define NO_INIT_FILE_OPTION 8 |
#define NO_INIT_PATH_OPTION 9 |
#define NO_LINE_EDITING_OPTION 10 |
#define NO_SITE_FILE_OPTION 11 |
#define NO_WINDOW_SYSTEM_OPTION 12 |
#define PERSIST_OPTION 13 |
#define TRADITIONAL_OPTION 14 |
DEFUN | ( | program_name | , | |
args | ||||
) |
DEFUN | ( | program_invocation_name | , | |
args | ||||
) |
DEFUN | ( | argv | , | |
args | ||||
) |
DEFUN | ( | __version_info__ | , | |
args | ||||
) |
F77_RET_T F77_FUNC | ( | xerbla | , | |
XERBLA | ||||
) |
void install_builtins | ( | void | ) |
F77_RET_T const octave_idx_type& F77_CHAR_ARG_LEN_DECL |
Initial value:
{ { "braindead", prog_args::no_arg, 0, TRADITIONAL_OPTION }, { "debug", prog_args::no_arg, 0, 'd' }, { "doc-cache-file", prog_args::required_arg, 0, DOC_CACHE_FILE_OPTION }, { "echo-commands", prog_args::no_arg, 0, 'x' }, { "eval", prog_args::required_arg, 0, EVAL_OPTION }, { "exec-path", prog_args::required_arg, 0, EXEC_PATH_OPTION }, { "help", prog_args::no_arg, 0, 'h' }, { "image-path", prog_args::required_arg, 0, IMAGE_PATH_OPTION }, { "info-file", prog_args::required_arg, 0, INFO_FILE_OPTION }, { "info-program", prog_args::required_arg, 0, INFO_PROG_OPTION }, { "interactive", prog_args::no_arg, 0, 'i' }, { "line-editing", prog_args::no_arg, 0, LINE_EDITING_OPTION }, { "no-history", prog_args::no_arg, 0, 'H' }, { "no-init-file", prog_args::no_arg, 0, NO_INIT_FILE_OPTION }, { "no-init-path", prog_args::no_arg, 0, NO_INIT_PATH_OPTION }, { "no-line-editing", prog_args::no_arg, 0, NO_LINE_EDITING_OPTION }, { "no-site-file", prog_args::no_arg, 0, NO_SITE_FILE_OPTION }, { "no-window-system", prog_args::no_arg, 0, NO_WINDOW_SYSTEM_OPTION }, { "norc", prog_args::no_arg, 0, 'f' }, { "path", prog_args::required_arg, 0, 'p' }, { "persist", prog_args::no_arg, 0, PERSIST_OPTION }, { "quiet", prog_args::no_arg, 0, 'q' }, { "silent", prog_args::no_arg, 0, 'q' }, { "traditional", prog_args::no_arg, 0, TRADITIONAL_OPTION }, { "verbose", prog_args::no_arg, 0, 'V' }, { "version", prog_args::no_arg, 0, 'v' }, { 0, 0, 0, 0 } }