From 265053e2a4394b20d82aa1170ec3a9901f437d81 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Wed, 2 Sep 2015 10:57:48 +0200 Subject: Adds some comments, as well as minor code improvements. --- src/axis.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/axis.c') diff --git a/src/axis.c b/src/axis.c index 1ba09f0..d883f42 100644 --- a/src/axis.c +++ b/src/axis.c @@ -4,7 +4,12 @@ #include "axis.h" -enum relabsd_axis relabsd_axis_name_to_enum (char * const name) +/* + * Implementation note: _IS_PREFIX, as its name implies, is checking for a + * prefix, not an equal value. This could cause issues if there were axes + * with name prefixed by another axis name. + */ +enum relabsd_axis relabsd_axis_name_to_enum (const char * const name) { if (_IS_PREFIX("X", name)) { -- cgit v1.2.3-70-g09d2