]> err.no Git - varnish/commit
Improve the VCL compiler in various ways:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 22 Jun 2006 16:17:10 +0000 (16:17 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 22 Jun 2006 16:17:10 +0000 (16:17 +0000)
commitb22ee5e671564d36246635c36107e8af73350e4a
tree9e99394349f38695eeb1c8541f05f981728d1490
parent8efa44560d26eb5c21d1becc07fd7299e86355f9
Improve the VCL compiler in various ways:

Generate the methods and their legal returns with the tcl script.

Add consistency checks to make sure methods don't use illegal returns,
and also check called subrourtines.

Add consistency check to complain about recursive subroutine calls.

Add consistency check to complain about unused or undefined subroutines.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@222 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/cache_pool.c
varnish-cache/bin/varnishd/cache_vcl.c
varnish-cache/bin/varnishd/cache_vrt.c
varnish-cache/include/vcl.h
varnish-cache/include/vcl_returns.h [new file with mode: 0644]
varnish-cache/include/vrt.h
varnish-cache/lib/libvcl/vcl_compile.c
varnish-cache/lib/libvcl/vcl_fixed_token.c
varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl
varnish-cache/lib/libvcl/vcl_token_defs.h