1 : /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 : * vim: set sw=4 ts=8 et tw=80 ft=c:
3 : *
4 : * ***** BEGIN LICENSE BLOCK *****
5 : * Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 : *
7 : * The contents of this file are subject to the Mozilla Public License Version
8 : * 1.1 (the "License"); you may not use this file except in compliance with
9 : * the License. You may obtain a copy of the License at
10 : * http://www.mozilla.org/MPL/
11 : *
12 : * Software distributed under the License is distributed on an "AS IS" basis,
13 : * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14 : * for the specific language governing rights and limitations under the
15 : * License.
16 : *
17 : * The Original Code is SpiderMonkey 1.7 work in progress, released
18 : * February 14, 2006.
19 : *
20 : * The Initial Developer of the Original Code is
21 : * Brendan Eich <brendan@mozilla.org>
22 : *
23 : * Contributor(s):
24 : *
25 : * Alternatively, the contents of this file may be used under the terms of
26 : * either of the GNU General Public License Version 2 or later (the "GPL"),
27 : * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 : * in which case the provisions of the GPL or the LGPL are applicable instead
29 : * of those above. If you wish to allow use of your version of this file only
30 : * under the terms of either the GPL or the LGPL, and not to allow others to
31 : * use your version of this file under the terms of the MPL, indicate your
32 : * decision by deleting the provisions above and replace them with the notice
33 : * and other provisions required by the GPL or the LGPL. If you do not delete
34 : * the provisions above, a recipient may use your version of this file under
35 : * the terms of any one of the MPL, the GPL or the LGPL.
36 : *
37 : * ***** END LICENSE BLOCK ***** */
38 :
39 : #include "jsversion.h"
40 :
41 : #if JS_HAS_XML_SUPPORT
42 : # define XML_INIT js_InitXMLClass
43 : # define NAMESPACE_INIT js_InitNamespaceClass
44 : # define QNAME_INIT js_InitQNameClass
45 : # define XMLFILTER_INIT js_InitXMLFilterClass
46 : #else
47 : # define XML_INIT js_InitNullClass
48 : # define NAMESPACE_INIT js_InitNullClass
49 : # define QNAME_INIT js_InitNullClass
50 : # define XMLFILTER_INIT js_InitNullClass
51 : #endif
52 :
53 : /*
54 : * Enumerator codes in the second column must not change -- they are part of
55 : * the JS XDR API. Client modules including jsproto.tbl should consider
56 : * wrapping the inclusion with JS_BEGIN_EXTERN_C and JS_END_EXTERN_C.
57 : */
58 5940 : JS_PROTO(Null, 0, js_InitNullClass)
59 5940 : JS_PROTO(Object, 1, js_InitObjectClass)
60 5400 : JS_PROTO(Function, 2, js_InitFunctionClass)
61 4860 : JS_PROTO(Array, 3, js_InitArrayClass)
62 4320 : JS_PROTO(Boolean, 4, js_InitBooleanClass)
63 4320 : JS_PROTO(JSON, 5, js_InitJSONClass)
64 4320 : JS_PROTO(Date, 6, js_InitDateClass)
65 4320 : JS_PROTO(Math, 7, js_InitMathClass)
66 4320 : JS_PROTO(Number, 8, js_InitNumberClass)
67 4320 : JS_PROTO(String, 9, js_InitStringClass)
68 4320 : JS_PROTO(RegExp, 10, js_InitRegExpClass)
69 4320 : JS_PROTO(XML, 11, XML_INIT)
70 4320 : JS_PROTO(Namespace, 12, NAMESPACE_INIT)
71 4320 : JS_PROTO(QName, 13, QNAME_INIT)
72 4320 : JS_PROTO(Error, 14, js_InitExceptionClasses)
73 4320 : JS_PROTO(InternalError, 15, js_InitExceptionClasses)
74 4320 : JS_PROTO(EvalError, 16, js_InitExceptionClasses)
75 4320 : JS_PROTO(RangeError, 17, js_InitExceptionClasses)
76 4320 : JS_PROTO(ReferenceError, 18, js_InitExceptionClasses)
77 4320 : JS_PROTO(SyntaxError, 19, js_InitExceptionClasses)
78 4320 : JS_PROTO(TypeError, 20, js_InitExceptionClasses)
79 4320 : JS_PROTO(URIError, 21, js_InitExceptionClasses)
80 4320 : JS_PROTO(Iterator, 22, js_InitIteratorClasses)
81 4320 : JS_PROTO(StopIteration, 23, js_InitIteratorClasses)
82 4320 : JS_PROTO(ArrayBuffer, 24, js_InitTypedArrayClasses)
83 4320 : JS_PROTO(Int8Array, 25, js_InitTypedArrayClasses)
84 4320 : JS_PROTO(Uint8Array, 26, js_InitTypedArrayClasses)
85 4320 : JS_PROTO(Int16Array, 27, js_InitTypedArrayClasses)
86 4320 : JS_PROTO(Uint16Array, 28, js_InitTypedArrayClasses)
87 4320 : JS_PROTO(Int32Array, 29, js_InitTypedArrayClasses)
88 4320 : JS_PROTO(Uint32Array, 30, js_InitTypedArrayClasses)
89 4320 : JS_PROTO(Float32Array, 31, js_InitTypedArrayClasses)
90 4320 : JS_PROTO(Float64Array, 32, js_InitTypedArrayClasses)
91 4320 : JS_PROTO(Uint8ClampedArray, 33, js_InitTypedArrayClasses)
92 4320 : JS_PROTO(Proxy, 34, js_InitProxyClass)
93 4320 : JS_PROTO(AnyName, 35, js_InitNullClass)
94 4320 : JS_PROTO(WeakMap, 36, js_InitWeakMapClass)
95 4320 : JS_PROTO(Map, 37, js_InitMapClass)
96 3960 : JS_PROTO(Set, 38, js_InitSetClass)
97 :
98 : #undef XML_INIT
99 : #undef NAMESPACE_INIT
100 : #undef QNAME_INIT
|