Extracted from patch submitted by Lajos Veres in RT #123693.
use vars qw($TODO $Level $using_open);
require "test.pl";
-our $VERSION = '0.12';
+our $VERSION = '0.13';
# now export checkOptree, and those test.pl functions used by tests
our @EXPORT = qw( checkOptree plan skip skip_all pass is like unlike
: $cmp eq '==' ? $] == $version
: $cmp eq '>=' ? $] >= $version
: $cmp eq '>' ? $] > $version
- : die("bad comparision '$cmp' in string [$str]\n")
+ : die("bad comparison '$cmp' in string [$str]\n")
and !$cmp2 || (
$cmp2 eq '<' ? $] < $v2
: $cmp2 eq '<=' ? $] <= $v2
: $cmp2 eq '==' ? $] == $v2
: $cmp2 eq '>=' ? $] >= $v2
: $cmp2 eq '>' ? $] > $v2
- : die("bad comparision '$cmp2' in string [$str]\n")
+ : die("bad comparison '$cmp2' in string [$str]\n")
)
) {
$repl = "$line\n";
@ISA = qw(Exporter);
@EXPORT = qw(writemain);
-$VERSION = '1.03';
+$VERSION = '1.04';
# blead will run this with miniperl, hence we can't use autodie or File::Temp
my $temp;
perl binary. It writes a corresponding F<perlmain.c> file that
is a plain C file containing all the bootstrap code to make the
If the first argument to C<writemain()> is a reference to a scalar it is
-used as the filename to open for ouput. Any other reference is used as
+used as the filename to open for output. Any other reference is used as
the filehandle to write to. Otherwise output defaults to C<STDOUT>.
The typical usage is from within a Makefile generated by
cmp_ok(@r, '>=', 9) or diag("|@r|");
@r = <*/a*.t>;
-# atleast {argv,abbrev,anydbm,autoloader,append,arith,array,assignwarn,auto}.t
+# at least {argv,abbrev,anydbm,autoloader,append,arith,array,assignwarn,auto}.t
cmp_ok(@r, '>=', 9, 'check <*/*>') or diag("|@r|");
my $r = scalar @r;
is( $pkg_ref, $exp_ref, '@Pod::Functions::Type_Order exported' );
# Check @Type_Order
-my @catagories = qw(
+my @categories = qw(
String Regexp Math ARRAY LIST HASH I/O
Binary File Flow Namespace Misc Process
Modules Objects Socket SysV User Network Time
);
-ok( eq_array( \@Type_Order, \@catagories ),
+ok( eq_array( \@Type_Order, \@categories ),
'@Type_Order' );
my @cat_keys = grep exists $Type_Description{ $_ } => @Type_Order;
-ok( eq_array( \@cat_keys, \@catagories ),
+ok( eq_array( \@cat_keys, \@categories ),
'keys() %Type_Description' );
SKIP: {
L</"item1">
-L</"non existant section">
+L</"non existent section">
L<var-copy>
<p><a href="#item1">"item1"</a></p>
-<p><a href="#non-existant-section">"non existant section"</a></p>
+<p><a href="#non-existent-section">"non existent section"</a></p>
<p><a href="/[RELCURRENTWORKINGDIRECTORY]/testdir/test.lib/var-copy.html">var-copy</a></p>
<p><a href="#item1">"item1"</a></p>
-<p><a href="#non-existant-section">"non existant section"</a></p>
+<p><a href="#non-existent-section">"non existent section"</a></p>
<p><a href="../testdir/test.lib/var-copy.html">var-copy</a></p>
<p><a href="#item1">"item1"</a></p>
-<p><a href="#non-existant-section">"non existant section"</a></p>
+<p><a href="#non-existent-section">"non existent section"</a></p>
<p><a href="[ABSCURRENTWORKINGDIRECTORY]/testdir/test.lib/var-copy.html">var-copy</a></p>
}
# [perl #78070]
-# multicall using a sub that aleady has CvDEPTH > 1 caused sub
+# multicall using a sub that already has CvDEPTH > 1 caused sub
# to be prematurely freed
{
t->ary = ary;
for (i = 0; i < oldsize; i++, ary++) {
- ptable_ent **curentp, **entp, *ent;
+ ptable_ent **currentp, **entp, *ent;
if (!*ary)
continue;
- curentp = ary + oldsize;
+ currentp = ary + oldsize;
for (entp = ary, ent = *ary; ent; ent = *entp) {
if ((newsize & PTABLE_HASH(ent->key)) != i) {
*entp = ent->next;
- ent->next = *curentp;
- *curentp = ent;
+ ent->next = *currentp;
+ *currentp = ent;
continue;
} else
entp = &ent->next;