diff options
author | cui fliter <imcusg@gmail.com> | 2024-03-05 16:05:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 16:05:52 (GMT) |
commit | e7ba6e9dbe5433b4a0bcb0658da6a68197c28630 (patch) | |
tree | a969e02a86240adb40023084777365594bc82c61 /Include/internal | |
parent | 4402b3cbcf8323bfa908ef86a687a5a7d46d27f3 (diff) | |
download | cpython-e7ba6e9dbe5433b4a0bcb0658da6a68197c28630.zip cpython-e7ba6e9dbe5433b4a0bcb0658da6a68197c28630.tar.gz cpython-e7ba6e9dbe5433b4a0bcb0658da6a68197c28630.tar.bz2 |
chore: fix typos (#116345)
Signed-off-by: cui fliter <imcusg@gmail.com>
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_compile.h | 2 | ||||
-rw-r--r-- | Include/internal/pycore_gc.h | 2 | ||||
-rw-r--r-- | Include/internal/pycore_instruments.h | 2 | ||||
-rw-r--r-- | Include/internal/pycore_interp.h | 2 | ||||
-rw-r--r-- | Include/internal/pycore_lock.h | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/Include/internal/pycore_compile.h b/Include/internal/pycore_compile.h index e587075..0f446a0 100644 --- a/Include/internal/pycore_compile.h +++ b/Include/internal/pycore_compile.h @@ -103,7 +103,7 @@ int _PyCompile_EnsureArrayLargeEnough( int _PyCompile_ConstCacheMergeOne(PyObject *const_cache, PyObject **obj); -// Export for '_opcode' extention module +// Export for '_opcode' extension module PyAPI_FUNC(int) _PyCompile_OpcodeIsValid(int opcode); PyAPI_FUNC(int) _PyCompile_OpcodeHasArg(int opcode); PyAPI_FUNC(int) _PyCompile_OpcodeHasConst(int opcode); diff --git a/Include/internal/pycore_gc.h b/Include/internal/pycore_gc.h index 40414a8..cf0b148 100644 --- a/Include/internal/pycore_gc.h +++ b/Include/internal/pycore_gc.h @@ -73,7 +73,7 @@ static inline int _PyObject_GC_MAY_BE_TRACKED(PyObject *obj) { /* True if an object is shared between multiple threads and * needs special purpose when freeing to do the possibility - * of in-flight lock-free reads occuring */ + * of in-flight lock-free reads occurring */ static inline int _PyObject_GC_IS_SHARED(PyObject *op) { return (op->ob_gc_bits & _PyGC_BITS_SHARED) != 0; } diff --git a/Include/internal/pycore_instruments.h b/Include/internal/pycore_instruments.h index eae8371..7f84d4a 100644 --- a/Include/internal/pycore_instruments.h +++ b/Include/internal/pycore_instruments.h @@ -39,7 +39,7 @@ extern "C" { #define PY_MONITORING_EVENT_RERAISE 14 -/* Ancilliary events */ +/* Ancillary events */ #define PY_MONITORING_EVENT_C_RETURN 15 #define PY_MONITORING_EVENT_C_RAISE 16 diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h index 6a00aaf..d79fd3b 100644 --- a/Include/internal/pycore_interp.h +++ b/Include/internal/pycore_interp.h @@ -85,7 +85,7 @@ typedef struct _rare_events { */ struct _is { - /* This struct countains the eval_breaker, + /* This struct contains the eval_breaker, * which is by far the hottest field in this struct * and should be placed at the beginning. */ struct _ceval_state ceval; diff --git a/Include/internal/pycore_lock.h b/Include/internal/pycore_lock.h index f648be4..971b461 100644 --- a/Include/internal/pycore_lock.h +++ b/Include/internal/pycore_lock.h @@ -271,7 +271,7 @@ PyAPI_FUNC(void) _PyRWMutex_Unlock(_PyRWMutex *rwmutex); // underlying data and then read the sequence number again after reading the data. If the // sequence has not changed the data is valid. // -// Differs a little bit in that we use CAS on sequence as the lock, instead of a seperate spin lock. +// Differs a little bit in that we use CAS on sequence as the lock, instead of a separate spin lock. // The writer can also detect that the undelering data has not changed and abandon the write // and restore the previous sequence. typedef struct { @@ -284,7 +284,7 @@ PyAPI_FUNC(void) _PySeqLock_LockWrite(_PySeqLock *seqlock); // Unlock the sequence lock and move to the next sequence number. PyAPI_FUNC(void) _PySeqLock_UnlockWrite(_PySeqLock *seqlock); -// Abandon the current update indicating that no mutations have occured +// Abandon the current update indicating that no mutations have occurred // and restore the previous sequence value. PyAPI_FUNC(void) _PySeqLock_AbandonWrite(_PySeqLock *seqlock); |