Name "snippets" explicitly

Earlier, this code was conceived of to test a "function" specifically,
but some future snippet could test multiple function calls, or a
subset of a function call (e.g. snippets/syscall_clock_gettime.c
already only tests one particular syscall diversion number).

Normalizing on the name "snippet" should make it easier to understand
the code going forward.
This commit is contained in:
Daniel Kahn Gillmor
2021-03-01 15:06:22 -05:00
parent 0e6b1b2460
commit 7e62881c8f
4 changed files with 15 additions and 15 deletions

View File

@@ -1,8 +1,8 @@
#include "snippets/include_headers.h"
#define where "library"
void FUNC_NAME_as_needed() {
printf(" called FUNC_NAME_as_needed() \n");
void SNIPPET_NAME_as_needed() {
printf(" called SNIPPET_NAME_as_needed() \n");
}
static __attribute__((constructor)) void init_FUNC_NAME() {
#include "snippets/FUNC_NAME.c"
static __attribute__((constructor)) void init_SNIPPET_NAME() {
#include "snippets/SNIPPET_NAME.c"
}