rev: 21c5e6d2f665d0e8b4ff917a51b664c895dab2ed tukan/tukan/libc.sc -rw-r--r-- 412 bytes View raw Log this file
21c5e6d2f665 — Leonard Ritter * renamed project from Liminal to Tukan 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
define lib
    import-c "libc.c"
        """"
            #include <stdint.h>
            #include <stdio.h>

            FILE *get_stdout () {
                return stdout;
            }
            FILE *get_stderr () {
                return stderr;
            }
        '()

do
    using lib filter "^(f?printf|fflush|get_std(.+))$"

    define stdout get_stdout
    define stderr get_stderr

    locals;