prtypes.h File Reference

#include <stddef.h>
#include <prtypes.h>
Include dependency graph for prtypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

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(x)   x
#define PR_UINT32(x)   x ## U
#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 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 char PRInt8
typedef unsigned short PRUint16
typedef short PRInt16
typedef unsigned int PRUint32
typedef int PRInt32
typedef PRInt64 PRUint64
typedef int PRIntn
typedef unsigned int PRUintn
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 long PRWord
typedef unsigned long PRUword

Enumerations

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

Variables

PR_BEGIN_EXTERN_C typedef
unsigned char 
PRUint8

Define Documentation

#define NSPR_API ( __type   )     PR_IMPORT(__type)

Definition at line 203 of file prtypes.h.

#define NSPR_BEGIN_EXTERN_C

Definition at line 488 of file prtypes.h.

#define NSPR_BEGIN_MACRO   do {

Definition at line 471 of file prtypes.h.

#define NSPR_DATA_API ( __type   )     PR_IMPORT_DATA(__type)

Definition at line 204 of file prtypes.h.

#define NSPR_END_EXTERN_C

Definition at line 489 of file prtypes.h.

#define NSPR_END_MACRO   } while (0)

Definition at line 472 of file prtypes.h.

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

Definition at line 251 of file prtypes.h.

#define PR_BEGIN_EXTERN_C

Definition at line 227 of file prtypes.h.

#define PR_BEGIN_MACRO   do {

Definition at line 214 of file prtypes.h.

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

Definition at line 237 of file prtypes.h.

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

Definition at line 238 of file prtypes.h.

#define PR_CALLBACK

Definition at line 193 of file prtypes.h.

#define PR_CALLBACK_DECL

Definition at line 194 of file prtypes.h.

#define PR_END_EXTERN_C

Definition at line 228 of file prtypes.h.

#define PR_END_MACRO   } while (0)

Definition at line 215 of file prtypes.h.

#define PR_EXPORT ( __type   )     extern PR_VISIBILITY_DEFAULT __type

Definition at line 184 of file prtypes.h.

#define PR_EXPORT_DATA ( __type   )     extern PR_VISIBILITY_DEFAULT __type

Definition at line 185 of file prtypes.h.

#define PR_EXTERN ( __type   )     extern PR_VISIBILITY_DEFAULT __type

Definition at line 189 of file prtypes.h.

#define PR_EXTERN_DATA ( __type   )     extern PR_VISIBILITY_DEFAULT __type

Definition at line 191 of file prtypes.h.

#define PR_FALSE   0
#define PR_IMPLEMENT ( __type   )     PR_VISIBILITY_DEFAULT __type

Definition at line 190 of file prtypes.h.

#define PR_IMPLEMENT_DATA ( __type   )     PR_VISIBILITY_DEFAULT __type

Definition at line 192 of file prtypes.h.

#define PR_IMPORT ( __type   )     extern PR_VISIBILITY_DEFAULT __type

Definition at line 186 of file prtypes.h.

#define PR_IMPORT_DATA ( __type   )     extern PR_VISIBILITY_DEFAULT __type

Definition at line 187 of file prtypes.h.

#define PR_INT16_MAX   32767

Definition at line 294 of file prtypes.h.

#define PR_INT16_MIN   (-32768)

Definition at line 295 of file prtypes.h.

#define PR_INT32 (  )     x

Definition at line 306 of file prtypes.h.

#define PR_INT32_MAX   PR_INT32(2147483647)

Definition at line 317 of file prtypes.h.

#define PR_INT32_MIN   (-PR_INT32_MAX - 1)

Definition at line 318 of file prtypes.h.

#define PR_INT8_MAX   127

Definition at line 273 of file prtypes.h.

#define PR_INT8_MIN   (-128)

Definition at line 274 of file prtypes.h.

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

Definition at line 250 of file prtypes.h.

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

Definition at line 249 of file prtypes.h.

#define PR_PUBLIC_API   PR_IMPLEMENT

Definition at line 465 of file prtypes.h.

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

Definition at line 248 of file prtypes.h.

#define PR_STATIC_CALLBACK ( __x   )     static __x

Definition at line 195 of file prtypes.h.

#define PR_TRUE   1
#define PR_UINT16_MAX   65535U

Definition at line 296 of file prtypes.h.

#define PR_UINT32 (  )     x ## U

Definition at line 307 of file prtypes.h.

#define PR_UINT32_MAX   PR_UINT32(4294967295)

Definition at line 319 of file prtypes.h.

#define PR_UINT8_MAX   255U

Definition at line 275 of file prtypes.h.

#define PR_VISIBILITY_DEFAULT

Definition at line 181 of file prtypes.h.


Typedef Documentation

typedef PRIntn PRBool

Definition at line 415 of file prtypes.h.

typedef double PRFloat64

Definition at line 373 of file prtypes.h.

typedef short PRInt16

Definition at line 284 of file prtypes.h.

typedef int PRInt32

Definition at line 305 of file prtypes.h.

typedef char PRInt8

Definition at line 263 of file prtypes.h.

typedef int PRIntn

Definition at line 365 of file prtypes.h.

Definition at line 388 of file prtypes.h.

Definition at line 389 of file prtypes.h.

Definition at line 425 of file prtypes.h.

typedef ptrdiff_t PRPtrdiff

Definition at line 397 of file prtypes.h.

typedef size_t PRSize

Definition at line 380 of file prtypes.h.

typedef unsigned short PRUint16

Definition at line 283 of file prtypes.h.

typedef unsigned int PRUint32

Definition at line 304 of file prtypes.h.

typedef PRInt64 PRUint64

Definition at line 353 of file prtypes.h.

typedef unsigned int PRUintn

Definition at line 366 of file prtypes.h.

typedef unsigned long PRUptrdiff

Definition at line 405 of file prtypes.h.

typedef unsigned long PRUword

Definition at line 454 of file prtypes.h.

typedef long PRWord

Definition at line 453 of file prtypes.h.


Enumeration Type Documentation

enum PRStatus
Enumerator:
PR_FAILURE 
PR_SUCCESS 

Definition at line 431 of file prtypes.h.

00431 { PR_FAILURE = -1, PR_SUCCESS = 0 } PRStatus;


Variable Documentation

PR_BEGIN_EXTERN_C typedef unsigned char PRUint8

Definition at line 262 of file prtypes.h.

Generated by  doxygen 1.6.2-20100208