From: phk Date: Thu, 20 Sep 2007 22:27:25 +0000 (+0000) Subject: Fix an extremely fine C-standard point and remove the vcc_FreeToken() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a45f540eb32c3dcb24f677900345b404ef46bd0c;p=varnish Fix an extremely fine C-standard point and remove the vcc_FreeToken() prototype git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1974 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_compile.h b/varnish-cache/lib/libvcl/vcc_compile.h index 7f8bf99a..4d8b8a4a 100644 --- a/varnish-cache/lib/libvcl/vcc_compile.h +++ b/varnish-cache/lib/libvcl/vcc_compile.h @@ -103,6 +103,12 @@ enum var_type { SET }; +enum var_access { + V_RO, + V_RW, + V_WO +}; + enum ref_type { R_FUNC, R_ACL, @@ -123,7 +129,7 @@ struct var { unsigned len; const char *rname; const char *lname; - enum {V_RO, V_RW, V_WO} access; + enum var_access access; const char *hdr; unsigned methods; }; @@ -187,7 +193,6 @@ void vcc_Lexer(struct tokenlist *tl, struct source *sp); void vcc_NextToken(struct tokenlist *tl); void vcc__ErrInternal(struct tokenlist *tl, const char *func, unsigned line); void vcc_AddToken(struct tokenlist *tl, unsigned tok, const char *b, const char *e); -void vcc_FreeToken(struct token *t); /* vcc_var.c */ struct var *vcc_FindVar(struct tokenlist *tl, const struct token *t, struct var *vl);