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));
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));
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));
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));
register_printf_render_std((const unsigned char *)"HVQ");
- VCL_InitCompile();
+ VCC_InitCompile();
while ((o = getopt(argc, argv, "b:df:p:s:")) != -1)
switch (o) {
* $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);
/*--------------------------------------------------------------------*/
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;
/*--------------------------------------------------------------------*/
char *
-VCL_CompileFile(struct sbuf *sb, const char *fn)
+VCC_CompileFile(struct sbuf *sb, const char *fn)
{
char *f, *r;
int fd, i;
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);
}
/*--------------------------------------------------------------------*/
void
-VCL_InitCompile(void)
+VCC_InitCompile(void)
{
struct var *v;