mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-22 20:42:46 +08:00
Remove deprecated
This commit is contained in:
parent
537ed4fd8c
commit
7841e9bf1e
12
lib/xy.h
12
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]))
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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, "屈身守分,", "以待天时,", "不可与命争也"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user