2017-03-23 09:47:55 -04:00
|
|
|
(for-each
|
2017-04-03 13:56:50 -04:00
|
|
|
display
|
|
|
|
`("#include \"picrin.h\"\n"
|
|
|
|
"#include \"picrin/extra.h\"\n"
|
|
|
|
"\n"
|
2017-04-25 09:51:55 -04:00
|
|
|
"static "))
|
|
|
|
|
|
|
|
(let loop ()
|
|
|
|
(let ((c (read-u8)))
|
|
|
|
(unless (eof-object? c)
|
|
|
|
(write-u8 c)
|
|
|
|
(loop))))
|
|
|
|
|
|
|
|
(for-each
|
|
|
|
display
|
|
|
|
`("\n"
|
2017-04-03 13:56:50 -04:00
|
|
|
"void\n"
|
2017-04-15 02:45:28 -04:00
|
|
|
"pic_init_lib(pic_state *PIC_UNUSED(pic))\n"
|
2017-04-03 13:56:50 -04:00
|
|
|
"{\n"
|
2017-04-25 09:51:55 -04:00
|
|
|
" pic_call(pic, pic_deserialize(pic, pic_blob_value(pic, lib_rom, sizeof lib_rom)), 0);\n"
|
2017-04-03 13:56:50 -04:00
|
|
|
"}\n"))
|