comparison Python/pythonrun.c @ 37655:2f3f2e32dfd9 legacy-trunk

spread the extern "C" { } magic pixie dust around. Python itself builds now using a C++ compiler. Still lots and lots of errors in the modules built by setup.py, and a bunch of warnings from g++ in the core.
author Anthony Baxter <anthonybaxter@gmail.com>
date Thu, 13 Apr 2006 02:06:09 +0000
parents 65ecb83ea7dd
children d82dced6f1fa
comparison
equal deleted inserted replaced
37654:dec259e4d891 37655:2f3f2e32dfd9
33 #define PRINT_TOTAL_REFS() 33 #define PRINT_TOTAL_REFS()
34 #else /* Py_REF_DEBUG */ 34 #else /* Py_REF_DEBUG */
35 #define PRINT_TOTAL_REFS() fprintf(stderr, \ 35 #define PRINT_TOTAL_REFS() fprintf(stderr, \
36 "[%" PY_FORMAT_SIZE_T "d refs]\n", \ 36 "[%" PY_FORMAT_SIZE_T "d refs]\n", \
37 _Py_GetRefTotal()) 37 _Py_GetRefTotal())
38 #endif
39
40 #ifdef __cplusplus
41 extern "C" {
38 #endif 42 #endif
39 43
40 extern char *Py_GetPath(void); 44 extern char *Py_GetPath(void);
41 45
42 extern grammar _PyParser_Grammar; /* From graminit.c */ 46 extern grammar _PyParser_Grammar; /* From graminit.c */
1690 node * 1694 node *
1691 PyParser_SimpleParseString(const char *str, int start) 1695 PyParser_SimpleParseString(const char *str, int start)
1692 { 1696 {
1693 return PyParser_SimpleParseStringFlags(str, start, 0); 1697 return PyParser_SimpleParseStringFlags(str, start, 0);
1694 } 1698 }
1699
1700 #ifdef __cplusplus
1701 }
1702 #endif
1703