Differences From Artifact [4b738f8353]:
- File src/OFStdIOStream.h — part of check-in [d5eb0384c5] at 2020-05-28 00:15:05 on branch trunk — OFStdIOStream: Add -[hasTerminal] (user: js, size: 4178) [annotate] [blame] [check-ins using] [more...]
To Artifact [30b6ddea45]:
- File
src/OFStdIOStream.h
— part of check-in
[9697334084]
at
2020-06-21 02:15:26
on branch amiga-library
— Make of_std{in,out,err} available in Amiga library
This is done by using functions that return a reference to the variable
and defining of_std{in,out,err} to a call into these functions. (user: js, size: 4797) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | @end #ifdef __cplusplus extern "C" { #endif /*! @file */ /*! * @brief The standard input as an OFStream. */ extern OFStdIOStream *_Nullable of_stdin; /*! * @brief The standard output as an OFStream. */ extern OFStdIOStream *_Nullable of_stdout; /*! * @brief The standard error as an OFStream. */ extern OFStdIOStream *_Nullable of_stderr; /*! | > > > > > > > > > | > > > > > > > > | 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | @end #ifdef __cplusplus extern "C" { #endif /*! @file */ #ifndef OF_AMIGAOS /*! * @brief The standard input as an OFStream. */ extern OFStdIOStream *_Nullable of_stdin; /*! * @brief The standard output as an OFStream. */ extern OFStdIOStream *_Nullable of_stdout; /*! * @brief The standard error as an OFStream. */ extern OFStdIOStream *_Nullable of_stderr; #else extern OFStdIOStream *_Nonnull *_Nullable of_stdin_ref(void); extern OFStdIOStream *_Nonnull *_Nullable of_stdout_ref(void); extern OFStdIOStream *_Nonnull *_Nullable of_stderr_ref(void); # define of_stdin (*of_stdin_ref()) # define of_stdout (*of_stdout_ref()) # define of_stderr (*of_stderr_ref()) #endif /*! * @brief Logs the specified printf-style format to @ref of_stderr. * * This prefixes the output with the date, timestamp, process name and PID and * allows `%@` as a printf-style formatted to print objects. */ extern void of_log(OFConstantString *format, ...); /*! * @brief Logs the specified printf-style format to @ref of_stderr. * * This prefixes the output with the date, timestamp, process name and PID and * allows `%@` as a printf-style formatted to print objects. */ extern void of_logv(OFConstantString *format, va_list arguments); #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END |