]> git.neil.brown.name Git - edlib.git/commit
doc: allow key to be passed to doc:set: in ->str2
authorNeilBrown <neil@brown.name>
Sun, 18 Jun 2023 00:03:25 +0000 (10:03 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 07:51:41 +0000 (17:51 +1000)
commitbeec6d39df3cc117f0de2e2f2d2883c908c774ac
treefb06524d912fb940b98b326022f6cbe8fda91ddf
parent3fd9437cf1cb83998e61ae8c91a5b990db24295e
doc: allow key to be passed to doc:set: in ->str2

If "doc:set:" or "doc:append:" is called with an empty key appended to
the name, find the key in ->str2.
This avoids the need for string allocation if the key is in a variable.

Signed-off-by: NeilBrown <neil@brown.name>
core-doc.c