We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a33617 + 30a2b1f commit 23b3060Copy full SHA for 23b3060
code/logic/fossil/io/stream.h
@@ -17,10 +17,6 @@
17
#include <stdio.h>
18
#include <stdint.h>
19
20
-#define FOSSIL_STDIN stdin
21
-#define FOSSIL_STDOUT stdout
22
-#define FOSSIL_STDERR stderr
23
-
24
#ifdef __cplusplus
25
extern "C" {
26
#endif
@@ -33,6 +29,14 @@ typedef struct {
33
29
char filename[500]; // Array to store the filename
34
30
} fossil_fstream_t;
35
31
32
+extern fossil_fstream_t *FOSSIL_STDIN;
+extern fossil_fstream_t *FOSSIL_STDOUT;
+extern fossil_fstream_t *FOSSIL_STDERR;
+
36
+#define FOSSIL_STDIN (FOSSIL_STDIN)
37
+#define FOSSIL_STDOUT (FOSSIL_STDOUT)
38
+#define FOSSIL_STDERR (FOSSIL_STDERR)
39
40
/**
41
* Reopen a stream with a new file.
42
*
0 commit comments