]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Feature test macro review (cont.)
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Tue, 3 Oct 2023 21:26:08 +0000 (15:26 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Tue, 3 Oct 2023 23:28:23 +0000 (17:28 -0600)
commit9b667a08aa51c5fa5152406bc4a996805d5af200
tree2c5c4a5c211fc7dd50b825c883c35312fb246882
parent39b02a2087565464bf9cbc761dd03ba4ea7df169
Feature test macro review (cont.)

I found a couple of symbols I missed during the previous macro review:

- getline(). This forces POSIX >= 2008.
- IN6_ARE_ADDR_EQUAL(). I can't find where this is supposed to be
  standardized, so I decided to ditch it.

Also, declaring these macros in every dependent file is scaling poorly,
so I moved them to the CC directives, unifying them in the process.
_POSIX_C_SOURCE is now 200809L, and _XOPEN_SOURCE is 700 (to match).

Also, reduce -std to c99. I don't really have an issue with gnu11, but
it looks like the delta is heavily underutilized in the project.
Might revert it later.

Finally, update the unit tests.
32 files changed:
src/Makefile.am
src/alloc.c
src/asn1/asn1c/BIT_STRING.c
src/asn1/asn1c/GeneralizedTime.c
src/asn1/asn1c/OBJECT_IDENTIFIER.c
src/asn1/asn1c/UTCTime.c
src/asn1/asn1c/asn_bit_data.c
src/asn1/asn1c/asn_internal.c
src/asn1/asn1c/ber_tlv_tag.c
src/asn1/asn1c/constraints.c
src/cache/local_cache.c
src/config.c
src/data_structure/path_builder.c
src/file.c
src/json_handler.c
src/line_file.c
src/log.c
src/object/manifest.c
src/rtr/rtr.c
src/types/address.c
src/types/address.h
src/types/vrp.c
src/xml/relax_ng.c
test/Makefile.am
test/cache/local_cache_test.c
test/line_file_test.c
test/mock.c
test/rtr/db/db_table_test.c
test/rtr/db/vrps_test.c
test/rtr/pdu_handler_test.c
test/rtr/pdu_test.c
test/tal_test.c