got_alarm is now a bool
This commit is contained in:
parent
14a7d63fb5
commit
12f2c44904
4 changed files with 6 additions and 5 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -2349,7 +2349,7 @@ inline void schedule( void )
|
|||
schedule_event--;
|
||||
|
||||
if ( got_alarm ) {
|
||||
got_alarm = 0;
|
||||
got_alarm = false;
|
||||
|
||||
ui_refresh_LCD();
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue