head	1.5;
access;
symbols
	perseant-exfatfs-base-20250801:1.5
	perseant-exfatfs-base-20240630:1.5
	cjep_sun2x:1.5.0.44
	cjep_sun2x-base:1.5
	cjep_staticlib_x-base1:1.5
	cjep_staticlib_x:1.5.0.42
	cjep_staticlib_x-base:1.5
	phil-wifi-20200421:1.5
	phil-wifi-20200411:1.5
	phil-wifi-20200406:1.5
	pgoyette-compat-merge-20190127:1.5
	pgoyette-compat-20190127:1.5
	pgoyette-compat-20190118:1.5
	pgoyette-compat-1226:1.5
	pgoyette-compat-1126:1.5
	pgoyette-compat-1020:1.5
	pgoyette-compat-0930:1.5
	pgoyette-compat-0906:1.5
	pgoyette-compat-0728:1.5
	pgoyette-compat-0625:1.5
	pgoyette-compat-0521:1.5
	pgoyette-compat-0502:1.5
	pgoyette-compat-0422:1.5
	pgoyette-compat-0415:1.5
	pgoyette-compat-0407:1.5
	pgoyette-compat-0330:1.5
	pgoyette-compat-0322:1.5
	pgoyette-compat-0315:1.5
	pgoyette-compat:1.5.0.40
	pgoyette-compat-base:1.5
	perseant-stdc-iso10646:1.5.0.38
	perseant-stdc-iso10646-base:1.5
	prg-localcount2-base3:1.5
	prg-localcount2-base2:1.5
	prg-localcount2-base1:1.5
	prg-localcount2:1.5.0.36
	prg-localcount2-base:1.5
	pgoyette-localcount-20170426:1.5
	bouyer-socketcan-base1:1.5
	pgoyette-localcount-20170320:1.5
	bouyer-socketcan:1.5.0.34
	bouyer-socketcan-base:1.5
	pgoyette-localcount-20170107:1.5
	pgoyette-localcount-20161104:1.5
	localcount-20160914:1.5
	pgoyette-localcount-20160806:1.5
	pgoyette-localcount-20160726:1.5
	pgoyette-localcount:1.5.0.32
	pgoyette-localcount-base:1.5
	netbsd-5-2-3-RELEASE:1.5
	netbsd-5-1-5-RELEASE:1.5
	yamt-pagecache-base9:1.5
	yamt-pagecache-tag8:1.5
	tls-earlyentropy:1.5.0.28
	tls-earlyentropy-base:1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.5
	riastradh-drm2-base3:1.5
	netbsd-5-2-2-RELEASE:1.5
	netbsd-5-1-4-RELEASE:1.5
	netbsd-5-2-1-RELEASE:1.5
	netbsd-5-1-3-RELEASE:1.5
	agc-symver:1.5.0.30
	agc-symver-base:1.5
	tls-maxphys-base:1.5
	yamt-pagecache-base8:1.5
	netbsd-5-2:1.5.0.26
	yamt-pagecache-base7:1.5
	netbsd-5-2-RELEASE:1.5
	netbsd-5-2-RC1:1.5
	yamt-pagecache-base6:1.5
	yamt-pagecache-base5:1.5
	yamt-pagecache-base4:1.5
	netbsd-5-1-2-RELEASE:1.5
	netbsd-5-1-1-RELEASE:1.5
	yamt-pagecache-base3:1.5
	yamt-pagecache-base2:1.5
	yamt-pagecache:1.5.0.24
	yamt-pagecache-base:1.5
	bouyer-quota2-nbase:1.5
	bouyer-quota2:1.5.0.22
	bouyer-quota2-base:1.5
	matt-nb5-pq3:1.5.0.20
	matt-nb5-pq3-base:1.5
	netbsd-5-1:1.5.0.18
	netbsd-5-1-RELEASE:1.5
	netbsd-5-1-RC4:1.5
	netbsd-5-1-RC3:1.5
	netbsd-5-1-RC2:1.5
	netbsd-5-1-RC1:1.5
	netbsd-5-0-2-RELEASE:1.5
	netbsd-5-0-1-RELEASE:1.5
	jym-xensuspend-nbase:1.5
	netbsd-5-0:1.5.0.16
	netbsd-5-0-RELEASE:1.5
	netbsd-5-0-RC4:1.5
	netbsd-5-0-RC3:1.5
	netbsd-5-0-RC2:1.5
	jym-xensuspend:1.5.0.14
	jym-xensuspend-base:1.5
	netbsd-5-0-RC1:1.5
	netbsd-5:1.5.0.12
	netbsd-5-base:1.5
	mjf-devfs2:1.5.0.10
	mjf-devfs2-base:1.5
	yamt-pf42-base4:1.5
	yamt-pf42-base3:1.5
	hpcarm-cleanup-nbase:1.5
	yamt-pf42-base2:1.5
	yamt-pf42:1.5.0.8
	yamt-pf42-base:1.5
	keiichi-mipv6:1.5.0.6
	keiichi-mipv6-base:1.5
	cube-autoconf:1.5.0.4
	cube-autoconf-base:1.5
	hpcarm-cleanup:1.5.0.2
	hpcarm-cleanup-base:1.5
	netbsd-1-3-PATCH003:1.4
	netbsd-1-3-PATCH003-CANDIDATE2:1.4
	netbsd-1-3-PATCH003-CANDIDATE1:1.4
	netbsd-1-3-PATCH003-CANDIDATE0:1.4
	netbsd-1-3-PATCH002:1.4
	netbsd-1-3-PATCH001:1.4
	netbsd-1-3-RELEASE:1.4
	netbsd-1-3-BETA:1.4
	netbsd-1-3:1.4.0.2
	netbsd-1-3-base:1.4
	fsf-bc-1-04:1.1.1.2
	fsf:1.1.1
	netbsd-1-2-PATCH001:1.3
	netbsd-1-2-RELEASE:1.3
	netbsd-1-2-BETA:1.3
	netbsd-1-2-base:1.3
	netbsd-1-2:1.3.0.6
	netbsd-1-1-PATCH001:1.3
	netbsd-1-1-RELEASE:1.3
	netbsd-1-1:1.3.0.2
	netbsd-1-1-base:1.3
	bc-1-03:1.1.1.1
	GNU-bc-1-03:1.1.1
	netbsd-1-0-PATCH06:1.2
	netbsd-1-0-PATCH05:1.2
	netbsd-1-0-PATCH04:1.2
	netbsd-1-0-PATCH03:1.2
	netbsd-1-0-PATCH02:1.2
	netbsd-1-0-PATCH1:1.2
	netbsd-1-0-PATCH0:1.2
	netbsd-1-0-RELEASE:1.2
	netbsd-1-0:1.2.0.2
	netbsd-1-0-base:1.2
	netbsd-0-9-RELEASE:1.1
	netbsd-0-9-BETA:1.1
	netbsd-0-9-ALPHA2:1.1
	netbsd-0-9-ALPHA:1.1
	netbsd-0-9:1.1.0.2
	netbsd-0-9-base:1.1
	netbsd-0-8:1.1
	netbsd-alpha-1:1.1;
locks; strict;
comment	@ * @;


1.5
date	99.01.16.05.57.49;	author simonb;	state dead;
branches;
next	1.4;

1.4
date	97.04.29.00.29.07;	author phil;	state Exp;
branches;
next	1.3;

1.3
date	94.12.02.00.43.32;	author phil;	state Exp;
branches;
next	1.2;

1.2
date	93.08.02.17.25.37;	author mycroft;	state Exp;
branches;
next	1.1;

1.1
date	93.04.10.15.52.14;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	94.12.01.04.24.01;	author phil;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	97.04.29.00.11.28;	author phil;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Update bc to 1.05a and dc to 1.2, which source in src/gnu/dist/bc.
@
text
@/* global.h:  The global variables for bc.  */

/*  This file is part of GNU bc.
    Copyright (C) 1991, 1992, 1993, 1994, 1997 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:
       e-mail:  phil@@cs.wwu.edu
      us-mail:  Philip A. Nelson
                Computer Science Department, 9062
                Western Washington University
                Bellingham, WA 98226-9062
       
*************************************************************************/


/* The current break level's lable. */
EXTERN int break_label;

/* The current if statement's else label or label after else. */
EXTERN int if_label;

/* The current for statement label for continuing the loop. */
EXTERN int continue_label;

/* Next available label number. */
EXTERN int next_label;

/* Byte code character storage.  Used in many places for generation of code. */
EXTERN char genstr[80];

/* Count of characters printed to the output in compile_only mode. */
EXTERN int out_count;

/* Have we generated any code since the last initialization of the code
   generator.  */
EXTERN char did_gen;

/* Is this run an interactive execution.  (Is stdin a terminal?) */
EXTERN char interactive;

/* Just generate the byte code.  -c flag. */
EXTERN int compile_only;

/* Load the standard math functions.  -l flag. */
EXTERN int use_math;

/* Give a warning on use of any non-standard feature (non-POSIX).  -w flag. */
EXTERN int warn_not_std;

/* Accept POSIX bc only!  -s flag. */
EXTERN int std_only;

/* Don't print the banner at start up.  -q flag. */
EXTERN int quiet;

/* The list of file names to process. */
EXTERN file_node *file_names;

/* The name of the current file being processed. */
EXTERN char *file_name;

/* Is the current file a named file or standard input? */
EXTERN char   is_std_in;

/* 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;
EXTERN char **f_names;
EXTERN int  f_count;

/* Variable stoarge and reverse names. */

EXTERN bc_var **variables;
EXTERN char **v_names;
EXTERN int  v_count;

/* Array Variable storage and reverse names. */

EXTERN bc_var_array **arrays;
EXTERN char **a_names;
EXTERN int  a_count;

/* Execution stack. */
EXTERN estack_rec *ex_stack;

/* Function return stack. */
EXTERN fstack_rec *fn_stack;

/* Current ibase, obase, scale, and n_history (if needed). */
EXTERN int i_base;
EXTERN int o_base;
EXTERN int scale;
#ifdef READLINE
EXTERN int n_history;
#endif

/* "Condition code" -- false (0) or true (1) */
EXTERN char c_code;

/* Records the number of the runtime error. */
EXTERN char runtime_error;

/* Holds the current location of execution. */
EXTERN program_counter pc;

/* For POSIX bc, this is just for number output, not strings. */
EXTERN int out_col;

/* Keeps track of the current number of characters per output line.
   This includes the \n at the end of the line. */
EXTERN int line_size;

/* Input Line numbers and other error information. */
EXTERN int line_no;
EXTERN int had_error;

/* For larger identifiers, a tree, and how many "storage" locations
   have been allocated. */

EXTERN int next_array;
EXTERN int next_func;
EXTERN int next_var;

EXTERN id_rec *name_tree;

/* defined in number.c */
extern bc_num _zero_;
extern bc_num _one_;

/* For use with getopt.  Do not declare them here.*/
extern int optind;

@


1.4
log
@Cleanup for import of bc-1.04.  Removing many files not needed for bc-1.04.
Cleanup here due to a major reorganization of fsf tree and the desire
to keep the NetBSD tree as clean as possible.
@
text
@@


1.3
log
@Updating to 1.03 with RCS added to most .[chyl] files
@
text
@d3 2
a4 2
/*  This file is part of bc written for MINIX.
    Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
d56 1
a56 1
EXTERN char compile_only;
d59 1
a59 1
EXTERN char use_math;
d62 1
a62 1
EXTERN char warn_not_std;
d65 13
a77 1
EXTERN char std_only;
d104 1
a104 1
/* Other "storage". */
d108 5
d114 2
a115 1
EXTERN int out_col;
d117 2
d121 7
a139 5

/* For error message production */
EXTERN char **g_argv;
EXTERN int    g_argc;
EXTERN char   is_std_in;
@


1.2
log
@Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
@
text
@d4 1
a4 1
    Copyright (C) 1991, 1992 Free Software Foundation, Inc.
a25 2

	$Id: $
d30 1
a30 1
/* For the current "break level" and if statements. */
d32 2
d35 2
d39 1
a39 1
/* Label numbers. */
d42 1
a42 1
/* Used for "code" generation. */
d44 2
d47 3
d52 1
a52 1
/* Interactive and other flags. */
d54 2
d57 2
d60 2
d63 2
@


1.1
log
@gnu bc.  necessary to compile the distribution
@
text
@d26 2
@


1.1.1.1
log
@Import of GNU bc-1.03
@
text
@d4 1
a4 1
    Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
d30 1
a30 1
/* The current break level's lable. */
a31 2

/* The current if statement's else label or label after else. */
a32 2

/* The current for statement label for continuing the loop. */
d35 1
a35 1
/* Next available label number. */
d38 1
a38 1
/* Byte code character storage.  Used in many places for generation of code. */
a39 2

/* Count of characters printed to the output in compile_only mode. */
a40 3

/* Have we generated any code since the last initialization of the code
   generator.  */
d43 1
a43 1
/* Is this run an interactive execution.  (Is stdin a terminal?) */
a44 2

/* Just generate the byte code.  -c flag. */
a45 2

/* Load the standard math functions.  -l flag. */
a46 2

/* Give a warning on use of any non-standard feature (non-POSIX).  -w flag. */
a47 2

/* Accept POSIX bc only!  -s flag. */
@


1.1.1.2
log
@Updating to version 1.04.
@
text
@d3 2
a4 2
/*  This file is part of GNU bc.
    Copyright (C) 1991, 1992, 1993, 1994, 1997 Free Software Foundation, Inc.
d56 1
a56 1
EXTERN int compile_only;
d59 1
a59 1
EXTERN int use_math;
d62 1
a62 1
EXTERN int warn_not_std;
d65 1
a65 13
EXTERN int std_only;

/* Don't print the banner at start up.  -q flag. */
EXTERN int quiet;

/* The list of file names to process. */
EXTERN file_node *file_names;

/* The name of the current file being processed. */
EXTERN char *file_name;

/* Is the current file a named file or standard input? */
EXTERN char   is_std_in;
d92 1
a92 1
/* Current ibase, obase, scale, and n_history (if needed). */
a95 5
#ifdef READLINE
EXTERN int n_history;
#endif

/* "Condition code" -- false (0) or true (1) */
d97 1
a97 2

/* Records the number of the runtime error. */
a98 2

/* Holds the current location of execution. */
a100 7
/* For POSIX bc, this is just for number output, not strings. */
EXTERN int out_col;

/* Keeps track of the current number of characters per output line.
   This includes the \n at the end of the line. */
EXTERN int line_size;

d113 5
@
