Mailing List Archive

r3170 - in trunk/varnish-cache: bin/varnishd include lib/libvcl
Author: phk
Date: 2008-09-08 16:22:42 +0200 (Mon, 08 Sep 2008)
New Revision: 3170

Modified:
trunk/varnish-cache/bin/varnishd/cache_vrt.c
trunk/varnish-cache/include/vrt.h
trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c
Log:
Add VRT_memmove() to the VRT API.



Modified: trunk/varnish-cache/bin/varnishd/cache_vrt.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_vrt.c 2008-09-08 09:49:01 UTC (rev 3169)
+++ trunk/varnish-cache/bin/varnishd/cache_vrt.c 2008-09-08 14:22:42 UTC (rev 3170)
@@ -726,3 +726,10 @@
return (strcmp(s1, s2));
}

+void
+VRT_memmove(void *dst, const void *src, unsigned len)
+{
+
+ (void)memmove(dst, src, len);
+}
+

Modified: trunk/varnish-cache/include/vrt.h
===================================================================
--- trunk/varnish-cache/include/vrt.h 2008-09-08 09:49:01 UTC (rev 3169)
+++ trunk/varnish-cache/include/vrt.h 2008-09-08 14:22:42 UTC (rev 3170)
@@ -154,6 +154,7 @@

/* Simple stuff */
int VRT_strcmp(const char *s1, const char *s2);
+void VRT_memmove(void *dst, const void *src, unsigned len);

void VRT_ESI(struct sess *sp);
void VRT_Rollback(struct sess *sp);

Modified: trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c 2008-09-08 09:49:01 UTC (rev 3169)
+++ trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c 2008-09-08 14:22:42 UTC (rev 3170)
@@ -434,6 +434,7 @@
vsb_cat(sb, "\n");
vsb_cat(sb, "/* Simple stuff */\n");
vsb_cat(sb, "int VRT_strcmp(const char *s1, const char *s2);\n");
+ vsb_cat(sb, "void VRT_memmove(void *dst, const void *src, unsigned len);\n");
vsb_cat(sb, "\n");
vsb_cat(sb, "void VRT_ESI(struct sess *sp);\n");
vsb_cat(sb, "void VRT_Rollback(struct sess *sp);\n");