cleanup cg code for loops
fix typo in sqlext.h (Thanks revelator)
cleanup pick macro
cleanup code
add new header file with macros for cg internal types
cleanup cg code
fix prototypes
remove gcc warnings
remove unused variables
correct prototypes
correct prototypes
cleanup code
correct prototypes
rename some symbols to more suitable name
cleanup code
use macros for variable loop usage flag
cleanup code
cleanup code
reformat source code
remove build warning messages
properly done change