Skip to content

Commit

Permalink
Revert differing clang-format version changes
Browse files Browse the repository at this point in the history
  • Loading branch information
supervacuus committed Mar 5, 2023
1 parent 1829fba commit cfdf21a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/sentry_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,7 @@ typedef HANDLE sentry_threadid_t;
typedef struct sentry__winmutex_s sentry_mutex_t;
# define SENTRY__MUTEX_INIT \
{ \
INIT_ONCE_STATIC_INIT, \
{ \
0 \
} \
INIT_ONCE_STATIC_INIT, { 0 } \
}
# define sentry__mutex_init(Lock) sentry__winmutex_init(Lock)
# define sentry__mutex_lock(Lock) sentry__winmutex_lock(Lock)
Expand Down
10 changes: 6 additions & 4 deletions tests/unit/test_value.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,13 @@ SENTRY_TEST(value_string)
SENTRY_TEST(value_unicode)
{
// https://xkcd.com/1813/ :-)
sentry_value_t val = sentry_value_new_string("őá…–🤮🚀¿ 한글 테스트 \a\v");
TEST_CHECK_STRING_EQUAL(
sentry_value_as_string(val), "őá…–🤮🚀¿ 한글 테스트 \a\v");
sentry_value_t val
= sentry_value_new_string("őá…–🤮🚀¿ 한글 테스트 \a\v");
TEST_CHECK_STRING_EQUAL(sentry_value_as_string(val),
"őá…–🤮🚀¿ 한글 테스트 \a\v");
// json does not need to escape unicode, except for control characters
TEST_CHECK_JSON_VALUE(val, "\"őá…–🤮🚀¿ 한글 테스트 \\u0007\\u000b\"");
TEST_CHECK_JSON_VALUE(
val, "\"őá…–🤮🚀¿ 한글 테스트 \\u0007\\u000b\"");
sentry_value_decref(val);
char zalgo[] = "z̴̢̈͜ä̴̺̟́ͅl̸̛̦͎̺͂̃̚͝g̷̦̲͊͋̄̌͝o̸͇̞̪͙̞͌̇̀̓̏͜";
val = sentry_value_new_string(zalgo);
Expand Down

0 comments on commit cfdf21a

Please sign in to comment.