| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bfd94ab commit 8b626a4
18 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -249,16 +249,8 @@ static struct PyModuleDef _scproxy_module = { | |||
| 249 | 249 | .m_slots = _scproxy_slots, | |
| 250 | 250 | }; | |
| 251 | 251 | ||
| 252 | - #ifdef __cplusplus | ||
| 253 | - extern "C" { | ||
| 254 | - #endif | ||
| 255 | - | ||
| 256 | 252 | PyMODINIT_FUNC | |
| 257 | 253 | PyInit__scproxy(void) | |
| 258 | 254 | { | |
| 259 | 255 | return PyModuleDef_Init(&_scproxy_module); | |
| 260 | 256 | } | |
| 261 | - | ||
| 262 | - #ifdef __cplusplus | ||
| 263 | - } | ||
| 264 | - #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,10 +13,6 @@ | |||
| 13 | 13 | ||
| 14 | 14 | #include "Python.h" | |
| 15 | 15 | ||
| 16 | - #ifdef __cplusplus | ||
| 17 | - extern "C" { | ||
| 18 | - #endif | ||
| 19 | - | ||
| 20 | 16 | #ifdef HAVE_SYS_TYPES_H | |
| 21 | 17 | #include <sys/types.h> | |
| 22 | 18 | #endif /* HAVE_SYS_TYPES_H */ | |
@@ -631,7 +627,3 @@ PyInit__stat(void) | |||
| 631 | 627 | { | |
| 632 | 628 | return PyModuleDef_Init(&statmodule); | |
| 633 | 629 | } | |
| 634 | - | ||
| 635 | - #ifdef __cplusplus | ||
| 636 | - } | ||
| 637 | - #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,10 +26,6 @@ | |||
| 26 | 26 | "Type \"help\", \"copyright\", \"credits\" or \"license\" " \ | |
| 27 | 27 | "for more information." | |
| 28 | 28 | ||
| 29 | - #ifdef __cplusplus | ||
| 30 | - extern "C" { | ||
| 31 | - #endif | ||
| 32 | - | ||
| 33 | 29 | /* --- pymain_init() ---------------------------------------------- */ | |
| 34 | 30 | ||
| 35 | 31 | static PyStatus | |
@@ -742,7 +738,3 @@ Py_BytesMain(int argc, char **argv) | |||
| 742 | 738 | .wchar_argv = NULL}; | |
| 743 | 739 | return pymain_main(&args); | |
| 744 | 740 | } | |
| 745 | - | ||
| 746 | - #ifdef __cplusplus | ||
| 747 | - } | ||
| 748 | - #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -222,10 +222,6 @@ | |||
| 222 | 222 | #endif | |
| 223 | 223 | ||
| 224 | 224 | ||
| 225 | - #ifdef __cplusplus | ||
| 226 | - extern "C" { | ||
| 227 | - #endif | ||
| 228 | - | ||
| 229 | 225 | PyDoc_STRVAR(posix__doc__, | |
| 230 | 226 | "This module provides access to operating system functionality that is\n\ | |
| 231 | 227 | standardized by the C Standard and the POSIX standard (a thinly\n\ | |
@@ -17002,7 +16998,3 @@ INITFUNC(void) | |||
| 17002 | 16998 | { | |
| 17003 | 16999 | return PyModuleDef_Init(&posixmodule); | |
| 17004 | 17000 | } | |
| 17005 | - | ||
| 17006 | - #ifdef __cplusplus | ||
| 17007 | - } | ||
| 17008 | - #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,10 +21,6 @@ | |||
| 21 | 21 | #define NEWLINE_LF 2 /* \n newline seen */ | |
| 22 | 22 | #define NEWLINE_CRLF 4 /* \r\n newline seen */ | |
| 23 | 23 | ||
| 24 | - #ifdef __cplusplus | ||
| 25 | - extern "C" { | ||
| 26 | - #endif | ||
| 27 | - | ||
| 28 | 24 | /* External C interface */ | |
| 29 | 25 | ||
| 30 | 26 | PyObject * | |
@@ -539,8 +535,3 @@ _PyFile_Flush(PyObject *file) | |||
| 539 | 535 | Py_DECREF(tmp); | |
| 540 | 536 | return 0; | |
| 541 | 537 | } | |
| 542 | - | ||
| 543 | - | ||
| 544 | - #ifdef __cplusplus | ||
| 545 | - } | ||
| 546 | - #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,10 +28,6 @@ | |||
| 28 | 28 | # error "Py_LIMITED_API macro must not be defined" | |
| 29 | 29 | #endif | |
| 30 | 30 | ||
| 31 | - #ifdef __cplusplus | ||
| 32 | - extern "C" { | ||
| 33 | - #endif | ||
| 34 | - | ||
| 35 | 31 | /* Defined in tracemalloc.c */ | |
| 36 | 32 | extern void _PyMem_DumpTraceback(int fd, const void *ptr); | |
| 37 | 33 | ||
@@ -2808,7 +2804,3 @@ int Py_IsFalse(PyObject *x) | |||
| 2808 | 2804 | { | |
| 2809 | 2805 | return Py_Is(x, Py_False); | |
| 2810 | 2806 | } | |
| 2811 | - | ||
| 2812 | - #ifdef __cplusplus | ||
| 2813 | - } | ||
| 2814 | - #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -100,11 +100,6 @@ NOTE: In the interpreter's initialization phase, some globals are currently | |||
| 100 | 100 | ||
| 101 | 101 | */ | |
| 102 | 102 | ||
| 103 | - | ||
| 104 | - #ifdef __cplusplus | ||
| 105 | - extern "C" { | ||
| 106 | - #endif | ||
| 107 | - | ||
| 108 | 103 | // Maximum code point of Unicode 6.0: 0x10ffff (1,114,111). | |
| 109 | 104 | // The value must be the same in fileutils.c. | |
| 110 | 105 | #define MAX_UNICODE 0x10ffff | |
@@ -15397,8 +15392,3 @@ PyInit__string(void) | |||
| 15397 | 15392 | { | |
| 15398 | 15393 | return PyModuleDef_Init(&_string_module); | |
| 15399 | 15394 | } | |
| 15400 | - | ||
| 15401 | - | ||
| 15402 | - #ifdef __cplusplus | ||
| 15403 | - } | ||
| 15404 | - #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -172,10 +172,6 @@ typedef uint64_t ULLong; | |||
| 172 | 172 | #define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);} | |
| 173 | 173 | #endif | |
| 174 | 174 | ||
| 175 | - #ifdef __cplusplus | ||
| 176 | - extern "C" { | ||
| 177 | - #endif | ||
| 178 | - | ||
| 179 | 175 | typedef union { double d; ULong L[2]; } U; | |
| 180 | 176 | ||
| 181 | 177 | #ifdef IEEE_8087 | |
@@ -2813,8 +2809,5 @@ _Py_dg_dtoa(double dd, int mode, int ndigits, | |||
| 2813 | 2809 | _Py_dg_freedtoa(s0); | |
| 2814 | 2810 | return NULL; | |
| 2815 | 2811 | } | |
| 2816 | - #ifdef __cplusplus | ||
| 2817 | - } | ||
| 2818 | - #endif | ||
| 2819 | 2812 | ||
| 2820 | 2813 | #endif // _PY_SHORT_FLOAT_REPR == 1 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,11 +16,6 @@ | |||
| 16 | 16 | # include <stdlib.h> // _sys_nerr | |
| 17 | 17 | #endif | |
| 18 | 18 | ||
| 19 | - | ||
| 20 | - #ifdef __cplusplus | ||
| 21 | - extern "C" { | ||
| 22 | - #endif | ||
| 23 | - | ||
| 24 | 19 | /* Forward declarations */ | |
| 25 | 20 | static PyObject * | |
| 26 | 21 | _PyErr_FormatV(PyThreadState *tstate, PyObject *exception, | |
@@ -1918,7 +1913,3 @@ PyErr_ProgramTextObject(PyObject *filename, int lineno) | |||
| 1918 | 1913 | { | |
| 1919 | 1914 | return _PyErr_ProgramDecodedTextObject(filename, lineno, NULL); | |
| 1920 | 1915 | } | |
| 1921 | - | ||
| 1922 | - #ifdef __cplusplus | ||
| 1923 | - } | ||
| 1924 | - #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,10 +7,6 @@ | |||
| 7 | 7 | #include "pycore_pylifecycle.h" // _PyArg_Fini | |
| 8 | 8 | #include "pycore_tuple.h" // _PyTuple_ITEMS() | |
| 9 | 9 | ||
| 10 | - #ifdef __cplusplus | ||
| 11 | - extern "C" { | ||
| 12 | - #endif | ||
| 13 | - | ||
| 14 | 10 | /* Export Stable ABIs (abi only) */ | |
| 15 | 11 | PyAPI_FUNC(int) _PyArg_Parse_SizeT(PyObject *, const char *, ...); | |
| 16 | 12 | PyAPI_FUNC(int) _PyArg_ParseTuple_SizeT(PyObject *, const char *, ...); | |
@@ -2867,7 +2863,3 @@ _PyArg_Fini(void) | |||
| 2867 | 2863 | } | |
| 2868 | 2864 | _PyRuntime.getargs.static_parsers = NULL; | |
| 2869 | 2865 | } | |
| 2870 | - | ||
| 2871 | - #ifdef __cplusplus | ||
| 2872 | - }; | ||
| 2873 | - #endif | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments