diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-06-12 13:45:06 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-06-12 13:45:06 -0400 |
commit | 0fec83ebc89bd6b86f772d942b7c39b13f773d3a (patch) | |
tree | f2d10a7fe784773b4722843ce3f2bbe1c8e0db62 /libdimension/dimension/light.h | |
parent | bb976e3a5cc01abecf6729eb511f75fb21c6d2c4 (diff) | |
download | dimension-0fec83ebc89bd6b86f772d942b7c39b13f773d3a.tar.xz |
Add a C89 compliance test for the headers.
Technically we still require a couple things from C99 like "bool",
but it works with -std=c89 under gcc.
Diffstat (limited to 'libdimension/dimension/light.h')
-rw-r--r-- | libdimension/dimension/light.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libdimension/dimension/light.h b/libdimension/dimension/light.h index 82b72b4..218611d 100644 --- a/libdimension/dimension/light.h +++ b/libdimension/dimension/light.h @@ -25,7 +25,7 @@ #include <stdbool.h> -// Forward-declar dmnsn_light +/* Forward-declar dmnsn_light */ typedef struct dmnsn_light dmnsn_light; /** @@ -54,12 +54,12 @@ typedef dmnsn_color dmnsn_light_illumination_fn(const dmnsn_light *light, */ typedef bool dmnsn_light_shadow_fn(const dmnsn_light *light, double t); -/// A light. +/** A light. */ struct dmnsn_light { - // Callbacks - dmnsn_light_direction_fn *direction_fn; ///< Direction callback. - dmnsn_light_illumination_fn *illumination_fn; ///< Illumination callback. - dmnsn_light_shadow_fn *shadow_fn; ///< Shadow callback. + /* Callbacks */ + dmnsn_light_direction_fn *direction_fn; /**< Direction callback. */ + dmnsn_light_illumination_fn *illumination_fn; /**< Illumination callback. */ + dmnsn_light_shadow_fn *shadow_fn; /**< Shadow callback. */ }; /** |