commit 64921f7
0uppy
·
2026-07-28 19:30:57 +0000 UTC
parent 53b51b3
cotton v0.2a - fixed SDL include paths for *BSD and fixed comment related warning - thank you emilia!! :D
2 files changed,
+5,
-6
+1,
-1
1@@ -1,7 +1,7 @@
2 #ifndef COTTONWINDOW_H
3 #define COTTONWINDOW_H
4
5-#include <SDL2/SDL.h>
6+#include <SDL.h>
7 #include <stdint.h>
8
9 typedef struct
+4,
-5
1@@ -1,10 +1,9 @@
2-// i got to eventually clean up this file a bit i feel like its very janky but i
3-// suppose i can worry about that later
4+// i got to eventually clean up this file a bit i feel like its very janky but i suppose i can worry about that later
5
6 #include "interpreter.h"
7 #include "cottonwindow.h"
8 #include "eiki.h"
9-#include <SDL2/SDL.h>
10+#include <SDL.h>
11 #include <stdio.h>
12 #include <stdlib.h>
13 #include <string.h>
14@@ -338,8 +337,8 @@ cotton_interpret(Cotton *cotton, CottonWindow *cw, FILE *file)
15
16 strip_newline(line);
17
18- // there used to be a joke about cot using # comments "like C" which was an inside joke but after this being pointed out because of genuine curiosity i decided to just change the comments in cot to //, more used to that anyway bwaa
19- if (line[0] == '\0' || line[0] == '//')
20+// there used to be a joke about cot using # comments "like C" which was an inside joke but after this being pointed out because of genuine curiosity i decided to just change the comments in cot to //, more used to that anyway bwaa
21+ if (line[0] == '\0' || (line[0] == '/' && line[1] == '/')) // thank you for the fix emilia!! :D
22 return;
23
24 char line_copy[MAX_LINE];