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

« back to all changes in this revision

Viewing changes to bc/const.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
 
/* const.h: Constants 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
/* const.h: Constants for bc. */
31
31
 
32
32
/* Define INT_MAX and LONG_MAX if not defined.  Assuming 32 bits... */
33
33
 
57
57
 
58
58
/* Definitions for arrays. */
59
59
 
60
 
#define BC_DIM_MAX    65535       /* this should be NODE_SIZE^NODE_DEPTH-1 */
 
60
#define BC_DIM_MAX   16777215     /* this should be NODE_SIZE^NODE_DEPTH-1 */
61
61
 
62
 
#define   NODE_SIZE        16     /* Must be a power of 2. */
63
 
#define   NODE_MASK       0xf     /* Must be NODE_SIZE-1. */
64
 
#define   NODE_SHIFT        4     /* Number of 1 bits in NODE_MASK. */
 
62
#define   NODE_SIZE        64     /* Must be a power of 2. */
 
63
#define   NODE_MASK      0x3f     /* Must be NODE_SIZE-1. */
 
64
#define   NODE_SHIFT        6     /* Number of 1 bits in NODE_MASK. */
65
65
#define   NODE_DEPTH        4
66
66
 
67
67
 
88
88
#define FUNCT    2
89
89
#define FUNCTDEF 3
90
90
 
91
 
#define EXTERN extern
92
91
#ifdef __STDC__
93
92
#define CONST const
94
93
#define VOID  void