targparam.h revision 1.1
11.1Scherry/* $NetBSD: targparam.h,v 1.1 2006/04/01 09:39:47 cherry Exp $ */ 21.1Scherry 31.1Scherry/* 41.1Scherry * Copyright (c) 1994, 1995 Jochen Pohl 51.1Scherry * All Rights Reserved. 61.1Scherry * 71.1Scherry * Redistribution and use in source and binary forms, with or without 81.1Scherry * modification, are permitted provided that the following conditions 91.1Scherry * are met: 101.1Scherry * 1. Redistributions of source code must retain the above copyright 111.1Scherry * notice, this list of conditions and the following disclaimer. 121.1Scherry * 2. Redistributions in binary form must reproduce the above copyright 131.1Scherry * notice, this list of conditions and the following disclaimer in the 141.1Scherry * documentation and/or other materials provided with the distribution. 151.1Scherry * 3. All advertising materials mentioning features or use of this software 161.1Scherry * must display the following acknowledgement: 171.1Scherry * This product includes software developed by Jochen Pohl for 181.1Scherry * The NetBSD Project. 191.1Scherry * 4. The name of the author may not be used to endorse or promote products 201.1Scherry * derived from this software without specific prior written permission. 211.1Scherry * 221.1Scherry * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 231.1Scherry * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 241.1Scherry * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 251.1Scherry * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 261.1Scherry * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 271.1Scherry * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 281.1Scherry * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 291.1Scherry * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 301.1Scherry * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 311.1Scherry * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 321.1Scherry */ 331.1Scherry 341.1Scherry/* 351.1Scherry * Machine-dependent target parameters for lint1. 361.1Scherry */ 371.1Scherry 381.1Scherry#include "lp64.h" 391.1Scherry 401.1Scherry/* 411.1Scherry * Should be set to 1 if the difference of two pointers is of type long 421.1Scherry * or the value of sizeof is of type unsigned long. Note this MUST be 431.1Scherry * kept in sync with the compiler! 441.1Scherry */ 451.1Scherry 461.1Scherry#define PTRDIFF_IS_LONG 1 471.1Scherry#define SIZEOF_IS_ULONG 1 481.1Scherry#define INTPTR_IS_LONG 1 491.1Scherry 501.1Scherry#define FLOAT_SIZE (4 * CHAR_BIT) 511.1Scherry#define DOUBLE_SIZE (8 * CHAR_BIT) 521.1Scherry#define LDOUBLE_SIZE (16 * CHAR_BIT) 531.1Scherry 541.1Scherry#define ENUM_SIZE (4 * CHAR_BIT) 55