From 0fec83ebc89bd6b86f772d942b7c39b13f773d3a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 12 Jun 2014 13:45:06 -0400 Subject: 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. --- libdimension/dimension/pigment.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libdimension/dimension/pigment.h') diff --git a/libdimension/dimension/pigment.h b/libdimension/dimension/pigment.h index 05bc6f6..14d8bae 100644 --- a/libdimension/dimension/pigment.h +++ b/libdimension/dimension/pigment.h @@ -23,7 +23,7 @@ * Object pigments. */ -// Forward-declare dmnsn_pigment +/* Forward-declare dmnsn_pigment */ typedef struct dmnsn_pigment dmnsn_pigment; /** @@ -41,18 +41,18 @@ typedef dmnsn_tcolor dmnsn_pigment_fn(const dmnsn_pigment *pigment, */ typedef void dmnsn_pigment_initialize_fn(dmnsn_pigment *pigment); -/// A pigment. +/** A pigment. */ struct dmnsn_pigment { - dmnsn_pigment_fn *pigment_fn; ///< The pigment callback. - dmnsn_pigment_initialize_fn *initialize_fn; ///< The initializer callback. + dmnsn_pigment_fn *pigment_fn; /**< The pigment callback. */ + dmnsn_pigment_initialize_fn *initialize_fn; /**< The initializer callback. */ - dmnsn_matrix trans; ///< Transformation matrix. - dmnsn_matrix trans_inv; ///< The inverse of the transformation matrix. + dmnsn_matrix trans; /**< Transformation matrix. */ + dmnsn_matrix trans_inv; /**< The inverse of the transformation matrix. */ - /// Quick color -- used for low-quality renders. + /** Quick color -- used for low-quality renders. */ dmnsn_tcolor quick_color; - bool initialized; /// @internal Whether the pigment is initialized. + bool initialized; /** @internal Whether the pigment is initialized. */ }; /** -- cgit v1.2.3