Diff of /main/branches/4.1/trunk/api/platform/windows/rexxapitypes.h [r9435] .. [r9436]  Maximize  Restore

Switch to unified view

a/main/branches/4.1/trunk/api/platform/windows/rexxapitypes.h b/main/branches/4.1/trunk/api/platform/windows/rexxapitypes.h
1
/*----------------------------------------------------------------------------*/
1
/*----------------------------------------------------------------------------*/
2
/*                                                                            */
2
/*                                                                            */
3
/* Copyright (c) 1995, 2004 IBM Corporation. All rights reserved.             */
3
/* Copyright (c) 1995, 2004 IBM Corporation. All rights reserved.             */
4
/* Copyright (c) 2005-2010 Rexx Language Association. All rights reserved.    */
4
/* Copyright (c) 2005-2013 Rexx Language Association. All rights reserved.    */
5
/*                                                                            */
5
/*                                                                            */
6
/* This program and the accompanying materials are made available under       */
6
/* This program and the accompanying materials are made available under       */
7
/* the terms of the Common Public License v1.0 which accompanies this         */
7
/* the terms of the Common Public License v1.0 which accompanies this         */
8
/* distribution. A copy is also available at the following address:           */
8
/* distribution. A copy is also available at the following address:           */
9
/* http://www.ibm.com/developerworks/oss/CPLv1.0.htm                          */
9
/* http://www.ibm.com/developerworks/oss/CPLv1.0.htm                          */
...
...
48
#define __REXX64__
48
#define __REXX64__
49
#else
49
#else
50
#undef __REXX64__
50
#undef __REXX64__
51
#endif
51
#endif
52
52
53
/* If the platform and compiler supports the C9X 'proposed' standard for
54
 * integer types, and has inttypes.h, then use it by defining NATIVE_INTTYPES.
55
 *
56
 * Visual C++ since 2010 has stdint.h, but by 2013 still does not have
57
 * inttypes.h.  In this case define HAVE_STDINT_H.  Otherwise use our own
58
 * defintions of the same types
59
*/
60
#if defined (NATIVE_INTYPES)
61
#include <inttypes.h>
62
#elif defined(HAVE_STDINT_H)
63
#include <stdint.h>
64
#else
53
// portable ANSI types
65
// portable ANSI types
54
typedef short int16_t;
66
typedef short int16_t;
55
typedef unsigned short uint16_t;
67
typedef unsigned short uint16_t;
56
typedef int int32_t;
68
typedef int int32_t;
57
typedef unsigned int uint32_t;
69
typedef unsigned int uint32_t;
58
typedef char int8_t;
70
typedef char int8_t;
59
typedef unsigned char uint8_t;
71
typedef unsigned char uint8_t;
60
typedef signed __int64 int64_t;
72
typedef signed __int64 int64_t;
61
typedef unsigned __int64 uint64_t;
73
typedef unsigned __int64 uint64_t;
62
63
typedef DWORD thread_id_t;
64
typedef DWORD process_id_t;
65
66
#define REXXENTRY APIENTRY
67
68
#ifdef __cplusplus
69
extern "C" {
70
#endif
71
typedef size_t (REXXENTRY *REXXPFN)();
72
#ifdef __cplusplus
73
}
74
#endif
75
76
#ifndef SIZE_MAX
77
#define SIZE_MAX      (~((size_t)0))
78
#endif
79
#define SSIZE_MAX     ((ssize_t)(SIZE_MAX >> 1))
80
#define SSIZE_MIN     (~SSIZE_MAX - 1)
81
74
82
#define UINTPTR_MAX     (~((uintptr_t)0))
75
#define UINTPTR_MAX     (~((uintptr_t)0))
83
#define INTPTR_MAX      ((intptr_t)(UINTPTR_MAX >> 1))
76
#define INTPTR_MAX      ((intptr_t)(UINTPTR_MAX >> 1))
84
#define INTPTR_MIN      (~INTPTR_MAX)
77
#define INTPTR_MIN      (~INTPTR_MAX)
85
78
...
...
96
#define INT8_MIN        (~INT8_MAX)
89
#define INT8_MIN        (~INT8_MAX)
97
90
98
#define UINT64_MAX      (~((uint64_t)0))
91
#define UINT64_MAX      (~((uint64_t)0))
99
#define INT64_MAX       ((int64_t)(UINT64_MAX >> 1))
92
#define INT64_MAX       ((int64_t)(UINT64_MAX >> 1))
100
#define INT64_MIN       (~INT64_MAX)
93
#define INT64_MIN       (~INT64_MAX)
94
#endif
95
96
typedef DWORD thread_id_t;
97
typedef DWORD process_id_t;
98
99
#define REXXENTRY APIENTRY
100
101
#ifdef __cplusplus
102
extern "C" {
103
#endif
104
typedef size_t (REXXENTRY *REXXPFN)();
105
#ifdef __cplusplus
106
}
107
#endif
108
109
#ifndef SIZE_MAX
110
#define SIZE_MAX      (~((size_t)0))
111
#endif
112
113
#define SSIZE_MAX     ((ssize_t)(SIZE_MAX >> 1))
114
#define SSIZE_MIN     (~SSIZE_MAX - 1)
101
115
102
#define VLARexxEntry __cdecl           /* external entry points       */
116
#define VLARexxEntry __cdecl           /* external entry points       */
103
117
104
#endif /* REXXAPITYPES_INCLUDED */
118
#endif /* REXXAPITYPES_INCLUDED */
105
119