From 73e85b95355f56081a8a83e29b4ba6005bf163b2 Mon Sep 17 00:00:00 2001 From: Amlal Date: Sun, 10 Aug 2025 23:00:00 +0200 Subject: feat(libSystem): improved 'PrintOut' to use 'StrFmt' instead of stdc's string format. Signed-off-by: Amlal --- dev/libSystem/SystemKit/System.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dev/libSystem/SystemKit/System.h') diff --git a/dev/libSystem/SystemKit/System.h b/dev/libSystem/SystemKit/System.h index 421868ae..f46fe523 100644 --- a/dev/libSystem/SystemKit/System.h +++ b/dev/libSystem/SystemKit/System.h @@ -12,6 +12,10 @@ Purpose: System Call Interface. #include +/// @brief TTY device path. +#define kPrintDevicePath "/devices/tty{}" +#define kCDDevicePath "/devices/dvd{}" + // ------------------------------------------------------------------------------------------ // /// @brief Types API. // ------------------------------------------------------------------------------------------ // @@ -309,8 +313,6 @@ IMPORT_C SInt32 PwrSendCode(_Output SInt32& code); // CD-ROM API. // ------------------------------------------------------------------------------------------ // -#define kCDDevicePath "/devices/dvd{}" - IMPORT_C IORef CdOpenTray(Void); IMPORT_C SInt32 CdEjectDrive(_Input IORef cdrom); @@ -321,8 +323,6 @@ IMPORT_C SInt32 CdCloseTray(Void); // TTY API. // ------------------------------------------------------------------------------------------ // -#define kPrintDevicePath "/devices/tty{}" - IMPORT_C SInt32 PrintOut(IORef file /* nullptr to direct to stdout */, const Char* fmt, ...); IMPORT_C SInt32 PrintIn(IORef file /* nullptr to direct to stdout */, const Char* fmt, ...); -- cgit v1.2.3