- 30 Aug, 2010 4 commits
-
-
Poul-Henning Kamp authored
Add code to implement function calls, based on symbols. Add type-single-char values to definitions in vcc_types.h. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5148 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
Emit a VCC friendly specification string for each functions. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5147 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
Add the VRT functions for importing a module. Tie the vmod_std module into the build. The initial VCC bits for modules snug into the previous commit. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5146 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
the standard functions supported in VCC. For now put the very magic python script that ties the C code to the VCL typesystem and the VCC compiler here. Eventually it goes elsewere. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5145 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 27 Aug, 2010 6 commits
-
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5144 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5143 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
Keep track of constant subexpressions and use it avoid building multipart constant strings on the workspace, when the C-compiler will happily build them for us at compile time. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5142 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5141 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
Use it for Expressions git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5140 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
that cause them, rather than try to patch all the indentation warnings they cause wherever they are used. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5139 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 26 Aug, 2010 8 commits
-
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5138 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5137 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
Remove some debugging that snug into last commit git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5136 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Ingvar Hagelund authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5135 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
the thrad workspace. Fix multiplication. Cleanup indentation in C-source output git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5134 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
Get precedence of the implicit cast to STRING right. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5133 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5132 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
For now we assemble the string in the worker threads workspace. I will reintroduce the optimization to pass it to VRT uncollected where appropriate, once I get the new expression system pushed through. Add a hacked up "regsub" function call for now, once functions gets introduced it should be treated like any other function. Add "true", "false" BOOL constants, REAL constants Move the "set" statement over to the new expressions. Fix testcases to use new string concat syntax where applicable. "set req.url = 1;" was impossible before, now it works. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5131 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 25 Aug, 2010 11 commits
-
-
Poul-Henning Kamp authored
the way we learned to do it back in the 1950'ies. Until now, VCC has used sort of a massaged C-expression and with the introduction of things like regexp matching and ACLs that turned sort of ugly. This code is classic recursive expression parsing with a couple of twists: 1. We don't build a tree, because we are not going to optimize stuff, we leave that to the C compiler. 2. Instead of the tree we build a string with magic markers that let us get the indentation of the produced C code right anyway. 3. We do type-hinted parsing, in an attempt to produce intelligent error messages and sensible semantics. This code passes all testcases with a single change: We can now compile "if (2 == 3)". This is probably a good thing (?) Beware of bugs... git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5130 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5129 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Ingvar Hagelund authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5128 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5127 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5126 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5125 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5124 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
two (IPv4/6) available sockets. In this case, writing the :0 into the VSM will not tell varnishadm where to look. Write the actual socket addresses, one per line instead, and have varnishadm try them all. Make -n mutually exclusive with -S and -T on varnishadm. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5123 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
as a socketaddr. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5122 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Ingvar Hagelund authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5121 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Ingvar Hagelund authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5120 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 24 Aug, 2010 2 commits
-
-
Poul-Henning Kamp authored
IP# <space> PORT# Explain why. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5119 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Ingvar Hagelund authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5118 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 23 Aug, 2010 1 commit
-
-
Poul-Henning Kamp authored
as a default, if the host argument does not specify a port. Elminate most separate calls to VSS_parse() Make it possible to specify address and port of backends in VCL using only the .host field. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5117 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 21 Aug, 2010 6 commits
-
-
Poul-Henning Kamp authored
have to kill the child: We cannot get the CLI pipes back in sync, even if the child process was just preoccupied with something for much longer than cli_timeout. Fixes: #744 git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5116 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5115 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5114 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
Fixes: #758 git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5113 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5112 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5111 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 16 Aug, 2010 1 commit
-
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5110 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 13 Aug, 2010 1 commit
-
-
Per Andreas Buer authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5108 d4fa192b-c00b-0410-8231-f00ffab90ce4
-