I am working with a library that is somewhat poorly written. In order to function, it requires several global variables to be declared and sometimes even maintained by my own code. I really don't like having to put a whole list of global variables at the start of my main file, and even less also having to extern
them all in the .h
file too.
Is there a good way (or at least, a less-bad way) to deal with this unfortunate situation?