diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-02-27 12:11:07 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-02-27 12:11:07 +0100 |
| commit | de0352a2926b0708400a9629c1da813455a6f442 (patch) | |
| tree | b0bab5511cea4d9c2910e144d1ebf53c984f786b /src/commands.c | |
| parent | 75bd848e9e0cd9a14ca82018edac0b414fa4db44 (diff) | |
| download | nissy-de0352a2926b0708400a9629c1da813455a6f442.tar.gz nissy-de0352a2926b0708400a9629c1da813455a6f442.zip | |
Changed unniss() to return an Alg*. Addedd inplace() to run a function on an alg in place.
Diffstat (limited to '')
| -rw-r--r-- | src/commands.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/commands.c b/src/commands.c index 13405b7..8666278 100644 --- a/src/commands.c +++ b/src/commands.c | |||
| @@ -525,8 +525,11 @@ cleanup_exec(CommandArgs *args) | |||
| 525 | static void | 525 | static void |
| 526 | unniss_exec(CommandArgs *args) | 526 | unniss_exec(CommandArgs *args) |
| 527 | { | 527 | { |
| 528 | unniss(args->scramble); | 528 | Alg *aux; |
| 529 | print_alg(args->scramble, false); | 529 | |
| 530 | aux = unniss(args->scramble); | ||
| 531 | print_alg(aux, false); | ||
| 532 | free(aux); | ||
| 530 | } | 533 | } |
| 531 | 534 | ||
| 532 | static void | 535 | static void |
