From faef2d81c224b715c5e429d04c59ba50fb772d9e Mon Sep 17 00:00:00 2001 From: thing1 Date: Tue, 15 Oct 2024 10:19:30 +0100 Subject: added a stupid amount of work to zpy, and started the document work in latex rather than groff --- .../code2/examples/helloworldadv/helloworld.c | 4 ++++ .../code2/examples/helloworldadv/helloworld.zpy | 3 +++ .../lucas-standen-NEA/code2/examples/helloworldadv/main | Bin 0 -> 19440 bytes .../code2/examples/helloworldadv/main.c | 4 ++++ .../code2/examples/helloworldadv/main.zpy | 3 +++ .../code2/examples/helloworldadv/zpybuild.sh | 4 ++++ 6 files changed, 18 insertions(+) create mode 100644 comp/lucas-standen-NEA/code2/examples/helloworldadv/helloworld.c create mode 100644 comp/lucas-standen-NEA/code2/examples/helloworldadv/helloworld.zpy create mode 100755 comp/lucas-standen-NEA/code2/examples/helloworldadv/main create mode 100644 comp/lucas-standen-NEA/code2/examples/helloworldadv/main.c create mode 100644 comp/lucas-standen-NEA/code2/examples/helloworldadv/main.zpy create mode 100644 comp/lucas-standen-NEA/code2/examples/helloworldadv/zpybuild.sh (limited to 'comp/lucas-standen-NEA/code2/examples/helloworldadv') diff --git a/comp/lucas-standen-NEA/code2/examples/helloworldadv/helloworld.c b/comp/lucas-standen-NEA/code2/examples/helloworldadv/helloworld.c new file mode 100644 index 0000000..f1e746f --- /dev/null +++ b/comp/lucas-standen-NEA/code2/examples/helloworldadv/helloworld.c @@ -0,0 +1,4 @@ +#include +void helloworld(){ +printstr("hello world\n"); +} diff --git a/comp/lucas-standen-NEA/code2/examples/helloworldadv/helloworld.zpy b/comp/lucas-standen-NEA/code2/examples/helloworldadv/helloworld.zpy new file mode 100644 index 0000000..9e3553b --- /dev/null +++ b/comp/lucas-standen-NEA/code2/examples/helloworldadv/helloworld.zpy @@ -0,0 +1,3 @@ +(defun helloworld void) + (printstr "hello world\n") +(endfun) diff --git a/comp/lucas-standen-NEA/code2/examples/helloworldadv/main b/comp/lucas-standen-NEA/code2/examples/helloworldadv/main new file mode 100755 index 0000000..593fe40 Binary files /dev/null and b/comp/lucas-standen-NEA/code2/examples/helloworldadv/main differ diff --git a/comp/lucas-standen-NEA/code2/examples/helloworldadv/main.c b/comp/lucas-standen-NEA/code2/examples/helloworldadv/main.c new file mode 100644 index 0000000..a2b6927 --- /dev/null +++ b/comp/lucas-standen-NEA/code2/examples/helloworldadv/main.c @@ -0,0 +1,4 @@ +#include +int main(){ +helloworld(); +} diff --git a/comp/lucas-standen-NEA/code2/examples/helloworldadv/main.zpy b/comp/lucas-standen-NEA/code2/examples/helloworldadv/main.zpy new file mode 100644 index 0000000..05b6155 --- /dev/null +++ b/comp/lucas-standen-NEA/code2/examples/helloworldadv/main.zpy @@ -0,0 +1,3 @@ +(defun main int) + (helloworld) +(endfun) diff --git a/comp/lucas-standen-NEA/code2/examples/helloworldadv/zpybuild.sh b/comp/lucas-standen-NEA/code2/examples/helloworldadv/zpybuild.sh new file mode 100644 index 0000000..26424d7 --- /dev/null +++ b/comp/lucas-standen-NEA/code2/examples/helloworldadv/zpybuild.sh @@ -0,0 +1,4 @@ +#!/bin/sh +zpy ./main.zpy -c -o main.c +zpy ./helloworld.zpy -c -o helloworld.c +cc main.c helloworld.c /usr/local/share/zpylib/zpylib.o -o main -I/usr/local/share/zpylib/include -Wno-implicit-function-declaration -- cgit v1.2.3