From 56f152cf57e0bd3491be74195905b863519d9fca Mon Sep 17 00:00:00 2001 From: Physick <96335032+DegustatorPonos@users.noreply.github.com> Date: Mon, 3 Aug 2026 00:46:21 +0500 Subject: memory leak issues + qol stull --- src/puzzles/puzzle.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/puzzles/puzzle.h') diff --git a/src/puzzles/puzzle.h b/src/puzzles/puzzle.h index 20193ca..70c6cad 100644 --- a/src/puzzles/puzzle.h +++ b/src/puzzles/puzzle.h @@ -56,11 +56,9 @@ typedef struct { Test *Tests; } Puzzle; -Puzzle *ReadPuzzleFromFile(const char *path); - -void FreePuzzle(Puzzle *self); /// A prebuilt puzzle. Used for debuging Puzzle *GetTestPuzzle(); +Puzzle *ReadPuzzleFromFile(const char *path); typedef struct { char *stdout_sb; @@ -70,6 +68,10 @@ typedef struct { // Don't put anything in out_res, it will be overriten. // The stdout of the VM will be there SubmitionResult *SubmitSolution(Puzzle *self, char *script); + +void PrintPuzzle(Puzzle *puzzle); + void FreeSunmitionResult(SubmitionResult *res); +void FreePuzzle(Puzzle *self); #endif // PUZZLE_H -- cgit v1.3