From 430d4aa12387337161d217a5bb666b4fc7ab8f6e Mon Sep 17 00:00:00 2001 From: Daniel Walker Date: Mon, 21 Aug 2023 22:52:16 -0400 Subject: [PATCH] scrGroup is now a pointer typedef --- README.md | 6 ++--- changelog | 4 ++++ docs/globals.html | 8 +++---- docs/globals_func.html | 6 ++--- docs/globals_type.html | 2 +- docs/index.html | 24 ++++++++++---------- docs/run_8h.html | 44 ++++++++++++++++++------------------ docs/run_8h_source.html | 20 ++++++++-------- docs/scrutiny_8h_source.html | 2 +- docs/search/all_4.js | 8 +++---- docs/search/functions_0.js | 6 ++--- docs/search/typedefs_0.js | 2 +- include/scrutiny/run.h | 10 ++++---- include/scrutiny/scrutiny.h | 2 +- src/groups.c | 10 ++++---- src/internal.h | 6 ++--- src/run.c | 14 ++++++------ tests/test_basic.c | 2 +- tests/test_ctx.c | 2 +- tests/test_fail_fast.c | 2 +- tests/test_monkeypatch.c | 2 +- tests/test_verbose.c | 2 +- 22 files changed, 94 insertions(+), 90 deletions(-) diff --git a/README.md b/README.md index 6d8e6be..b1d8a23 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ All of the functionality can be accessed by Every test must be part of a group. You can create a group by ```c -scrGroup *group; +scrGroup group; group = scrGroupCreate(NULL, NULL); ``` @@ -170,7 +170,7 @@ The signature of `scrGroupAddTest` is ```c void -scrGroupAddTest(scrGroup *group, const char *name, scrTestFn test_fn, const scrTestOptions *options); +scrGroupAddTest(scrGroup group, const char *name, scrTestFn test_fn, const scrTestOptions *options); ``` where @@ -265,7 +265,7 @@ and then patch `malloc` with ```c bool -scrGroupPatchFunction(scrGroup *group, const char *func_name, const char *file_substring, void *new_func); +scrGroupPatchFunction(scrGroup group, const char *func_name, const char *file_substring, void *new_func); ``` Here, `new_func` would be a function pointer to `fake_malloc`. E.g., diff --git a/changelog b/changelog index a50295e..175d4e8 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,7 @@ +0.7.0: + - Monkeypatching can now be selectively applied to ELF files. + - scrGroup is now a pointer typedef. + 0.6.2: - Fixed an integer comparison error for i386 builds. diff --git a/docs/globals.html b/docs/globals.html index 42435e0..b17bf3b 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -104,11 +104,11 @@

- s -