From 168b411fc3516e626728ceb5c10ba2ee7ef7a9b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 27 Mar 2017 21:36:39 +0200 Subject: [PATCH] TP_13: fixlet to a function declaration in a comment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- TP_13/exo2/lib/coordinates.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TP_13/exo2/lib/coordinates.c b/TP_13/exo2/lib/coordinates.c index 883f119..3aaadd4 100644 --- a/TP_13/exo2/lib/coordinates.c +++ b/TP_13/exo2/lib/coordinates.c @@ -40,10 +40,11 @@ coordinates_t set_coordinates(int y, int x, unsigned type) { } /* FIXME: Does it worth doing a coordinates_t get_coordinates(int y, int x, unsigned type); helper function? */ -/* Or a int get_coordinates_x(int y, int x, unsigned type); helper function? */ +/* Or a int get_coordinates_x(coordinates_t coordinates); helper function? */ /* the function do a lot of sanity checks before adding new board elements, - * hence the loop. moving the checks in the main loop is also possible */ + * hence the loop. moving the checks in the main loop is also possible. + * for now, just branch in the main loop given this function error value returned. */ unsigned add_coordinates(coordinates_t new_coordinates, coordinates_t* coordinates_array, unsigned round) { /* valid coordinates are in the [1-3] range */ -- 2.34.1