summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-07-31 21:26:29 -0600
committerTavian Barnes <tavianator@gmail.com>2010-07-31 21:26:29 -0600
commitfb9dcc629630fe77840574088412eeb12b8d7ddb (patch)
treebb6735fa053ee26b43c09455eccd20a19fb8b1b6 /libdimension/dimension
parentdb019a2c4aa8a7bbfad0dd380717a1d6567d2e82 (diff)
downloaddimension-fb9dcc629630fe77840574088412eeb12b8d7ddb.tar.xz
Fix some -W{strict,missing}-prototypes warnings.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/camera.h2
-rw-r--r--libdimension/dimension/cameras.h2
-rw-r--r--libdimension/dimension/error.h6
-rw-r--r--libdimension/dimension/geometry.h6
-rw-r--r--libdimension/dimension/interior.h2
-rw-r--r--libdimension/dimension/light.h2
-rw-r--r--libdimension/dimension/object.h2
-rw-r--r--libdimension/dimension/objects.h4
-rw-r--r--libdimension/dimension/progress.h2
-rw-r--r--libdimension/dimension/scene.h2
-rw-r--r--libdimension/dimension/texture.h6
11 files changed, 18 insertions, 18 deletions
diff --git a/libdimension/dimension/camera.h b/libdimension/dimension/camera.h
index 1bc3e1f..e95ad18 100644
--- a/libdimension/dimension/camera.h
+++ b/libdimension/dimension/camera.h
@@ -41,7 +41,7 @@ struct dmnsn_camera {
void *ptr;
};
-dmnsn_camera *dmnsn_new_camera();
+dmnsn_camera *dmnsn_new_camera(void);
void dmnsn_delete_camera(dmnsn_camera *camera);
#endif /* DIMENSION_CAMERA_H */
diff --git a/libdimension/dimension/cameras.h b/libdimension/dimension/cameras.h
index 7c588bf..7f4d549 100644
--- a/libdimension/dimension/cameras.h
+++ b/libdimension/dimension/cameras.h
@@ -28,7 +28,7 @@
/* A perspective camera, at the origin, looking at (0, 0, 1). The feild of view
is the section of the plane z = 1 from (-0.5, -0.5) to (0.5, 0.5). Rays are
transformed by the camera's transformation matrix. */
-dmnsn_camera *dmnsn_new_perspective_camera();
+dmnsn_camera *dmnsn_new_perspective_camera(void);
/* Get or set the transformation matrix */
dmnsn_matrix dmnsn_get_perspective_camera_trans(const dmnsn_camera *camera);
diff --git a/libdimension/dimension/error.h b/libdimension/dimension/error.h
index 6eecbfb..a0b3857 100644
--- a/libdimension/dimension/error.h
+++ b/libdimension/dimension/error.h
@@ -66,15 +66,15 @@ void dmnsn_report_error(dmnsn_severity severity,
const char *str);
/* Get and set the library resilience, thread-safely */
-dmnsn_severity dmnsn_get_resilience();
+dmnsn_severity dmnsn_get_resilience(void);
void dmnsn_set_resilience(dmnsn_severity resilience);
/* Fatal error callback type */
-typedef void dmnsn_fatal_error_fn();
+typedef void dmnsn_fatal_error_fn(void);
/* Get and set libdimension fatal error handling strategy - the default is
exit(EXIT_FAILURE) */
-dmnsn_fatal_error_fn *dmnsn_get_fatal_error_fn();
+dmnsn_fatal_error_fn *dmnsn_get_fatal_error_fn(void);
void dmnsn_set_fatal_error_fn(dmnsn_fatal_error_fn *fatal);
#endif /* DIMENSION_ERROR_H */
diff --git a/libdimension/dimension/geometry.h b/libdimension/dimension/geometry.h
index 5efba3a..42a9985 100644
--- a/libdimension/dimension/geometry.h
+++ b/libdimension/dimension/geometry.h
@@ -118,7 +118,7 @@ dmnsn_new_matrix(double a0, double a1, double a2, double a3,
return m;
}
-dmnsn_matrix dmnsn_identity_matrix();
+dmnsn_matrix dmnsn_identity_matrix(void);
dmnsn_matrix dmnsn_scale_matrix(dmnsn_vector s);
dmnsn_matrix dmnsn_translation_matrix(dmnsn_vector d);
/* Left-handed rotation; theta/|theta| = axis, |theta| = angle */
@@ -132,7 +132,7 @@ dmnsn_new_line(dmnsn_vector x0, dmnsn_vector n)
}
DMNSN_INLINE dmnsn_bounding_box
-dmnsn_zero_bounding_box()
+dmnsn_zero_bounding_box(void)
{
dmnsn_bounding_box box = {
{ INFINITY, INFINITY, INFINITY },
@@ -142,7 +142,7 @@ dmnsn_zero_bounding_box()
}
DMNSN_INLINE dmnsn_bounding_box
-dmnsn_infinite_bounding_box()
+dmnsn_infinite_bounding_box(void)
{
dmnsn_bounding_box box = {
{ -INFINITY, -INFINITY, -INFINITY },
diff --git a/libdimension/dimension/interior.h b/libdimension/dimension/interior.h
index 69a0fcb..96168cf 100644
--- a/libdimension/dimension/interior.h
+++ b/libdimension/dimension/interior.h
@@ -39,7 +39,7 @@ typedef struct dmnsn_interior {
unsigned int *refcount;
} dmnsn_interior;
-dmnsn_interior *dmnsn_new_interior();
+dmnsn_interior *dmnsn_new_interior(void);
void dmnsn_delete_interior(dmnsn_interior *interior);
#endif /* DIMENSION_INTERIOR_H */
diff --git a/libdimension/dimension/light.h b/libdimension/dimension/light.h
index 3c861fd..69ed9e7 100644
--- a/libdimension/dimension/light.h
+++ b/libdimension/dimension/light.h
@@ -41,7 +41,7 @@ struct dmnsn_light {
void *ptr;
};
-dmnsn_light *dmnsn_new_light();
+dmnsn_light *dmnsn_new_light(void);
void dmnsn_delete_light(dmnsn_light *light);
#endif /* DIMENSION_LIGHT_H */
diff --git a/libdimension/dimension/object.h b/libdimension/dimension/object.h
index 5cc62a1..f633a2d 100644
--- a/libdimension/dimension/object.h
+++ b/libdimension/dimension/object.h
@@ -83,7 +83,7 @@ struct dmnsn_object {
};
/* Allocate a dummy object */
-dmnsn_object *dmnsn_new_object();
+dmnsn_object *dmnsn_new_object(void);
/* Free an object */
void dmnsn_delete_object(dmnsn_object *object);
diff --git a/libdimension/dimension/objects.h b/libdimension/dimension/objects.h
index a12fee9..9986717 100644
--- a/libdimension/dimension/objects.h
+++ b/libdimension/dimension/objects.h
@@ -29,9 +29,9 @@
dmnsn_object *dmnsn_new_plane(dmnsn_vector normal);
/* A sphere object, of radius 1, centered at the origin. */
-dmnsn_object *dmnsn_new_sphere();
+dmnsn_object *dmnsn_new_sphere(void);
/* A cube, axis-aligned, from (-1, -1, -1) to (1, 1, 1) */
-dmnsn_object *dmnsn_new_cube();
+dmnsn_object *dmnsn_new_cube(void);
#endif /* DIMENSION_OBJECTS_H */
diff --git a/libdimension/dimension/progress.h b/libdimension/dimension/progress.h
index 0a7dce2..53dfc37 100644
--- a/libdimension/dimension/progress.h
+++ b/libdimension/dimension/progress.h
@@ -31,7 +31,7 @@
typedef struct dmnsn_progress dmnsn_progress;
/* Allocate a new progress object */
-dmnsn_progress *dmnsn_new_progress();
+dmnsn_progress *dmnsn_new_progress(void);
/* For failed returns from *_async() functions */
void dmnsn_delete_progress(dmnsn_progress *progress);
diff --git a/libdimension/dimension/scene.h b/libdimension/dimension/scene.h
index 6831048..7c53991 100644
--- a/libdimension/dimension/scene.h
+++ b/libdimension/dimension/scene.h
@@ -67,7 +67,7 @@ typedef struct {
} dmnsn_scene;
/* Create a scene */
-dmnsn_scene *dmnsn_new_scene();
+dmnsn_scene *dmnsn_new_scene(void);
void dmnsn_delete_scene(dmnsn_scene *scene);
#endif /* DIMENSION_SCENE_H */
diff --git a/libdimension/dimension/texture.h b/libdimension/dimension/texture.h
index b2eef05..3d37aa1 100644
--- a/libdimension/dimension/texture.h
+++ b/libdimension/dimension/texture.h
@@ -49,7 +49,7 @@ struct dmnsn_pigment {
void *ptr;
};
-dmnsn_pigment *dmnsn_new_pigment();
+dmnsn_pigment *dmnsn_new_pigment(void);
void dmnsn_delete_pigment(dmnsn_pigment *pigment);
void dmnsn_pigment_init(dmnsn_pigment *pigment);
@@ -88,7 +88,7 @@ struct dmnsn_finish {
void *ptr;
};
-dmnsn_finish *dmnsn_new_finish();
+dmnsn_finish *dmnsn_new_finish(void);
void dmnsn_delete_finish(dmnsn_finish *finish);
/*
@@ -107,7 +107,7 @@ typedef struct {
unsigned int *refcount;
} dmnsn_texture;
-dmnsn_texture *dmnsn_new_texture();
+dmnsn_texture *dmnsn_new_texture(void);
void dmnsn_delete_texture(dmnsn_texture *texture);
void dmnsn_texture_init(dmnsn_texture *texture);