svcalc.c

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"
21 replace void SVPredicts(int sv) with void SVPredicts(int sv,int arg)
36 replace GPSTime(&g); with GPSTime(&g,(int)arg);
44 replace SatStateExtrapolation(sv,g,EPHEMERIS,&S); with SatStateExtrapolation(sv,g,EPHEMERIS,&S(int)arg);
46 replace SatStateExtrapolation(sv,g,ALMANAC,&S); with SatStateExtrapolation(sv,g,ALMANAC,&S(int)arg);
54 replace PROTECT++ with rec_mutex_lock((int)arg);
56 replace PROTECT--; with rec_mutex_unlock((int)arg);
159 replace PROTECT++; with rec_mutex_lock((int)arg);
164 replace PROTECT--; with rec_mutex_unlock((int)arg);
201 replace PROTECT++; with rec_mutex_lock((int)arg);
213 replace PROTECT--; with rec_mutex_unlock((int)arg);
234 replace void SatPosPrediction(int sv, gpstimestruc g, int type, SatStateExtrapStruc *SatData); with voie SatPosPrediction(int sv, gpstimestruc g, int type, SatStateExtrapStruc *SatData, int arg);
296 replace PROTECT++; with rec_mutex_lock((int)arg);
298 replace PROTECT--; with rec_mutex_unlock((int)arg);
340 replace PROTECT++; with rec_mutex_lock((int)arg);
342 replace PROTECT--; with rec_mutex_unlock((int)arg);
523 replace void ExtrapolationUpdate(int sv, int type) with void ExtrapolationUpdate(int sv, int type,int arg)
536 replace TICToGpsTime(ctic,&g); with TICToGpsTime(ctic,&g,(int)arg)
547 replace SatPosPrediction(sv,g,ALMANAC,&SatData); with SatPosPrediction(sv,g,ALMANAC,&SatData);
549 replace SatPosPrediction(sv,g,EPHEMERIS,&SatData); with SatPosPrediction(sv,g,EPHEMERIS,&SatData,(int)arg);
551 replace PROTECT++; with rec_mutex_lock((int)arg);
553 replace PROTECT--; with rec_mutex_unlock((int)arg);
574 replace void SatStateExtrapolation(int sv, gpstimestruc g, int type, SatStateStruc *S) with void SatStateExtrapolation(int sv, gpstimestruc g, int type, SatStateStruc *S,int arg)
585 replace PROTECT++; with rec_mutex_lock((int)arg);
587 replace PROTECT--; with rec_mutex_unlock((int)arg);
681 replace void UpdateSatelliteFLags(void) with void UpdateSatelliteFlags(int arg)
704 replace PROTECT++; with rec_mutex_lock((int)arg);
707 replace PROTECT--; with rec_mutex_unlock((int)arg);
714 replace PROTECT++; with rec_mutex_lock((int)arg);
732 replace PROTECT--; with rec_mutex_unlock((int)arg);
738 replace PROTECT++; with rec_mutex_lock((int)arg);
741 replace PROTECT--; with rec_mutex_unlock((int)arg);
745 replace PROTECT++; with rec_mutex_lock((int)arg);
766 replace PROTECT--; with rec_mutex_unlock((int)arg);