Improved ANSI C compatibility
Improved ANSI C compatibility

ANSI C only allows variable declarations at the beginning of a function, so I had to move the "uint16_t i" to get this module to compile on MikroC for PIC. I believe that while newer revisions of C allow declarations like what was originally here, they still accept the legacy 'all at the beginning' style.

If i'm right about that, this is a simple change that lets this buffer package work perfectly out of the box for a wider range of compilers.
slightlynybbled/embed_with_elliot-circular_buffer,slightlynybbled/circular_buffer,slightlynybbled/circular_buffer