Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r69557:cbcb6d0aaec7
Date: 2014-02-28 17:59 +0200
http://bitbucket.org/pypy/pypy/changeset/cbcb6d0aaec7/

Log:    fix a link and a function signature

diff --git a/include/PyPy.h b/include/PyPy.h
--- a/include/PyPy.h
+++ b/include/PyPy.h
@@ -9,7 +9,7 @@
 #endif
 
 // 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);
diff --git a/pypy/doc/embedding.rst b/pypy/doc/embedding.rst
--- a/pypy/doc/embedding.rst
+++ b/pypy/doc/embedding.rst
@@ -17,11 +17,11 @@
 to make a full API working, provided you'll follow a few principles. The API
 is:
 
-.. 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 @@
 .. _`cffi`: http://cffi.readthedocs.org/
 .. _`uwsgi`: http://uwsgi-docs.readthedocs.org/en/latest/
 .. _`PyPy uwsgi plugin`: http://uwsgi-docs.readthedocs.org/en/latest/PyPy.html
+.. _`how to compile PyPy`: getting-started.html
diff --git a/rpython/rlib/entrypoint.py b/rpython/rlib/entrypoint.py
--- a/rpython/rlib/entrypoint.py
+++ b/rpython/rlib/entrypoint.py
@@ -83,4 +83,4 @@
 
 @entrypoint('main', [], c_name='rpython_startup_code')
 def rpython_startup_code():
-    return RPython_StartupCode()
+    RPython_StartupCode()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to