kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 21f9c29f3149422ac0d3c860748a06ab79c2a42f
parent f56938283d60d65a727f91e444bbbb76209f5c43
Author: Joris Vink <joris@coders.se>
Date:   Wed, 25 Jan 2017 22:33:39 +0100

style + move pyhttp_dealloc() into !KORE_NO_HTTP.

Diffstat:
src/python.c | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/python.c b/src/python.c @@ -224,17 +224,19 @@ python_module_getsym(struct kore_module *module, const char *symbol) return (python_callable(module->handle, symbol)); } -static void pyhttp_dealloc(struct pyhttp_request *pyreq) +static void +pyconnection_dealloc(struct pyconnection *pyc) { - PyObject_Del((PyObject *)pyreq); + PyObject_Del((PyObject *)pyc); } -static void pyconnection_dealloc(struct pyconnection *pyc) +#if !defined(KORE_NO_HTTP) +static void +pyhttp_dealloc(struct pyhttp_request *pyreq) { - PyObject_Del((PyObject *)pyc); + PyObject_Del((PyObject *)pyreq); } -#if !defined(KORE_NO_HTTP) static int python_runtime_http_request(void *addr, struct http_request *req) {