~ubuntu-branches/ubuntu/natty/bc/natty

« back to all changes in this revision

Viewing changes to bc/bcdefs.h

  • Committer: Bazaar Package Importer
  • Author(s): John Hasler
  • Date: 2007-12-02 14:46:56 UTC
  • mto: (3.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20071202144656-vz98qh9dd1zwdyny
Tags: upstream-1.06.94
ImportĀ upstreamĀ versionĀ 1.06.94

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* bcdefs.h:  The single file to include all constants and type definitions. */
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
/* bcdefs.h:  The single file to include all constants and type definitions. */
 
31
 
31
32
/* Include the configuration file. */
32
33
#include "config.h"
33
34
 
53
54
#include <readline/history.h>
54
55
#endif
55
56
 
 
57
/* Initialization magic ... */
 
58
#ifdef _GLOBAL_C
 
59
#define EXTERN 
 
60
#define INIT(x) = x
 
61
#else
 
62
#define EXTERN extern
 
63
#define INIT(x)
 
64
#endif
 
65
 
56
66
/* Include the other definitions. */
57
67
#include "const.h"
58
68
#include "number.h"
90
100
typedef struct 
91
101
    {
92
102
      char f_defined;   /* Is this function defined yet. */
 
103
      char f_void;      /* Is this function a void function. */
93
104
      char *f_body;
94
105
      int  f_body_size;  /* Size of body.  Power of 2. */
95
106
      int  f_code_size;
186
197
#define HISTORY_SIZE(n) stifle_history(n)
187
198
#define UNLIMIT_HISTORY unstifle_history()
188
199
#endif
 
200
 
 
201
/* Now the global variable declarations. */
 
202
#include "global.h"