symbian-qemu-0.9.1-12/python-2.6.1/PC/example_nt/example.c
author andrew.jordan <>
Sun, 04 Jul 2010 21:24:40 +0100
changeset 84 9e90376dbd1e
parent 1 2fb8b9db1c86
permissions -rw-r--r--
Merge Merge latest defect fixes with NVM changes

#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}
};

PyMODINIT_FUNC
initexample(void)
{
	Py_InitModule("example", example_methods);
}