@@ -237,7 +237,7 @@ sub getPack {
237
237
my @buffer_ptrs = (); # this contains the struct_ptrs that were placed in the
238
238
# the struct, its part of "C func changes the struct ptr to a private allocated
239
239
# struct" code, it is push/poped only for struct ptrs, it is NOT a 1 to
240
- # 1 mapping between all struct members, so dont access it with indexes
240
+ # 1 mapping between all struct members, so don't access it with indexes
241
241
242
242
my $align = $self -> align();
243
243
@@ -411,7 +411,7 @@ else{ #new ptr is true
411
411
}
412
412
# must fix {buffer} with contents of the new struct, $structptr might be
413
413
# null or might be a SVPV from a ::Struct that was ignored, in any case,
414
- # a forign memory allocator is at work here
414
+ # a foreign memory allocator is at work here
415
415
$$SVMemberRef -> {buffer } = Win32::API::ReadMemory($newstructptr , $$SVMemberRef -> sizeof)
416
416
if ($oldstructptr != $newstructptr );
417
417
# always must be called, if new ptr is not null, at this point, C func, did
@@ -584,7 +584,7 @@ function takes care of removing the semicolon after the member
584
584
name. Win32::API::Struct does B<NOT > support Enums, Unions, or Bitfields.
585
585
C<NAME > must not end in C<* > , typedef creates structs, not struct pointers.
586
586
See L<Win32::API::Type/"typedef">
587
- on howto create a struct pointer type. Returns true on success, and undef on error.
587
+ on how to create a struct pointer type. Returns true on success, and undef on error.
588
588
On error it L<warns|perlfunc/warn> with the specific reason.
589
589
590
590
The synopsis example could be written like this:
@@ -600,7 +600,7 @@ syntax), which is pretty cool:
600
600
};
601
601
602
602
L<Win32::API/Call> automatically knows that an 'LPNAME' type, refers
603
- to a 'NAME' type struct. Also see L<Win32::API::Type/"typedef"> on howto declare
603
+ to a 'NAME' type struct. Also see L<Win32::API::Type/"typedef"> on how to declare
604
604
pointers to struct types.
605
605
606
606
Unlike in Win32::API, a single non-array char or CHAR struct member in a
@@ -697,9 +697,9 @@ allocator. Some C APIs give you static global buffers which never are freed or f
697
697
automatically in the next call to a function from to that DLL.
698
698
699
699
With foreign allocators, its best to treat to write a pointer class, bless the
700
- ref to scalar interger (holding the pointer) into that class to ensure that the
700
+ ref to scalar integer (holding the pointer) into that class to ensure that the
701
701
DESTROY method will free the pointer and you never leak it, and your write
702
- method accesors using L<perlfunc/pack> , L<Win32::API/ReadMemory> and
702
+ method accessors using L<perlfunc/pack> , L<Win32::API/ReadMemory> and
703
703
L<Win32::API/WriteMemory> around the pointer.
704
704
705
705
0 commit comments