score.c: Improve documentation of score_compare().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 15 Mar 2022 20:47:08 +0000 (21:47 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 24 Mar 2022 19:01:47 +0000 (20:01 +0100)
Reword the text to focus on why we dance twice. Also put it on dedox
because it is static.

score.c

diff --git a/score.c b/score.c
index 43b788e5a14441e7448b3dd294b3ad5d70381253..823cf28d4d2604fa0ad71036611051d990a13f24 100644 (file)
--- a/score.c
+++ b/score.c
@@ -21,15 +21,11 @@ static int ptr_compare(const struct osl_object *obj1, const struct osl_object *o
        return NUM_COMPARE(d1, d2);
 }
 
-/**
- * Compare the score of two audio files
- *
- * \param obj1 Pointer to the first score object.
- * \param obj2 Pointer to the second score object.
- *
- * This function first compares the score values as usual integers. If they compare as
- * equal, the address of \a obj1 and \a obj2 are compared. So this compare function
- * returns zero if and only if \a obj1 and \a obj2 point to the same memory area.
+/*
+ * This function first compares the score values. If they are equal, the
+ * addresses of the two objects are compared. Thus, the function returns
+ * "equal" only if the two objects alias each other, i.e., point to the same
+ * memory address.
  */
 static int score_compare(const struct osl_object *obj1, const struct osl_object *obj2)
 {