Good progress this morning. tok.c, help.c are done. tok.c is weird since it contains yylex (i.e. lex), which seems particularly strange since I don't recall Larn parsing anything more than 3 characters at a time for spells. It's only called by main though, so I may be able to just remove it later.
And then I get to drawscreen(). Yay! Time to start rendering! drawscreen lives in display.c, and the first thing I see is this:
#define botsub( _idx, _x, _y, _str ) \
{ \
cbak[(_idx)] = c[(_idx)]; \
cursor( (_x), (_y) ); \
lprintf( (_str), (long)c[(_idx)] ); \
}
Incontrovertible. I mean, I could always just redefine the character class to be all the fields in a union with an int array. But really, that's terrible. I don't currently understand how many places this is used, but I'm hoping it's 0 or 1 because this is just terrible.
No comments:
Post a Comment