/* * Copyright (c) 2010 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of Apple Inc. ("Apple") nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Portions of this software have been released under the following terms: * * (c) Copyright 1989-1993 OPEN SOFTWARE FOUNDATION, INC. * (c) Copyright 1989-1993 HEWLETT-PACKARD COMPANY * (c) Copyright 1989-1993 DIGITAL EQUIPMENT CORPORATION * * To anyone who acknowledges that this file is provided "AS IS" * without any express or implied warranty: * permission to use, copy, modify, and distribute this file for any * purpose is hereby granted without fee, provided that the above * copyright notices and this notice appears in all source code copies, * and that none of the names of Open Software Foundation, Inc., Hewlett- * Packard Company or Digital Equipment Corporation be used * in advertising or publicity pertaining to distribution of the software * without specific, written prior permission. Neither Open Software * Foundation, Inc., Hewlett-Packard Company nor Digital * Equipment Corporation makes any representations about the suitability * of this software for any purpose. * * Copyright (c) 2007, Novell, Inc. All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of Novell Inc. nor the names of its contributors * may be used to endorse or promote products derived from this * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * @APPLE_LICENSE_HEADER_END@ */ /* ** ** ** NAME: ** ** cvt.h ** ** FACILITY: ** ** IDL Stub Runtime Support ** ** ABSTRACT: ** ** Header file for floating point conversion routines. ** ** VERSION: DCE 1.0 ** */ #ifndef CVT #define CVT 1 /* * * Type Definitions * */ typedef unsigned char CVT_BYTE; typedef CVT_BYTE *CVT_BYTE_PTR; typedef CVT_BYTE CVT_VAX_F[4]; typedef CVT_BYTE CVT_VAX_D[8]; typedef CVT_BYTE CVT_VAX_G[8]; typedef CVT_BYTE CVT_VAX_H[16]; typedef CVT_BYTE CVT_IEEE_SINGLE[4]; typedef CVT_BYTE CVT_IEEE_DOUBLE[8]; typedef CVT_BYTE CVT_IBM_SHORT[4]; typedef CVT_BYTE CVT_IBM_LONG[8]; typedef CVT_BYTE CVT_CRAY[8]; typedef float CVT_SINGLE; typedef double CVT_DOUBLE; typedef long CVT_SIGNED_INT; typedef unsigned long CVT_UNSIGNED_INT; typedef unsigned long CVT_STATUS; /* * * Constant Definitions * */ #define CVT_C_ROUND_TO_NEAREST 1 #define CVT_C_TRUNCATE 2 #define CVT_C_ROUND_TO_POS 4 #define CVT_C_ROUND_TO_NEG 8 #define CVT_C_VAX_ROUNDING 16 #define CVT_C_BIG_ENDIAN 32 #define CVT_C_ERR_UNDERFLOW 64 #define CVT_C_ZERO_BLANKS 128 #define CVT_C_SKIP_BLANKS 256 #define CVT_C_SKIP_UNDERSCORES 512 #define CVT_C_SKIP_UNDERSCORE 512 #define CVT_C_SKIP_TABS 1024 #define CVT_C_ONLY_E 2048 #define CVT_C_EXP_LETTER_REQUIRED 4096 #define CVT_C_FORCE_SCALE 8192 #define CVT_C_EXPONENTIAL_FORMAT 16384 #define CVT_C_FORCE_PLUS 32768 #define CVT_C_FORCE_EXPONENT_SIGN 65536 #define CVT_C_SUPPRESS_TRAILING_ZEROES 131072 #define CVT_C_FORCE_EXPONENTIAL_FORMAT 262144 #define CVT_C_FORCE_FRACTIONAL_FORMAT 524288 #define CVT_C_EXPONENT_D 1048576 #define CVT_C_EXPONENT_E 2097152 #define CVT_C_SEMANTICS_FORTRAN 4194304 #define CVT_C_SEMANTICS_PASCAL 8388608 #define cvt__normal 1 #define cvt__invalid_character 2 #define cvt__invalid_option 3 #define cvt__invalid_radix 4 #define cvt__invalid_size 5 #define cvt__invalid_value 6 #define cvt__neg_infinity 7 #define cvt__output_conversion_error 8 #define cvt__overflow 9 #define cvt__pos_infinity 10 #define cvt__underflow 11 #define cvt__input_conversion_error 12 #define cvt_s_normal cvt__normal #define cvt_s_invalid_character cvt__invalid_character #define cvt_s_invalid_option cvt__invalid_option #define cvt_s_invalid_radix cvt__invalid_radix #define cvt_s_invalid_size cvt__invalid_size #define cvt_s_invalid_value cvt__invalid_value #define cvt_s_neg_infinity cvt__neg_infinity #define cvt_s_input_conversion_error cvt__input_conversion_error #define cvt_s_output_conversion_error cvt__output_conversion_error #define cvt_s_overflow cvt__overflow #define cvt_s_pos_infinity cvt__pos_infinity #define cvt_s_underflow cvt__underflow #define CVT_C_BIN 2 #define CVT_C_OCT 8 #define CVT_C_DEC 10 #define CVT_C_HEX 16 #endif