mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-06 15:48:47 +00:00
Sync build scripts.
This commit is contained in:
@@ -23,6 +23,7 @@ $CC $compile_flags ../samples/old_style_custom_layer.c -o old_style_custom_layer
|
|||||||
$CC $compile_flags ../samples/static_site_generator/static_site_generator.c -o static_site_generator
|
$CC $compile_flags ../samples/static_site_generator/static_site_generator.c -o static_site_generator
|
||||||
$CC $compile_flags ../samples/output_parse/output_parse.c -o output_parse
|
$CC $compile_flags ../samples/output_parse/output_parse.c -o output_parse
|
||||||
$CC $compile_flags ../samples/c_code_generation.c -o c_code_generation
|
$CC $compile_flags ../samples/c_code_generation.c -o c_code_generation
|
||||||
|
$CC $compile_flags ../samples/node_errors/node_errors.c -o node_errors
|
||||||
echo
|
echo
|
||||||
echo ~~~ Build All Tests ~~~
|
echo ~~~ Build All Tests ~~~
|
||||||
$CC $compile_flags ../tests/sanity_tests.c -o sanity_tests
|
$CC $compile_flags ../tests/sanity_tests.c -o sanity_tests
|
||||||
@@ -56,3 +57,10 @@ echo ~~~ Running C Code Generation Sample ~~~
|
|||||||
pushd build
|
pushd build
|
||||||
./c_code_generation
|
./c_code_generation
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo ~~~ Running Error Generation Sample ~~~
|
||||||
|
pushd build
|
||||||
|
./node_errors ../samples/node_errors/node_errors.md
|
||||||
|
popd
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ clang %compile_flags% ..\samples\old_style_custom_layer.c -o old_style_custom_la
|
|||||||
clang %compile_flags% ..\samples\static_site_generator\static_site_generator.c -o static_site_generator.exe
|
clang %compile_flags% ..\samples\static_site_generator\static_site_generator.c -o static_site_generator.exe
|
||||||
clang %compile_flags% ..\samples\output_parse\output_parse.c -o output_parse.exe
|
clang %compile_flags% ..\samples\output_parse\output_parse.c -o output_parse.exe
|
||||||
clang %compile_flags% ..\samples\c_code_generation.c -o c_code_generation.exe
|
clang %compile_flags% ..\samples\c_code_generation.c -o c_code_generation.exe
|
||||||
|
clang %compile_flags% ..\samples\node_errors\node_errors.c -o node_errors.exe
|
||||||
echo.
|
echo.
|
||||||
echo ~~~ Build All Tests ~~~
|
echo ~~~ Build All Tests ~~~
|
||||||
clang %compile_flags% ..\tests\sanity_tests.c -o sanity_tests.exe
|
clang %compile_flags% ..\tests\sanity_tests.c -o sanity_tests.exe
|
||||||
@@ -58,3 +59,9 @@ echo ~~~ Running C Code Generation Sample ~~~
|
|||||||
pushd build
|
pushd build
|
||||||
c_code_generation.exe
|
c_code_generation.exe
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo ~~~ Running Error Generation Sample ~~~
|
||||||
|
pushd build
|
||||||
|
node_errors.exe %~dp0\samples\node_errors\node_errors.md
|
||||||
|
popd
|
||||||
|
|||||||
+2
-3
@@ -141,13 +141,12 @@ static void PrintRule(MD_Node *rule)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef enum OperationFlags OperationFlags;
|
typedef enum OperationFlags
|
||||||
enum OperationFlags
|
|
||||||
{
|
{
|
||||||
OperationFlag_Fill = 1<<0,
|
OperationFlag_Fill = 1<<0,
|
||||||
OperationFlag_Markup = 1<<1,
|
OperationFlag_Markup = 1<<1,
|
||||||
OperationFlag_Tag = 1<<2,
|
OperationFlag_Tag = 1<<2,
|
||||||
};
|
} OperationFlags;
|
||||||
|
|
||||||
static void Extend(MD_String8 *s, char c)
|
static void Extend(MD_String8 *s, char c)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user