Skip to content

Instantly share code, notes, and snippets.

View ryandesign's full-sized avatar

Ryan Carsten Schmidt ryandesign

View GitHub Profile
RETRO68=/opt/local/libexec/Retro68
PREFIX=$(RETRO68)/m68k-apple-macos
CC=$(RETRO68)/bin/m68k-apple-macos-gcc
CXX=$(RETRO68)/bin/m68k-apple-macos-g++
REZ=$(RETRO68)/bin/Rez
LDFLAGS=-lRetroConsole
RINCLUDES=$(PREFIX)/RIncludes
REZFLAGS=-I$(RINCLUDES)
.PHONY: all
@ryandesign
ryandesign / CMakeLists.txt
Last active October 7, 2022 07:46
Initial attempt at using dlmalloc 2.8.6 with Retro68 (https://github.com/autc04/Retro68/issues/185)
set_target_properties(app PROPERTIES
COMPILE_OPTIONS "-fdata-sections;-ffunction-sections"
LINK_FLAGS "-Wl,-wrap,calloc -Wl,-wrap,free -Wl,-wrap,malloc -Wl,-wrap,memalign -Wl,-wrap,posix_memalign -Wl,-wrap,realloc -Wl,-wrap,realloc_in_place -Wl,-wrap,valloc -Wl,-wrap,pvalloc -Wl,-wrap,mallinfo -Wl,-wrap,mallopt -Wl,-wrap,malloc_trim -Wl,-wrap,malloc_stats -Wl,-wrap,malloc_usable_size -Wl,-wrap,malloc_footprint -Wl,-wrap,malloc_max_footprint -Wl,-wrap,malloc_footprint_limit -Wl,-wrap,malloc_set_footprint_limit -Wl,-wrap,malloc_inspect_all -Wl,-wrap,independent_calloc -Wl,-wrap,independent_comalloc -Wl,-wrap,bulk_free"
)
@ryandesign
ryandesign / out.txt
Created September 28, 2022 00:08
Retro68 program demonstrating poor performance of NewPtr
0 2 ..
1 3 ...
2 7 .......
3 8 ........
4 11 ...........
5 13 .............
6 15 ...............
7 17 .................
8 20 ....................
9 22 ......................
@ryandesign
ryandesign / LastTest.log
Created May 7, 2022 09:51
minizip-ng 3.0.6 test failures on macOS 10.15.7
Start testing: May 07 04:40 CDT
----------------------------------------------------------
1/209 Testing: test_cmd
1/209 Test: test_cmd
Command: "[...]/build/test_cmd"
Directory: [...]/minizip-ng-3.0.6
"test_cmd" start time: May 07 04:40 CDT
Output:
----------------------------------------------------------
path resolve - c:\test\. -> c:\test\ = c:\test\ (1)
@ryandesign
ryandesign / decoder.bas
Last active January 16, 2022 22:29
Program 1 from Micro Adventure No. 9: Dead Ringer in its original AppleSoft BASIC and converted to C
100 REM DECODER
110 GOSUB 900
120 PRINT "(TYPE 'STOP' TO END)" :PRINT
130 PRINT "ENTER MESSAGE:"
140 INPUT M$
150 IF M$="STOP" THEN END
160 FOR I=1 to LEN(M$)
170 A$=M$:SB=I:SE=1:GOSUB 800
180 L$=XC$
190 IF ((L$<"A")+(L$>"Z")) THEN 250
@ryandesign
ryandesign / bfs-test-log.txt
Created October 20, 2020 03:38
Log of bfs failing to run the deep test
+ local name=0123456789ABCDEF
+ name=0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF
+ name=0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF
+ name=0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDE
+ for i in '{0..9}' A B C D E F
+ mkdir /opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-svn-trunk_sysutils_bfs/bfs/work/.tmp/bfs.muVDjgL54v/deep/0
+ cd /opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-svn-trunk_sysutils_bfs/bfs/work/.tmp/bfs.muVDjgL54v/deep/0
+ for j in '{1..16}'
+ mkdir 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDE
@ryandesign
ryandesign / configure.ac.patch
Last active September 10, 2020 19:20
alienarena patch to revert an unintended change that was part of r3995 to allow macOS to find the OpenAL framework again; fixes runtime error "dlopen() on @Prefix@/lib/libopenal.dylib failed"
Index: configure.ac
===================================================================
--- configure.ac (revision 5670)
+++ configure.ac (working copy)
@@ -149,7 +149,7 @@
[OpenGL dynamic lib path])
])
AC_DEFINE_UNQUOTED([OPENAL_DRIVER],
- ["@PREFIX@/lib/libopenal.dylib"],
+ ["/System/Library/Frameworks/OpenAL.framework/OpenAL"],
@ryandesign
ryandesign / Race Into Space_2020-06-04-230327_mbp2012.crash
Created June 5, 2020 04:05
Race Into Space crash on macOS Catalina
Process: Race Into Space [15828]
Path: /Applications/MacPorts/Race Into Space.app/Contents/MacOS/Race Into Space
Identifier: org.raceintospace.RaceIntoSpace
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Race Into Space [15828]
User ID: 502
Date/Time: 2020-06-04 23:03:27.451 -0500
@ryandesign
ryandesign / gpick-cmake-lua-error.txt
Created October 9, 2018 19:41
lua build failure when using gpick's cmake build system
[ 92%] Linking CXX executable gpick
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/gpick.dir/link.txt --verbose=1
/usr/bin/clang++ -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++ -arch x86_64 -arch i386 -mmacosx-version-min=10.13 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names CMakeFiles/gpick.dir/source/BlendColors.cpp.o CMakeFiles/gpick.dir/source/BrightnessDarkness.cpp.o CMakeFiles/gpick.dir/source/Clipboard.cpp.o CMakeFiles/gpick.dir/source/ClosestColors.cpp.o CMakeFiles/gpick.dir/source/Color.cpp.o CMakeFiles/gpick.dir/source/ColorList.cpp.o CMakeFiles/gpick.dir/source/ColorMixer.cpp.o CMakeFiles/gpick.dir/source/ColorObject.cpp.o CMakeFiles/gpick.dir/source/ColorPicker.cpp.o CMakeFiles/gpick.dir/source/ColorRYB.cpp.o CMakeFiles/gpick.dir/source/ColorSource.cpp.o CMakeFiles/gpick.dir/source/ColorSourceManager.cpp.o CMakeFiles/gpick.dir/source/ColorSpaceType.cpp.o CMakeFiles/gpick.dir/source/ColorWheelType.cpp.o CMakeFiles/gpick.dir/
@ryandesign
ryandesign / multimarkdown-build-transcript.txt
Created September 8, 2018 03:50
multimarkdown build transcript
$ tar xzf MultiMarkdown-6-6.4.0.tar.gz
$ cd fletcher-MultiMarkdown-6-b18e01c/
$ cmake -DSHAREDBUILD=1
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features