The last couple of weeks I have dived deeper in to C on the Amiga and it has been fun!
As a way to get more familiar with intuition and how windows are handled within this framework I have expanded the window lister program quite a bit and refactored it.
It now includes a check for (IMO relevant) intuition window flags and automatic padding and sizing, based on the console width, for the output table.
Code:
https://github.com/RasmusEdgar/amiga.../wlist/wlist.c
(I tried to post the code here with code tags, but it somehow gets mangled up)
The code compiles cleanly with both SAS/C
and GCC
Code:
gcc wlist.c -o wlist -Werror -Wall -s -noixemul
I hope some of you find it interesting.
Critical feedback is welcome.
Br,
edmayn