school

thing1's amazing school repo
Log | Files | Refs | Submodules | README

commit 997fd49c81a86696db6f62ce8c5bdde038c7cebb
parent 905588e11c174e3ac2d6bb235c7ab81532f98691
Author: thing1 <thing1@seacrossedlovers.xyz>
Date:   Tue, 24 Sep 2024 11:30:01 +0100

removed the guest book because it wasnt working

Diffstat:
Mcomp/lucas-standen-NEA/code2/examples/Makefile | 2+-
Mcomp/lucas-standen-NEA/code2/examples/fib_example | 0
Dcomp/lucas-standen-NEA/code2/examples/guestbook | 0
Dcomp/lucas-standen-NEA/code2/examples/guestbook.zpy | 9---------
Mcomp/lucas-standen-NEA/code2/examples/raylib_example | 0
Dcomp/lucas-standen-NEA/code2/examples/raylib_example.c | 0
Mcomp/lucas-standen-NEA/code2/examples/str_example | 0
Mcomp/lucas-standen-NEA/code2/stdlib/Makefile | 4++--
Mcomp/lucas-standen-NEA/code2/stdlib/zpylib.h | 2++
9 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/comp/lucas-standen-NEA/code2/examples/Makefile b/comp/lucas-standen-NEA/code2/examples/Makefile @@ -2,6 +2,6 @@ all: zpy raylib_example.zpy -o raylib_example -f -lraylib -f -lm -i raylib.h zpy fib_example.zpy -o fib_example -f -ggdb zpy str_example.zpy -o str_example -f -ggdb - zpy guestbook.zpy -o guestbook + zpy guestbook.zpy -o guestbook -f -ggdb clean: rm -rf fib_example raylib_example str_example diff --git a/comp/lucas-standen-NEA/code2/examples/fib_example b/comp/lucas-standen-NEA/code2/examples/fib_example Binary files differ. diff --git a/comp/lucas-standen-NEA/code2/examples/guestbook b/comp/lucas-standen-NEA/code2/examples/guestbook Binary files differ. diff --git a/comp/lucas-standen-NEA/code2/examples/guestbook.zpy b/comp/lucas-standen-NEA/code2/examples/guestbook.zpy @@ -1,9 +0,0 @@ -(defun main int) - (let names:char** (alloc (sizeof char**))) - (for i:int 1 (< i 256) 1) - (set names[i] (readstr)) - (printstr "name_count:") - (printint i) - (printchar '\n') - (endfor) -(endfun) diff --git a/comp/lucas-standen-NEA/code2/examples/raylib_example b/comp/lucas-standen-NEA/code2/examples/raylib_example Binary files differ. diff --git a/comp/lucas-standen-NEA/code2/examples/raylib_example.c b/comp/lucas-standen-NEA/code2/examples/raylib_example.c diff --git a/comp/lucas-standen-NEA/code2/examples/str_example b/comp/lucas-standen-NEA/code2/examples/str_example Binary files differ. diff --git a/comp/lucas-standen-NEA/code2/stdlib/Makefile b/comp/lucas-standen-NEA/code2/stdlib/Makefile @@ -1,9 +1,9 @@ CC=cc -CLFAGS=-O0 -ggdb +CFLAGS=-O0 -ggdb stdlib: cd String && make - ${CC} *.c -c ${CFLAGS} + ${CC} zpylib.c -c -o zpylib.o ${CFLAGS} clean: rm -rf *.o diff --git a/comp/lucas-standen-NEA/code2/stdlib/zpylib.h b/comp/lucas-standen-NEA/code2/stdlib/zpylib.h @@ -1,7 +1,9 @@ #include <String.h> #include <stddef.h> +#include <stdlib.h> void printstr(char *str); +void printchar(char c); void printint(int i); void printfloat(double f); char *readstr();