Remove deprecated

This commit is contained in:
Aoran Zeng 2025-06-20 14:41:45 +08:00
parent 537ed4fd8c
commit 7841e9bf1e
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
3 changed files with 8 additions and 16 deletions

View File

@ -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]))

View File

@ -5,7 +5,7 @@
* Contributors : Nil Null <nil@null.org>
* |
* 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)
{

View File

@ -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, "屈身守分,", "以待天时,", "不可与命争也"));