+static void nonmatch(const char *type, const char *fullname, const char *name, int size, const char *buffer)
+{
+ printf("Unable to match %s '(%.*s)%s' (%.*s)\n", type,
+ (int) (name - fullname), fullname, name,
+ size, buffer);
+}
+
+static const char *last_part(const char *name)
+{
+ const char *p = strrchr(name, '.');
+ return p ? p+1 : name;
+}
+