~ubuntu-branches/ubuntu/oneiric/bc/oneiric

« back to all changes in this revision

Viewing changes to bc/global.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-05 12:24:03 UTC
  • mfrom: (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20071205122403-rv1a7x90ktu1wl95
Tags: 1.06.94-3ubuntu1
* Merge with Debian; remaining changes:
  - Make bc/dc notice read and write errors on its input and output.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* global.h:  The global variables for bc.  */
2
 
 
3
1
/*  This file is part of GNU bc.
4
 
    Copyright (C) 1991, 1992, 1993, 1994, 1997 Free Software Foundation, Inc.
 
2
 
 
3
    Copyright (C) 1991-1994, 1997, 2006 Free Software Foundation, Inc.
5
4
 
6
5
    This program is free software; you can redistribute it and/or modify
7
6
    it under the terms of the GNU General Public License as published by
14
13
    GNU General Public License for more details.
15
14
 
16
15
    You should have received a copy of the GNU General Public License
17
 
    along with this program; see the file COPYING.  If not, write to
 
16
    along with this program; see the file COPYING.  If not, write to:
18
17
      The Free Software Foundation, Inc.
19
 
      59 Temple Place, Suite 330
20
 
      Boston, MA 02111 USA
 
18
      Foundation, Inc.  51 Franklin Street, Fifth Floor,
 
19
      Boston, MA 02110-1301  USA
21
20
 
22
21
    You may contact the author by:
23
22
       e-mail:  philnelson@acm.org
28
27
       
29
28
*************************************************************************/
30
29
 
 
30
/* global.h:  The global variables for bc.  */
31
31
 
32
32
/* The current break level's lable. */
33
33
EXTERN int break_label;
42
42
EXTERN int next_label;
43
43
 
44
44
/* Byte code character storage.  Used in many places for generation of code. */
45
 
EXTERN char genstr[80];
 
45
EXTERN char  *genstr  INIT(NULL);
 
46
EXTERN int    genlen  INIT(0);
46
47
 
47
48
/* Count of characters printed to the output in compile_only mode. */
48
49
EXTERN int out_count;
52
53
EXTERN char did_gen;
53
54
 
54
55
/* Is this run an interactive execution.  (Is stdin a terminal?) */
55
 
EXTERN char interactive;
 
56
EXTERN char interactive  INIT(FALSE);
56
57
 
57
58
/* Just generate the byte code.  -c flag. */
58
 
EXTERN int compile_only;
 
59
EXTERN int compile_only INIT(FALSE);
59
60
 
60
61
/* Load the standard math functions.  -l flag. */
61
 
EXTERN int use_math;
 
62
EXTERN int use_math  INIT(FALSE);
62
63
 
63
64
/* Give a warning on use of any non-standard feature (non-POSIX).  -w flag. */
64
 
EXTERN int warn_not_std;
 
65
EXTERN int warn_not_std  INIT(FALSE);
65
66
 
66
67
/* Accept POSIX bc only!  -s flag. */
67
 
EXTERN int std_only;
 
68
EXTERN int std_only  INIT(FALSE);
68
69
 
69
70
/* Don't print the banner at start up.  -q flag. */
70
 
EXTERN int quiet;
 
71
EXTERN int quiet  INIT(FALSE);
71
72
 
72
73
/* The list of file names to process. */
73
 
EXTERN file_node *file_names;
 
74
EXTERN file_node *file_names  INIT(NULL);
74
75
 
75
76
/* The name of the current file being processed. */
76
77
EXTERN char *file_name;
113
114
 
114
115
#if defined(LIBEDIT)
115
116
/* LIBEDIT data */
116
 
EditLine *edit;
 
117
EditLine *edit INIT(NULL);
117
118
History  *hist;
118
119
HistEvent histev;
119
120
#endif