commit 5f57a40e5cd965c1ac9d9378c78189f6270b8604
parent 98020e196cc6d458cd4af36d408f2b7743a40ed7
Author: m21c <ho*******@gmail.com>
Date: Mon, 20 Apr 2026 21:10:03 +0200
osx build process + gitignore
Diffstat:
4 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -19,4 +19,6 @@ cscope.*
*.kate-swp
*.json
*.out
-*.swp
-\ No newline at end of file
+*.swp
+
+out.c
+\ No newline at end of file
diff --git a/compiler.c b/compiler.c
@@ -8,6 +8,8 @@
#include <string.h>
/* @note redeinition of assert() for ease of debugging. */
+
+#if 0
#ifdef assert
#undef assert
#endif
@@ -20,6 +22,7 @@ myassert(const char *expr, const char *file, int line)
#define assert(_Expression) (void) ( \
(!!(_Expression)) || (myassert(#_Expression,__FILE__,__LINE__),0) \
)
+#endif
// @section forward declarations {{{
diff --git a/run b/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gcc -g -Wall -pedantic -Wextra -Wstrict-aliasing=2 -std=c99 -o bin/compiler compiler.c && ./bin/compiler test/Main.co && \
+gcc -o out.tmp out.c && ./out.tmp %*
+\ No newline at end of file
diff --git a/run.cmd b/run.cmd
@@ -0,0 +1,4 @@
+@echo off
+
+gcc -g -Wall -pedantic -Wextra -Wstrict-aliasing=2 -std=c99 -o bin/compiler.exe compiler.c && .\bin\compiler.exe test\Main.co && ^
+gcc -o out.exe out.c && out.exe %*
+\ No newline at end of file