sblondon/rolldice — pull request #1 by sblondon (2012-08-05 17:50:56+00:00)
Title: some improvements in the Refactorings branch

This branch provide several refactorings. Each refactoring is provided within a commit.

Mainly:
- print_rolls() is now splitted in two functions.
- lot of parameters are declared const.
- remove unused stuff.

By the way, I understand now why there is a space after the total score : it's because when there is several rolls, the results would not be separated.
Currently, the software prints that:
$ ./rolldice 3x1d4
3 2 4
^- the mysterious space currently provided

I didn't modify this behaviour.

Is it a problem for you if I remove the strip command made in the makefile ? I don't think the size of the binary is a problem nowadays and I could help if someone find a bug (even I don't think a lot of people uses it).