コード例 #1
0
ファイル: load-git.c プロジェクト: AresDice/subsurface
/* 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));
}
コード例 #2
0
ファイル: load-git.c プロジェクト: AresDice/subsurface
static void picture_parser(char *line, struct membuffer *str, void *_pic)
{
	match_action(line, str, _pic, picture_action, ARRAY_SIZE(picture_action));
}
コード例 #3
0
ファイル: load-git.c プロジェクト: AresDice/subsurface
static void settings_parser(char *line, struct membuffer *str, void *_unused)
{
	match_action(line, str, NULL, settings_action, ARRAY_SIZE(settings_action));
}
コード例 #4
0
ファイル: load-git.c プロジェクト: AresDice/subsurface
static void trip_parser(char *line, struct membuffer *str, void *_trip)
{
	match_action(line, str, _trip, trip_action, ARRAY_SIZE(trip_action));
}
コード例 #5
0
ファイル: load-git.c プロジェクト: AresDice/subsurface
static void dive_parser(char *line, struct membuffer *str, void *_dive)
{
	match_action(line, str, _dive, dive_action, ARRAY_SIZE(dive_action));
}
コード例 #6
0
ファイル: load-git.c プロジェクト: binape/subsurface
static void site_parser(char *line, struct membuffer *str, void *_ds)
{
	match_action(line, str, _ds, site_action, ARRAY_SIZE(site_action));
}