From 5cc14adf4f08ba85f3f4bf7600306b2c281fa91b Mon Sep 17 00:00:00 2001 From: Marrub Date: Fri, 5 Jun 2015 13:46:02 -0400 Subject: [PATCH] WHOOPS --- Makefile | 4 ++-- src/lt.c | 2 +- src/lt.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f6ec608..194c16e 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ all: mkdir -p bin - mingw32-gcc --std=c99 -g -ggdb -liconv -c -o bin/lt.o src/lt.c -liconv - mingw32-gcc -shared -g -ggdb -liconv -o bin/LoveToken.dll bin/lt.o -Wl,--out-implib,bin/libLoveToken.a -liconv + mingw32-gcc --std=c99 -g -ggdb -c -o bin/lt.o src/lt.c -liconv + mingw32-gcc -shared -g -ggdb -o bin/LoveToken.dll bin/lt.o -Wl,--out-implib,bin/libLoveToken.a -liconv #mingw32-gcc --std=c99 -g -ggdb -c -o bin/lt.o -DI_FUCKING_HATE_WINDOWS src/lt.c #mingw32-gcc -shared -g -ggdb -o bin/LoveToken.dll bin/iconv.o bin/lt.o -Wl,--out-implib,bin/libLoveToken.a #cp bin/LoveToken.dll test/LoveToken.dll diff --git a/src/lt.c b/src/lt.c index 9387388..17fb927 100644 --- a/src/lt.c +++ b/src/lt.c @@ -34,7 +34,7 @@ static iconv_t icDesc; static bool assertError = false; static const char *assertString; -const char *LT_TkNames[] = { +char *LT_TkNames[] = { // [marrub] So, this was an interesting bug. This was completely misordered from the enum. // As can be guessed, this caused many issues. Seriously, all of them. "TOK_Colon", "TOK_Comma", "TOK_Div", "TOK_Mod", "TOK_Mul", "TOK_Query", diff --git a/src/lt.h b/src/lt.h index b78f664..e6e2cc7 100644 --- a/src/lt.h +++ b/src/lt.h @@ -115,7 +115,7 @@ LT_Token LT_EXPORT LT_GetToken(); * Don't include these into FFI declarations. */ -extern const char *LT_EXPORT LT_TkNames[]; +extern char *LT_EXPORT LT_TkNames[]; #endif