Skip to content

Commit 1ac8b89

Browse files
author
Mikachu2333
committed
style(lib): 调整函数参数括号前空格
1 parent c44377f commit 1ac8b89

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/xy.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -491,23 +491,23 @@ xy_streql (const char *str1, const char *str2)
491491
}
492492

493493
static bool
494-
xy_streql_ic(const char *str1, const char *str2)
494+
xy_streql_ic (const char *str1, const char *str2)
495495
{
496496
if (NULL == str1 || NULL == str2)
497497
{
498498
return false;
499499
}
500500

501-
size_t len1 = strlen(str1);
502-
size_t len2 = strlen(str2);
501+
size_t len1 = strlen (str1);
502+
size_t len2 = strlen (str2);
503503
if (len1 != len2)
504504
{
505505
return false;
506506
}
507507

508508
for (size_t i = 0; i < len1; i++)
509509
{
510-
if (tolower(str1[i]) != tolower(str2[i]))
510+
if (tolower (str1[i]) != tolower (str2[i]))
511511
{
512512
return false;
513513
}
@@ -584,7 +584,7 @@ xy_str_delete_prefix (const char *str, const char *prefix)
584584
bool yes = xy_str_start_with (str, prefix);
585585
if (!yes)
586586
{
587-
return xy_strdup(str);
587+
return xy_strdup (str);
588588
}
589589
else
590590
{
@@ -1329,7 +1329,7 @@ xy_detect_os ()
13291329
if (fp)
13301330
{
13311331
char buf[256] = {0};
1332-
fread (buf, 1, sizeof(buf) - 1, fp);
1332+
fread (buf, 1, sizeof (buf) - 1, fp);
13331333
fclose (fp);
13341334
if (strstr (buf, "Android"))
13351335
{

0 commit comments

Comments
 (0)