I'll start doing some kind of "save unparsed things as extended items"
thing, and the ignore rules were just there to get rid of some of the
noise from early parsing.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
sampletime(buffer, _time);
}
sampletime(buffer, _time);
}
-static void ignore(char *buffer, void *_time)
-{
-}
-
#define MATCH(pattern, fn, dest) \
match(pattern, strlen(pattern), name, len, fn, buf, dest)
#define MATCH(pattern, fn, dest) \
match(pattern, strlen(pattern), name, len, fn, buf, dest)
return;
if (MATCH(".cylinderendpressure", pressure, &dive->end_pressure))
return;
return;
if (MATCH(".cylinderendpressure", pressure, &dive->end_pressure))
return;
- if (MATCH(".divenumber", ignore, NULL))
- return;
- if (MATCH(".diveseries", ignore, NULL))
- return;
- if (MATCH(".number", ignore, NULL))
- return;
- if (MATCH(".size", ignore, NULL))
- return;
- if (MATCH(".fingerprint", ignore, NULL))
- return;
nonmatch("dive", name, buf);
}
nonmatch("dive", name, buf);
}