newlib spells the length parameter with its own typedef (size_t on both toolchains); using the macro keeps the signature funopen wants exactly.
| 356 | // newlib spells the length parameter with its own typedef (size_t on both |
| 357 | // toolchains); using the macro keeps the signature funopen wants exactly. |
| 358 | static int consoleStreamWrite(void* cookie, const char* buf, _READ_WRITE_BUFSIZE_TYPE n) |
| 359 | { |
| 360 | (void)cookie; |
| 361 | ScriptConsole::get().write(buf, (size_t)n); |
| 362 | return (int)n; |
| 363 | } |
| 364 | |
| 365 | FILE* ckpt_console_stdout(void) |
| 366 | { |