New Code!
It came to my attention recently that ndialog was lacking a certain something in the functionality department. I got a bug report that said that some subwindows ended up with garbage frames on modern versions of Linux, but since I don’t run any modern Linuxes (I get more than enough exposure to Open Source®©™ fashions via the Macintosh, thankyouverymuch) I tried to reproduce the defect on MacOS 10.5. I couldn’t actually reproduce the defect, because I couldn’t actually build the code.
Several days later, I had
- rolled configure.sh up to a more recent version.
- killed a defect where
dialog_gauge
would dump core if I didn’t put an[OK]
button on the menu (boundary condition bug where I wasn’t checking for a boundary!) - killed a defect where html menus would dump core if I did page forward too many times (incorrect prototype bug which gcc didn’t detect because it was too busy whining about signed vs. unsigned scalars.)
- redone the guts of
ndhelp.c
to have it usecstring.h
instead of the inline flexible string goop that was there beforehand.
but was not able to reproduce the window garbage frame problem. Oh, well, can’t win them all.
But at least this code now works on one modern Unixoid system, so it’s dimly possible that people might be able to use it and find other defects that I’ve missed so far. Good enough for New Code!? If I had any shame, it wouldn’t be, but I don’t, so here it is!