build_all script for examples and fixed warnings in examples about unused functions.

This commit is contained in:
Mattias Hansson 2026-05-17 16:29:54 +02:00
parent b6fce2a7f9
commit f056377977
4 changed files with 17 additions and 0 deletions

11
examples/build_all.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
for dir in */; do
name="${dir%/}"
file="$dir/$name.c65"
if [ -f "$file" ]; then
echo "=== Building $name ==="
c65gm "$file"
echo ""
fi
done

View file

@ -4,6 +4,8 @@
// without causing an infinite loop. // without causing an infinite loop.
//----------------------------------------------------------- //-----------------------------------------------------------
#PRAGMA _P_REMOVE_UNUSED 1
#INCLUDE <c64start.c65> #INCLUDE <c64start.c65>
#INCLUDE <c64defs.c65> #INCLUDE <c64defs.c65>
#INCLUDE <cbmiolib.c65> #INCLUDE <cbmiolib.c65>

View file

@ -3,6 +3,8 @@
// Tests malloc and free functionality // Tests malloc and free functionality
//----------------------------------------------------------- //-----------------------------------------------------------
#PRAGMA _P_REMOVE_UNUSED 1
#INCLUDE <c64start.c65> #INCLUDE <c64start.c65>
#INCLUDE <c64defs.c65> #INCLUDE <c64defs.c65>
#INCLUDE <memlib.c65> #INCLUDE <memlib.c65>

View file

@ -4,6 +4,8 @@
// with implicit breaks and long jump pragma support // with implicit breaks and long jump pragma support
//----------------------------------------------------------- //-----------------------------------------------------------
#PRAGMA _P_REMOVE_UNUSED 1
#INCLUDE <c64start.c65> #INCLUDE <c64start.c65>
#INCLUDE <c64defs.c65> #INCLUDE <c64defs.c65>
#INCLUDE <cbmiolib.c65> #INCLUDE <cbmiolib.c65>