Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions code/logic/fossil/io/stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
#include <stdio.h>
#include <stdint.h>

#define FOSSIL_STDIN stdin
#define FOSSIL_STDOUT stdout
#define FOSSIL_STDERR stderr

#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -33,6 +29,14 @@ typedef struct {
char filename[500]; // Array to store the filename
} fossil_fstream_t;

extern fossil_fstream_t *FOSSIL_STDIN;
extern fossil_fstream_t *FOSSIL_STDOUT;
extern fossil_fstream_t *FOSSIL_STDERR;

#define FOSSIL_STDIN (FOSSIL_STDIN)
#define FOSSIL_STDOUT (FOSSIL_STDOUT)
#define FOSSIL_STDERR (FOSSIL_STDERR)

/**
* Reopen a stream with a new file.
*
Expand Down