From 98129b3260d9ccc25cc451dc73591587ccf8cdd6 Mon Sep 17 00:00:00 2001 From: Mineplay Date: Fri, 17 Oct 2025 17:06:23 -0500 Subject: [PATCH] refactor(console input): changed name of console functions to include console --- Include/Iony/Core/Console.h | 4 ++-- Src/Core/Console.c | 4 ++-- Tests/Main.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Include/Iony/Core/Console.h b/Include/Iony/Core/Console.h index 09af028..afaf2b5 100644 --- a/Include/Iony/Core/Console.h +++ b/Include/Iony/Core/Console.h @@ -24,8 +24,8 @@ #include "../Utils/Error.h" -IonyError iony_print(const char *text, long length); +IonyError iony_console_print(const char *text, long length); -IonyError iony_get_character(char *character); +IonyError iony_console_get_character(char *character); #endif diff --git a/Src/Core/Console.c b/Src/Core/Console.c index df69d0b..e443122 100644 --- a/Src/Core/Console.c +++ b/Src/Core/Console.c @@ -30,7 +30,7 @@ static HANDLE iony_standard_console_in = 0; #include "../../Include/Iony/Utils/System.h" #endif -IonyError iony_print(const char *text, const long length) { +IonyError iony_console_print(const char *text, const long length) { if (text == 0) { return IONY_ERROR_INVALID_POINTER; } @@ -54,7 +54,7 @@ IonyError iony_print(const char *text, const long length) { return IONY_ERROR_NONE; } -IonyError iony_get_character(char *character) { +IonyError iony_console_get_character(char *character) { if (character == 0) { return IONY_ERROR_INVALID_POINTER; } diff --git a/Tests/Main.c b/Tests/Main.c index 18d4eff..eff138d 100644 --- a/Tests/Main.c +++ b/Tests/Main.c @@ -23,12 +23,12 @@ #include int main(void) { - if (iony_print("Hello, World!\n", 15) != IONY_ERROR_NONE) { + if (iony_console_print("Hello, World!\n", 15) != IONY_ERROR_NONE) { return -1; } char character = ' '; - if (iony_get_character(&character) != IONY_ERROR_NONE) { + if (iony_console_get_character(&character) != IONY_ERROR_NONE) { return -1; }