/* global.h: The global variables for bc. */
/* This file is part of bc written for MINIX.
Copyright (C) 1991, 1992 Free Software Foundation, Inc.
This program 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 of the License , or
(at your option) any later version.
This program 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 this program; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
You may contact the author by:
us-mail: Philip A. Nelson
Computer Science Department, 9062
Western Washington University
Bellingham, WA 98226-9062
*************************************************************************/
/* For the current "break level" and if statements. */
EXTERN
int continue_label
;
/* Used for "code" generation. */
/* Interactive and other flags. */
EXTERN
char compile_only
;
EXTERN
char warn_not_std
;
/* global variables for the bc machine. All will be dynamic in size.*/
/* Function storage. main is (0) and functions (1-f_count) */
EXTERN bc_function
*functions
;
/* Variable stoarge and reverse names. */
EXTERN bc_var
**variables
;
/* Array Variable storage and reverse names. */
EXTERN bc_var_array
**arrays
;
EXTERN estack_rec
*ex_stack
;
/* Function return stack. */
EXTERN fstack_rec
*fn_stack
;
EXTERN
char runtime_error
;
EXTERN program_counter pc
;
/* Input Line numbers and other error information. */
/* For larger identifiers, a tree, and how many "storage" locations
EXTERN id_rec
*name_tree
;
/* For error message production */
/* defined in number.c */
/* For use with getopt. Do not declare them here.*/