/* Ignore n2 percentages. There's no value in them. */
}
+static void utf8_string(char *buffer, void *_res)
+{
+ *(char **)_res = buffer;
+}
+
#define MATCH(pattern, fn, dest) \
match(pattern, strlen(pattern), name, len, fn, buf, dest)
return;
if (MATCH(".cylinderendpressure", pressure, &dive->end_pressure))
return;
+ if (MATCH(".location", utf8_string, &dive->location))
+ return;
+ if (MATCH(".notes", utf8_string, &dive->notes))
+ return;
if (MATCH(".o2", gasmix, &dive->gasmix[gasmix_index].o2))
return;