summaryrefslogtreecommitdiffstats
path: root/PC/example_nt/example.c
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-09-10 20:02:14 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2015-09-10 20:02:14 (GMT)
commit018e380d55a5dbaa383deed6cdf9ba048e840416 (patch)
treed9a864fa3c1be75c31f6ff3bec6992641d7ee54d /PC/example_nt/example.c
parent6eb740b12a71b3bdb26524cfdc1dbd26cd3261a0 (diff)
parentb54a068204ab4ae62b05414d910313f7d732e416 (diff)
downloadcpython-018e380d55a5dbaa383deed6cdf9ba048e840416.zip
cpython-018e380d55a5dbaa383deed6cdf9ba048e840416.tar.gz
cpython-018e380d55a5dbaa383deed6cdf9ba048e840416.tar.bz2
Issue #25022: Merge with 3.4
Diffstat (limited to 'PC/example_nt/example.c')
-rw-r--r--PC/example_nt/example.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/PC/example_nt/example.c b/PC/example_nt/example.c
deleted file mode 100644
index 669d11b..0000000
--- a/PC/example_nt/example.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include "Python.h"
-
-static PyObject *
-ex_foo(PyObject *self, PyObject *args)
-{
- printf("Hello, world\n");
- Py_INCREF(Py_None);
- return Py_None;
-}
-
-static PyMethodDef example_methods[] = {
- {"foo", ex_foo, METH_VARARGS, "foo() doc string"},
- {NULL, NULL}
-};
-
-static struct PyModuleDef examplemodule = {
- PyModuleDef_HEAD_INIT,
- "example",
- "example module doc string",
- -1,
- example_methods,
- NULL,
- NULL,
- NULL,
- NULL
-};
-
-PyMODINIT_FUNC
-PyInit_example(void)
-{
- return PyModule_Create(&examplemodule);
-}