Skip to content

Commit 822c297

Browse files
committed
Added library definitions for -l, updated and fixed -? dialog, added darr.c and darr.h for dynamic void pointer table, improved switch statement greatly for parameter discection, improved print error - tells you what file errored (if any), ensured code format, swapped parameter setting to add a -b which lets you specify when parameters get loaded into the environment for support with the added -l switch, added -l switch which executes files preemptively (no support for setting result to variables yet), rewrote the code for -D switch (globals) to be more efficient, changed where the copywrite printed
1 parent 838e1f2 commit 822c297

File tree

3 files changed

+213
-154
lines changed

3 files changed

+213
-154
lines changed

build.bat

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ set resdir=..\res
99
cd src
1010

1111
rem Compile everything release w/ additions
12-
gcc -std=gnu99 -Wall -O2 -g0 -DLUACON_ADDITIONS -D__USE_MINGW_ANSI_STDIO=1 -c console.c consolew.c additions.c
12+
gcc -std=gnu99 -Wall -O2 -g0 -DLUACON_ADDITIONS -D__USE_MINGW_ANSI_STDIO=1 -c console.c consolew.c additions.c darr.c
1313

1414
rem Link luaw.exe
15-
gcc -std=gnu99 -s -Wall -O2 -g0 -o lua_add.exe console.o additions.o -llua
15+
gcc -std=gnu99 -s -Wall -O2 -g0 -o lua_add.exe console.o additions.o darr.o -llua
1616

1717
rem Link lua.exe
18-
gcc -std=gnu99 -s -Wall -O2 -g0 -o luaw_add.exe consolew.o additions.o -llua
18+
gcc -std=gnu99 -s -Wall -O2 -g0 -o luaw_add.exe consolew.o additions.o darr.o -llua
1919

2020
rem Compile everything release w/o additions
21-
gcc -std=gnu99 -Wall -O2 -g0 -D__USE_MINGW_ANSI_STDIO=1 -c console.c consolew.c
21+
gcc -std=gnu99 -Wall -O2 -g0 -D__USE_MINGW_ANSI_STDIO=1 -c console.c consolew.c darr.c
2222

2323
rem Link luaw.exe
24-
gcc -std=gnu99 -s -Wall -O2 -g0 -o lua.exe console.o -llua
24+
gcc -std=gnu99 -s -Wall -O2 -g0 -o lua.exe console.o darr.o -llua
2525

2626
rem Link lua.exe
27-
gcc -std=gnu99 -s -Wall -O2 -g0 -o luaw.exe consolew.o -llua
27+
gcc -std=gnu99 -s -Wall -O2 -g0 -o luaw.exe consolew.o darr.o -llua
2828

2929
if EXIST %root% ( rmdir /S /Q %root% )
3030
mkdir %root%

0 commit comments

Comments
 (0)