]> granicus.if.org Git - fortune-mod/commit
Extract a method or a function.
authorShlomi Fish <shlomif@shlomifish.org>
Thu, 30 Apr 2020 06:37:39 +0000 (09:37 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Thu, 30 Apr 2020 06:37:39 +0000 (09:37 +0300)
commit0872cbd088c9ef6a7cb03e3ad8d65bc83e55ed7d
tree7b6237287e458620e534b2c664bb034f8f2bf254
parent45bb384026614c86d1c4983c25355f0c01b965e3
Extract a method or a function.

This is Refactoring / code cleanup.

See:

* https://refactoring.com/catalog/extractMethod.html

* https://en.wikipedia.org/wiki/Code_refactoring

* https://www.refactoring.com/

* https://www.joelonsoftware.com/2002/01/23/rub-a-dub-dub/

Some small optimisations may have slipped in as well.
fortune-mod/util/fortune-util.h [new file with mode: 0644]
fortune-mod/util/randstr.c
fortune-mod/util/unstr.c