I plan to mine through it, I trust tested code that has been in operation for long periods of time (beats experimenting)taniwha wrote:As for the QF header dependencies: it's not as bad as it looks: mathlib.h is for min/max/bounds, compat mabe strequal, sys.h for Sys_Printf and Sys_Error: all easy to replace.
![Big Grin :D](./images/smilies/icon_biggrin.gif)
I came up with another C trick that half-way sucks, but in conjunction with the above COUNT_ARRAY #define has proven to be a time saver ...
Code: Select all
#define ForEach(_x) for (cur_index = 0, cur = &(_x)[cur_index]; cur_index < _num ## _x ; cur_index++, cur = &(_x)[cur_index])
Code: Select all
fbool Highscores_Table (void)
{
int cur_index;
highscore_t* cur;
ForEach (highscores)
{
fprintf (stdout, "%i: %-03s %i", cur_index, cur->initials, cur->score);
}
return True;
}
Miscellaneous notes: SDL mixer, A+++++++. DevIL A++++++++ (time saver, I love how it conforms to the OpenGL way of doing things. Libpng is "difficult". Haven't tried compiling under CodeBlocks/MinGW/GCC yet, as I am a MSVC6 addict but I'm hoping for no surprises with DevIL.) Yet other miscellaneous notes: Constructed private "commands buffers" to process reading in entire files and feed said function another function to execute it. C is such a wonderful and awesome language once one ends up with a large enough knowledgebase to correctly and cleanly structure sets of functions. Did I mention I love C?
![Razz :P](./images/smilies/icon_razz.gif)