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