I started it looking at one from boost C and and one from 8051 they was about the same tho just port names they where for 3x4 keypad.
The thing I don't get is C is not basic all them {} ; get me lost LOL. Then Mplab X I can be doing good and bang a big error.
I figured that out tho what happens is you make a change compile and it not using the code that you changed there is some kind of bug If you use the history