As with all files, rename the file, adding a preceding l (the letter after k and before m)
| line# | action |
| 1 | replace #include "includes.h" with #include "lincludes.h" |
| 19 | replace void TProcSbf(void) with void *TProcSbf(void *arg) |
| 22 | insert rtl_irqstate_t state; after int sv=1; |
| 22 | insert pthread_setfp_np (pthread_self(), 1); |
| 22 | insert sbfc = TRUE; |
| 22 | insert struct timespec rqtp; |
| 22 | insert rqtp.tv_sec = 1; |
| 22 | insert rqtp.tv_nsec = 0; |
| 43 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 45 | ?replace ValidateAlmanac(sv); with ValidateAlmanac(sv, (int)arg); |
| 46 | replace ValidateEphemeris(sv); with ValidateEphemeris(sv, (int)arg); |
| 49 | ?replace ExtrapolationUpdate(satellite,ALMANAC); with ExtrapolationUpdate(satellite,ALMANAC,(int)arg); |
| 51 | replace ExtrapolationUpdate(satellite,ALMANAC); with ExtrapolationUpdate(satellite,ALMANAC,(int)arg); |
| 53 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |
| 65 | replace disable(); with rtl_no_interrupts(state); |
| 67 | replace enable(); with rtl_restore_interrupts(state); |
| 83 | replace disable(); with rtl_no_interrupts(state); |
| 90 | replace enable(); with rtl_restore_interrupts(state); |
| 90 | replace SetReceiverClock(sv,word0,word1,word2,syncTIC); with SetReceiverClock(sv,word0,word1,word2,syncTIC, (int)arg); |
| 106 | replace ProcessSubframe(sfbuff[psf].channel,sfbuff[psf].SV, sfbuff[psf].subframe,sfbuff[psf].dataTIC); with ProcessSubframe(sfbuff[psf].channel,sfbuff[psf].SV, sfbuff[psf].subframe,sfbuff[psf].dataTIC, (int)arg); |
| 115 | replace disable(); with rtl_no_interrupts(state); |
| 122 | replace enable(); with rtl_restore_interrupts(state); |
| 133 | replace Suspend(10,start_tic); with nanosleep(&rqtp, NULL); |
| 134 | insert sbfc = TRUE; |
| 157 | replace void ProcessSubframe(short chan, short sv, unsigned long *d, unsigned long dataTIC) with void ProcessSubframe(short chan, short sv, unsigned long *d, unsigned long dataTIC, int arg) |
| 210 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 213 | replace TICToGpsTime(dataTIC,&g); with TICToGpsTime(dataTIC,&g, (int)arg); |
| 234 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |
| 299 | replace GPSTime(&g); with GPSTime(&g, (int)arg); |
| 305 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 325 | replace ExtrapolationUpdate(almsv+1,ALMANAC); with ExtrapolationUpdate(almsv+1,ALMANAC,(int)arg); |
| 326 | replace SVPredicts(almsv+1); with SVPredicts(almsv+1, (int)arg); |
| 329 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |
| 377 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 397 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |
| 449 | replace GPSTime(&g); with GPSTime(&g, (int)arg); |
| 455 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 475 | replace ExtrapolationUpdate(almsv+1,ALMANAC); with ExtrapolationUpdate(almsv+1,ALMANAC,(int)arg); |
| 476 | replace SVPredicts(almsv+1); with SVPredicts(almsv+1, (int)arg); |
| 479 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |
| 498 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 590 | replace ExtrapolationUpdate(almsv+1,EPHEMERIS); with ExtrapolationUpdate(almsv+1,EPHEMERIS,(int)arg); |
| 591 | replace SVPredicts(almsv+1); with SVPredicts(almsv+1, (int)arg); |
| 600 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |
| 624 | replace void SetReceiverClock(int sv, unsigned long Word0, unsigned long Word1, unsigned long Word2, unsigned long dataTIC) with void SetReceiverClock(int sv, unsigned long Word0, unsigned long Word1, unsigned long Word2, unsigned long dataTIC, int arg) |
| 668 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 704 | replace GPSTime(&g); with GPSTime(&g, (int)arg); |
| 770 | ?replace ValidateAlmanac(prn); with ValidateAlmanac(prn, (int)arg); |
| 771 | replace ValidateEphemeris(prn); with ValidateEphemeris(prn, (int)arg); |
| 774 | ?replace ExtrapolationUpdate(prn,ALMANAC); with ExtrapolationUpdate(prn,ALMANAC,(int)arg); |
| 776 | replace ExtrapolationUpdate(satellite,ALMANAC); with ExtrapolationUpdate(prn,ALMANAC,(int)arg); |
| 778 | replace SVPredicts(prn); with SVPredicts(prn, (int)arg); |
| 783 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |