{"author":"Daniel Stenberg","author_email":"daniel@haxx.se","author_time":1751200393,"commit_time":1751318200,"committer":"Daniel Stenberg","committer_email":"daniel@haxx.se","hash":"c9bb9cd165c1b25c2fe005befdcfe479fc9b68e1","message":"unit tests: extract \"private\" prototypes at build time\n\nIn order to do unit tests for private functions, functions that are\nmarked UNITTEST but without a global scope in the library, functions\nthat do not have prototypes in their corresponding header file, unit\ntests previously brought their own private prototype *copy* into the\nunit test.\n\nThis was error-prone when the internal function changes but the change\nmight be missed in the unit test which then uses an outdated prototype\ncopy for testing.\n\nThis change removes the private prototypes from unit tests and instead\nintroduces a C file parser that parses the specific C files and extracts\nthe necessary unit test prototypes into a generated header file for unit\ntests to use. This geneated lib/unitprotos.h header is then included by\nunit tests that need private prototypes.\n\nAssisted-by: Viktor Szakats\nCloses #17750\n","parents":["48d3407d7c14a423320ffd9031ba50f2140305a7"],"tree_hash":"3acb4e5ae4567b8e693b8da461eaa0983b342bfc"}