Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Macros | Typedefs
pyport.h File Reference
#include "pyconfig.h"
#include <inttypes.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include <time.h>
#include <sys/select.h>
#include <sys/stat.h>

Go to the source code of this file.

Macros

#define Py_PROTO(x)   x
 
#define Py_FPROTO(x)   Py_PROTO(x)
 
#define PY_LONG_LONG   long long
 
#define PY_ULLONG_MAX   (~0ULL)
 
#define PY_LLONG_MAX   ((long long)(PY_ULLONG_MAX>>1))
 
#define PY_LLONG_MIN   (-PY_LLONG_MAX-1)
 
#define PY_UINT32_T   uint32_t
 
#define PY_UINT64_T   uint64_t
 
#define PY_INT32_T   int32_t
 
#define PY_INT64_T   int64_t
 
#define PYLONG_BITS_IN_DIGIT   30
 
#define PY_SIZE_MAX   ((size_t)-1)
 
#define PY_SSIZE_T_MAX   ((Py_ssize_t)(((size_t)-1)>>1))
 
#define PY_SSIZE_T_MIN   (-PY_SSIZE_T_MAX-1)
 
#define Py_LOCAL(type)   static type
 
#define Py_LOCAL_INLINE(type)   static type
 
#define Py_MEMCPY   memcpy
 
#define HAVE_STAT
 
#define HAVE_FSTAT
 
#define S_ISREG(x)   (((x) & S_IFMT) == S_IFREG)
 
#define S_ISDIR(x)   (((x) & S_IFMT) == S_IFDIR)
 
#define Py_ARITHMETIC_RIGHT_SHIFT(TYPE, I, J)   ((I) >> (J))
 
#define Py_FORCE_EXPANSION(X)   X
 
#define Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW)   (NARROW)(VALUE)
 
#define _Py_SET_EDOM_FOR_NAN(X)   ;
 
#define Py_SET_ERRNO_ON_MATH_ERROR(X)
 
#define Py_SET_ERANGE_IF_OVERFLOW(X)   Py_SET_ERRNO_ON_MATH_ERROR(X)
 
#define Py_ADJUST_ERANGE1(X)
 
#define Py_ADJUST_ERANGE2(X, Y)
 
#define HAVE_PY_SET_53BIT_PRECISION   1
 
#define _Py_SET_53BIT_PRECISION_HEADER   unsigned short old_387controlword, new_387controlword
 
#define _Py_SET_53BIT_PRECISION_START
 
#define _Py_SET_53BIT_PRECISION_END
 
#define Py_DEPRECATED(VERSION_UNUSED)
 
#define PyAPI_FUNC(RTYPE)   RTYPE
 
#define PyAPI_DATA(RTYPE)   extern RTYPE
 
#define PyMODINIT_FUNC   void
 
#define DL_EXPORT(RTYPE)   RTYPE
 
#define DL_IMPORT(RTYPE)   RTYPE
 
#define INT_MAX   2147483647
 
#define LONG_MAX   0X7FFFFFFFFFFFFFFFL
 
#define LONG_MIN   (-LONG_MAX-1)
 
#define LONG_BIT   (8 * SIZEOF_LONG)
 
#define Py_GCC_ATTRIBUTE(x)
 
#define Py_FORMAT_PARSETUPLE(func, p1, p2)
 
#define Py_ALIGNED(x)
 
#define Py_LL(x)   x##LL
 
#define Py_ULL(x)   Py_LL(x##U)
 

Typedefs

typedef uintptr_t Py_uintptr_t
 
typedef intptr_t Py_intptr_t
 
typedef ssize_t Py_ssize_t
 

Macro Definition Documentation

#define _Py_SET_53BIT_PRECISION_END
Value:
if (new_387controlword != old_387controlword) \
_Py_set_387controlword(old_387controlword)
#define _Py_SET_53BIT_PRECISION_HEADER   unsigned short old_387controlword, new_387controlword
#define _Py_SET_53BIT_PRECISION_START
Value:
do { \
old_387controlword = _Py_get_387controlword(); \
new_387controlword = (old_387controlword & ~0x0f00) | 0x0200; \
if (new_387controlword != old_387controlword) \
_Py_set_387controlword(new_387controlword); \
} while (0)
#define _Py_SET_EDOM_FOR_NAN (   X)    ;
#define DL_EXPORT (   RTYPE)    RTYPE
#define DL_IMPORT (   RTYPE)    RTYPE
#define HAVE_FSTAT
#define HAVE_PY_SET_53BIT_PRECISION   1
#define HAVE_STAT
#define INT_MAX   2147483647
#define LONG_BIT   (8 * SIZEOF_LONG)
#define LONG_MAX   0X7FFFFFFFFFFFFFFFL
#define LONG_MIN   (-LONG_MAX-1)
#define Py_ADJUST_ERANGE1 (   X)
Value:
do { \
if (errno == 0) { \
if ((X) == Py_HUGE_VAL || (X) == -Py_HUGE_VAL) \
errno = ERANGE; \
} \
else if (errno == ERANGE && (X) == 0.0) \
errno = 0; \
} while(0)
#define Py_ADJUST_ERANGE2 (   X,
 
)
Value:
do { \
if ((X) == Py_HUGE_VAL || (X) == -Py_HUGE_VAL || \
(Y) == Py_HUGE_VAL || (Y) == -Py_HUGE_VAL) { \
if (errno == 0) \
errno = ERANGE; \
} \
else if (errno == ERANGE) \
errno = 0; \
} while(0)
#define Py_ALIGNED (   x)
#define Py_ARITHMETIC_RIGHT_SHIFT (   TYPE,
  I,
 
)    ((I) >> (J))
#define Py_DEPRECATED (   VERSION_UNUSED)
#define Py_FORCE_EXPANSION (   X)    X
#define Py_FORMAT_PARSETUPLE (   func,
  p1,
  p2 
)
#define Py_FPROTO (   x)    Py_PROTO(x)
#define Py_GCC_ATTRIBUTE (   x)
#define PY_INT32_T   int32_t
#define PY_INT64_T   int64_t
#define Py_LL (   x)    x##LL
#define PY_LLONG_MAX   ((long long)(PY_ULLONG_MAX>>1))
#define PY_LLONG_MIN   (-PY_LLONG_MAX-1)
#define Py_LOCAL (   type)    static type
#define Py_LOCAL_INLINE (   type)    static type
#define PY_LONG_LONG   long long
#define Py_MEMCPY   memcpy
#define Py_PROTO (   x)    x
#define Py_SAFE_DOWNCAST (   VALUE,
  WIDE,
  NARROW 
)    (NARROW)(VALUE)
#define Py_SET_ERANGE_IF_OVERFLOW (   X)    Py_SET_ERRNO_ON_MATH_ERROR(X)
#define Py_SET_ERRNO_ON_MATH_ERROR (   X)
Value:
do { \
if (errno == 0) { \
if ((X) == Py_HUGE_VAL || (X) == -Py_HUGE_VAL) \
errno = ERANGE; \
} \
} while(0)
#define PY_SIZE_MAX   ((size_t)-1)
#define PY_SSIZE_T_MAX   ((Py_ssize_t)(((size_t)-1)>>1))
#define PY_SSIZE_T_MIN   (-PY_SSIZE_T_MAX-1)
#define PY_UINT32_T   uint32_t
#define PY_UINT64_T   uint64_t
#define Py_ULL (   x)    Py_LL(x##U)
#define PY_ULLONG_MAX   (~0ULL)
#define PyAPI_DATA (   RTYPE)    extern RTYPE
#define PyAPI_FUNC (   RTYPE)    RTYPE
#define PYLONG_BITS_IN_DIGIT   30
#define PyMODINIT_FUNC   void
#define S_ISDIR (   x)    (((x) & S_IFMT) == S_IFDIR)
#define S_ISREG (   x)    (((x) & S_IFMT) == S_IFREG)

Typedef Documentation

typedef intptr_t Py_intptr_t
typedef uintptr_t Py_uintptr_t

Copyright 2014 Google Inc. All rights reserved.