Add header guard to all header files

This commit is contained in:
Gwenhael Le Moine 2024-08-29 13:44:54 +02:00
parent 59d5bd58d1
commit 5ea10494af
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
14 changed files with 75 additions and 10 deletions

View file

@ -1,3 +1,6 @@
#ifndef _ARGS_H
#define _ARGS_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -96,3 +99,5 @@ struct Args {
---------------------------------------------------------------------------*/
extern struct Args args;
#endif /*!_ARGS_H*/

View file

@ -1,3 +1,6 @@
#ifndef _CONFIG_H
#define _CONFIG_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -248,3 +251,5 @@
#define UTIL_CHF_MODULE_ID 17 /* 3.6 */
#define X_FUNC_CHF_MODULE_ID 18 /* 3.13 */
#define DEBUG_CHF_MODULE_ID 30
#endif /*!_CONFIG_H*/

View file

@ -1,3 +1,6 @@
#ifndef _CPU_H
#define _CPU_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -336,3 +339,5 @@ int CpuHaltAllowed( void ); /* 3.13 */
Address Disassemble( Address pc, char ob[ DISASSEMBLE_OB_SIZE ] );
void DumpCpuStatus( char ob[ DUMP_CPU_STATUS_OB_SIZE ] );
#endif /*!_CPU_H*/

View file

@ -1,3 +1,6 @@
#ifndef _DEBUG_H
#define _DEBUG_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -160,3 +163,5 @@
---------------------------------------------------------------------------*/
void SetDebugLevel( int new_level );
#endif /*!_DEBUG_H*/

View file

@ -1,3 +1,6 @@
#ifndef _DISK_IO_H
#define _DISK_IO_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -94,3 +97,5 @@ int WriteStructToFile( const void* s, size_t s_size, const char* name );
int ReadObjectFromFile( const char* name, const char* hdr, Address start, Address end );
int WriteObjectToFile( Address start, Address end, const char* hdr, const char* name );
#endif /*!_DISK_IO_H*/

View file

@ -1,3 +1,6 @@
#ifndef _DISPLAY_H
#define _DISPLAY_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -86,3 +89,5 @@ void InitLcd( Display* lcd_display, Window lcd_window, unsigned long lcd_fg_pixe
void DrawLcd( void );
void RefreshLcd( void );
#endif /*!_DISPLAY_H*/

View file

@ -1,3 +1,6 @@
#ifndef _FLASH49_H
#define _FLASH49_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -153,3 +156,5 @@ enum FlashState {
/* Read/Write operations, nibble-by-nibble */
Nibble FlashRead49( XAddress address );
void FlashWrite49( XAddress address, Nibble datum );
#endif /*!_FLASH49_H*/

View file

@ -166,11 +166,11 @@ table[] =
{"hp48",
{ /* name, id, access_prio,
init, save,
read, write,
r_config, r_abs_base_addr, r_size,
map_flags
*/
init, save,
read, write,
r_config, r_abs_base_addr, r_size,
map_flags
*/
{
"ROM (ROM)",
@ -257,11 +257,11 @@ table[] =
{"hp49",
{ /* name, id, access_prio,
init, save,
read, write,
r_config, r_abs_base_addr, r_size,
map_flags
*/
init, save,
read, write,
r_config, r_abs_base_addr, r_size,
map_flags
*/
{
"ROM (ROM)",

View file

@ -1,3 +1,6 @@
#ifndef _KEYB_H
#define _KEYB_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -85,3 +88,5 @@ InputRegister KeybIN( OutputRegister out );
void KeybPress( const char* key );
void KeybRelease( const char* key );
void KeybReset( void );
#endif /*!_KEYB_H*/

View file

@ -1,3 +1,6 @@
#ifndef _MACHDEP_H
#define _MACHDEP_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -72,3 +75,5 @@ typedef int int12;
typedef int int16;
typedef int int20;
typedef int int32;
#endif /*!_MACHDEP_H*/

View file

@ -1,3 +1,6 @@
#ifndef _MODULES_H
#define _MODULES_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -584,3 +587,5 @@ void WriteNibble( Address addr, Nibble datum );
/* Monitor */
void ModMapCheck( Address addr, char ob[ MOD_MAP_CHECK_OB_SIZE ] );
void ModMapTable( char ob[ MOD_MAP_TABLE_OB_SIZE ] );
#endif /*!_MODULES_H*/

View file

@ -1,3 +1,6 @@
#ifndef _SERIAL_H
#define _SERIAL_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -139,3 +142,5 @@ void Serial_TBR_Write( int8 d );
/* Event handling */
void HandleSerial( void );
#endif /*!_SERIAL_H*/

View file

@ -1,3 +1,6 @@
#ifndef _X11_H
#define _X11_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -150,3 +153,5 @@ void IdleXLoop( unsigned long max_wait );
void InitializeGui( int argc, char* argv[] );
void ActivateFSB( char* title, char* file_name, FsbContinuation continuation );
#endif /*!_X11_H*/

View file

@ -1,3 +1,6 @@
#ifndef _X_FUNC_H
#define _X_FUNC_H 1
/* -------------------------------------------------------------------------
saturn - A poor-man's emulator of some HP calculators
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
@ -104,3 +107,5 @@
---------------------------------------------------------------------------*/
void ExtendedFunction( Nibble function_code );
#endif /*!_X_FUNC_H*/