Commit graph

8 commits

Author SHA1 Message Date
lohhiiccc
75c5766f00 build: add vla warning 2026-04-27 14:14:48 +02:00
lohhiiccc
f4312e890b feat: add -Wshadow to compile commands 2026-04-20 13:42:55 +02:00
lohhiiccc
ef760ca01a build: make compiler variables overridable 2026-02-08 00:31:31 +01:00
lohhiiccc
85543f3d19 fix(makefile)!: improve flags and type casts for stricter build and correctness
- Update Makefile:
  - Change test binary name to `libicmp.test`.
  - Add `-Wpedantic` and `-Wconversion` to global CFLAGS for stricter
    warnings.
  - Add dedicated `TEST_CFLAGS`.
  - Ensure test build uses `TEST_CFLAGS`.
- Refactor code for better correctness.

BREAKING CHANGE: Test binary is now named `libicmp.test` instead of
`test.out` and stricter compiler flags may trigger new warnings or
errors in code outside this patch.
2026-02-07 20:16:06 +01:00
lohhiiccc
bd367b97dc fix: separate build and install steps and fix symlink 2026-01-27 05:28:49 +01:00
lohhiiccc
8fb109e2a0 test: deduplicate helper function 2026-01-25 15:48:39 +01:00
lohhiiccc
2e509336c7 feat(utils): add ICMP checksum and time utilities with tests
- Added `icmp_checksum`.
 - Added `icmp_get_time`.
 - Created unit tests for checksum and time.
 - Set `-D_POSIX_C_SOURCE=199309L` in CPPFLAGS for clock_gettime support.
2026-01-24 22:00:24 +01:00
lohhiiccc
9bd55cf24a Initial commit - libcimp 2026-01-24 16:04:09 +01:00