FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/pythonnet/src/monoclr/clrmod.c at develop · chid/pythonnet · GitHub
chid
pythonnet
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
pythonnet
/
src
/
monoclr
/
clrmod.c
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (37 loc) · 1.4 KB
Breadcrumbs
pythonnet
/
pythonnet
/
src
/
monoclr
/
clrmod.c
Copy path
File metadata and controls
45 lines (37 loc) · 1.4 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// ==========================================================================
// This software is subject to the provisions of the Zope Public License,
// Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
// THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
// WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
// FOR A PARTICULAR PURPOSE.
// ==========================================================================
//
// Author: Christian Heimes <christian(at)cheimes(dot)de>
#include
"pynetclr.h"
/* List of functions defined in the module */
static
PyMethodDef
clr_methods
[]
=
{
{
NULL
,
NULL
,
0
,
NULL
}
/* Sentinel */
};
PyDoc_STRVAR
(
clr_module_doc
,
"clr facade module to initialize the CLR. It's later "
"replaced by the real clr module. This module has a facade "
"attribute to make it distinguishable from the real clr module."
);
static
PyNet_Args
*
pn_args
;
char
*
*
environ
=
NULL
;
PyMODINIT_FUNC
initclr
(
void
)
{
PyObject
*
m
;
/* Create the module and add the functions */
m
=
Py_InitModule3
(
"clr"
,
clr_methods
,
clr_module_doc
);
if
(
m
==
NULL
)
return
;
PyModule_AddObject
(
m
,
"facade"
,
Py_True
);
Py_INCREF
(
Py_True
);
pn_args
=
PyNet_Init
(
0
);
if
(
pn_args
->
error
) {
return
;
}
}
Back
|
FazBrowse Home
|
New Git URL