aboutsummaryrefslogtreecommitdiff
path: root/fbwarn/src/warn.c
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-02-25 01:54:04 +0100
committeraxtloss <axtlos@getcryst.al>2024-02-25 01:54:04 +0100
commitcab4804979e8c60cc8ccc0612b759d2c3637539f (patch)
treee2c4e90de2c73defd37d86f78b19423f5fa653be /fbwarn/src/warn.c
parente6c12b02674a04ca34e27b46f6ca3261fca3c677 (diff)
downloadfsverify-cab4804979e8c60cc8ccc0612b759d2c3637539f.tar.gz
fsverify-cab4804979e8c60cc8ccc0612b759d2c3637539f.tar.bz2
Add initial fswarn and BVG code
Diffstat (limited to '')
-rw-r--r--fbwarn/src/warn.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/fbwarn/src/warn.c b/fbwarn/src/warn.c
new file mode 100644
index 0000000..65995d2
--- /dev/null
+++ b/fbwarn/src/warn.c
@@ -0,0 +1,30 @@
+#include "raylib.h"
+#include "parseBVG.h"
+#include <string.h>
+#include <stdlib.h>
+
+int main(void) {
+ char *str, *single, *toFree;
+ toFree = str = strdup("rectangle (x=20,y=30,\nwidth=200,\nheight=300,\ncolor='#F5A9B8')\n");
+ if (str == NULL)
+ return 1;
+ printf("Multi:\n %s", str);
+ single = multiToSingle(str);
+ printf("Single:\n %s\n", single);
+ free(toFree);
+
+ InitWindow (800, 450, "raylib");
+
+ while (!WindowShouldClose ()) {
+ BeginDrawing ();
+ ClearBackground (RAYWHITE);
+ DrawText ("TEXT", 190, 200, 20, LIGHTGRAY);
+ char *parse = strdup(single);
+ matchFunctionCall(parse);
+ EndDrawing ();
+ }
+
+ CloseWindow ();
+
+ return 0;
+}