mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
eliminate deprecated ATOMIC_VAR_INIT
This commit is contained in:
parent
ad6da72424
commit
c7f184f84c
@ -22,9 +22,9 @@ static demoresult* results;
|
||||
|
||||
static const char DEFAULT_DEMO[] = "ixetunchdmbkywjgarvlsfqzo";
|
||||
|
||||
atomic_bool interrupted = ATOMIC_VAR_INIT(false);
|
||||
atomic_bool interrupted = false;
|
||||
// checked following demos, whether aborted, failed, or otherwise
|
||||
static atomic_bool restart_demos = ATOMIC_VAR_INIT(false);
|
||||
static atomic_bool restart_demos = false;
|
||||
|
||||
void interrupt_demo(void){
|
||||
atomic_store(&interrupted, true);
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "internal.h"
|
||||
|
||||
// primarily drive ownership off an atomic, safely used within a signal handler
|
||||
static void* _Atomic signal_nc = ATOMIC_VAR_INIT(NULL);
|
||||
static void* _Atomic signal_nc;
|
||||
|
||||
#ifdef __MINGW32__
|
||||
int block_signals(sigset_t* old_blocked_signals){
|
||||
|
Loading…
x
Reference in New Issue
Block a user