summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-30 15:59:43 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-30 15:59:43 -0500
commit4f40f29ade4a6b2c0b27ba902281718662cdde82 (patch)
treee09ba47066e6509575e636f2e694c6d5deaa5904 /libdimension
parentd5c774477b1d1cbbcc6a7daf00679bcb57193533 (diff)
downloaddimension-4f40f29ade4a6b2c0b27ba902281718662cdde82.tar.xz
Make some empty parameter lists explicit.
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/camera.c2
-rw-r--r--libdimension/color_map.c2
-rw-r--r--libdimension/cube.c2
-rw-r--r--libdimension/dimension/pigments.h4
-rw-r--r--libdimension/dimension/sky_sphere.h2
-rw-r--r--libdimension/error.c6
-rw-r--r--libdimension/geometry.c2
-rw-r--r--libdimension/interior.c2
-rw-r--r--libdimension/light.c2
-rw-r--r--libdimension/object.c2
-rw-r--r--libdimension/perspective.c2
-rw-r--r--libdimension/pigment_map.c2
-rw-r--r--libdimension/platform.c6
-rw-r--r--libdimension/progress.c2
-rw-r--r--libdimension/scene.c2
-rw-r--r--libdimension/sky_sphere.c2
-rw-r--r--libdimension/sphere.c2
-rw-r--r--libdimension/texture.c6
-rw-r--r--libdimension/timer.c2
19 files changed, 26 insertions, 26 deletions
diff --git a/libdimension/camera.c b/libdimension/camera.c
index d963d1b..e9c9148 100644
--- a/libdimension/camera.c
+++ b/libdimension/camera.c
@@ -28,7 +28,7 @@
/* Allocate a new dummy camera */
dmnsn_camera *
-dmnsn_new_camera()
+dmnsn_new_camera(void)
{
dmnsn_camera *camera = dmnsn_malloc(sizeof(dmnsn_camera));
camera->free_fn = NULL;
diff --git a/libdimension/color_map.c b/libdimension/color_map.c
index f7d800e..3ed580e 100644
--- a/libdimension/color_map.c
+++ b/libdimension/color_map.c
@@ -26,7 +26,7 @@
#include "dimension.h"
dmnsn_map *
-dmnsn_new_color_map()
+dmnsn_new_color_map(void)
{
return dmnsn_new_map(sizeof(dmnsn_color));
}
diff --git a/libdimension/cube.c b/libdimension/cube.c
index 6e3120e..9045b76 100644
--- a/libdimension/cube.c
+++ b/libdimension/cube.c
@@ -134,7 +134,7 @@ dmnsn_cube_inside_fn(const dmnsn_object *cube, dmnsn_vector point)
/* Allocate a new cube object */
dmnsn_object *
-dmnsn_new_cube()
+dmnsn_new_cube(void)
{
dmnsn_object *cube = dmnsn_new_object();
cube->intersection_fn = &dmnsn_cube_intersection_fn;
diff --git a/libdimension/dimension/pigments.h b/libdimension/dimension/pigments.h
index aa2c7c3..8aef18d 100644
--- a/libdimension/dimension/pigments.h
+++ b/libdimension/dimension/pigments.h
@@ -45,7 +45,7 @@ dmnsn_pigment *dmnsn_new_canvas_pigment(dmnsn_canvas *canvas);
* Construct a color map.
* @return An empty color map.
*/
-dmnsn_map *dmnsn_new_color_map();
+dmnsn_map *dmnsn_new_color_map(void);
/**
* A color-mapped pigment.
@@ -60,7 +60,7 @@ dmnsn_pigment *dmnsn_new_color_map_pigment(dmnsn_pattern *pattern,
* Construct a pigment map.
* @return An empty pigment map.
*/
-dmnsn_map *dmnsn_new_pigment_map();
+dmnsn_map *dmnsn_new_pigment_map(void);
/**
* A pigment-mapped pigment.
diff --git a/libdimension/dimension/sky_sphere.h b/libdimension/dimension/sky_sphere.h
index f74442e..462666d 100644
--- a/libdimension/dimension/sky_sphere.h
+++ b/libdimension/dimension/sky_sphere.h
@@ -37,7 +37,7 @@ typedef struct dmnsn_sky_sphere {
* Create a sky sphere.
* @return A new blank sky sphere.
*/
-dmnsn_sky_sphere *dmnsn_new_sky_sphere();
+dmnsn_sky_sphere *dmnsn_new_sky_sphere(void);
/**
* Delete a sky sphere.
diff --git a/libdimension/error.c b/libdimension/error.c
index f87c655..974503a 100644
--- a/libdimension/error.c
+++ b/libdimension/error.c
@@ -63,7 +63,7 @@ dmnsn_report_error(dmnsn_severity severity,
/* Return the current resilience, thread-safely. */
dmnsn_severity
-dmnsn_get_resilience()
+dmnsn_get_resilience(void)
{
dmnsn_severity resilience;
if (pthread_mutex_lock(&dmnsn_resilience_mutex) != 0) {
@@ -113,7 +113,7 @@ dmnsn_set_resilience(dmnsn_severity resilience)
}
dmnsn_fatal_error_fn *
-dmnsn_get_fatal_error_fn()
+dmnsn_get_fatal_error_fn(void)
{
dmnsn_fatal_error_fn *fatal;
if (pthread_mutex_lock(&dmnsn_fatal_mutex) != 0) {
@@ -147,7 +147,7 @@ dmnsn_set_fatal_error_fn(dmnsn_fatal_error_fn *fatal)
}
static void
-dmnsn_default_fatal_error_fn()
+dmnsn_default_fatal_error_fn(void)
{
/* Prevent infinite recursion if the fatal error function itself calls
dmnsn_error() */
diff --git a/libdimension/geometry.c b/libdimension/geometry.c
index 56cfbaa..7add290 100644
--- a/libdimension/geometry.c
+++ b/libdimension/geometry.c
@@ -28,7 +28,7 @@
/* Identity matrix */
dmnsn_matrix
-dmnsn_identity_matrix()
+dmnsn_identity_matrix(void)
{
return dmnsn_new_matrix(1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
diff --git a/libdimension/interior.c b/libdimension/interior.c
index 035a7f6..97fce22 100644
--- a/libdimension/interior.c
+++ b/libdimension/interior.c
@@ -28,7 +28,7 @@
/* Allocate an interior */
dmnsn_interior *
-dmnsn_new_interior()
+dmnsn_new_interior(void)
{
dmnsn_interior *interior = dmnsn_malloc(sizeof(dmnsn_interior));
interior->ior = 1.0;
diff --git a/libdimension/light.c b/libdimension/light.c
index 445a9d3..8abb4c9 100644
--- a/libdimension/light.c
+++ b/libdimension/light.c
@@ -28,7 +28,7 @@
/* Allocate a new dummy light */
dmnsn_light *
-dmnsn_new_light()
+dmnsn_new_light(void)
{
dmnsn_light *light = dmnsn_malloc(sizeof(dmnsn_light));
light->light_fn = NULL;
diff --git a/libdimension/object.c b/libdimension/object.c
index 66cbd78..56e25c3 100644
--- a/libdimension/object.c
+++ b/libdimension/object.c
@@ -28,7 +28,7 @@
/* Allocate a dummy object */
dmnsn_object *
-dmnsn_new_object()
+dmnsn_new_object(void)
{
dmnsn_object *object = dmnsn_malloc(sizeof(dmnsn_object));
object->texture = NULL;
diff --git a/libdimension/perspective.c b/libdimension/perspective.c
index 0fa5567..e3997b5 100644
--- a/libdimension/perspective.c
+++ b/libdimension/perspective.c
@@ -39,7 +39,7 @@ dmnsn_perspective_camera_ray_fn(const dmnsn_camera *camera, double x, double y)
/* Create a new perspective camera. */
dmnsn_camera *
-dmnsn_new_perspective_camera()
+dmnsn_new_perspective_camera(void)
{
dmnsn_camera *camera = dmnsn_new_camera();
camera->ray_fn = &dmnsn_perspective_camera_ray_fn;
diff --git a/libdimension/pigment_map.c b/libdimension/pigment_map.c
index 8fe825d..39be53d 100644
--- a/libdimension/pigment_map.c
+++ b/libdimension/pigment_map.c
@@ -42,7 +42,7 @@ dmnsn_delete_mapped_pigment(void *ptr)
}
dmnsn_map *
-dmnsn_new_pigment_map()
+dmnsn_new_pigment_map(void)
{
dmnsn_map *pigment_map = dmnsn_new_map(sizeof(dmnsn_pigment *));
pigment_map->free_fn = &dmnsn_delete_mapped_pigment;
diff --git a/libdimension/platform.c b/libdimension/platform.c
index 9ae579a..e8f090d 100644
--- a/libdimension/platform.c
+++ b/libdimension/platform.c
@@ -53,7 +53,7 @@ dmnsn_backtrace(FILE *file)
}
bool
-dmnsn_is_main_thread()
+dmnsn_is_main_thread(void)
{
#if DMNSN_GETTID
return getpid() == syscall(SYS_gettid);
@@ -63,7 +63,7 @@ dmnsn_is_main_thread()
}
bool
-dmnsn_is_little_endian()
+dmnsn_is_little_endian(void)
{
/* Undefined behaviour, but quite portable */
union {
@@ -74,7 +74,7 @@ dmnsn_is_little_endian()
}
size_t
-dmnsn_ncpus()
+dmnsn_ncpus(void)
{
#if DMNSN_SCHED_GETAFFINITY
cpu_set_t cpuset;
diff --git a/libdimension/progress.c b/libdimension/progress.c
index 243b7e6..aeecbe4 100644
--- a/libdimension/progress.c
+++ b/libdimension/progress.c
@@ -53,7 +53,7 @@ static void dmnsn_progress_unlock_impl(void *arg);
/* Allocate a new dmnsn_progress* */
dmnsn_progress *
-dmnsn_new_progress()
+dmnsn_new_progress(void)
{
dmnsn_progress *progress = dmnsn_malloc(sizeof(dmnsn_progress));
progress->elements = dmnsn_new_array(sizeof(dmnsn_progress_element));
diff --git a/libdimension/scene.c b/libdimension/scene.c
index 42936cd..07fc712 100644
--- a/libdimension/scene.c
+++ b/libdimension/scene.c
@@ -28,7 +28,7 @@
/* Allocate an empty scene */
dmnsn_scene *
-dmnsn_new_scene()
+dmnsn_new_scene(void)
{
dmnsn_scene *scene = dmnsn_malloc(sizeof(dmnsn_scene));
diff --git a/libdimension/sky_sphere.c b/libdimension/sky_sphere.c
index 9e5b9a9..b1d76e0 100644
--- a/libdimension/sky_sphere.c
+++ b/libdimension/sky_sphere.c
@@ -26,7 +26,7 @@
#include "dimension.h"
dmnsn_sky_sphere *
-dmnsn_new_sky_sphere()
+dmnsn_new_sky_sphere(void)
{
dmnsn_sky_sphere *sky_sphere = dmnsn_malloc(sizeof(dmnsn_sky_sphere));
sky_sphere->pigments = dmnsn_new_array(sizeof(dmnsn_pigment *));
diff --git a/libdimension/sphere.c b/libdimension/sphere.c
index 53ceef9..fc9c103 100644
--- a/libdimension/sphere.c
+++ b/libdimension/sphere.c
@@ -62,7 +62,7 @@ dmnsn_sphere_inside_fn(const dmnsn_object *sphere, dmnsn_vector point)
/* Allocate a new sphere */
dmnsn_object *
-dmnsn_new_sphere()
+dmnsn_new_sphere(void)
{
dmnsn_object *sphere = dmnsn_new_object();
sphere->intersection_fn = &dmnsn_sphere_intersection_fn;
diff --git a/libdimension/texture.c b/libdimension/texture.c
index e925adb..0096ce0 100644
--- a/libdimension/texture.c
+++ b/libdimension/texture.c
@@ -28,7 +28,7 @@
/* Allocate a dummy pigment */
dmnsn_pigment *
-dmnsn_new_pigment()
+dmnsn_new_pigment(void)
{
dmnsn_pigment *pigment = dmnsn_malloc(sizeof(dmnsn_pigment));
pigment->pigment_fn = NULL;
@@ -64,7 +64,7 @@ dmnsn_initialize_pigment(dmnsn_pigment *pigment)
/* Allocate a dummy finish */
dmnsn_finish *
-dmnsn_new_finish()
+dmnsn_new_finish(void)
{
dmnsn_finish *finish = dmnsn_malloc(sizeof(dmnsn_finish));
finish->diffuse_fn = NULL;
@@ -89,7 +89,7 @@ dmnsn_delete_finish(dmnsn_finish *finish)
/* Allocate a dummy texture */
dmnsn_texture *
-dmnsn_new_texture()
+dmnsn_new_texture(void)
{
dmnsn_texture *texture = dmnsn_malloc(sizeof(dmnsn_texture));
texture->pigment = NULL;
diff --git a/libdimension/timer.c b/libdimension/timer.c
index daf0c00..53d7101 100644
--- a/libdimension/timer.c
+++ b/libdimension/timer.c
@@ -31,7 +31,7 @@
static long clk_tck = 0;
dmnsn_timer *
-dmnsn_new_timer()
+dmnsn_new_timer(void)
{
/* Figure out the clock ticks per second */
if (!clk_tck) {