Commit 895aeffc authored by Maciej Fijalkowski's avatar Maciej Fijalkowski

fix a link and a function signature

parent 94f521c8
......@@ -9,7 +9,7 @@ extern "C" {
// call this first
char* rpython_startup_code(void);
void rpython_startup_code(void);
// pypy_init_threads has to be called in case you want to use threads
void pypy_init_threads(void);
......@@ -17,11 +17,11 @@ The resulting shared library has very few functions that are however enough
to make a full API working, provided you'll follow a few principles. The API
.. function:: char* rpython_startup_code(void);
.. function:: void rpython_startup_code(void);
This is a function that you have to call (once) before calling anything.
It initializes the RPython/PyPy GC and does a bunch of necessary startup
code. This function cannot fail and always returns NULL.
code. This function cannot fail.
.. function:: void pypy_init_threads(void);
......@@ -164,3 +164,4 @@ from the main thread) and call ``pypy_init_threads`` from the main thread.
.. _`cffi`:
.. _`uwsgi`:
.. _`PyPy uwsgi plugin`:
.. _`how to compile PyPy`: getting-started.html
......@@ -83,4 +83,4 @@ RPython_StartupCode = rffi.llexternal('RPython_StartupCode', [], lltype.Void,
@entrypoint('main', [], c_name='rpython_startup_code')
def rpython_startup_code():
return RPython_StartupCode()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment