diff options
| author | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-08-03 00:46:21 +0500 |
|---|---|---|
| committer | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-08-03 00:46:21 +0500 |
| commit | 56f152cf57e0bd3491be74195905b863519d9fca (patch) | |
| tree | 671022de4608efbeb7efa7278d9404e8ae9b5303 /src/puzzles/puzzle.h | |
| parent | d1a1ebd54cabc6646f20f6b1b341751a2bf3c2ec (diff) | |
memory leak issues + qol stull
Diffstat (limited to 'src/puzzles/puzzle.h')
| -rw-r--r-- | src/puzzles/puzzle.h | 8 |
1 files changed, 5 insertions, 3 deletions
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 |
