From 1567c121700d4255a9e6b1e0851e543d88fe34a9 Mon Sep 17 00:00:00 2001 From: Stephan Bosch <stephan.bosch@open-xchange.com> Date: Sun, 3 Oct 2021 15:51:21 +0200 Subject: [PATCH] lib-sieve: Reformat sieve-ast.h --- src/lib-sieve/sieve-ast.h | 60 +++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/src/lib-sieve/sieve-ast.h b/src/lib-sieve/sieve-ast.h index 7ac53092e..bc7878375 100644 --- a/src/lib-sieve/sieve-ast.h +++ b/src/lib-sieve/sieve-ast.h @@ -8,35 +8,35 @@ #include "sieve-error.h" /* - Abstract Syntax Tree (AST) structure: - - sieve_ast (root) - [*command] - | - +-- command: - | .... - +-- command: - | [identifier *argument *test *command] - | +-- argument: | \--> as from root - | | .... | - | +-- argument: V (continued below) - | | [number | tag | *string] - | . - . - - *test - +-- test: - | .... - +-- test: - | [identifier *argument *test] - | +-- argument: \--> as from the top - . | .... of this tree - +-- argument: - | [number | tag | *string] - . - - Tests and commands are defined using the same structure: sieve_ast_node. - However, arguments and string-lists are described using sieve_ast_argument. + Abstract Syntax Tree (AST) structure: + + sieve_ast (root) + [*command] + | + +-- command: + | .... + +-- command: + | [identifier *argument *test *command] + | +-- argument: | \--> as from root + | | .... | + | +-- argument: V (continued below) + | | [number | tag | *string] + | . + . + + *test + +-- test: + | .... + +-- test: + | [identifier *argument *test] + | +-- argument: \--> as from the top + . | .... of this tree + +-- argument: + | [number | tag | *string] + . + + Tests and commands are defined using the same structure: sieve_ast_node. + However, arguments and string-lists are described using sieve_ast_argument. */ /* IMPORTANT NOTICE: Do not decorate the AST with objects other than those @@ -186,7 +186,7 @@ struct sieve_ast_extension { void sieve_ast_extension_link(struct sieve_ast *ast, const struct sieve_extension *ext, bool required); -const struct sieve_extension * const * +const struct sieve_extension *const * sieve_ast_extensions_get(struct sieve_ast *ast, unsigned int *count_r); void sieve_ast_extension_register(struct sieve_ast *ast, -- GitLab