579d0169 |
1 | # -*-pyrex-*- |
2 | # |
3 | # $Id$ |
4 | # |
5 | # Main driver for mLib module |
6 | # |
7 | # (c) 2005 Straylight/Edgeware |
8 | # |
9 | |
10 | #----- Licensing notice ----------------------------------------------------- |
11 | # |
12 | # This file is part of the Python interface to mLib. |
13 | # |
14 | # mLib/Python is free software; you can redistribute it and/or modify |
15 | # it under the terms of the GNU General Public License as published by |
16 | # the Free Software Foundation; either version 2 of the License, or |
17 | # (at your option) any later version. |
18 | # |
19 | # mLib/Python is distributed in the hope that it will be useful, |
20 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22 | # GNU General Public License for more details. |
23 | # |
24 | # You should have received a copy of the GNU General Public License |
25 | # along with mLib/Python; if not, write to the Free Software Foundation, |
26 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
27 | |
28 | #----- External stuff ------------------------------------------------------- |
29 | |
30 | include 'defs.pxi' |
31 | |
32 | #----- Various facilities --------------------------------------------------- |
33 | |
34 | # --- Internal utilities --- |
35 | |
36 | include 'utils.pyx' |
37 | |
38 | # --- Hashing --- |
39 | |
40 | include 'crc32.pyx' |
41 | include 'unihash.pyx' |
42 | |
43 | # --- Data structures --- |
44 | |
45 | include 'mapping.pyx' |
46 | include 'sym.pyx' |
47 | include 'atom.pyx' |
48 | include 'assoc.pyx' |
49 | |
50 | # --- Encodings --- |
51 | |
52 | include 'base64.pyx' |
53 | include 'base32.pyx' |
54 | include 'hex.pyx' |
55 | |
56 | # --- Error reporting --- |
57 | |
58 | include 'report.pyx' |
59 | |
60 | # --- Buffering --- |
61 | |
62 | include 'lbuf.pyx' |
63 | include 'pkbuf.pyx' |
64 | |
65 | # --- Select stuff --- |
66 | |
67 | include 'sel-base.pyx' |
68 | include 'sel-file.pyx' |
69 | include 'sel-timer.pyx' |
70 | include 'conn.pyx' |
71 | include 'bres.pyx' |
72 | include 'sig.pyx' |
73 | include 'selbuf.pyx' |
74 | include 'selpk.pyx' |
75 | include 'ident.pyx' |
76 | |
77 | #----- Set-up stuff --------------------------------------------------------- |
78 | |
79 | cdef object _tyobj(PyTypeObject *ty): |
80 | cdef PyObject *obj |
81 | obj = <PyObject *>ty |
82 | Py_INCREF(obj) |
83 | return <object>obj |
84 | |
85 | da_pysetup() |
86 | Array = _tyobj(&da_pytype) |
87 | ArrayIter = _tyobj(&daiter_pytype) |
88 | |
89 | atom_pysetup() |
90 | Atom = _tyobj(&atom_pytype) |
91 | |
92 | #----- That's all, folks ---------------------------------------------------- |