Add definition for macholib.mach_o.reloc_type_generic, which
was used in code but never defined.

#22: Add LICENSE file

#23: Added “–help” option for “python -m macholib”

Added function macholib.MachO.lc_str_value which should
help in decoding value of macholib.mach_o.lc_str. Those
values are offsets in the data of a load command, the function
will return the actually value as a byte string.

Private functionality inside modules was renamed to
a name starting with an underscore.

Note

if this change affects your code you are relying on undefined
implementation features, please stop using private functions.

The basic packable types in macholib.ptypes were renamed to better
represent the corresponding C type. The table below lists the old
an new names (the old names are still available, but are deprecated and
will be removed in a future release).

Old name

New name

p_byte

p_int8

p_ubyte

p_uint8

p_short

p_int16

p_ushort

p_uint16

p_int

p_int32

p_uint

p_uint32

p_long

p_int32

p_ulong

p_uint32

p_longlong

p_int64

p_ulonglong

p_uint64

Macholib.ptypes.p_ptr is no longer present as it had an unclear
definition and isn’t actually used in the codebase.

Bug fixes:

The semantics of dyld.dyld_default_search were changed a bit,
it now first searches the framework path (if appropriate) and then
the linker path, irrespective of the value of the DYLD_FALLBACK*
environment variables.

Previous versions would change the search order when those variables
was set, which is odd and doesn’t correspond with the documented
behaviour of the system dyld.

It is once again possible to install using python2.5

The source distribution includes all files, this was broken
due to the switch to mercurial (which confused setuptools)