FIX: *customhdr* <-> -S freezing bug..
commite02b24a3cb74fa5a4e9c145cf491c349bc63cf8f
authorSteffen Nurpmeso <steffen@sdaoden.eu>
Tue, 5 Mar 2024 20:16:20 +0000 (5 21:16 +0100)
committerSteffen Nurpmeso <steffen@sdaoden.eu>
Tue, 5 Mar 2024 23:31:16 +0000 (6 00:31 +0100)
tree29736aa89a8e35119cd9e2f4f62a973c54aa4061
parentf60caa679bee8c179446e4847b781db32e368b46
FIX: *customhdr* <-> -S freezing bug..

*customhdr* was wrong ever since [ff8b2ba1260b], (Add -C (create
custom header), change *customhdr*, 2017-12-24).

At least in combination with -S, because the SET_PRE check for VIP
variables was used to verify *customhdr*, and in case of success
the result list was already used, whereas the FROZEN check happens
thereafter, resulting in the assignment of the variable to be
aborted.  Ie: variable had correct value, but the pre-parsed
result would still be used.

So instead give n_header_add_custom() a new mode which only
verifies, and create our result no earlier but in a new SET_POST.
The little bit of double work has to be accepted for now. XXX
include/mx/nailfuns.h
src/mx/accmacvar.c
src/mx/header.c