Reply To: MWEdit

Home Forums Projects MWEdit Reply To: MWEdit

#5224

Had to back out some of the compatibility changes regarding iscsym(). The function is supposed to take an integer/character but is being passed a character array instead. A few other uses just checked a single character so I left those in place. I’ve added notes in the code to investigate further to see what’s going on. There’s a good chance something will break with these functions so I can back the changes out if needed. The single character changes look good but we’ll find out. We can probably fix it by just checking the character the code comments say is being checked. I’ll leave that for another commit, though, so I don’t clutter the include commit too much. I’ve already got enough unrelated changes in it as it is.

The code also checks a single character using the pointer version. Pointers always confused me so here’s that line:
if (!iscsym(*pID) && !(*pID == ' ')) {
pID is defined as const TCHAR *pID. So *pID is an array of the array, if I’m reading that correctly?

Still becoming reacquainted with these things. Coming along, though.

For reference, they show up in ui/edit_undo.cc, ui/script_dlg.cc, and ui/utils.cc