[examples] setting up the last two integration examples and slots in the examples directory

This commit is contained in:
Allen Webster
2021-10-09 23:45:02 -07:00
parent b67dc566c6
commit 8ee69f0124
6 changed files with 58 additions and 5 deletions
+6 -1
View File
@@ -53,12 +53,17 @@ EXAMPLES:
Commentary in this example focuses on strategies for setting up an effective
metaprogram.
7. TODO
8. TODO
7. "overrides" integration/overrides.c
9. "overrides" integration/overrides.c
When including the Metadesk library into an existing codebase, the overrides
system in the library will let you plug in existing implementations you have
for many of the basic requirements of the library. This can also be useful if
you want to make your program CRT-free, or direct metadesk allocations to your
own custom allocator.
10. TODO
11. TODO
+18
View File
@@ -0,0 +1,18 @@
/*
** Example: memory management
**
** TODO
*/
//~ includes and globals //////////////////////////////////////////////////////
#include "md.h"
#include "md.c"
//~ main //////////////////////////////////////////////////////////////////////
int
main(int argc, char **argv)
{
// TODO(allen)
}
+18
View File
@@ -0,0 +1,18 @@
/*
** Example: multi threaded parse
**
** TODO
*/
//~ includes and globals //////////////////////////////////////////////////////
#include "md.h"
#include "md.c"
//~ main //////////////////////////////////////////////////////////////////////
int
main(int argc, char **argv)
{
// TODO(allen)
}
+1 -1
View File
@@ -24,4 +24,4 @@ main(int argc, char **argv)
// print the results
MD_PrintDebugDumpFromNode(stdout, parse.node, MD_GenerateFlags_All);
}
}