summaryrefslogtreecommitdiffstats
path: root/libdimension/map.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-06-07 16:58:20 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-06-07 16:58:20 -0400
commita22560c3ccaf19261b5c40fdcab36d2d22426986 (patch)
tree85a39e016ac972f54e282eedcf32b26da6f67822 /libdimension/map.c
parentbfadc2ee359f10842da21336795e54f24a2746e3 (diff)
downloaddimension-a22560c3ccaf19261b5c40fdcab36d2d22426986.tar.xz
Use // comments when possible.
Diffstat (limited to 'libdimension/map.c')
-rw-r--r--libdimension/map.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libdimension/map.c b/libdimension/map.c
index 9a85773..1ae2a10 100644
--- a/libdimension/map.c
+++ b/libdimension/map.c
@@ -25,13 +25,13 @@
#include "dimension.h"
-/** dmnsn_map definition. */
+/// dmnsn_map definition.
struct dmnsn_map {
- size_t obj_size; /**< @internal The size of the mapped objects. */
- dmnsn_array *array; /**< @internal The map entries. */
+ size_t obj_size; ///< @internal The size of the mapped objects.
+ dmnsn_array *array; ///< @internal The map entries.
};
-/** An [index, object] pair. */
+/// An [index, object] pair.
typedef struct dmnsn_map_entry {
double n;
char object[];
@@ -54,7 +54,7 @@ dmnsn_map_add_entry(dmnsn_map *map, double n, const void *obj)
entry->n = n;
memcpy(entry->object, obj, map->obj_size);
- /* Sorted insertion */
+ // Sorted insertion
size_t i;
for (i = dmnsn_array_size(map->array); i-- > 0;) {
dmnsn_map_entry *other = dmnsn_array_at(map->array, i);