Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations | Variables
jspubtd.h File Reference
#include "jstypes.h"
#include "jscompat.h"
#include "jsproto.tbl"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  JSErrorFormatString

Defines

#define JSVERSION_IS_ECMA(version)   ((version) == JSVERSION_DEFAULT || (version) >= JSVERSION_1_3)
#define JS_PROTO(name, code, init)   JSProto_##name = code,
#define JSACC_TYPEMASK   (JSACC_WRITE - 1)

Typedefs

typedef int32 jsint
typedef uint32 jsuint
typedef float64 jsdouble
typedef jsword jsval
typedef jsword jsid
typedef int32 jsrefcount
typedef enum JSVersion JSVersion
typedef enum JSType JSType
typedef enum JSProtoKey JSProtoKey
typedef enum JSAccessMode JSAccessMode
typedef enum JSIterateOp JSIterateOp
typedef struct JSClass
typedef struct JSExtendedClass
typedef struct JSConstDoubleSpec
typedef struct JSContext
typedef struct JSErrorReport
typedef struct JSFunction
typedef struct JSFunctionSpec
typedef struct JSIdArray
typedef struct JSProperty
typedef struct JSPropertySpec
typedef struct JSObject
typedef struct JSObjectMap
typedef struct JSObjectOps
typedef struct JSXMLObjectOps
typedef struct JSRuntime
typedef struct JSScript
typedef struct JSStackFrame
typedef struct JSString
typedef struct JSXDRState
typedef struct JSExceptionState
typedef struct JSLocaleCallbacks
typedef JSBool(* JS_DLL_CALLBACK )(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
typedef enum JSContextOp JSContextOp
typedef enum JSGCStatus JSGCStatus
typedef enum JSExnType JSExnType
typedef struct JSErrorFormatString JSErrorFormatString
typedef struct JSPrincipals

Enumerations

enum  JSVersion {
  JSVERSION_1_0 = 100, JSVERSION_1_1 = 110, JSVERSION_1_2 = 120, JSVERSION_1_3 = 130,
  JSVERSION_1_4 = 140, JSVERSION_ECMA_3 = 148, JSVERSION_1_5 = 150, JSVERSION_1_6 = 160,
  JSVERSION_1_7 = 170, JSVERSION_DEFAULT = 0, JSVERSION_UNKNOWN = -1
}
enum  JSType {
  JSTYPE_VOID, JSTYPE_OBJECT, JSTYPE_FUNCTION, JSTYPE_STRING,
  JSTYPE_NUMBER, JSTYPE_BOOLEAN, JSTYPE_NULL, JSTYPE_XML,
  JSTYPE_LIMIT
}
enum  JSProtoKey { JSProto_LIMIT }
enum  JSAccessMode {
  JSACC_PROTO = 0, JSACC_PARENT = 1, JSACC_IMPORT = 2, JSACC_WATCH = 3,
  JSACC_READ = 4, JSACC_WRITE = 8, JSACC_LIMIT
}
enum  JSIterateOp { JSENUMERATE_INIT, JSENUMERATE_NEXT, JSENUMERATE_DESTROY }
enum  JSContextOp { JSCONTEXT_NEW, JSCONTEXT_DESTROY }
enum  JSGCStatus { JSGC_BEGIN, JSGC_END, JSGC_MARK_END, JSGC_FINALIZE_END }
enum  JSExnType {
  JSEXN_NONE = -1, JSEXN_ERR, JSEXN_INTERNALERR, JSEXN_EVALERR,
  JSEXN_RANGEERR, JSEXN_REFERENCEERR, JSEXN_SYNTAXERR, JSEXN_TYPEERR,
  JSEXN_URIERR, JSEXN_LIMIT
}

Variables

JS_BEGIN_EXTERN_C typedef uint16 jschar

Class Documentation

struct JSErrorFormatString

Definition at line 598 of file jspubtd.h.

Class Members
uint16 argCount
int16 exnType
const char * format

Define Documentation

#define JS_PROTO (   name,
  code,
  init 
)    JSProto_##name = code,

Definition at line 96 of file jspubtd.h.

Definition at line 113 of file jspubtd.h.

Definition at line 78 of file jspubtd.h.


Typedef Documentation

Definition at line 159 of file jspubtd.h.

typedef enum JSAccessMode JSAccessMode
typedef struct JSClass

Definition at line 126 of file jspubtd.h.

typedef struct JSConstDoubleSpec

Definition at line 128 of file jspubtd.h.

typedef struct JSContext

Definition at line 129 of file jspubtd.h.

typedef enum JSContextOp JSContextOp
typedef float64 jsdouble

Definition at line 54 of file jspubtd.h.

typedef struct JSErrorReport

Definition at line 130 of file jspubtd.h.

typedef struct JSExceptionState

Definition at line 146 of file jspubtd.h.

typedef enum JSExnType JSExnType
typedef struct JSExtendedClass

Definition at line 127 of file jspubtd.h.

typedef struct JSFunction

Definition at line 131 of file jspubtd.h.

typedef struct JSFunctionSpec

Definition at line 132 of file jspubtd.h.

typedef enum JSGCStatus JSGCStatus
typedef jsword jsid

Definition at line 56 of file jspubtd.h.

typedef struct JSIdArray

Definition at line 133 of file jspubtd.h.

typedef int32 jsint

Definition at line 52 of file jspubtd.h.

typedef enum JSIterateOp JSIterateOp
typedef struct JSLocaleCallbacks

Definition at line 147 of file jspubtd.h.

typedef struct JSObject

Definition at line 136 of file jspubtd.h.

typedef struct JSObjectMap

Definition at line 137 of file jspubtd.h.

typedef struct JSObjectOps

Definition at line 138 of file jspubtd.h.

typedef struct JSPrincipals

Definition at line 641 of file jspubtd.h.

typedef struct JSProperty

Definition at line 134 of file jspubtd.h.

typedef struct JSPropertySpec

Definition at line 135 of file jspubtd.h.

typedef enum JSProtoKey JSProtoKey
typedef int32 jsrefcount

Definition at line 57 of file jspubtd.h.

typedef struct JSRuntime

Definition at line 140 of file jspubtd.h.

typedef struct JSScript

Definition at line 142 of file jspubtd.h.

typedef struct JSStackFrame

Definition at line 143 of file jspubtd.h.

typedef struct JSString

Definition at line 144 of file jspubtd.h.

typedef enum JSType JSType
typedef uint32 jsuint

Definition at line 53 of file jspubtd.h.

typedef jsword jsval

Definition at line 55 of file jspubtd.h.

typedef enum JSVersion JSVersion
typedef struct JSXDRState

Definition at line 145 of file jspubtd.h.

typedef struct JSXMLObjectOps

Definition at line 139 of file jspubtd.h.


Enumeration Type Documentation

Enumerator:
JSACC_PROTO 
JSACC_PARENT 
JSACC_IMPORT 
JSACC_WATCH 
JSACC_READ 
JSACC_WRITE 
JSACC_LIMIT 

Definition at line 103 of file jspubtd.h.

                          {
    JSACC_PROTO  = 0,           /* XXXbe redundant w.r.t. id */
    JSACC_PARENT = 1,           /* XXXbe redundant w.r.t. id */
    JSACC_IMPORT = 2,           /* import foo.bar */
    JSACC_WATCH  = 3,           /* a watchpoint on object foo for id 'bar' */
    JSACC_READ   = 4,           /* a "get" of foo.bar */
    JSACC_WRITE  = 8,           /* a "set" of foo.bar = baz */
    JSACC_LIMIT
} JSAccessMode;
Enumerator:
JSCONTEXT_NEW 
JSCONTEXT_DESTROY 

Definition at line 542 of file jspubtd.h.

enum JSExnType
Enumerator:
JSEXN_NONE 
JSEXN_ERR 
JSEXN_INTERNALERR 
JSEXN_EVALERR 
JSEXN_RANGEERR 
JSEXN_REFERENCEERR 
JSEXN_SYNTAXERR 
JSEXN_TYPEERR 
JSEXN_URIERR 
JSEXN_LIMIT 

Definition at line 585 of file jspubtd.h.

enum JSGCStatus
Enumerator:
JSGC_BEGIN 
JSGC_END 
JSGC_MARK_END 
JSGC_FINALIZE_END 

Definition at line 563 of file jspubtd.h.

Enumerator:
JSENUMERATE_INIT 
JSENUMERATE_NEXT 
JSENUMERATE_DESTROY 

Definition at line 119 of file jspubtd.h.

                         {
    JSENUMERATE_INIT,       /* Create new iterator state */
    JSENUMERATE_NEXT,       /* Iterate once */
    JSENUMERATE_DESTROY     /* Destroy iterator state */
} JSIterateOp;
enum JSProtoKey
Enumerator:
JSProto_LIMIT 

Definition at line 95 of file jspubtd.h.

                        {
#define JS_PROTO(name,code,init) JSProto_##name = code,
#include "jsproto.tbl"
#undef JS_PROTO
    JSProto_LIMIT
} JSProtoKey;
enum JSType
Enumerator:
JSTYPE_VOID 
JSTYPE_OBJECT 
JSTYPE_FUNCTION 
JSTYPE_STRING 
JSTYPE_NUMBER 
JSTYPE_BOOLEAN 
JSTYPE_NULL 
JSTYPE_XML 
JSTYPE_LIMIT 

Definition at line 82 of file jspubtd.h.

                    {
    JSTYPE_VOID,                /* undefined */
    JSTYPE_OBJECT,              /* object */
    JSTYPE_FUNCTION,            /* function */
    JSTYPE_STRING,              /* string */
    JSTYPE_NUMBER,              /* number */
    JSTYPE_BOOLEAN,             /* boolean */
    JSTYPE_NULL,                /* null */
    JSTYPE_XML,                 /* xml object */
    JSTYPE_LIMIT
} JSType;
enum JSVersion
Enumerator:
JSVERSION_1_0 
JSVERSION_1_1 
JSVERSION_1_2 
JSVERSION_1_3 
JSVERSION_1_4 
JSVERSION_ECMA_3 
JSVERSION_1_5 
JSVERSION_1_6 
JSVERSION_1_7 
JSVERSION_DEFAULT 
JSVERSION_UNKNOWN 

Definition at line 64 of file jspubtd.h.


Variable Documentation

Definition at line 51 of file jspubtd.h.