Skip to content

Conversation

sblondon
Copy link
Owner

@sblondon sblondon commented Aug 5, 2012

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant