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 | 31 | ###-------------------------------------------------------------------------- |
efb0bf0e MW |
32 | ### Testing stuff. |
33 | ||
34 | def refcount(object obj): | |
35 | return Py_REFCNT(<PyObject *>obj) | |
36 | ||
37 | ###-------------------------------------------------------------------------- | |
976d8e49 | 38 | ### Various facilities. |
579d0169 | 39 | |
5b1830f3 | 40 | ## Internal utilities. |
579d0169 | 41 | include 'utils.pyx' |
42 | ||
5b1830f3 | 43 | ## Hashing. |
579d0169 | 44 | include 'crc32.pyx' |
45 | include 'unihash.pyx' | |
46 | ||
5b1830f3 | 47 | ## Data structures. |
579d0169 | 48 | include 'mapping.pyx' |
49 | include 'sym.pyx' | |
50 | include 'atom.pyx' | |
51 | include 'assoc.pyx' | |
52 | ||
5b1830f3 | 53 | ## String utilities. |
965caf5f | 54 | include 'str.pyx' |
6a6bd8fa | 55 | |
5b1830f3 | 56 | ## Encodings. |
965caf5f MW |
57 | include 'codec.pyx' |
58 | include 'base64.pyx' | |
59 | include 'base32.pyx' | |
60 | include 'hex.pyx' | |
61 | include 'url.pyx' | |
579d0169 | 62 | |
5b1830f3 | 63 | ## Error reporting. |
965caf5f | 64 | include 'report.pyx' |
579d0169 | 65 | |
5b1830f3 | 66 | ## File utilities. |
965caf5f MW |
67 | include 'fwatch.pyx' |
68 | include 'fdutils.pyx' | |
69 | include 'mdup.pyx' | |
ae68e889 | 70 | |
5b1830f3 | 71 | ## Other useful stuff. |
803869bc | 72 | include 'stuff.pyx' |
ae68e889 | 73 | |
5b1830f3 | 74 | ## Buffering. |
803869bc | 75 | include 'lbuf.pyx' |
efb0bf0e | 76 | #include 'pkbuf.pyx' |
579d0169 | 77 | |
5b1830f3 | 78 | ## Select stuff. |
efb0bf0e MW |
79 | #include 'sel-base.pyx' |
80 | #include 'sel-file.pyx' | |
81 | #include 'sel-timer.pyx' | |
82 | #include 'conn.pyx' | |
83 | #include 'bres.pyx' | |
84 | #include 'sig.pyx' | |
85 | #include 'selbuf.pyx' | |
86 | #include 'selpk.pyx' | |
87 | #include 'ident.pyx' | |
579d0169 | 88 | |
976d8e49 MW |
89 | ###-------------------------------------------------------------------------- |
90 | ### Set-up stuff. | |
579d0169 | 91 | |
92 | cdef object _tyobj(PyTypeObject *ty): | |
93 | cdef PyObject *obj | |
94 | obj = <PyObject *>ty | |
95 | Py_INCREF(obj) | |
96 | return <object>obj | |
97 | ||
efb0bf0e MW |
98 | #da_pysetup() |
99 | #Array = _tyobj(&da_pytype) | |
100 | #ArrayIter = _tyobj(&daiter_pytype) | |
579d0169 | 101 | |
102 | atom_pysetup() | |
103 | Atom = _tyobj(&atom_pytype) | |
104 | ||
5b1830f3 | 105 | ###----- That's all, folks -------------------------------------------------- |