home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gdb-4.16-base.tgz / gdb-4.16-base.tar / fsf / gdb / utils / amd-udi / udi / udiphsun.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-23  |  3.3 KB  |  87 lines

  1. /******************************************************************************
  2.  * Copyright 1991 Advanced Micro Devices, Inc.
  3.  *
  4.  * This software is the property of Advanced Micro Devices, Inc  (AMD)  which
  5.  * specifically  grants the user the right to modify, use and distribute this
  6.  * software provided this notice is not removed or altered.  All other rights
  7.  * are reserved by AMD.
  8.  *
  9.  * AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS
  10.  * SOFTWARE.  IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL
  11.  * DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR
  12.  * USE OF THIS SOFTWARE.
  13.  *
  14.  * Comments about this software should be directed to udi@amd.com. If access
  15.  * to electronic mail isn't available, send mail to:
  16.  *
  17.  * Advanced Micro Devices, Inc.
  18.  * 29K Support Products
  19.  * Mail Stop 573
  20.  * 5900 E. Ben White Blvd.
  21.  * Austin, TX 78741
  22.  *****************************************************************************
  23.  *       $Id: udiphsun.h,v 1.1 1993/12/23 04:45:13 cassidy Exp $
  24.  *     $Id: @(#)udiphsun.h    2.3, AMD
  25.  */
  26.  
  27. /* This file is to be used to reconfigure the UDI Procedural interface
  28.    for a given host. This file should be placed so that it will be
  29.    included from udiproc.h. Everything in here may need to be changed
  30.    when you change either the host CPU or its compiler. Nothing in
  31.    here should change to support different targets. There are multiple
  32.    versions of this file, one for each of the different host/compiler
  33.    combinations in use.
  34. */
  35.  
  36. #define UDIStruct  struct        /* _packed not needed on Sun */
  37. /* First, we need some types */
  38. /* Types with at least the specified number of bits */
  39. typedef double        UDIReal64;        /* 64-bit real value */
  40. typedef float        UDIReal32;        /* 32-bit real value */
  41.   
  42. typedef unsigned long    UDIUInt32;        /* unsigned integers */
  43. typedef unsigned short    UDIUInt16; 
  44. typedef unsigned char    UDIUInt8;
  45.   
  46. typedef long        UDIInt32;        /* 32-bit integer */ 
  47. typedef short        UDIInt16;        /* 16-bit integer */ 
  48. typedef char        UDIInt8;        /* unreliable signedness */
  49.  
  50. /* To aid in supporting environments where the DFE and TIP use
  51. different compilers or hosts (like DOS 386 on one side, 286 on the
  52. other, or different Unix machines connected by sockets), we define
  53. two abstract types - UDIInt and UDISizeT.
  54. UDIInt should be defined to be int except for host/compiler combinations
  55. that are intended to talk to existing UDI components that have a different
  56. sized int. Similarly for UDISizeT.
  57. */
  58. typedef int        UDIInt;
  59. typedef unsigned int    UDIUInt;
  60.  
  61. typedef unsigned int    UDISizeT;
  62.  
  63. /* Now two void types. The first is for function return types,
  64. the other for pointers to no particular type. Since these types
  65. are used solely for documentational clarity, if your host/compiler
  66. doesn't support either one, replace them with int and char *
  67. respectively.
  68. */
  69. typedef void        UDIVoid;        /* void type */
  70. typedef void *        UDIVoidPtr;        /* void pointer type */
  71. typedef void *        UDIHostMemPtr;        /* Arbitrary memory pointer */
  72.  
  73. /* Now we want a type optimized for boolean values. Normally this
  74.    would be int, but on some machines (Z80s, 8051s, etc) it might
  75.    be better to map it onto a char
  76. */
  77. typedef    int        UDIBool;
  78.  
  79. /* Now indicate whether your compiler support full ANSI style
  80.    prototypes. If so, use #if 1. If not use #if 0.
  81. */
  82. #if 0
  83. #define UDIParams(x)    x
  84. #else
  85. #define UDIParams(x)    ()
  86. #endif
  87.