PLplot
5.11.0
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
gcwmodule.c
Go to the documentation of this file.
1
// gcwmodule - Python wrapper for the gcw driver
2
//
3
// Copyright (C) 2004, 2005 Thomas J. Duck
4
// All rights reserved.
5
//
6
// Thomas J. Duck <tom.duck@dal.ca>
7
// Department of Physics and Atmospheric Science,
8
// Dalhousie University, Halifax, Nova Scotia, Canada, B3H 3J5
9
//
10
//
11
// NOTICE
12
//
13
// This library is free software; you can redistribute it and/or
14
// modify it under the terms of the GNU Lesser General Public
15
// License as published by the Free Software Foundation; either
16
// version 2.1 of the License, or (at your option) any later version.
17
//
18
// This library is distributed in the hope that it will be useful,
19
// but WITHOUT ANY WARRANTY; without even the implied warranty of
20
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21
// Lesser General Public License for more details.
22
//
23
// You should have received a copy of the GNU Lesser General Public
24
// License along with this library; if not, write to the Free Software
25
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
26
// USA
27
//
28
29
#include <pygobject.h>
30
31
#define PY_ARRAY_UNIQUE_SYMBOL gcwapi
32
#include "arrayobject.h"
33
34
void
gcw_register_classes
( PyObject *d );
35
extern
PyMethodDef
gcw_functions
[];
36
37
DL_EXPORT
(
void
)
38
initgcw
(
void
)
39
{
40
PyObject *m, *d;
41
42
init_pygobject();
43
44
m = Py_InitModule(
"gcw"
,
gcw_functions
);
45
d = PyModule_GetDict( m );
46
47
gcw_register_classes
( d );
48
49
import_array();
50
51
if
( PyErr_Occurred() )
52
{
53
Py_FatalError(
"can't initialise module gcw"
);
54
}
55
}
plplot_source
bindings
gnome2
python
gcwmodule.c
Generated on Sun Apr 12 2015 03:08:35 for PLplot by
1.8.1.2