summaryrefslogtreecommitdiffhomepage
path: root/src/build/mkgamedata.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-01-06 23:04:26 +0000
committerMichael Smith <mikesmiffy128@gmail.com>2022-01-06 23:04:26 +0000
commit6dac66008d2617d7eb4bd6efa09a2c7de47944b4 (patch)
tree6c8038e9857d8f6ce64e636009aa06d4ff8289e6 /src/build/mkgamedata.c
parent0da31e9f420e573621712420bf71eb1ca8f6d07f (diff)
Fix build scripts and codegen on Linux
SST itself doesn't build, but it's a start! Really interesting is the declaration after a switch label. That's of course invalid, but Clang on Windows never complained. I guess it's an MSVC extension, eh? How annoying. Also, haha yes the script wasn't even executable. Forgot to update-index when I remade the repo, I guess...
Diffstat (limited to 'src/build/mkgamedata.c')
-rw-r--r--src/build/mkgamedata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build/mkgamedata.c b/src/build/mkgamedata.c
index bd7b2d5..ca2e130 100644
--- a/src/build/mkgamedata.c
+++ b/src/build/mkgamedata.c
@@ -86,7 +86,7 @@ static noreturn badparse(struct parsestate *state, const char *e) {
static void kv_cb(enum kv_token type, const char *p, uint len, void *ctxt) {
struct parsestate *state = ctxt;
switch (type) {
- case KV_IDENT: case KV_IDENT_QUOTED:
+ case KV_IDENT: case KV_IDENT_QUOTED:;
char *k = malloc(len + 1);
if (!k) die("couldn't allocate key string");
memcpy(k, p, len);