From: ljsebald <ljs...@us...> - 2023-06-19 12:18:18
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via a1458e8916dcdeebd61462004a744dc0cb11832c (commit) via 47205bb792de7755c0191fc3b179cfdcdbbf0d39 (commit) via 2e97bb2b4d076f88eaf5ba32a13d1732c781128e (commit) via fcd7bcd8d4aa8312a0a7b2b352a7ec16bb157b5c (commit) via 58865a149084f5db8133d5cb6c8a5f4ab9ab0db5 (commit) via 26d900d41f041cae7f51ddbc784faa2eafa203dc (commit) via dacd3aaa8a98746bc0c77b38bdacd1d0e4a5db29 (commit) via 093aae1b6fef5d8e839a929e86e04bb7e6e68057 (commit) from 1c3282cc89b5ca2be893a8aca08d070212aa87a2 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit a1458e8916dcdeebd61462004a744dc0cb11832c Merge: 47205bb 093aae1 Author: Lawrence Sebald <ljs...@us...> Date: Mon Jun 19 08:16:03 2023 -0400 Merge pull request #245 from KallistiOS/missed_the_void Remaining instances of empty arguments() replaced with (void) commit 47205bb792de7755c0191fc3b179cfdcdbbf0d39 Merge: 2e97bb2 26d900d Author: Lawrence Sebald <ljs...@us...> Date: Mon Jun 19 08:14:20 2023 -0400 Merge pull request #248 from jpeach/bfont-str-const Make the bfont string argument const. commit 2e97bb2b4d076f88eaf5ba32a13d1732c781128e Merge: fcd7bcd 58865a1 Author: Lawrence Sebald <ljs...@us...> Date: Mon Jun 19 08:13:40 2023 -0400 Merge pull request #249 from jpeach/doc-cont_btn_callback doc: improve the doc comment for cont_btn_callback commit fcd7bcd8d4aa8312a0a7b2b352a7ec16bb157b5c Merge: 1c3282c dacd3aa Author: Lawrence Sebald <ljs...@us...> Date: Mon Jun 19 08:12:59 2023 -0400 Merge pull request #247 from KallistiOS/cpp17_attributes_in_decl_specifiers Moved Noreturn_ attribute to front of thrd_exit(). commit 58865a149084f5db8133d5cb6c8a5f4ab9ab0db5 Author: James Peach <jp...@ap...> Date: Mon Jun 19 11:46:00 2023 +1000 doc: improve the doc comment for cont_btn_callback Improve the documentation for cont_btn_callback. It's helpful to know that only one global callback can be registered, and that the zero address is special. Signed-off-by: James Peach <jp...@ap...> commit 26d900d41f041cae7f51ddbc784faa2eafa203dc Author: James Peach <jp...@ap...> Date: Mon Jun 19 11:18:41 2023 +1000 Make the bfont string argument const. The str argument to bfont_draw_str can tbe const because it is never modified by the drawing routines. This remove the need to cast when passing string literals. Signed-off-by: James Peach <jp...@ap...> commit dacd3aaa8a98746bc0c77b38bdacd1d0e4a5db29 Author: Falco Girgis <gyr...@gm...> Date: Tue Jun 13 23:35:53 2023 -0500 Moved Noreturn_ attribute to front of thrd_exit(). - Apparently C++17 and onwards require standard attributes to be at the beginning of function declarations. This was in the middle, so it wasn't building with newer C++ standards. - Curiously enough the source file was already correct, so now we're consistent (not that it matters, though, source was C, not C++). commit 093aae1b6fef5d8e839a929e86e04bb7e6e68057 Author: Quzar <qu...@co...> Date: Wed Jun 7 15:44:16 2023 -0400 Various instances of empty arguments replaced with void ----------------------------------------------------------------------- Summary of changes: addons/include/navi/flash.h | 4 ++-- addons/include/navi/ide.h | 6 +++--- addons/libnavi/navi_flash.c | 6 +++--- addons/libnavi/navi_ide.c | 10 ++++----- examples/dreamcast/2ndmix/2ndmix.c | 18 ++++++++-------- examples/dreamcast/basic/asserthnd/asserthnd.c | 4 ++-- examples/dreamcast/basic/stacktrace/stacktrace.c | 2 +- examples/dreamcast/conio/adventure/porthelper.h | 2 +- examples/dreamcast/kgl/basic/scissor/scissor.c | 4 ++-- examples/dreamcast/kgl/basic/txrenv/gltest.c | 4 ++-- examples/dreamcast/kgl/basic/vq/vq-example.c | 2 +- .../dreamcast/kgl/benchmarks/quadmark/quadmark.c | 12 +++++------ .../dreamcast/kgl/benchmarks/trimark/trimark.c | 12 +++++------ .../kgl/benchmarks/tristripmark/tristripmark.c | 12 +++++------ examples/dreamcast/kgl/demos/blur/radial_blur.c | 2 +- examples/dreamcast/kgl/demos/mipmap/gl-mipmap.c | 4 ++-- examples/dreamcast/kgl/demos/specular/specular.c | 24 +++++++++++----------- examples/dreamcast/kgl/demos/specular/timer.c | 2 +- examples/dreamcast/kgl/demos/specular/timer.h | 2 +- examples/dreamcast/libdream/cdfs/cdfs.c | 2 +- examples/dreamcast/libdream/keyboard/keyboard.c | 2 +- examples/dreamcast/libdream/lcd/lcd.c | 6 +++--- examples/dreamcast/libdream/mouse/mouse.c | 2 +- examples/dreamcast/libdream/spu/spu.c | 2 +- examples/dreamcast/libdream/ta/ta.c | 6 +++--- examples/dreamcast/libdream/vmu/vmu.c | 2 +- examples/dreamcast/network/httpd/httpd.c | 4 ++-- examples/dreamcast/parallax/bubbles/bubbles.c | 6 +++--- .../dreamcast/parallax/delay_cube/delay_cube.c | 2 +- examples/dreamcast/parallax/rotocube/rotocube.c | 2 +- .../dreamcast/parallax/serpent_dma/perfmeter.c | 4 ++-- examples/dreamcast/parallax/serpent_dma/serpent.c | 4 ++-- examples/dreamcast/png/example.c | 6 +++--- examples/dreamcast/pvr/bumpmap/bump.c | 8 ++++---- examples/dreamcast/pvr/cheap_shadow/shadow.c | 6 +++--- examples/dreamcast/pvr/modifier_volume/modifier.c | 6 +++--- .../dreamcast/pvr/modifier_volume_tex/modifier.c | 6 +++--- examples/dreamcast/pvr/plasma/plasma.c | 10 ++++----- examples/dreamcast/pvr/pvrmark/pvrmark.c | 12 +++++------ .../dreamcast/pvr/pvrmark_strips/pvrmark_strips.c | 12 +++++------ .../pvrmark_strips_direct/pvrmark_strips_direct.c | 12 +++++------ .../dreamcast/pvr/texture_render/texture_render.c | 6 +++--- examples/dreamcast/sd/speedtest/sd-speedtest.c | 2 +- examples/dreamcast/sound/ghettoplay-vorbis/bkg.c | 8 ++++---- .../dreamcast/sound/ghettoplay-vorbis/ghettoplay.c | 6 +++--- examples/dreamcast/sound/ghettoplay-vorbis/gp.h | 8 ++++---- .../dreamcast/sound/ghettoplay-vorbis/songmenu.c | 12 +++++------ .../dreamcast/sound/ghettoplay-vorbis/texture.c | 2 +- examples/dreamcast/vmu/vmu_game/vmu_game.c | 8 ++++---- examples/dreamcast/vmu/vmu_pkg/vmu.c | 8 ++++---- include/kos/fs_pty.h | 4 ++-- include/threads.h | 2 +- kernel/arch/dreamcast/hardware/biosfont.c | 4 ++-- kernel/arch/dreamcast/include/dc/biosfont.h | 4 ++-- .../arch/dreamcast/include/dc/maple/controller.h | 7 +++++-- kernel/arch/dreamcast/include/dc/maple/keyboard.h | 2 +- kernel/arch/dreamcast/include/dc/pvr.h | 6 +++--- kernel/libc/newlib/verify_newlib.c | 2 +- 58 files changed, 174 insertions(+), 171 deletions(-) diff --git a/addons/include/navi/flash.h b/addons/include/navi/flash.h index bea7b2d..887ef3b 100644 --- a/addons/include/navi/flash.h +++ b/addons/include/navi/flash.h @@ -25,7 +25,7 @@ \return 0 if a compatible flashrom is detected, <0 if the normal Dreamcast BIOS is detected. */ -int nvflash_detect(); +int nvflash_detect(void); /** \brief Erase a single block of flashrom. \param addr The block of the flashrom to erase. @@ -45,6 +45,6 @@ int nvflash_write_block(uint32 addr, void * data, uint32 len); /** \brief Erase the whole flashrom. \return 0 on success, <0 on error. */ -int nvflash_erase_all(); +int nvflash_erase_all(void); #endif /* __NAVI_FLASH_H */ diff --git a/addons/include/navi/ide.h b/addons/include/navi/ide.h index 7ccdf40..346305c 100644 --- a/addons/include/navi/ide.h +++ b/addons/include/navi/ide.h @@ -40,14 +40,14 @@ int ide_write(uint32 linear, uint32 numsects, void *bufptr); /** \brief Retrieve the number of sectors from the hard disk. \returns The total number of linear sectors. */ -uint32 ide_num_sectors(); +uint32 ide_num_sectors(void); /** \brief Initialize Navi IDE. \return 0 on success (no error conditions defined). */ -int ide_init(); +int ide_init(void); /** \brief Shutdown Navi IDE. */ -void ide_shutdown(); +void ide_shutdown(void); #endif /* __NAVI_IDE_H */ diff --git a/addons/libnavi/navi_flash.c b/addons/libnavi/navi_flash.c index 9f10d19..16854ea 100644 --- a/addons/libnavi/navi_flash.c +++ b/addons/libnavi/navi_flash.c @@ -73,7 +73,7 @@ static vuint8 * const flashport = (vuint8 *)0xa0000000; /* We'll do this before sending a command */ -static void send_unlock() { +static void send_unlock(void) { flashport[ADDR_UNLOCK_1] = CMD_UNLOCK_DATA_1; flashport[ADDR_UNLOCK_2] = CMD_UNLOCK_DATA_2; } @@ -175,7 +175,7 @@ int nvflash_erase_block(uint32 addr) { } /* Erase the whole flash chip */ -int nvflash_erase_all() { +int nvflash_erase_all(void) { send_cmd(CMD_SECTOR_ERASE_UNLOCK_DATA); send_cmd(CMD_ERASE_ALL); @@ -193,7 +193,7 @@ int nvflash_erase_all() { } /* Return 0 if we successfully detect a compatible device */ -int nvflash_detect() { +int nvflash_detect(void) { uint16 mfr_id, dev_id; if(nvflash_read(0) == 0xff && nvflash_read(2) == 0x28) { diff --git a/addons/libnavi/navi_ide.c b/addons/libnavi/navi_ide.c index b179413..cd09fbb 100644 --- a/addons/libnavi/navi_ide.c +++ b/addons/libnavi/navi_ide.c @@ -72,7 +72,7 @@ uint16 ide_inp(int port, int size) { /* These are to synchronize us with the controller so we don't do something it's not ready for */ -static void wait_controller() { +static void wait_controller(void) { int timeout = 1000; while((inp(0x1f7) & 0x80) && timeout) { @@ -86,7 +86,7 @@ static void wait_controller() { } } -static void wait_data() { +static void wait_data(void) { int timeout = 1000; while(!(inp(0x1f7) & 0x08) && timeout) { @@ -236,12 +236,12 @@ int ide_write(uint32 linear, uint32 numsects, void *bufptr) { } /* Get the available space */ -uint32 ide_num_sectors() { +uint32 ide_num_sectors(void) { return hd_cyls * hd_heads * hd_sects; } /* Initialize the device */ -int ide_init() { +int ide_init(void) { int dd_off; dbglog(DBG_INFO, "ide_init: initializing\n"); @@ -273,7 +273,7 @@ int ide_init() { return 0; } -void ide_shutdown() { +void ide_shutdown(void) { } diff --git a/examples/dreamcast/2ndmix/2ndmix.c b/examples/dreamcast/2ndmix/2ndmix.c index c5ee77b..91b422b 100644 --- a/examples/dreamcast/2ndmix/2ndmix.c +++ b/examples/dreamcast/2ndmix/2ndmix.c @@ -103,7 +103,7 @@ int *star_x = NULL, *star_y, *star_z; pvr_poly_hdr_t stars_header; -void stars_init() { +void stars_init(void) { int i; pvr_poly_cxt_t tmp; @@ -145,7 +145,7 @@ void poly_pnt(int x, int y, float z, float size, int color) { pvr_prim(&vert, sizeof(vert)); } -void stars_one_frame() { +void stars_one_frame(void) { int i, x1, y1, xn, yn, zn, c; /* Send polygon header to the TA using store queues */ @@ -320,7 +320,7 @@ void draw_cube(int which) { /* Draw six cubes arranged in a circle */ int zooming = 1; -void cube_one_frame() { +void cube_one_frame(void) { int i, j; rotang = (rotang + 1) % 512; @@ -348,7 +348,7 @@ void cube_one_frame() { int cubes_have_header = 0; pvr_poly_hdr_t cubes_header; -void cubes_one_frame() { +void cubes_one_frame(void) { pvr_poly_cxt_t tmp; if(!cubes_have_header) { @@ -589,7 +589,7 @@ void font_draw_string(int x1, int y1, float color, char *str) { } } -void font_next_screen() { +void font_next_screen(void) { int width; int y, y1, x; @@ -625,7 +625,7 @@ void font_next_screen() { #if 0 /* Debug code to draw the font texture */ -void blit_font_texture() { +void blit_font_texture(void) { vertex_ot_t vert; vert.flags = TA_VERTEX_NORMAL; @@ -666,7 +666,7 @@ void blit_font_texture() { pvr_poly_hdr_t font_header; -void font_one_frame() { +void font_one_frame(void) { int done, y, actrows; actrows = 0; @@ -725,7 +725,7 @@ void font_one_frame() { } } -void font_init() { +void font_init(void) { int x, y, c; uint8 pcxpall[768]; volatile uint16 *vtex; @@ -787,7 +787,7 @@ void font_init() { /********************************************************************/ int framecnt = 0; -void draw_one_frame() { +void draw_one_frame(void) { /* Begin opaque polygons */ pvr_wait_ready(); pvr_scene_begin(); diff --git a/examples/dreamcast/basic/asserthnd/asserthnd.c b/examples/dreamcast/basic/asserthnd/asserthnd.c index c92bcf8..a0a06a6 100644 --- a/examples/dreamcast/basic/asserthnd/asserthnd.c +++ b/examples/dreamcast/basic/asserthnd/asserthnd.c @@ -35,14 +35,14 @@ assuming you compiled your program with -g: */ -void func2() { +void func2(void) { int a = 5; assert_msg(a != 5, "This is a test message!"); assert(a != 5); } -void func1() { +void func1(void) { func2(); } diff --git a/examples/dreamcast/basic/stacktrace/stacktrace.c b/examples/dreamcast/basic/stacktrace/stacktrace.c index bff234c..74eaa1f 100644 --- a/examples/dreamcast/basic/stacktrace/stacktrace.c +++ b/examples/dreamcast/basic/stacktrace/stacktrace.c @@ -6,7 +6,7 @@ #include <kos.h> -void func() { +void func(void) { arch_stk_trace(0); } diff --git a/examples/dreamcast/conio/adventure/porthelper.h b/examples/dreamcast/conio/adventure/porthelper.h index 84c85fd..f06e10b 100644 --- a/examples/dreamcast/conio/adventure/porthelper.h +++ b/examples/dreamcast/conio/adventure/porthelper.h @@ -25,6 +25,6 @@ #undef getchar #undef putchar -int getchar(); +int getchar(void); #endif /* __PORTHELPER_H */ diff --git a/examples/dreamcast/kgl/basic/scissor/scissor.c b/examples/dreamcast/kgl/basic/scissor/scissor.c index 479b74d..7cda5af 100644 --- a/examples/dreamcast/kgl/basic/scissor/scissor.c +++ b/examples/dreamcast/kgl/basic/scissor/scissor.c @@ -149,7 +149,7 @@ static void draw_gl(float rot, float x, float y) { glPopMatrix(); } -static void draw_ortho_scene() { +static void draw_ortho_scene(void) { glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glOrtho(0, 640, 0, 480, -1, 1); @@ -169,7 +169,7 @@ static void draw_ortho_scene() { rect(512, 0, 512, 512); } -static void draw_perspective_scene() { +static void draw_perspective_scene(void) { glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(45.0f, 320.0f / 240.0f, 0.1f, 100.0f); diff --git a/examples/dreamcast/kgl/basic/txrenv/gltest.c b/examples/dreamcast/kgl/basic/txrenv/gltest.c index f83da35..cc89c56 100644 --- a/examples/dreamcast/kgl/basic/txrenv/gltest.c +++ b/examples/dreamcast/kgl/basic/txrenv/gltest.c @@ -55,7 +55,7 @@ void glDrawQuads(float x, float y, float w, float h, int count, glEnd(); } -void RenderCallback() { +void RenderCallback(void) { if(BLEND) glEnable(GL_BLEND); @@ -72,7 +72,7 @@ void RenderCallback() { glutSwapBuffers(); } -int InputCallback() { +int InputCallback(void) { maple_device_t *cont = maple_enum_type(0, MAPLE_FUNC_CONTROLLER); if(cont) { diff --git a/examples/dreamcast/kgl/basic/vq/vq-example.c b/examples/dreamcast/kgl/basic/vq/vq-example.c index 68b323c..238613a 100644 --- a/examples/dreamcast/kgl/basic/vq/vq-example.c +++ b/examples/dreamcast/kgl/basic/vq/vq-example.c @@ -30,7 +30,7 @@ extern unsigned char fruit[]; extern unsigned char fruit_end[]; /* Load a texture with glCompressedTexImage2D */ -static int loadtxr() { +static int loadtxr(void) { glGenTextures(1, texture); glBindTexture(GL_TEXTURE_2D, texture[0]); diff --git a/examples/dreamcast/kgl/benchmarks/quadmark/quadmark.c b/examples/dreamcast/kgl/benchmarks/quadmark/quadmark.c index 5a387b8..ea0a240 100644 --- a/examples/dreamcast/kgl/benchmarks/quadmark/quadmark.c +++ b/examples/dreamcast/kgl/benchmarks/quadmark/quadmark.c @@ -25,7 +25,7 @@ int polycnt; int phase = PHASE_HALVE; float avgfps = -1; -void running_stats() { +void running_stats(void) { pvr_stats_t stats; pvr_get_stats(&stats); @@ -35,7 +35,7 @@ void running_stats() { avgfps = (avgfps + stats.frame_rate) / 2.0f; } -void stats() { +void stats(void) { pvr_stats_t stats; pvr_get_stats(&stats); @@ -44,7 +44,7 @@ void stats() { } -int check_start() { +int check_start(void) { maple_device_t *cont; cont_state_t *state; @@ -62,7 +62,7 @@ int check_start() { pvr_poly_hdr_t hdr; -void setup() { +void setup(void) { glKosInit(); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); @@ -71,7 +71,7 @@ void setup() { glLoadIdentity(); } -void do_frame() { +void do_frame(void) { int x, y, z; int size; int i; @@ -106,7 +106,7 @@ void switch_tests(int ppf) { polycnt = ppf; } -void check_switch() { +void check_switch(void) { time_t now; now = time(NULL); diff --git a/examples/dreamcast/kgl/benchmarks/trimark/trimark.c b/examples/dreamcast/kgl/benchmarks/trimark/trimark.c index 953e2af..1973bd2 100644 --- a/examples/dreamcast/kgl/benchmarks/trimark/trimark.c +++ b/examples/dreamcast/kgl/benchmarks/trimark/trimark.c @@ -25,7 +25,7 @@ int polycnt; int phase = PHASE_HALVE; float avgfps = -1; -void running_stats() { +void running_stats(void) { pvr_stats_t stats; pvr_get_stats(&stats); @@ -35,7 +35,7 @@ void running_stats() { avgfps = (avgfps + stats.frame_rate) / 2.0f; } -void stats() { +void stats(void) { pvr_stats_t stats; pvr_get_stats(&stats); @@ -44,7 +44,7 @@ void stats() { } -int check_start() { +int check_start(void) { maple_device_t *cont; cont_state_t *state; @@ -62,7 +62,7 @@ int check_start() { pvr_poly_hdr_t hdr; -void setup() { +void setup(void) { glKosInit(); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); @@ -71,7 +71,7 @@ void setup() { glLoadIdentity(); } -void do_frame() { +void do_frame(void) { int x, y, z; int size; int i; @@ -105,7 +105,7 @@ void switch_tests(int ppf) { polycnt = ppf; } -void check_switch() { +void check_switch(void) { time_t now; now = time(NULL); diff --git a/examples/dreamcast/kgl/benchmarks/tristripmark/tristripmark.c b/examples/dreamcast/kgl/benchmarks/tristripmark/tristripmark.c index d86b79e..9ee44da 100644 --- a/examples/dreamcast/kgl/benchmarks/tristripmark/tristripmark.c +++ b/examples/dreamcast/kgl/benchmarks/tristripmark/tristripmark.c @@ -25,7 +25,7 @@ int polycnt; int phase = PHASE_HALVE; float avgfps = -1; -void running_stats() { +void running_stats(void) { pvr_stats_t stats; pvr_get_stats(&stats); @@ -35,7 +35,7 @@ void running_stats() { avgfps = (avgfps + stats.frame_rate) / 2.0f; } -void stats() { +void stats(void) { pvr_stats_t stats; pvr_get_stats(&stats); @@ -44,7 +44,7 @@ void stats() { } -int check_start() { +int check_start(void) { ...<truncated>... hooks/post-receive -- A pseudo Operating System for the Dreamcast. |