#include <unistd.h>#include <fcntl.h>#include "BUILD/bitc-runtime.h"Go to the source code of this file.
Data Structures | |
| struct | ty_bitc_stdioStream |
| External structure definition for STDIO streams. More... | |
Functions | |
| static void | fix_stdio_stream (ty_bitc_stdioStream *ios) |
| ty_bitc_stdioStream * | DEFUN (bitc_stdio_open, bitc_string_t *nm, bitc_string_t *mode) |
| DEFCLOSURE (bitc_stdio_open) | |
| void | DEFUN (bitc_stdio_close, ty_bitc_stdioStream *ios) |
| DEFCLOSURE (bitc_stdio_close) | |
| bitc_char_t | DEFUN (bitc_stdio_read_char, ty_bitc_stdioStream *ios) |
| DEFCLOSURE (bitc_stdio_read_char) | |
| void | DEFUN (bitc_stdio_write_char, ty_bitc_stdioStream *ios, bitc_char_t ucs4) |
| DEFCLOSURE (bitc_stdio_write_char) | |
| bitc_uns8_t | DEFUN (bitc_stdio_read_byte, ty_bitc_stdioStream *ios) |
| DEFCLOSURE (bitc_stdio_read_byte) | |
| void | DEFUN (bitc_stdio_write_byte, ty_bitc_stdioStream *ios, bitc_uns8_t c) |
| DEFCLOSURE (bitc_stdio_write_byte) | |
| bitc_bool_t | DEFUN (bitc_stdio_eofp, ty_bitc_stdioStream *ios) |
| DEFCLOSURE (bitc_stdio_eofp) | |
Variables | |
| static ty_bitc_stdioStream | our_stdin = { false, 0 } |
| static ty_bitc_stdioStream | our_stdout = { false, 0 } |
| static ty_bitc_stdioStream | our_stderr = { false, 0 } |
| ty_bitc_stdioStream * | bitc_stdio_stdin = &our_stdin |
| ty_bitc_stdioStream * | bitc_stdio_stdout = &our_stdout |
| ty_bitc_stdioStream * | bitc_stdio_stderr = &our_stderr |
| DEFCLOSURE | ( | bitc_stdio_eofp | ) |
| DEFCLOSURE | ( | bitc_stdio_write_byte | ) |
| DEFCLOSURE | ( | bitc_stdio_read_byte | ) |
| DEFCLOSURE | ( | bitc_stdio_write_char | ) |
| DEFCLOSURE | ( | bitc_stdio_read_char | ) |
| DEFCLOSURE | ( | bitc_stdio_close | ) |
| DEFCLOSURE | ( | bitc_stdio_open | ) |
| bitc_bool_t DEFUN | ( | bitc_stdio_eofp | , | |
| ty_bitc_stdioStream * | ios | |||
| ) |
Definition at line 303 of file stdio.c.
References BITC_THROW, ty_bitc_stdioStream::f, and fix_stdio_stream().
| void DEFUN | ( | bitc_stdio_write_byte | , | |
| ty_bitc_stdioStream * | ios, | |||
| bitc_uns8_t | c | |||
| ) |
Definition at line 290 of file stdio.c.
References BITC_THROW, ty_bitc_stdioStream::f, and fix_stdio_stream().
| bitc_uns8_t DEFUN | ( | bitc_stdio_read_byte | , | |
| ty_bitc_stdioStream * | ios | |||
| ) |
Definition at line 271 of file stdio.c.
References BITC_THROW, ty_bitc_stdioStream::f, and fix_stdio_stream().
| void DEFUN | ( | bitc_stdio_write_char | , | |
| ty_bitc_stdioStream * | ios, | |||
| bitc_char_t | ucs4 | |||
| ) |
Definition at line 214 of file stdio.c.
References BITC_THROW, ty_bitc_stdioStream::f, and fix_stdio_stream().
| bitc_char_t DEFUN | ( | bitc_stdio_read_char | , | |
| ty_bitc_stdioStream * | ios | |||
| ) |
Definition at line 135 of file stdio.c.
References BITC_THROW, ty_bitc_stdioStream::f, and fix_stdio_stream().
| void DEFUN | ( | bitc_stdio_close | , | |
| ty_bitc_stdioStream * | ios | |||
| ) |
| ty_bitc_stdioStream* DEFUN | ( | bitc_stdio_open | , | |
| bitc_string_t * | nm, | |||
| bitc_string_t * | mode | |||
| ) |
Definition at line 100 of file stdio.c.
References BITC_THROW, ty_bitc_stdioStream::f, ty_bitc_stdioStream::isInit, and bitc_string_t::s.
| static void fix_stdio_stream | ( | ty_bitc_stdioStream * | ios | ) | [inline, static] |
Definition at line 82 of file stdio.c.
References ty_bitc_stdioStream::f, ty_bitc_stdioStream::isInit, our_stderr, our_stdin, and our_stdout.
Referenced by DEFUN().
ty_bitc_stdioStream our_stderr = { false, 0 } [static] |
ty_bitc_stdioStream our_stdin = { false, 0 } [static] |
ty_bitc_stdioStream our_stdout = { false, 0 } [static] |
1.4.7