mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-30 00:23:16 +08:00
Format a few of xy.h
and add say
This commit is contained in:
parent
bde20be637
commit
e7d2d68f20
34
include/xy.h
34
include/xy.h
@ -65,34 +65,12 @@
|
||||
#define xy_useutf8()
|
||||
#endif
|
||||
|
||||
void
|
||||
putf (double n)
|
||||
{
|
||||
printf ("%f\n", n);
|
||||
}
|
||||
void
|
||||
puti (long long n)
|
||||
{
|
||||
printf ("%lld\n", n);
|
||||
}
|
||||
void
|
||||
putb (bool n)
|
||||
{
|
||||
if (n)
|
||||
puts ("true");
|
||||
else
|
||||
puts ("false");
|
||||
}
|
||||
void
|
||||
print (char *s)
|
||||
{
|
||||
printf ("%s", s);
|
||||
}
|
||||
void
|
||||
println (char *s)
|
||||
{
|
||||
printf ("%s\n", s);
|
||||
}
|
||||
void putf (double n) { printf ("%f\n", n); }
|
||||
void puti (long long n) { printf ("%lld\n", n); }
|
||||
void putb (bool n) { if (n) puts ("true"); else puts ("false"); }
|
||||
void print (const char *s) { printf ("%s", s); }
|
||||
void println (const char *s) { printf ("%s\n", s);}
|
||||
void say (const char *s) { printf ("%s\n", s);}
|
||||
|
||||
#define xy_arylen(x) (sizeof (x) / sizeof (x[0]))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user