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" |
| 20 | insert rtl_irqstate_t state; after { |
| 21 | replace disable(); with rtl_no_interrupts(state); |
| 22 | replace enable(); with rtl_restore_interrupts(state); |
| 42 | replace void TICToReceiverTime(unsigned long curTIC, gpstimestruc *g) with void TICToReceiverTime(unsigned long curTIC, gpstimestruc *g, int arg) |
| 44 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 47 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |
| 79 | replace void TICToGpsTime(unsigned long curTIC, gpstimestruc *g) with void TICToGpsTime(unsigned long curTIC, gpstimestruc *g, int arg) |
| 81 | replace TICToReceiverTime(curTIC,g); with TICToReceiverTime(curTIC,g, (int)arg); |
| 85 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 90 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |
| 471 | replace void GpsTimeToUTCDate(gpstimestruc *g, timestruc *t) with void GpsTimeToUTCDate(gpstimestruc *g, timestruc *t, int arg) |
| 531 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 585 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |
| 740 | replace void UTCDateToGpsTime(timestruc *t, gpstimestruc *g) with void UTCDateToGpsTime(timestruc *t, gpstimestruc *g, int arg) |
| 805 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 872 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |
| 913 | replace the function PosStrToLatLonHgt(char *s, llhstruc *llh)
with int PosStrToLatLonHgt(double *cv, llhstruc *llh) { double templat,templon,temphgt; int i = 0; /* Pick up the latitude degrees. */ templat = cv[i]; if(fabs(templat)>90.0) return(FALSE); templat = templat/R2D; i++; /* Pick up the longitude degrees. */ templon = cv[i]; if(fabs(templon)>180.0) return(FALSE); templon = templon/R2D; i++; /* Find the height */ temphgt = cv[i]; llh->lat = templat; llh->lon = templon; llh->hgt = temphgt; return(TRUE); } |
| 1132 | replace void GPSTime(gpstimestruc *g) with void GPSTime(gpstimestruc *g, int arg) |
| 1142 | replace TICToGpsTime(ctic,g); with TICToGpsTime(ctic,g, (int)arg); |