coan 4.2.4
|
#include "report.h"
#include "filesys.h"
#include "io.h"
#include "args.h"
#include "platform.h"
#include "dataset.h"
#include "configured_symbols.h"
Go to the source code of this file.
Data Structures | |
struct | io_state_s |
Typedefs | |
typedef struct io_state_s | io_state_t |
Enumerations | |
enum | io_storage_type { io_storage_type = STATE_STATIC } |
enum | io_init_type { io_initialisation_type = ZERO_INITABLE } |
Functions | |
static bool | readon (void) |
static void | make_tempfile (void) |
static void | replace_infile (void) |
static void | make_backup_name (const char *filename) |
static void | backup_infile (void) |
static void | delete_infile (void) |
static void | open_output (void) |
void | io_initor (void) |
void | io_finitor (void) |
char * | read_filename (void) |
static bool | extend_line (void) |
FILE * | open_file (const char *file, const char *mode) |
void | close_io (int error) |
void | open_io (char const *filename) |
bool | get_line (void) |
char * | read_more (char const *readpos) |
size_t | read_offset (char const *readpos) |
char * | read_pos (size_t readoff) |
void | ensure_buf (size_t extra) |
bool | input_opened (void) |
void | save_read_pos (char const *cp) |
char * | saved_read_pos (void) |
void | io_toplevel (void) |
Variables | |
static io_state_t | io_state |
io_state_t * | io_h = & io_state |
io_public_state_t * | io_public_h = ( io_public_state_t *)& io_state |
static const io_state_t *const | io_static_initialiser_h |
void(* | io_init_h )(io_state_t *) |
void(* | io_finis_h )(io_state_t *) |
This file implements the I/O component
Definition in file io.c.
static bool extend_line | ( | void | ) | [static] |
Try to read another line of input from the current source file.
Definition at line 242 of file io.c.
References readon(), and SET_PUBLIC.
Referenced by get_line(), and read_more().