Skip to content

Commit

Permalink
Fix typos (spelling errors) in Perl sources.
Browse files Browse the repository at this point in the history
# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81904]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81904 >

Signed-off-by: Abigail <abigail@abigail.be>
  • Loading branch information
Peter J. Acklam) (via RT authored and Abigail committed Jan 7, 2011
1 parent 7237a61 commit 486ec47
Show file tree
Hide file tree
Showing 39 changed files with 123 additions and 123 deletions.
2 changes: 1 addition & 1 deletion XSUB.h
Expand Up @@ -73,7 +73,7 @@ handled automatically by C<xsubpp>.
=for apidoc Ams||dUNDERBAR
Sets up any variable needed by the C<UNDERBAR> macro. It used to define
C<padoff_du>, but it is currently a noop. However, it is strongly adviced
C<padoff_du>, but it is currently a noop. However, it is strongly advised
to still use it for ensuring past and future compatibility.
=for apidoc AmU||UNDERBAR
Expand Down
2 changes: 1 addition & 1 deletion cop.h
Expand Up @@ -555,7 +555,7 @@ be zero.

/* If $[ is non-zero, it's stored in cop_hints under the key "$[", and
HINT_ARYBASE is set to indicate this.
Setting it is ineficient due to the need to create 2 mortal SVs, but as
Setting it is inefficient due to the need to create 2 mortal SVs, but as
using $[ is highly discouraged, no sane Perl code will be using it. */
#define CopARYBASE_get(c) \
((CopHINTS_get(c) & HINT_ARYBASE) \
Expand Down
2 changes: 1 addition & 1 deletion doio.c
Expand Up @@ -1899,7 +1899,7 @@ Perl_cando(pTHX_ Mode_t mode, bool effective, register const Stat_t *statbufp)
/* [Comments and code from Len Reed]
* MS-DOS "user" is similar to UNIX's "superuser," but can't write
* to write-protected files. The execute permission bit is set
* by the Miscrosoft C library stat() function for the following:
* by the Microsoft C library stat() function for the following:
* .exe files
* .com files
* .bat files
Expand Down
2 changes: 1 addition & 1 deletion embed.fnc
Expand Up @@ -219,7 +219,7 @@ p |void |boot_core_PerlIO
Ap |void |call_list |I32 oldscope|NN AV *paramList
Apd |const PERL_CONTEXT * |caller_cx|I32 level \
|NULLOK const PERL_CONTEXT **dbcxp
: Used in serveral source files
: Used in several source files
pR |bool |cando |Mode_t mode|bool effective|NN const Stat_t* statbufp
ApR |U32 |cast_ulong |NV f
ApR |I32 |cast_i32 |NV f
Expand Down
2 changes: 1 addition & 1 deletion gv.c
Expand Up @@ -857,7 +857,7 @@ Perl_gv_autoload4(pTHX_ HV *stash, const char *name, STRLEN len, I32 method)


/* require_tie_mod() internal routine for requiring a module
* that implements the logic of automatical ties like %! and %-
* that implements the logic of automatic ties like %! and %-
*
* The "gv" parameter should be the glob.
* "varpv" holds the name of the var, used for error messages.
Expand Down
2 changes: 1 addition & 1 deletion hv.c
Expand Up @@ -682,7 +682,7 @@ Perl_hv_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen,
much back at this point (in hv_store's code). */
break;
}
/* LVAL fetch which actaully needs a store. */
/* LVAL fetch which actually needs a store. */
val = newSV(0);
HvPLACEHOLDERS(hv)--;
} else {
Expand Down
4 changes: 2 additions & 2 deletions hv.h
Expand Up @@ -307,13 +307,13 @@ C<SV*>.
((SvOOK(hv) && HvAUX(hv)->xhv_name_u.xhvnameu_name && HvENAME_HEK_NN(hv)) \
? HEK_LEN(HvENAME_HEK_NN(hv)) : 0)

/* the number of keys (including any placeholers) */
/* the number of keys (including any placeholders) */
#define XHvTOTALKEYS(xhv) ((xhv)->xhv_keys)

/*
* HvKEYS gets the number of keys that actually exist(), and is provided
* for backwards compatibility with old XS code. The core uses HvUSEDKEYS
* (keys, excluding placeholdes) and HvTOTALKEYS (including placeholders)
* (keys, excluding placeholders) and HvTOTALKEYS (including placeholders)
*/
#define HvKEYS(hv) HvUSEDKEYS(hv)
#define HvUSEDKEYS(hv) (HvTOTALKEYS(hv) - HvPLACEHOLDERS_get(hv))
Expand Down
2 changes: 1 addition & 1 deletion iperlsys.h
Expand Up @@ -316,7 +316,7 @@ struct IPerlStdIOInfo
#define PerlSIO_fflush(f) Fflush(f)
#define PerlSIO_fgets(s, n, f) fgets(s,n,f)
#if defined(VMS) && defined(__DECC)
/* Unusual definition of ungetc() here to accomodate fast_sv_gets()'
/* Unusual definition of ungetc() here to accommodate fast_sv_gets()'
* belief that it can mix getc/ungetc with reads from stdio buffer */
int decc$ungetc(int __c, FILE *__stream);
# define PerlSIO_ungetc(c,f) ((c) == EOF ? EOF : \
Expand Down
2 changes: 1 addition & 1 deletion locale.c
Expand Up @@ -46,7 +46,7 @@
* (1) "xx_YY" if the first argument of setlocale() is not LC_ALL
* (2) "xa_YY xb_YY ..." if the first argument of setlocale() is LC_ALL
* (the space-separated values represent the various sublocales,
* in some unspecificed order)
* in some unspecified order)
*
* In some platforms it has a form like "LC_SOMETHING=Lang_Country.866\n",
* which is harmful for further use of the string in setlocale().
Expand Down
8 changes: 4 additions & 4 deletions malloc.c
Expand Up @@ -303,7 +303,7 @@
* than it was, and takes 67% of old heap size for typical usage.)
*
* Allocations of small blocks are now table-driven to many different
* buckets. Sizes of really big buckets are increased to accomodata
* buckets. Sizes of really big buckets are increased to accommodate
* common size=power-of-2 blocks. Running-out-of-memory is made into
* an exception. Deeply configurable and thread-safe.
*
Expand Down Expand Up @@ -689,7 +689,7 @@ static const u_short buck_size[MAX_BUCKET_BY_TABLE + 1] =
* encodes the size of the chunk, while MAGICn encodes state (used,
* free or non-managed-by-us-so-it-indicates-a-bug) of CHUNKn. MAGIC
* is used for sanity checking purposes only. SOMETHING is 0 or 4K
* (to make size of big CHUNK accomodate allocations for powers of two
* (to make size of big CHUNK accommodate allocations for powers of two
* better).
*
* [There is no need to alignment between chunks, since C rules ensure
Expand Down Expand Up @@ -1807,7 +1807,7 @@ getpages(MEM_SIZE needed, int *nblksp, int bucket)
#ifndef I286 /* Again, this should always be ok on an 80286 */
if (PTR2UV(ovp) & (MEM_ALIGNBYTES - 1)) {
DEBUG_m(PerlIO_printf(Perl_debug_log,
"fixing sbrk(): %d bytes off machine alignement\n",
"fixing sbrk(): %d bytes off machine alignment\n",
(int)(PTR2UV(ovp) & (MEM_ALIGNBYTES - 1))));
ovp = INT2PTR(union overhead *,(PTR2UV(ovp) + MEM_ALIGNBYTES) &
(MEM_ALIGNBYTES - 1));
Expand Down Expand Up @@ -2192,7 +2192,7 @@ Perl_realloc(void *mp, size_t nbytes)
onb = BUCKET_SIZE_REAL(bucket);
/*
* avoid the copy if same size block.
* We are not agressive with boundary cases. Note that it might
* We are not aggressive with boundary cases. Note that it might
* (for a small number of cases) give false negative if
* both new size and old one are in the bucket for
* FIRST_BIG_POW2, but the new one is near the lower end.
Expand Down
2 changes: 1 addition & 1 deletion mro.c
Expand Up @@ -939,7 +939,7 @@ S_mro_gather_and_rename(pTHX_ HV * const stashes, HV * const seen_stashes,
* mro_isa_changed_in called on it. That happens if it was
* detached from the symbol table (so it had no HvENAME) before
* being assigned to the spot named by the ‘name’ variable, because
* its cached isa linerisation is now stale (the effective name
* its cached isa linearisation is now stale (the effective name
* having changed), and subclasses will then use that cache when
* mro_package_moved calls mro_isa_changed_in. (See
* [perl #77358].)
Expand Down
4 changes: 2 additions & 2 deletions op.c
Expand Up @@ -6000,7 +6000,7 @@ Perl_cv_const_sv(pTHX_ const CV *const cv)
* cv && CvCONST(cv)
*
* We have just cloned an anon prototype that was marked as a const
* candidiate. Try to grab the current value, and in the case of
* candidate. Try to grab the current value, and in the case of
* PADSV, ignore it if it has multiple references. Return the value.
*/

Expand Down Expand Up @@ -7974,7 +7974,7 @@ Perl_ck_sassign(pTHX_ OP *o)
other->op_targ = target;

/* Because we change the type of the op here, we will skip the
assinment binop->op_last = binop->op_first->op_sibling; at the
assignment binop->op_last = binop->op_first->op_sibling; at the
end of Perl_newBINOP(). So need to do it here. */
cBINOPo->op_last = cBINOPo->op_first->op_sibling;

Expand Down
4 changes: 2 additions & 2 deletions op.h
Expand Up @@ -130,7 +130,7 @@ Deprecated. Use C<GIMME_V> instead.
defined()*/
/* On OP_DBSTATE, indicates breakpoint
* (runtime property) */
/* On OP_AELEMFAST, indiciates pad var */
/* On OP_AELEMFAST, indicates pad var */
/* On OP_REQUIRE, was seen as CORE::require */
/* On OP_ENTERWHEN, there's no condition */
/* On OP_BREAK, an implicit break */
Expand Down Expand Up @@ -238,7 +238,7 @@ Deprecated. Use C<GIMME_V> instead.
/* Private for OP_CONST */
#define OPpCONST_NOVER 2 /* no 6; */
#define OPpCONST_SHORTCIRCUIT 4 /* eg the constant 5 in (5 || foo) */
#define OPpCONST_STRICT 8 /* bearword subject to strict 'subs' */
#define OPpCONST_STRICT 8 /* bareword subject to strict 'subs' */
#define OPpCONST_ENTERED 16 /* Has been entered as symbol. */
#define OPpCONST_ARYBASE 32 /* Was a $[ translated to constant. */
#define OPpCONST_BARE 64 /* Was a bare word (filehandle?). */
Expand Down
6 changes: 3 additions & 3 deletions pad.c
Expand Up @@ -868,7 +868,7 @@ S_pad_findlex(pTHX_ const char *name, const CV* cv, U32 seq, int warn,
* instances. For now, we just test !CvUNIQUE(cv), but
* ideally, we should detect my's declared within loops
* etc - this would allow a wider range of 'not stayed
* shared' warnings. We also treated alreadly-compiled
* shared' warnings. We also treated already-compiled
* lexes as not multi as viewed from evals. */

*out_flags = CvANON(cv) ?
Expand Down Expand Up @@ -993,7 +993,7 @@ S_pad_findlex(pTHX_ const char *name, const CV* cv, U32 seq, int warn,

{
/* This relies on sv_setsv_flags() upgrading the destination to the same
type as the source, independant of the flags set, and on it being
type as the source, independent of the flags set, and on it being
"good" and only copying flag bits and pointers that it understands.
*/
SV *new_namesv = newSVsv(*out_name_sv);
Expand Down Expand Up @@ -1339,7 +1339,7 @@ Perl_pad_tidy(pTHX_ padtidy_type type)
* so that for example the eval's CV in C<< sub { eval '$x' } >> gets
* the right CvOUTSIDE.
* If running with -d, *any* sub may potentially have an eval
* excuted within it.
* executed within it.
*/

if (PL_cv_has_eval || PL_perldb) {
Expand Down
4 changes: 2 additions & 2 deletions perl.c
Expand Up @@ -1469,7 +1469,7 @@ perl_parse(pTHXx_ XSINIT_t xsinit, int argc, char **argv, char **env)
#if defined(USE_HASH_SEED) || defined(USE_HASH_SEED_EXPLICIT)
/* [perl #22371] Algorimic Complexity Attack on Perl 5.6.1, 5.8.0
* This MUST be done before any hash stores or fetches take place.
* If you set PL_rehash_seed (and assumedly also PL_rehash_seed_set)
* If you set PL_rehash_seed (and presumably also PL_rehash_seed_set)
* yourself, it is your responsibility to provide a good random seed!
* You can also define PERL_HASH_SEED in compile time, see hv.h. */
if (!PL_rehash_seed_set)
Expand Down Expand Up @@ -4501,7 +4501,7 @@ S_incpush(pTHX_ const char *const dir, STRLEN len, U32 flags)
libdir = tempsv;
if (PL_tainting &&
(PL_uid != PL_euid || PL_gid != PL_egid)) {
/* Need to taint reloccated paths if running set ID */
/* Need to taint relocated paths if running set ID */
SvTAINTED_on(libdir);
}
}
Expand Down
12 changes: 6 additions & 6 deletions perl.h
Expand Up @@ -591,7 +591,7 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER));
# endif
#endif

/* HP-UX 10.X CMA (Common Multithreaded Architecure) insists that
/* HP-UX 10.X CMA (Common Multithreaded Architecture) insists that
pthread.h must be included before all other header files.
*/
#if defined(USE_ITHREADS) && defined(PTHREAD_H_FIRST) && defined(I_PTHREAD)
Expand Down Expand Up @@ -2226,7 +2226,7 @@ int isnan(double d);
# include <limits.h>
#endif
/* Included values.h above if necessary; still including limits.h down here,
* despite doing above, because math.h might have overriden... XXX - Allen */
* despite doing above, because math.h might have overridden... XXX - Allen */

/*
* Try to figure out max and min values for the integral types. THE CORRECT
Expand Down Expand Up @@ -3177,7 +3177,7 @@ typedef pthread_key_t perl_key;
All that is required is that the perl source does not
use "%-p" or "%-<number>p" or "%<number>p" formats.
These formats will still work in perl code.
See comments in sv.c for futher details.
See comments in sv.c for further details.
Robin Barker 2005-07-14
Expand All @@ -3203,7 +3203,7 @@ typedef pthread_key_t perl_key;
#define SVfARG(p) ((void*)(p))

#ifdef PERL_CORE
/* not used; but needed for backward compatibilty with XS code? - RMB */
/* not used; but needed for backward compatibility with XS code? - RMB */
# undef VDf
#else
# ifndef VDf
Expand All @@ -3212,7 +3212,7 @@ typedef pthread_key_t perl_key;
#endif

#ifdef PERL_CORE
/* not used; but needed for backward compatibilty with XS code? - RMB */
/* not used; but needed for backward compatibility with XS code? - RMB */
# undef UVf
#else
# ifndef UVf
Expand Down Expand Up @@ -5627,7 +5627,7 @@ typedef struct am_table_short AMTS;
#define PERLDBf_NAMEEVAL 0x100 /* Informative names for evals */
#define PERLDBf_NAMEANON 0x200 /* Informative names for anon subs */
#define PERLDBf_SAVESRC 0x400 /* Save source lines into @{"_<$filename"} */
#define PERLDBf_SAVESRC_NOSUBS 0x800 /* Including evals that generate no subrouties */
#define PERLDBf_SAVESRC_NOSUBS 0x800 /* Including evals that generate no subroutines */
#define PERLDBf_SAVESRC_INVALID 0x1000 /* Save source that did not compile */

#define PERLDB_SUB (PL_perldb && (PL_perldb & PERLDBf_SUB))
Expand Down
10 changes: 5 additions & 5 deletions perlio.c
Expand Up @@ -971,7 +971,7 @@ PerlIO_tab_sv(pTHX_ PerlIO_funcs *tab)

XS(XS_PerlIO__Layer__NoWarnings)
{
/* This is used as a %SIG{__WARN__} handler to supress warnings
/* This is used as a %SIG{__WARN__} handler to suppress warnings
during loading of layers.
*/
dVAR;
Expand Down Expand Up @@ -1747,7 +1747,7 @@ Perl_PerlIO_flush(pTHX_ PerlIO *f)
else {
/*
* Is it good API design to do flush-all on NULL, a potentially
* errorneous input? Maybe some magical value (PerlIO*
* erroneous input? Maybe some magical value (PerlIO*
* PERLIO_FLUSH_ALL = (PerlIO*)-1;)? Yes, stdio does similar
* things on fflush(NULL), but should we be bound by their design
* decisions? --jhi
Expand Down Expand Up @@ -3766,7 +3766,7 @@ PerlIO_findFILE(PerlIO *f)
/* Uses fallback "mode" via PerlIO_modestr() in PerlIO_exportFILE */
/* However, we're not really exporting a FILE * to someone else (who
becomes responsible for closing it, or calling PerlIO_releaseFILE())
So we need to undo its refernce count increase on the underlying file
So we need to undo its reference count increase on the underlying file
descriptor. We have to do this, because if the loop above returns you
the FILE *, then *it* didn't increase any reference count. So there's
only one way to be consistent. */
Expand Down Expand Up @@ -4661,7 +4661,7 @@ PerlIOCrlf_set_ptrcnt(pTHX_ PerlIO *f, STDCHAR * ptr, SSize_t cnt)
if (c->nl) {
ptr = c->nl + 1;
if (ptr == b->end && *c->nl == 0xd) {
/* Defered CR at end of buffer case - we lied about count */
/* Deferred CR at end of buffer case - we lied about count */
ptr--;
}
}
Expand All @@ -4679,7 +4679,7 @@ PerlIOCrlf_set_ptrcnt(pTHX_ PerlIO *f, STDCHAR * ptr, SSize_t cnt)
IV flags = PerlIOBase(f)->flags;
STDCHAR *chk = (c->nl) ? (c->nl+1) : b->end;
if (ptr+cnt == c->nl && c->nl+1 == b->end && *c->nl == 0xd) {
/* Defered CR at end of buffer case - we lied about count */
/* Deferred CR at end of buffer case - we lied about count */
chk--;
}
chk -= cnt;
Expand Down
2 changes: 1 addition & 1 deletion perlio.h
Expand Up @@ -25,7 +25,7 @@
then there are two modes determined by USE_SFIO:
USE_SFIO - If set causes PerlIO_xxx() to be #define-d onto sfio functions.
A backward compatability mode for some specialist applications.
A backward compatibility mode for some specialist applications.
If USE_SFIO is not set then PerlIO_xxx() are real functions
defined in perlio.c which implement extra functionality
Expand Down
2 changes: 1 addition & 1 deletion perlsdio.h
Expand Up @@ -38,7 +38,7 @@
#define PerlIO_putc(f,c) PerlSIO_fputc(c,f)
#if defined(VMS)
# if defined(__DECC)
/* Unusual definition of ungetc() here to accomodate fast_sv_gets()'
/* Unusual definition of ungetc() here to accommodate fast_sv_gets()'
* belief that it can mix getc/ungetc with reads from stdio buffer */
int decc$ungetc(int __c, FILE *__stream);
# define PerlIO_ungetc(f,c) ((c) == EOF ? EOF : \
Expand Down
2 changes: 1 addition & 1 deletion perly.c
Expand Up @@ -241,7 +241,7 @@ S_clear_yystack(pTHX_ const yy_parser *parser)
* that we can safely call op_free() multiple times on each stack op.
* So, when clearing the stack, we first, for each op that was being
* reduced, call op_free with op_latefree=1. This ensures that all ops
* hanging off these op are freed, but the reducing ops themselces are
* hanging off these op are freed, but the reducing ops themselves are
* just undefed. Then we set op_latefreed=0 on *all* ops on the stack
* and free them. A little thought should convince you that this
* two-part approach to the reducing ops should handle the first three
Expand Down
6 changes: 3 additions & 3 deletions pp.c
Expand Up @@ -1495,7 +1495,7 @@ PP(pp_divide)
warning before dieing, hence this test goes here.
If it were immediately before the second SvIV_please, then
DIE() would be invoked before left was even inspected, so
no inpsection would give no warning. */
no inspection would give no warning. */
if (right == 0)
DIE(aTHX_ "Illegal division by zero");

Expand Down Expand Up @@ -5500,7 +5500,7 @@ PP(pp_splice)
if (AvREAL(ary)) {
EXTEND_MORTAL(length);
for (i = length, dst = MARK; i; i--) {
sv_2mortal(*dst); /* free them eventualy */
sv_2mortal(*dst); /* free them eventually */
dst++;
}
}
Expand Down Expand Up @@ -5592,7 +5592,7 @@ PP(pp_splice)
if (AvREAL(ary)) {
EXTEND_MORTAL(length);
for (i = length, dst = MARK; i; i--) {
sv_2mortal(*dst); /* free them eventualy */
sv_2mortal(*dst); /* free them eventually */
dst++;
}
}
Expand Down
6 changes: 3 additions & 3 deletions pp_ctl.c
Expand Up @@ -111,7 +111,7 @@ PP(pp_regcomp)


if (PL_op->op_flags & OPf_STACKED) {
/* multiple args; concatentate them */
/* multiple args; concatenate them */
dMARK; dORIGMARK;
tmpstr = PAD_SV(ARGTARG);
sv_setpvs(tmpstr, "");
Expand Down Expand Up @@ -3998,7 +3998,7 @@ PP(pp_entereval)
}
return DOCATCH(PL_eval_start);
} else {
/* We have already left the scope set up earler thanks to the LEAVE
/* We have already left the scope set up earlier thanks to the LEAVE
in doeval(). */
if (was != PL_breakable_sub_gen /* Some subs defined here. */
? (PERLDB_LINE || PERLDB_SAVESRC)
Expand Down Expand Up @@ -5174,7 +5174,7 @@ S_run_user_filter(pTHX_ int idx, SV *buf_sv, int maxlen)
if (take) {
sv_catpvn(buf_sv, cache_p, take);
sv_chop(cache, cache_p + take);
/* Definately not EOF */
/* Definitely not EOF */
return 1;
}

Expand Down

0 comments on commit 486ec47

Please sign in to comment.