[master] 2cb8068 call and return are not functions but keywords

Federico G. Schwindt fgsch at lodoss.net
Thu Apr 16 00:53:11 CEST 2015


commit 2cb80687d6b4f4be7a524ee606296784eed48296
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Wed Apr 15 23:50:09 2015 +0100

    call and return are not functions but keywords
    
    Remove them from the function list. They are mentioned somewhere else in
    this document.  Prompted after dridi@ spotted the invalid syntax in call.

diff --git a/doc/sphinx/reference/vcl.rst b/doc/sphinx/reference/vcl.rst
index 88ac1fe..2246dd6 100644
--- a/doc/sphinx/reference/vcl.rst
+++ b/doc/sphinx/reference/vcl.rst
@@ -241,7 +241,7 @@ Probes will query the backend for status on a regular basis and mark
 the backend as down it they fail. A probe is defined as this::
 
     probe name {
-         .attribute = "value";
+        .attribute = "value";
     }
 
 There are no mandatory options. These are the options you can set:
@@ -375,9 +375,6 @@ ban(expression)
   Invalidates all objects in cache that match the expression with the
   ban mechanism.
 
-call(subroutine)
-  Run a VCL subroutine within the current scope.
-
 hash_data(input)
   Adds an input to the hash input. In the built-in VCL hash_data()
   is called on the host and URL of the *request*. Available in vcl_hash.
@@ -385,10 +382,6 @@ hash_data(input)
 new()
   Instanciate a new VCL object. Available in vcl_init.
 
-return()
-  End execution of the current VCL subroutine, and continue to the next step
-  in the request handling state machine.
-
 rollback()
   Restore *req* HTTP headers to their original state. This function is
   deprecated.  Use std.rollback() instead.



More information about the varnish-commit mailing list