From d5ad18ff3b97515c12a35f00d940e62bb34b7401 Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Sun, 25 Jan 2026 19:00:17 +0000 Subject: Improving Windows support and update LICENSE --- LICENSE | 26 ++++++++++++++++++++++++++ Makefile | 2 +- README.md | 2 +- examples/graphics/mandelbrot.zc | 1 + src/main.c | 4 ++-- 5 files changed, 31 insertions(+), 4 deletions(-) diff --git a/LICENSE b/LICENSE index c5bb75b..ec6dc3b 100644 --- a/LICENSE +++ b/LICENSE @@ -19,3 +19,29 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +--- + +### zc-ape License + +MIT License + +Copyright (c) 2026 Eugene Olonov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile index 977542c..eaec55a 100644 --- a/Makefile +++ b/Makefile @@ -182,7 +182,7 @@ uninstall-ape: # Clean clean: - $(RM) $(OBJ_DIR) obj-ape $(TARGET) out.c plugins/*.so out + $(RM) $(OBJ_DIR) obj-ape $(TARGET) out.c plugins/*.so a.out* @echo "=> Clean complete!" # Test diff --git a/README.md b/README.md index 91634a3..4f4a5d7 100644 --- a/README.md +++ b/README.md @@ -1249,5 +1249,5 @@ This project uses the following third-party libraries: * **[cJSON](https://github.com/DaveGamble/cJSON)** (MIT License): Used for JSON parsing and generation in the Language Server. * Copyright (c) 2009-2017 Dave Gamble and cJSON contributors -* **[zc-ape](https://github.com/OEvgeny/zc-ape)** (MIT License): The original Actually Portable Executable port of Zen-C. The APE integration in this repository is based on this work by [OEvgeny](https://github.com/OEvgeny). +* **[zc-ape](https://github.com/OEvgeny/zc-ape)** (MIT License): The original Actually Portable Executable port of Zen-C by [Eugene Olonov](https://github.com/OEvgeny). * **[Cosmopolitan Libc](https://github.com/jart/cosmopolitan)** (ISC License): The foundational library that makes APE possible. diff --git a/examples/graphics/mandelbrot.zc b/examples/graphics/mandelbrot.zc index aca94ba..04f61b9 100644 --- a/examples/graphics/mandelbrot.zc +++ b/examples/graphics/mandelbrot.zc @@ -1,4 +1,5 @@ +@derive(Copy) struct Complex { re: float, im: float, diff --git a/src/main.c b/src/main.c index 62bb98d..3bf4832 100644 --- a/src/main.c +++ b/src/main.c @@ -56,8 +56,8 @@ void print_usage() int main(int argc, char **argv) { memset(&g_config, 0, sizeof(g_config)); -#ifdef __COSMOPOLITAN__ - strcpy(g_config.cc, "cosmocc"); +#ifdef _WIN32 + strcpy(g_config.cc, "gcc.exe"); #else strcpy(g_config.cc, "gcc"); #endif -- cgit v1.2.3