From: phk Date: Tue, 20 Jun 2006 09:28:00 +0000 (+0000) Subject: Rename the VCL compilers public functions to VCC prefix X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca562d885e6754f385b5dbff8aa71e58f222ca20;p=varnish Rename the VCL compilers public functions to VCC prefix git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@209 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/varnishd.c b/varnish-cache/bin/varnishd/varnishd.c index 85f687f3..9e11540d 100644 --- a/varnish-cache/bin/varnishd/varnishd.c +++ b/varnish-cache/bin/varnishd/varnishd.c @@ -113,7 +113,7 @@ vcl_default(const char *bflag) assert(buf != NULL); sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); assert(sb != NULL); - vf = VCL_Compile(sb, buf, NULL); + vf = VCC_Compile(sb, buf, NULL); sbuf_finish(sb); if (sbuf_len(sb) > 0) { fprintf(stderr, "%s", sbuf_data(sb)); @@ -134,7 +134,7 @@ cli_func_config_inline(struct cli *cli, char **av, void *priv __unused) sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); assert(sb != NULL); - vf = VCL_Compile(sb, av[3], NULL); + vf = VCC_Compile(sb, av[3], NULL); sbuf_finish(sb); if (sbuf_len(sb) > 0) { cli_out(cli, "%s", sbuf_data(sb)); @@ -156,7 +156,7 @@ m_cli_func_config_load(struct cli *cli, char **av, void *priv __unused) sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); assert(sb != NULL); - vf = VCL_CompileFile(sb, av[3]); + vf = VCC_CompileFile(sb, av[3]); sbuf_finish(sb); if (sbuf_len(sb) > 0) { cli_out(cli, "%s", sbuf_data(sb)); @@ -177,7 +177,7 @@ vcl_file(const char *fflag) sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); assert(sb != NULL); - vf = VCL_CompileFile(sb, fflag); + vf = VCC_CompileFile(sb, fflag); sbuf_finish(sb); if (sbuf_len(sb) > 0) { fprintf(stderr, "%s", sbuf_data(sb)); @@ -392,7 +392,7 @@ main(int argc, char *argv[]) register_printf_render_std((const unsigned char *)"HVQ"); - VCL_InitCompile(); + VCC_InitCompile(); while ((o = getopt(argc, argv, "b:df:p:s:")) != -1) switch (o) { diff --git a/varnish-cache/include/libvcl.h b/varnish-cache/include/libvcl.h index 5e0e5557..65e1fa7a 100644 --- a/varnish-cache/include/libvcl.h +++ b/varnish-cache/include/libvcl.h @@ -2,8 +2,8 @@ * $Id$ */ -char *VCL_Compile(struct sbuf *sb, const char *b, const char *e); -char *VCL_CompileFile(struct sbuf *sb, const char *fn); -void VCL_InitCompile(void); +char *VCC_Compile(struct sbuf *sb, const char *b, const char *e); +char *VCC_CompileFile(struct sbuf *sb, const char *fn); +void VCC_InitCompile(void); diff --git a/varnish-cache/lib/libvcl/vcl_compile.c b/varnish-cache/lib/libvcl/vcl_compile.c index 99313cb8..f3b63d24 100644 --- a/varnish-cache/lib/libvcl/vcl_compile.c +++ b/varnish-cache/lib/libvcl/vcl_compile.c @@ -1599,7 +1599,7 @@ EmitStruct(struct tokenlist *tl) /*--------------------------------------------------------------------*/ char * -VCL_Compile(struct sbuf *sb, const char *b, const char *e) +VCC_Compile(struct sbuf *sb, const char *b, const char *e) { struct tokenlist tokens; struct ref *r; @@ -1684,7 +1684,7 @@ done: /*--------------------------------------------------------------------*/ char * -VCL_CompileFile(struct sbuf *sb, const char *fn) +VCC_CompileFile(struct sbuf *sb, const char *fn) { char *f, *r; int fd, i; @@ -1702,7 +1702,7 @@ VCL_CompileFile(struct sbuf *sb, const char *fn) i = read(fd, f, st.st_size); assert(i == st.st_size); f[i] = '\0'; - r = VCL_Compile(sb, f, NULL); + r = VCC_Compile(sb, f, NULL); free(f); return (r); } @@ -1710,7 +1710,7 @@ VCL_CompileFile(struct sbuf *sb, const char *fn) /*--------------------------------------------------------------------*/ void -VCL_InitCompile(void) +VCC_InitCompile(void) { struct var *v;