Commit Graph

96 Commits

Author SHA1 Message Date
K. Isom af61d914f0 add rpm support 2024-02-04 07:01:06 +00:00
Kyle Isom f99d5a8356 Add integer square root to SCMP. 2023-11-09 00:38:01 -08:00
Kyle Isom 94672bba98 SimpleConfig: Put was setting key=key, not key=value. 2023-10-24 13:22:54 -07:00
Kyle Isom 33675c18ec Flags: show default value. 2023-10-24 12:12:17 -07:00
Kyle Isom f76d524999 SimpleConfig: Add missing definition. 2023-10-23 21:51:43 -07:00
Kyle Isom 1bc8a9ad82 SimpleConfig: Add const char * key variants. 2023-10-23 21:47:33 -07:00
Kyle Isom 9a83cf6c08 Add option to set config values. 2023-10-23 21:09:56 -07:00
Kyle Isom 28238ba041 Install headers correctly. 2023-10-23 20:58:23 -07:00
Kyle Isom 044afb9a60 Darwin: don't build .pkg, build stgz and tgz packages. 2023-10-23 03:04:00 -07:00
Kyle Isom 8ba8dee78d Bump patch to cut new packages. 2023-10-22 15:18:56 -07:00
Kyle Isom 7f0a814b3f Vector: IsParallel now works.
There should be a devlog entry shortly describing this, but the
code for IsParallel wasn't working on arm64 (Linux or Darwin).
Floating point math is weird.
2023-10-22 15:18:40 -07:00
Kyle Isom 8868fe40a1 With Trunk in CI disabled, try Alpine again. 2023-10-22 03:24:36 -07:00
Kyle Isom c5308dedba Add SimpleConfig.
https://godocs.io/git.wntrmute.dev/kyle/goutils/config is one of the
more useful Go packages in my standard go library that gets used for
building services. I needed something similar for another Shimmering
Clarity project, and thus I figured I'd add it into SCSL.
2023-10-22 01:45:04 -07:00
Kyle Isom 9a8dc08a4f cppcheck cleanups and additional docs+testing. 2023-10-21 23:33:22 -07:00
Kyle Isom 9faed6a95b phonebook: exit with appropriate code. 2023-10-21 19:58:22 -07:00
Kyle Isom 168ee430f4 Quaternion self test fixed.
The self-test expects a unit quaternion. The Quaternion vector<3>
constructor uses the vector as-is, expecting it to be potentially the
output from an existing Quaternion. MakeQuaternion is the right function
for build a unit quaternion, so the self-test should actually use this.

This error had been hidden due to building with NDEBUG, which ifdefs out
the self-test. The code was probably changed during the refactoring
process.
2023-10-21 19:53:22 -07:00
Kyle Isom f393f8614f Adjust phonebook help usage.
- If a user requests help via the -h flag, the program shouldn't exit
  with an error code, and it should dump information to stdout, not
  stderr.
2023-10-21 19:49:36 -07:00
Kyle Isom 8b63985ac9 Fix flags usage and make Commander Flags capable.
- Programs should exit on Flags parse error.
- Commander now accepts a string vector for interop with Flags.
2023-10-21 19:45:07 -07:00
Kyle Isom 1420ff343d tests: simple test example should be a standalone demo. 2023-10-21 17:45:33 -07:00
Kyle Isom 10888b4872 tests: all tests now use SimpleSuite.
- Also continuing doc updates.
2023-10-21 17:40:01 -07:00
Kyle Isom 0bf4dd54f3 Remove unused Debug header. 2023-10-21 12:34:38 -07:00
Kyle Isom aee337f2e9 clang-tidy fixes, documentation, refactoring. 2023-10-21 02:07:59 -07:00
Kyle Isom 4e83da345f Attempt to fix CircleCI trunk config, round 3. 2023-10-20 21:39:23 -07:00
Kyle Isom 540a0d5b74 Attempt to fix CircleCI trunk config, round 2. 2023-10-20 21:21:39 -07:00
Kyle Isom 2d7a8d5c1d Attempt to fix CircleCI trunk config. 2023-10-20 21:20:40 -07:00
Kyle Isom 0c7fa41cc8 Document and refactor geom code, round 2.
- Doxygenate headers.
- Rename to bring methods and functions in line with everything else.
2023-10-20 21:17:18 -07:00
Kyle Isom 6a421d6adf Document and refactor geom code.
- Doxygenate headers.
- Rename to bring methods and functions in line with everything else.
2023-10-20 20:45:39 -07:00
Kyle Isom 4b1007123a Test suite cleanups, convert Coord2D to Vector<T, 2>.
- The standard SimpleSuite setup now include flags to suppress printing
  the report in addition to silencing the test runs. This is useful in
  automated testing.
- Point2D and Polar2D in Coord2D have been converted from custom types
  to Vector<int, 2> and Vector<double, 2>, respectively.
2023-10-20 19:05:55 -07:00
Kyle Isom 68ed5e0aca Minor code cleanups. 2023-10-20 16:13:49 -07:00
Kyle Isom 2fceae91fd geom: add missing include. 2023-10-20 03:14:12 -07:00
Kyle Isom 1c2f9af9d9 ci: update script name.
This is a change in the upstream dev container.
2023-10-20 03:08:08 -07:00
Kyle Isom e923335396 Alpine image can't run trunk. 2023-10-20 03:06:04 -07:00
Kyle Isom fa8a89625b add trunk config to repo 2023-10-20 03:05:12 -07:00
Kyle Isom b49caa3ec9 Cleaning up and documenting scmp code. 2023-10-20 02:59:36 -07:00
Kyle Isom 4eb4008130 Further code cleanups and documentation.
- Coverity defects.
- Documentation.
2023-10-20 01:31:06 -07:00
Kyle Isom 2a23d2e204 Fix CircleCI build, more coverity fixes. 2023-10-19 22:57:55 -07:00
Kyle Isom a5bb31943c Add trunk to repo, import clang-format. 2023-10-19 22:04:15 -07:00
Kyle Isom f896a108dd Coverity fixes.
Primarily using std::move in more places.
2023-10-19 21:43:38 -07:00
Kyle Isom 9494871145 README.md: use the correct badge for CircleCI. 2023-10-19 21:19:53 -07:00
Kyle Isom 1c6de07b7a test/coord2d: add missing <array> include. 2023-10-19 21:18:08 -07:00
Kyle Isom eaea8c2ab0 Buffer: add explicit/defensive coding checks. 2023-10-19 21:00:35 -07:00
Kyle Isom 6dab443789 Dictionary: add defensive coding checks. 2023-10-19 21:00:21 -07:00
Kyle Isom 0a661a7d70 Close file handle when done.
This also brings the arena to a single-return standard.
2023-10-19 20:55:31 -07:00
Kyle Isom b1bbaebdac Slow working on bringing the old code up to standard.
- Documentation updates - most of the old files use non-Doxygen or
  no/minimal header comments.
- Rework SimpleSuite to be more useful.
- Coverity-surfaced fixes.
2023-10-19 20:32:46 -07:00
Kyle Isom a9991f241a Add badges to README. 2023-10-19 11:16:13 -07:00
Kyle Isom 49eea73449 Arena: remove resource leak. 2023-10-19 10:59:43 -07:00
Kyle Isom 36fe049485 Continuing refactor work. 2023-10-19 00:58:40 -07:00
Kyle Isom 8d02d078e7 refactor namespaces 2023-10-18 23:57:50 -07:00
Kyle Isom 5f3dc6e9f6 Restructure project, start importing sc3 code. 2023-10-18 23:44:05 -07:00
Kyle Isom 3122ed6ac7 Add circleci config. 2023-10-18 17:57:19 -07:00