#define LEFT_CURLY '{'
#define RIGHT_CURLY '}'
+/*
+ * check that a subrequest won't cause infinite recursion
+ *
+ * either not in a subrequest, or in a subrequest
+ * and URIs aren't NULL and sub/main URIs differ
+ */
+#define subreq_ok(r) (!r->main || \
+ (r->main->uri && r->uri && strcmp(r->main->uri, r->uri)))
+
/*
* +-------------------------------------------------------+
return val;
}
-/* check that a subrequest won't cause infinite recursion */
-static int subreq_ok(request_rec *r)
-{
- /*
- * either not in a subrequest, or in a subrequest
- * and URIs aren't NULL and sub/main URIs differ
- */
- return (!r->main ||
- (r->main->uri && r->uri && strcmp(r->main->uri, r->uri)));
-}
-
/*
* generic variable lookup
*/