Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 37845:35f27bbd9ad8 legacy-trunk
Change those parts of the Python-api that were functions in 2.4, and
are now macros to exported functions again.
Fixes [ 1465834 ] bdist_wininst preinstall script support is broken in 2.5a1.
| author | Thomas Heller <theller@ctypes.org> |
|---|---|
| date | Tue, 18 Apr 2006 18:51:06 +0000 |
| parents | d82dced6f1fa |
| children | 4c0823f0a0a1 |
comparison
equal
deleted
inserted
replaced
| 37844:8725b907acbb | 37845:35f27bbd9ad8 |
|---|---|
| 1688 } | 1688 } |
| 1689 | 1689 |
| 1690 /* Deprecated C API functions still provided for binary compatiblity */ | 1690 /* Deprecated C API functions still provided for binary compatiblity */ |
| 1691 | 1691 |
| 1692 #undef PyParser_SimpleParseFile | 1692 #undef PyParser_SimpleParseFile |
| 1693 PyAPI_FUNC(node *) | |
| 1694 PyParser_SimpleParseFile(FILE *fp, const char *filename, int start) | |
| 1695 { | |
| 1696 return PyParser_SimpleParseFileFlags(fp, filename, start, 0); | |
| 1697 } | |
| 1698 | |
| 1693 #undef PyParser_SimpleParseString | 1699 #undef PyParser_SimpleParseString |
| 1694 | 1700 PyAPI_FUNC(node *) |
| 1695 node * | |
| 1696 PyParser_SimpleParseFile(FILE *fp, const char *filename, int start) | |
| 1697 { | |
| 1698 return PyParser_SimpleParseFileFlags(fp, filename, start, 0); | |
| 1699 } | |
| 1700 | |
| 1701 node * | |
| 1702 PyParser_SimpleParseString(const char *str, int start) | 1701 PyParser_SimpleParseString(const char *str, int start) |
| 1703 { | 1702 { |
| 1704 return PyParser_SimpleParseStringFlags(str, start, 0); | 1703 return PyParser_SimpleParseStringFlags(str, start, 0); |
| 1705 } | 1704 } |
| 1706 | 1705 |
| 1706 #undef PyRun_AnyFile | |
| 1707 PyAPI_FUNC(int) | |
| 1708 PyRun_AnyFile(FILE *fp, const char *name) | |
| 1709 { | |
| 1710 return PyRun_AnyFileExFlags(fp, name, 0, NULL); | |
| 1711 } | |
| 1712 | |
| 1713 #undef PyRun_AnyFileEx | |
| 1714 PyAPI_FUNC(int) | |
| 1715 PyRun_AnyFileEx(FILE *fp, const char *name, int closeit) | |
| 1716 { | |
| 1717 return PyRun_AnyFileExFlags(fp, name, closeit, NULL); | |
| 1718 } | |
| 1719 | |
| 1720 #undef PyRun_AnyFileFlags | |
| 1721 PyAPI_FUNC(int) | |
| 1722 PyRun_AnyFileFlags(FILE *fp, const char *name, PyCompilerFlags *flags) | |
| 1723 { | |
| 1724 return PyRun_AnyFileExFlags(fp, name, 0, flags); | |
| 1725 } | |
| 1726 | |
| 1727 #undef PyRun_File | |
| 1728 PyAPI_FUNC(PyObject *) | |
| 1729 PyRun_File(FILE *fp, const char *p, int s, PyObject *g, PyObject *l) | |
| 1730 { | |
| 1731 return PyRun_FileExFlags(fp, p, s, g, l, 0, NULL); | |
| 1732 } | |
| 1733 | |
| 1734 #undef PyRun_FileEx | |
| 1735 PyAPI_FUNC(PyObject *) | |
| 1736 PyRun_FileEx(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, int c) | |
| 1737 { | |
| 1738 return PyRun_FileExFlags(fp, p, s, g, l, c, NULL); | |
| 1739 } | |
| 1740 | |
| 1741 #undef PyRun_FileFlags | |
| 1742 PyAPI_FUNC(PyObject *) | |
| 1743 PyRun_FileFlags(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, | |
| 1744 PyCompilerFlags *flags) | |
| 1745 { | |
| 1746 return PyRun_FileExFlags(fp, p, s, g, l, 0, flags); | |
| 1747 } | |
| 1748 | |
| 1749 #undef PyRun_SimpleFile | |
| 1750 PyAPI_FUNC(int) | |
| 1751 PyRun_SimpleFile(FILE *f, const char *p) | |
| 1752 { | |
| 1753 return PyRun_SimpleFileExFlags(f, p, 0, NULL); | |
| 1754 } | |
| 1755 | |
| 1756 #undef PyRun_SimpleFileEx | |
| 1757 PyAPI_FUNC(int) | |
| 1758 PyRun_SimpleFileEx(FILE *f, const char *p, int c) | |
| 1759 { | |
| 1760 return PyRun_SimpleFileExFlags(f, p, c, NULL); | |
| 1761 } | |
| 1762 | |
| 1763 | |
| 1764 #undef PyRun_String | |
| 1765 PyAPI_FUNC(PyObject *) | |
| 1766 PyRun_String(const char *str, int s, PyObject *g, PyObject *l) | |
| 1767 { | |
| 1768 return PyRun_StringFlags(str, s, g, l, NULL); | |
| 1769 } | |
| 1770 | |
| 1771 #undef PyRun_SimpleString | |
| 1772 PyAPI_FUNC(int) | |
| 1773 PyRun_SimpleString(const char *s) | |
| 1774 { | |
| 1775 return PyRun_SimpleStringFlags(s, NULL); | |
| 1776 } | |
| 1777 | |
| 1778 #undef Py_CompileString | |
| 1779 PyAPI_FUNC(PyObject *) | |
| 1780 Py_CompileString(const char *str, const char *p, int s) | |
| 1781 { | |
| 1782 return Py_CompileStringFlags(str, p, s, NULL); | |
| 1783 } | |
| 1784 | |
| 1785 #undef PyRun_InteractiveOne | |
| 1786 PyAPI_FUNC(int) | |
| 1787 PyRun_InteractiveOne(FILE *f, const char *p) | |
| 1788 { | |
| 1789 return PyRun_InteractiveOneFlags(f, p, NULL); | |
| 1790 } | |
| 1791 | |
| 1792 #undef PyRun_InteractiveLoop | |
| 1793 PyAPI_FUNC(int) | |
| 1794 PyRun_InteractiveLoop(FILE *f, const char *p) | |
| 1795 { | |
| 1796 return PyRun_InteractiveLoopFlags(f, p, NULL); | |
| 1797 } | |
| 1798 | |
| 1707 #ifdef __cplusplus | 1799 #ifdef __cplusplus |
| 1708 } | 1800 } |
| 1709 #endif | 1801 #endif |
| 1710 | 1802 |
