From 71a07635bde935ec42d154a9d0eab939601ff8e4 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Mon, 28 Aug 2023 18:25:44 +0100 Subject: [PATCH] Remove use of bool in RISC OS specific code --- source/riscos/doc.cpp | 4 ++-- source/riscos/swicalls.cpp | 2 +- source/riscos/swicalls.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/riscos/doc.cpp b/source/riscos/doc.cpp index 7e42b8d..2423fc4 100755 --- a/source/riscos/doc.cpp +++ b/source/riscos/doc.cpp @@ -47,9 +47,9 @@ int main( void ) smb_mkdir(HighScoreFilePath); smb_keyrep_off(); - smb_set_escape_status(false); + smb_set_escape_status(0); main_code(); // The main routine - smb_set_escape_status(true); + smb_set_escape_status(1); smb_keyrep_on(); return( 0 ) ; } diff --git a/source/riscos/swicalls.cpp b/source/riscos/swicalls.cpp index eca09fa..e28ce0a 100755 --- a/source/riscos/swicalls.cpp +++ b/source/riscos/swicalls.cpp @@ -1268,7 +1268,7 @@ void smb_file_load(const char *filename, void *ptr) _kernel_swi( OS_File, ®s , ®s ); } -void smb_set_escape_status(bool enabled) +void smb_set_escape_status(int enabled) { _kernel_swi_regs regs; diff --git a/source/riscos/swicalls.h b/source/riscos/swicalls.h index 22d0005..cd0c3de 100755 --- a/source/riscos/swicalls.h +++ b/source/riscos/swicalls.h @@ -472,7 +472,7 @@ extern void smb_snd_stereo(int chan, int value); extern void smb_mkdir(char *dirname); extern int smb_file_size(const char *filename); extern void smb_file_load(const char *filename, void *ptr); -extern void smb_set_escape_status(bool enabled); +extern void smb_set_escape_status(int enabled); #endif