[master] 656aa24b5 Rename VRT_CollectStrands() to VRT_STRANDS_string()
Poul-Henning Kamp
phk at FreeBSD.org
Fri Aug 20 19:50:06 UTC 2021
commit 656aa24b55c6c749f00677f4d1fab5e64feff8b2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Aug 20 19:32:04 2021 +0000
Rename VRT_CollectStrands() to VRT_STRANDS_string()
diff --git a/bin/varnishd/cache/cache_vrt.c b/bin/varnishd/cache/cache_vrt.c
index 2cf320ac7..5894a95f9 100644
--- a/bin/varnishd/cache/cache_vrt.c
+++ b/bin/varnishd/cache/cache_vrt.c
@@ -593,7 +593,7 @@ VRT_StrandsWS(struct ws *ws, const char *h, VCL_STRANDS s)
*/
VCL_STRING
-VRT_CollectStrands(VRT_CTX, VCL_STRANDS s)
+VRT_STRANDS_string(VRT_CTX, VCL_STRANDS s)
{
const char *b;
diff --git a/include/vrt.h b/include/vrt.h
index 7c7264c34..a9eb450c2 100644
--- a/include/vrt.h
+++ b/include/vrt.h
@@ -54,6 +54,7 @@
* binary/load-time compatible, increment MAJOR version
*
* NEXT (2021-09-15)
+ * VRT_CollectStrands() renamed to VRT_STRANDS_string()
* VRT_l_{beresp|resp}_body() changed to takes STRANDS argument
* VRT_SetHdr() changed to take `const char*` & `STRANDS` arguments.
* VRT_UnsetHdr() added
@@ -454,7 +455,6 @@ VCL_BOOL VRT_Strands2Bool(VCL_STRANDS);
uint32_t VRT_HashStrands32(VCL_STRANDS);
char *VRT_Strands(char *, size_t, VCL_STRANDS);
VCL_STRING VRT_StrandsWS(struct ws *, const char *, VCL_STRANDS);
-VCL_STRING VRT_CollectStrands(VRT_CTX, VCL_STRANDS);
VCL_STRING VRT_UpperLowerStrands(VRT_CTX, VCL_STRANDS s, int up);
/* VCL_SUB */
@@ -471,6 +471,7 @@ VCL_STRING VRT_INT_string(VRT_CTX, VCL_INT);
VCL_STRING VRT_IP_string(VRT_CTX, VCL_IP);
VCL_STRING VRT_REAL_string(VRT_CTX, VCL_REAL);
VCL_STRING VRT_STEVEDORE_string(VCL_STEVEDORE);
+VCL_STRING VRT_STRANDS_string(VRT_CTX, VCL_STRANDS);
VCL_STRING VRT_TIME_string(VRT_CTX, VCL_TIME);
/* historical */
diff --git a/lib/libvcc/vcc_types.c b/lib/libvcc/vcc_types.c
index 7557e520e..0a83f0976 100644
--- a/lib/libvcc/vcc_types.c
+++ b/lib/libvcc/vcc_types.c
@@ -184,7 +184,7 @@ const struct type STRANDS[1] = {{
.magic = TYPE_MAGIC,
.name = "STRANDS",
.stringform = 1,
- .tostring = "VRT_CollectStrands(ctx,\v+\n\v1\v-\n)",
+ .tostring = "VRT_STRANDS_string(ctx,\v+\n\v1\v-\n)",
}};
static const struct vcc_method strings_methods[] = {
diff --git a/vmod/vmod_blob.c b/vmod/vmod_blob.c
index 2f97979a2..19d2f38aa 100644
--- a/vmod/vmod_blob.c
+++ b/vmod/vmod_blob.c
@@ -470,7 +470,7 @@ vmod_transcode(VRT_CTX, VCL_ENUM decs, VCL_ENUM encs, VCL_ENUM case_s,
* overflow. If there is only one string already in the
* workspace, then it is re-used.
*/
- return (VRT_CollectStrands(ctx, strings));
+ return (VRT_STRANDS_string(ctx, strings));
r = encode(ctx, enc, kase, &b);
return (r);
diff --git a/vmod/vmod_debug.c b/vmod/vmod_debug.c
index 190773397..e467e4146 100644
--- a/vmod/vmod_debug.c
+++ b/vmod/vmod_debug.c
@@ -779,7 +779,7 @@ xyzzy_collect(VRT_CTX, VCL_STRANDS s)
VCL_STRING r;
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
- r = VRT_CollectStrands(ctx, s);
+ r = VRT_STRANDS_string(ctx, s);
if (r != NULL && *r != '\0')
AN(WS_Allocated(ctx->ws, r, strlen(r) + 1));
return (r);
More information about the varnish-commit
mailing list