??? 05/23/12 14:14 Read: times |
#187472 - Not uncommon bid bad coding standards to comply with Responding to: ???'s previous message |
Erik Malund said:
where you carry a pointer to a huge structure all over the place and claim that you do not have globals.
It may be silly when it's one such struct. But if you have multiple structures, then it may represent a way to write object-oriented code in C. I.e. sending a "this" pointer as first argument. This can allow quite significant restructure of code with very little impact, i.e. very little code rewrite. Obviously, "all of my global RAM" is a very stupid "object". But might potentially be a workaround to fulfill some specific coding standard (that might have some issues needing to be resolved). |