Exemplo n.º 1
0
bool
GRecord::AppendRecordToBuffer(const char *record)
{
  const unsigned char *in = (const unsigned char *)record;

  if (!IncludeRecordInGCalc(in))
    return false;

  AppendStringToBuffer(in);
  return true;
}
Exemplo n.º 2
0
bool
GRecord::AppendRecordToBuffer(const char *in)
{
  if (!IncludeRecordInGCalc(in))
    return false;

  if (memcmp(in, "HFFTYFRTYPE:XCSOAR,XCSOAR ", 26) == 0 &&
      strstr(in + 25, " 6.5 ") != nullptr)
    /* this is XCSoar 6.5: enable the G record workaround */
    ignore_comma = false;

  AppendStringToBuffer(in);
  return true;
}