From 3f1344e5968a6b0d4f9d475ef4d0f370f35bdf61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sat, 10 Oct 2020 16:06:08 +0200 Subject: [PATCH] Add tcc --- README.md | 15 ++++++++------- make.sh | 6 ++++++ raycastlib.h | 11 +++++++---- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index bdc008f..1b2973e 100644 --- a/README.md +++ b/README.md @@ -69,13 +69,13 @@ lines of code (80 column wrapping, a lot of empty lines): compiled: -| binary | size | FPS | resolution | RAM usage | -| -------------------- | ------------------------ | ---- | ---------- | ---------- | -| GNU/Linux, SDL | TODO (gcc), TODO (clang) | TODO | TODO | TODO | -| GNU/Linux, terminal | TODO (gcc), TODO (clang) | TODO | TODO | TODO | -| Pokitto | TODO | TODO | TODO | TODO | -| Gamebuino Meta | TODO | TODO | TODO | TODO | -| browser | TODO (JS script) | TODO | TODO | TODO | +| binary | size | FPS | resolution | RAM usage | +| -------------------- | ------------------------------------ | ---- | ---------- | ---------- | +| GNU/Linux, SDL | TODO (gcc), TODO (clang), TODO (tcc) | TODO | TODO | TODO | +| GNU/Linux, terminal | TODO (gcc), TODO (clang), TODO (tcc) | TODO | TODO | TODO | +| Pokitto | TODO | TODO | TODO | TODO | +| Gamebuino Meta | TODO | TODO | TODO | TODO | +| browser | TODO (JS script) | TODO | TODO | TODO | system requirements: @@ -317,3 +317,4 @@ I therefore release everything in this repository under CC0 1.0 (public domain, I would like to ask you, without it being any requirement at all, to please support free software and free culture by sharing at least some of your own work in a similar way I do with this project. If you'd like to support me or just read something about me and my projects, visit my site: [www.tastyfish.cz](http://www.tastyfish.cz/). + diff --git a/make.sh b/make.sh index b49c909..4b13378 100755 --- a/make.sh +++ b/make.sh @@ -20,6 +20,12 @@ COMPILER='g++' if [ $# -eq 2 ]; then COMPILER=$2 + + if [ $2 == "tcc" ]; then # you'll probably want to modify this + C_FLAGS="${C_FLAGS} -L/usr/lib/x86_64-linux-gnu/pulseaudio/ + -I/home/tastyfish/git/tcc/tcc-0.9.27/include + -I/usr/lib/gcc/x86_64-linux-gnu/8/include/" + fi fi echo "compiling" diff --git a/raycastlib.h b/raycastlib.h index 4c32116..b4f6ffb 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -26,7 +26,11 @@ author: Miloslav "drummyfish" Ciz license: CC0 1.0 - version: 0.908 + version: 0.908d + + Version numbering: major.minor[d], id 'd' is appended, this is a + in-development version based on the previous stable major.minor version. Two + 'd' versions with the same version number, .e.g. 1.0d, may be different. */ #include @@ -840,7 +844,7 @@ void RCL_castRayMultiHit(RCL_Ray ray, RCL_ArrayFunction arrayFunc, CORRECT(X,y) -#endif +#endif // RCL_RECTILINEAR } else { @@ -864,8 +868,7 @@ void RCL_castRayMultiHit(RCL_Ray ray, RCL_ArrayFunction arrayFunc, #undef CORRECT - // ^ / 4 is here to prevent overflow -#endif +#endif // RCL_RECTILINEAR } #if !RCL_RECTILINEAR