Skip to content

Commit f176074

Browse files
committed
Add explicit void to all functions not accepting any arguments
1 parent de4abea commit f176074

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+910
-910
lines changed

src/BRSRC13/CORE/DOSIO/eventq.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
#include "brender/br_types.h"
55

6-
br_error DOSEventBegin();
6+
br_error DOSEventBegin(void);
77

8-
void DOSEventEnd();
8+
void DOSEventEnd(void);
99

1010
br_boolean DOSEventWait(dosio_event* event, br_boolean block);
1111

src/BRSRC13/CORE/DOSIO/readmse.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
#include "brender/br_types.h"
55

6-
br_error DOSMouseBegin();
6+
br_error DOSMouseBegin(void);
77

8-
void DOSMouseEnd();
8+
void DOSMouseEnd(void);
99

1010
br_error DOSMouseRead(br_int_32* mouse_x, br_int_32* mouse_y, br_uint_32* mouse_buttons);
1111

src/BRSRC13/CORE/FW/assocarr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "brender/br_types.h"
55

6-
br_associative_array* BrAssociativeArrayAllocate();
6+
br_associative_array* BrAssociativeArrayAllocate(void);
77

88
br_error Set_Associative_Array_Value(br_associative_array* pArray, int index, br_value v);
99

src/BRSRC13/CORE/FW/brbegin.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
#include "brender/br_types.h"
55

6-
br_error BrBegin();
6+
br_error BrBegin(void);
77

8-
br_error BrEnd();
8+
br_error BrEnd(void);
99

1010
#endif

src/BRSRC13/CORE/FW/brbhook.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
#include "brender/br_types.h"
55

6-
void _BrBeginHook();
6+
void _BrBeginHook(void);
77

8-
void _BrEndHook();
8+
void _BrEndHook(void);
99

1010
#endif

src/BRSRC13/CORE/FW/datafile.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void* DfPop(int type, int* countp);
110110

111111
void* DfTop(int type, int* countp);
112112

113-
int DfTopType();
113+
int DfTopType(void);
114114

115115
int TextReadLine(br_datafile* df, char** ident, char** data);
116116

@@ -192,7 +192,7 @@ int DfSkipBinary(br_datafile* df, br_uint_32 length);
192192

193193
int DfChunksInterpret(br_datafile* df, br_chunks_table* table);
194194

195-
void BrNullOther();
195+
void BrNullOther(void);
196196

197197
int DfFileIdentify(br_uint_8* magics, br_size_t n_magics);
198198

src/BRSRC13/CORE/FW/devlist.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "brender/br_types.h"
55

6-
br_error AddRequestedDrivers();
6+
br_error AddRequestedDrivers(void);
77

88
br_error devAdd(br_device** pdev, br_device_begin_fn* dev_begin, char* args, br_image* image);
99

src/BRSRC13/CORE/FW/devsetup.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "brender/br_types.h"
55

6-
br_pixelmap* BrDevLastBeginQuery();
6+
br_pixelmap* BrDevLastBeginQuery(void);
77

88
void BrDevLastBeginSet(br_pixelmap* pm);
99

@@ -15,7 +15,7 @@ br_error BrDevBeginTV(br_pixelmap** ppm, char* setup_string, br_token_value* set
1515

1616
br_pixelmap* BrDevBeginOld(char* setup_string);
1717

18-
void BrDevEndOld();
18+
void BrDevEndOld(void);
1919

2020
void BrDevPaletteSetOld(br_pixelmap* pm);
2121

src/BRSRC13/CORE/FW/file.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
void _BrFileFree(void* res, br_uint_8 res_class, br_size_t size);
77

8-
br_uint_32 BrFileAttributes();
8+
br_uint_32 BrFileAttributes(void);
99

1010
void* BrFileOpenRead(char* name, br_size_t n_magics, br_mode_test_cbfn* mode_test, int* mode_result);
1111

src/BRSRC13/CORE/FW/fwsetup.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
extern br_framework_state fw;
77

8-
br_error BrFwBegin();
8+
br_error BrFwBegin(void);
99

10-
br_error BrFwEnd();
10+
br_error BrFwEnd(void);
1111

1212
br_diaghandler* BrDiagHandlerSet(br_diaghandler* newdh);
1313

src/BRSRC13/CORE/FW/scratch.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ void* BrScratchAllocate(br_size_t size);
77

88
void BrScratchFree(void* scratch);
99

10-
void BrScratchFlush();
10+
void BrScratchFlush(void);
1111

12-
br_size_t BrScratchInquire();
12+
br_size_t BrScratchInquire(void);
1313

14-
char* BrScratchString();
14+
char* BrScratchString(void);
1515

16-
br_size_t BrScratchStringSize();
16+
br_size_t BrScratchStringSize(void);
1717

1818
#endif

src/BRSRC13/CORE/FW/sys_conf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ br_error LoadRegistryConfig(char* Reg_Path, void* hKey);
1515

1616
br_error BrSetDefaultConfig(br_token t, char* Entry);
1717

18-
br_error BrSystemConfigBegin();
18+
br_error BrSystemConfigBegin(void);
1919

2020
br_error BrSystemConfigLoad(br_token t, char* Param1, void* Param2);
2121

src/BRSRC13/CORE/FW/token.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "brender/br_types.h"
55

6-
void BrTokenBegin();
6+
void BrTokenBegin(void);
77

88
br_token BrTokenCreate(char* identifier, br_token type);
99

src/BRSRC13/CORE/HOST/hostcfg.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "brender/br_types.h"
55

6-
char* HostDefaultDevice();
6+
char* HostDefaultDevice(void);
77

88
br_boolean HostIniSectionExists(char* ini_file, char* section_name);
99

src/BRSRC13/CORE/HOST/hstsetup.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
#include "brender/br_types.h"
55

6-
void HostBegin();
6+
void HostBegin(void);
77

8-
void HostEnd();
8+
void HostEnd(void);
99

1010
br_error HostInfo(host_info* buffer, br_size_t buffersize);
1111

src/BRSRC13/CORE/PIXELMAP/pmsetup.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
extern br_pixelmap_state _pixelmap;
77

8-
void BrPixelmapBegin();
8+
void BrPixelmapBegin(void);
99

10-
void BrPixelmapEnd();
10+
void BrPixelmapEnd(void);
1111

1212
#endif

src/BRSRC13/CORE/STD/brexcept.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
#include "brender/br_types.h"
55

6-
br_exception_handler* _BrExceptionBegin();
6+
br_exception_handler* _BrExceptionBegin(void);
77

8-
void _BrExceptionEnd();
8+
void _BrExceptionEnd(void);
99

1010
void _BrExceptionThrow(br_int_32 type, void* value);
1111

1212
br_exception _BrExceptionValueFetch(br_exception type, void** evp);
1313

14-
void* _BrExceptionResource();
14+
void* _BrExceptionResource(void);
1515

1616
#endif

src/BRSRC13/CORE/STD/brstdfile.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
extern br_filesystem* _BrDefaultFilesystem;
77

8-
br_uint_32 BrStdioAttributes();
8+
br_uint_32 BrStdioAttributes(void);
99

1010
void* BrStdioOpenRead(char* name, br_size_t n_magics, br_mode_test_cbfn* identify, int* mode_result);
1111

src/BRSRC13/CORE/V1DB/dbsetup.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
extern br_v1db_state v1db;
77

8-
br_error BrV1dbBegin();
8+
br_error BrV1dbBegin(void);
99

10-
br_error BrV1dbEnd();
10+
br_error BrV1dbEnd(void);
1111

1212
br_uint_32 updateTable(br_pixelmap* item, void* arg);
1313

@@ -27,20 +27,20 @@ br_uint_32 clearModel(br_model* item, void* arg);
2727

2828
br_error BrV1dbRendererBegin(br_device_pixelmap* destination, br_renderer* renderer);
2929

30-
br_renderer* BrV1dbRendererQuery();
30+
br_renderer* BrV1dbRendererQuery(void);
3131

32-
br_error BrV1dbRendererEnd();
32+
br_error BrV1dbRendererEnd(void);
3333

3434
void BrZbBegin(br_uint_8 colour_type, br_uint_8 depth_type);
3535

3636
void BrZsBegin(br_uint_8 colour_type, void* primitive, br_uint_32 size);
3737

38-
void BrZbEnd();
38+
void BrZbEnd(void);
3939

40-
void BrZsEnd();
40+
void BrZsEnd(void);
4141

42-
void BrV1dbBeginWrapper_Float();
42+
void BrV1dbBeginWrapper_Float(void);
4343

44-
void BrV1dbEndWrapper();
44+
void BrV1dbEndWrapper(void);
4545

4646
#endif

src/BRSRC13/CORE/V1DB/def_mat.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
#include "brender/br_types.h"
55

6-
br_material* SetupDefaultMaterial();
6+
br_material* SetupDefaultMaterial(void);
77

88
#endif

src/BRSRC13/CORE/V1DB/otable.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ br_uint_16 BrZsPrimitiveBucketSelect(br_scalar* z, br_uint_16 type, br_scalar mi
1919

2020
void BrZsOrderTablePrimaryEnable(br_order_table* order_table);
2121

22-
void BrZsOrderTablePrimaryDisable();
22+
void BrZsOrderTablePrimaryDisable(void);
2323

2424
void InsertOrderTableList(br_order_table* order_table);
2525

2626
void SetOrderTableBounds(br_bounds* bounds, br_order_table* order_table);
2727

2828
void SetOrderTableRange(br_order_table* order_table);
2929

30-
void RenderOrderTableList();
30+
void RenderOrderTableList(void);
3131

32-
void RenderPrimaryOrderTable();
32+
void RenderPrimaryOrderTable(void);
3333

3434
#endif

src/BRSRC13/CORE/V1DB/render.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ void BrZbSceneRenderBegin(br_actor* world, br_actor* camera, br_pixelmap* colour
3131

3232
void BrZbSceneRenderAdd(br_actor* tree);
3333

34-
void BrZbSceneRenderEnd();
34+
void BrZbSceneRenderEnd(void);
3535

3636
void BrZbSceneRender(br_actor* world, br_actor* camera, br_pixelmap* colour_buffer, br_pixelmap* depth_buffer);
3737

3838
void BrZsSceneRenderBegin(br_actor* world, br_actor* camera, br_pixelmap* colour_buffer);
3939

4040
void BrZsSceneRenderAdd(br_actor* tree);
4141

42-
void BrZsSceneRenderEnd();
42+
void BrZsSceneRenderEnd(void);
4343

4444
void BrZsSceneRender(br_actor* world, br_actor* camera, br_pixelmap* colour_buffer);
4545

src/BRSRC13/include/brender/br_types.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ typedef enum br_fitmap_axis {
638638
} br_fitmap_axis;
639639
typedef void br_putline_cbfn(char*, void*);
640640
typedef int br_mode_test_cbfn(br_uint_8*, br_size_t);
641-
typedef br_uint_32 brfile_attributes_cbfn();
641+
typedef br_uint_32 brfile_attributes_cbfn(void);
642642
typedef void* brfile_open_read_cbfn(char*, br_size_t, br_mode_test_cbfn*, int*);
643643
typedef void* brfile_open_write_cbfn(char*, int);
644644
typedef void brfile_close_cbfn(void*);
@@ -1650,7 +1650,7 @@ typedef struct br_framework_state2 { // size: 0x14d4
16501650
} br_framework_state2;
16511651

16521652
typedef br_error br_exception;
1653-
typedef void br_resident_fn();
1653+
typedef void br_resident_fn(void);
16541654
typedef struct br_tv_template_entry {
16551655
br_token token;
16561656
char* name;

src/DETHRACE/common/brucetrk.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void DrawColumns(int pDraw_blends, tTrack_spec* pTrack_spec, int pMin_x, int pMa
3333

3434
void RenderTrack(br_actor* pWorld, tTrack_spec* pTrack_spec, br_actor* pCamera, br_matrix34* pCamera_to_world, int pRender_blends);
3535

36-
br_scalar GetYonFactor();
36+
br_scalar GetYonFactor(void);
3737

3838
void SetYonFactor(br_scalar pNew);
3939

0 commit comments

Comments
 (0)