Code cleanup continues

Saturday, 21 Jul, 2007 // 16:27

section: Projects/siaynoq

tags: ,

permanent link

When I paused siaynoq’s development about two months ago, I left the codebase in a terrible mess. At the start of the project, the initial goal was to get something to work. The project has reached a state where it’s (sort of) working; now, I’m going back and cleaning up the mess.

In the process, I’m also trying to get siaynoq to compile using Microsoft’s compiler (the one included in Visual C++ Express Edition). Apparently quite a few from dwm’s mailing list have tried (and failed) to compile siaynoq using MSVC.

ARG has sent in a patch to get siaynoq to compile with MSVC, but, in the process, he also took out all the debugging crap I put in. I know they’re ugly, but I want them. Besides, in between applying Tuncer’s patch and all the previous work I’ve managed to squeeze in, the codebase has changed sufficiently enough that I doubt ARG’s patch will apply cleanly.

Better to just go about the cleanup with MSVC compatibility in mind.

P.S. Microsoft’s C compiler sucks rotten eggs. It doesn’t even support C90. GCC may not have complete C99 support, but it supports enough to make a coder’s life significantly easier.

ARG’s opinion is that Microsoft’s compiler is saner than GCC; I can’t comment on that, since I’m no compiler guru. But I will say this: for a supposedly sane compiler, MSVC is driving me completely nuts.