Mercurial > hg > octave-jordi
view src/toplev.h @ 2077:2d03b8eb891d
[project @ 1996-04-24 00:21:21 by jwe]
author | jwe |
---|---|
date | Wed, 24 Apr 1996 00:21:32 +0000 |
parents | 003570e69c7b |
children | bfb775fb6fe8 |
line wrap: on
line source
/* Copyright (C) 1996 John W. Eaton This file is part of Octave. Octave is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. Octave is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Octave; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #if !defined (octave_toplev_h) #define octave_toplev_h 1 #include <cstdio> class tree_constant; class tree_function; class tree_statement_list; class charMatrix; #include <string> extern void clean_up_and_exit (int) NORETURN; extern void parse_and_execute (FILE *f, int print = 0); extern void parse_and_execute (const string& s, int print = 0, int verbose = 0, const char *warn_for = 0); extern tree_constant eval_string (const string&, int print, int& parse_status); extern int main_loop (void); extern void do_octave_atexit (void); // argv[0] for this program. extern string raw_prog_name; // Cleaned-up name of this program, not including path information. extern string prog_name; // Login name for user running this program. extern string user_name; // Name of the host we are running on. extern string host_name; // User's home directory. extern string home_directory; // Guess what? extern string the_current_working_directory; // The path that will be searched for programs that we execute. extern string exec_path; // Load path specified on command line. extern string load_path; // Name of the info file specified on command line. extern string info_file; // Name of the info reader we'd like to use. extern string info_prog; // Name of the editor to be invoked by the edit_history command. extern string editor; // Nonzero means we are using readline. extern int using_readline; // Nonzero means we printed messages about reading startup files. extern int reading_startup_message_printed; // Command number, counting from the beginning of this session. extern int current_command_number; // Nonzero means we are exiting via the builtin exit or quit functions. extern int quitting_gracefully; // Current command to execute. extern tree_statement_list *global_command; // Pointer to function that is currently being evaluated. extern tree_function *curr_function; // Nonzero means input is coming from startup file. extern int input_from_startup_file; // Nonzero means that input is coming from a file that was named on // the command line. extern int input_from_command_line_file; #endif /* ;;; Local Variables: *** ;;; mode: C++ *** ;;; End: *** */