Skip to content

Commit a0f2cb3

Browse files
committed
fix various typos in C source comments
Fixes #22741, #22739, #22736.
1 parent 8278052 commit a0f2cb3

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

Diff for: gv.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3458,7 +3458,7 @@ and could be used to tell if a given object would stringify to something
34583458
other than the normal default ref stringification.
34593459
34603460
Note that the fact that this function returns TRUE does not mean you
3461-
can succesfully perform the operation with amagic_call(), for instance
3461+
can successfully perform the operation with amagic_call(), for instance
34623462
any overloaded method might throw a fatal exception, however if this
34633463
function returns FALSE you can be confident that it will NOT perform
34643464
the given overload operation.

Diff for: perl.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -1231,12 +1231,12 @@ typedef enum {
12311231
* platform that instead uses positional notation. By doing this, you can find
12321232
* many bugs without trying it out on a real such platform. It would be
12331233
* possible to create the reverse definitions for people who have ready access
1234-
* to a posiional notation box, but harder to get a name=value box */
1234+
* to a positional notation box, but harder to get a name=value box */
12351235
# if defined(USE_FAKE_LC_ALL_POSITIONAL_NOTATION) \
12361236
&& defined(PERL_LC_ALL_USES_NAME_VALUE_PAIRS)
12371237
# undef PERL_LC_ALL_USES_NAME_VALUE_PAIRS
12381238

1239-
# define PERL_LC_ALL_CATEGORY_POSITIONS_INIT /* Assumes glibc cateories */\
1239+
# define PERL_LC_ALL_CATEGORY_POSITIONS_INIT /* Assumes glibc categories */\
12401240
{ 12, 11, 10, 9, 8, 7, 5, 4, 3, 2, 1, 0 }
12411241
# define PERL_LC_ALL_SEPARATOR "/ = /"
12421242
# endif
@@ -5424,7 +5424,7 @@ string. All you are interested in is the first character of that string. To
54245424
get uppercase letters (for the values 10..15), add 16 to the index. Hence,
54255425
C<PL_hexdigit[11]> is C<'b'>, and C<PL_hexdigit[11+16]> is C<'B'>. Adding 16
54265426
to an index whose representation is '0'..'9' yields the same as not adding 16.
5427-
Indices outside the range 0..31 result in (bad) undedefined behavior.
5427+
Indices outside the range 0..31 result in (bad) undefined behavior.
54285428
54295429
=cut
54305430
*/
@@ -5531,7 +5531,7 @@ EXTCONST unsigned char PL_fold[] = {
55315531

55325532
EXTCONST unsigned char PL_fold_latin1[] = {
55335533
/* Full latin1 complement folding, except for three problematic code points:
5534-
* Micro sign (181 = 0xB5) and y with diearesis (255 = 0xFF) have their
5534+
* Micro sign (181 = 0xB5) and y with diaeresis (255 = 0xFF) have their
55355535
* fold complements outside the Latin1 range, so can't match something
55365536
* that isn't in utf8.
55375537
* German lower case sharp s (223 = 0xDF) folds to two characters, 'ss',
@@ -7188,7 +7188,7 @@ typedef struct am_table_short AMTS;
71887188
* They require some sort of exclusive lock against similar functions, and a
71897189
* read lock on both the locale and environment. However, on systems which
71907190
* have per-thread locales, the locale is constant during the execution of
7191-
* these functions, and so no locale lock is necssary. For such systems, an
7191+
* these functions, and so no locale lock is necessary. For such systems, an
71927192
* exclusive ENV lock is necessary and sufficient. On systems where the locale
71937193
* could change out from under us, we use an exclusive LOCALE lock to prevent
71947194
* that, and a read ENV lock to prevent other threads that have nothing to do
@@ -7276,7 +7276,7 @@ typedef struct am_table_short AMTS;
72767276
#define STRFTIME_LOCK ENVr_LOCALEr_LOCK
72777277
#define STRFTIME_UNLOCK ENVr_LOCALEr_UNLOCK
72787278

7279-
/* These time-related functions all requre that the environment and locale
7279+
/* These time-related functions all require that the environment and locale
72807280
* don't change while they are executing (at least in glibc; this appears to be
72817281
* contrary to the POSIX standard). tzset() writes global variables, so
72827282
* always needs to have write locking. ctime, localtime, mktime, and strftime
@@ -7312,7 +7312,7 @@ typedef struct am_table_short AMTS;
73127312
#define TZSET_LOCK gwENVr_LOCALEr_LOCK
73137313
#define TZSET_UNLOCK gwENVr_LOCALEr_UNLOCK
73147314

7315-
/* Similiarly, these functions need a constant environment and/or locale. And
7315+
/* Similarly, these functions need a constant environment and/or locale. And
73167316
* some have a buffer that is shared with another thread executing the same or
73177317
* a related call. A mutex could be created for each class, but for now, share
73187318
* the ENV mutex with everything, as none probably gets called so much that
@@ -9175,7 +9175,7 @@ END_EXTERN_C
91759175

91769176
#endif /* DOUBLE_HAS_NAN */
91779177

9178-
/* these are used to faciliate the env var PERL_RAND_SEED,
9178+
/* these are used to facilitate the env var PERL_RAND_SEED,
91799179
* which allows consistent behavior from code that calls
91809180
* srand() with no arguments, either explicitly or implicitly.
91819181
*/

Diff for: pod/perldebguts.pod

+2-2
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ will be lost.
596596
defined by current locale
597597
NBOUNDU no Match "" at any non-boundary of a given
598598
type using /u rules.
599-
NBOUNDA no Match "" betweeen any \w\w or \W\W, where
600-
\w is [_a-zA-Z0-9]
599+
NBOUNDA no Match "" between any \w\w or \W\W, where \w
600+
is [_a-zA-Z0-9]
601601

602602
# [Special] alternatives:
603603
REG_ANY no Match any one character (except newline).

Diff for: regcomp.sym

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ BOUNDA BOUND, no ; Match "" at any boundary between \w\W or \W\
7878
NBOUND NBOUND, no ; Like NBOUNDA for non-utf8, otherwise like BOUNDU
7979
NBOUNDL NBOUND, no ; Like NBOUND/NBOUNDU, but \w and \W are defined by current locale
8080
NBOUNDU NBOUND, no ; Match "" at any non-boundary of a given type using /u rules.
81-
NBOUNDA NBOUND, no ; Match "" betweeen any \w\w or \W\W, where \w is [_a-zA-Z0-9]
81+
NBOUNDA NBOUND, no ; Match "" between any \w\w or \W\W, where \w is [_a-zA-Z0-9]
8282

8383
#* [Special] alternatives:
8484
REG_ANY REG_ANY, no 0 S ; Match any one character (except newline).
@@ -108,7 +108,7 @@ ANYOFRb ANYOFR, packed 1 S ; Like ANYOFR, but all matches share the sam
108108
# operations. (We don't have to compare the final byte as it has to be
109109
# different or else this wouldn't be a range.) So we might as well dispense
110110
# with the comparisons that ANYOFRs would do, and go directly to do the
111-
# conversion .
111+
# conversion.
112112

113113
ANYOFHbbm ANYOFHbbm none bbm S ; Like ANYOFHb, but only for 2-byte UTF-8 characters; uses a bitmap to match the continuation byte
114114

Diff for: regcomp_internal.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ struct RExC_state_t {
148148
int code_index; /* next code_blocks[] slot */
149149
struct reg_code_blocks *code_blocks;/* positions of literal (?{})
150150
within pattern */
151-
SSize_t maxlen; /* mininum possible number of chars in string to match */
151+
SSize_t maxlen; /* minimum possible number of chars in string to match */
152152
scan_frame *frame_head;
153153
scan_frame *frame_last;
154154
U32 frame_count;
@@ -430,7 +430,7 @@ struct RExC_state_t {
430430
#define TRYAGAIN 0x10 /* Weeded out a declaration. */
431431
#define RESTART_PARSE 0x20 /* Need to redo the parse */
432432
#define NEED_UTF8 0x40 /* In conjunction with RESTART_PARSE, need to
433-
calcuate sizes as UTF-8 */
433+
calculate sizes as UTF-8 */
434434

435435
#define REG_NODE_NUM(x) ((x) ? (int)((x)-RExC_emit_start) : -1)
436436

@@ -563,7 +563,7 @@ struct RExC_state_t {
563563
_invlist_intersection_maybe_complement_2nd(a, b, TRUE, output)
564564

565565
/* We add a marker if we are deferring expansion of a property that is both
566-
* 1) potentiallly user-defined; and
566+
* 1) potentially user-defined; and
567567
* 2) could also be an official Unicode property.
568568
*
569569
* Without this marker, any deferred expansion can only be for a user-defined

Diff for: regnodes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ typedef struct regnode tregnode_WHILEM;
298298
#define NBOUNDU_t8_pb 58 /* 0x03a */
299299
#define NBOUNDU_t8_p8 59 /* 0x03b */
300300

301-
#define NBOUNDA 15 /* 0x0f Match "" betweeen any
301+
#define NBOUNDA 15 /* 0x0f Match "" between any
302302
\w\w or \W\W, where \w is
303303
[_a-zA-Z0-9] */
304304
#define NBOUNDA_tb 30 /* 0x01e */

Diff for: scope.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -1894,10 +1894,10 @@ the code reference.
18941894
18951895
When operating in a C callback mode the C<args> parameter will be passed
18961896
directly to the C function as a C<void *> pointer. No additional
1897-
processing of the argument will be peformed, and it is the callers
1897+
processing of the argument will be performed, and it is the callers
18981898
responsibility to free the C<args> parameter if necessary.
18991899
1900-
Be aware that there is a signficant difference in timing between the
1900+
Be aware that there is a significant difference in timing between the
19011901
I<end of the current statement> and the I<end of the current pseudo
19021902
block>. If you are looking for a mechanism to trigger a function at the
19031903
end of the B<current pseudo block> you should look at
@@ -1910,7 +1910,7 @@ B<end of the current statement> with the arguments provided. It is a
19101910
wrapper around C<mortal_destructor_sv()> which ensures that the latter
19111911
function is called appropriately.
19121912
1913-
Be aware that there is a signficant difference in timing between the
1913+
Be aware that there is a significant difference in timing between the
19141914
I<end of the current statement> and the I<end of the current pseudo
19151915
block>. If you are looking for a mechanism to trigger a function at the
19161916
end of the B<current pseudo block> you should look at
@@ -1920,7 +1920,7 @@ L<perlapi/C<SAVEDESTRUCTOR_X>> instead of this function.
19201920
19211921
This function is called via magic to implement the
19221922
C<mortal_destructor_sv()> and C<mortal_destructor_x()> functions. It
1923-
should not be called directly and has no user servicable parts.
1923+
should not be called directly and has no user serviceable parts.
19241924
19251925
=cut
19261926
*/

0 commit comments

Comments
 (0)