Hmm, I think I get the clarity you're reaching for in using these variables for sizeof calculations, but it would be a lot clearer if you #define each of them, or even typedef them and use the typedefs where appropriate in this code.