summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-29 08:56:49 (GMT)
committerGitHub <noreply@github.com>2023-09-29 08:56:49 (GMT)
commit8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a (patch)
tree325fbb4507cac60718250226d1b7f7e1db559ef3 /Objects
parentbfd94ab9e9f4055ecedaa500b46b0270da9ffe12 (diff)
downloadcpython-8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a.zip
cpython-8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a.tar.gz
cpython-8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a.tar.bz2
gh-110079: Remove extern "C" { ...} in C code (#110080)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/fileobject.c9
-rw-r--r--Objects/object.c8
-rw-r--r--Objects/unicodeobject.c10
3 files changed, 0 insertions, 27 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 0cf2b47..066172b 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -21,10 +21,6 @@
#define NEWLINE_LF 2 /* \n newline seen */
#define NEWLINE_CRLF 4 /* \r\n newline seen */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* External C interface */
PyObject *
@@ -539,8 +535,3 @@ _PyFile_Flush(PyObject *file)
Py_DECREF(tmp);
return 0;
}
-
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/Objects/object.c b/Objects/object.c
index 15c2bf6..3ed272a 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -28,10 +28,6 @@
# error "Py_LIMITED_API macro must not be defined"
#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* Defined in tracemalloc.c */
extern void _PyMem_DumpTraceback(int fd, const void *ptr);
@@ -2808,7 +2804,3 @@ int Py_IsFalse(PyObject *x)
{
return Py_Is(x, Py_False);
}
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index aca28e4..49981a1 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -100,11 +100,6 @@ NOTE: In the interpreter's initialization phase, some globals are currently
*/
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Maximum code point of Unicode 6.0: 0x10ffff (1,114,111).
// The value must be the same in fileutils.c.
#define MAX_UNICODE 0x10ffff
@@ -15397,8 +15392,3 @@ PyInit__string(void)
{
return PyModuleDef_Init(&_string_module);
}
-
-
-#ifdef __cplusplus
-}
-#endif