aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-05-27 19:13:02 +0100
committerJuan J. Martinez <jjm@usebox.net>2024-05-27 19:13:02 +0100
commit420ac2c8f2307ddcbe551972544bbe11f05ee7ff (patch)
tree70748bd36a378f3a44ccb720e2776030eac956f2 /include
parent0b3ba3e708899145296e3b6c1496ff87efe6a6c7 (diff)
downloadubox-msx-lib-420ac2c8f2307ddcbe551972544bbe11f05ee7ff.tar.gz
ubox-msx-lib-420ac2c8f2307ddcbe551972544bbe11f05ee7ff.zip
Avoid function declarator with no prototype errors
This is for SDCC 4.4.0 at least.
Diffstat (limited to 'include')
-rw-r--r--include/mplayer.h4
-rw-r--r--include/spman.h8
-rw-r--r--include/ubox.h14
3 files changed, 13 insertions, 13 deletions
diff --git a/include/mplayer.h b/include/mplayer.h
index 139dd9e..c13ac56 100644
--- a/include/mplayer.h
+++ b/include/mplayer.h
@@ -92,14 +92,14 @@ void mplayer_init_effects(const uint8_t *effects) __z88dk_fastcall;
* If the player is stopped, [mplayer_stop](#mplayer_stop) must be called to
* silence the PSG.
*/
-void mplayer_play();
+void mplayer_play(void);
/**
* Silences the PSG, stopping any sound.
*
* This doesn't stop the player if [mplayer_play](#mplayer_play) is called.
*/
-void mplayer_stop();
+void mplayer_stop(void);
// @Sound effects
diff --git a/include/spman.h b/include/spman.h
index e8e27af..fa2a5c9 100644
--- a/include/spman.h
+++ b/include/spman.h
@@ -37,7 +37,7 @@
*
* it needs to be called before using any of the functions of the sprite manager.
*/
-void spman_init();
+void spman_init(void);
/**
* Allocates a pattern for sprite `type` using `data`.
@@ -121,7 +121,7 @@ void spman_alloc_sprite(const struct sprite_attr *sp);
*
* This doesn't affect sprites currently being shown on the screen.
*/
-void spman_sprite_flush();
+void spman_sprite_flush(void);
// @Sprites on screen
@@ -136,7 +136,7 @@ void spman_sprite_flush();
* [spman_alloc_sprite](#spman_alloc_sprite).
*
*/
-void spman_update();
+void spman_update(void);
/**
* Hides all the sprites currently shown on screen.
@@ -144,6 +144,6 @@ void spman_update();
* This doesn't affect any allocated sprites. To free allocated sprites use
* [spman_sprite_flush](#spman_sprite_flush).
*/
-void spman_hide_all_sprites();
+void spman_hide_all_sprites(void);
#endif // _SPMAN_H
diff --git a/include/ubox.h b/include/ubox.h
index b045d4d..fa56741 100644
--- a/include/ubox.h
+++ b/include/ubox.h
@@ -69,7 +69,7 @@ void ubox_set_mode(uint8_t mode) __z88dk_fastcall;
/**
* Enables the screen.
*/
-void ubox_enable_screen();
+void ubox_enable_screen(void);
/**
* Disables the screen.
@@ -79,7 +79,7 @@ void ubox_enable_screen();
*
* Note that [ubox_set_mode](#ubox_set_mode) also enables the screen.
*/
-void ubox_disable_screen();
+void ubox_disable_screen(void);
/**
* Changes the screen colors.
@@ -158,7 +158,7 @@ void ubox_wvdp(uint8_t reg, uint8_t data);
* | 0 | 60Hz |
* | 1 | 50Hz |
*/
-uint8_t ubox_get_vsync_freq();
+uint8_t ubox_get_vsync_freq(void);
// *INDENT-OFF*
/**
@@ -311,7 +311,7 @@ void ubox_init_isr(uint8_t wait_ticks) __z88dk_fastcall;
* ubox_set_user_isr(my_isr);
* ```
*/
-void ubox_set_user_isr(void (*fn)()) __z88dk_fastcall;
+void ubox_set_user_isr(void (*fn)(void)) __z88dk_fastcall;
/**
* Waits for a maximum `wait_ticks` interrupts (see [ubox_init_isr](#ubox_init_isr)).
@@ -347,7 +347,7 @@ void ubox_set_user_isr(void (*fn)()) __z88dk_fastcall;
* }
* ```
*/
-void ubox_wait();
+void ubox_wait(void);
/**
* Waits for `frames` frames.
@@ -373,7 +373,7 @@ extern uint8_t ubox_tick;
*
* `ubox_tick` is a 8-bit global variable that is incremented on every interrupt.
*/
-void ubox_reset_tick();
+void ubox_reset_tick(void);
// @Sprite functions
//
@@ -486,7 +486,7 @@ void ubox_set_sprite_pat16_flip(const uint8_t *data, uint8_t pattern);
*
* See [ubox_read_ctl](#ubox_read_ctl) for possible control values.
*/
-uint8_t ubox_select_ctl();
+uint8_t ubox_select_ctl(void);
/**
* Read the control identified by `control` and return the status of it.