summaryrefslogtreecommitdiffstats
path: root/src/cc4group.h
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2019-04-20 01:54:54 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2019-04-20 02:43:37 +0200
commit43931c7e187bda85e2be12bccb14bd826a6c34c0 (patch)
tree1987ad09d84049a87bbf482af7569b0f93e7d5fe /src/cc4group.h
parent712a61956cdd0e2e2907fb730b6dde9b5cc3524a (diff)
downloadcc4group-43931c7e187bda85e2be12bccb14bd826a6c34c0.tar.gz
cc4group-43931c7e187bda85e2be12bccb14bd826a6c34c0.zip
Add custom memory management strategies to cppc4group
Diffstat (limited to 'src/cc4group.h')
-rw-r--r--src/cc4group.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cc4group.h b/src/cc4group.h
index 780c50e..2309338 100644
--- a/src/cc4group.h
+++ b/src/cc4group.h
@@ -44,7 +44,7 @@
// ...it will be a great help in debugging mistakes that are made by the programmer
// for lazy writers or just some testing, the nature of the API actually makes it possible to just chain a bunch of API calls with && and...
// ...thanks to short-circuiting it will stop exactly at the error and the whole expression will return false and the error information can be retrieved as usual
-// sadly, this trick didn't seem to make it into any example, as they are written to output additional, more user-friendly, information together with the error message
+// this can be seen in the cppc4group_memorymanagement example (and works the same for cc4group)
// - finally (and i still forgot some other general aspect used for sure), because the return value of the functions is already used for the success-bool, ...
// ...functions that should actually return some real data have one (or more) pointer-arguments where they store the returned information
// - if you are such a patient reader and you made it here, you may now look at some of the examples (in the examples folder)
@@ -146,7 +146,7 @@ typedef struct {
void* (*start)(void* const data, const size_t size, void* const arg);
void (*end)(void* const data, void* const arg);
void* arg;
-} const CC4Group_MemoryManagement_t;
+} CC4Group_MemoryManagement_t;
typedef CC4Group_MemoryManagement_t* CC4Group_MemoryManagement;