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