summaryrefslogtreecommitdiff
path: root/src/ProgressBar.cpp
Commit message (Collapse)AuthorAgeFilesLines
* chore: Refine ProgressBar value calculationJoel Rosdahl2022-12-131-4/+10
|
* Remove system.hpp, including what’s needed insteadJoel Rosdahl2021-07-071-2/+9
| | | | This is the next step after a57f70eda32e99221de56f5499079b4f00dc2bc5.
* Detect errors in fmt::print format strings at compile timeJoel Rosdahl2020-10-231-8/+11
| | | | See also 4413d842e23c6fa52ec411951a4ab442f42227de.
* Support building on MSVC (#632)Rafael Kitover2020-08-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With these changes, the project builds with Visual Studio 2019, unit tests pass and it works correctly with mingw gcc. NOTE: The very latest version of Visual Studio 2019 is required, because there was just a necessary fix for template arguments. Tested building and running unit tests on Windows+MSVC, Windows+MinGW, Linux and macOS. - Enable `ZSTD_FROM_INTERNET` by default for MSVC when not using vcpkg or conan. - Add include tests for some standard UNIX headers not available on MSVC. - Add necessary MSVC compiler flags. - In `Args::from_gcc_atfile()` iterate over the string via `c_str()` instead of `cbegin()`, the MSVC string character iterator does not include the ending null byte. - Misc. minor cmake fix-ups. - Add some headers that are not implicitly included from other headers like `<algorithm>`, `<ios>`, `<cstdint>` and `<cstdarg>` in some places, gcc does this but MSVC does not. - Add `std::filesystem` version of `Util::traverse()` when dirent.h is not available, which is preferred for performance reasons. - Add implementations of the following functions that are not available in MSVC in Win32Util.cpp: `gettimeofday()`, `localtime_r()`, `asprintf()`. - Add Windows implementation of `getopt_long()` from https://www.codeproject.com/Articles/157001/Full-getopt-Port-for-Unicode-and-Multibyte-Microso to third_party/win32. - Add some compatibility typedefs, constants and macros to the `_WIN32` section of system.hpp, as well as the prototypes for the functions added to Win32Util.cpp. - Fix up unit tests expecting '/' separated paths to expect paths delimited by `DIR_DELIM_CH`. - Invoke test/run with bash from cmake, necessary on msys2+mingw64, many fail, there is more work to do here. - Set the warning level to `/W4` and silence all the uninteresting warning types. Compiles with no warnings now. - Switch to using standard C++ attributes `[[nodiscard]]` and `[[maybe_unused]]` and define macros for gcc for their equivalents. - `#define DOCTEST_CONFIG_USE_STD_HEADERS` for MSVC only, because it requires explicitly including `<ostream>`. - Add vim files to .gitignore. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
* Reduce the set of included headersJoel Rosdahl2020-06-231-4/+1
|
* Make ccache build on Solaris 11.4 (#572)Philipp Storz2020-04-061-0/+4
| | | These changes enable building on Oracle Solaris 11.4 for both i386 and sparc.
* Windows define and include restructuring (#492)Thomas Otto2019-11-241-3/+1
| | | | | | | | Set the _WIN32_WINNT macro only once in the generated config.h. Include <windows.h> only once in system.hpp, unless these includes are in third party libs - however third party includes themselves should always be behind internal includes. Therefore also make system.hpp the first include everywhere.
* Use #include "third_party/..." consistently to include third party codeJoel Rosdahl2019-10-191-1/+2
|
* Add ProgressBar classJoel Rosdahl2019-09-051-0/+91
The progress bar draws a simple progress bar with percentage to the console.