]> Kevux Git Server - fll/commit
Feature: Add f_time project, adding functions for safely handling struct timespec.
authorKevin Day <kevin@kevux.org>
Sat, 5 Aug 2023 05:16:18 +0000 (00:16 -0500)
committerKevin Day <kevin@kevux.org>
Sat, 5 Aug 2023 05:21:30 +0000 (00:21 -0500)
commit9b7017867a16e46ed4ffcecacd60e78cdb0805c6
treec087374fbab10a4524bcbb510372966cceadc613
parent08df10d48861247097b6c65a0aa9ba208b0d2131
Feature: Add f_time project, adding functions for safely handling struct timespec.

This adds f_time_spec_millisecond() and f_time_spec_nanosecond() for safely handling overflow and underflow when using standard FLL f_number_unsigned_t numbers.

Unit tests are added.

A comment in the controller prrogram is added to designate that the controller-specific functions should be updated to call these functions.
26 files changed:
build/disable/about.txt
build/level_0/settings
build/monolithic/settings
build/scripts/bootstrap-example.sh
build/scripts/test.sh
build/stand_alone/fake.config.h
level_0/f_time/c/time.c [new file with mode: 0644]
level_0/f_time/c/time.h [new file with mode: 0644]
level_0/f_time/data/build/defines [new file with mode: 0644]
level_0/f_time/data/build/dependencies [new file with mode: 0644]
level_0/f_time/data/build/dependencies-tests [new file with mode: 0644]
level_0/f_time/data/build/fakefile [new file with mode: 0644]
level_0/f_time/data/build/functions [new file with mode: 0644]
level_0/f_time/data/build/macros [new file with mode: 0644]
level_0/f_time/data/build/settings [new file with mode: 0644]
level_0/f_time/data/build/settings-tests [new file with mode: 0644]
level_0/f_time/data/build/structures [new file with mode: 0644]
level_0/f_time/data/build/testfile [new file with mode: 0644]
level_0/f_time/tests/unit/c/test-time-spec_millisecond.c [new file with mode: 0644]
level_0/f_time/tests/unit/c/test-time-spec_millisecond.h [new file with mode: 0644]
level_0/f_time/tests/unit/c/test-time-spec_nanosecond.c [new file with mode: 0644]
level_0/f_time/tests/unit/c/test-time-spec_nanosecond.h [new file with mode: 0644]
level_0/f_time/tests/unit/c/test-time.c [new file with mode: 0644]
level_0/f_time/tests/unit/c/test-time.h [new file with mode: 0644]
level_0/f_type/c/type.h
level_3/controller/c/controller/private-controller.c