diff --git a/lib/xy.h b/lib/xy.h index eb5ce8c..e5cad1a 100644 --- a/lib/xy.h +++ b/lib/xy.h @@ -86,16 +86,6 @@ bool xy_enable_color = true; #define xy_useutf8() #endif -XY_Deprecate_This("Not use anymore") -void putf (double n) { printf ("%f\n", n); } -XY_Deprecate_This("Not use anymore") -void puti (long long n) { printf ("%lld\n", n); } -XY_Deprecate_This("Not use anymore") -void putb (bool n) { } - -void br () { puts (""); } -void p (const char *s) { printf ("%s\n", s); } - #define assert_str(a, b) assert (xy_streql ((a), (b))) #define xy_unsupported() assert(!"Unsuppoted") @@ -145,6 +135,8 @@ static void _xy_println_const_str (const char *str) {printf ("%s\n", str);} )(x) #define say println +void br () { puts (""); } +void p (const char *s) { printf ("%s\n", s); } #define xy_arylen(x) (sizeof (x) / sizeof (x[0])) diff --git a/test/fw.c b/test/fw.c index 9ca249f..567639a 100644 --- a/test/fw.c +++ b/test/fw.c @@ -5,7 +5,7 @@ * Contributors : Nil Null * | * Created On : <2024-12-14> - * Last Modified : <2025-06-19> + * Last Modified : <2025-06-20> * ------------------------------------------------------------*/ #define Chsrc_Version "Frameworker" @@ -66,8 +66,8 @@ main (int argc, char const *argv[]) chsrc_view_file (bkup); chsrc_log (xy_2strjoin ("CPU arch = ", chsrc_get_cpuarch ())); - printf ("chsrc: CPU cores = "); - puti (chsrc_get_cpucore ()); + print ("chsrc: CPU cores = "); + println (chsrc_get_cpucore ()); if (xy_on_windows) { diff --git a/test/xy.c b/test/xy.c index 78c3828..ff57b9f 100644 --- a/test/xy.c +++ b/test/xy.c @@ -18,11 +18,11 @@ main (int argc, char const *argv[]) { xy_useutf8 (); - puts (xy_os_depend_str ("Hello, Windows!", "Hello, Unix!")); + println (xy_os_depend_str ("Hello, Windows!", "Hello, Unix!")); - puti (3); + println (3); double dbl = 3.1415; - putf (dbl); + println (dbl); say (xy_2strjoin ("Xi", "'an")); say (xy_strjoin (2, "Xi", "'an")); say (xy_strjoin (3, "屈身守分,", "以待天时,", "不可与命争也"));