In trying to port the SD980, I came upon this beautiful code:
/core/kbd.c
#ifndef SYNCHABLE_REMOTE_NOT_ENABLED
//stuff
Now, inside that ifndef code we have:
for(i=0;i<ZSTEP_TABLE_SIZE;i++){
ZSTEP_TABLE_SIZE is not defined anywhere in chdk (I searched in all the files in the zip archive).
Now, I wouldn't have a problem with that, but I think it is bad practice to do that.
Why not instead use: #ifdef SYNCHABLE_REMOTE_ENABLED ?
BTW, I didn't find SYNCHABLE_REMOTE_NOT_ENABLED anywhere in the code except in /core/kbd.c