Skip to content

Commit 0a0376d

Browse files
committed
chore(native): bump zireael vendor to v1.3.13
1 parent b53bbcb commit 0a0376d

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
97a7b907cc6c5a2886fdaef2ea82c8f9e337013e
1+
3e05a9341944fc680337716c8b3a7fc57ceb1aa8

packages/native/vendor/zireael/src/core/zr_engine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ enum {
4747
static const uint8_t ZR_ENGINE_PASTE_BEGIN[] = "\x1b[200~";
4848
static const uint8_t ZR_ENGINE_PASTE_END[] = "\x1b[201~";
4949

50-
struct zr_engine_t {
50+
struct zr_engine_t { /* NOLINT(clang-analyzer-optin.performance.Padding): keep subsystem-grouped layout readable */
5151
/* --- Platform (OS boundary) --- */
5252
plat_t* plat;
5353
struct zr_engine_t* restore_prev;

packages/native/vendor/zireael/src/platform/posix/zr_plat_posix.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ typedef void (*zr_posix_sa_sigaction_fn)(int, siginfo_t*, void*);
116116
#error "POSIX signal chaining requires lock-free int/pointer atomics."
117117
#endif
118118
static _Atomic int g_posix_prev_handler_kind = ZR_POSIX_HANDLER_KIND_NONE;
119-
static _Atomic(zr_posix_sa_handler_fn) g_posix_prev_sa_handler = NULL;
120-
static _Atomic(zr_posix_sa_sigaction_fn) g_posix_prev_sa_sigaction = NULL;
119+
static _Atomic(zr_posix_sa_handler_fn) g_posix_prev_sa_handler;
120+
static _Atomic(zr_posix_sa_sigaction_fn) g_posix_prev_sa_sigaction;
121121

122122
/*
123123
POSIX testing hook: force SIGWINCH overflow marker path.
@@ -734,8 +734,8 @@ static void zr_posix_sigwinch_publish_previous(const struct sigaction* prev) {
734734
return;
735735
}
736736

737-
atomic_store_explicit(&g_posix_prev_sa_handler, NULL, memory_order_relaxed);
738-
atomic_store_explicit(&g_posix_prev_sa_sigaction, NULL, memory_order_relaxed);
737+
atomic_store_explicit(&g_posix_prev_sa_handler, (zr_posix_sa_handler_fn)0, memory_order_relaxed);
738+
atomic_store_explicit(&g_posix_prev_sa_sigaction, (zr_posix_sa_sigaction_fn)0, memory_order_relaxed);
739739
atomic_store_explicit(&g_posix_prev_handler_kind, ZR_POSIX_HANDLER_KIND_NONE, memory_order_relaxed);
740740

741741
if ((prev->sa_flags & SA_SIGINFO) != 0) {
@@ -758,8 +758,8 @@ static void zr_posix_sigwinch_publish_previous(const struct sigaction* prev) {
758758

759759
static void zr_posix_sigwinch_clear_previous(void) {
760760
atomic_store_explicit(&g_posix_prev_handler_kind, ZR_POSIX_HANDLER_KIND_NONE, memory_order_release);
761-
atomic_store_explicit(&g_posix_prev_sa_handler, NULL, memory_order_relaxed);
762-
atomic_store_explicit(&g_posix_prev_sa_sigaction, NULL, memory_order_relaxed);
761+
atomic_store_explicit(&g_posix_prev_sa_handler, (zr_posix_sa_handler_fn)0, memory_order_relaxed);
762+
atomic_store_explicit(&g_posix_prev_sa_sigaction, (zr_posix_sa_sigaction_fn)0, memory_order_relaxed);
763763
}
764764

765765
static void zr_posix_sigwinch_handler(int signo, siginfo_t* info, void* ucontext) {

packages/native/vendor/zireael/src/util/zr_assert.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <stdatomic.h>
1111
#include <stdlib.h>
1212

13-
static _Atomic(zr_assert_cleanup_hook_t) g_zr_assert_cleanup_hook = NULL;
13+
static _Atomic(zr_assert_cleanup_hook_t) g_zr_assert_cleanup_hook;
1414
static atomic_flag g_zr_assert_fail_guard = ATOMIC_FLAG_INIT;
1515

1616
void zr_assert_set_cleanup_hook(zr_assert_cleanup_hook_t hook) {
@@ -23,7 +23,8 @@ void zr_assert_clear_cleanup_hook(zr_assert_cleanup_hook_t hook) {
2323
}
2424

2525
zr_assert_cleanup_hook_t expected = hook;
26-
(void)atomic_compare_exchange_strong_explicit(&g_zr_assert_cleanup_hook, &expected, NULL, memory_order_acq_rel,
26+
const zr_assert_cleanup_hook_t no_hook = (zr_assert_cleanup_hook_t)0;
27+
(void)atomic_compare_exchange_strong_explicit(&g_zr_assert_cleanup_hook, &expected, no_hook, memory_order_acq_rel,
2728
memory_order_acquire);
2829
}
2930

0 commit comments

Comments
 (0)