-/* $NetBSD: cgram.c,v 1.22 2021/04/29 20:17:20 rillig Exp $ */
+/* $NetBSD: cgram.c,v 1.23 2021/05/01 20:29:23 rillig Exp $ */
/*-
* Copyright (c) 2013, 2021 The NetBSD Foundation, Inc.
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.c,v 1.22 2021/04/29 20:17:20 rillig Exp $");
+__RCSID("$NetBSD: cgram.c,v 1.23 2021/05/01 20:29:23 rillig Exp $");
#endif
#include <assert.h>
}
static void
-stringarray_cleanup(struct stringarray *a)
+stringarray_done(struct stringarray *a)
{
for (size_t i = 0; i < a->num; i++)
free(a->v[i].s);
}
static void
-clean_up(void)
+done(void)
{
endwin();
- stringarray_cleanup(&sollines);
- stringarray_cleanup(&lines);
+ stringarray_done(&sollines);
+ stringarray_done(&lines);
}
init(argc > 1 ? argv[1] : NULL);
loop();
- clean_up();
+ done();
}