Back to index

plt-scheme  4.2.1
ffitarget.h
Go to the documentation of this file.
00001 /* -----------------------------------------------------------------*-C-*-
00002    ffitarget.h - Copyright (c) 1996-2003  Red Hat, Inc.
00003    Target configuration macros for hppa.
00004 
00005    Permission is hereby granted, free of charge, to any person obtaining
00006    a copy of this software and associated documentation files (the
00007    ``Software''), to deal in the Software without restriction, including
00008    without limitation the rights to use, copy, modify, merge, publish,
00009    distribute, sublicense, and/or sell copies of the Software, and to
00010    permit persons to whom the Software is furnished to do so, subject to
00011    the following conditions:
00012 
00013    The above copyright notice and this permission notice shall be included
00014    in all copies or substantial portions of the Software.
00015 
00016    THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS
00017    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00018    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00019    IN NO EVENT SHALL CYGNUS SOLUTIONS BE LIABLE FOR ANY CLAIM, DAMAGES OR
00020    OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
00021    ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00022    OTHER DEALINGS IN THE SOFTWARE.
00023 
00024    ----------------------------------------------------------------------- */
00025 
00026 #ifndef LIBFFI_TARGET_H
00027 #define LIBFFI_TARGET_H
00028 
00029 /* ---- System specific configurations ----------------------------------- */
00030 
00031 #ifndef LIBFFI_ASM
00032 typedef unsigned long          ffi_arg;
00033 typedef signed long            ffi_sarg;
00034 
00035 typedef enum ffi_abi {
00036   FFI_FIRST_ABI = 0,
00037 
00038 #ifdef PA_LINUX
00039   FFI_PA32,
00040   FFI_DEFAULT_ABI = FFI_PA32,
00041 #endif
00042 
00043 #ifdef PA_HPUX
00044   FFI_PA32,
00045   FFI_DEFAULT_ABI = FFI_PA32,
00046 #endif
00047 
00048 #ifdef PA64_HPUX
00049 #error "PA64_HPUX FFI is not yet implemented"
00050   FFI_PA64,
00051   FFI_DEFAULT_ABI = FFI_PA64,
00052 #endif
00053 
00054   FFI_LAST_ABI = FFI_DEFAULT_ABI + 1
00055 } ffi_abi;
00056 #endif
00057 
00058 /* ---- Definitions for closures ----------------------------------------- */
00059 
00060 #define FFI_CLOSURES 1
00061 #define FFI_NATIVE_RAW_API 0
00062 
00063 #ifdef PA_LINUX
00064 #define FFI_TRAMPOLINE_SIZE 32
00065 #else
00066 #define FFI_TRAMPOLINE_SIZE 40
00067 #endif
00068 
00069 #define FFI_TYPE_SMALL_STRUCT2 -1
00070 #define FFI_TYPE_SMALL_STRUCT3 -2
00071 #define FFI_TYPE_SMALL_STRUCT4 -3
00072 #define FFI_TYPE_SMALL_STRUCT5 -4
00073 #define FFI_TYPE_SMALL_STRUCT6 -5
00074 #define FFI_TYPE_SMALL_STRUCT7 -6
00075 #define FFI_TYPE_SMALL_STRUCT8 -7
00076 #endif