Two Down, One To Go

I just finished porting and ensuring the cross-platform compatibility of my Compression library. I only tested the LZW compressor/decompressor, but it’s a start. Again, there were some allocator differences and some integer size mismatch warnings that I had to fix up.

The biggest change was the removal of the word, dword and qword data types from my code. I already had defined uint16, uint32 and uint64 data types and, on Linux, these were perfectly compatible. On Win32, however, the xword data types were typedef’d to the Win32 WORD, DWORD and QWORD data types, rendering them type incompatible with uintxx. As I had sloppily interchanged the use of xword and uintxx, and their existance had added a level of unnecessary type complexity, I removed their definitions and had to go into all my code and convert sundry type, variable and class definitions. Doing so is drudge work, but the code is now tighter and cleaner.

Maybe I should port my code to Mac OS X next?

Comments are closed.