PyLucene 3.4.0-1 import
[pylucene.git] / jcc / _jcc / java / lang / __init__.cpp
1 /*
2  *   Licensed under the Apache License, Version 2.0 (the "License");
3  *   you may not use this file except in compliance with the License.
4  *   You may obtain a copy of the License at
5  *
6  *       http://www.apache.org/licenses/LICENSE-2.0
7  *
8  *   Unless required by applicable law or agreed to in writing, software
9  *   distributed under the License is distributed on an "AS IS" BASIS,
10  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11  *   See the License for the specific language governing permissions and
12  *   limitations under the License.
13  */
14
15 #include <Python.h>
16 #include "macros.h"
17
18 namespace java {
19     namespace lang {
20
21         extern PyTypeObject PY_TYPE(Object);
22         extern PyTypeObject PY_TYPE(String);
23         extern PyTypeObject PY_TYPE(Class);
24         extern PyTypeObject PY_TYPE(Throwable);
25         extern PyTypeObject PY_TYPE(Exception);
26         extern PyTypeObject PY_TYPE(RuntimeException);
27         extern PyTypeObject PY_TYPE(Boolean);
28         extern PyTypeObject PY_TYPE(Byte);
29         extern PyTypeObject PY_TYPE(Character);
30         extern PyTypeObject PY_TYPE(Integer);
31         extern PyTypeObject PY_TYPE(Double);
32         extern PyTypeObject PY_TYPE(Float);
33         extern PyTypeObject PY_TYPE(Long);
34         extern PyTypeObject PY_TYPE(Short);
35         
36         namespace reflect {
37             void __install__(PyObject *module);
38         }
39
40         void __install__(PyObject *m)
41         {
42             INSTALL_TYPE(Object, m);
43             INSTALL_TYPE(String, m);
44             INSTALL_TYPE(Class, m);
45             INSTALL_TYPE(Throwable, m);
46             INSTALL_TYPE(Exception, m);
47             INSTALL_TYPE(RuntimeException, m);
48             INSTALL_TYPE(Boolean, m);
49             INSTALL_TYPE(Byte, m);
50             INSTALL_TYPE(Character, m);
51             INSTALL_TYPE(Double, m);
52             INSTALL_TYPE(Float, m);
53             INSTALL_TYPE(Integer, m);
54             INSTALL_TYPE(Long, m);
55             INSTALL_TYPE(Short, m);
56             reflect::__install__(m);
57         }
58     }
59 }