Defines | Typedefs | Enumerations

prtypes.h File Reference

#include "prcpucfg.h"
#include <stddef.h>
#include "obsolete/protypes.h"
#include "prcpucfg.h"
#include "obsolete/protypes.h"
Include dependency graph for nspr/prtypes.h:
This graph shows which files directly or indirectly include this file:

Defines

#define PR_VISIBILITY_DEFAULT
#define PR_EXPORT(__type)   extern PR_VISIBILITY_DEFAULT __type
#define PR_EXPORT_DATA(__type)   extern PR_VISIBILITY_DEFAULT __type
#define PR_IMPORT(__type)   extern PR_VISIBILITY_DEFAULT __type
#define PR_IMPORT_DATA(__type)   extern PR_VISIBILITY_DEFAULT __type
#define PR_EXTERN(__type)   extern PR_VISIBILITY_DEFAULT __type
#define PR_IMPLEMENT(__type)   PR_VISIBILITY_DEFAULT __type
#define PR_EXTERN_DATA(__type)   extern PR_VISIBILITY_DEFAULT __type
#define PR_IMPLEMENT_DATA(__type)   PR_VISIBILITY_DEFAULT __type
#define PR_CALLBACK
#define PR_CALLBACK_DECL
#define PR_STATIC_CALLBACK(__x)   static __x
#define NSPR_API(__type)   PR_IMPORT(__type)
#define NSPR_DATA_API(__type)   PR_IMPORT_DATA(__type)
#define PR_BEGIN_MACRO   do {
#define PR_END_MACRO   } while (0)
#define PR_BEGIN_EXTERN_C
#define PR_END_EXTERN_C
#define PR_BIT(n)   ((PRUint32)1 << (n))
#define PR_BITMASK(n)   (PR_BIT(n) - 1)
#define PR_ROUNDUP(x, y)   ((((x)+((y)-1))/(y))*(y))
#define PR_MIN(x, y)   ((x)<(y)?(x):(y))
#define PR_MAX(x, y)   ((x)>(y)?(x):(y))
#define PR_ABS(x)   ((x)<0?-(x):(x))
#define PR_INT8_MAX   127
#define PR_INT8_MIN   (-128)
#define PR_UINT8_MAX   255U
#define PR_INT16_MAX   32767
#define PR_INT16_MIN   (-32768)
#define PR_UINT16_MAX   65535U
#define PR_INT32_MAX   PR_INT32(2147483647)
#define PR_INT32_MIN   (-PR_INT32_MAX - 1)
#define PR_UINT32_MAX   PR_UINT32(4294967295)
#define PR_TRUE   1
#define PR_FALSE   0
#define __PRUNICHAR__
#define PR_PUBLIC_API   PR_IMPLEMENT
#define NSPR_BEGIN_MACRO   do {
#define NSPR_END_MACRO   } while (0)
#define NSPR_BEGIN_EXTERN_C
#define NSPR_END_EXTERN_C
#define PR_STATIC_ASSERT(condition)   extern void pr_static_assert(int arg[(condition) ? 1 : -1])

Typedefs

typedef long long PRInt64
typedef unsigned long long PRUint64
typedef double PRFloat64
typedef size_t PRSize
typedef PRInt32 PROffset32
typedef PRInt64 PROffset64
typedef ptrdiff_t PRPtrdiff
typedef unsigned long PRUptrdiff
typedef PRIntn PRBool
typedef PRUint8 PRPackedBool
typedef PRUint16 PRUnichar
typedef long PRWord
typedef unsigned long PRUword

Enumerations

enum  PRStatus { PR_FAILURE = -1, PR_SUCCESS = 0, PR_FAILURE = -1, PR_SUCCESS = 0 }

Define Documentation

#define __PRUNICHAR__
#define NSPR_API (   __type  )     PR_IMPORT(__type)
#define NSPR_BEGIN_EXTERN_C
#define NSPR_BEGIN_MACRO   do {
#define NSPR_DATA_API (   __type  )     PR_IMPORT_DATA(__type)
#define NSPR_END_EXTERN_C
#define NSPR_END_MACRO   } while (0)
#define PR_ABS (   x  )     ((x)<0?-(x):(x))
#define PR_BEGIN_EXTERN_C
#define PR_BEGIN_MACRO   do {
#define PR_BIT (   n  )     ((PRUint32)1 << (n))
#define PR_BITMASK (   n  )     (PR_BIT(n) - 1)
#define PR_CALLBACK
#define PR_CALLBACK_DECL
#define PR_END_EXTERN_C
#define PR_END_MACRO   } while (0)
#define PR_EXPORT (   __type  )     extern PR_VISIBILITY_DEFAULT __type
#define PR_EXPORT_DATA (   __type  )     extern PR_VISIBILITY_DEFAULT __type
#define PR_EXTERN (   __type  )     extern PR_VISIBILITY_DEFAULT __type
#define PR_EXTERN_DATA (   __type  )     extern PR_VISIBILITY_DEFAULT __type
#define PR_FALSE   0
#define PR_IMPLEMENT (   __type  )     PR_VISIBILITY_DEFAULT __type
#define PR_IMPLEMENT_DATA (   __type  )     PR_VISIBILITY_DEFAULT __type
#define PR_IMPORT (   __type  )     extern PR_VISIBILITY_DEFAULT __type
#define PR_IMPORT_DATA (   __type  )     extern PR_VISIBILITY_DEFAULT __type
#define PR_INT16_MAX   32767
#define PR_INT16_MIN   (-32768)
#define PR_INT32_MAX   PR_INT32(2147483647)
#define PR_INT32_MIN   (-PR_INT32_MAX - 1)
#define PR_INT8_MAX   127
#define PR_INT8_MIN   (-128)
#define PR_MAX (   x,
  y 
)    ((x)>(y)?(x):(y))
#define PR_MIN (   x,
  y 
)    ((x)<(y)?(x):(y))
#define PR_PUBLIC_API   PR_IMPLEMENT
#define PR_ROUNDUP (   x,
  y 
)    ((((x)+((y)-1))/(y))*(y))
#define PR_STATIC_ASSERT (   condition  )     extern void pr_static_assert(int arg[(condition) ? 1 : -1])
#define PR_STATIC_CALLBACK (   __x  )     static __x
#define PR_TRUE   1
#define PR_UINT16_MAX   65535U
#define PR_UINT32_MAX   PR_UINT32(4294967295)
#define PR_UINT8_MAX   255U
#define PR_VISIBILITY_DEFAULT

Typedef Documentation

typedef PRIntn PRBool
typedef double PRFloat64
typedef long long PRInt64
typedef PRInt32 PROffset32
typedef PRUint8 PRPackedBool
typedef ptrdiff_t PRPtrdiff
typedef size_t PRSize
typedef unsigned long long PRUint64
typedef PRUint16 PRUnichar
typedef unsigned long PRUptrdiff
typedef unsigned long PRUword
typedef long PRWord

Enumeration Type Documentation

enum PRStatus
Enumerator:
PR_FAILURE 
PR_SUCCESS 
PR_FAILURE 
PR_SUCCESS