Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
0.10
Browse files Browse the repository at this point in the history
Fixed divide by zero detection
Added IF, ELSE, ENDIF, DO, DOWHILE, LOOP, and LOOPWHILE
Fixed a malloc() and free() issue
Added 'update' and 'install' rules to Makefile
  • Loading branch information
PQCraft authored Mar 5, 2021
1 parent 4aa56f1 commit 7a8f912
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 38 deletions.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,30 @@ build32:
$(C) $(CFLAGS1) -m32 clibasic.c -o clibasic $(CFLAGS2)
chmod +x ./clibasic

update:
curl https://raw.githubusercontent.com/PQCraft/clibasic/master/clibasic.c > .tmp
rm -f clibasic.c
mv .tmp clibasic.c
curl https://raw.githubusercontent.com/PQCraft/clibasic/master/commands.c > .tmp
rm -f commands.c
mv .tmp commands.c
curl https://raw.githubusercontent.com/PQCraft/clibasic/master/functions.c > .tmp
rm -f functions.c
mv .tmp functions.c
curl https://raw.githubusercontent.com/PQCraft/clibasic/master/Makefile > .tmp
rm -f Makefile
mv .tmp Makefile

install:
if [ ! -f ./clibasic ]; then $(C) $(CFLAGS1) clibasic.c -o clibasic $(CFLAGS2); chmod +x ./clibasic; fi
sudo rm -f /usr/bin/clibasic
sudo cp ./clibasic /usr/bin/clibasic

install32:
if [ ! -f ./clibasic ]; then $(C) $(CFLAGS1) -m32 clibasic.c -o clibasic $(CFLAGS2); chmod +x ./clibasic; fi
sudo rm -f /usr/bin/clibasic
sudo cp ./clibasic /usr/bin/clibasic

run:
./clibasic

Expand Down
Loading

0 comments on commit 7a8f912

Please sign in to comment.