From de0352a2926b0708400a9629c1da813455a6f442 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 27 Feb 2022 12:11:07 +0100 Subject: Changed unniss() to return an Alg*. Addedd inplace() to run a function on an alg in place. --- src/alg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/alg.h') diff --git a/src/alg.h b/src/alg.h index d32c8bf..6bee26b 100644 --- a/src/alg.h +++ b/src/alg.h @@ -22,6 +22,7 @@ bool commute(Move m1, Move m2); void copy_alg(Alg *src, Alg *dst); void free_alg(Alg *alg); void free_alglist(AlgList *l); +void inplace(Alg * (*f)(Alg *), Alg *alg); Alg * inverse_alg(Alg *alg); Move inverse_move(Move m); char * move_string(Move m); @@ -33,7 +34,7 @@ Alg * on_inverse(Alg *alg); void print_alg(Alg *alg, bool l); void print_alglist(AlgList *al, bool l); void swapmove(Move *m1, Move *m2); -void unniss(Alg *alg); +Alg * unniss(Alg *alg); void init_moveset(Moveset *ms); void init_all_movesets(); -- cgit v1.3