i am editing the program some one already made.i want help to receive the data from uart using the program.here is the interrupt program they have used.
void serial_interrupt() interrupt 4 using 1 { if(RI) { RI=0; com_tmr_rx=5; com_r_busy=1; //datas[0]=SBUF; //datas[com_r_index++]=SBUF; if(com_r_index>=34) com_r_index=0; } if(TI) { TI=0; TX_RX=0; if(com_t_index<com_t_length) { TX_RX=1; SBUF=datas[com_t_index++]; } else { com_t_index=com_t_length=0; TX_RX=0; } } }
.
I have seen files edited with tab size 4, and where the header in all files said "tab size 4". Next guy edited with other tab setting, wondering why the indent looked so strange. Third guy edited with yet another setting (while converting tabs to spaces) and wondered about the astonishing indent.
Tabs really are no good.
Also, annotate from some source code repository programs adds a fixed prefix to each line, without checking for tabs. So the initial 8-step tab will only become a 6-step or 5-step tab.
Then there is the web applications that allows you to look at source code from the repository using your web browser. How would you configure them to know what tab settings you have in the different directories?
And if you cut some lines and mail inline in the mail program?