/* Sample lines start with a space or a number */ static void divecomputer_parser(char *line, struct membuffer *str, void *_dc) { char c = *line; if (c < 'a' || c > 'z') sample_parser(line, _dc); match_action(line, str, _dc, dc_action, ARRAY_SIZE(dc_action)); }
static void picture_parser(char *line, struct membuffer *str, void *_pic) { match_action(line, str, _pic, picture_action, ARRAY_SIZE(picture_action)); }
static void settings_parser(char *line, struct membuffer *str, void *_unused) { match_action(line, str, NULL, settings_action, ARRAY_SIZE(settings_action)); }
static void trip_parser(char *line, struct membuffer *str, void *_trip) { match_action(line, str, _trip, trip_action, ARRAY_SIZE(trip_action)); }
static void dive_parser(char *line, struct membuffer *str, void *_dive) { match_action(line, str, _dive, dive_action, ARRAY_SIZE(dive_action)); }
static void site_parser(char *line, struct membuffer *str, void *_ds) { match_action(line, str, _ds, site_action, ARRAY_SIZE(site_action)); }