aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Fijalkowski <fijall@gmail.com>2014-02-27 14:14:27 +0200
committerMaciej Fijalkowski <fijall@gmail.com>2014-02-27 14:14:27 +0200
commit66a7e2bd8b4edd3086c11f56c2982d7e16754e95 (patch)
tree1931d6ba0f543de2e3a8984aae06d49a07070497 /include
parentfix reshape with zero-sized array (diff)
downloadpypy-66a7e2bd8b4edd3086c11f56c2982d7e16754e95.tar.gz
pypy-66a7e2bd8b4edd3086c11f56c2982d7e16754e95.tar.bz2
pypy-66a7e2bd8b4edd3086c11f56c2982d7e16754e95.zip
fix those things (maybe?)
Diffstat (limited to 'include')
-rw-r--r--include/PyPy.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/PyPy.h b/include/PyPy.h
index b94fc890df..70e97e2ac5 100644
--- a/include/PyPy.h
+++ b/include/PyPy.h
@@ -8,16 +8,12 @@
extern "C" {
#endif
-/* You should call this first once. */
-#define pypy_init(need_threads) do { pypy_asm_stack_bottom(); \
-rpython_startup_code();\
- if (need_threads) pypy_init_threads(); } while (0)
+// call this first
+char* rpython_startup_code(void);
-// deprecated interface
-void rpython_startup_code(void);
+// pypy_init_threads has to be called in case you want to use threads
void pypy_init_threads(void);
-
/* Initialize the home directory of PyPy. It is necessary to call this.
Call it with "home" being the file name of the libpypy.so, for