Annotation of gforth/engine/libcc.h.in, revision 1.2

1.1       anton       1: /* header file for libcc-generated C code
                      2: 
1.2     ! anton       3:   Copyright (C) 2006,2007 Free Software Foundation, Inc.
1.1       anton       4: 
                      5:   This file is part of Gforth.
                      6: 
                      7:   Gforth is free software; you can redistribute it and/or
                      8:   modify it under the terms of the GNU General Public License
                      9:   as published by the Free Software Foundation; either version 2
                     10:   of the License, or (at your option) any later version.
                     11: 
                     12:   This program is distributed in the hope that it will be useful,
                     13:   but WITHOUT ANY WARRANTY; without even the implied warranty of
                     14:   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     15:   GNU General Public License for more details.
                     16: 
                     17:   You should have received a copy of the GNU General Public License
                     18:   along with this program; if not, write to the Free Software
                     19:   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
                     20: */
                     21: 
                     22: #include <gforth/@PACKAGE_VERSION@/config.h>
                     23: 
                     24: typedef CELL_TYPE Cell;
                     25: typedef double Float;
                     26: 
                     27: #define Clongest long long
                     28: typedef unsigned Clongest UClongest;
                     29: 
                     30: extern Cell *gforth_SP;
                     31: extern Float *gforth_FP;
                     32: 
                     33: #define CELL_BITS      (sizeof(Cell) * 8)
                     34: 
                     35: #define gforth_d2ll(lo,hi) \
                     36:   ((sizeof(Cell) < sizeof(Clongest)) \
                     37:    ? (((UClongest)(lo))|(((UClongest)(hi))<<CELL_BITS)) \
                     38:    : (lo))
                     39: 
                     40: #define gforth_ll2d(ll,lo,hi) \
                     41:   do { \
                     42:     UClongest _ll = (ll); \
                     43:     (lo) = (Cell)_ll; \
                     44:     (hi) = ((sizeof(Cell) < sizeof(Clongest)) \
                     45:             ? (_ll >> CELL_BITS) \
                     46:             : 0); \
                     47:   } while (0);

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>