HomePhabricator

Split up util.cpp/h
ad49c256c33bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Split up util.cpp/h

Split up util.cpp/h into:

  • string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach)
  • money utilities (parsesmoney, formatmoney)
  • time utilities (gettime*, sleep, format date):
  • and the rest (logging, argument parsing, config file parsing)

The latter is basically the environment and OS handling,
and is stripped of all utility functions, so we may want to
rename it to something else than util.cpp/h for clarity (Matt suggested
osinterface).

Breaks dependency of sha256.cpp on all the things pulled in by util.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Aug 21 2014, 14:11
deadalnixPushed on May 14 2017, 22:04
Parents
rABCf841aa2892ff: Move `COIN` and `CENT` to core.h
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABCad49c256c33b: Split up util.cpp/h (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Aug 26 2014, 11:25