peter green wrote: > Vitaliy wrote: >> Sorry, what does "#define if while" do? >> > It makes the C compiler interpret if as while of course. This means that > either the code will fail to compile for no obvious reason or that the > code will misbehave big time. > > "#define while if" is even worse because it's less likely to cause > compile errors and more likely to cause code that doesn't behave right. For bonus points, add it to one of the runtime library headers :) stdio.h, stdlib.h and crew are used in almost every C program. For MPLAB-C18? Why, you butcher stddef.h, of course. The rest of the RTL (or most of it at least) pulls this in, thus increasing the evilness :) For additional bonus points, hide the #define in a bank of function definitions or other #defines. Do not, however, expect your workmates/colleagues to be friends with you after this... -- Phil. piclist@philpem.me.uk http://www.philpem.me.uk/ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist