X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=score.c;h=54af56f7c60100ad65ac09cafb52e7769514c958;hb=a07746d8f55d0655510cad2448ef552288338c69;hp=7eb922595b5d823bc6e937db7394649a930be8e1;hpb=9eaba2ab44a977791c3644312bd24acd9b3f668c;p=paraslash.git diff --git a/score.c b/score.c index 7eb92259..54af56f7 100644 --- a/score.c +++ b/score.c @@ -119,7 +119,7 @@ int score_add(const struct osl_row *aft_row, long score) score_objs[SCORECOL_AFT_ROW].size = size; size = score_table_desc.column_descriptions[SCORECOL_SCORE].data_size; - score_objs[SCORECOL_SCORE].data = para_malloc(size); + score_objs[SCORECOL_SCORE].data = alloc(size); score_objs[SCORECOL_SCORE].size = size; *(long *)(score_objs[SCORECOL_SCORE].data) = score; @@ -176,7 +176,7 @@ int score_update(const struct osl_row *aft_row, long percent) return ret; new_score--; obj.size = sizeof(long); - obj.data = para_malloc(obj.size); + obj.data = alloc(obj.size); *(long *)obj.data = new_score; PARA_DEBUG_LOG("new score: %ld, rank %u/%u\n", new_score, new_pos, n); return osl(osl_update_object(score_table, row, SCORECOL_SCORE, &obj)); @@ -189,8 +189,7 @@ int score_update(const struct osl_row *aft_row, long percent) * \param score Result pointer. * \param aft_row Result pointer. * - * \return Negative on errors, positive on success. Possible errors: Errors - * returned by osl_get_object(). + * \return Standard. */ int get_score_and_aft_row(struct osl_row *score_row, long *score, struct osl_row **aft_row) @@ -237,8 +236,7 @@ int admissible_file_loop(void *data, osl_rbtree_loop_func *func) * \param aft_row Points to the row in the aft of the "best" audio file. * \param score Highest score value in the score table. * - * \return Positive on success, negative on errors. Possible errors: Errors - * returned by osl_rbtree_last_row(), osl_get_object(). + * \return Standard. */ int score_get_best(struct osl_row **aft_row, long *score) { @@ -260,8 +258,7 @@ int score_get_best(struct osl_row **aft_row, long *score) * * \param aft_row The file which is no longer admissible. * - * \return Positive on success, negative on errors. Possible errors: - * Errors returned by osl_get_row() and osl_del_row(). + * \return Standard. * * \sa \ref score_add(). */