Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations
prtypes.h File Reference
#include "prcpucfg.h"
#include <stddef.h>
#include "obsolete/protypes.h"

Go to the source code of this file.

Classes

struct  PRInt64

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

Typedefs

typedef PRInt64 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 }

Class Documentation

struct PRInt64

Definition at line 382 of file prtypes.h.

Class Members
PRUint32 hi
PRUint32 lo

Define Documentation

Definition at line 474 of file prtypes.h.

#define NSPR_API (   __type)    PR_IMPORT(__type)

Definition at line 208 of file prtypes.h.

Definition at line 528 of file prtypes.h.

Definition at line 511 of file prtypes.h.

#define NSPR_DATA_API (   __type)    PR_IMPORT_DATA(__type)

Definition at line 209 of file prtypes.h.

Definition at line 529 of file prtypes.h.

Definition at line 512 of file prtypes.h.

#define PR_ABS (   x)    ((x)<0?-(x):(x))

Definition at line 256 of file prtypes.h.

Definition at line 232 of file prtypes.h.

#define PR_BEGIN_MACRO   do {

Definition at line 219 of file prtypes.h.

#define PR_BIT (   n)    ((PRUint32)1 << (n))

Definition at line 242 of file prtypes.h.

#define PR_BITMASK (   n)    (PR_BIT(n) - 1)

Definition at line 243 of file prtypes.h.

Definition at line 198 of file prtypes.h.

Definition at line 199 of file prtypes.h.

Definition at line 233 of file prtypes.h.

#define PR_END_MACRO   } while (0)

Definition at line 220 of file prtypes.h.

#define PR_EXPORT (   __type)    extern PR_VISIBILITY_DEFAULT __type

Definition at line 189 of file prtypes.h.

#define PR_EXPORT_DATA (   __type)    extern PR_VISIBILITY_DEFAULT __type

Definition at line 190 of file prtypes.h.

#define PR_EXTERN (   __type)    extern PR_VISIBILITY_DEFAULT __type

Definition at line 194 of file prtypes.h.

#define PR_EXTERN_DATA (   __type)    extern PR_VISIBILITY_DEFAULT __type

Definition at line 196 of file prtypes.h.

#define PR_FALSE   0

Definition at line 457 of file prtypes.h.

#define PR_IMPLEMENT (   __type)    PR_VISIBILITY_DEFAULT __type

Definition at line 195 of file prtypes.h.

#define PR_IMPLEMENT_DATA (   __type)    PR_VISIBILITY_DEFAULT __type

Definition at line 197 of file prtypes.h.

#define PR_IMPORT (   __type)    extern PR_VISIBILITY_DEFAULT __type

Definition at line 191 of file prtypes.h.

#define PR_IMPORT_DATA (   __type)    extern PR_VISIBILITY_DEFAULT __type

Definition at line 192 of file prtypes.h.

#define PR_INT16_MAX   32767

Definition at line 321 of file prtypes.h.

#define PR_INT16_MIN   (-32768)

Definition at line 322 of file prtypes.h.

#define PR_INT32_MAX   PR_INT32(2147483647)

Definition at line 353 of file prtypes.h.

Definition at line 354 of file prtypes.h.

#define PR_INT8_MAX   127

Definition at line 296 of file prtypes.h.

#define PR_INT8_MIN   (-128)

Definition at line 297 of file prtypes.h.

#define PR_MAX (   x,
  y 
)    ((x)>(y)?(x):(y))

Definition at line 255 of file prtypes.h.

#define PR_MIN (   x,
  y 
)    ((x)<(y)?(x):(y))

Definition at line 254 of file prtypes.h.

Definition at line 505 of file prtypes.h.

#define PR_ROUNDUP (   x,
  y 
)    ((((x)+((y)-1))/(y))*(y))

Definition at line 253 of file prtypes.h.

#define PR_STATIC_CALLBACK (   __x)    static __x

Definition at line 200 of file prtypes.h.

#define PR_TRUE   1

Definition at line 456 of file prtypes.h.

#define PR_UINT16_MAX   65535U

Definition at line 323 of file prtypes.h.

#define PR_UINT32_MAX   PR_UINT32(4294967295)

Definition at line 355 of file prtypes.h.

#define PR_UINT8_MAX   255U

Definition at line 298 of file prtypes.h.

Definition at line 186 of file prtypes.h.


Typedef Documentation

typedef PRIntn PRBool

Definition at line 455 of file prtypes.h.

typedef double PRFloat64

Definition at line 413 of file prtypes.h.

Definition at line 428 of file prtypes.h.

Definition at line 429 of file prtypes.h.

Definition at line 465 of file prtypes.h.

Definition at line 437 of file prtypes.h.

typedef size_t PRSize

Definition at line 420 of file prtypes.h.

typedef PRInt64 PRUint64

Definition at line 389 of file prtypes.h.

Definition at line 478 of file prtypes.h.

typedef unsigned long PRUptrdiff

Definition at line 445 of file prtypes.h.

typedef unsigned long PRUword

Definition at line 494 of file prtypes.h.

typedef long PRWord

Definition at line 493 of file prtypes.h.


Enumeration Type Documentation

enum PRStatus
Enumerator:
PR_FAILURE 
PR_SUCCESS 

Definition at line 471 of file prtypes.h.