Skip to content

Commit

Permalink
Added library definitions for -l, updated and fixed -? dialog, added …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
tilkinsc committed Dec 31, 2017
1 parent 838e1f2 commit 822c297
Show file tree
Hide file tree
Showing 3 changed files with 213 additions and 154 deletions.
12 changes: 6 additions & 6 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ set resdir=..\res
cd src

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

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

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

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

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

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

if EXIST %root% ( rmdir /S /Q %root% )
mkdir %root%
Expand Down
Loading

0 comments on commit 822c297

Please sign in to comment.