diff --git a/gral.h b/gral.h index 3b4d4d2..534c76f 100644 --- a/gral.h +++ b/gral.h @@ -170,9 +170,9 @@ void gral_run_on_main_thread(void (*callback)(void *user_data), void *user_data) struct gral_file *gral_file_open_read(char const *path); struct gral_file *gral_file_open_write(char const *path); -struct gral_file *gral_file_get_stdin(void); -struct gral_file *gral_file_get_stdout(void); -struct gral_file *gral_file_get_stderr(void); +struct gral_file *gral_file_get_standard_input(void); +struct gral_file *gral_file_get_standard_output(void); +struct gral_file *gral_file_get_standard_error(void); void gral_file_close(struct gral_file *file); size_t gral_file_read(struct gral_file *file, void *buffer, size_t size); void gral_file_write(struct gral_file *file, void const *buffer, size_t size); diff --git a/gral_linux.c b/gral_linux.c index e35c5fc..8a24071 100644 --- a/gral_linux.c +++ b/gral_linux.c @@ -706,15 +706,15 @@ struct gral_file *gral_file_open_write(char const *path) { return fd == -1 ? NULL : (struct gral_file *)(intptr_t)fd; } -struct gral_file *gral_file_get_stdin(void) { +struct gral_file *gral_file_get_standard_input(void) { return (struct gral_file *)STDIN_FILENO; } -struct gral_file *gral_file_get_stdout(void) { +struct gral_file *gral_file_get_standard_output(void) { return (struct gral_file *)STDOUT_FILENO; } -struct gral_file *gral_file_get_stderr(void) { +struct gral_file *gral_file_get_standard_error(void) { return (struct gral_file *)STDERR_FILENO; } diff --git a/gral_macos.m b/gral_macos.m index d21cc38..9d700db 100644 --- a/gral_macos.m +++ b/gral_macos.m @@ -722,15 +722,15 @@ void gral_run_on_main_thread(void (*callback)(void *user_data), void *user_data) return fd == -1 ? NULL : (struct gral_file *)(intptr_t)fd; } -struct gral_file *gral_file_get_stdin(void) { +struct gral_file *gral_file_get_standard_input(void) { return (struct gral_file *)STDIN_FILENO; } -struct gral_file *gral_file_get_stdout(void) { +struct gral_file *gral_file_get_standard_output(void) { return (struct gral_file *)STDOUT_FILENO; } -struct gral_file *gral_file_get_stderr(void) { +struct gral_file *gral_file_get_standard_error(void) { return (struct gral_file *)STDERR_FILENO; } diff --git a/gral_windows.cpp b/gral_windows.cpp index 827871b..b6286ac 100644 --- a/gral_windows.cpp +++ b/gral_windows.cpp @@ -1109,15 +1109,15 @@ gral_file *gral_file_open_write(char const *path) { return handle == INVALID_HANDLE_VALUE ? NULL : (gral_file *)handle; } -gral_file *gral_file_get_stdin() { +gral_file *gral_file_get_standard_input() { return (gral_file *)GetStdHandle(STD_INPUT_HANDLE); } -gral_file *gral_file_get_stdout() { +gral_file *gral_file_get_standard_output() { return (gral_file *)GetStdHandle(STD_OUTPUT_HANDLE); } -gral_file *gral_file_get_stderr() { +gral_file *gral_file_get_standard_error() { return (gral_file *)GetStdHandle(STD_ERROR_HANDLE); }