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