summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/canvas.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-06-12 13:45:06 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-06-12 13:45:06 -0400
commit0fec83ebc89bd6b86f772d942b7c39b13f773d3a (patch)
treef2d10a7fe784773b4722843ce3f2bbe1c8e0db62 /libdimension/dimension/canvas.h
parentbb976e3a5cc01abecf6729eb511f75fb21c6d2c4 (diff)
downloaddimension-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/canvas.h')
-rw-r--r--libdimension/dimension/canvas.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libdimension/dimension/canvas.h b/libdimension/dimension/canvas.h
index 765260d..d03a37e 100644
--- a/libdimension/dimension/canvas.h
+++ b/libdimension/dimension/canvas.h
@@ -25,12 +25,12 @@
#include <stddef.h>
-/// A canvas, or image.
+/** A canvas, or image. */
typedef struct dmnsn_canvas {
- size_t width; ///< Canvas width.
- size_t height; ///< Canvas height.
+ size_t width; /**< Canvas width. */
+ size_t height; /**< Canvas height. */
- /// An array of <tt>dmnsn_canvas_optimizer</tt>s.
+ /** An array of <tt>dmnsn_canvas_optimizer</tt>s. */
dmnsn_array *optimizers;
/**
@@ -51,12 +51,12 @@ typedef struct dmnsn_canvas {
typedef void dmnsn_canvas_optimizer_fn(const dmnsn_canvas *canvas, void *ptr,
size_t x, size_t y);
-/// Canvas optimizer.
+/** Canvas optimizer. */
typedef struct dmnsn_canvas_optimizer {
- dmnsn_canvas_optimizer_fn *optimizer_fn; ///< Optimizer callback.
- dmnsn_free_fn *free_fn; ///< Destructor callback.
+ dmnsn_canvas_optimizer_fn *optimizer_fn; /**< Optimizer callback. */
+ dmnsn_free_fn *free_fn; /**< Destructor callback. */
- void *ptr; ///< Generic pointer.
+ void *ptr; /**< Generic pointer. */
} dmnsn_canvas_optimizer;
/**
@@ -87,7 +87,7 @@ dmnsn_canvas_optimizer *
dmnsn_canvas_find_optimizer(const dmnsn_canvas *canvas,
dmnsn_canvas_optimizer_fn *optimizer_fn);
-// Pixel accessors
+/* Pixel accessors */
/**
* Get the color of a pixel.