Ticket #4: allflags.patch

File allflags.patch, 1.2 KB (added by johansen, 14 years ago)
  • rtcm3torinex.c

    diff -uprN orig/rtcm3torinex.c new/rtcm3torinex.c
    old new void HandleHeader(struct RTCM3ParserData  
    925925{
    926926#ifdef NO_RTCM3_MAIN
    927927  int i;
     928  if(Parser->allflags == 0)
     929    Parser->allflags = ~0;
    928930  if(Parser->rinex3)
    929931  {
    930932#define CHECKFLAGSNEW(a, b, c) \
     933    if(Parser->allflags & GNSSDF_##b##DATA) \
    931934    { \
    932935      Parser->dataflag##a[Parser->numdatatypes##a] = GNSSDF_##b##DATA; \
    933936      Parser->datapos##a[Parser->numdatatypes##a] = GNSSENTRY_##b##DATA; \
    void HandleHeader(struct RTCM3ParserData  
    970973  else
    971974  {
    972975#define CHECKFLAGS(a, b) \
     976    if(Parser->allflags & GNSSDF_##a##DATA) \
    973977    { \
    974978      if(data[RINEXENTRY_##b##DATA]) \
    975979      { \
  • rtcm3torinex.h

    diff -uprN orig/rtcm3torinex.h new/rtcm3torinex.h
    old new struct RTCM3ParserData {  
    219219  double antH;
    220220  char   antenna[256+1];
    221221  int    blocktype;
     222  int    allflags;
    222223#endif /* NO_RTCM3_MAIN */
    223224  int    datapos[RINEXENTRY_NUMBER];
    224225  int    dataflag[RINEXENTRY_NUMBER];