[master] 3cd5a9934 Add VCS_String() public function, which depending on the argument returns version related strings.
Poul-Henning Kamp
phk at phk.freebsd.dk
Tue May 21 08:34:51 UTC 2019
--------
In message <CABoVN9C2WXuBP3t56y_3nUevk5N+inRfJXyEtmR9X5OaMC3xnQ at mail.gmail.com>, Dridi Boukelmoune writes:
>> +const char *
>> +VCS_String(const char *which)
>> +{
>> + AN(which);
>> + assert(which[1] == '\0');
>
>Why not simply take a char here?
Because I want to keep the door open for a printf-like
specification down the road.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-commit
mailing list