Skip to content

Commit 991ca67

Browse files
committed
file: add macros for standard i/o wrappers (ZPL_STDIO_IN, ...)
1 parent 0dc2c8e commit 991ca67

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
19.2.0 - file: add macros for standard i/o wrappers (ZPL_STDIO_IN, ...)
12
19.1.1 - thread: return error values for POSIX calls
23
19.1.0 - parser: introduce a new URI parser module
34
19.0.4 - fix: zpl_buffer_copy_init missing macros (thanks Ed_ on Discord)

code/header/core/file.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ typedef enum zpl_file_standard_type {
112112
ZPL_FILE_STANDARD_COUNT,
113113
} zpl_file_standard_type;
114114

115+
#define ZPL_STDIO_IN zpl_file_get_standard(ZPL_FILE_STANDARD_INPUT)
116+
#define ZPL_STDIO_OUT zpl_file_get_standard(ZPL_FILE_STANDARD_OUTPUT)
117+
#define ZPL_STDIO_ERR zpl_file_get_standard(ZPL_FILE_STANDARD_ERROR)
118+
115119
/**
116120
* Get standard file I/O.
117121
* @param std Check zpl_file_standard_type

0 commit comments

Comments
 (0)