Commit Briefs

matthias

- Always swap the byte order if we work on little-endian machines and display

the fat header (is stored in be byte order) - Removed a typo (; after #define)


matthias

Added Id and license


matthias

Removed superfluous comments


matthias

Add util.o as new object file


matthias

- Various new methods for printing

- Add all header items to the list




matthias

- Added comments for better readability

- All header content is now stored in the linked list *lst - Do not display the content directly, instead traverse the list



matthias

Added a double-linked list data structure and management functions.

NOTE: The content pointer in struct node is a void* pointer, so be sure to cast the right type.




matthias

We also have to swap the byteorder, if dermob runs on a big-endian machine and

the binary is little-endian.


matthias

- Prevented dermob from working with Java files (0xcafebabe fales positives)

- Reformat the output for better readability


matthias

Remove duplicate function call


matthias

Accidently hard-coded the size of the line buffer in display_buffer().

Replaced with sizeof(line).


matthias

Fill the line buffer in display_buffer() beforce actually using it. This

should prevent garbage at the end of the line. This bug only showed up at x86 FreeBSD and PPC32 Mac OS X. PPC64 Mac OS X and x86 Mac OS X do not displayed garbage.








matthias

Reworked the complete structure of dermob:

- Nearly all functions for different parts of the header return a pointer to a struct. - Complete new set of display functions, which uses the new structs - Various functions in dermob.c are way more simplyfied. Tested on x86 and PPC. Code should be stable, but watch out for bugs.