got_alarm is now a bool

This commit is contained in:
Gwenhael Le Moine 2024-04-09 14:22:47 +02:00
parent 14a7d63fb5
commit 12f2c44904
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 6 additions and 5 deletions

View file

@ -13,7 +13,7 @@
static int interrupt_called = 0;
extern long nibble_masks[ 16 ];
int got_alarm;
bool got_alarm;
int first_press = 1; // PATCH
@ -300,7 +300,7 @@ void do_shutdown( void )
pause();
if ( got_alarm ) {
got_alarm = 0;
got_alarm = false;
ui_refresh_LCD();

View file

@ -2349,7 +2349,7 @@ inline void schedule( void )
schedule_event--;
if ( got_alarm ) {
got_alarm = 0;
got_alarm = false;
ui_refresh_LCD();

View file

@ -2,6 +2,7 @@
#define _HP48_H 1
#include <stdint.h> /* int64_t */
#include <stdbool.h>
#define DEC 10
#define HEX 16
@ -291,7 +292,7 @@ typedef struct saturn_t {
#define NIBBLES_PER_ROW 0x22
#define NIBBLES_NB_BITS 4
extern int got_alarm;
extern bool got_alarm;
extern int set_t1;

View file

@ -21,7 +21,7 @@ void signal_handler( int sig )
enter_debugger |= USER_INTERRUPT;
break;
case SIGALRM:
got_alarm = 1;
got_alarm = true;
break;
case SIGPIPE:
exit_emulator();