Work on Structs
authorRyan Jendoubi <ryan.jendoubi@gmail.com>
Tue, 31 Aug 2010 10:18:59 +0000 (11:18 +0100)
committerRyan Jendoubi <ryan.jendoubi@gmail.com>
Tue, 31 Aug 2010 10:18:59 +0000 (11:18 +0100)
commit253b899f6af22e4fa458979dc0dec627773580ac
tree7afc052f9d4ad9a8e4401213394e6c64ed569103
parent4d2e2c1c60c0f3e690b8c8b45e46432f4701d9d1
Work on Structs

Implemented copy() method for all Types (as Structs need their
own copy() of the contents of subclasses' $_fields_).

No good way of using method-style access for Struct members (always
some Perl method names which could hypothetically limit field names
so must use hash-style access ($$struct->{field}).

Now looking at how to return info about fields, so that fields
can know their own name within the struct. Removed tied Field
objects, may reintroduce them in a different way.
lib/Ctypes/Type.pm
lib/Ctypes/Type/Array.pm
lib/Ctypes/Type/Field.pm
lib/Ctypes/Type/Field.pm_old [new file with mode: 0644]
lib/Ctypes/Type/Field.pm_old2 [new file with mode: 0644]
lib/Ctypes/Type/Pointer.pm
lib/Ctypes/Type/Simple.pm
lib/Ctypes/Type/Struct.pm
lib/Ctypes/Type/Struct.pm_old [new file with mode: 0644]
t/Struct.t
t/t_POINT.pm