Changeset 5359 in ntrip for trunk/rtcm3torinex


Ignore:
Timestamp:
Aug 26, 2013, 10:58:35 AM (7 years ago)
Author:
stoecker
Message:

unify code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rtcm3torinex/lib/rtcm3torinex.c

    r5358 r5359  
    21792179  if(Parser->rinex3)
    21802180  {
    2181 #define CHECKFLAGSNEW(a, b, c) \
    2182     if(Parser->allflags & GNSSDF_##b##DATA) \
    2183     { \
    2184       Parser->info[RTCM3_MSM_##a].flags[Parser->info[RTCM3_MSM_GPS].numtypes] = GNSSDF_##b##DATA; \
    2185       Parser->info[RTCM3_MSM_##a].pos[Parser->info[RTCM3_MSM_GPS].numtypes] = GNSSENTRY_##b##DATA; \
    2186       ++Parser->info[RTCM3_MSM_##a].numtypes; \
    2187     }
    2188 
     2181    int flags = Parser->allflags;
    21892182    CHECKFLAGSNEW(GPS, C1,  C1C)
    21902183    CHECKFLAGSNEW(GPS, L1C, L1C)
     
    22222215  else
    22232216  {
    2224 #define CHECKFLAGS(a, b) \
    2225     if(Parser->allflags & GNSSDF_##a##DATA) \
    2226     { \
    2227       if(data[RINEXENTRY_##b##DATA]) \
    2228       { \
    2229         Parser->info[RTCM3_MSM_GPS].flags[data[RINEXENTRY_##b##DATA]-1] = GNSSDF_##a##DATA; \
    2230         Parser->info[RTCM3_MSM_GPS].pos[data[RINEXENTRY_##b##DATA]-1] = GNSSENTRY_##a##DATA; \
    2231       } \
    2232       else \
    2233       { \
    2234         Parser->flags[Parser->info[RTCM3_MSM_GPS].numtypes] = GNSSDF_##a##DATA; \
    2235         Parser->pos[Parser->info[RTCM3_MSM_GPS].numtypes] = GNSSENTRY_##a##DATA; \
    2236         data[RINEXENTRY_##b##DATA] = ++Parser->info[RTCM3_MSM_GPS].numtypes; \
    2237       } \
    2238     }
    2239 
     2217    int flags = Parser->allflags;
    22402218    int data[RINEXENTRY_NUMBER];
    22412219    for(i = 0; i < RINEXENTRY_NUMBER; ++i) data[i] = 0;
Note: See TracChangeset for help on using the changeset viewer.