all repos — hex @ 9aaa768d8cc05714f8a0cab71bee46742aaab31d

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Fixing amalgamation script.
h3rald h3rald@h3rald.com
Mon, 16 Dec 2024 07:29:40 +0100
commit

9aaa768d8cc05714f8a0cab71bee46742aaab31d

parent

da3af9c52db254affa3ab9f7c13fe36ff72d398b

2 files changed, 13 insertions(+), 3 deletions(-)

jump to
M MakefileMakefile

@@ -8,7 +8,7 @@ hex: src/hex.c

$(CC) $(CFLAGS) $(LDFLAGS) $< -o hex src/hex.c: - sh scripts/amalgamate.sh + bash scripts/amalgamate.sh web/assets/hex.wasm: src/hex.c emcc -O2 -sASYNCIFY -DBROWSER -sEXPORTED_RUNTIME_METHODS=stringToUTF8 src/hex.c -o web/assets/hex.js --pre-js web/assets/hex-playground.js
M scripts/amalgamate.shscripts/amalgamate.sh

@@ -2,8 +2,18 @@ #!/bin/bash

# Files to combine header_file="src/hex.h" -source_files=( "src/stack.c" "src/registry.c" "src/error.c" "src/help.c" "src/stacktrace.c" - "src/parser.c" "src/interpreter.c" "src/helpers.c" "src/symbols.c" "src/main.c") +source_files=( + "src/stack.c" + "src/registry.c" + "src/error.c" + "src/help.c" + "src/stacktrace.c" + "src/parser.c" + "src/interpreter.c" + "src/helpers.c" + "src/symbols.c" + "src/main.c" +) output_file="src/hex.c" # Start with a clean output file