Skip to content

Commit 86f19cf

Browse files
Change restricts to MSVC only
1 parent d7737e9 commit 86f19cf

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Include/internal/pycore_dict.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ _PyDict_NotifyEvent(PyInterpreterState *interp,
290290
extern PyDictObject *_PyObject_MaterializeManagedDict(PyObject *obj);
291291

292292
PyAPI_FUNC(PyObject *)_PyDict_FromItems(
293-
PyObject *const *restrict keys, Py_ssize_t keys_offset,
294-
PyObject *const *restrict values, Py_ssize_t values_offset,
293+
PyObject *const *keys, Py_ssize_t keys_offset,
294+
PyObject *const *values, Py_ssize_t values_offset,
295295
Py_ssize_t length);
296296

297297
static inline uint8_t *

Include/internal/pycore_unicodeobject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ PyAPI_FUNC(PyObject*) _PyUnicode_TransformDecimalAndSpaceToASCII(
274274
/* --- Methods & Slots ---------------------------------------------------- */
275275

276276
PyAPI_FUNC(PyObject*) _PyUnicode_JoinArray(
277-
PyObject *restrict separator,
278-
PyObject *const *restrict items,
277+
PyObject * separator,
278+
PyObject *const * items,
279279
Py_ssize_t seqlen
280280
);
281281

Include/pyport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ extern "C" {
385385
# define Py_NO_INLINE
386386
#endif
387387

388-
#if defined(_MSC_VER) && !defined(__clang__) && Py_TAIL_CALL_INTERP
388+
#if defined(_MSC_VER) && !defined(__clang__) && _Py_TAIL_CALL_INTERP
389389
# define Py_NO_INLINE_MSVC_TAILCALL Py_NO_INLINE
390390
#else
391391
# define Py_NO_INLINE_MSVC_TAILCALL

Objects/dictobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,8 +2226,8 @@ _PyDict_NewPresized(Py_ssize_t minused)
22262226
}
22272227

22282228
Py_NO_INLINE_MSVC_TAILCALL PyObject *
2229-
_PyDict_FromItems(PyObject *const *restrict keys, Py_ssize_t keys_offset,
2230-
PyObject *const *restrict values, Py_ssize_t values_offset,
2229+
_PyDict_FromItems(PyObject *const *Py_MSVC_RESTRICT keys, Py_ssize_t keys_offset,
2230+
PyObject *const *Py_MSVC_RESTRICT values, Py_ssize_t values_offset,
22312231
Py_ssize_t length)
22322232
{
22332233
bool unicode = true;

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10068,7 +10068,7 @@ PyUnicode_Join(PyObject *separator, PyObject *seq)
1006810068
}
1006910069

1007010070
PyObject *
10071-
_PyUnicode_JoinArray(PyObject *restrict separator, PyObject *const *restrict items, Py_ssize_t seqlen)
10071+
_PyUnicode_JoinArray(PyObject *Py_MSVC_RESTRICT separator, PyObject *const *Py_MSVC_RESTRICT items, Py_ssize_t seqlen)
1007210072
{
1007310073
PyObject *res = NULL; /* the result */
1007410074
PyObject *sep = NULL;

Python/ceval_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
# define TAIL_CALL_ARGS frame, stack_pointer, tstate, next_instr, instruction_funcptr_table, oparg
7979
#endif
8080

81-
#if Py_TAIL_CALL_INTERP
81+
#if _Py_TAIL_CALL_INTERP
8282
# if defined(_MSC_VER) && !defined(__clang__)
8383
# define Py_MUSTTAIL [[msvc::musttail]]
8484
# define Py_PRESERVE_NONE_CC __preserve_none

0 commit comments

Comments
 (0)