retroforth/example/amalgamate.forth
crc bd765b8f33 add example/almagamate.forth
FossilOrigin-Name: b2c50ede099b6e1ec066306e78a188056ef97d4233e08b8094326654d46935e3
2019-05-20 20:28:55 +00:00

13 lines
376 B
Forth

This is a quick tool to merge retro-image.c and retro-unix.c into
a single file for easier distribution and building.
~~~
:image:inline
'source/interfaces/retro-image.c [ s:put nl ] file:for-each-line ;
:source:line
dup '#include_"retro-image.c" s:eq?
[ drop image:inline ] [ s:put nl ] choose ;
'source/interfaces/retro-unix.c [ source:line ] file:for-each-line
~~~