| 117 | }; |
| 118 | |
| 119 | struct hc_stream *hc_stdout() { |
| 120 | static __thread bool init = true; |
| 121 | static __thread struct hc_file_stream s; |
| 122 | |
| 123 | if (init) { |
| 124 | hc_file_stream_init(&s, stdout); |
| 125 | init = false; |
| 126 | } |
| 127 | |
| 128 | return &s.stream; |
| 129 | } |
| 130 | |
| 131 | size_t memory_read(struct hc_stream *s, uint8_t *data, size_t n) { |
| 132 | struct hc_memory_stream *ms = hc_baseof(s, struct hc_memory_stream, stream); |
no outgoing calls
no test coverage detected