Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs
jstypes.h File Reference
#include <stddef.h>
#include "jsotypes.h"

Go to the source code of this file.

Classes

struct  JSInt64

Defines

#define JS_EXTERNAL_VIS
#define JS_EXTERN_API(__type)   extern JS_EXTERNAL_VIS __type
#define JS_EXPORT_API(__type)   JS_EXTERNAL_VIS __type
#define JS_EXTERN_DATA(__type)   extern JS_EXTERNAL_VIS __type
#define JS_EXPORT_DATA(__type)   JS_EXTERNAL_VIS __type
#define JS_DLL_CALLBACK
#define JS_STATIC_DLL_CALLBACK(__x)   static __x
#define JS_IMPORT_API(__x)   JS_EXPORT_API (__x)
#define JS_IMPORT_DATA(__x)   JS_EXPORT_DATA (__x)
#define JS_PUBLIC_API(t)   JS_IMPORT_API(t)
#define JS_PUBLIC_DATA(t)   JS_IMPORT_DATA(t)
#define JS_FRIEND_API(t)   JS_PUBLIC_API(t)
#define JS_FRIEND_DATA(t)   JS_PUBLIC_DATA(t)
#define JS_INLINE
#define JS_BEGIN_MACRO   do {
#define JS_END_MACRO   } while (0)
#define JS_BEGIN_EXTERN_C
#define JS_END_EXTERN_C
#define JS_BIT(n)   ((JSUint32)1 << (n))
#define JS_BITMASK(n)   (JS_BIT(n) - 1)
#define JS_PTR_TO_INT32(x)   ((jsint)((char *)(x) - (char *)0))
#define JS_PTR_TO_UINT32(x)   ((jsuint)((char *)(x) - (char *)0))
#define JS_INT32_TO_PTR(x)   ((void *)((char *)0 + (jsint)(x)))
#define JS_UINT32_TO_PTR(x)   ((void *)((char *)0 + (jsuint)(x)))
#define JS_HOWMANY(x, y)   (((x)+(y)-1)/(y))
#define JS_ROUNDUP(x, y)   (JS_HOWMANY(x,y)*(y))
#define JS_MIN(x, y)   ((x)<(y)?(x):(y))
#define JS_MAX(x, y)   ((x)>(y)?(x):(y))
#define JS_TRUE   (JSIntn)1
#define JS_FALSE   (JSIntn)0
#define JS_LIKELY(x)   (x)
#define JS_UNLIKELY(x)   (x)
#define JS_ARRAY_LENGTH(array)   (sizeof (array) / sizeof (array)[0])
#define JS_ARRAY_END(array)   ((array) + JS_ARRAY_LENGTH(array))

Typedefs

typedef JSInt64 JSUint64
typedef double JSFloat64
typedef size_t JSSize
typedef ptrdiff_t JSPtrdiff
typedef unsigned long JSUptrdiff
typedef JSIntn JSBool
typedef JSUint8 JSPackedBool
typedef long JSWord
typedef unsigned long JSUword

Class Documentation

struct JSInt64

Definition at line 325 of file jstypes.h.

Class Members
JSUint32 hi
JSUint32 lo

Define Documentation

Definition at line 460 of file jstypes.h.

#define JS_ARRAY_LENGTH (   array)    (sizeof (array) / sizeof (array)[0])

Definition at line 459 of file jstypes.h.

Definition at line 203 of file jstypes.h.

#define JS_BEGIN_MACRO   do {

Definition at line 190 of file jstypes.h.

#define JS_BIT (   n)    ((JSUint32)1 << (n))

Definition at line 213 of file jstypes.h.

#define JS_BITMASK (   n)    (JS_BIT(n) - 1)

Definition at line 214 of file jstypes.h.

Definition at line 133 of file jstypes.h.

Definition at line 204 of file jstypes.h.

#define JS_END_MACRO   } while (0)

Definition at line 191 of file jstypes.h.

#define JS_EXPORT_API (   __type)    JS_EXTERNAL_VIS __type

Definition at line 129 of file jstypes.h.

#define JS_EXPORT_DATA (   __type)    JS_EXTERNAL_VIS __type

Definition at line 131 of file jstypes.h.

#define JS_EXTERN_API (   __type)    extern JS_EXTERNAL_VIS __type

Definition at line 128 of file jstypes.h.

#define JS_EXTERN_DATA (   __type)    extern JS_EXTERNAL_VIS __type

Definition at line 130 of file jstypes.h.

Definition at line 125 of file jstypes.h.

#define JS_FALSE   (JSIntn)0

Definition at line 395 of file jstypes.h.

Definition at line 172 of file jstypes.h.

Definition at line 173 of file jstypes.h.

#define JS_HOWMANY (   x,
  y 
)    (((x)+(y)-1)/(y))

Definition at line 237 of file jstypes.h.

#define JS_IMPORT_API (   __x)    JS_EXPORT_API (__x)

Definition at line 147 of file jstypes.h.

#define JS_IMPORT_DATA (   __x)    JS_EXPORT_DATA (__x)

Definition at line 155 of file jstypes.h.

Definition at line 180 of file jstypes.h.

#define JS_INT32_TO_PTR (   x)    ((void *)((char *)0 + (jsint)(x)))

Definition at line 226 of file jstypes.h.

#define JS_LIKELY (   x)    (x)

Definition at line 438 of file jstypes.h.

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

Definition at line 240 of file jstypes.h.

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

Definition at line 239 of file jstypes.h.

#define JS_PTR_TO_INT32 (   x)    ((jsint)((char *)(x) - (char *)0))

Definition at line 224 of file jstypes.h.

#define JS_PTR_TO_UINT32 (   x)    ((jsuint)((char *)(x) - (char *)0))

Definition at line 225 of file jstypes.h.

Definition at line 168 of file jstypes.h.

Definition at line 169 of file jstypes.h.

#define JS_ROUNDUP (   x,
  y 
)    (JS_HOWMANY(x,y)*(y))

Definition at line 238 of file jstypes.h.

#define JS_STATIC_DLL_CALLBACK (   __x)    static __x

Definition at line 134 of file jstypes.h.

#define JS_TRUE   (JSIntn)1

Definition at line 394 of file jstypes.h.

#define JS_UINT32_TO_PTR (   x)    ((void *)((char *)0 + (jsuint)(x)))

Definition at line 227 of file jstypes.h.

#define JS_UNLIKELY (   x)    (x)

Definition at line 439 of file jstypes.h.


Typedef Documentation

typedef JSIntn JSBool

Definition at line 393 of file jstypes.h.

typedef double JSFloat64

Definition at line 356 of file jstypes.h.

typedef JSUint8 JSPackedBool

Definition at line 403 of file jstypes.h.

Definition at line 371 of file jstypes.h.

typedef size_t JSSize

Definition at line 363 of file jstypes.h.

typedef JSInt64 JSUint64

Definition at line 332 of file jstypes.h.

typedef unsigned long JSUptrdiff

Definition at line 382 of file jstypes.h.

typedef unsigned long JSUword

Definition at line 413 of file jstypes.h.

typedef long JSWord

Definition at line 412 of file jstypes.h.